@emuanalytics/flow-rdf-ui 4.1.0-preview.3 → 4.1.0-preview.7

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.
@@ -41,6 +41,7 @@ const styles = css`
41
41
  }
42
42
 
43
43
  .panel-header__label {
44
+ font-size: var(--flow-ui-panel-header-font-size);
44
45
  font-weight: var(--flow-ui-panel-header-font-weight);
45
46
  text-overflow: ellipsis;
46
47
  overflow: hidden;
@@ -120,12 +120,12 @@ const styles = css`
120
120
 
121
121
  .query-builder__rule-menu-button {
122
122
  margin-inline: calc(var(--flow-ui-spacing-x-small) * -1);
123
- color: var(--flow-ui-color-neutral-400);
123
+ color: var(--flow-ui-color-neutral-700);
124
124
  }
125
125
 
126
126
  .query-builder__toolbar:hover .query-builder__rule-menu-button,
127
127
  .query-builder__rule:hover .query-builder__rule-menu-button {
128
- color: var(--flow-ui-color-neutral-600);
128
+ color: var(--flow-ui-color-neutral-900);
129
129
  }
130
130
 
131
131
  .menu-item--danger::part(base) {
@@ -36,6 +36,10 @@ const styles = css`
36
36
  grid-template-columns: 1fr 1fr;
37
37
  }
38
38
 
39
+ .form-control.form-control--inline .form-control__input {
40
+ background-color: transparent;
41
+ }
42
+
39
43
  .form-control .form-control__input,
40
44
  .form-control:not(.form-control--disabled) .form-control__input:hover,
41
45
  .form-control:not(.form-control--disabled).form-control--focused .form-control__input {
@@ -33,6 +33,7 @@ class FlowUiTab extends FlowRdfElement {
33
33
  this.iconOnly = false;
34
34
  this.closable = false;
35
35
  this.disabled = false;
36
+ this.placement = "top";
36
37
  this.tooltipPlacement = "top";
37
38
  this.tooltipDistance = -4;
38
39
  this.tooltipSkidding = 0;
@@ -143,6 +144,9 @@ __decorateClass([
143
144
  __decorateClass([
144
145
  property()
145
146
  ], FlowUiTab.prototype, "label", 2);
147
+ __decorateClass([
148
+ property({ reflect: true })
149
+ ], FlowUiTab.prototype, "placement", 2);
146
150
  __decorateClass([
147
151
  property({ attribute: "tooltip-placement" })
148
152
  ], FlowUiTab.prototype, "tooltipPlacement", 2);
@@ -5,10 +5,12 @@ const styles = css`
5
5
  ${componentStyles}
6
6
 
7
7
  :host {
8
- display: inline-block;
8
+ display: inline-flex;
9
+ align-items: center;
9
10
  --color: var(--flow-ui-tab-color);
10
11
  --active-label-color: var(--flow-ui-tab-active-label-color);
11
12
  --active-icon-color: var(--flow-ui-tab-active-icon-color);
13
+ --min-size: auto;
12
14
  }
13
15
 
14
16
  .tab {
@@ -30,6 +32,16 @@ const styles = css`
30
32
  var(--transition-speed) color;
31
33
  }
32
34
 
35
+ :host([placement='top']) .tab,
36
+ :host([placement='bottom']) .tab {
37
+ min-width: var(--min-size);
38
+ }
39
+
40
+ :host([placement='start']) .tab,
41
+ :host([placement='end']) .tab {
42
+ min-height: var(--min-size);
43
+ }
44
+
33
45
  /* Highlight icon only on hover */
34
46
  .tab:hover:not(.tab--disabled) .tab__icon {
35
47
  color: var(--flow-ui-tab-active-label-color);
@@ -259,6 +259,7 @@ class FlowUiTabGroup extends FlowRdfElement {
259
259
  this.panels = this.getAllPanels();
260
260
  this.tabs.forEach((tab) => {
261
261
  tab.tabGroup = this;
262
+ tab.placement = this.placement;
262
263
  });
263
264
  if (this._activeTab && this.tabs.includes(this._activeTab) === false) {
264
265
  this.setActiveTab(this.tabs.find((el) => !el.disabled) ?? this.tabs[0], { emitEvents: true });