terrier-engine 4.0.12 → 4.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fragments.ts +4 -3
- package/package.json +6 -4
package/fragments.ts
CHANGED
|
@@ -141,16 +141,17 @@ class CardFragment<TT extends ThemeType> extends ContentFragment<TT> {
|
|
|
141
141
|
* @param parent
|
|
142
142
|
*/
|
|
143
143
|
render(parent: PartTag) {
|
|
144
|
+
const noTtPrefix = this.prefix.replace('tt-', '')
|
|
144
145
|
return parent.a({href: this._href}, this.prefix, panel => {
|
|
145
146
|
if (this._title?.length) {
|
|
146
|
-
panel.div(`.${
|
|
147
|
+
panel.div(`.${noTtPrefix}-header`, header => {
|
|
147
148
|
if (this._icon) {
|
|
148
149
|
this.theme.renderIcon(header, this._icon, 'link')
|
|
149
150
|
}
|
|
150
151
|
header.h3({text: this._title})
|
|
151
152
|
})
|
|
152
153
|
}
|
|
153
|
-
panel.div(`.${
|
|
154
|
+
panel.div(`.${noTtPrefix}-content`, content => {
|
|
154
155
|
if (this._content) {
|
|
155
156
|
this._content(content)
|
|
156
157
|
}
|
|
@@ -276,7 +277,7 @@ class LabeledListFragment<TT extends ThemeType> extends ContentFragment<TT> {
|
|
|
276
277
|
valueBox.div('.tt-flex.shrink.align-center.secondary', badge => {
|
|
277
278
|
if (listItem.tooltip) badge.dataAttr("tooltip", listItem.tooltip)
|
|
278
279
|
|
|
279
|
-
const anchorAttrs: AnchorTagAttrs = { classes: ['button'], text: listItem.value }
|
|
280
|
+
const anchorAttrs: AnchorTagAttrs = { classes: ['tt-button'], text: listItem.value }
|
|
280
281
|
if (listItem.href?.length) {
|
|
281
282
|
anchorAttrs.classes?.push('secondary')
|
|
282
283
|
anchorAttrs.href = listItem.href
|
package/package.json
CHANGED
|
@@ -4,20 +4,22 @@
|
|
|
4
4
|
"files": [
|
|
5
5
|
"*"
|
|
6
6
|
],
|
|
7
|
-
"version": "4.0.
|
|
7
|
+
"version": "4.0.14",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/Terrier-Tech/terrier-engine"
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
|
-
"scripts"
|
|
14
|
-
"check"
|
|
13
|
+
"scripts": {
|
|
14
|
+
"check": "tsc -p app/frontend -noEmit"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"tuff-core": "^0.25.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "^18.16.3",
|
|
21
|
-
"
|
|
21
|
+
"glyphs2font": "^1.2.4",
|
|
22
|
+
"prettier": "^2.8.8",
|
|
23
|
+
"svgo": "^3.0.2"
|
|
22
24
|
}
|
|
23
25
|
}
|