rename to UmbBlockGridTypeGroupType
This commit is contained in:
@@ -4,20 +4,20 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import type { UmbPropertyEditorConfigCollection } from '@umbraco-cms/backoffice/property-editor';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { UmbId } from '@umbraco-cms/backoffice/id';
|
||||
import type { UmbBlockGridGroupType } from '@umbraco-cms/backoffice/block';
|
||||
import type { UmbBlockGridTypeGroupType } from '@umbraco-cms/backoffice/block';
|
||||
|
||||
@customElement('umb-property-editor-ui-block-grid-group-configuration')
|
||||
export class UmbPropertyEditorUIBlockGridGroupConfigurationElement
|
||||
extends UmbLitElement
|
||||
implements UmbPropertyEditorUiElement
|
||||
{
|
||||
private _value: Array<UmbBlockGridGroupType> = [];
|
||||
private _value: Array<UmbBlockGridTypeGroupType> = [];
|
||||
|
||||
@property({ type: Array })
|
||||
public get value(): Array<UmbBlockGridGroupType> {
|
||||
public get value(): Array<UmbBlockGridTypeGroupType> {
|
||||
return this._value;
|
||||
}
|
||||
public set value(value: Array<UmbBlockGridGroupType>) {
|
||||
public set value(value: Array<UmbBlockGridTypeGroupType>) {
|
||||
this._value = value || [];
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import {
|
||||
UMB_BLOCK_GRID_TYPE,
|
||||
type UmbBlockGridGroupType,
|
||||
type UmbBlockGridTypeGroupType,
|
||||
type UmbBlockGridGroupTypeConfiguration,
|
||||
} from '@umbraco-cms/backoffice/block';
|
||||
import type { UUIInputEvent } from '@umbraco-cms/backoffice/external/uui';
|
||||
@@ -44,7 +44,7 @@ export class UmbPropertyEditorUIBlockGridTypeConfigurationElement
|
||||
public config?: UmbPropertyEditorConfigCollection;
|
||||
|
||||
@state()
|
||||
private _blockGroups: Array<UmbBlockGridGroupType> = [];
|
||||
private _blockGroups: Array<UmbBlockGridTypeGroupType> = [];
|
||||
|
||||
@state()
|
||||
private _mappedValuesAndGroups: Array<UmbBlockGridGroupTypeConfiguration> = [];
|
||||
@@ -76,7 +76,7 @@ export class UmbPropertyEditorUIBlockGridTypeConfigurationElement
|
||||
if (!this.#datasetContext) return;
|
||||
|
||||
this.observe(await this.#datasetContext.propertyValueByAlias('blockGroups'), (value) => {
|
||||
this._blockGroups = (value as Array<UmbBlockGridGroupType>) ?? [];
|
||||
this._blockGroups = (value as Array<UmbBlockGridTypeGroupType>) ?? [];
|
||||
this.#mapValuesToBlockGroups();
|
||||
});
|
||||
this.observe(await this.#datasetContext.propertyValueByAlias('blocks'), () => {
|
||||
|
||||
@@ -14,12 +14,12 @@ export interface UmbBlockGridTypeModel extends UmbBlockTypeBaseModel {
|
||||
areas: Array<any>;
|
||||
}
|
||||
|
||||
export interface UmbBlockGridGroupType {
|
||||
export interface UmbBlockGridTypeGroupType {
|
||||
name: string;
|
||||
key: string;
|
||||
}
|
||||
|
||||
export interface UmbBlockGridGroupTypeConfiguration extends Partial<UmbBlockGridGroupType> {
|
||||
export interface UmbBlockGridGroupTypeConfiguration extends Partial<UmbBlockGridTypeGroupType> {
|
||||
blocks: Array<UmbBlockTypeWithGroupKey>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user