File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
src/Umbraco.Web.UI.Client
src/packages/core/icon-registry Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const collectDictionaryIcons = async () => {
47
47
const icon = {
48
48
name : iconDef . name ,
49
49
legacy : iconDef . legacy ,
50
+ hidden : iconDef . legacy ?? iconDef . internal ,
50
51
fileName : iconFileName ,
51
52
svg,
52
53
output : `${ iconsOutputDirectory } /${ iconFileName } .ts` ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class UmbIconRegistryContext extends UmbContextBase<UmbIconRegistryContex
13
13
#manifestMap = new Map ( ) ;
14
14
#icons = new UmbArrayState < UmbIconDefinition > ( [ ] , ( x ) => x . name ) ;
15
15
readonly icons = this . #icons. asObservable ( ) ;
16
- readonly approvedIcons = this . #icons. asObservablePart ( ( icons ) => icons . filter ( ( x ) => x . legacy !== true ) ) ;
16
+ readonly approvedIcons = this . #icons. asObservablePart ( ( icons ) => icons . filter ( ( x ) => x . hidden !== true ) ) ;
17
17
18
18
constructor ( host : UmbControllerHost ) {
19
19
super ( host , UMB_ICON_REGISTRY_CONTEXT ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,11 @@ export type * from './extensions/icons.extension.js';
5
5
export interface UmbIconDefinition < JsType = any > {
6
6
name : string ;
7
7
path : JsLoaderProperty < JsType > ;
8
+ /**
9
+ * @deprecated `legacy` is deprecated and will be removed in v.17. Use `hidden` instead.
10
+ */
8
11
legacy ?: boolean ;
12
+ hidden ?: boolean ;
9
13
}
10
14
11
15
export type UmbIconDictionary = Array < UmbIconDefinition > ;
You can’t perform that action at this time.
0 commit comments