@acorex/layout 3.0.47 → 3.0.48

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"acorex-layout.js","sources":["ng://@acorex/layout/lib/widget-board/widget.class.ts","ng://@acorex/layout/lib/widget-board/widget-config.component.ts","ng://@acorex/layout/lib/widget-board/widget-save.component.ts","ng://@acorex/layout/lib/widget-board/widget-host.component.ts","ng://@acorex/layout/lib/widget-board/widget-board.component.ts","ng://@acorex/layout/lib/widget-board/editors/widget-size-editor/widget-size.editor.ts","ng://@acorex/layout/lib/widget-board/editors/widget-size-editor/widget-size.module.ts","ng://@acorex/layout/lib/widget-board/widget-board.module.ts","ng://@acorex/layout/acorex-layout.ts"],"sourcesContent":["import { EventEmitter } from '@angular/core';\r\nimport { AXValueEvent, AXBaseEvent, propertyEditor, AXDataEvent } from '@acorex/components';\r\nimport { AXHtmlUtil, AXTranslator } from '@acorex/core';\r\n\r\nexport interface AXWidgetConfig {\r\n uniqueName: string;\r\n component: any;\r\n title: string;\r\n sizeX: number;\r\n sizeY: number;\r\n col?: number;\r\n row?: number;\r\n options?: any;\r\n props?: any;\r\n}\r\n\r\nexport interface AXWidgetConfigChanged extends AXBaseEvent {\r\n config: AXWidgetConfig;\r\n}\r\n\r\n\r\n\r\nexport interface AXWidgetBoardConfigChanged extends AXBaseEvent {\r\n\r\n}\r\n\r\nexport interface AXWidgetConfigSavedEvent extends AXDataEvent<AXWidgetSaveAsData> {\r\n\r\n}\r\n\r\n\r\nexport interface AXWidgetSaveAsData {\r\n title?: string;\r\n description?: string;\r\n icon?: string;\r\n group?: string;\r\n //\r\n uniqueName: string;\r\n component: any;\r\n options?: any;\r\n props?: any;\r\n}\r\n\r\n// @dynamic\r\nexport abstract class AXWidgetComponent {\r\n\r\n readonly uid: string = AXHtmlUtil.getUID();\r\n provideValue: (e: any) => any;\r\n\r\n onBusyChanged: EventEmitter<AXValueEvent<boolean>> = new EventEmitter<AXValueEvent<boolean>>();\r\n\r\n private _isBusy: boolean = true;\r\n public get isBusy(): boolean {\r\n return this._isBusy;\r\n }\r\n public set isBusy(v: boolean) {\r\n if (v !== this._isBusy) {\r\n const eventData: AXValueEvent<boolean> = {\r\n component: this,\r\n oldValue: this._isBusy,\r\n value: v\r\n };\r\n this._isBusy = v;\r\n this.onBusyChanged.emit(eventData);\r\n }\r\n }\r\n\r\n @propertyEditor({\r\n editorClass: 'ax/editors/widget-size',\r\n title: 'common.size',\r\n visible: false,\r\n order: -99,\r\n })\r\n widgetSize: number[];\r\n\r\n @propertyEditor({\r\n editorClass: 'ax/editors/select',\r\n title: 'common.refresh-rate',\r\n visible: true,\r\n order: -98,\r\n editorOptions: {\r\n items: () => {\r\n return [1, 2, 3, 5, 10, 20, 30, 60].map(c => ({\r\n id: 60000 * c,\r\n text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())\r\n }));\r\n },\r\n allowNull: false,\r\n allowSearch: false,\r\n selectionDataMode: 'value',\r\n selectionMode: 'single',\r\n valueField: 'id',\r\n }\r\n })\r\n refreshRate: any = [{\r\n id: 60000 * 5,\r\n text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')\r\n }];\r\n\r\n // ???\r\n getRefreshRate() {\r\n return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;\r\n }\r\n\r\n private intervalId: number;\r\n\r\n constructor() {\r\n this.onConfiguredChanged.subscribe(() => {\r\n if (this.isConfigured === true && this.getRefreshRate()) {\r\n this.restartRefreshTimer();\r\n }\r\n else {\r\n this.stopRefreshTimer();\r\n }\r\n });\r\n }\r\n\r\n\r\n private startRefreshTimer() {\r\n this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());\r\n }\r\n\r\n private stopRefreshTimer() {\r\n window.clearInterval(this.intervalId);\r\n }\r\n\r\n private restartRefreshTimer() {\r\n this.stopRefreshTimer();\r\n this.startRefreshTimer();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.stopRefreshTimer();\r\n }\r\n\r\n public redraw() {\r\n\r\n }\r\n\r\n public refresh() {\r\n this.restartRefreshTimer();\r\n }\r\n\r\n onConfiguredChanged: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n get isConfigured(): boolean {\r\n return true;\r\n }\r\n\r\n public setValue(name: string, value?: any) {\r\n this[name] = value;\r\n this.onConfiguredChanged.emit();\r\n }\r\n\r\n public getValue(name: string): Promise<any> {\r\n const val = this[name];\r\n const config = this['__meta__'].config;\r\n const runtime = config.props[name]?.runtime;\r\n if (runtime && this.provideValue) {\r\n const res = this.provideValue({\r\n name,\r\n value: val,\r\n uniqueName: config.uniqueName,\r\n options: config.options,\r\n });\r\n if (this.provideValue instanceof Promise) {\r\n return res;\r\n }\r\n else {\r\n return Promise.resolve(res);\r\n }\r\n }\r\n return Promise.resolve(val);\r\n }\r\n\r\n}","import { Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild } from '@angular/core';\r\nimport { AXPropertyConfig, AXBasePopupPageComponent, AXMenuItemClickEvent, AXProperyEditorValueChangeEvent, AXValidationFormComponent } from '@acorex/components';\r\nimport { AXButtonItem, AXTranslator } from '@acorex/core';\r\nimport { AXWidgetComponent } from './widget.class';\r\n\r\n\r\n@Component({\r\n templateUrl: './widget-config.component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\n\r\nexport class AXWidgetConfigComponent extends AXBasePopupPageComponent {\r\n\r\n @ViewChild(AXValidationFormComponent) form: AXValidationFormComponent;\r\n\r\n constructor(private cdr: ChangeDetectorRef) {\r\n super();\r\n }\r\n\r\n\r\n widget: AXWidgetComponent;\r\n props: AXPropertyConfig[] = [];\r\n displayProps: AXPropertyConfig[] = [];\r\n\r\n\r\n changes: AXPropertyConfig[] = [];\r\n\r\n context: any = {};\r\n\r\n\r\n getFooterButtons(): AXButtonItem[] {\r\n return [\r\n {\r\n name: 'okay',\r\n submitBehavior: true,\r\n text: AXTranslator.get('common.confirm'),\r\n style: 'success'\r\n },\r\n {\r\n name: 'cancel',\r\n cancelBehavior: true,\r\n text: AXTranslator.get('common.cancel'),\r\n style: 'danger blank'\r\n }\r\n ];\r\n }\r\n\r\n\r\n\r\n\r\n\r\n onFooterButtonClick(e: AXMenuItemClickEvent) {\r\n if (e.name === 'cancel') {\r\n this.close();\r\n }\r\n if (e.name === 'okay') {\r\n this.form.validate().then(c => {\r\n if (c.result) {\r\n this.close(this.changes);\r\n }\r\n });\r\n }\r\n }\r\n\r\n handleValueChange(e: AXProperyEditorValueChangeEvent) {\r\n const prop = this.changes.find(c => c.property.name === e.property.name);\r\n if (prop) {\r\n prop.value = e.value;\r\n }\r\n else {\r\n this.changes.push({ property: e.property, value: e.value });\r\n }\r\n this.updateContext();\r\n }\r\n\r\n ngOnInit() {\r\n this.displayProps = this.props.filter(c => c.property.visible !== false).sort((a, b) => a.property.order - b.property.order);\r\n this.updateContext();\r\n }\r\n\r\n\r\n private updateContext() {\r\n const ctx = {};\r\n this.props.forEach(p => {\r\n ctx[p.property.name] = p.value;\r\n });\r\n this.changes.forEach(p => {\r\n ctx[p.property.name] = p.value;\r\n });\r\n this.context = ctx;\r\n }\r\n\r\n\r\n identify(index, item: AXPropertyConfig) {\r\n return item.property.name;\r\n }\r\n\r\n}","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n\r\n} from '@angular/core';\r\nimport { AXWidgetConfig, AXWidgetSaveAsData } from './widget.class';\r\nimport { AXButtonItem, AXHtmlUtil, AXObjectUtil, AXTranslator } from '@acorex/core';\r\nimport { AXPropertyConfig, AXMenuItemClickEvent, AXBasePopupPageComponent } from '@acorex/components';\r\n\r\n\r\n\r\n@Component({\r\n templateUrl: \"./widget-save.component.html\",\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXWidgetSaveComponent extends AXBasePopupPageComponent {\r\n config: AXWidgetConfig;\r\n props: AXPropertyConfig[] = [];\r\n displayProps: { name: string, title: string, allow: boolean }[];\r\n\r\n data: AXWidgetSaveAsData;\r\n\r\n getFooterButtons(): AXButtonItem[] {\r\n return [\r\n {\r\n name: 'okay',\r\n submitBehavior: true,\r\n text: AXTranslator.get('common.confirm'),\r\n style: 'ax success'\r\n },\r\n {\r\n name: 'cancel',\r\n cancelBehavior: true,\r\n text: AXTranslator.get('common.cancel'),\r\n style: 'ax light'\r\n }\r\n ];\r\n }\r\n\r\n ngOnInit() {\r\n const titleProp = this.props.find(c => c.property.name === 'title' || c.property.name === 'name');\r\n const title = titleProp?.value || this.config.title;\r\n const pp: any = {};\r\n this.props?.forEach(c => {\r\n pp[c.property.name] = c.property;\r\n });\r\n this.data = {\r\n component: this.config.component,\r\n title,\r\n uniqueName: `${this.config.uniqueName}-${AXHtmlUtil.getUID()}`,\r\n options: AXObjectUtil.deepJSONClone(this.config.options),\r\n props: AXObjectUtil.deepJSONClone(pp)\r\n };\r\n this.displayProps = this.props\r\n .filter(c => c.property.visible !== false)\r\n .sort((a, b) => a.property.order - b.property.order)\r\n .map(c => ({\r\n name: c.property.name,\r\n title: c.property.title,\r\n allow: true\r\n }));\r\n }\r\n\r\n\r\n\r\n onFooterButtonClick(e: AXMenuItemClickEvent) {\r\n if (e.name === 'cancel') {\r\n this.close();\r\n }\r\n if (e.name === 'okay') {\r\n this.props.forEach(p => {\r\n const pp = this.displayProps.find(c => c.name === p.property.name);\r\n if (pp == null || !pp.allow) {\r\n let ppp = this.data.props[p.property.name];\r\n if (ppp) {\r\n ppp.visible = false;\r\n }\r\n else {\r\n ppp = { visible: false };\r\n }\r\n }\r\n });\r\n this.close(this.data);\r\n }\r\n }\r\n}","import {\r\n Component,\r\n ViewEncapsulation, Input,\r\n ElementRef, HostBinding, ComponentFactoryResolver, ViewChild,\r\n ViewContainerRef, Output, EventEmitter, ChangeDetectionStrategy,\r\n ChangeDetectorRef, ComponentRef\r\n} from '@angular/core';\r\nimport { AXWidgetConfig, AXWidgetComponent, AXWidgetConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';\r\nimport { AXObjectUtil, AXRenderService } from '@acorex/core';\r\nimport { AXPopupService, AXPropertyDecorators, AXPropertyDecorator, AXLoadingService } from '@acorex/components';\r\nimport { AXWidgetConfigComponent } from './widget-config.component';\r\nimport { AXMenuItem } from '@acorex/core';\r\nimport { AXTranslator } from '@acorex/core';\r\nimport { AXWidgetSaveComponent } from './widget-save.component';\r\n\r\n\r\n\r\n\r\n\r\n@Component({\r\n selector: 'ax-widget-host',\r\n templateUrl: \"./widget-host.component.html\",\r\n host: { class: 'ax widget-host', tabindex: '0' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\n\r\nexport class AXWidgetHostComponent {\r\n\r\n private _widget: AXWidgetComponent;\r\n public get widget(): AXWidgetComponent {\r\n return this._widget;\r\n }\r\n\r\n _hasProps: boolean = false;\r\n\r\n\r\n _hasMenu: boolean = false;\r\n\r\n @Input()\r\n provideValue: (e: any) => any;\r\n\r\n\r\n get element(): HTMLDivElement {\r\n return this.ref.nativeElement;\r\n }\r\n\r\n\r\n configMenuItem: AXMenuItem[] = [\r\n {\r\n icon: 'far fa-ellipsis-h',\r\n items: []\r\n }\r\n ];\r\n\r\n\r\n @Output()\r\n onRemove: EventEmitter<AXWidgetHostComponent> = new EventEmitter<AXWidgetHostComponent>();\r\n\r\n @Output()\r\n onConfigChanged: EventEmitter<AXWidgetConfigChanged> = new EventEmitter<AXWidgetConfigChanged>();\r\n\r\n\r\n @Output()\r\n onResized: EventEmitter<AXWidgetConfigChanged> = new EventEmitter<AXWidgetConfigChanged>();\r\n\r\n @Output()\r\n onSave: EventEmitter<AXWidgetConfigSavedEvent> = new EventEmitter<AXWidgetConfigSavedEvent>();\r\n\r\n @Input()\r\n config: AXWidgetConfig;\r\n\r\n @ViewChild('vc', { read: ViewContainerRef })\r\n vc: ViewContainerRef;\r\n\r\n private componentRef: ComponentRef<any>;\r\n //private isLoading: boolean = true;\r\n\r\n // get isBusy() {\r\n // return this._widget?.isBusy || this.isLoading;\r\n // }\r\n\r\n\r\n private _loadingId: number;\r\n\r\n private _isLoading: boolean = false;\r\n public get isLoading(): boolean {\r\n return this._isLoading;\r\n }\r\n public set isLoading(v: boolean) {\r\n this._isLoading = v;\r\n if (this._loadingId && !v) {\r\n this.loadingService.hide(this._loadingId);\r\n this._loadingId = null;\r\n }\r\n if (v) {\r\n this._loadingId = this.loadingService.show(this.ref.nativeElement);\r\n }\r\n }\r\n\r\n\r\n get isConfigured(): boolean {\r\n return this._widget?.isConfigured || false;\r\n }\r\n\r\n\r\n constructor(\r\n private ref: ElementRef<HTMLDivElement>,\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private rendererService: AXRenderService,\r\n private cdr: ChangeDetectorRef,\r\n private popup: AXPopupService,\r\n private loadingService: AXLoadingService\r\n\r\n ) {\r\n\r\n }\r\n\r\n\r\n ngOnInit() {\r\n this.isLoading = true;\r\n }\r\n\r\n\r\n async ngAfterViewInit() {\r\n let component: any;\r\n if (typeof this.config.component === 'string') {\r\n const route = await this.rendererService.findLoadedComponentByRoute(this.config.component, 20);\r\n component = route?.component;\r\n }\r\n else if (typeof this.config.component === 'function') {\r\n component = this.config.component;\r\n }\r\n if (component == null) {\r\n console.error(`Invalid Widget Component!`, this.config);\r\n this.onRemove.emit(this);\r\n return;\r\n }\r\n\r\n const widgetFactory = this.componentFactoryResolver.resolveComponentFactory(component);\r\n this.componentRef = this.vc.createComponent(widgetFactory);\r\n this._widget = this.componentRef.instance as AXWidgetComponent;\r\n this._widget.provideValue = this.provideValue;\r\n if (this._widget.onBusyChanged) {\r\n this._widget.onBusyChanged.subscribe((d) => {\r\n if (!this._widget.widgetSize) {\r\n this._widget.setValue('widgetSize', [this.sizeX, this.sizeY]);\r\n }\r\n else {\r\n this.setSizeFromOptions();\r\n }\r\n this.isLoading = d.value;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n if (this._widget.onConfiguredChanged) {\r\n this._widget.onConfiguredChanged.subscribe(() => {\r\n this.setSizeFromOptions();\r\n });\r\n }\r\n //\r\n if (this.config.options) {\r\n Object.assign(this._widget, this.config.options);\r\n }\r\n this._hasProps = AXPropertyDecorators.getProperties(this._widget).length > 0;\r\n\r\n this.isLoading = false;\r\n this.config['__meta__'].instance = this;\r\n this._widget['__meta__'] = {};\r\n this._widget['__meta__'].config = this.config;\r\n //\r\n if (this._hasProps) {\r\n this.configMenuItem[0].items.push({\r\n name: 'configs',\r\n icon: 'far fa-cogs',\r\n text: AXTranslator.get('common.configs'),\r\n onClick: () => {\r\n this.openConfigDialog();\r\n }\r\n });\r\n }\r\n this.configMenuItem[0].items.push({\r\n name: 'save',\r\n icon: 'far fa-save',\r\n text: AXTranslator.get('common.save-as'),\r\n onClick: () => {\r\n this.openSaveDialog();\r\n }\r\n });\r\n if (true) {\r\n this.configMenuItem[0].items.push({\r\n name: 'remove',\r\n icon: 'far fa-times',\r\n style: 'ax danger blank',\r\n text: AXTranslator.get('common.remove'),\r\n onClick: () => {\r\n this.onRemove.emit(this);\r\n }\r\n });\r\n }\r\n this._hasMenu = this.configMenuItem[0].items.length > 0;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n @HostBinding('attr.data-size-x')\r\n @Input()\r\n sizeX: number = 1;\r\n\r\n @HostBinding('attr.data-size-y')\r\n @Input()\r\n sizeY: number = 1;\r\n\r\n @HostBinding('attr.data-col')\r\n @Input()\r\n col: number = 1;\r\n\r\n\r\n @HostBinding('attr.data-row')\r\n @Input()\r\n row: number = 1;\r\n\r\n\r\n private setSizeFromOptions() {\r\n this._widget.getValue('widgetSize').then(c => {\r\n const oldSizeX = this.sizeX;\r\n const oldSizeY = this.sizeY;\r\n if (c && Array.isArray(c) && (oldSizeX !== c[0] || oldSizeY !== c[1])) {\r\n this.config.sizeX = this.sizeX = c[0];\r\n this.config.sizeY = this.sizeY = c[1];\r\n this.onResized.emit({\r\n component: this._widget,\r\n config: this.config\r\n });\r\n }\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n remove(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.onRemove.emit(this);\r\n return false;\r\n }\r\n\r\n handleConfig(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.openConfigDialog();\r\n return false;\r\n }\r\n\r\n private openConfigDialog() {\r\n const ppp = this.getMergedProps();\r\n this.popup.open(AXWidgetConfigComponent, {\r\n title: AXTranslator.get('common.configs'),\r\n size: 'sm',\r\n data: {\r\n props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] })),\r\n widget: this.widget\r\n }\r\n }).then(c => {\r\n if (c.data) {\r\n if (!this.config.options) {\r\n this.config.options = {};\r\n }\r\n c.data.forEach(p => {\r\n this._widget.setValue(p.property.name, p.value);\r\n this.config.options[p.property.name] = p.value;\r\n });\r\n this.emitConfigChanged();\r\n this._widget.redraw();\r\n this.cdr.detectChanges();\r\n }\r\n });\r\n }\r\n\r\n private openSaveDialog() {\r\n const ppp = this.getMergedProps();\r\n this.popup.open(AXWidgetSaveComponent, {\r\n title: AXTranslator.get('common.save-as'),\r\n size: 'sm',\r\n data: {\r\n config: this.config,\r\n props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] }))\r\n }\r\n }).then(c => {\r\n if (c.data) {\r\n this.onSave.emit({\r\n component: this._widget,\r\n data: c.data\r\n });\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n handleOptionClick(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.openConfigDialog();\r\n return false;\r\n }\r\n\r\n ngOnDestroy() {\r\n this.vc.clear();\r\n if (this.componentRef) {\r\n this.componentRef.destroy();\r\n }\r\n }\r\n\r\n private getMergedProps(): AXPropertyDecorator[] {\r\n const ppp = AXObjectUtil.deepCopy(AXPropertyDecorators.getProperties(this._widget)) as AXPropertyDecorator[];\r\n for (const key in this.config.props) {\r\n if (Object.prototype.hasOwnProperty.call(this.config.props, key)) {\r\n const newP = this.config.props[key];\r\n const existPropDec = ppp.find(p => p.property === key);\r\n if (existPropDec) {\r\n Object.assign(existPropDec.options, newP);\r\n }\r\n }\r\n }\r\n return ppp;\r\n }\r\n\r\n private emitConfigChanged() {\r\n this.onConfigChanged.emit({\r\n component: this._widget,\r\n config: this.config\r\n });\r\n }\r\n\r\n}","import {\r\n Component,\r\n OnInit,\r\n Input,\r\n ViewEncapsulation,\r\n ElementRef,\r\n ViewChild,\r\n NgZone,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Output,\r\n EventEmitter, ViewChildren, QueryList\r\n} from '@angular/core';\r\nimport {\r\n AXWidgetConfig,\r\n AXWidgetConfigChanged,\r\n AXWidgetBoardConfigChanged,\r\n AXWidgetConfigSavedEvent\r\n} from './widget.class';\r\nimport { AXWidgetHostComponent } from './widget-host.component';\r\nimport { AXHtmlUtil, AXClientRec } from '@acorex/core';\r\nimport { Observable } from 'rxjs';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'ax-widget-board',\r\n templateUrl: './widget-board.component.html',\r\n styleUrls: ['./widget-board.component.scss'],\r\n host: { class: 'ax widget-board' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AXWidgetBoardComponent implements OnInit {\r\n\r\n @ViewChild('container')\r\n private container: ElementRef<HTMLDivElement>;\r\n\r\n @ViewChildren(AXWidgetHostComponent)\r\n private widgetHosts: QueryList<AXWidgetHostComponent>;\r\n\r\n widgets: AXWidgetConfig[] = [];\r\n\r\n @Input()\r\n galleryItems: AXWidgetConfig[] = [];\r\n\r\n @Input()\r\n tileSize: number = 80;\r\n\r\n @Input()\r\n gapSize: number = 5;\r\n\r\n private newWidget: AXWidgetConfig = null;\r\n\r\n public rtl: boolean;\r\n\r\n private _isInEditing: boolean = false;\r\n public isInEditing(): boolean {\r\n return this._isInEditing;\r\n }\r\n private isDragging: boolean = false;\r\n private dragItem: HTMLElement;\r\n\r\n @Input()\r\n provideValue: (e: any) => any;\r\n\r\n private readonly DATA_COL = 'data-col';\r\n private readonly DATA_ROW = 'data-row';\r\n private readonly DATA_SIZE_X = 'data-size-x';\r\n private readonly DATA_SIZE_Y = 'data-size-y';\r\n private readonly DATA_OLD_COL = 'data-old-col';\r\n private readonly DATA_OLD_ROW = 'data-old-row';\r\n\r\n\r\n @Output()\r\n onConfigChanged: EventEmitter<AXWidgetBoardConfigChanged> = new EventEmitter<AXWidgetBoardConfigChanged>();\r\n\r\n @Output()\r\n onWidgetSave: EventEmitter<AXWidgetConfigSavedEvent> = new EventEmitter<AXWidgetConfigSavedEvent>();\r\n\r\n constructor(\r\n private ref: ElementRef<HTMLDivElement>,\r\n private zone: NgZone,\r\n private cdr: ChangeDetectorRef\r\n ) { }\r\n\r\n\r\n ngOnInit() {\r\n if (this.rtl == null) {\r\n this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';\r\n }\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.zone.runOutsideAngular((c) => {\r\n const style = document.createElement('style');\r\n style.type = 'text/css';\r\n this.ref.nativeElement.appendChild(style);\r\n // add css data classes\r\n for (let i = 1; i <= 50; i++) {\r\n style.innerHTML += `[${this.DATA_COL}=\"${i}\"] { ${this.rtl ? 'right' : 'left'}: ${(i - 1) * (this.tileSize + this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_ROW}=\"${i}\"] { top: ${(i - 1) * (this.tileSize + this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_SIZE_X}=\"${i}\"] { width: ${(i * this.tileSize) + ((i - 1) * this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_SIZE_Y}=\"${i}\"] { height: ${(i * this.tileSize) + ((i - 1) * this.gapSize)}px; }`;\r\n }\r\n });\r\n }\r\n\r\n private calcGridSize() {\r\n this.zone.runOutsideAngular(() => {\r\n const width =\r\n (Math.max(...this.widgets.map((c) => c.col + c.sizeX - 1))) * (this.tileSize + this.gapSize);\r\n const height =\r\n (Math.max(...this.widgets.map((c) => c.row + c.sizeY - 1))) * (this.tileSize + this.gapSize);\r\n this.container.nativeElement.style.width = width + 'px';\r\n this.container.nativeElement.style.height = height + 'px';\r\n });\r\n }\r\n\r\n toggleEdit() {\r\n this._isInEditing ? this.finishEdit() : this.startEdit();\r\n }\r\n\r\n\r\n\r\n private dragStart(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.zone.runOutsideAngular(() => {\r\n if (this._isInEditing && e.which === 1) {\r\n this.dragItem = e.currentTarget as any;\r\n this.dragItem.setAttribute('data-x-offset', (this.dragItem.offsetLeft - e.clientX).toString());\r\n //\r\n this.dragItem.setAttribute('data-y-offset', (this.dragItem.offsetTop - e.clientY).toString());\r\n this.dragItem.classList.add('widget-dragging');\r\n this.dragItem.classList.remove('animate__animated', 'animate__pulse');\r\n }\r\n });\r\n return false;\r\n }\r\n\r\n removePositionData() {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing && this.dragItem.getAttribute(this.DATA_OLD_COL) == null) {\r\n this.dragItem.setAttribute(this.DATA_OLD_COL, this.dragItem.getAttribute(this.DATA_COL));\r\n this.dragItem.setAttribute(this.DATA_OLD_ROW, this.dragItem.getAttribute(this.DATA_ROW));\r\n this.dragItem.removeAttribute(this.DATA_COL);\r\n this.dragItem.removeAttribute(this.DATA_ROW);\r\n }\r\n });\r\n }\r\n\r\n resetPositionData() {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing) {\r\n this.setPosition(this.dragItem, this.dragItem.getAttribute(this.DATA_OLD_COL), this.dragItem.getAttribute(this.DATA_OLD_ROW));\r\n }\r\n });\r\n }\r\n\r\n private setPosition(element: HTMLElement, col: string, row: string) {\r\n this.zone.runOutsideAngular(() => {\r\n element.setAttribute(this.DATA_COL, col);\r\n element.setAttribute(this.DATA_ROW, row);\r\n element.removeAttribute(this.DATA_OLD_COL);\r\n element.removeAttribute(this.DATA_OLD_ROW);\r\n element.style.removeProperty('top');\r\n element.style.removeProperty('left');\r\n const widget = this.widgets.find(c => c['__meta__'].instance.element === element);\r\n widget.col = Number(col);\r\n widget.row = Number(row);\r\n });\r\n }\r\n\r\n private drag(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing) {\r\n this.isDragging = true;\r\n this.addPlaceholder();\r\n const xOffset = Number(this.dragItem.getAttribute('data-x-offset'));\r\n const yOffset = Number(this.dragItem.getAttribute('data-y-offset'));\r\n this.dragItem.style.left = e.clientX + xOffset + 'px';\r\n this.dragItem.style.top = e.clientY + yOffset + 'px';\r\n //\r\n this.detectBestPlacement();\r\n this.removePositionData();\r\n }\r\n });\r\n return false;\r\n }\r\n\r\n private dragEnd(e) {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing && this.isDragging) {\r\n this.dragItem.classList.remove('widget-dragging');\r\n this.dragItem.classList.add('animate__animated', 'animate__pulse');\r\n //\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder');\r\n if (this.newWidget) {\r\n const w = {\r\n uniqueName: this.newWidget.uniqueName,\r\n component: this.newWidget.component,\r\n title: this.newWidget.title,\r\n options: this.newWidget.options,\r\n sizeX: this.newWidget.sizeX,\r\n sizeY: this.newWidget.sizeY,\r\n col: Number(p.getAttribute(this.DATA_COL)),\r\n row: Number(p.getAttribute(this.DATA_ROW))\r\n };\r\n\r\n this.widgets.push(w);\r\n this.newWidget = null;\r\n this.container.nativeElement.removeChild(this.dragItem);\r\n this.zone.run(() => {\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n setTimeout(() => {\r\n w['__meta__'].instance.element.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n }, 1000);\r\n });\r\n } else {\r\n if (p) {\r\n this.setPosition(this.dragItem, p.getAttribute(this.DATA_COL), p.getAttribute(this.DATA_ROW));\r\n }\r\n else {\r\n this.setPosition(this.dragItem, this.dragItem.getAttribute(this.DATA_OLD_COL), this.dragItem.getAttribute(this.DATA_OLD_ROW));\r\n }\r\n }\r\n //\r\n this.removePlaceholder();\r\n this.dragItem = null;\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n }\r\n this.isDragging = false;\r\n });\r\n }\r\n\r\n private detectFirstEmptySlot(w: AXWidgetConfig) {\r\n const xTile = Math.floor(this.ref.nativeElement.parentElement.offsetWidth / this.tileSize);\r\n for (let j = 1; j <= 100; j++) {\r\n for (let i = 1; i <= xTile - w.sizeX; i++) {\r\n const rec = new AXClientRec({\r\n left: i,\r\n top: j,\r\n width: w.sizeX,\r\n height: w.sizeY\r\n });\r\n const el = this.widgets.filter(c => c !== w).find((c) =>\r\n rec.intersect({\r\n left: c.col,\r\n top: c.row,\r\n width: c.sizeX,\r\n height: c.sizeY\r\n })\r\n );\r\n if (el == null) {\r\n w.col = i;\r\n w.row = j;\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private detectBestPlacement() {\r\n this.zone.runOutsideAngular(() => {\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder') as HTMLElement;\r\n let col = Math.ceil(this.dragItem.offsetLeft / this.tileSize);\r\n if (this.rtl) {\r\n col = Math.ceil((this.container.nativeElement.clientWidth - (this.dragItem.offsetLeft + this.dragItem.clientWidth)) / this.tileSize);\r\n }\r\n\r\n let row = Math.ceil(this.dragItem.offsetTop / this.tileSize);\r\n if (col < 1) {\r\n col = 1;\r\n }\r\n if (row < 1) {\r\n row = 1;\r\n }\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host')).map((c) => c as HTMLElement);\r\n p.setAttribute(this.DATA_COL, col.toString());\r\n p.setAttribute(this.DATA_ROW, row.toString());\r\n const collision = widgets.filter(c => c !== this.dragItem).some(c => AXHtmlUtil.collision(c, this.dragItem));\r\n if (collision) {\r\n this.removePlaceholder();\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n\r\n private addPlaceholder() {\r\n this.zone.runOutsideAngular(() => {\r\n this.removePlaceholder();\r\n if (this.dragItem) {\r\n const p = document.createElement('div');\r\n p.classList.add('widget-blank-placeholder');\r\n p.setAttribute(this.DATA_COL, this.dragItem.getAttribute(this.DATA_COL));\r\n p.setAttribute(this.DATA_ROW, this.dragItem.getAttribute(this.DATA_ROW));\r\n p.setAttribute(this.DATA_SIZE_X, this.dragItem.getAttribute(this.DATA_SIZE_X));\r\n p.setAttribute(this.DATA_SIZE_Y, this.dragItem.getAttribute(this.DATA_SIZE_Y));\r\n this.container.nativeElement.appendChild(p);\r\n }\r\n });\r\n }\r\n\r\n private removePlaceholder() {\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder');\r\n p?.remove();\r\n }\r\n\r\n public startEdit() {\r\n this._isInEditing = true;\r\n this.calcGridSize();\r\n this.ref.nativeElement.classList.add('grid-background');\r\n const bg = this.ref.nativeElement as HTMLDivElement;\r\n bg.style.setProperty('background-position', `${this.rtl ? 'right' : 'left'} top`);\r\n // tslint:disable-next-line: max-line-length\r\n const pattern = `url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"${this.tileSize + this.gapSize}\" height=\"${this.tileSize + this.gapSize}\"> <rect style=\"fill: %23dadada\" x=\"${this.rtl ? this.gapSize : 0}\" width=\"${this.tileSize}\" height=\"${this.tileSize}\" y=\"0\"></rect></svg>')`;\r\n bg.style.setProperty('background-image', pattern);\r\n //\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host'));\r\n widgets.forEach((w) => {\r\n w.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n });\r\n this.ref.nativeElement.addEventListener('mousemove', this.drag.bind(this), false);\r\n this.ref.nativeElement.addEventListener('mouseup', this.dragEnd.bind(this), false);\r\n }\r\n\r\n public finishEdit() {\r\n this.ref.nativeElement.classList.remove('grid-background');\r\n const bg = this.ref.nativeElement as HTMLDivElement;\r\n bg.style.removeProperty('background-image');\r\n //\r\n this._isInEditing = false;\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host'));\r\n widgets.forEach((w) => {\r\n w.removeEventListener('mousedown', this.dragStart.bind(this), false);\r\n });\r\n this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);\r\n this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);\r\n this.emitConfigChanged();\r\n }\r\n\r\n\r\n addWidget(widget: AXWidgetConfig) {\r\n this.zone.runOutsideAngular(() => {\r\n this.newWidget = {\r\n uniqueName: widget.uniqueName,\r\n component: widget.component,\r\n title: widget.title,\r\n col: 1,\r\n row: 1,\r\n sizeX: widget.sizeX,\r\n sizeY: widget.sizeY,\r\n options: widget.options,\r\n props: widget.props\r\n };\r\n this.detectFirstEmptySlot(this.newWidget);\r\n const w = {\r\n uniqueName: this.newWidget.uniqueName,\r\n component: this.newWidget.component,\r\n title: this.newWidget.title,\r\n options: this.newWidget.options,\r\n props: this.newWidget.props,\r\n sizeX: this.newWidget.sizeX,\r\n sizeY: this.newWidget.sizeY,\r\n col: this.newWidget.col,\r\n row: this.newWidget.row\r\n };\r\n this.widgets.push(w);\r\n this.newWidget = null;\r\n this.zone.run(() => {\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n setTimeout(() => {\r\n w['__meta__'].instance.element.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n }, 1000);\r\n });\r\n });\r\n }\r\n\r\n\r\n handleOnRemove(w: AXWidgetHostComponent) {\r\n w.element.classList.add('animate__animated', 'animate__zoomOut');\r\n w.element.addEventListener('animationend', () => {\r\n this.widgets = this.widgets.filter((c) => (c as any).__meta__.id !== (w.config as any).__meta__.id);\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n });\r\n }\r\n\r\n handleOnSave(e: AXWidgetConfigSavedEvent) {\r\n this.onWidgetSave.emit(e);\r\n }\r\n\r\n trackByFn(index, item) {\r\n if (!item['__meta__']?.id) {\r\n item['__meta__'] = {};\r\n item['__meta__'].id = AXHtmlUtil.getUID();\r\n }\r\n return item['__meta__']?.id;\r\n }\r\n\r\n\r\n load(widgets: string | AXWidgetConfig[]): Promise<void> {\r\n this.clear();\r\n return new Promise<void>((resolve, reject) => {\r\n if (widgets) {\r\n const loadedWidgets: AXWidgetConfig[] = [];\r\n if (typeof widgets === 'string') {\r\n try {\r\n loadedWidgets.push(...JSON.parse(widgets));\r\n } catch (error) {\r\n reject('Invalid widget json data!');\r\n }\r\n }\r\n else {\r\n loadedWidgets.push(...widgets);\r\n }\r\n let intervalId: number = -1;\r\n const loadFunc = () => {\r\n\r\n if (this.galleryItems && this.galleryItems.length > 0) {\r\n loadedWidgets.forEach(w => {\r\n const gitem = this.galleryItems.find(c => c.uniqueName === w.uniqueName);\r\n if (gitem) {\r\n w.component = gitem.component;\r\n if (gitem.props) {\r\n w.props = JSON.parse(JSON.stringify(gitem.props));\r\n }\r\n }\r\n });\r\n this.widgets.push(...loadedWidgets);\r\n window.clearInterval(intervalId);\r\n this.cdr.detectChanges();\r\n resolve();\r\n }\r\n };\r\n intervalId = window.setInterval(loadFunc, 200);\r\n }\r\n else {\r\n resolve();\r\n }\r\n });\r\n }\r\n\r\n clear() {\r\n if (this.widgets.length) {\r\n this.widgets = [];\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n }\r\n\r\n save(): Promise<string> {\r\n const obj = this.widgets.map(c => ({\r\n uniqueName: c.uniqueName,\r\n component: c.component,\r\n title: c.title,\r\n sizeX: c.sizeX,\r\n sizeY: c.sizeY,\r\n col: c.col,\r\n row: c.row,\r\n options: c.options,\r\n props: c.props\r\n }));\r\n return Promise.resolve(JSON.stringify(obj));\r\n }\r\n\r\n refresh() {\r\n this.widgetHosts.forEach(host => {\r\n host.widget.refresh();\r\n });\r\n }\r\n\r\n handleOnConfigChanged(e: AXWidgetConfigChanged) {\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n\r\n handleOnResizedChanged(e: AXWidgetConfigChanged) {\r\n this.detectFirstEmptySlot(e.config);\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n\r\n private resizeChangeObserver: any;\r\n private emitConfigChanged() {\r\n if (!this.resizeChangeObserver) {\r\n this.resizeChangeObserver = new Observable();\r\n Observable.create(observer => {\r\n this.resizeChangeObserver = observer;\r\n })\r\n .pipe(debounceTime(750))\r\n .pipe(distinctUntilChanged())\r\n .subscribe(c => {\r\n this.onConfigChanged.emit({\r\n component: this\r\n });\r\n });\r\n }\r\n this.resizeChangeObserver.next(new Date());\r\n }\r\n}\r\n","import { Component, OnInit, ChangeDetectorRef } from '@angular/core';\r\nimport { AXProperyEditorComponent } from '@acorex/components';\r\n\r\n@Component({\r\n templateUrl: './widget-size.editor.html'\r\n})\r\nexport class AXWidgetSizePropertyEditorComponent extends AXProperyEditorComponent<number[]> {\r\n\r\n sizeX: number;\r\n sizeY: number;\r\n\r\n minX: number = 1;\r\n maxX: number = 10;\r\n\r\n minY: number = 1;\r\n maxY: number = 10;\r\n\r\n\r\n constructor(protected cdr: ChangeDetectorRef) {\r\n super(cdr);\r\n }\r\n\r\n ngOnInit() {\r\n if (Array.isArray(this.value)) {\r\n this.sizeX = this.value[0];\r\n this.sizeY = this.value[1];\r\n }\r\n else {\r\n this.sizeX = 2;\r\n this.sizeY = 2;\r\n }\r\n }\r\n\r\n handleMinValueChange(e: any) {\r\n this.sizeX = e.value;\r\n\r\n if (this.sizeY > 0) {\r\n super.handleValueChange([this.sizeX, this.sizeY]);\r\n }\r\n }\r\n\r\n handleMaxValueChange(e: any) {\r\n this.sizeY = e.value;\r\n if (this.sizeX > 0) {\r\n super.handleValueChange([this.sizeX, this.sizeY]);\r\n }\r\n }\r\n\r\n\r\n\r\n ngAfterViewInit() {\r\n this.initiated = true;\r\n }\r\n\r\n}","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { AXWidgetSizePropertyEditorComponent } from './widget-size.editor';\r\nimport { AXNumberBoxModule } from '@acorex/components';\r\n\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [AXWidgetSizePropertyEditorComponent],\r\n imports: [CommonModule, FormsModule, AXNumberBoxModule],\r\n exports: [AXWidgetSizePropertyEditorComponent],\r\n entryComponents: [AXWidgetSizePropertyEditorComponent],\r\n providers: [],\r\n})\r\nexport class AXWidgetSizePropertyEditorModule {\r\n constructor() {\r\n }\r\n}","import { NgModule } from '@angular/core';\r\nimport { AXWidgetBoardComponent } from './widget-board.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXWidgetHostComponent } from './widget-host.component';\r\nimport {\r\n AXSearchBoxModule,\r\n AXLoadingModule,\r\n AXProppertyEditorModule,\r\n AXPageModule, AXLabelModule,\r\n AXToolbarModule,\r\n AXTabStripModule,\r\n AXMenuModule,\r\n AXFormGroupModule,\r\n AXTextAreaModule, AXTextBoxModule, AXFieldsetModule, AXCheckBoxModule, AXValidationModule\r\n} from '@acorex/components';\r\nimport { RouterModule } from '@angular/router';\r\nimport { AXWidgetConfigComponent } from './widget-config.component';\r\nimport { AXTranslator, AXTranslatorModule } from '@acorex/core';\r\nimport { AXWidgetSizePropertyEditorComponent } from './editors/widget-size-editor/widget-size.editor';\r\nimport { AXWidgetSizePropertyEditorModule } from './editors/widget-size-editor/widget-size.module';\r\nimport { AXWidgetSaveComponent } from './widget-save.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n AXSearchBoxModule,\r\n AXLoadingModule,\r\n RouterModule,\r\n AXProppertyEditorModule,\r\n AXPageModule,\r\n AXToolbarModule,\r\n AXTranslatorModule,\r\n AXLabelModule,\r\n AXTextAreaModule,\r\n AXFieldsetModule,\r\n AXTextBoxModule,\r\n AXFormGroupModule,\r\n AXTabStripModule,\r\n AXCheckBoxModule,\r\n AXMenuModule,\r\n AXTranslatorModule,\r\n AXWidgetSizePropertyEditorModule,\r\n AXValidationModule,\r\n RouterModule.forChild([\r\n {\r\n component: AXWidgetSizePropertyEditorComponent,\r\n path: 'ax/editors/widget-size'\r\n },\r\n ])\r\n ],\r\n exports: [AXWidgetBoardComponent, AXProppertyEditorModule],\r\n declarations: [AXWidgetBoardComponent, AXWidgetHostComponent, AXWidgetConfigComponent, AXWidgetSaveComponent],\r\n entryComponents: [AXWidgetConfigComponent, AXWidgetSaveComponent],\r\n providers: []\r\n})\r\nexport class AXWidgetBoardModule {\r\n /**\r\n *\r\n */\r\n constructor() {\r\n AXTranslator.load('en', {\r\n 'widget-board': {\r\n 'configurable-props': 'Configurable Properties',\r\n configure: 'Configure Widget'\r\n }\r\n });\r\n AXTranslator.load('fa', {\r\n 'widget-board': {\r\n 'configurable-props': 'ویژگی های قابل تنظیم',\r\n configure: 'پیکر بندی ابزارک'\r\n }\r\n });\r\n\r\n }\r\n\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {AXWidgetConfigComponent as ɵa} from './lib/widget-board/widget-config.component';\nexport {AXWidgetSaveComponent as ɵb} from './lib/widget-board/widget-save.component';"],"names":[],"mappings":";;;;;;;;;;SAiFmB;IACH,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,QAAC;QAC1C,EAAE,EAAE,KAAK,GAAG,CAAC;QACb,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;KACzF,IAAC,CAAC,CAAC;AACR;AA3CZ;;IA+DI;QAAA,iBASC;QArEQ,QAAG,GAAW,UAAU,CAAC,MAAM,EAAE,CAAC;QAG3C,kBAAa,GAAwC,IAAI,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CAAC;YAC7G,eAAe,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;YACjE,SAAS,EAAE,EAAE;SAChB,CAAC;;OACW,mBAAmB,CAoB/B;IAAD,0BAAC;CApBD;;ACvDA;;;;;;"}
1
+ {"version":3,"file":"acorex-layout.js","sources":["ng://@acorex/layout/lib/widget-board/widget.class.ts","ng://@acorex/layout/lib/widget-board/widget-config.component.ts","ng://@acorex/layout/lib/widget-board/widget-save.component.ts","ng://@acorex/layout/lib/widget-board/widget-host.component.ts","ng://@acorex/layout/lib/widget-board/widget-board.component.ts","ng://@acorex/layout/lib/widget-board/editors/widget-size-editor/widget-size.editor.ts","ng://@acorex/layout/lib/widget-board/widget-board.module.ts","ng://@acorex/layout/lib/widget-board/editors/widget-size-editor/widget-size.module.ts","ng://@acorex/layout/acorex-layout.ts"],"sourcesContent":["import { EventEmitter } from '@angular/core';\r\nimport { AXValueEvent, AXBaseEvent, propertyEditor, AXDataEvent } from '@acorex/components';\r\nimport { AXHtmlUtil, AXTranslator } from '@acorex/core';\r\n\r\nexport interface AXWidgetConfig {\r\n uniqueName: string;\r\n component: any;\r\n title: string;\r\n sizeX: number;\r\n sizeY: number;\r\n col?: number;\r\n row?: number;\r\n options?: any;\r\n props?: any;\r\n}\r\n\r\nexport interface AXWidgetConfigChanged extends AXBaseEvent {\r\n config: AXWidgetConfig;\r\n}\r\n\r\n\r\n\r\nexport interface AXWidgetBoardConfigChanged extends AXBaseEvent {\r\n\r\n}\r\n\r\nexport interface AXWidgetConfigSavedEvent extends AXDataEvent<AXWidgetSaveAsData> {\r\n\r\n}\r\n\r\n\r\nexport interface AXWidgetSaveAsData {\r\n title?: string;\r\n description?: string;\r\n icon?: string;\r\n group?: string;\r\n //\r\n uniqueName: string;\r\n component: any;\r\n options?: any;\r\n props?: any;\r\n}\r\n\r\n// @dynamic\r\nexport abstract class AXWidgetComponent {\r\n\r\n readonly uid: string = AXHtmlUtil.getUID();\r\n provideValue: (e: any) => any;\r\n\r\n onBusyChanged: EventEmitter<AXValueEvent<boolean>> = new EventEmitter<AXValueEvent<boolean>>();\r\n\r\n private _isBusy: boolean = true;\r\n public get isBusy(): boolean {\r\n return this._isBusy;\r\n }\r\n public set isBusy(v: boolean) {\r\n if (v !== this._isBusy) {\r\n const eventData: AXValueEvent<boolean> = {\r\n component: this,\r\n oldValue: this._isBusy,\r\n value: v\r\n };\r\n this._isBusy = v;\r\n this.onBusyChanged.emit(eventData);\r\n }\r\n }\r\n\r\n @propertyEditor({\r\n editorClass: 'ax/editors/widget-size',\r\n title: 'common.size',\r\n visible: false,\r\n order: -99,\r\n })\r\n widgetSize: number[];\r\n\r\n @propertyEditor({\r\n editorClass: 'ax/editors/select',\r\n title: 'common.refresh-rate',\r\n visible: true,\r\n order: -98,\r\n editorOptions: {\r\n items: () => {\r\n return [1, 2, 3, 5, 10, 20, 30, 60].map(c => ({\r\n id: 60000 * c,\r\n text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', c.toString())\r\n }));\r\n },\r\n allowNull: false,\r\n allowSearch: false,\r\n selectionDataMode: 'value',\r\n selectionMode: 'single',\r\n valueField: 'id',\r\n }\r\n })\r\n refreshRate: any = [{\r\n id: 60000 * 5,\r\n text: AXTranslator.get('dateTime.duration.format_minute').replace('{0}', '5')\r\n }];\r\n\r\n // ???\r\n getRefreshRate() {\r\n return Array.isArray(this.refreshRate) && this.refreshRate.length ? this.refreshRate[0].id : this.refreshRate;\r\n }\r\n\r\n private intervalId: number;\r\n\r\n constructor() {\r\n this.onConfiguredChanged.subscribe(() => {\r\n if (this.isConfigured === true && this.getRefreshRate()) {\r\n this.restartRefreshTimer();\r\n }\r\n else {\r\n this.stopRefreshTimer();\r\n }\r\n });\r\n }\r\n\r\n\r\n private startRefreshTimer() {\r\n this.intervalId = window.setInterval(this.refresh.bind(this), this.getRefreshRate());\r\n }\r\n\r\n private stopRefreshTimer() {\r\n window.clearInterval(this.intervalId);\r\n }\r\n\r\n private restartRefreshTimer() {\r\n this.stopRefreshTimer();\r\n this.startRefreshTimer();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.stopRefreshTimer();\r\n }\r\n\r\n public redraw() {\r\n\r\n }\r\n\r\n public refresh() {\r\n this.restartRefreshTimer();\r\n }\r\n\r\n onConfiguredChanged: EventEmitter<void> = new EventEmitter<void>();\r\n\r\n get isConfigured(): boolean {\r\n return true;\r\n }\r\n\r\n public setValue(name: string, value?: any) {\r\n this[name] = value;\r\n this.onConfiguredChanged.emit();\r\n }\r\n\r\n public getValue(name: string): Promise<any> {\r\n const val = this[name];\r\n const config = this['__meta__'].config;\r\n const runtime = config.props[name]?.runtime;\r\n if (runtime && this.provideValue) {\r\n const res = this.provideValue({\r\n name,\r\n value: val,\r\n uniqueName: config.uniqueName,\r\n options: config.options,\r\n });\r\n if (this.provideValue instanceof Promise) {\r\n return res;\r\n }\r\n else {\r\n return Promise.resolve(res);\r\n }\r\n }\r\n return Promise.resolve(val);\r\n }\r\n\r\n}","import { Component, ViewEncapsulation, ChangeDetectionStrategy, ChangeDetectorRef, ViewChild } from '@angular/core';\r\nimport { AXPropertyConfig, AXBasePopupPageComponent, AXMenuItemClickEvent, AXProperyEditorValueChangeEvent, AXValidationFormComponent } from '@acorex/components';\r\nimport { AXButtonItem, AXTranslator } from '@acorex/core';\r\nimport { AXWidgetComponent } from './widget.class';\r\n\r\n\r\n@Component({\r\n templateUrl: './widget-config.component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\n\r\nexport class AXWidgetConfigComponent extends AXBasePopupPageComponent {\r\n\r\n @ViewChild(AXValidationFormComponent) form: AXValidationFormComponent;\r\n\r\n constructor(private cdr: ChangeDetectorRef) {\r\n super();\r\n }\r\n\r\n\r\n widget: AXWidgetComponent;\r\n props: AXPropertyConfig[] = [];\r\n displayProps: AXPropertyConfig[] = [];\r\n\r\n\r\n changes: AXPropertyConfig[] = [];\r\n\r\n context: any = {};\r\n\r\n\r\n getFooterButtons(): AXButtonItem[] {\r\n return [\r\n {\r\n name: 'okay',\r\n submitBehavior: true,\r\n text: AXTranslator.get('common.confirm'),\r\n style: 'success'\r\n },\r\n {\r\n name: 'cancel',\r\n cancelBehavior: true,\r\n text: AXTranslator.get('common.cancel'),\r\n style: 'danger blank'\r\n }\r\n ];\r\n }\r\n\r\n\r\n\r\n\r\n\r\n onFooterButtonClick(e: AXMenuItemClickEvent) {\r\n if (e.name === 'cancel') {\r\n this.close();\r\n }\r\n if (e.name === 'okay') {\r\n this.form.validate().then(c => {\r\n if (c.result) {\r\n this.close(this.changes);\r\n }\r\n });\r\n }\r\n }\r\n\r\n handleValueChange(e: AXProperyEditorValueChangeEvent) {\r\n const prop = this.changes.find(c => c.property.name === e.property.name);\r\n if (prop) {\r\n prop.value = e.value;\r\n }\r\n else {\r\n this.changes.push({ property: e.property, value: e.value });\r\n }\r\n this.updateContext();\r\n }\r\n\r\n ngOnInit() {\r\n this.displayProps = this.props.filter(c => c.property.visible !== false).sort((a, b) => a.property.order - b.property.order);\r\n this.updateContext();\r\n }\r\n\r\n\r\n private updateContext() {\r\n const ctx = {};\r\n this.props.forEach(p => {\r\n ctx[p.property.name] = p.value;\r\n });\r\n this.changes.forEach(p => {\r\n ctx[p.property.name] = p.value;\r\n });\r\n this.context = ctx;\r\n }\r\n\r\n\r\n identify(index, item: AXPropertyConfig) {\r\n return item.property.name;\r\n }\r\n\r\n}","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n\r\n} from '@angular/core';\r\nimport { AXWidgetConfig, AXWidgetSaveAsData } from './widget.class';\r\nimport { AXButtonItem, AXHtmlUtil, AXObjectUtil, AXTranslator } from '@acorex/core';\r\nimport { AXPropertyConfig, AXMenuItemClickEvent, AXBasePopupPageComponent } from '@acorex/components';\r\n\r\n\r\n\r\n@Component({\r\n templateUrl: \"./widget-save.component.html\",\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXWidgetSaveComponent extends AXBasePopupPageComponent {\r\n config: AXWidgetConfig;\r\n props: AXPropertyConfig[] = [];\r\n displayProps: { name: string, title: string, allow: boolean }[];\r\n\r\n data: AXWidgetSaveAsData;\r\n\r\n getFooterButtons(): AXButtonItem[] {\r\n return [\r\n {\r\n name: 'okay',\r\n submitBehavior: true,\r\n text: AXTranslator.get('common.confirm'),\r\n style: 'ax success'\r\n },\r\n {\r\n name: 'cancel',\r\n cancelBehavior: true,\r\n text: AXTranslator.get('common.cancel'),\r\n style: 'ax light'\r\n }\r\n ];\r\n }\r\n\r\n ngOnInit() {\r\n const titleProp = this.props.find(c => c.property.name === 'title' || c.property.name === 'name');\r\n const title = titleProp?.value || this.config.title;\r\n const pp: any = {};\r\n this.props?.forEach(c => {\r\n pp[c.property.name] = c.property;\r\n });\r\n this.data = {\r\n component: this.config.component,\r\n title,\r\n uniqueName: `${this.config.uniqueName}-${AXHtmlUtil.getUID()}`,\r\n options: AXObjectUtil.deepJSONClone(this.config.options),\r\n props: AXObjectUtil.deepJSONClone(pp)\r\n };\r\n this.displayProps = this.props\r\n .filter(c => c.property.visible !== false)\r\n .sort((a, b) => a.property.order - b.property.order)\r\n .map(c => ({\r\n name: c.property.name,\r\n title: c.property.title,\r\n allow: true\r\n }));\r\n }\r\n\r\n\r\n\r\n onFooterButtonClick(e: AXMenuItemClickEvent) {\r\n if (e.name === 'cancel') {\r\n this.close();\r\n }\r\n if (e.name === 'okay') {\r\n this.props.forEach(p => {\r\n const pp = this.displayProps.find(c => c.name === p.property.name);\r\n if (pp == null || !pp.allow) {\r\n let ppp = this.data.props[p.property.name];\r\n if (ppp) {\r\n ppp.visible = false;\r\n }\r\n else {\r\n ppp = { visible: false };\r\n }\r\n }\r\n });\r\n this.close(this.data);\r\n }\r\n }\r\n}","import {\r\n Component,\r\n ViewEncapsulation, Input,\r\n ElementRef, HostBinding, ComponentFactoryResolver, ViewChild,\r\n ViewContainerRef, Output, EventEmitter, ChangeDetectionStrategy,\r\n ChangeDetectorRef, ComponentRef\r\n} from '@angular/core';\r\nimport { AXWidgetConfig, AXWidgetComponent, AXWidgetConfigChanged, AXWidgetConfigSavedEvent } from './widget.class';\r\nimport { AXObjectUtil, AXRenderService } from '@acorex/core';\r\nimport { AXPopupService, AXPropertyDecorators, AXPropertyDecorator, AXLoadingService } from '@acorex/components';\r\nimport { AXWidgetConfigComponent } from './widget-config.component';\r\nimport { AXMenuItem } from '@acorex/core';\r\nimport { AXTranslator } from '@acorex/core';\r\nimport { AXWidgetSaveComponent } from './widget-save.component';\r\n\r\n\r\n\r\n\r\n\r\n@Component({\r\n selector: 'ax-widget-host',\r\n templateUrl: \"./widget-host.component.html\",\r\n host: { class: 'ax widget-host', tabindex: '0' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\n\r\nexport class AXWidgetHostComponent {\r\n\r\n private _widget: AXWidgetComponent;\r\n public get widget(): AXWidgetComponent {\r\n return this._widget;\r\n }\r\n\r\n _hasProps: boolean = false;\r\n\r\n\r\n _hasMenu: boolean = false;\r\n\r\n @Input()\r\n provideValue: (e: any) => any;\r\n\r\n\r\n get element(): HTMLDivElement {\r\n return this.ref.nativeElement;\r\n }\r\n\r\n\r\n configMenuItem: AXMenuItem[] = [\r\n {\r\n icon: 'far fa-ellipsis-h',\r\n items: []\r\n }\r\n ];\r\n\r\n\r\n @Output()\r\n onRemove: EventEmitter<AXWidgetHostComponent> = new EventEmitter<AXWidgetHostComponent>();\r\n\r\n @Output()\r\n onConfigChanged: EventEmitter<AXWidgetConfigChanged> = new EventEmitter<AXWidgetConfigChanged>();\r\n\r\n\r\n @Output()\r\n onResized: EventEmitter<AXWidgetConfigChanged> = new EventEmitter<AXWidgetConfigChanged>();\r\n\r\n @Output()\r\n onSave: EventEmitter<AXWidgetConfigSavedEvent> = new EventEmitter<AXWidgetConfigSavedEvent>();\r\n\r\n @Input()\r\n config: AXWidgetConfig;\r\n\r\n @ViewChild('vc', { read: ViewContainerRef })\r\n vc: ViewContainerRef;\r\n\r\n private componentRef: ComponentRef<any>;\r\n //private isLoading: boolean = true;\r\n\r\n // get isBusy() {\r\n // return this._widget?.isBusy || this.isLoading;\r\n // }\r\n\r\n\r\n private _loadingId: number;\r\n\r\n private _isLoading: boolean = false;\r\n public get isLoading(): boolean {\r\n return this._isLoading;\r\n }\r\n public set isLoading(v: boolean) {\r\n this._isLoading = v;\r\n if (this._loadingId && !v) {\r\n this.loadingService.hide(this._loadingId);\r\n this._loadingId = null;\r\n }\r\n if (v) {\r\n this._loadingId = this.loadingService.show(this.ref.nativeElement);\r\n }\r\n }\r\n\r\n\r\n get isConfigured(): boolean {\r\n return this._widget?.isConfigured || false;\r\n }\r\n\r\n\r\n constructor(\r\n private ref: ElementRef<HTMLDivElement>,\r\n private componentFactoryResolver: ComponentFactoryResolver,\r\n private rendererService: AXRenderService,\r\n private cdr: ChangeDetectorRef,\r\n private popup: AXPopupService,\r\n private loadingService: AXLoadingService\r\n\r\n ) {\r\n\r\n }\r\n\r\n\r\n ngOnInit() {\r\n this.isLoading = true;\r\n }\r\n\r\n\r\n async ngAfterViewInit() {\r\n let component: any;\r\n if (typeof this.config.component === 'string') {\r\n const route = await this.rendererService.findLoadedComponentByRoute(this.config.component, 20);\r\n component = route?.component;\r\n }\r\n else if (typeof this.config.component === 'function') {\r\n component = this.config.component;\r\n }\r\n if (component == null) {\r\n console.error(`Invalid Widget Component!`, this.config);\r\n this.onRemove.emit(this);\r\n return;\r\n }\r\n\r\n const widgetFactory = this.componentFactoryResolver.resolveComponentFactory(component);\r\n this.componentRef = this.vc.createComponent(widgetFactory);\r\n this._widget = this.componentRef.instance as AXWidgetComponent;\r\n this._widget.provideValue = this.provideValue;\r\n if (this._widget.onBusyChanged) {\r\n this._widget.onBusyChanged.subscribe((d) => {\r\n if (!this._widget.widgetSize) {\r\n this._widget.setValue('widgetSize', [this.sizeX, this.sizeY]);\r\n }\r\n else {\r\n this.setSizeFromOptions();\r\n }\r\n this.isLoading = d.value;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n if (this._widget.onConfiguredChanged) {\r\n this._widget.onConfiguredChanged.subscribe(() => {\r\n this.setSizeFromOptions();\r\n });\r\n }\r\n //\r\n if (this.config.options) {\r\n Object.assign(this._widget, this.config.options);\r\n }\r\n this._hasProps = AXPropertyDecorators.getProperties(this._widget).length > 0;\r\n\r\n this.isLoading = false;\r\n this.config['__meta__'].instance = this;\r\n this._widget['__meta__'] = {};\r\n this._widget['__meta__'].config = this.config;\r\n //\r\n this.configMenuItem[0].items.push({\r\n name: 'refresh',\r\n icon: 'far fa-undo',\r\n text: AXTranslator.get('common.refresh'),\r\n onClick: () => {\r\n this?.widget?.refresh();\r\n }\r\n });\r\n //\r\n if (this._hasProps) {\r\n this.configMenuItem[0].items.push({\r\n name: 'configs',\r\n icon: 'far fa-cogs',\r\n text: AXTranslator.get('common.configs'),\r\n onClick: () => {\r\n this.openConfigDialog();\r\n }\r\n });\r\n }\r\n this.configMenuItem[0].items.push({\r\n name: 'save',\r\n icon: 'far fa-save',\r\n text: AXTranslator.get('common.save-as'),\r\n onClick: () => {\r\n this.openSaveDialog();\r\n }\r\n });\r\n if (true) {\r\n this.configMenuItem[0].items.push({\r\n name: 'remove',\r\n icon: 'far fa-times',\r\n style: 'ax danger blank',\r\n text: AXTranslator.get('common.remove'),\r\n onClick: () => {\r\n this.onRemove.emit(this);\r\n }\r\n });\r\n }\r\n this._hasMenu = this.configMenuItem[0].items.length > 0;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n @HostBinding('attr.data-size-x')\r\n @Input()\r\n sizeX: number = 1;\r\n\r\n @HostBinding('attr.data-size-y')\r\n @Input()\r\n sizeY: number = 1;\r\n\r\n @HostBinding('attr.data-col')\r\n @Input()\r\n col: number = 1;\r\n\r\n\r\n @HostBinding('attr.data-row')\r\n @Input()\r\n row: number = 1;\r\n\r\n\r\n private setSizeFromOptions() {\r\n this._widget.getValue('widgetSize').then(c => {\r\n const oldSizeX = this.sizeX;\r\n const oldSizeY = this.sizeY;\r\n if (c && Array.isArray(c) && (oldSizeX !== c[0] || oldSizeY !== c[1])) {\r\n this.config.sizeX = this.sizeX = c[0];\r\n this.config.sizeY = this.sizeY = c[1];\r\n this.onResized.emit({\r\n component: this._widget,\r\n config: this.config\r\n });\r\n }\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n remove(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.onRemove.emit(this);\r\n return false;\r\n }\r\n\r\n handleConfig(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.openConfigDialog();\r\n return false;\r\n }\r\n\r\n private openConfigDialog() {\r\n const ppp = this.getMergedProps();\r\n this.popup.open(AXWidgetConfigComponent, {\r\n title: AXTranslator.get('common.configs'),\r\n size: 'sm',\r\n data: {\r\n props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] })),\r\n widget: this.widget\r\n }\r\n }).then(c => {\r\n if (c.data) {\r\n if (!this.config.options) {\r\n this.config.options = {};\r\n }\r\n c.data.forEach(p => {\r\n this._widget.setValue(p.property.name, p.value);\r\n this.config.options[p.property.name] = p.value;\r\n });\r\n this.emitConfigChanged();\r\n this._widget.redraw();\r\n this.cdr.detectChanges();\r\n }\r\n });\r\n }\r\n\r\n private openSaveDialog() {\r\n const ppp = this.getMergedProps();\r\n this.popup.open(AXWidgetSaveComponent, {\r\n title: AXTranslator.get('common.save-as'),\r\n size: 'sm',\r\n data: {\r\n config: this.config,\r\n props: ppp.map(c => ({ property: c.options, value: this._widget[c.options.name] }))\r\n }\r\n }).then(c => {\r\n if (c.data) {\r\n this.onSave.emit({\r\n component: this._widget,\r\n data: c.data\r\n });\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n handleOptionClick(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.openConfigDialog();\r\n return false;\r\n }\r\n\r\n ngOnDestroy() {\r\n this.vc.clear();\r\n if (this.componentRef) {\r\n this.componentRef.destroy();\r\n }\r\n }\r\n\r\n private getMergedProps(): AXPropertyDecorator[] {\r\n const ppp = AXObjectUtil.deepCopy(AXPropertyDecorators.getProperties(this._widget)) as AXPropertyDecorator[];\r\n for (const key in this.config.props) {\r\n if (Object.prototype.hasOwnProperty.call(this.config.props, key)) {\r\n const newP = this.config.props[key];\r\n const existPropDec = ppp.find(p => p.property === key);\r\n if (existPropDec) {\r\n Object.assign(existPropDec.options, newP);\r\n }\r\n }\r\n }\r\n return ppp;\r\n }\r\n\r\n private emitConfigChanged() {\r\n this.onConfigChanged.emit({\r\n component: this._widget,\r\n config: this.config\r\n });\r\n }\r\n\r\n}","import {\r\n Component,\r\n OnInit,\r\n Input,\r\n ViewEncapsulation,\r\n ElementRef,\r\n ViewChild,\r\n NgZone,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Output,\r\n EventEmitter, ViewChildren, QueryList\r\n} from '@angular/core';\r\nimport {\r\n AXWidgetConfig,\r\n AXWidgetConfigChanged,\r\n AXWidgetBoardConfigChanged,\r\n AXWidgetConfigSavedEvent\r\n} from './widget.class';\r\nimport { AXWidgetHostComponent } from './widget-host.component';\r\nimport { AXHtmlUtil, AXClientRec } from '@acorex/core';\r\nimport { Observable } from 'rxjs';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n\r\n@Component({\r\n selector: 'ax-widget-board',\r\n templateUrl: './widget-board.component.html',\r\n styleUrls: ['./widget-board.component.scss'],\r\n host: { class: 'ax widget-board' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class AXWidgetBoardComponent implements OnInit {\r\n\r\n @ViewChild('container')\r\n private container: ElementRef<HTMLDivElement>;\r\n\r\n @ViewChildren(AXWidgetHostComponent)\r\n private widgetHosts: QueryList<AXWidgetHostComponent>;\r\n\r\n widgets: AXWidgetConfig[] = [];\r\n\r\n @Input()\r\n galleryItems: AXWidgetConfig[] = [];\r\n\r\n @Input()\r\n tileSize: number = 80;\r\n\r\n @Input()\r\n gapSize: number = 5;\r\n\r\n private newWidget: AXWidgetConfig = null;\r\n\r\n public rtl: boolean;\r\n\r\n private _isInEditing: boolean = false;\r\n public isInEditing(): boolean {\r\n return this._isInEditing;\r\n }\r\n private isDragging: boolean = false;\r\n private dragItem: HTMLElement;\r\n\r\n @Input()\r\n provideValue: (e: any) => any;\r\n\r\n private readonly DATA_COL = 'data-col';\r\n private readonly DATA_ROW = 'data-row';\r\n private readonly DATA_SIZE_X = 'data-size-x';\r\n private readonly DATA_SIZE_Y = 'data-size-y';\r\n private readonly DATA_OLD_COL = 'data-old-col';\r\n private readonly DATA_OLD_ROW = 'data-old-row';\r\n\r\n\r\n @Output()\r\n onConfigChanged: EventEmitter<AXWidgetBoardConfigChanged> = new EventEmitter<AXWidgetBoardConfigChanged>();\r\n\r\n @Output()\r\n onWidgetSave: EventEmitter<AXWidgetConfigSavedEvent> = new EventEmitter<AXWidgetConfigSavedEvent>();\r\n\r\n constructor(\r\n private ref: ElementRef<HTMLDivElement>,\r\n private zone: NgZone,\r\n private cdr: ChangeDetectorRef\r\n ) { }\r\n\r\n\r\n ngOnInit() {\r\n if (this.rtl == null) {\r\n this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';\r\n }\r\n }\r\n\r\n ngAfterViewInit() {\r\n this.zone.runOutsideAngular((c) => {\r\n const style = document.createElement('style');\r\n style.type = 'text/css';\r\n this.ref.nativeElement.appendChild(style);\r\n // add css data classes\r\n for (let i = 1; i <= 50; i++) {\r\n style.innerHTML += `[${this.DATA_COL}=\"${i}\"] { ${this.rtl ? 'right' : 'left'}: ${(i - 1) * (this.tileSize + this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_ROW}=\"${i}\"] { top: ${(i - 1) * (this.tileSize + this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_SIZE_X}=\"${i}\"] { width: ${(i * this.tileSize) + ((i - 1) * this.gapSize)}px; }`;\r\n style.innerHTML += `[${this.DATA_SIZE_Y}=\"${i}\"] { height: ${(i * this.tileSize) + ((i - 1) * this.gapSize)}px; }`;\r\n }\r\n });\r\n }\r\n\r\n private calcGridSize() {\r\n this.zone.runOutsideAngular(() => {\r\n const width =\r\n (Math.max(...this.widgets.map((c) => c.col + c.sizeX - 1))) * (this.tileSize + this.gapSize);\r\n const height =\r\n (Math.max(...this.widgets.map((c) => c.row + c.sizeY - 1))) * (this.tileSize + this.gapSize);\r\n this.container.nativeElement.style.width = width + 'px';\r\n this.container.nativeElement.style.height = height + 'px';\r\n });\r\n }\r\n\r\n toggleEdit() {\r\n this._isInEditing ? this.finishEdit() : this.startEdit();\r\n }\r\n\r\n\r\n\r\n private dragStart(e: MouseEvent) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.zone.runOutsideAngular(() => {\r\n if (this._isInEditing && e.which === 1) {\r\n this.dragItem = e.currentTarget as any;\r\n this.dragItem.setAttribute('data-x-offset', (this.dragItem.offsetLeft - e.clientX).toString());\r\n //\r\n this.dragItem.setAttribute('data-y-offset', (this.dragItem.offsetTop - e.clientY).toString());\r\n this.dragItem.classList.add('widget-dragging');\r\n this.dragItem.classList.remove('animate__animated', 'animate__pulse');\r\n }\r\n });\r\n return false;\r\n }\r\n\r\n removePositionData() {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing && this.dragItem.getAttribute(this.DATA_OLD_COL) == null) {\r\n this.dragItem.setAttribute(this.DATA_OLD_COL, this.dragItem.getAttribute(this.DATA_COL));\r\n this.dragItem.setAttribute(this.DATA_OLD_ROW, this.dragItem.getAttribute(this.DATA_ROW));\r\n this.dragItem.removeAttribute(this.DATA_COL);\r\n this.dragItem.removeAttribute(this.DATA_ROW);\r\n }\r\n });\r\n }\r\n\r\n resetPositionData() {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing) {\r\n this.setPosition(this.dragItem, this.dragItem.getAttribute(this.DATA_OLD_COL), this.dragItem.getAttribute(this.DATA_OLD_ROW));\r\n }\r\n });\r\n }\r\n\r\n private setPosition(element: HTMLElement, col: string, row: string) {\r\n this.zone.runOutsideAngular(() => {\r\n element.setAttribute(this.DATA_COL, col);\r\n element.setAttribute(this.DATA_ROW, row);\r\n element.removeAttribute(this.DATA_OLD_COL);\r\n element.removeAttribute(this.DATA_OLD_ROW);\r\n element.style.removeProperty('top');\r\n element.style.removeProperty('left');\r\n const widget = this.widgets.find(c => c['__meta__'].instance.element === element);\r\n widget.col = Number(col);\r\n widget.row = Number(row);\r\n });\r\n }\r\n\r\n private drag(e) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing) {\r\n this.isDragging = true;\r\n this.addPlaceholder();\r\n const xOffset = Number(this.dragItem.getAttribute('data-x-offset'));\r\n const yOffset = Number(this.dragItem.getAttribute('data-y-offset'));\r\n this.dragItem.style.left = e.clientX + xOffset + 'px';\r\n this.dragItem.style.top = e.clientY + yOffset + 'px';\r\n //\r\n this.detectBestPlacement();\r\n this.removePositionData();\r\n }\r\n });\r\n return false;\r\n }\r\n\r\n private dragEnd(e) {\r\n this.zone.runOutsideAngular(() => {\r\n if (this.dragItem && this._isInEditing && this.isDragging) {\r\n this.dragItem.classList.remove('widget-dragging');\r\n this.dragItem.classList.add('animate__animated', 'animate__pulse');\r\n //\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder');\r\n if (this.newWidget) {\r\n const w = {\r\n uniqueName: this.newWidget.uniqueName,\r\n component: this.newWidget.component,\r\n title: this.newWidget.title,\r\n options: this.newWidget.options,\r\n sizeX: this.newWidget.sizeX,\r\n sizeY: this.newWidget.sizeY,\r\n col: Number(p.getAttribute(this.DATA_COL)),\r\n row: Number(p.getAttribute(this.DATA_ROW))\r\n };\r\n\r\n this.widgets.push(w);\r\n this.newWidget = null;\r\n this.container.nativeElement.removeChild(this.dragItem);\r\n this.zone.run(() => {\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n setTimeout(() => {\r\n w['__meta__'].instance.element.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n }, 1000);\r\n });\r\n } else {\r\n if (p) {\r\n this.setPosition(this.dragItem, p.getAttribute(this.DATA_COL), p.getAttribute(this.DATA_ROW));\r\n }\r\n else {\r\n this.setPosition(this.dragItem, this.dragItem.getAttribute(this.DATA_OLD_COL), this.dragItem.getAttribute(this.DATA_OLD_ROW));\r\n }\r\n }\r\n //\r\n this.removePlaceholder();\r\n this.dragItem = null;\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n }\r\n this.isDragging = false;\r\n });\r\n }\r\n\r\n private detectFirstEmptySlot(w: AXWidgetConfig) {\r\n const xTile = Math.floor(this.ref.nativeElement.parentElement.offsetWidth / this.tileSize);\r\n for (let j = 1; j <= 100; j++) {\r\n for (let i = 1; i <= xTile - w.sizeX; i++) {\r\n const rec = new AXClientRec({\r\n left: i,\r\n top: j,\r\n width: w.sizeX,\r\n height: w.sizeY\r\n });\r\n const el = this.widgets.filter(c => c !== w).find((c) =>\r\n rec.intersect({\r\n left: c.col,\r\n top: c.row,\r\n width: c.sizeX,\r\n height: c.sizeY\r\n })\r\n );\r\n if (el == null) {\r\n w.col = i;\r\n w.row = j;\r\n return;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private detectBestPlacement() {\r\n this.zone.runOutsideAngular(() => {\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder') as HTMLElement;\r\n let col = Math.ceil(this.dragItem.offsetLeft / this.tileSize);\r\n if (this.rtl) {\r\n col = Math.ceil((this.container.nativeElement.clientWidth - (this.dragItem.offsetLeft + this.dragItem.clientWidth)) / this.tileSize);\r\n }\r\n\r\n let row = Math.ceil(this.dragItem.offsetTop / this.tileSize);\r\n if (col < 1) {\r\n col = 1;\r\n }\r\n if (row < 1) {\r\n row = 1;\r\n }\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host')).map((c) => c as HTMLElement);\r\n p.setAttribute(this.DATA_COL, col.toString());\r\n p.setAttribute(this.DATA_ROW, row.toString());\r\n const collision = widgets.filter(c => c !== this.dragItem).some(c => AXHtmlUtil.collision(c, this.dragItem));\r\n if (collision) {\r\n this.removePlaceholder();\r\n }\r\n });\r\n }\r\n\r\n\r\n\r\n\r\n private addPlaceholder() {\r\n this.zone.runOutsideAngular(() => {\r\n this.removePlaceholder();\r\n if (this.dragItem) {\r\n const p = document.createElement('div');\r\n p.classList.add('widget-blank-placeholder');\r\n p.setAttribute(this.DATA_COL, this.dragItem.getAttribute(this.DATA_COL));\r\n p.setAttribute(this.DATA_ROW, this.dragItem.getAttribute(this.DATA_ROW));\r\n p.setAttribute(this.DATA_SIZE_X, this.dragItem.getAttribute(this.DATA_SIZE_X));\r\n p.setAttribute(this.DATA_SIZE_Y, this.dragItem.getAttribute(this.DATA_SIZE_Y));\r\n this.container.nativeElement.appendChild(p);\r\n }\r\n });\r\n }\r\n\r\n private removePlaceholder() {\r\n const p = this.container.nativeElement.querySelector('.widget-blank-placeholder');\r\n p?.remove();\r\n }\r\n\r\n public startEdit() {\r\n this._isInEditing = true;\r\n this.calcGridSize();\r\n this.ref.nativeElement.classList.add('grid-background');\r\n const bg = this.ref.nativeElement as HTMLDivElement;\r\n bg.style.setProperty('background-position', `${this.rtl ? 'right' : 'left'} top`);\r\n // tslint:disable-next-line: max-line-length\r\n const pattern = `url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"${this.tileSize + this.gapSize}\" height=\"${this.tileSize + this.gapSize}\"> <rect style=\"fill: %23dadada\" x=\"${this.rtl ? this.gapSize : 0}\" width=\"${this.tileSize}\" height=\"${this.tileSize}\" y=\"0\"></rect></svg>')`;\r\n bg.style.setProperty('background-image', pattern);\r\n //\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host'));\r\n widgets.forEach((w) => {\r\n w.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n });\r\n this.ref.nativeElement.addEventListener('mousemove', this.drag.bind(this), false);\r\n this.ref.nativeElement.addEventListener('mouseup', this.dragEnd.bind(this), false);\r\n }\r\n\r\n public finishEdit() {\r\n this.ref.nativeElement.classList.remove('grid-background');\r\n const bg = this.ref.nativeElement as HTMLDivElement;\r\n bg.style.removeProperty('background-image');\r\n //\r\n this._isInEditing = false;\r\n const widgets = Array.from(this.ref.nativeElement.querySelectorAll('.widget-host'));\r\n widgets.forEach((w) => {\r\n w.removeEventListener('mousedown', this.dragStart.bind(this), false);\r\n });\r\n this.ref.nativeElement.removeEventListener('mousemove', this.drag.bind(this), false);\r\n this.ref.nativeElement.removeEventListener('mouseup', this.dragEnd.bind(this), false);\r\n this.emitConfigChanged();\r\n }\r\n\r\n\r\n addWidget(widget: AXWidgetConfig) {\r\n this.zone.runOutsideAngular(() => {\r\n this.newWidget = {\r\n uniqueName: widget.uniqueName,\r\n component: widget.component,\r\n title: widget.title,\r\n col: 1,\r\n row: 1,\r\n sizeX: widget.sizeX,\r\n sizeY: widget.sizeY,\r\n options: widget.options,\r\n props: widget.props\r\n };\r\n this.detectFirstEmptySlot(this.newWidget);\r\n const w = {\r\n uniqueName: this.newWidget.uniqueName,\r\n component: this.newWidget.component,\r\n title: this.newWidget.title,\r\n options: this.newWidget.options,\r\n props: this.newWidget.props,\r\n sizeX: this.newWidget.sizeX,\r\n sizeY: this.newWidget.sizeY,\r\n col: this.newWidget.col,\r\n row: this.newWidget.row\r\n };\r\n this.widgets.push(w);\r\n this.newWidget = null;\r\n this.zone.run(() => {\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n setTimeout(() => {\r\n w['__meta__'].instance.element.addEventListener('mousedown', this.dragStart.bind(this), false);\r\n }, 1000);\r\n });\r\n });\r\n }\r\n\r\n\r\n handleOnRemove(w: AXWidgetHostComponent) {\r\n w.element.classList.add('animate__animated', 'animate__zoomOut');\r\n w.element.addEventListener('animationend', () => {\r\n this.widgets = this.widgets.filter((c) => (c as any).__meta__.id !== (w.config as any).__meta__.id);\r\n this.cdr.detectChanges();\r\n this.calcGridSize();\r\n this.emitConfigChanged();\r\n });\r\n }\r\n\r\n handleOnSave(e: AXWidgetConfigSavedEvent) {\r\n this.onWidgetSave.emit(e);\r\n }\r\n\r\n trackByFn(index, item) {\r\n if (!item['__meta__']?.id) {\r\n item['__meta__'] = {};\r\n item['__meta__'].id = AXHtmlUtil.getUID();\r\n }\r\n return item['__meta__']?.id;\r\n }\r\n\r\n\r\n load(widgets: string | AXWidgetConfig[]): Promise<void> {\r\n this.clear();\r\n return new Promise<void>((resolve, reject) => {\r\n if (widgets) {\r\n const loadedWidgets: AXWidgetConfig[] = [];\r\n if (typeof widgets === 'string') {\r\n try {\r\n loadedWidgets.push(...JSON.parse(widgets));\r\n } catch (error) {\r\n reject('Invalid widget json data!');\r\n }\r\n }\r\n else {\r\n loadedWidgets.push(...widgets);\r\n }\r\n let intervalId: number = -1;\r\n const loadFunc = () => {\r\n\r\n if (this.galleryItems && this.galleryItems.length > 0) {\r\n loadedWidgets.forEach(w => {\r\n const gitem = this.galleryItems.find(c => c.uniqueName === w.uniqueName);\r\n if (gitem) {\r\n w.component = gitem.component;\r\n if (gitem.props) {\r\n w.props = JSON.parse(JSON.stringify(gitem.props));\r\n }\r\n }\r\n });\r\n this.widgets.push(...loadedWidgets);\r\n window.clearInterval(intervalId);\r\n this.cdr.detectChanges();\r\n resolve();\r\n }\r\n };\r\n intervalId = window.setInterval(loadFunc, 200);\r\n }\r\n else {\r\n resolve();\r\n }\r\n });\r\n }\r\n\r\n clear() {\r\n if (this.widgets.length) {\r\n this.widgets = [];\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n }\r\n\r\n save(): Promise<string> {\r\n const obj = this.widgets.map(c => ({\r\n uniqueName: c.uniqueName,\r\n component: c.component,\r\n title: c.title,\r\n sizeX: c.sizeX,\r\n sizeY: c.sizeY,\r\n col: c.col,\r\n row: c.row,\r\n options: c.options,\r\n props: c.props\r\n }));\r\n return Promise.resolve(JSON.stringify(obj));\r\n }\r\n\r\n refresh() {\r\n this.widgetHosts.forEach(host => {\r\n host.widget.refresh();\r\n });\r\n }\r\n\r\n handleOnConfigChanged(e: AXWidgetConfigChanged) {\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n\r\n handleOnResizedChanged(e: AXWidgetConfigChanged) {\r\n this.detectFirstEmptySlot(e.config);\r\n this.cdr.detectChanges();\r\n this.emitConfigChanged();\r\n }\r\n\r\n private resizeChangeObserver: any;\r\n private emitConfigChanged() {\r\n if (!this.resizeChangeObserver) {\r\n this.resizeChangeObserver = new Observable();\r\n Observable.create(observer => {\r\n this.resizeChangeObserver = observer;\r\n })\r\n .pipe(debounceTime(750))\r\n .pipe(distinctUntilChanged())\r\n .subscribe(c => {\r\n this.onConfigChanged.emit({\r\n component: this\r\n });\r\n });\r\n }\r\n this.resizeChangeObserver.next(new Date());\r\n }\r\n}\r\n","import { Component, OnInit, ChangeDetectorRef } from '@angular/core';\r\nimport { AXProperyEditorComponent } from '@acorex/components';\r\n\r\n@Component({\r\n templateUrl: './widget-size.editor.html'\r\n})\r\nexport class AXWidgetSizePropertyEditorComponent extends AXProperyEditorComponent<number[]> {\r\n\r\n sizeX: number;\r\n sizeY: number;\r\n\r\n minX: number = 1;\r\n maxX: number = 10;\r\n\r\n minY: number = 1;\r\n maxY: number = 10;\r\n\r\n\r\n constructor(protected cdr: ChangeDetectorRef) {\r\n super(cdr);\r\n }\r\n\r\n ngOnInit() {\r\n if (Array.isArray(this.value)) {\r\n this.sizeX = this.value[0];\r\n this.sizeY = this.value[1];\r\n }\r\n else {\r\n this.sizeX = 2;\r\n this.sizeY = 2;\r\n }\r\n }\r\n\r\n handleMinValueChange(e: any) {\r\n this.sizeX = e.value;\r\n\r\n if (this.sizeY > 0) {\r\n super.handleValueChange([this.sizeX, this.sizeY]);\r\n }\r\n }\r\n\r\n handleMaxValueChange(e: any) {\r\n this.sizeY = e.value;\r\n if (this.sizeX > 0) {\r\n super.handleValueChange([this.sizeX, this.sizeY]);\r\n }\r\n }\r\n\r\n\r\n\r\n ngAfterViewInit() {\r\n this.onRenderCompleted.emit();\r\n }\r\n\r\n}","import { NgModule } from '@angular/core';\r\nimport { AXWidgetBoardComponent } from './widget-board.component';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXWidgetHostComponent } from './widget-host.component';\r\nimport {\r\n AXSearchBoxModule,\r\n AXLoadingModule,\r\n AXProppertyEditorModule,\r\n AXPageModule, AXLabelModule,\r\n AXToolbarModule,\r\n AXTabStripModule,\r\n AXMenuModule,\r\n AXFormGroupModule,\r\n AXTextAreaModule, AXTextBoxModule, AXFieldsetModule, AXCheckBoxModule, AXValidationModule\r\n} from '@acorex/components';\r\nimport { RouterModule } from '@angular/router';\r\nimport { AXWidgetConfigComponent } from './widget-config.component';\r\nimport { AXTranslator, AXTranslatorModule } from '@acorex/core';\r\nimport { AXWidgetSizePropertyEditorComponent } from './editors/widget-size-editor/widget-size.editor';\r\nimport { AXWidgetSizePropertyEditorModule } from './editors/widget-size-editor/widget-size.module';\r\nimport { AXWidgetSaveComponent } from './widget-save.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n AXSearchBoxModule,\r\n AXLoadingModule,\r\n RouterModule,\r\n AXProppertyEditorModule,\r\n AXPageModule,\r\n AXToolbarModule,\r\n AXTranslatorModule,\r\n AXLabelModule,\r\n AXTextAreaModule,\r\n AXFieldsetModule,\r\n AXTextBoxModule,\r\n AXFormGroupModule,\r\n AXTabStripModule,\r\n AXCheckBoxModule,\r\n AXMenuModule,\r\n AXTranslatorModule,\r\n AXValidationModule,\r\n RouterModule.forChild([\r\n {\r\n component: AXWidgetSizePropertyEditorComponent,\r\n path: 'ax/editors/widget-size'\r\n },\r\n ])\r\n ],\r\n exports: [AXWidgetBoardComponent, AXProppertyEditorModule],\r\n declarations: [AXWidgetBoardComponent, AXWidgetHostComponent, AXWidgetConfigComponent, AXWidgetSaveComponent],\r\n entryComponents: [AXWidgetConfigComponent, AXWidgetSaveComponent],\r\n providers: []\r\n})\r\nexport class AXWidgetBoardModule {\r\n /**\r\n *\r\n */\r\n constructor() {\r\n AXTranslator.load('en', {\r\n 'widget-board': {\r\n 'configurable-props': 'Configurable Properties',\r\n configure: 'Configure Widget'\r\n }\r\n });\r\n AXTranslator.load('fa', {\r\n 'widget-board': {\r\n 'configurable-props': 'ویژگی های قابل تنظیم',\r\n configure: 'پیکر بندی ابزارک'\r\n }\r\n });\r\n\r\n }\r\n\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\n\r\nimport { AXWidgetSizePropertyEditorComponent } from './widget-size.editor';\r\nimport { AXNumberBoxModule } from '@acorex/components';\r\n\r\n\r\n\r\n\r\n@NgModule({\r\n declarations: [AXWidgetSizePropertyEditorComponent],\r\n imports: [CommonModule, FormsModule, AXNumberBoxModule],\r\n exports: [AXWidgetSizePropertyEditorComponent],\r\n entryComponents: [AXWidgetSizePropertyEditorComponent],\r\n providers: [],\r\n})\r\nexport class AXWidgetSizePropertyEditorModule {\r\n \r\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {AXWidgetConfigComponent as ɵa} from './lib/widget-board/widget-config.component';\nexport {AXWidgetSaveComponent as ɵb} from './lib/widget-board/widget-save.component';"],"names":[],"mappings":";;;;;;;;;;SAiFmB;IACH,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAA,CAAC,IAAI,QAAC;QAC1C,EAAE,EAAE,KAAK,GAAG,CAAC;QACb,IAAI,EAAE,YAAY,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC,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AAwB;qBACjC;iBACJ,CAAC;aACL;YACD,OAAO,EAAE,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;YAC1D,YAAY,EAAE,CAAC,sBAAsB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,qBAAqB,CAAC;YAC7G,eAAe,EAAE,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;YACjE,SAAS,EAAE,EAAE;SAChB,CAAC;;OACW,mBAAmB,CAoB/B;IAAD,0BAAC;CApBD;;;ICrCA;KAEC;IAFY,gCAAgC;QAP5C,QAAQ,CAAC;YACN,YAAY,EAAE,CAAC,mCAAmC,CAAC;YACnD,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,iBAAiB,CAAC;YACvD,OAAO,EAAE,CAAC,mCAAmC,CAAC;YAC9C,eAAe,EAAE,CAAC,mCAAmC,CAAC;YACtD,SAAS,EAAE,EAAE;SAChB,CAAC;OACW,gCAAgC,CAE5C;IAAD,uCAAC;CAFD;;ACjBA;;;;;;"}
@@ -1,3 +1,2 @@
1
1
  export declare class AXWidgetSizePropertyEditorModule {
2
- constructor();
3
2
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/layout",
3
- "version": "3.0.47",
3
+ "version": "3.0.48",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^9.0.6",
6
6
  "@angular/core": "^9.0.6"