refactor: 💡 convert rose/anonymous from classic to glimmer comp (#2799)
This commit is contained in:
1 parent
b3604e3e40
commit
a87c079ade
5 files changed
+10
-21
No files matched your search
@@ -3,4 +3,8 @@
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
{{yield}}
|
||||
{{#let (element (or @tagName 'div')) as |Tag|}}
|
||||
<Tag id={{@id}} class={{@class}} ...attributes>
|
||||
{{yield}}
|
||||
</Tag>
|
||||
{{/let}}
|
||||
@@ -1,15 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) HashiCorp, Inc.
|
||||
* SPDX-License-Identifier: BUSL-1.1
|
||||
*/
|
||||
|
||||
import Component from '@ember/component';
|
||||
import layout from './index';
|
||||
|
||||
/**
|
||||
* An otherwise empty component that renders a block. Used only by components
|
||||
* that yield simple contextual components, such as layouts yielding regions.
|
||||
*/
|
||||
export default Component.extend({
|
||||
layout,
|
||||
});
|
||||
@@ -13,12 +13,10 @@
|
||||
'rose/anonymous'
|
||||
id=(concat 'item-key-' this.id)
|
||||
tagName='div'
|
||||
classNames='rose-list-key-value-item-cell'
|
||||
class='rose-list-key-value-item-cell'
|
||||
)
|
||||
cell=(component
|
||||
'rose/anonymous'
|
||||
tagName='div'
|
||||
classNames='rose-list-key-value-item-cell'
|
||||
'rose/anonymous' tagName='div' class='rose-list-key-value-item-cell'
|
||||
)
|
||||
)
|
||||
}}
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
"ember-cli-sri": "^2.1.1",
|
||||
"ember-cli-terser": "^4.0.2",
|
||||
"ember-disable-prototype-extensions": "^1.1.3",
|
||||
"ember-element-helper": "^0.8.7",
|
||||
"ember-exam": "^8.0.0",
|
||||
"ember-export-application-global": "^2.0.1",
|
||||
"ember-inline-svg": "^1.0.1",
|
||||
|
||||
@@ -13452,7 +13452,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ember-element-helper@npm:^0.8.6":
|
||||
"ember-element-helper@npm:^0.8.6, ember-element-helper@npm:^0.8.7":
|
||||
version: 0.8.7
|
||||
resolution: "ember-element-helper@npm:0.8.7"
|
||||
dependencies:
|
||||
@@ -22913,6 +22913,7 @@ __metadata:
|
||||
ember-cli-terser: "npm:^4.0.2"
|
||||
ember-composable-helpers: "npm:^5.0.0"
|
||||
ember-disable-prototype-extensions: "npm:^1.1.3"
|
||||
ember-element-helper: "npm:^0.8.7"
|
||||
ember-exam: "npm:^8.0.0"
|
||||
ember-export-application-global: "npm:^2.0.1"
|
||||
ember-focus-trap: "npm:^1.0.1"
|
||||
|
||||
Reference in new issue
Block a user