remove unused entity store
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
import { UmbStoreBase } from './store-base.js';
|
||||
import type { ItemResponseModelBaseModel } from '@umbraco-cms/backoffice/backend-api';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
import { UmbArrayState } from '@umbraco-cms/backoffice/observable-api';
|
||||
|
||||
/**
|
||||
* @export
|
||||
* @class UmbDataTypeItemStore
|
||||
* @extends {UmbStoreBase}
|
||||
* @description - Data Store for Data Type items
|
||||
*/
|
||||
|
||||
export class UmbEntityItemStore<T extends ItemResponseModelBaseModel> extends UmbStoreBase<T> {
|
||||
/**
|
||||
* Creates an instance of UmbEntityItemStore.
|
||||
* @param {UmbControllerHost} host
|
||||
* @memberof UmbDataTypeItemStore
|
||||
*/
|
||||
constructor(host: UmbControllerHost, storeAlias: string) {
|
||||
super(host, storeAlias, new UmbArrayState<T>([], (x) => x.id));
|
||||
}
|
||||
|
||||
items(ids: Array<string>) {
|
||||
return this._data.asObservablePart((items) => items.filter((item) => ids.includes(item.id)));
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
export * from './store-base.js';
|
||||
export * from './store.interface.js';
|
||||
export * from './store.js';
|
||||
export * from './entity-item.store.js';
|
||||
|
||||
export { UmbDetailStoreBase } from './detail-store-base.js';
|
||||
export type { UmbDetailStore } from './detail-store.interface.js';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { UmbItemStoreBase } from '@umbraco-cms/backoffice/store';
|
||||
/**
|
||||
* @export
|
||||
* @class UmbMediaTypeItemStore
|
||||
* @extends {UmbEntityItemStore}
|
||||
* @extends {UmbItemStoreBase}
|
||||
* @description - Data Store for Media Type items
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user