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

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 (41) hide show
  1. package/dist/components/alert/alert.styles.mjs +1 -1
  2. package/dist/components/breadcrumb-item/breadcrumb-item.styles.mjs +1 -1
  3. package/dist/components/button/button.styles.mjs +2 -2
  4. package/dist/components/calendar/calendar.component.mjs +3 -0
  5. package/dist/components/calendar/calendar.styles.mjs +13 -4
  6. package/dist/components/checkbox-group/checkbox-group.component.mjs +4 -0
  7. package/dist/components/date-time-picker/date-time-picker.component.mjs +2 -0
  8. package/dist/components/date-time-picker/date-time-picker.styles.mjs +2 -2
  9. package/dist/components/dialog/dialog.styles.mjs +1 -1
  10. package/dist/components/form-group/form-group.component.mjs +19 -14
  11. package/dist/components/form-group/form-group.styles.mjs +5 -5
  12. package/dist/components/icon-button/icon-button.styles.mjs +1 -1
  13. package/dist/components/menu/menu.styles.mjs +1 -0
  14. package/dist/components/menu-item/menu-item.styles.mjs +1 -1
  15. package/dist/components/option/option.styles.mjs +1 -1
  16. package/dist/components/panel/panel.component.mjs +10 -3
  17. package/dist/components/panel/panel.styles.mjs +4 -0
  18. package/dist/components/query-builder/query-builder.component.mjs +9 -2
  19. package/dist/components/query-builder/query-builder.styles.mjs +12 -0
  20. package/dist/components/range/range.styles.mjs +1 -1
  21. package/dist/components/select/select.styles.mjs +9 -0
  22. package/dist/components/spinner/spinner.styles.mjs +1 -1
  23. package/dist/components/stepper/stepper.styles.mjs +5 -6
  24. package/dist/components/switch/switch.styles.mjs +1 -1
  25. package/dist/components/tab-panel/tab-panel.component.mjs +7 -1
  26. package/dist/components/tab-panel/tab-panel.styles.mjs +7 -3
  27. package/dist/components/tag/tag.styles.mjs +13 -13
  28. package/dist/components/timer/timer.component.mjs +1 -1
  29. package/dist/components/timer/timer.styles.mjs +2 -2
  30. package/dist/components/tool-button/tool-button.styles.mjs +9 -9
  31. package/dist/custom-elements.json +3286 -3253
  32. package/dist/index.d.mts +14 -4
  33. package/dist/index.d.ts +14 -4
  34. package/dist/package.json.mjs +1 -1
  35. package/dist/styles/form-control.styles.mjs +5 -0
  36. package/dist/vscode.html-custom-data.json +260 -255
  37. package/package.json +1 -1
  38. package/themes/dark.css +77 -52
  39. package/themes/dark.styles.js +77 -52
  40. package/themes/light.css +90 -53
  41. package/themes/light.styles.js +90 -53
@@ -20,7 +20,7 @@ const styles = css`
20
20
  border-top-width: calc(var(--flow-ui-alert-border-width) * 3);
21
21
  border-radius: var(--flow-ui-border-radius-medium);
22
22
  font-family: var(--flow-ui-font-sans);
23
- font-size: var(--flow-ui-font-size-small);
23
+ font-size: var(--flow-ui-font-size-medium);
24
24
  font-weight: var(--flow-ui-font-weight-normal);
25
25
  line-height: 1.6;
26
26
  color: var(--flow-ui-alert-color);
@@ -14,7 +14,7 @@ const styles = css`
14
14
  font-family: var(--flow-ui-font-sans);
15
15
  font-size: var(--flow-ui-font-size-small);
16
16
  font-weight: var(--flow-ui-font-weight-semibold);
17
- color: var(--flow-ui-color-neutral-600);
17
+ color: var(--flow-ui-color-neutral-800);
18
18
  line-height: var(--flow-ui-line-height-normal);
19
19
  white-space: nowrap;
20
20
  }
@@ -79,8 +79,8 @@ const buttonStyles = css`
79
79
  /* Default */
80
80
  .button--standard.button--default {
81
81
  background-color: var(--flow-ui-color-background);
82
- border-color: var(--flow-ui-color-neutral-300);
83
- color: var(--flow-ui-color-neutral-700);
82
+ border-color: var(--flow-ui-color-neutral-600);
83
+ color: var(--flow-ui-color-neutral-800);
84
84
  }
85
85
 
86
86
  .button--standard.button--default:hover:not(.button--disabled) {
@@ -227,6 +227,7 @@ class FlowUiCalendar extends FlowRdfElement {
227
227
  return html`
228
228
  <div class="calendar__time-container">
229
229
  <flow-ui-input
230
+ filled
230
231
  type="number"
231
232
  size=${this.size === "small" ? "small" : "medium"}
232
233
  name="hour"
@@ -239,6 +240,7 @@ class FlowUiCalendar extends FlowRdfElement {
239
240
  ></flow-ui-input>
240
241
  <span class="calendar__time-separator">:</span>
241
242
  <flow-ui-input
243
+ filled
242
244
  type="number"
243
245
  size=${this.size === "small" ? "small" : "medium"}
244
246
  name="minute"
@@ -251,6 +253,7 @@ class FlowUiCalendar extends FlowRdfElement {
251
253
  ></flow-ui-input>
252
254
  <span class="calendar__time-separator">:</span>
253
255
  <flow-ui-input
256
+ filled
254
257
  type="number"
255
258
  size=${this.size === "small" ? "small" : "medium"}
256
259
  name="second"
@@ -9,6 +9,10 @@ const styles = css`
9
9
  --width: 300px;
10
10
  --font-size: var(--flow-ui-font-size-medium);
11
11
  --day-font-size: var(--flow-ui-font-size-small);
12
+ --day-color-filler: var(--flow-ui-calendar-day-color-filler);
13
+ --day-color-hover: var(--flow-ui-calendar-day-color-hover);
14
+ --day-color-selected: var(--flow-ui-calendar-day-color-selected);
15
+ --day-color-today: var(--flow-ui-calendar-day-color-today);
12
16
  }
13
17
 
14
18
  .calendar {
@@ -76,20 +80,20 @@ const styles = css`
76
80
  }
77
81
 
78
82
  .calendar__day:hover:not(.calendar__day--selected) {
79
- background-color: var(--flow-ui-color-neutral-100);
83
+ background-color: var(--day-color-hover);
80
84
  }
81
85
 
82
86
  .calendar__day--filler {
83
- color: var(--flow-ui-color-neutral-400);
87
+ color: var(--day-color-filler);
84
88
  }
85
89
 
86
90
  .calendar__day--today {
87
- border: 1px solid var(--flow-ui-color-neutral-300);
91
+ border: 1px solid var(--day-color-today);
88
92
  }
89
93
 
90
94
  .calendar__day--selected {
91
95
  color: var(--flow-ui-color-background);
92
- background-color: var(--flow-ui-color-primary-500);
96
+ background-color: var(--day-color-selected);
93
97
  }
94
98
 
95
99
  .calendar__header {
@@ -114,8 +118,13 @@ const styles = css`
114
118
  --flow-ui-control-spacing-medium: var(--flow-ui-spacing-small);
115
119
  }
116
120
 
121
+ .calendar__time-input::part(form-control-input) {
122
+ background-color: var(--flow-ui-calendar-time-color);
123
+ }
124
+
117
125
  .calendar__time-input::part(input) {
118
126
  /* Remove padding between spin controls to accommodate narrow calendars */
127
+
119
128
  padding-right: 0;
120
129
  }
121
130
 
@@ -7,6 +7,7 @@ import { FormControlController, customErrorValidityState, valueMissingValiditySt
7
7
  import { HasSlotController } from '../../internal/slot.mjs';
8
8
  import { watch } from '../../internal/watch.mjs';
9
9
  import styles from './checkbox-group.styles.mjs';
10
+ import { isNil } from '../../internal/type-checks.mjs';
10
11
 
11
12
  var __defProp = Object.defineProperty;
12
13
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -119,6 +120,9 @@ class FlowUiCheckboxGroup extends FlowRdfFormControl {
119
120
  this.syncCheckboxes();
120
121
  }
121
122
  handleValueChange() {
123
+ if (isNil(this.value)) {
124
+ this.value = [];
125
+ }
122
126
  if (this.hasUpdated) {
123
127
  this.updateCheckedState();
124
128
  }
@@ -79,6 +79,7 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
79
79
  this.required = boolean(this.required, true);
80
80
  this.filled = boolean(this.filled, true);
81
81
  this.pill = boolean(this.pill, true);
82
+ this.inline = boolean(this.inline, true);
82
83
  this.handleDocumentFocusIn = this.handleDocumentFocusIn.bind(this);
83
84
  this.handleDocumentKeyDown = this.handleDocumentKeyDown.bind(this);
84
85
  this.handleDocumentMouseDown = this.handleDocumentMouseDown.bind(this);
@@ -288,6 +289,7 @@ class FlowUiDateTimePicker extends FlowRdfFormControl {
288
289
  "form-control--small": this.size === "small",
289
290
  "form-control--medium": this.size === "medium",
290
291
  "form-control--large": this.size === "large",
292
+ "form-control--filled": this.filled,
291
293
  "form-control--has-label": hasLabel,
292
294
  "form-control--has-help-text": hasHelpText,
293
295
  "form-control--has-divider": this.divider,
@@ -237,7 +237,7 @@ const styles = css`
237
237
 
238
238
  /* Mode icon (calendar/clock) */
239
239
  .datepicker__mode-icon {
240
- color: var(--flow-ui-color-neutral-400);
240
+ color: var(--flow-ui-color-neutral-800);
241
241
  flex: 0 0 auto;
242
242
  display: flex;
243
243
  align-items: center;
@@ -256,7 +256,7 @@ const styles = css`
256
256
  font-size: var(--flow-ui-font-size-medium);
257
257
  font-weight: var(--flow-ui-font-weight-normal);
258
258
  box-shadow: var(--flow-ui-shadow-large);
259
- background: var(--flow-ui-menu-background-color);
259
+ background: var(--flow-ui-calendar-background-color);
260
260
  border: solid var(--flow-ui-menu-border-width) var(--flow-ui-menu-border-color);
261
261
  border-radius: var(--flow-ui-border-radius-medium);
262
262
  padding: var(--flow-ui-spacing-x-small);
@@ -86,7 +86,7 @@ const styles = css`
86
86
  flex: 0 0 auto;
87
87
  display: flex;
88
88
  align-items: center;
89
- font-size: var(--flow-ui-font-size-medium);
89
+ font-size: var(--flow-ui-font-size-large);
90
90
  }
91
91
 
92
92
  .dialog__body {
@@ -2,7 +2,7 @@ import { html } from 'lit';
2
2
  import { query, property } from 'lit/decorators.js';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { boolean } from '../../internal/boolean.mjs';
5
- import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
5
+ import FlowRdfElement, { FlowRdfFormControl } from '../../internal/flow-ui-rdf-element.mjs';
6
6
  import { HasSlotController } from '../../internal/slot.mjs';
7
7
  import { watch } from '../../internal/watch.mjs';
8
8
  import styles from './form-group.styles.mjs';
@@ -25,14 +25,16 @@ class FlowUiFormGroup extends FlowRdfElement {
25
25
  this.label = "";
26
26
  this.size = "medium";
27
27
  this.helpText = "";
28
- this.noDividers = false;
29
- this.noBorder = false;
28
+ this.borders = false;
30
29
  this.variant = "default";
31
30
  }
32
31
  connectedCallback() {
33
32
  super.connectedCallback();
34
- this.noDividers = boolean(this.noDividers, true);
35
- this.noBorder = boolean(this.noBorder, true);
33
+ this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
34
+ this.borders = boolean(this.borders, true);
35
+ }
36
+ handleClassChange() {
37
+ this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
36
38
  }
37
39
  handleStyleChange() {
38
40
  this.syncControls();
@@ -42,7 +44,7 @@ class FlowUiFormGroup extends FlowRdfElement {
42
44
  const controls = this.getAllControls();
43
45
  controls.forEach((control, i) => {
44
46
  control.size = this.size;
45
- control.divider = !this.noDividers && i < controls.length - 1;
47
+ control.divider = this.borders && i < controls.length - 1;
46
48
  });
47
49
  } else {
48
50
  customElements.whenDefined("flow-ui-form-group").then(() => this.syncControls());
@@ -72,8 +74,8 @@ class FlowUiFormGroup extends FlowRdfElement {
72
74
  "form-control--default": this.variant === "default",
73
75
  "form-control--warning": this.variant === "warning",
74
76
  "form-control--danger": this.variant === "danger",
75
- "form-group--has-dividers": !this.noDividers,
76
- "form-group--has-border": !this.noBorder
77
+ "form-group--has-dividers": this.borders,
78
+ "form-group--has-border": this.borders
77
79
  })}
78
80
  aria-labelledby="label"
79
81
  aria-describedby="help-text"
@@ -108,7 +110,10 @@ __decorateClass([
108
110
  query("slot:not([name])")
109
111
  ], FlowUiFormGroup.prototype, "defaultSlot", 2);
110
112
  __decorateClass([
111
- property()
113
+ property({ reflect: true })
114
+ ], FlowUiFormGroup.prototype, "class", 2);
115
+ __decorateClass([
116
+ property({ reflect: true })
112
117
  ], FlowUiFormGroup.prototype, "label", 2);
113
118
  __decorateClass([
114
119
  property({ reflect: true })
@@ -117,14 +122,14 @@ __decorateClass([
117
122
  property({ attribute: "help-text" })
118
123
  ], FlowUiFormGroup.prototype, "helpText", 2);
119
124
  __decorateClass([
120
- property({ type: Boolean, attribute: "no-dividers", reflect: true })
121
- ], FlowUiFormGroup.prototype, "noDividers", 2);
122
- __decorateClass([
123
- property({ type: Boolean, attribute: "no-border", reflect: true })
124
- ], FlowUiFormGroup.prototype, "noBorder", 2);
125
+ property({ type: Boolean, attribute: "borders", reflect: true })
126
+ ], FlowUiFormGroup.prototype, "borders", 2);
125
127
  __decorateClass([
126
128
  property({ reflect: true })
127
129
  ], FlowUiFormGroup.prototype, "variant", 2);
130
+ __decorateClass([
131
+ watch("class")
132
+ ], FlowUiFormGroup.prototype, "handleClassChange", 1);
128
133
  __decorateClass([
129
134
  watch(["size", "noDividers", "noBorder"], { waitUntilFirstUpdate: true })
130
135
  ], FlowUiFormGroup.prototype, "handleStyleChange", 1);
@@ -15,10 +15,6 @@ const styles = css`
15
15
  margin-top: var(--flow-ui-spacing-x-large);
16
16
  }
17
17
 
18
- :host(:first-child) {
19
- margin-top: var(--flow-ui-spacing-x-small);
20
- }
21
-
22
18
  .form-control {
23
19
  display: grid;
24
20
  grid-template-columns: 1fr;
@@ -28,10 +24,13 @@ const styles = css`
28
24
  font-size: inherit;
29
25
  font-weight: var(--flow-ui-control-font-weight);
30
26
  line-height: var(--flow-ui-line-height-dense);
27
+
28
+ --control-background-color: var(--flow-ui-form-group-background-color);
29
+ --control-border-color: var(--flow-ui-form-group-border-color);
31
30
  }
32
31
 
33
32
  .form-control.form-control--has-label .form-control__label {
34
- color: var(--flow-ui-color-neutral-900);
33
+ color: var(--flow-ui-color-text);
35
34
  font-weight: var(--flow-ui-font-weight-semibold);
36
35
  margin-top: 0 !important;
37
36
  margin-bottom: 0 !important;
@@ -52,6 +51,7 @@ const styles = css`
52
51
  grid-template-columns: 1fr;
53
52
  grid-row-gap: var(--control-spacing);
54
53
  padding-block: calc(var(--control-spacing) / 2);
54
+ background-color: var(--control-background-color);
55
55
  }
56
56
 
57
57
  .form-control.form-group--has-dividers .form-group__content {
@@ -6,7 +6,7 @@ const styles = css`
6
6
 
7
7
  :host {
8
8
  display: inline-block;
9
- color: var(--flow-ui-color-neutral-600);
9
+ color: var(--flow-ui-color-neutral-800);
10
10
 
11
11
  --hover-color: var(--flow-ui-color-primary-500);
12
12
  --active-color: var(--flow-ui-color-primary-400);
@@ -18,6 +18,7 @@ const styles = css`
18
18
  ::slotted(flow-ui-divider) {
19
19
  --spacing: var(--flow-ui-spacing-x-small);
20
20
  --inset: var(--flow-ui-spacing-medium);
21
+ --color: var(--flow-ui-menu-divider-color);
21
22
  }
22
23
 
23
24
  ::slotted(small) {
@@ -21,7 +21,7 @@ const styles = css`
21
21
  font-weight: var(--flow-ui-font-weight-normal);
22
22
  line-height: var(--flow-ui-line-height-normal);
23
23
  letter-spacing: var(--flow-ui-letter-spacing-normal);
24
- color: var(--flow-ui-color-neutral-700);
24
+ color: var(--flow-ui-menu-color);
25
25
  padding: var(--flow-ui-spacing-2x-small) var(--flow-ui-spacing-2x-small);
26
26
  transition: var(--flow-ui-transition-fast) fill;
27
27
  user-select: none;
@@ -22,7 +22,7 @@ const styles = css`
22
22
  font-weight: var(--flow-ui-font-weight-normal);
23
23
  line-height: var(--flow-ui-line-height-normal);
24
24
  letter-spacing: var(--flow-ui-letter-spacing-normal);
25
- color: var(--flow-ui-color-neutral-700);
25
+ color: var(--flow-ui-menu-color);
26
26
  padding: var(--flow-ui-spacing-x-small) var(--flow-ui-spacing-medium) var(--flow-ui-spacing-x-small)
27
27
  var(--flow-ui-spacing-x-small);
28
28
  transition: var(--flow-ui-transition-fast) fill;
@@ -1,5 +1,5 @@
1
1
  import { html } from 'lit';
2
- import { property } from 'lit/decorators.js';
2
+ import { queryAssignedElements, property } from 'lit/decorators.js';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { boolean } from '../../internal/boolean.mjs';
5
5
  import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
@@ -50,6 +50,9 @@ class FlowUiPanel extends FlowRdfElement {
50
50
  }
51
51
  }
52
52
  }
53
+ handleSlotChange() {
54
+ this.requestUpdate();
55
+ }
53
56
  render() {
54
57
  return html`
55
58
  <div
@@ -57,7 +60,8 @@ class FlowUiPanel extends FlowRdfElement {
57
60
  panel: true,
58
61
  "panel--closed": this.closed,
59
62
  "panel--scrollable": this.scrollable,
60
- "panel--with-padding": this.padding
63
+ "panel--with-padding": this.padding,
64
+ "panel--has-form-controls": this.formElements.length > 0
61
65
  })}
62
66
  >
63
67
  <slot
@@ -69,7 +73,7 @@ class FlowUiPanel extends FlowRdfElement {
69
73
 
70
74
  <div class="panel__body-wrapper">
71
75
  <div part="body" class="panel__body">
72
- <slot></slot>
76
+ <slot @slotchange=${this.handleSlotChange}></slot>
73
77
  </div>
74
78
  </div>
75
79
  </div>
@@ -77,6 +81,9 @@ class FlowUiPanel extends FlowRdfElement {
77
81
  }
78
82
  }
79
83
  FlowUiPanel.styles = styles;
84
+ __decorateClass([
85
+ queryAssignedElements({ selector: ".flow-ui-form-control[borders]" })
86
+ ], FlowUiPanel.prototype, "formElements", 2);
80
87
  __decorateClass([
81
88
  property({ type: Boolean, reflect: true })
82
89
  ], FlowUiPanel.prototype, "closed", 2);
@@ -33,6 +33,10 @@ const styles = css`
33
33
  padding: var(--padding);
34
34
  }
35
35
 
36
+ .panel--scrollable.panel--with-padding.panel--has-form-controls .panel__body {
37
+ padding: calc(var(--padding) * 1.5);
38
+ }
39
+
36
40
  /* For non-scrollable panel - fix body at 100% and disable scroll. Padding is added to wrapper */
37
41
  .panel.panel--with-padding:not(.panel--scrollable) .panel__body-wrapper {
38
42
  padding: var(--padding);
@@ -25,7 +25,7 @@ var __decorateClass = (decorators, target, key, kind) => {
25
25
  const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
26
26
  constructor() {
27
27
  super(...arguments);
28
- this._value = { condition: "and", rules: [] };
28
+ this._value = { condition: "and", rules: [{ field: "", operator: "=", enabled: true }] };
29
29
  this.hasSlotController = new HasSlotController(
30
30
  this,
31
31
  "help-text",
@@ -42,6 +42,7 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
42
42
  this.helpText = "";
43
43
  this.treeLines = false;
44
44
  this.subQueryBuilder = false;
45
+ this.borders = false;
45
46
  }
46
47
  /**
47
48
  * Register a custom field definition.
@@ -62,6 +63,8 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
62
63
  super.connectedCallback();
63
64
  this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
64
65
  this.disabled = boolean(this.disabled, true);
66
+ this.borders = boolean(this.borders, true);
67
+ this.treeLines = boolean(this.treeLines, true);
65
68
  }
66
69
  handleClassChange() {
67
70
  this.classList.add(FlowRdfFormControl.FLOW_UI_FORM_CONTROL_CLASS);
@@ -412,6 +415,7 @@ const _FlowUiQueryBuilder = class _FlowUiQueryBuilder extends FlowRdfElement {
412
415
  "query-builder--large": this.size === "large",
413
416
  "query-builder--disabled": this.disabled,
414
417
  "query-builder--tree-lines": this.treeLines,
418
+ "query-builder--has-border": this.borders,
415
419
  "query-builder--no-rules": this.subQueryBuilder && this._value.rules.length === 0
416
420
  })}
417
421
  >
@@ -466,7 +470,7 @@ __decorateClass([
466
470
  property({ type: Boolean, reflect: true })
467
471
  ], _FlowUiQueryBuilder.prototype, "disabled", 2);
468
472
  __decorateClass([
469
- property()
473
+ property({ reflect: true })
470
474
  ], _FlowUiQueryBuilder.prototype, "label", 2);
471
475
  __decorateClass([
472
476
  property({ attribute: "help-text" })
@@ -477,6 +481,9 @@ __decorateClass([
477
481
  __decorateClass([
478
482
  property({ type: Boolean, attribute: "sub-query-builder" })
479
483
  ], _FlowUiQueryBuilder.prototype, "subQueryBuilder", 2);
484
+ __decorateClass([
485
+ property({ type: Boolean })
486
+ ], _FlowUiQueryBuilder.prototype, "borders", 2);
480
487
  __decorateClass([
481
488
  watch("class")
482
489
  ], _FlowUiQueryBuilder.prototype, "handleClassChange", 1);
@@ -12,6 +12,10 @@ const styles = css`
12
12
  --footer-spacing: var(--flow-ui-spacing-x-small);
13
13
  }
14
14
 
15
+ :host([label]) {
16
+ margin-top: var(--flow-ui-spacing-x-large);
17
+ }
18
+
15
19
  .form-control__label {
16
20
  font-weight: var(--flow-ui-font-weight-semibold);
17
21
  }
@@ -41,6 +45,14 @@ const styles = css`
41
45
  padding-inline: 0;
42
46
  }
43
47
 
48
+ .query-builder.query-builder--has-border {
49
+ margin-inline: calc(var(--control-spacing) * -1 - var(--control-border-width));
50
+ padding-top: var(--flow-ui-spacing-x-small);
51
+ padding-inline: var(--control-spacing);
52
+ border: solid var(--control-border-width) var(--control-border-color);
53
+ border-radius: var(--control-border-radius);
54
+ }
55
+
44
56
  /* Rule */
45
57
  .query-builder__rule:not(.query-builder--child) {
46
58
  display: flex;
@@ -9,7 +9,7 @@ const styles = css`
9
9
  :host {
10
10
  --thumb-size: 14px;
11
11
  --track-color-active: var(--flow-ui-color-primary-500);
12
- --track-color-inactive: var(--flow-ui-color-neutral-200);
12
+ --track-color-inactive: var(--flow-ui-color-neutral-600);
13
13
  --track-active-offset: 0%;
14
14
  --track-height: 6px;
15
15
 
@@ -112,6 +112,14 @@ const styles = css`
112
112
  color: var(--flow-ui-control-placeholder-color);
113
113
  }
114
114
 
115
+ .form-control.form-control--disabled .select__display-input::placeholder {
116
+ color: var(--flow-ui-control-placeholder-color-disabled);
117
+ }
118
+
119
+ .form-control.form-control--disabled .select__display-input {
120
+ color: var(--flow-ui-control-color-disabled);
121
+ }
122
+
115
123
  .select:not(.select--disabled):hover .select__display-input {
116
124
  color: var(--flow-ui-control-color-hover);
117
125
  }
@@ -275,6 +283,7 @@ const styles = css`
275
283
  .select__listbox ::slotted(flow-ui-divider) {
276
284
  --spacing: var(--flow-ui-spacing-x-small);
277
285
  --inset: var(--flow-ui-spacing-medium);
286
+ --color: var(--flow-ui-menu-divider-color);
278
287
  }
279
288
 
280
289
  .select__listbox ::slotted(small) {
@@ -6,7 +6,7 @@ const styles = css`
6
6
 
7
7
  :host {
8
8
  --track-width: 2px;
9
- --track-color: rgb(128 128 128 / 25%);
9
+ --track-color: var(--flow-ui-color-neutral-600);
10
10
  --indicator-color: var(--flow-ui-color-primary-500);
11
11
  --speed: 2s;
12
12
 
@@ -38,7 +38,7 @@ const styles = css`
38
38
  }
39
39
 
40
40
  .stepper__header-item--active {
41
- background-color: var(--flow-ui-color-neutral-200);
41
+ background-color: var(--flow-ui-color-neutral-400);
42
42
  }
43
43
 
44
44
  .stepper__header-item-icon {
@@ -49,7 +49,7 @@ const styles = css`
49
49
  flex: none;
50
50
  border-radius: var(--flow-ui-border-radius-circle);
51
51
  color: var(--flow-ui-color-neutral-800);
52
- background-color: var(--flow-ui-color-neutral-400);
52
+ background-color: var(--flow-ui-color-neutral-500);
53
53
  }
54
54
 
55
55
  .stepper__header-item--active .stepper__header-item-icon,
@@ -73,7 +73,7 @@ const styles = css`
73
73
  min-width: 50px;
74
74
  vertical-align: middle;
75
75
  line-height: var(--flow-ui-line-height-dense);
76
- color: var(--flow-ui-color-neutral-700);
76
+ color: var(--flow-ui-color-neutral-800);
77
77
  }
78
78
 
79
79
  .stepper__header-item--active .stepper__header-item-label {
@@ -86,8 +86,7 @@ const styles = css`
86
86
  }
87
87
 
88
88
  .stepper__header-item-subtitle {
89
- font-size: var(--flow-ui-font-size-small);
90
- color: var(--flow-ui-color-neutral-700);
89
+ font-size: var(--flow-ui-font-size-800);
91
90
  }
92
91
 
93
92
  .stepper__header-line {
@@ -97,7 +96,7 @@ const styles = css`
97
96
  height: 0;
98
97
  margin: 0 calc(var(--flow-ui-spacing-large) / -2);
99
98
  min-width: 32px;
100
- border-top-color: var(--flow-ui-color-neutral-300);
99
+ border-top-color: var(--flow-ui-color-neutral-600);
101
100
  }
102
101
  `;
103
102
 
@@ -99,7 +99,7 @@ const styles = css`
99
99
  }
100
100
 
101
101
  .switch--checked .switch__control .switch__thumb {
102
- background-color: var(--flow-ui-color-neutral-800);
102
+ background-color: var(--flow-ui-color-neutral-950);
103
103
  border-color: var(--flow-ui-color-primary-800);
104
104
  translate: calc((var(--switch-width) - var(--switch-height)) / 2);
105
105
  }
@@ -26,11 +26,13 @@ class FlowUiTabPanel extends FlowRdfElement {
26
26
  this.name = "";
27
27
  this.active = false;
28
28
  this.scrollable = false;
29
+ this.padding = false;
29
30
  }
30
31
  connectedCallback() {
31
32
  super.connectedCallback();
32
33
  this.active = boolean(this.active, true);
33
34
  this.scrollable = boolean(this.scrollable, true);
35
+ this.padding = boolean(this.padding, true);
34
36
  this.id = this.id.length > 0 ? this.id : this.componentId;
35
37
  this.setAttribute("role", "tabpanel");
36
38
  }
@@ -43,7 +45,8 @@ class FlowUiTabPanel extends FlowRdfElement {
43
45
  class=${classMap({
44
46
  panel: true,
45
47
  "panel--active": this.active,
46
- "panel--scrollable": this.scrollable
48
+ "panel--scrollable": this.scrollable,
49
+ "panel--with-padding": this.padding
47
50
  })}
48
51
  >
49
52
  <div class="panel__body-wrapper">
@@ -65,6 +68,9 @@ __decorateClass([
65
68
  __decorateClass([
66
69
  property({ type: Boolean, reflect: true })
67
70
  ], FlowUiTabPanel.prototype, "scrollable", 2);
71
+ __decorateClass([
72
+ property({ type: Boolean, reflect: true })
73
+ ], FlowUiTabPanel.prototype, "padding", 2);
68
74
  __decorateClass([
69
75
  watch("active")
70
76
  ], FlowUiTabPanel.prototype, "handleActiveChange", 1);
@@ -8,7 +8,7 @@ const styles = css`
8
8
  display: none;
9
9
  min-height: 0;
10
10
 
11
- --padding: 0;
11
+ --padding: var(--flow-ui-panel-padding);
12
12
  }
13
13
 
14
14
  :host([active]) {
@@ -33,12 +33,16 @@ const styles = css`
33
33
  overflow-y: auto;
34
34
  }
35
35
 
36
- .panel--scrollable .panel__body {
36
+ .panel--scrollable.panel--with-padding .panel__body {
37
37
  padding: var(--padding);
38
38
  }
39
39
 
40
+ .panel--scrollable.panel--with-padding.panel--has-form-controls .panel__body {
41
+ padding: calc(var(--padding) * 1.5);
42
+ }
43
+
40
44
  /* For non-scrollable panel - fix body at 100% and disable scroll. Padding is added to wrapper */
41
- .panel:not(.panel--scrollable) .panel__body-wrapper {
45
+ .panel.panel--with-padding:not(.panel--scrollable) .panel__body-wrapper {
42
46
  padding: var(--padding);
43
47
  }
44
48