@acrodata/gui 2.0.0 → 2.1.0

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/gui-form.scss CHANGED
@@ -71,6 +71,7 @@
71
71
  position: relative;
72
72
  padding: 0 0.75rem;
73
73
  line-height: 1.5rem;
74
+ border-bottom: var(--mat-tab-header-divider-height) solid transparent;
74
75
 
75
76
  &::before {
76
77
  position: absolute;
@@ -88,7 +89,15 @@
88
89
  }
89
90
 
90
91
  .gui-list-item-title {
92
+ display: flex;
91
93
  flex: 1;
94
+ padding: 0;
95
+ background-color: transparent;
96
+ border: none;
97
+ font-size: inherit;
98
+ font-family: inherit;
99
+ letter-spacing: inherit;
100
+ line-height: inherit;
92
101
  cursor: pointer;
93
102
 
94
103
  .gui-list-item-active & {
@@ -1,4 +1,6 @@
1
1
  .gui-icon-button-wrapper {
2
+ line-height: 1;
3
+
2
4
  .mat-mdc-icon-button {
3
5
  --mdc-icon-button-state-layer-size: 1.5rem;
4
6
  --mdc-icon-button-icon-size: 0.875rem;
package/interface.d.ts CHANGED
@@ -36,9 +36,7 @@ export interface GuiField {
36
36
  mode?: GuiFillMode | GuiSliderMode | GuiTabsMode;
37
37
  rows?: number;
38
38
  }
39
- export interface GuiFields {
40
- [key: string]: GuiField;
41
- }
39
+ export type GuiFields = Record<string, GuiField>;
42
40
  export interface GuiFieldOption {
43
41
  label: string;
44
42
  value: string | number | boolean;
@@ -57,6 +55,4 @@ export interface GuiControl extends GuiField {
57
55
  template?: Partial<GuiControl>;
58
56
  selectedIndex?: number;
59
57
  }
60
- export interface GuiControls {
61
- [key: string]: GuiControl;
62
- }
58
+ export type GuiControls = Record<string, GuiControl>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrodata/gui",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "JSON powered GUI for configurable panels.",
5
5
  "publishConfig": {
6
6
  "access": "public"