@emuanalytics/flow-rdf-ui 4.1.0-preview.16 → 4.1.0-preview.18

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.
@@ -20,6 +20,7 @@ class FlowUiBadge extends FlowRdfElement {
20
20
  constructor() {
21
21
  super(...arguments);
22
22
  this.variant = "primary";
23
+ this.size = "medium";
23
24
  this.pill = false;
24
25
  this.pulse = false;
25
26
  }
@@ -52,6 +53,9 @@ FlowUiBadge.styles = styles;
52
53
  __decorateClass([
53
54
  property({ reflect: true })
54
55
  ], FlowUiBadge.prototype, "variant", 2);
56
+ __decorateClass([
57
+ property({ reflect: true })
58
+ ], FlowUiBadge.prototype, "size", 2);
55
59
  __decorateClass([
56
60
  property({ type: Boolean, reflect: true })
57
61
  ], FlowUiBadge.prototype, "pill", 2);
@@ -60,6 +60,19 @@ const styles = css`
60
60
  --background-color: var(--flow-ui-color-danger-500);
61
61
  }
62
62
 
63
+ /* Size modifiers */
64
+ :host([size='small']) .badge {
65
+ font-size: var(--flow-ui-font-size-x-small);
66
+ }
67
+
68
+ :host([size='medium']) .badge {
69
+ font-size: var(--flow-ui-font-size-small);
70
+ }
71
+
72
+ :host([size='large']) .badge {
73
+ font-size: var(--flow-ui-font-size-medium);
74
+ }
75
+
63
76
  /* Pill modifier */
64
77
  .badge--pill {
65
78
  border-radius: var(--flow-ui-border-radius-pill);
@@ -79,7 +79,7 @@ class FlowUiGauge extends FlowRdfElement {
79
79
  infoDialogTemplate() {
80
80
  return html`
81
81
  <flow-ui-dialog class="gauge__info-dialog">
82
- <div slot="heading" class="gauge__info-dialog-heading">${this.headerIconTemplate()} ${this.title}</div>
82
+ <div slot="title" class="gauge__info-dialog-heading">${this.headerIconTemplate()} ${this.title}</div>
83
83
  <slot name="info"></slot>
84
84
  <div slot="footer">
85
85
  <flow-ui-button autofocus slot="footer" variant="primary" @click=${this.hideInfoDialog}>OK</flow-ui-button>
@@ -29,6 +29,7 @@ class FlowUiMap extends FlowRdfElement {
29
29
  this.busy = false;
30
30
  this.fixed = false;
31
31
  this.bearingSnap = 7;
32
+ this.fadeDuration = 300;
32
33
  this._initialized = new Promise((resolve) => {
33
34
  this._resolveInitialized = resolve;
34
35
  });
@@ -94,7 +95,8 @@ class FlowUiMap extends FlowRdfElement {
94
95
  baseStyle: this.baseStyle,
95
96
  center: this.center,
96
97
  zoom: this.zoom,
97
- bearingSnap: this.bearingSnap
98
+ bearingSnap: this.bearingSnap,
99
+ fadeDuration: this.fadeDuration
98
100
  });
99
101
  await map.initialized;
100
102
  if (this._pendingCenter) {
@@ -193,6 +195,9 @@ __decorateClass([
193
195
  __decorateClass([
194
196
  property({ type: Number, attribute: "bearing-snap" })
195
197
  ], FlowUiMap.prototype, "bearingSnap", 2);
198
+ __decorateClass([
199
+ property({ type: Number, attribute: "fade-duration" })
200
+ ], FlowUiMap.prototype, "fadeDuration", 2);
196
201
  __decorateClass([
197
202
  watch(["center", "zoom", "bearing", "pitch"])
198
203
  ], FlowUiMap.prototype, "handleCenterChange", 1);
@@ -46,6 +46,7 @@ const styles = css`
46
46
  display: flex;
47
47
  flex-direction: row;
48
48
  align-items: center;
49
+ flex-shrink: 0;
49
50
  }
50
51
 
51
52
  .tab-group__accessory-divider {