@firestitch/block-editor 9.0.9 → 12.0.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/app/components/block/block.component.d.ts +78 -72
- package/app/components/block-editor/block-editor.component.d.ts +37 -30
- package/app/components/sidebar/sidebar.component.d.ts +61 -58
- package/app/directives/block-editor-margin.directive.d.ts +9 -6
- package/app/directives/block-editor-sidebar-panel.directive.d.ts +10 -7
- package/app/fs-block-editor.module.d.ts +22 -4
- package/app/interfaces/block-editor-config.d.ts +18 -18
- package/app/interfaces/block.d.ts +37 -37
- package/app/services/block-editor.service.d.ts +36 -33
- package/bundles/firestitch-block-editor.umd.js +1491 -1321
- package/bundles/firestitch-block-editor.umd.js.map +1 -1
- package/esm2015/app/components/block/block.component.js +370 -374
- package/esm2015/app/components/block-editor/block-editor.component.js +141 -106
- package/esm2015/app/components/sidebar/sidebar.component.js +299 -308
- package/esm2015/app/directives/block-editor-margin.directive.js +19 -21
- package/esm2015/app/directives/block-editor-sidebar-panel.directive.js +21 -27
- package/esm2015/app/fs-block-editor.module.js +79 -53
- package/esm2015/app/interfaces/block-editor-config.js +2 -1
- package/esm2015/app/interfaces/block.js +2 -1
- package/esm2015/app/services/block-editor.service.js +99 -99
- package/esm2015/firestitch-block-editor.js +5 -8
- package/esm2015/public_api.js +8 -8
- package/fesm2015/firestitch-block-editor.js +976 -936
- package/fesm2015/firestitch-block-editor.js.map +1 -1
- package/firestitch-block-editor.d.ts +5 -7
- package/package.json +7 -10
- package/public_api.d.ts +6 -6
- package/bundles/firestitch-block-editor.umd.min.js +0 -2
- package/bundles/firestitch-block-editor.umd.min.js.map +0 -1
- package/esm5/app/components/block/block.component.js +0 -488
- package/esm5/app/components/block-editor/block-editor.component.js +0 -112
- package/esm5/app/components/sidebar/sidebar.component.js +0 -334
- package/esm5/app/directives/block-editor-margin.directive.js +0 -26
- package/esm5/app/directives/block-editor-sidebar-panel.directive.js +0 -28
- package/esm5/app/fs-block-editor.module.js +0 -57
- package/esm5/app/interfaces/block-editor-config.js +0 -1
- package/esm5/app/interfaces/block.js +0 -1
- package/esm5/app/services/block-editor.service.js +0 -124
- package/esm5/firestitch-block-editor.js +0 -8
- package/esm5/public_api.js +0 -8
- package/fesm5/firestitch-block-editor.js +0 -1142
- package/fesm5/firestitch-block-editor.js.map +0 -1
- package/firestitch-block-editor.metadata.json +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"firestitch-block-editor.js","sources":["ng://@firestitch/block-editor/app/services/block-editor.service.ts","ng://@firestitch/block-editor/app/components/block/block.component.ts","ng://@firestitch/block-editor/app/directives/block-editor-sidebar-panel.directive.ts","ng://@firestitch/block-editor/app/directives/block-editor-margin.directive.ts","ng://@firestitch/block-editor/app/components/sidebar/sidebar.component.ts","ng://@firestitch/block-editor/app/components/block-editor/block-editor.component.ts","ng://@firestitch/block-editor/app/fs-block-editor.module.ts","ng://@firestitch/block-editor/public_api.ts","ng://@firestitch/block-editor/firestitch-block-editor.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { BehaviorSubject } from 'rxjs';\n\nimport { Block } from './../interfaces/block';\nimport { FsBlockComponent } from '../components/block/block.component';\nimport { BlockEditorConfig } from '../interfaces/block-editor-config';\n\n@Injectable()\nexport class BlockEditorService {\n\n public container;\n public margin;\n public blockComponents: FsBlockComponent[] = [];\n public config: BlockEditorConfig;\n\n private _blocks$ = new BehaviorSubject<Block<any>[]>([]);\n private _selectionRange;\n private _selectedBlockComponents$ = new BehaviorSubject<FsBlockComponent[]>([]);\n\n constructor() {}\n\n public get elementGuidelines() {\n return [\n ...this.blockComponents.map((block) => {\n return block.el;\n }),\n this.container,\n this.margin,\n ];\n }\n\n public addBlock(block: Block<any>) {\n this.blocks$.next([...this.blocks, this.sanitizeBlock(block)]);\n }\n\n public removeBlock(block: Block<any>) {\n const index = this.indexOf(block);\n if (index !== -1) {\n this.blocks.splice(index, 1);\n this.blocks$.next(this.blocks);\n }\n }\n\n public get blocks$() {\n return this._blocks$;\n }\n\n public get blocks() {\n return this.blocks$.getValue();\n }\n\n public set blocks(blocks) {\n this._blocks$.next(blocks);\n }\n\n public isSelectedBlock(block) {\n return this.selectedBlockComponents.indexOf(block) !== -1;\n }\n\n public indexOf(block) {\n return this.blocks.map((e) => e.reference).indexOf(block.reference);\n }\n\n public set selectedBlockComponents(blocks) {\n this.blockComponents.forEach((block) => {\n block.editable = false;\n block.transformable = blocks.indexOf(block) !== -1;\n });\n this._selectedBlockComponents$.next(blocks);\n }\n\n public get selectedBlockComponents() {\n return this._selectedBlockComponents$.getValue();\n }\n\n public get selectedBlocks() {\n return this.selectedBlockComponents.map((blockComponent) => blockComponent.block);\n }\n\n public get selectedBlockComponents$() {\n return this._selectedBlockComponents$;\n }\n\n public saveSelection(): void {\n const selection: any = window.getSelection();\n this._selectionRange = selection.getRangeAt(0);\n }\n\n public restoreSelection(): void {\n if (this._selectionRange) {\n const selection: any = window.getSelection();\n selection.removeAllRanges();\n selection.addRange(this._selectionRange);\n }\n }\n\n public hasSelectionRange(): boolean {\n return this._selectionRange && (this._selectionRange.baseOffset - this._selectionRange.focusOffset) > 0;\n }\n\n public registerBlock(block: FsBlockComponent) {\n\n this.blockComponents.push(block);\n\n this.blockComponents.forEach((item: FsBlockComponent) => {\n\n const blocks = this.elementGuidelines\n .filter((el) => {\n return !el.isSameNode(item.el);\n });\n\n item.elementGuidelines = blocks;\n });\n }\n\n public registerContainer(container) {\n this.container = container;\n }\n\n public registerMargin(margin) {\n this.margin = margin;\n }\n\n public sanitizeBlock(block) {\n return {\n shapeBottomLeft: 'round',\n shapeTopLeft: 'round',\n shapeTopRight: 'round',\n shapeBottomRight: 'round',\n verticalAlign: 'top',\n horizontalAlign: 'left',\n ...block,\n };\n }\n\n}\n","import { skipWhile, takeUntil } from 'rxjs/operators';\nimport {\n AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef,\n EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild,\n} from '@angular/core';\n\nimport { FsHtmlEditorComponent, FsHtmlEditorConfig } from '@firestitch/html-editor';\n\nimport Moveable from 'moveable';\nimport { fromEvent, Subject } from 'rxjs';\n\nimport { BlockEditorService } from './../../services/block-editor.service';\nimport { Block } from './../../interfaces/block';\n\n@Component({\n selector: 'fs-block',\n templateUrl: 'block.component.html',\n styleUrls: [ 'block.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FsBlockComponent implements OnDestroy, AfterContentInit, OnInit {\n\n @ViewChild('element', { static: true })\n public element: ElementRef;\n\n @ViewChild('contentElement', { static: true })\n public contentElement: ElementRef;\n\n @ViewChild('contentEditable', { static: true })\n public contentEditable: ElementRef;\n\n @ViewChild(FsHtmlEditorComponent)\n public htmlEditor: FsHtmlEditorComponent;\n\n @Input() public block: Block<any>;\n @Input() public html: string;\n\n @Output() changed = new EventEmitter<Block<any>>();\n\n public matrix;\n public unit;\n public content: string;\n public justifyContent;\n public htmlConfig: FsHtmlEditorConfig = {};\n\n private _moveable;\n private _editable = false;\n private _selectedElements = [];\n private _rotateStart;\n private _destroy$ = new Subject();\n\n constructor(\n private _service: BlockEditorService,\n private _elementRef: ElementRef,\n private _cdRef: ChangeDetectorRef,\n ) { }\n\n public get el(): any {\n return this.element.nativeElement;\n }\n\n public get moveable(): any {\n return this._moveable;\n }\n\n public get editable(): any {\n return this._editable;\n }\n\n public set elementGuidelines(value) {\n this._moveable.elementGuidelines = value;\n }\n\n public set editable(value) {\n this._editable = value;\n\n if (!value) {\n this.deselectContent();\n }\n }\n\n public set clippable(value) {\n this._moveable.clippable = value;\n }\n\n public set transformable(value) {\n this.moveable.draggable = value;\n this.moveable.resizable = value;\n this.moveable.draggable = value;\n this.moveable.roundable = value;\n this.moveable.rotatable = value;\n }\n\n public set lineHeight(value) {\n this.block.lineHeight = value;\n this._triggerChanged();\n }\n\n public set borderWidth(value) {\n this.block.borderWidth = value;\n this._triggerChanged();\n }\n\n public set fontSize(value) {\n this.block.fontSize = value;\n this._triggerChanged();\n }\n\n public set backgroundColor(value) {\n this.block.backgroundColor = value;\n this._triggerChanged();\n }\n\n public set width(value) {\n this.element.nativeElement.style.width = `${value}${this.unit}`;\n this.block.width = value;\n this._moveable.updateRect();\n this._triggerChanged();\n }\n\n public set height(value) {\n this.element.nativeElement.style.height = `${value}${this.unit}`;\n this.block.height = value;\n this._moveable.updateRect();\n this._triggerChanged();\n }\n\n public set top(value) {\n this.element.nativeElement.style.top = `${value}${this.unit}`;\n this.block.top = value;\n this._moveable.updateRect();\n this._triggerChanged();\n }\n\n public set left(value) {\n this.element.nativeElement.style.left = `${value}${this.unit}`;\n this.block.left = value;\n this._moveable.updateRect();\n this._triggerChanged();\n }\n\n public set rotate(value) {\n this._moveable.request('rotatable', { rotate: value }, true);\n this.block.rotate = value;\n this._triggerChanged();\n }\n\n public set shapeRadius(value) {\n this.block.shapeRadius = value;\n this._triggerChanged();\n }\n\n public set index(value) {\n this.block.index = value;\n }\n\n public set borderColor(value) {\n this.block.borderColor = value;\n this._triggerChanged();\n }\n\n public set paddingAll(value) {\n this.block.padding = value;\n this.block.paddingTop = null;\n this.block.paddingBottom = null;\n this.block.paddingLeft = null;\n this.block.paddingRight = null;\n this._triggerChanged();\n }\n\n public padding(name, value) {\n this.block[name] = value;\n this.block.padding = null;\n this._triggerChanged();\n }\n\n public set imageUrl(value) {\n this.block.imageUrl = value;\n this._triggerChanged();\n }\n\n public set fontColor(value) {\n this.block.fontColor = value;\n this._triggerChanged();\n }\n\n public set verticalAlign(value) {\n this.block.verticalAlign = value;\n this._triggerChanged();\n }\n\n public shapeRound(name, value) {\n this.block[name] = value;\n this._triggerChanged();\n }\n\n public set horizontalAlign(value) {\n this.block.horizontalAlign = value;\n this._triggerChanged();\n }\n\n public set italic(value) {\n this.block.italic = value;\n this._triggerChanged();\n }\n\n public get italic() {\n return this.block.italic;\n }\n\n public set bold(value) {\n this.block.bold = value;\n this._triggerChanged();\n }\n\n public get bold() {\n return this.block.bold;\n }\n\n public set underline(value) {\n this.block.underline = value;\n this._triggerChanged();\n }\n\n public get underline() {\n return this.block.underline;\n }\n\n public markForCheck(): void {\n this._cdRef.markForCheck();\n }\n\n public ngOnInit(): void {\n this.block = this._service.sanitizeBlock(this.block);\n this.unit = this._service.config.unit;\n this.content = this.block.content;\n\n this.htmlConfig = {\n autofocus: false,\n froalaConfig: {}\n };\n }\n\n public saveSelectedElements(): void {\n this._selectedElements = this.htmlEditor.editor.selection.blocks();\n }\n\n public clearSelectedElements(): void {\n this._selectedElements = [];\n }\n\n public ngAfterContentInit(): void {\n this.el.style.width = this.block.width + this.unit;\n this.el.style.height = this.block.height + this.unit;\n this.el.style.top = this.block.top + this.unit;\n this.el.style.left = this.block.left + this.unit;\n this._setTransform();\n\n fromEvent(this.contentEditable.nativeElement, 'input')\n .pipe(\n takeUntil(this._destroy$),\n ).subscribe((event: any) => {\n this.block.content = event.target.innerHTML;\n this._triggerChanged();\n });\n\n fromEvent(this.el, 'mousedown')\n .pipe(\n takeUntil(this._destroy$),\n ).subscribe((event: UIEvent) => {\n\n if (this.editable) {\n if (this.contentElement.nativeElement.isSameNode(event.target)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n event.stopPropagation();\n }\n } else {\n this._service.selectedBlockComponents = [this];\n }\n });\n\n fromEvent(this.el, 'dblclick')\n .pipe(\n skipWhile(() => {\n return this.editable;\n }),\n takeUntil(this._destroy$),\n )\n .subscribe((e) => {\n this.editable = true;\n\n setTimeout(() => {\n this.selectAll();\n });\n });\n\n this._moveable = new Moveable(this._elementRef.nativeElement, {\n target: this.el,\n container: this._service.container,\n draggable: false,\n resizable: false,\n scalable: false,\n rotatable: false,\n warpable: false,\n origin: false,\n keepRatio: false,\n snappable: true,\n snapHorizontal: true,\n snapVertical: true,\n snapCenter: true,\n snapElement: true,\n edge: false,\n throttleDrag: 1,\n throttleScale: 0.01,\n throttleRotate: 1,\n throttleResize: 1,\n });\n\n this._service.registerBlock(this);\n\n this._moveable\n .on('clip', e => {\n this.block.clipPath = e.clipStyle;\n e.target.style.clipPath = e.clipStyle;\n this._triggerChanged();\n });\n\n this._moveable.on('dragStart', ({ target, clientX, clientY }) => {\n this.editable = false;\n }).on('drag', ({ target, left, top }) => {\n target!.style.left = this.pxToIn(left) + this.unit;\n target!.style.top = this.pxToIn(top) + this.unit;\n this.block.top = this.pxToIn(top);\n this.block.left = this.pxToIn(left);\n this._triggerChanged();\n });\n\n this._moveable.on('resizeStart', ({ target, clientX, clientY }) => {\n this.editable = false;\n }).on('resize', ({ target, width, height, dist, delta, direction }) => {\n width = this.pxToIn(width);\n height = this.pxToIn(height);\n\n if (delta[0]) {\n this.block.width = width;\n target!.style.width = width + this.unit;\n }\n\n if (delta[1]) {\n this.block.height = height;\n target!.style.height = height + this.unit;\n }\n\n const transform = [0, 0];\n if (direction[1] === -1) {\n transform[1] = dist[1] * -1;\n }\n\n if (direction[0] === -1) {\n transform[0] = dist[0] * -1;\n }\n\n this._setTransform([`translate(${transform[0]}px, ${transform[1]}px)`]);\n this._triggerChanged();\n\n }).on('resizeEnd', ({ target }) => {\n const matrix = new WebKitCSSMatrix(target.style.transform);\n this.block.top = parseFloat(target.style.top) + this.pxToIn(matrix.m42);\n this.block.left = parseFloat(target.style.left) + this.pxToIn(matrix.m41);\n\n target.style.top = this.block.top + this.unit;\n target.style.left = this.block.left + this.unit;\n this._setTransform();\n this._triggerChanged();\n });\n\n this._moveable.on('rotateStart', ({ target, clientX, clientY }) => {\n this.editable = false;\n this._rotateStart = this.block.rotate || 0;\n }).on('rotate', ({ rotate, transform }) => {\n this.block.rotate = this._rotateStart + rotate;\n this.el.style.transform = transform;\n this._triggerChanged();\n });\n\n }\n\n public pxToIn(px) {\n return this.round(px / 96, 2);\n }\n\n public round(value, decimals) {\n return parseFloat(value.toFixed(decimals));\n }\n\n public deselect() {\n this.transformable = false;\n this.editable = false;\n }\n\n public deselectContent() {\n if (window.getSelection) {\n if (window.getSelection().empty) {\n window.getSelection().empty();\n } else if (window.getSelection().removeAllRanges) {\n window.getSelection().removeAllRanges();\n }\n }\n }\n\n public selectAll(): void {\n const range = document.createRange();\n //const el = this.htmlEditor.editor.$el.get(0);\n range.selectNodeContents(this.contentEditable.nativeElement);\n const sel = window.getSelection();\n sel.removeAllRanges();\n sel.addRange(range);\n }\n\n public ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n }\n\n private _setTransform(transforms = []): void {\n transforms = transforms ?? [];\n\n if (this.block.rotate) {\n transforms.push(`rotate(${this.block.rotate}deg)`);\n }\n this.el.style.transform = transforms.join(' ');\n }\n\n private _triggerChanged() {\n this.changed.emit(this.block);\n }\n}\n","import { Directive, Input, TemplateRef } from '@angular/core';\n\n\n@Directive({\n selector: '[fsBlockEditorSidebarPanel]'\n})\nexport class FsBlockEditorSidebarPanelDirective {\n\n @Input() public label: string;\n @Input() public show = true;\n\n\n constructor(public templateRef: TemplateRef<any>) {\n\n }\n}\n","import { Directive, TemplateRef, ElementRef } from '@angular/core';\n\n\n@Directive({\n selector: '[fsBlockEditorMargin]'\n})\nexport class FsBlockEditorMarginDirective {\n\n constructor(\n private _elementRef: ElementRef) {\n }\n\n public get element() {\n return this._elementRef.nativeElement;\n }\n}\n","import { FsBlockComponent } from './../block/block.component';\nimport {\n ChangeDetectionStrategy, ChangeDetectorRef, Component,\n ContentChildren, ElementRef, Input,\n OnDestroy, OnInit, QueryList,\n} from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { take, takeUntil } from 'rxjs/operators';\n\nimport { FsFile } from '@firestitch/file';\nimport { guid } from '@firestitch/common';\n\nimport { BlockEditorConfig } from '../../interfaces/block-editor-config';\nimport { BlockEditorService } from '../../services/block-editor.service';\nimport { Block } from '../../interfaces/block';\nimport { FsBlockEditorSidebarPanelDirective } from '../../directives/block-editor-sidebar-panel.directive';\n\n@Component({\n selector: 'sidebar',\n templateUrl: 'sidebar.component.html',\n styleUrls: [ 'sidebar.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarComponent implements OnInit, OnDestroy {\n\n @ContentChildren(FsBlockEditorSidebarPanelDirective)\n public sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;\n\n @Input() public config: BlockEditorConfig;\n @Input() public blocks;\n @Input() public blockComponents: QueryList<FsBlockComponent>;\n\n public block: Block<any>;\n public clippable;\n\n private _destroy$ = new Subject();\n\n constructor(\n private _el: ElementRef,\n private _service: BlockEditorService,\n private _cdRef: ChangeDetectorRef,\n ) { }\n\n public get changeDetector(): ChangeDetectorRef {\n return this._cdRef;\n }\n\n public get el(): any {\n return this._el.nativeElement;\n }\n\n public ngOnInit(): void {\n this._service.selectedBlockComponents$\n .pipe(\n takeUntil(this._destroy$),\n )\n .subscribe((blocks: FsBlockComponent[]) => {\n this.clippable = false;\n this.block = blocks[0] ? blocks[0].block : null;\n this.changeDetector.markForCheck();\n\n if (this.config.blocksSelected) {\n this.config.blocksSelected(blocks.map((block) => block.block));\n }\n });\n }\n\n public verticalAlignClick(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.verticalAlign = value;\n });\n }\n\n public boldClick(): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.bold = !block.bold;\n });\n }\n\n public fontColorChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.fontColor = value;\n });\n }\n\n public lineHeightChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.lineHeight = value || null;\n }\n });\n }\n\n public fontSizeChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.fontSize = value || null;\n }\n });\n }\n\n public borderWidthChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.borderWidth = value || null;\n }\n });\n }\n\n public italicClick(): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.italic = !block.italic;\n });\n }\n\n public underlineClick(): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.underline = !block.underline;\n });\n }\n\n public backgroundColorChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.backgroundColor = value;\n });\n }\n\n public widthChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.width = value;\n }\n });\n }\n\n public heightChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.height = value;\n }\n });\n }\n\n public topChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.top = value;\n }\n });\n }\n\n public leftChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.left = value;\n }\n });\n }\n\n public rotateChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.rotate = value;\n }\n });\n }\n\n public paddingChange(name, value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.padding(name, value || null);\n }\n });\n }\n\n public paddingAllChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n if (this.validNumeric(value)) {\n block.paddingAll = value;\n }\n });\n }\n\n public borderColorChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.borderColor = value;\n });\n }\n\n public horizontalAlignClick(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.horizontalAlign = value;\n });\n }\n\n public shapeRound(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.shapeRound(value, block.block[value] === 'round' ? 'square' : 'round');\n });\n }\n\n public imageRemove(): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.imageUrl = null;\n });\n }\n\n public imageClip(): void {\n this.clippable = !this.clippable;\n this._service.selectedBlockComponents.forEach((block) => {\n block.clippable = this.clippable;\n });\n }\n\n public shapeRadiusChange(value): void {\n this._service.selectedBlockComponents.forEach((block) => {\n block.shapeRadius = value;\n });\n }\n\n public fileSelect(fsFile: FsFile): void {\n if (this.config.fileUpload) {\n this.config.fileUpload(fsFile.file)\n .subscribe((value) => {\n this._service.selectedBlockComponents.forEach((block) => {\n block.imageUrl = value;\n });\n });\n }\n }\n\n public blockRemoveClick() {\n\n if (this.config.blocksRemoved) {\n this.config.blocksRemoved(this._service.selectedBlocks)\n .pipe(\n takeUntil(this._destroy$),\n )\n .subscribe(() => {\n this._service.selectedBlocks.forEach((block) => {\n this._service.removeBlock(block);\n });\n\n this._service.selectedBlockComponents = [];\n });\n }\n }\n\n public blockAddClick() {\n const width = (this.config.width * .333).toFixed(2);\n const height = (this.config.height * .333).toFixed(2);\n const reference = guid();\n const block: Block<any> = {\n type: 'text',\n reference,\n top: height,\n left: width,\n width: width,\n height: height,\n };\n\n if (this.config.blockAdded) {\n this.config.blockAdded(block)\n .pipe(\n takeUntil(this._destroy$),\n )\n .subscribe((block) => {\n this.addBlock(block);\n this.changeDetector.markForCheck();\n\n this.blockComponents.changes\n .pipe(\n take(1),\n takeUntil(this._destroy$),\n )\n .subscribe((queryList: QueryList<FsBlockComponent>) => {\n const blockComponent = queryList.find((item) => {\n return item.block.reference === reference;\n });\n\n if (blockComponent) {\n this._service.selectedBlockComponents = [blockComponent];\n }\n });\n });\n }\n }\n\n public addBlock(block: Block<any>): void {\n this._service.addBlock(block);\n this._updateIndexes();\n }\n\n private _updateIndexes(): void {\n\n const sort = this.blocks.slice().sort((a, b) => {\n return a.index > b.index ? 1 : -1;\n })\n\n sort.forEach((block, index) => {\n this.blocks.find((item) => {\n return block.reference === item.reference;\n }).index = index;\n });\n }\n\n public layerMove(direction): void {\n this._service.blockComponents.forEach((blockComponent) => {\n if (this._service.isSelectedBlock(blockComponent)) {\n blockComponent.block.index + (999 * direction);\n }\n });\n\n const sorted = this._service.blockComponents.sort((a, b) => {\n return a.index > b.index ? 1 : -1;\n });\n\n sorted.forEach((item, index) => {\n item.block.index = index;\n item.markForCheck();\n });\n\n if (this.config.blocksLevelChanged) {\n this.config.blocksLevelChanged(sorted.map((item) => item.block));\n }\n }\n\n public layerUp(): void {\n this.layerMove(1);\n }\n\n public layerDown(): void {\n this.layerMove(-1);\n }\n\n public getBlock(reference: any): Block<any> {\n return this._service.blocks.find((block) => {\n return block.reference === reference;\n });\n }\n\n public blockChanged(block: Block<any>): void {\n if (this.config.blockChanged) {\n this.config.blockChanged(block);\n }\n }\n\n public inputFocus(event): void {\n event.target.select();\n }\n\n public ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n }\n\n public validNumeric(value): boolean {\n return !value || !!String(value).match(/^\\d*\\.?\\d*$/);\n }\n}\n","import {\n AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component,\n ContentChildren, ElementRef, Input,\n OnDestroy, OnInit, QueryList, ViewChild, ViewChildren\n} from '@angular/core';\n\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { BlockEditorConfig } from './../../interfaces/block-editor-config';\nimport { FsBlockComponent } from './../block/block.component';\nimport { BlockEditorService } from './../../services/block-editor.service';\nimport { Block } from './../../interfaces/block';\nimport { FsBlockEditorSidebarPanelDirective } from './../../directives/block-editor-sidebar-panel.directive';\nimport { FsBlockEditorMarginDirective } from './../../directives/block-editor-margin.directive';\nimport { SidebarComponent } from './../sidebar/sidebar.component';\n\n@Component({\n selector: 'fs-block-editor',\n templateUrl: 'block-editor.component.html',\n styleUrls: [ 'block-editor.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n BlockEditorService,\n ]\n})\nexport class FsBlockEditorComponent implements OnInit, AfterViewInit, OnDestroy {\n\n @ContentChildren(FsBlockEditorSidebarPanelDirective)\n public sidebarPanels: QueryList<FsBlockEditorSidebarPanelDirective>;\n\n @ViewChildren(FsBlockComponent)\n public blockComponents: QueryList<FsBlockComponent>;\n\n @ViewChild('artboard', { static: true })\n public artboard: ElementRef;\n\n @ViewChild('marginContainer', { static: true })\n public marginContainer: ElementRef;\n\n @ViewChildren(FsBlockEditorMarginDirective)\n public margins: QueryList<FsBlockEditorMarginDirective>;\n\n @ViewChild('artboardContainer', { static: true })\n public artboardContainer: ElementRef;\n\n @ViewChild(SidebarComponent, { static: true })\n public sidebar: SidebarComponent;\n\n @Input() public config: BlockEditorConfig;\n\n public blocks: Block<any>[];\n\n private _destroy$ = new Subject();\n\n constructor(\n private _el: ElementRef,\n private _service: BlockEditorService,\n private _cdRef: ChangeDetectorRef,\n ) {}\n\n public get el(): any {\n return this._el.nativeElement;\n }\n\n public ngOnInit(): void {\n this.config = {\n ...this.config,\n unit: 'in',\n };\n\n this._service.registerContainer(this.artboard.nativeElement);\n this._service.registerMargin(this.marginContainer.nativeElement);\n\n this._service.blocks = this.config.blocks;\n this._service.config = this.config;\n this._service.blocks$\n .pipe(\n takeUntil(this._destroy$),\n )\n .subscribe((blocks) => {\n this.blocks = blocks;\n });\n }\n\n public artboardClick(event): void {\n if (\n event.target.isSameNode(this.artboard.nativeElement) ||\n event.target.isSameNode(this.artboardContainer.nativeElement)\n ) {\n this._service.selectedBlockComponents.forEach((block) => {\n block.deselect();\n });\n\n this._service.selectedBlockComponents = [];\n }\n }\n\n public blockChanged(block: Block<any>): void {\n this.sidebar.changeDetector.markForCheck();\n if (this.config.blockChanged) {\n this.config.blockChanged(block);\n }\n }\n\n public ngAfterViewInit(): void {\n\n }\n\n public ngOnDestroy(): void {\n this._destroy$.next();\n this._destroy$.complete();\n }\n}\n","import { FormsModule } from '@angular/forms';\nimport { MatInputModule } from '@angular/material/input';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\n\nimport { FsHtmlEditorModule } from '@firestitch/html-editor';\nimport { FsColorPickerModule } from '@firestitch/colorpicker';\nimport { FsFileModule } from '@firestitch/file';\n\nimport { FsBlockComponent } from './components/block/block.component';\nimport { FsBlockEditorComponent } from './components/block-editor/block-editor.component';\nimport { FsBlockEditorSidebarPanelDirective } from './directives/block-editor-sidebar-panel.directive';\nimport { FsBlockEditorMarginDirective } from './directives/block-editor-margin.directive';\nimport { SidebarComponent } from './components/sidebar/sidebar.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n\n MatIconModule,\n MatButtonModule,\n MatInputModule,\n MatFormFieldModule,\n\n FsHtmlEditorModule,\n FsFileModule,\n FsColorPickerModule,\n ],\n exports: [\n FsBlockComponent,\n FsBlockEditorComponent,\n FsBlockEditorSidebarPanelDirective,\n ],\n declarations: [\n FsBlockComponent,\n FsBlockEditorComponent,\n FsBlockEditorSidebarPanelDirective,\n FsBlockEditorMarginDirective,\n SidebarComponent,\n ],\n})\nexport class FsBlockEditorModule {\n static forRoot(): ModuleWithProviders<FsBlockEditorModule> {\n return {\n ngModule: FsBlockEditorModule,\n };\n }\n}\n","/*\n * Public API Surface of fs-menu\n */\n\nexport { FsBlockEditorModule } from './app/fs-block-editor.module';\n\nexport { FsBlockComponent } from './app/components/block/block.component';\nexport { FsBlockEditorComponent } from './app/components/block-editor/block-editor.component';\n\nexport { Block } from './app/interfaces/block';\nexport { BlockEditorConfig } from './app/interfaces/block-editor-config';\n\nexport { FsBlockEditorSidebarPanelDirective } from './app/directives/block-editor-sidebar-panel.directive';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {SidebarComponent as ɵc} from './app/components/sidebar/sidebar.component';\nexport {FsBlockEditorMarginDirective as ɵb} from './app/directives/block-editor-margin.directive';\nexport {BlockEditorService as ɵa} from './app/services/block-editor.service';"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAoBE;QAPO,oBAAe,GAAuB,EAAE,CAAC;QAGxC,aAAQ,GAAG,IAAI,eAAe,CAAe,EAAE,CAAC,CAAC;QAEjD,8BAAyB,GAAG,IAAI,eAAe,CAAqB,EAAE,CAAC,CAAC;KAEhE;IAEhB,sBAAW,iDAAiB;aAA5B;YACE,gBACK,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC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AAC;IAGrC;QADC,SAAS,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;kCAC9B,gBAAgB;2DAAC;IAExB;QAAR,KAAK,EAAE;;0DAAkC;IAvB/B,sBAAsB;QATlC,SAAS,CAAC;YACT,QAAQ,EAAE,iBAAiB;YAC3B,q6CAA0C;YAE1C,eAAe,EAAE,uBAAuB,CAAC,MAAM;YAC/C,SAAS,EAAE;gBACT,kBAAkB;aACnB;;SACF,CAAC;yCA+Be,UAAU;YACL,kBAAkB;YACpB,iBAAiB;OAhCxB,sBAAsB,CAuFlC;IAAD,6BAAC;CAvFD;;;ICoBA;KAMC;4BANY,mBAAmB;IACvB,2BAAO,GAAd;QACE,OAAO;YACL,QAAQ,EAAE,qBAAmB;SAC9B,CAAC;KACH;;IALU,mBAAmB;QA3B/B,QAAQ,CAAC;YACR,OAAO,EAAE;gBACP,YAAY;gBACZ,WAAW;gBAEX,aAAa;gBACb,eAAe;gBACf,cAAc;gBACd,kBAAkB;gBAElB,kBAAkB;gBAClB,YAAY;gBACZ,mBAAmB;aACpB;YACD,OAAO,EAAE;gBACP,gBAAgB;gBAChB,sBAAsB;gBACtB,kCAAkC;aACnC;YACD,YAAY,EAAE;gBACZ,gBAAgB;gBAChB,sBAAsB;gBACtB,kCAAkC;gBAClC,4BAA4B;gBAC5B,gBAAgB;aACjB;SACF,CAAC;OACW,mBAAmB,CAM/B;IAAD,0BAAC;CAND;;AC9CA;;GAEG;;ACFH;;GAEG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"FsBlockEditorModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":19,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":21,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material/button","name":"MatButtonModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":26,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":27,"character":4},{"__symbolic":"reference","module":"@firestitch/html-editor","name":"FsHtmlEditorModule","line":29,"character":4},{"__symbolic":"reference","module":"@firestitch/file","name":"FsFileModule","line":30,"character":4},{"__symbolic":"reference","module":"@firestitch/colorpicker","name":"FsColorPickerModule","line":31,"character":4}],"exports":[{"__symbolic":"reference","name":"FsBlockComponent"},{"__symbolic":"reference","name":"FsBlockEditorComponent"},{"__symbolic":"reference","name":"FsBlockEditorSidebarPanelDirective"}],"declarations":[{"__symbolic":"reference","name":"FsBlockComponent"},{"__symbolic":"reference","name":"FsBlockEditorComponent"},{"__symbolic":"reference","name":"FsBlockEditorSidebarPanelDirective"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵc"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"FsBlockEditorModule"}}}}},"FsBlockComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":14,"character":1},"arguments":[{"selector":"fs-block","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":18,"character":19},"member":"OnPush"},"template":"<div\n #element\n class=\"block\"\n [ngClass]=\"{ editable: editable }\">\n <div\n #contentElement\n class=\"content\"\n [style.zIndex]=\"block.index\"\n [style.borderColor]=\"block.borderColor\"\n [style.borderWidth]=\"block.borderWidth ? block.borderWidth + 'pt' : ''\"\n [style.borderStyle]=\"block.borderColor ? 'solid' : 'dashed'\"\n [style.textAlign]=\"block.horizontalAlign\"\n [style.fontStyle]=\"block.italic ? 'italic' : ''\"\n [style.fontSize]=\"block.fontSize ? block.fontSize + 'pt' : ''\"\n [style.lineHeight]=\"block.lineHeight ? block.lineHeight + 'pt' : ''\"\n [style.color]=\"block.fontColor\"\n [style.fontWeight]=\"block.bold ? 'bold' : ''\"\n [style.textDecoration]=\"block.underline ? 'underline' : ''\"\n [style.paddingTop]=\"block.paddingTop ? block.paddingTop + unit : ''\"\n [style.paddingBottom]=\"block.paddingBottom ? block.paddingBottom + unit : ''\"\n [style.paddingLeft]=\"block.paddingLeft ? block.paddingLeft + unit : ''\"\n [style.paddingRight]=\"block.paddingRight ? block.paddingRight + unit : ''\"\n [style.padding]=\"block.padding ? block.padding + unit : ''\"\n [style.clipPath]=\"block.clipPath\"\n [style.backgroundColor]=\"block.backgroundColor\"\n [style.borderBottomLeftRadius]=\"block.shapeRadius && block.shapeBottomLeft === 'round' ? block.shapeRadius + unit : ''\"\n [style.borderBottomRightRadius]=\"block.shapeRadius && block.shapeBottomRight === 'round' ? block.shapeRadius + unit : ''\"\n [style.borderTopRightRadius]=\"block.shapeRadius && block.shapeTopRight === 'round' ? block.shapeRadius + unit : ''\"\n [style.borderTopLeftRadius]=\"block.shapeRadius && block.shapeTopLeft === 'round' ? block.shapeRadius + unit : ''\"\n [ngClass]=\"{\n 'editable': editable,\n 'vertical-align-center': block.verticalAlign === 'center',\n 'vertical-align-bottom': block.verticalAlign === 'bottom'\n }\">\n <img [src]=\"block.imageUrl\" *ngIf=\"block.imageUrl\">\n <div\n #contentEditable\n contenteditable=\"true\"\n class=\"content-editable\"\n [innerHTML]=\"content\">\n </div>\n </div>\n</div>\n","styles":[".block{position:absolute;display:block;outline:0;cursor:pointer}.block .content-editable{outline:0;position:relative;z-index:1}.block.editable .content-editable{cursor:text}.block .content{flex-direction:column;height:100%;display:flex;border:1px dashed #c5c5c5;position:relative;box-sizing:border-box}.block .content fs-html-editor{width:100%}.block .content.vertical-align-center{justify-content:center}.block .content.vertical-align-bottom{justify-content:flex-end}.block .content img{width:100%;height:100%;position:absolute}:host ::ng-deep fs-html-editor .bottom-line,:host ::ng-deep fs-html-editor .fr-toolbar{display:none!important}:host ::ng-deep fs-html-editor .fr-wrapper{background:0 0!important;border:none!important}:host ::ng-deep .moveable-line:not(.moveable-rotation-line):not(.moveable-guideline){background:0 0!important}"]}]}],"members":{"element":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":22,"character":3},"arguments":["element",{"static":true}]}]}],"contentElement":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":25,"character":3},"arguments":["contentElement",{"static":true}]}]}],"contentEditable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["contentEditable",{"static":true}]}]}],"htmlEditor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":31,"character":3},"arguments":[{"__symbolic":"reference","module":"@firestitch/html-editor","name":"FsHtmlEditorComponent","line":31,"character":13}]}]}],"block":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":34,"character":3}}]}],"html":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":35,"character":3}}]}],"changed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":37,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":53,"character":25},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":54,"character":20}]}],"padding":[{"__symbolic":"method"}],"shapeRound":[{"__symbolic":"method"}],"markForCheck":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"saveSelectedElements":[{"__symbolic":"method"}],"clearSelectedElements":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"pxToIn":[{"__symbolic":"method"}],"round":[{"__symbolic":"method"}],"deselect":[{"__symbolic":"method"}],"deselectContent":[{"__symbolic":"method"}],"selectAll":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"_setTransform":[{"__symbolic":"method"}],"_triggerChanged":[{"__symbolic":"method"}]}},"FsBlockEditorComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"fs-block-editor","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":19},"member":"OnPush"},"providers":[{"__symbolic":"reference","name":"ɵa"}],"template":"<div class=\"editor-container\">\n <div\n #artboardContainer\n class=\"artboard-container\"\n (click)=\"artboardClick($event)\">\n <div\n #artboard\n class=\"artboard mat-elevation-z2\"\n [style.width]=\"config.width + config.unit\"\n [style.height]=\"config.height + config.unit\">\n <fs-block\n *ngFor=\"let block of blocks; trackBy\"\n [block]=\"block\"\n (changed)=\"blockChanged($event)\">\n </fs-block>\n <div class=\"margin margin-top\" *ngIf=\"config.marginTop\" [style.top]=\"config.marginTop + 'in'\"></div>\n <div class=\"margin margin-left\" *ngIf=\"config.marginLeft\" [style.left]=\"config.marginLeft + 'in'\"></div>\n <div class=\"margin margin-bottom\" *ngIf=\"config.marginBottom\" [style.bottom]=\"config.marginBottom + 'in'\"></div>\n <div class=\"margin margin-right\" *ngIf=\"config.marginRight\" [style.right]=\"config.marginRight + 'in'\"></div>\n <div\n #marginContainer\n class=\"margin-container\"\n [style.top]=\"config.marginTop + 'in'\"\n [style.right]=\"config.marginRight + 'in'\"\n [style.bottom]=\"config.marginBottom + 'in'\"\n [style.left]=\"config.marginLeft + 'in'\"></div>\n </div>\n </div>\n <sidebar\n [config]=\"config\"\n [blocks]=\"blocks\"\n [blockComponents]=\"blockComponents\">\n </sidebar>\n</div>\n","styles":[".editor-container{display:flex;flex-direction:row;position:relative}.editor-container .artboard-container{display:flex;flex-grow:1;justify-content:center;padding:25px;overflow:auto;min-width:0}.editor-container .artboard-container .artboard{position:relative}.editor-container .artboard-container .artboard .margin-container{position:absolute;z-index:-1}.editor-container .artboard-container .artboard .margin{position:absolute;border:0 dashed #ff85bd5e}.editor-container .artboard-container .artboard .margin.margin-bottom,.editor-container .artboard-container .artboard .margin.margin-top{width:100%;border-top-width:1px}.editor-container .artboard-container .artboard .margin.margin-left,.editor-container .artboard-container .artboard .margin.margin-right{height:100%;border-left-width:1px}"]}]}],"members":{"sidebarPanels":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":28,"character":3},"arguments":[{"__symbolic":"reference","name":"FsBlockEditorSidebarPanelDirective"}]}]}],"blockComponents":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":31,"character":3},"arguments":[{"__symbolic":"reference","name":"FsBlockComponent"}]}]}],"artboard":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":34,"character":3},"arguments":["artboard",{"static":true}]}]}],"marginContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":37,"character":3},"arguments":["marginContainer",{"static":true}]}]}],"margins":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChildren","line":40,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵb"}]}]}],"artboardContainer":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":43,"character":3},"arguments":["artboardContainer",{"static":true}]}]}],"sidebar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":46,"character":3},"arguments":[{"__symbolic":"reference","name":"ɵc"},{"static":true}]}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":49,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":56,"character":17},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":58,"character":20}]}],"ngOnInit":[{"__symbolic":"method"}],"artboardClick":[{"__symbolic":"method"}],"blockChanged":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"Block":{"__symbolic":"interface"},"BlockEditorConfig":{"__symbolic":"interface"},"FsBlockEditorSidebarPanelDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[fsBlockEditorSidebarPanel]"}]}],"members":{"label":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":8,"character":3}}]}],"show":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":9,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"addBlock":[{"__symbolic":"method"}],"removeBlock":[{"__symbolic":"method"}],"isSelectedBlock":[{"__symbolic":"method"}],"indexOf":[{"__symbolic":"method"}],"saveSelection":[{"__symbolic":"method"}],"restoreSelection":[{"__symbolic":"method"}],"hasSelectionRange":[{"__symbolic":"method"}],"registerBlock":[{"__symbolic":"method"}],"registerContainer":[{"__symbolic":"method"}],"registerMargin":[{"__symbolic":"method"}],"sanitizeBlock":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":3,"character":1},"arguments":[{"selector":"[fsBlockEditorMargin]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":9,"character":25}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":17,"character":1},"arguments":[{"selector":"sidebar","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":21,"character":19},"member":"OnPush"},"template":"<div class=\"sidebar mat-elevation-z2\">\n <div class=\"sidebar-panel\">\n <div class=\"sidebar-label\">Tools</div>\n <div class=\"sidebar-row\">\n <button\n mat-icon-button\n color=\"basic\"\n type=\"button\"\n (click)=\"blockAddClick()\">\n <mat-icon>add</mat-icon>\n </button>\n <ng-container *ngIf=\"block\">\n <button\n mat-icon-button\n color=\"basic\"\n type=\"button\"\n (click)=\"blockRemoveClick()\">\n <mat-icon>clear</mat-icon>\n </button>\n <button\n class=\"layer-up\"\n mat-icon-button\n color=\"basic\"\n type=\"button\"\n (click)=\"layerUp()\">\n <mat-icon>arrow_back</mat-icon>\n <mat-icon>layers</mat-icon>\n </button>\n <button\n class=\"layer-down\"\n mat-icon-button\n color=\"basic\"\n type=\"button\"\n (click)=\"layerDown()\">\n <mat-icon>arrow_back</mat-icon>\n <mat-icon>layers</mat-icon>\n </button>\n </ng-container>\n </div>\n </div>\n <ng-container *ngIf=\"block\">\n <div class=\"sidebar-panel info-panel\">\n <div class=\"sidebar-label\">Info</div>\n <div class=\"sidebar-row\">\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.width\"\n name=\"width\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"widthChange($event)\">\n <span matPrefix>W</span>\n </mat-form-field>\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.height\"\n name=\"height\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"heightChange($event)\">\n <span matPrefix>H</span>\n </mat-form-field>\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.left\"\n name=\"left\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"leftChange($event)\">\n <span matPrefix>X</span>\n </mat-form-field>\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.top\"\n name=\"top\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"topChange($event)\">\n <span matPrefix>Y</span>\n </mat-form-field>\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.rotate || 0\"\n name=\"rotate\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"rotateChange($event)\">\n <span matPrefix>R</span>\n </mat-form-field>\n </div>\n </div>\n <div class=\"sidebar-panel typography-panel\">\n <div class=\"sidebar-label\">Typography</div>\n <div class=\"sidebar-row\">\n <fs-color-picker-chip\n (changed)=\"fontColorChange($event)\"\n [color]=\"block.fontColor\">\n </fs-color-picker-chip>\n\n <mat-form-field class=\"form-field-padless font-size\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.fontSize\"\n name=\"fontSize\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"fontSizeChange($event)\"\n placeholder=\"Size\">\n <span matPrefix *ngIf=\"block.fontSize\">S</span>\n </mat-form-field>\n\n <mat-form-field class=\"form-field-padless line-height\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.lineHeight\"\n name=\"lineHeight\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"lineHeightChange($event)\"\n placeholder=\"Line\">\n <span matPrefix *ngIf=\"block.lineHeight\">L</span>\n </mat-form-field>\n </div>\n\n <div class=\"sidebar-row style-row\">\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.bold }\"\n (click)=\"boldClick()\">\n <mat-icon>format_bold</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.italic }\"\n (click)=\"italicClick()\">\n <mat-icon>format_italic</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.underline }\"\n (click)=\"underlineClick()\">\n <mat-icon>format_underline</mat-icon>\n </button>\n </div>\n\n <div class=\"sidebar-row align-row\">\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.horizontalAlign === 'left' }\"\n (click)=\"horizontalAlignClick('left')\">\n <mat-icon>format_align_left</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.horizontalAlign === 'center' }\"\n (click)=\"horizontalAlignClick('center')\">\n <mat-icon>format_align_center</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.horizontalAlign === 'right' }\"\n (click)=\"horizontalAlignClick('right')\">\n <mat-icon>format_align_right</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.verticalAlign === 'top' }\"\n (click)=\"verticalAlignClick('top')\">\n <mat-icon>vertical_align_top</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.verticalAlign === 'center' }\"\n (click)=\"verticalAlignClick('center')\">\n <mat-icon>vertical_align_center</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: block.verticalAlign === 'bottom' }\"\n (click)=\"verticalAlignClick('bottom')\">\n <mat-icon>vertical_align_bottom</mat-icon>\n </button>\n </div>\n </div>\n <div class=\"sidebar-panel\">\n <div class=\"sidebar-label\">Border</div>\n\n <div class=\"sidebar-row\">\n <fs-color-picker-chip\n (changed)=\"borderColorChange($event)\"\n [color]=\"block.borderColor\">\n </fs-color-picker-chip>\n\n <mat-form-field class=\"form-field-padless border-width\" floatLabel=\"never\">\n <input\n matInput\n [(ngModel)]=\"block.borderWidth\"\n name=\"borderWidth\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"borderWidthChange($event)\"\n placeholder=\"Width\">\n <span matPrefix *ngIf=\"block.borderWidth\">W</span>\n </mat-form-field>\n </div>\n </div>\n\n <div class=\"sidebar-panel\">\n <div class=\"sidebar-label\">Shape</div>\n\n <div class=\"sidebar-row\">\n <fs-color-picker-chip\n (changed)=\"backgroundColorChange($event)\"\n [color]=\"block.backgroundColor\">\n </fs-color-picker-chip>\n\n <mat-form-field class=\"form-field-padless shape-radius\" floatLabel=\"never\">\n <input\n matInput\n [(ngModel)]=\"block.shapeRadius\"\n name=\"shapeRadius\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"shapeRadiusChange($event)\"\n placeholder=\"Radius\">\n <span matPrefix *ngIf=\"block.shapeRadius\">R</span>\n </mat-form-field>\n\n <div class=\"shape-corners\">\n <div\n class=\"shape-corner shape-corner-top-left\"\n [ngClass]=\"{ round: block.shapeTopLeft === 'round' }\"\n (click)=\"shapeRound('shapeTopLeft')\"></div>\n <div\n class=\"shape-corner shape-corner-top-right\"\n [ngClass]=\"{ round: block.shapeTopRight === 'round' }\"\n (click)=\"shapeRound('shapeTopRight')\"></div>\n <div\n class=\"shape-corner shape-corner-bottom-left\"\n [ngClass]=\"{ round: block.shapeBottomLeft === 'round' }\"\n (click)=\"shapeRound('shapeBottomLeft')\"></div>\n <div\n class=\"shape-corner shape-corner-bottom-right\"\n [ngClass]=\"{ round: block.shapeBottomRight === 'round' }\"\n (click)=\"shapeRound('shapeBottomRight')\"></div>\n </div>\n </div>\n </div>\n <div class=\"sidebar-panel\">\n <div class=\"sidebar-label\">Image</div>\n <div class=\"sidebar-row image-row\">\n <fs-file (select)=\"fileSelect($event)\">\n <button type=\"button\" mat-icon-button><mat-icon>cloud_upload</mat-icon></button>\n </fs-file>\n <ng-container *ngIf=\"block.imageUrl\">\n <button\n mat-icon-button\n color=\"basic\"\n type=\"button\"\n (click)=\"imageRemove()\">\n <mat-icon>clear</mat-icon>\n </button>\n <button\n mat-icon-button\n class=\"toggle-button\"\n color=\"basic\"\n type=\"button\"\n [ngClass]=\"{ selected: clippable }\"\n (click)=\"imageClip()\">\n <mat-icon>crop</mat-icon>\n </button>\n </ng-container>\n </div>\n </div>\n <div class=\"sidebar-panel\">\n <div class=\"sidebar-label\">Padding</div>\n <div class=\"sidebar-row padding-row\">\n\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.padding\"\n name=\"padding\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"paddingAllChange($event)\"\n placeholder=\"All\">\n <span matPrefix *ngIf=\"block.padding\">A</span>\n </mat-form-field>\n\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.paddingTop\"\n name=\"paddingTop\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"paddingChange('paddingTop',$event)\"\n placeholder=\"Top\">\n <span matPrefix *ngIf=\"block.paddingTop\">T</span>\n </mat-form-field>\n\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.paddingBottom\"\n name=\"paddingBottom\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"paddingChange('paddingBottom',$event)\"\n placeholder=\"Bottom\">\n <span matPrefix *ngIf=\"block.paddingBottom\">B</span>\n </mat-form-field>\n\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.paddingLeft\"\n name=\"paddingLeft\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"paddingChange('paddingLeft',$event)\"\n placeholder=\"Left\">\n <span matPrefix *ngIf=\"block.paddingLeft\">L</span>\n </mat-form-field>\n\n <mat-form-field class=\"form-field-padless\" floatLabel=\"never\">\n <input\n matInput\n [ngModel]=\"block.paddingRight\"\n name=\"paddingRight\"\n (focus)=\"inputFocus($event)\"\n (ngModelChange)=\"paddingChange('paddingRight',$event)\"\n placeholder=\"Right\">\n <span matPrefix *ngIf=\"block.paddingRight\">R</span>\n </mat-form-field>\n </div>\n </div>\n </ng-container>\n\n <ng-container *ngFor=\"let sidebarPanel of sidebarPanels\">\n <div div class=\"sidebar-panel\" *ngIf=\"sidebarPanel.show\">\n <div class=\"sidebar-label\">{{sidebarPanel.label}}</div>\n <ng-container\n [ngTemplateOutlet]=\"sidebarPanel.templateRef\"\n [ngTemplateOutletContext]=\"{ block: block }\"></ng-container>\n </div>\n </ng-container>\n</div>\n","styles":[".sidebar{width:285px;font-size:14px;height:100%}.sidebar .sidebar-row{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}.sidebar .sidebar-row.padding-row{flex-wrap:unset}.sidebar .sidebar-row.padding-row ::ng-deep .mat-form-field{width:20%;min-width:0}.sidebar .sidebar-row.image-row{margin-bottom:-5px}.sidebar .sidebar-row ::ng-deep .field-label,.sidebar .sidebar-row ::ng-deep .mat-form-field-prefix{color:#a5a5a5;font-size:11px;margin-right:2px}.sidebar .sidebar-row ::ng-deep .mat-form-field{font-size:12px}.sidebar .sidebar-row>:not(.mat-icon-button):not(fs-file){margin-right:11px}.sidebar .sidebar-row>:not(.mat-icon-button):not(fs-file):last-child{margin-right:0}.sidebar .layer-down ::ng-deep .mat-button-wrapper,.sidebar .layer-up ::ng-deep .mat-button-wrapper{position:relative}.sidebar .layer-down ::ng-deep .mat-button-wrapper mat-icon:first-child,.sidebar .layer-up ::ng-deep .mat-button-wrapper mat-icon:first-child{position:absolute;transform:rotate(90deg) scale(.6);top:-6px;color:#fff}.sidebar .layer-down mat-icon:first-child{transform:rotate(270deg) scale(.6)}.sidebar .border-width,.sidebar .font-size,.sidebar .line-height,.sidebar .padding{width:45px}.sidebar .shape-radius{width:50px}.sidebar .shape-corners{display:-ms-grid;display:grid;-ms-grid-columns:1fr 1fr;grid-template-columns:1fr 1fr;-moz-column-gap:1px;column-gap:1px;row-gap:1px}.sidebar .shape-corners .shape-corner{height:13px;width:13px;background-color:#ccc;cursor:pointer}.sidebar .shape-corners .shape-corner.round.shape-corner-top-right{border-top-right-radius:50%}.sidebar .shape-corners .shape-corner.round.shape-corner-top-left{border-top-left-radius:50%}.sidebar .shape-corners .shape-corner.round.shape-corner-bottom-left{border-bottom-left-radius:50%}.sidebar .shape-corners .shape-corner.round.shape-corner-bottom-right{border-bottom-right-radius:50%}.sidebar button.toggle-button:not(.selected) mat-icon{color:#ccc}.sidebar .sidebar-panel{padding:10px;border-bottom:1px solid #dadada}.sidebar .sidebar-panel.info-panel .sidebar-row{justify-content:space-evenly}.sidebar .sidebar-panel.info-panel .sidebar-row .mat-form-field{width:41px}.sidebar .sidebar-panel.info-panel .sidebar-row>{margin:0}.sidebar .sidebar-panel.typography-panel .style-row{margin-bottom:-10px}.sidebar .sidebar-panel.typography-panel .align-row{margin-bottom:-5px}.sidebar .sidebar-panel .sidebar-label{font-size:11px;margin-bottom:3px;color:#9e9e9e}"]}]}],"members":{"sidebarPanels":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":25,"character":3},"arguments":[{"__symbolic":"reference","name":"FsBlockEditorSidebarPanelDirective"}]}]}],"config":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":28,"character":3}}]}],"blocks":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"blockComponents":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":30,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":38,"character":17},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":40,"character":20}]}],"ngOnInit":[{"__symbolic":"method"}],"verticalAlignClick":[{"__symbolic":"method"}],"boldClick":[{"__symbolic":"method"}],"fontColorChange":[{"__symbolic":"method"}],"lineHeightChange":[{"__symbolic":"method"}],"fontSizeChange":[{"__symbolic":"method"}],"borderWidthChange":[{"__symbolic":"method"}],"italicClick":[{"__symbolic":"method"}],"underlineClick":[{"__symbolic":"method"}],"backgroundColorChange":[{"__symbolic":"method"}],"widthChange":[{"__symbolic":"method"}],"heightChange":[{"__symbolic":"method"}],"topChange":[{"__symbolic":"method"}],"leftChange":[{"__symbolic":"method"}],"rotateChange":[{"__symbolic":"method"}],"paddingChange":[{"__symbolic":"method"}],"paddingAllChange":[{"__symbolic":"method"}],"borderColorChange":[{"__symbolic":"method"}],"horizontalAlignClick":[{"__symbolic":"method"}],"shapeRound":[{"__symbolic":"method"}],"imageRemove":[{"__symbolic":"method"}],"imageClip":[{"__symbolic":"method"}],"shapeRadiusChange":[{"__symbolic":"method"}],"fileSelect":[{"__symbolic":"method"}],"blockRemoveClick":[{"__symbolic":"method"}],"blockAddClick":[{"__symbolic":"method"}],"addBlock":[{"__symbolic":"method"}],"_updateIndexes":[{"__symbolic":"method"}],"layerMove":[{"__symbolic":"method"}],"layerUp":[{"__symbolic":"method"}],"layerDown":[{"__symbolic":"method"}],"getBlock":[{"__symbolic":"method"}],"blockChanged":[{"__symbolic":"method"}],"inputFocus":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"validNumeric":[{"__symbolic":"method"}]}}},"origins":{"FsBlockEditorModule":"./app/fs-block-editor.module","FsBlockComponent":"./app/components/block/block.component","FsBlockEditorComponent":"./app/components/block-editor/block-editor.component","Block":"./app/interfaces/block","BlockEditorConfig":"./app/interfaces/block-editor-config","FsBlockEditorSidebarPanelDirective":"./app/directives/block-editor-sidebar-panel.directive","ɵa":"./app/services/block-editor.service","ɵb":"./app/directives/block-editor-margin.directive","ɵc":"./app/components/sidebar/sidebar.component"},"importAs":"@firestitch/block-editor"}
|