terrier-engine 4.0.10 → 4.0.12

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.
Files changed (2) hide show
  1. package/dropdowns.ts +10 -0
  2. package/package.json +1 -1
package/dropdowns.ts CHANGED
@@ -19,6 +19,10 @@ export abstract class Dropdown<T, TT extends ThemeType> extends TerrierPart<T, T
19
19
 
20
20
  parentPart?: StatelessPart
21
21
 
22
+ get parentClasses(): Array<string> {
23
+ return ['tt-dropdown', ...super.parentClasses]
24
+ }
25
+
22
26
  // the computed absolute position of the
23
27
  left = 0
24
28
  top = 0
@@ -75,6 +79,12 @@ export abstract class Dropdown<T, TT extends ThemeType> extends TerrierPart<T, T
75
79
  * A concrete dropdown part that shows a list of actions.
76
80
  */
77
81
  export class ActionsDropdown<TT extends ThemeType> extends Dropdown<Array<Action<TT>>, TT> {
82
+
83
+
84
+ get parentClasses(): Array<string> {
85
+ return ['tt-actions-dropdown', ...super.parentClasses]
86
+ }
87
+
78
88
  renderContent(parent: PartTag) {
79
89
  // handle each key declared on the actions directly,
80
90
  // then clear the dropdown and re-emit them on the parent part
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "files": [
5
5
  "*"
6
6
  ],
7
- "version": "4.0.10",
7
+ "version": "4.0.12",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "https://github.com/Terrier-Tech/terrier-engine"