add umb prefix
This commit is contained in:
@@ -135,7 +135,7 @@ export class UmbDashboardModelsBuilderElement extends UmbLitElement {
|
||||
</p>
|
||||
${this._modelsBuilder?.lastError
|
||||
? html`<p class="error">Last generation failed with the following error:</p>
|
||||
<uui-code-block>${this._modelsBuilder.lastError}</uui-code-block>`
|
||||
<umb-code-block>${this._modelsBuilder.lastError}</umb-code-block>`
|
||||
: nothing}
|
||||
</uui-box>
|
||||
`;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { UmbRelationTypeTreeStore, UMB_RELATION_TYPE_TREE_STORE_CONTEXT_TOKEN } from './relation-type.tree.store';
|
||||
import { UmbRelationTypeServerDataSource } from './sources/relation-type.server.data';
|
||||
import { UmbRelationTypeStore, UMB_RELATION_TYPE_STORE_CONTEXT_TOKEN } from './relation-type.store';
|
||||
import { RelationTypeTreeServerDataSource } from './sources/relation-type.tree.server.data';
|
||||
import { RelationTypeTreeDataSource } from './sources';
|
||||
import { UmbRelationTypeTreeServerDataSource } from './sources/relation-type.tree.server.data';
|
||||
import { UmbRelationTypeTreeDataSource } from './sources';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
||||
import { UmbContextConsumerController } from '@umbraco-cms/backoffice/context-api';
|
||||
import {
|
||||
@@ -23,7 +23,7 @@ export class UmbRelationTypeRepository
|
||||
|
||||
#host: UmbControllerHostElement;
|
||||
|
||||
#treeSource: RelationTypeTreeDataSource;
|
||||
#treeSource: UmbRelationTypeTreeDataSource;
|
||||
#treeStore?: UmbRelationTypeTreeStore;
|
||||
|
||||
#detailDataSource: UmbRelationTypeServerDataSource;
|
||||
@@ -35,7 +35,7 @@ export class UmbRelationTypeRepository
|
||||
this.#host = host;
|
||||
|
||||
// TODO: figure out how spin up get the correct data source
|
||||
this.#treeSource = new RelationTypeTreeServerDataSource(this.#host);
|
||||
this.#treeSource = new UmbRelationTypeTreeServerDataSource(this.#host);
|
||||
this.#detailDataSource = new UmbRelationTypeServerDataSource(this.#host);
|
||||
|
||||
this.#init = Promise.all([
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { DataSourceResponse } from '@umbraco-cms/backoffice/repository';
|
||||
import { ItemResponseModelBaseModel, PagedEntityTreeItemResponseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
|
||||
export interface RelationTypeTreeDataSource {
|
||||
export interface UmbRelationTypeTreeDataSource {
|
||||
getRootItems(): Promise<DataSourceResponse<PagedEntityTreeItemResponseModel>>;
|
||||
getItems(ids: Array<string>): Promise<DataSourceResponse<ItemResponseModelBaseModel[]>>;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { RelationTypeTreeDataSource } from '.';
|
||||
import { UmbRelationTypeTreeDataSource } from '.';
|
||||
import { ProblemDetailsModel, RelationTypeResource } from '@umbraco-cms/backoffice/backend-api';
|
||||
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
||||
|
||||
@@ -7,10 +7,10 @@ import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
|
||||
/**
|
||||
* A data source for the RelationType tree that fetches data from the server
|
||||
* @export
|
||||
* @class RelationTypeTreeServerDataSource
|
||||
* @implements {RelationTypeTreeDataSource}
|
||||
* @class UmbRelationTypeTreeServerDataSource
|
||||
* @implements {UmbRelationTypeTreeDataSource}
|
||||
*/
|
||||
export class RelationTypeTreeServerDataSource implements RelationTypeTreeDataSource {
|
||||
export class UmbRelationTypeTreeServerDataSource implements UmbRelationTypeTreeDataSource {
|
||||
#host: UmbControllerHostElement;
|
||||
|
||||
// TODO: how do we handle trashed items?
|
||||
@@ -47,9 +47,9 @@ export class RelationTypeTreeServerDataSource implements RelationTypeTreeDataSou
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an instance of RelationTypeTreeServerDataSource.
|
||||
* Creates an instance of UmbRelationTypeTreeServerDataSource.
|
||||
* @param {UmbControllerHostElement} host
|
||||
* @memberof RelationTypeTreeServerDataSource
|
||||
* @memberof UmbRelationTypeTreeServerDataSource
|
||||
*/
|
||||
constructor(host: UmbControllerHostElement) {
|
||||
this.#host = host;
|
||||
@@ -58,7 +58,7 @@ export class RelationTypeTreeServerDataSource implements RelationTypeTreeDataSou
|
||||
/**
|
||||
* Fetches the root items for the tree from the server
|
||||
* @return {*}
|
||||
* @memberof RelationTypeTreeServerDataSource
|
||||
* @memberof UmbRelationTypeTreeServerDataSource
|
||||
*/
|
||||
async getRootItems() {
|
||||
return tryExecuteAndNotify(this.#host, RelationTypeResource.getTreeRelationTypeRoot({}));
|
||||
@@ -68,7 +68,7 @@ export class RelationTypeTreeServerDataSource implements RelationTypeTreeDataSou
|
||||
* Fetches the items for the given ids from the server
|
||||
* @param {Array<string>} ids
|
||||
* @return {*}
|
||||
* @memberof RelationTypeTreeServerDataSource
|
||||
* @memberof UmbRelationTypeTreeServerDataSource
|
||||
*/
|
||||
async getItems(ids: Array<string>) {
|
||||
if (ids) {
|
||||
|
||||
@@ -7,8 +7,8 @@ import { customElement } from 'lit/decorators.js';
|
||||
* @slot the full message
|
||||
*
|
||||
*/
|
||||
@customElement('uui-code-block')
|
||||
export class UUICodeBlockElement extends LitElement {
|
||||
@customElement('umb-code-block')
|
||||
export class UmbCodeBlockElement extends LitElement {
|
||||
static styles = [
|
||||
UUITextStyles,
|
||||
css`
|
||||
@@ -54,6 +54,6 @@ export class UUICodeBlockElement extends LitElement {
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
'uui-code-block': UUICodeBlockElement;
|
||||
'umb-code-block': UmbCodeBlockElement;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { Meta, StoryObj } from '@storybook/web-components';
|
||||
import { html } from 'lit';
|
||||
import './code-block.element';
|
||||
import type { UUICodeBlockElement } from './code-block.element';
|
||||
import type { UmbCodeBlockElement } from './code-block.element';
|
||||
|
||||
const meta: Meta<UUICodeBlockElement> = {
|
||||
const meta: Meta<UmbCodeBlockElement> = {
|
||||
title: 'Components/Code Block',
|
||||
component: 'uui-code-block',
|
||||
component: 'umb-code-block',
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<UUICodeBlockElement>;
|
||||
type Story = StoryObj<UmbCodeBlockElement>;
|
||||
|
||||
export const Overview: Story = {
|
||||
args: {},
|
||||
@@ -17,5 +17,5 @@ export const Overview: Story = {
|
||||
|
||||
export const WithCode: Story = {
|
||||
decorators: [],
|
||||
render: () => html` <uui-code-block> // Lets write some javascript alert("Hello World"); </uui-code-block>`,
|
||||
render: () => html` <umb-code-block> // Lets write some javascript alert("Hello World"); </umb-code-block>`,
|
||||
};
|
||||
|
||||
@@ -6,16 +6,16 @@ import { tryExecuteAndNotify } from '@umbraco-cms/backoffice/resources';
|
||||
/**
|
||||
* A data source for the Template tree that fetches data from the server
|
||||
* @export
|
||||
* @class TemplateTreeServerDataSource
|
||||
* @class UmbTemplateTreeServerDataSource
|
||||
* @implements {TemplateTreeDataSource}
|
||||
*/
|
||||
export class TemplateTreeServerDataSource implements TemplateTreeDataSource {
|
||||
export class UmbTemplateTreeServerDataSource implements TemplateTreeDataSource {
|
||||
#host: UmbControllerHostElement;
|
||||
|
||||
/**
|
||||
* Creates an instance of TemplateTreeServerDataSource.
|
||||
* Creates an instance of UmbTemplateTreeServerDataSource.
|
||||
* @param {UmbControllerHostElement} host
|
||||
* @memberof TemplateTreeServerDataSource
|
||||
* @memberof UmbTemplateTreeServerDataSource
|
||||
*/
|
||||
constructor(host: UmbControllerHostElement) {
|
||||
this.#host = host;
|
||||
@@ -24,7 +24,7 @@ export class TemplateTreeServerDataSource implements TemplateTreeDataSource {
|
||||
/**
|
||||
* Fetches the root items for the tree from the server
|
||||
* @return {*}
|
||||
* @memberof TemplateTreeServerDataSource
|
||||
* @memberof UmbTemplateTreeServerDataSource
|
||||
*/
|
||||
async getRootItems() {
|
||||
return tryExecuteAndNotify(this.#host, TemplateResource.getTreeTemplateRoot({}));
|
||||
@@ -34,7 +34,7 @@ export class TemplateTreeServerDataSource implements TemplateTreeDataSource {
|
||||
* Fetches the children of a given parent id from the server
|
||||
* @param {(string | null)} parentId
|
||||
* @return {*}
|
||||
* @memberof TemplateTreeServerDataSource
|
||||
* @memberof UmbTemplateTreeServerDataSource
|
||||
*/
|
||||
async getChildrenOf(parentId: string | null) {
|
||||
if (!parentId) {
|
||||
@@ -54,7 +54,7 @@ export class TemplateTreeServerDataSource implements TemplateTreeDataSource {
|
||||
* Fetches the items for the given ids from the server
|
||||
* @param {Array<string>} id
|
||||
* @return {*}
|
||||
* @memberof TemplateTreeServerDataSource
|
||||
* @memberof UmbTemplateTreeServerDataSource
|
||||
*/
|
||||
async getItems(ids: Array<string>) {
|
||||
if (!ids) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UmbTemplateDetailServerDataSource } from './sources/template.detail.server.data';
|
||||
import { TemplateTreeServerDataSource } from './sources/template.tree.server.data';
|
||||
import { UmbTemplateTreeServerDataSource } from './sources/template.tree.server.data';
|
||||
import { UmbTemplateStore, UMB_TEMPLATE_STORE_CONTEXT_TOKEN } from './template.store';
|
||||
import { UmbTemplateTreeStore, UMB_TEMPLATE_TREE_STORE_CONTEXT_TOKEN } from './template.tree.store';
|
||||
import type { UmbDetailRepository, UmbTreeRepository } from '@umbraco-cms/backoffice/repository';
|
||||
@@ -21,7 +21,7 @@ export class UmbTemplateRepository
|
||||
#init;
|
||||
#host: UmbControllerHostElement;
|
||||
|
||||
#treeDataSource: TemplateTreeServerDataSource;
|
||||
#treeDataSource: UmbTemplateTreeServerDataSource;
|
||||
#detailDataSource: UmbTemplateDetailServerDataSource;
|
||||
|
||||
#treeStore?: UmbTemplateTreeStore;
|
||||
@@ -33,7 +33,7 @@ export class UmbTemplateRepository
|
||||
this.#host = host;
|
||||
|
||||
// TODO: figure out how spin up get the correct data source
|
||||
this.#treeDataSource = new TemplateTreeServerDataSource(this.#host);
|
||||
this.#treeDataSource = new UmbTemplateTreeServerDataSource(this.#host);
|
||||
this.#detailDataSource = new UmbTemplateDetailServerDataSource(this.#host);
|
||||
|
||||
this.#init = Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user