| 74 | } |
| 75 | |
| 76 | export class ComponentMeta implements IComponentMeta { |
| 77 | readonly isComponentMeta = true; |
| 78 | |
| 79 | private _npm?: IPublicTypeNpmInfo; |
| 80 | |
| 81 | private emitter: IEventBus = createModuleEventBus('ComponentMeta'); |
| 82 | |
| 83 | get npm() { |
| 84 | return this._npm; |
| 85 | } |
| 86 | |
| 87 | set npm(_npm: any) { |
| 88 | this.setNpm(_npm); |
| 89 | } |
| 90 | |
| 91 | private _componentName?: string; |
| 92 | |
| 93 | get componentName(): string { |
| 94 | return this._componentName!; |
| 95 | } |
| 96 | |
| 97 | private _isContainer?: boolean; |
| 98 | |
| 99 | get isContainer(): boolean { |
| 100 | return this._isContainer! || this.isRootComponent(); |
| 101 | } |
| 102 | |
| 103 | get isMinimalRenderUnit(): boolean { |
| 104 | return this._isMinimalRenderUnit || false; |
| 105 | } |
| 106 | |
| 107 | private _isModal?: boolean; |
| 108 | |
| 109 | get isModal(): boolean { |
| 110 | return this._isModal!; |
| 111 | } |
| 112 | |
| 113 | private _descriptor?: string; |
| 114 | |
| 115 | get descriptor(): string | undefined { |
| 116 | return this._descriptor; |
| 117 | } |
| 118 | |
| 119 | private _rootSelector?: string; |
| 120 | |
| 121 | get rootSelector(): string | undefined { |
| 122 | return this._rootSelector; |
| 123 | } |
| 124 | |
| 125 | private _transformedMetadata?: IPublicTypeTransformedComponentMetadata; |
| 126 | |
| 127 | get configure(): IPublicTypeFieldConfig[] { |
| 128 | const config = this._transformedMetadata?.configure; |
| 129 | return config?.combined || config?.props || []; |
| 130 | } |
| 131 | |
| 132 | private _liveTextEditing?: IPublicTypeLiveTextEditingConfig[]; |
| 133 |
nothing calls this directly
no test coverage detected
searching dependent graphs…