@emuanalytics/flow-rdf-ui 4.0.1 → 4.0.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.
package/dist/index.cjs CHANGED
@@ -3022,6 +3022,8 @@ const styles$Y = lit.css`
3022
3022
  display: inline-block;
3023
3023
  color: var(--flow-ui-color-neutral-600);
3024
3024
 
3025
+ --hover-color: var(--flow-ui-color-primary-500);
3026
+ --active-color: var(--flow-ui-color-primary-400);
3025
3027
  --icon-size: inherit;
3026
3028
  }
3027
3029
 
@@ -3048,11 +3050,11 @@ const styles$Y = lit.css`
3048
3050
 
3049
3051
  .icon-button:hover:not(.icon-button--disabled),
3050
3052
  .icon-button:focus-visible:not(.icon-button--disabled) {
3051
- color: var(--flow-ui-color-primary-500);
3053
+ color: var(--hover-color);
3052
3054
  }
3053
3055
 
3054
3056
  .icon-button:active:not(.icon-button--disabled) {
3055
- color: var(--flow-ui-color-primary-600);
3057
+ color: var(--active-color);
3056
3058
  }
3057
3059
 
3058
3060
  .icon-button:focus {
@@ -3088,7 +3090,6 @@ const styles$Y = lit.css`
3088
3090
  .icon-button__tooltip--confirm .confirm__label {
3089
3091
  margin-inline: var(--flow-ui-spacing-x-small);
3090
3092
  }
3091
-
3092
3093
  `;
3093
3094
 
3094
3095
  var __defProp$V = Object.defineProperty;
@@ -3366,6 +3367,14 @@ const styles$X = lit.css`
3366
3367
  color: var(--flow-ui-color-primary-500);
3367
3368
  }
3368
3369
 
3370
+ .alert--secondary {
3371
+ border-top-color: var(--flow-ui-color-secondary-500);
3372
+ }
3373
+
3374
+ .alert--secondary .alert__icon {
3375
+ color: var(--flow-ui-color-secondary-500);
3376
+ }
3377
+
3369
3378
  .alert--success {
3370
3379
  border-top-color: var(--flow-ui-color-success-600);
3371
3380
  }
@@ -3536,6 +3545,7 @@ class FlowUiAlert extends FlowRdfElement {
3536
3545
  "alert--closable": this.closable,
3537
3546
  "alert--has-icon": this.hasSlotController.test("icon"),
3538
3547
  "alert--primary": this.variant === "primary",
3548
+ "alert--secondary": this.variant === "secondary",
3539
3549
  "alert--success": this.variant === "success",
3540
3550
  "alert--neutral": this.variant === "neutral",
3541
3551
  "alert--warning": this.variant === "warning",
@@ -11113,6 +11123,16 @@ const styles$E = lit.css`
11113
11123
  color: var(--flow-ui-color-primary-500);
11114
11124
  }
11115
11125
 
11126
+ .tag--secondary {
11127
+ background-color: var(--flow-ui-color-secondary-50);
11128
+ border-color: var(--flow-ui-color-secondary-200);
11129
+ color: var(--flow-ui-color-primary-800);
11130
+ }
11131
+
11132
+ .tag--secondary:active > flow-ui-icon-button {
11133
+ color: var(--flow-ui-color-secondary-500);
11134
+ }
11135
+
11116
11136
  .tag--success {
11117
11137
  background-color: var(--flow-ui-color-success-50);
11118
11138
  border-color: var(--flow-ui-color-success-200);
@@ -11230,6 +11250,7 @@ class FlowUiTag extends FlowRdfElement {
11230
11250
  tag: true,
11231
11251
  // Types
11232
11252
  "tag--primary": this.variant === "primary",
11253
+ "tag--secondary": this.variant === "secondary",
11233
11254
  "tag--success": this.variant === "success",
11234
11255
  "tag--neutral": this.variant === "neutral",
11235
11256
  "tag--warning": this.variant === "warning",
@@ -12771,8 +12792,8 @@ const styles$A = lit.css`
12771
12792
  ${componentStyles}
12772
12793
 
12773
12794
  :host {
12774
- --color: var(--flow-ui-panel-border-color);
12775
- --width: var(--flow-ui-panel-border-width);
12795
+ --color: var(--flow-ui-divider-color);
12796
+ --width: var(--flow-ui-divider-width);
12776
12797
  --spacing: var(--flow-ui-spacing-medium);
12777
12798
 
12778
12799
  /* Maintain divider width when used in flexbox layouts */
@@ -14664,6 +14685,7 @@ const styles$r = lit.css`
14664
14685
  }
14665
14686
 
14666
14687
  .panel-header__title {
14688
+ font-weight: var(--flow-ui-panel-header-font-weight);
14667
14689
  text-overflow: ellipsis;
14668
14690
  overflow: hidden;
14669
14691
  white-space: nowrap;
@@ -14707,6 +14729,7 @@ class FlowUiPanelHeader extends FlowRdfElement {
14707
14729
  connectedCallback() {
14708
14730
  super.connectedCallback();
14709
14731
  this.closed = boolean(this.closed, true);
14732
+ this.fixed = boolean(this.fixed, true);
14710
14733
  }
14711
14734
  disconnectedCallback() {
14712
14735
  super.disconnectedCallback();
@@ -14815,12 +14838,16 @@ const styles$q = lit.css`
14815
14838
  min-height: 0;
14816
14839
 
14817
14840
  --padding: var(--flow-ui-spacing-small);
14841
+ --background-color: var(--flow-ui-panel-background-color);
14842
+ --color: var(--flow-ui-panel-color);
14818
14843
  }
14819
14844
 
14820
14845
  .panel {
14821
14846
  height: 100%;
14822
14847
  display: flex;
14823
14848
  flex-direction: column;
14849
+ background-color: var(--background-color);
14850
+ color: var(--color);
14824
14851
  }
14825
14852
 
14826
14853
  /* Body */
@@ -19234,6 +19261,7 @@ const styles$g = lit.css`
19234
19261
  :host {
19235
19262
  --divider-width: 2px;
19236
19263
  --divider-hit-area: 12px;
19264
+ --color: var(--flow-ui-divider-color);
19237
19265
 
19238
19266
  display: block;
19239
19267
  }
@@ -19242,7 +19270,7 @@ const styles$g = lit.css`
19242
19270
  height: 100%;
19243
19271
  display: flex;
19244
19272
  position: relative;
19245
- background-color: var(--flow-ui-color-neutral-200);
19273
+ background-color: var(--color);
19246
19274
  color: var(--flow-ui-color-neutral-900);
19247
19275
  }
19248
19276
 
@@ -19263,7 +19291,8 @@ const styles$g = lit.css`
19263
19291
  transform: scale(0);
19264
19292
  }
19265
19293
 
19266
- :host([dragging]) .divider-highlight, .divider:hover .divider-highlight {
19294
+ :host([dragging]) .divider-highlight,
19295
+ .divider:hover .divider-highlight {
19267
19296
  transform: scale(1);
19268
19297
  }
19269
19298
 
@@ -19293,7 +19322,6 @@ const styles$g = lit.css`
19293
19322
  cursor: col-resize;
19294
19323
  }
19295
19324
 
19296
-
19297
19325
  :host(:not([vertical])) .divider::after {
19298
19326
  display: flex;
19299
19327
  content: '';
@@ -20872,9 +20900,12 @@ const styles$9 = lit.css`
20872
20900
 
20873
20901
  :host {
20874
20902
  --indicator-color: var(--flow-ui-color-primary-500);
20875
- --track-color: var(--flow-ui-color-neutral-200);
20903
+ --track-color: var(--flow-ui-divider-color);
20876
20904
  --track-width: 2px;
20877
20905
 
20906
+ --background-color: var(--flow-ui-panel-background-color);
20907
+ --color: var(--flow-ui-panel-color);
20908
+
20878
20909
  display: block;
20879
20910
  }
20880
20911
 
@@ -20884,6 +20915,9 @@ const styles$9 = lit.css`
20884
20915
  justify-content: start;
20885
20916
  border-radius: 0;
20886
20917
  overflow: hidden;
20918
+
20919
+ background-color: var(--background-color);
20920
+ color: var(--color);
20887
20921
  }
20888
20922
 
20889
20923
  /* Ensure nav is positioned when tab-group is placed in a split panel and the panel is closed */
@@ -20932,7 +20966,9 @@ const styles$9 = lit.css`
20932
20966
 
20933
20967
  .tab-group__indicator {
20934
20968
  position: absolute;
20935
- transition: var(--flow-ui-transition-fast) translate ease, var(--flow-ui-transition-fast) width ease;
20969
+ transition:
20970
+ var(--flow-ui-transition-fast) translate ease,
20971
+ var(--flow-ui-transition-fast) width ease;
20936
20972
  }
20937
20973
 
20938
20974
  .tab-group__body-wrapper {
@@ -21639,6 +21675,8 @@ const styles$8 = lit.css`
21639
21675
  min-height: 0;
21640
21676
 
21641
21677
  --padding: 0;
21678
+ --background-color: var(--flow-ui-panel-background-color);
21679
+ --color: var(--flow-ui-panel-color);
21642
21680
  }
21643
21681
 
21644
21682
  :host([active]) {
@@ -21649,6 +21687,8 @@ const styles$8 = lit.css`
21649
21687
  height: 100%;
21650
21688
  display: flex;
21651
21689
  flex-direction: column;
21690
+ background-color: var(--background-color);
21691
+ color: var(--color);
21652
21692
  }
21653
21693
 
21654
21694
  /* Body */
@@ -21746,6 +21786,9 @@ const styles$7 = lit.css`
21746
21786
 
21747
21787
  :host {
21748
21788
  display: inline-block;
21789
+ --color: var(--flow-ui-tab-color);
21790
+ --active-label-color: var(--flow-ui-tab-active-label-color);
21791
+ --active-icon-color: var(--flow-ui-tab-active-icon-color);
21749
21792
  }
21750
21793
 
21751
21794
  .tab {
@@ -21757,24 +21800,27 @@ const styles$7 = lit.css`
21757
21800
  font-size: var(--flow-ui-tab-label-font-size);
21758
21801
  font-weight: var(--flow-ui-tab-label-font-weight);
21759
21802
  border-radius: var(--flow-ui-border-radius-medium);
21760
- color: var(--flow-ui-color-neutral-600);
21803
+ color: var(--flow-ui-tab-color);
21761
21804
  padding: var(--flow-ui-tab-padding);
21762
21805
  white-space: nowrap;
21763
21806
  user-select: none;
21764
21807
  cursor: pointer;
21765
- transition: var(--transition-speed) box-shadow, var(--transition-speed) color;
21808
+ transition:
21809
+ var(--transition-speed) box-shadow,
21810
+ var(--transition-speed) color;
21766
21811
  }
21767
21812
 
21768
- .tab:hover:not(.tab--disabled) {
21769
- color: var(--flow-ui-color-primary-500);
21813
+ /* Highlight icon only on hover */
21814
+ .tab:hover:not(.tab--disabled) .tab__icon {
21815
+ color: var(--flow-ui-tab-active-label-color);
21770
21816
  }
21771
21817
 
21772
21818
  .tab:focus {
21773
21819
  outline: none;
21774
21820
  }
21775
21821
 
21776
- .tab:focus-visible:not(.tab--disabled) {
21777
- color: var(--flow-ui-color-primary-500);
21822
+ .tab:focus-visible:not(.tab--disabled) .tab__icon {
21823
+ color: var(--flow-ui-tab-active-icon-color);
21778
21824
  }
21779
21825
 
21780
21826
  .tab:focus-visible {
@@ -21783,7 +21829,15 @@ const styles$7 = lit.css`
21783
21829
  }
21784
21830
 
21785
21831
  .tab.tab--active:not(.tab--disabled) {
21786
- color: var(--flow-ui-color-primary-500);
21832
+ color: var(--flow-ui-active-label-color);
21833
+ }
21834
+
21835
+ .tab.tab--active:not(.tab--disabled) .tab__icon {
21836
+ color: var(--flow-ui-tab-active-icon-color);
21837
+ }
21838
+
21839
+ .tab.tab--active:not(.tab--disabled) .tab__label {
21840
+ color: var(--flow-ui-tab-active-label-color);
21787
21841
  }
21788
21842
 
21789
21843
  .tab.tab--closable {
@@ -22640,6 +22694,8 @@ const styles$5 = lit.css`
22640
22694
  }
22641
22695
 
22642
22696
  .timer {
22697
+ /* Balance top spacing with VCR button spacing */
22698
+ padding-top: var(--flow-ui-spacing-x-small);
22643
22699
  min-width: fit-content;
22644
22700
  }
22645
22701
 
@@ -24716,7 +24772,7 @@ class FlowUiVisuallyHidden extends FlowRdfElement {
24716
24772
  }
24717
24773
  FlowUiVisuallyHidden.styles = styles;
24718
24774
 
24719
- function registerComponents() {
24775
+ async function registerComponents() {
24720
24776
  FlowUiAlert.define("flow-ui-alert");
24721
24777
  FlowUiAnimation.define("flow-ui-animation");
24722
24778
  FlowUiAvatar.define("flow-ui-avatar");
@@ -24782,9 +24838,77 @@ function registerComponents() {
24782
24838
  FlowUiTreeItem.define("flow-ui-tree-item");
24783
24839
  FlowUiTree.define("flow-ui-tree");
24784
24840
  FlowUiVisuallyHidden.define("flow-ui-visually-hidden");
24841
+ return Promise.all([
24842
+ window.customElements.whenDefined("flow-ui-alert"),
24843
+ window.customElements.whenDefined("flow-ui-animation"),
24844
+ window.customElements.whenDefined("flow-ui-avatar"),
24845
+ window.customElements.whenDefined("flow-ui-badge"),
24846
+ window.customElements.whenDefined("flow-ui-breadcrumb-item"),
24847
+ window.customElements.whenDefined("flow-ui-breadcrumb"),
24848
+ window.customElements.whenDefined("flow-ui-button-group"),
24849
+ window.customElements.whenDefined("flow-ui-button"),
24850
+ window.customElements.whenDefined("flow-ui-calendar"),
24851
+ window.customElements.whenDefined("flow-ui-card"),
24852
+ window.customElements.whenDefined("flow-ui-carousel-item"),
24853
+ window.customElements.whenDefined("flow-ui-carousel"),
24854
+ window.customElements.whenDefined("flow-ui-chart"),
24855
+ window.customElements.whenDefined("flow-ui-checkbox"),
24856
+ window.customElements.whenDefined("flow-ui-color-mapper"),
24857
+ window.customElements.whenDefined("flow-ui-color-picker"),
24858
+ window.customElements.whenDefined("flow-ui-color-stop"),
24859
+ window.customElements.whenDefined("flow-ui-date-time-picker"),
24860
+ window.customElements.whenDefined("flow-ui-details"),
24861
+ window.customElements.whenDefined("flow-ui-dialog"),
24862
+ window.customElements.whenDefined("flow-ui-divider"),
24863
+ window.customElements.whenDefined("flow-ui-drawer"),
24864
+ window.customElements.whenDefined("flow-ui-dropdown"),
24865
+ window.customElements.whenDefined("flow-ui-gauge"),
24866
+ window.customElements.whenDefined("flow-ui-icon-button"),
24867
+ window.customElements.whenDefined("flow-ui-icon"),
24868
+ window.customElements.whenDefined("flow-ui-input"),
24869
+ window.customElements.whenDefined("flow-ui-map"),
24870
+ window.customElements.whenDefined("flow-ui-menu-item"),
24871
+ window.customElements.whenDefined("flow-ui-menu-label"),
24872
+ window.customElements.whenDefined("flow-ui-menu"),
24873
+ window.customElements.whenDefined("flow-ui-mutation-observer"),
24874
+ window.customElements.whenDefined("flow-ui-option"),
24875
+ window.customElements.whenDefined("flow-ui-panel-header"),
24876
+ window.customElements.whenDefined("flow-ui-panel"),
24877
+ window.customElements.whenDefined("flow-ui-popup"),
24878
+ window.customElements.whenDefined("flow-ui-progress-bar"),
24879
+ window.customElements.whenDefined("flow-ui-progress-ring"),
24880
+ window.customElements.whenDefined("flow-ui-query-builder"),
24881
+ window.customElements.whenDefined("flow-ui-radio-group"),
24882
+ window.customElements.whenDefined("flow-ui-radio"),
24883
+ window.customElements.whenDefined("flow-ui-range"),
24884
+ window.customElements.whenDefined("flow-ui-resize-observer"),
24885
+ window.customElements.whenDefined("flow-ui-scroll-view"),
24886
+ window.customElements.whenDefined("flow-ui-select"),
24887
+ window.customElements.whenDefined("flow-ui-spinner"),
24888
+ window.customElements.whenDefined("flow-ui-split-view-divider"),
24889
+ window.customElements.whenDefined("flow-ui-split-view-pane"),
24890
+ window.customElements.whenDefined("flow-ui-split-view-toggle-button"),
24891
+ window.customElements.whenDefined("flow-ui-split-view"),
24892
+ window.customElements.whenDefined("flow-ui-stepper-panel"),
24893
+ window.customElements.whenDefined("flow-ui-stepper"),
24894
+ window.customElements.whenDefined("flow-ui-switch"),
24895
+ window.customElements.whenDefined("flow-ui-tab-group"),
24896
+ window.customElements.whenDefined("flow-ui-tab-panel"),
24897
+ window.customElements.whenDefined("flow-ui-tab"),
24898
+ window.customElements.whenDefined("flow-ui-tag"),
24899
+ window.customElements.whenDefined("flow-ui-textarea"),
24900
+ window.customElements.whenDefined("flow-ui-timer"),
24901
+ window.customElements.whenDefined("flow-ui-tool-button-group"),
24902
+ window.customElements.whenDefined("flow-ui-tool-button"),
24903
+ window.customElements.whenDefined("flow-ui-tooltip"),
24904
+ window.customElements.whenDefined("flow-ui-tree-item"),
24905
+ window.customElements.whenDefined("flow-ui-tree"),
24906
+ window.customElements.whenDefined("flow-ui-visually-hidden")
24907
+ ]).then(() => {
24908
+ });
24785
24909
  }
24786
24910
 
24787
- const version = "4.0.1";
24911
+ const version = "4.0.3";
24788
24912
 
24789
24913
  const CONSOLE_HIGHLIGHT_STYLE = `
24790
24914
  padding: 2px 4px;
package/dist/index.d.cts CHANGED
@@ -1286,8 +1286,10 @@ declare const converter: FlowQueryBuilderConverter;
1286
1286
  *
1287
1287
  * This function is called automatically when using the `flow-rdf-angular`
1288
1288
  * support library.
1289
+ *
1290
+ * @returns A promise that resolves when all custom elements have been defined.
1289
1291
  */
1290
- declare function registerComponents(): void;
1292
+ declare function registerComponents(): Promise<void>;
1291
1293
 
1292
1294
  type FunctionParams<T> = T extends (...args: infer U) => string ? U : [];
1293
1295
  interface Translation$1 {
@@ -1411,7 +1413,7 @@ declare class FlowUiAlert extends FlowRdfElement {
1411
1413
  /** Enables a close button that allows the user to dismiss the alert. */
1412
1414
  closable: boolean;
1413
1415
  /** The alert's theme variant. */
1414
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
1416
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger';
1415
1417
  /**
1416
1418
  * The length of time (in ms) that the alert will show itself before closing. If the user interacts with
1417
1419
  * the alert before it closes (e.g. by moving the mouse over it), the timer will restart.
@@ -2992,7 +2994,7 @@ declare class FlowUiTag extends FlowRdfElement {
2992
2994
  };
2993
2995
  private readonly localize;
2994
2996
  /** The tag's theme variant. */
2995
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2997
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2996
2998
  /** The tag's size. */
2997
2999
  size: 'small' | 'medium' | 'large';
2998
3000
  /** Draws a pill-style tag with rounded edges. */
package/dist/index.d.mts CHANGED
@@ -1286,8 +1286,10 @@ declare const converter: FlowQueryBuilderConverter;
1286
1286
  *
1287
1287
  * This function is called automatically when using the `flow-rdf-angular`
1288
1288
  * support library.
1289
+ *
1290
+ * @returns A promise that resolves when all custom elements have been defined.
1289
1291
  */
1290
- declare function registerComponents(): void;
1292
+ declare function registerComponents(): Promise<void>;
1291
1293
 
1292
1294
  type FunctionParams<T> = T extends (...args: infer U) => string ? U : [];
1293
1295
  interface Translation$1 {
@@ -1411,7 +1413,7 @@ declare class FlowUiAlert extends FlowRdfElement {
1411
1413
  /** Enables a close button that allows the user to dismiss the alert. */
1412
1414
  closable: boolean;
1413
1415
  /** The alert's theme variant. */
1414
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
1416
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger';
1415
1417
  /**
1416
1418
  * The length of time (in ms) that the alert will show itself before closing. If the user interacts with
1417
1419
  * the alert before it closes (e.g. by moving the mouse over it), the timer will restart.
@@ -2992,7 +2994,7 @@ declare class FlowUiTag extends FlowRdfElement {
2992
2994
  };
2993
2995
  private readonly localize;
2994
2996
  /** The tag's theme variant. */
2995
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2997
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2996
2998
  /** The tag's size. */
2997
2999
  size: 'small' | 'medium' | 'large';
2998
3000
  /** Draws a pill-style tag with rounded edges. */
package/dist/index.d.ts CHANGED
@@ -1286,8 +1286,10 @@ declare const converter: FlowQueryBuilderConverter;
1286
1286
  *
1287
1287
  * This function is called automatically when using the `flow-rdf-angular`
1288
1288
  * support library.
1289
+ *
1290
+ * @returns A promise that resolves when all custom elements have been defined.
1289
1291
  */
1290
- declare function registerComponents(): void;
1292
+ declare function registerComponents(): Promise<void>;
1291
1293
 
1292
1294
  type FunctionParams<T> = T extends (...args: infer U) => string ? U : [];
1293
1295
  interface Translation$1 {
@@ -1411,7 +1413,7 @@ declare class FlowUiAlert extends FlowRdfElement {
1411
1413
  /** Enables a close button that allows the user to dismiss the alert. */
1412
1414
  closable: boolean;
1413
1415
  /** The alert's theme variant. */
1414
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger';
1416
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger';
1415
1417
  /**
1416
1418
  * The length of time (in ms) that the alert will show itself before closing. If the user interacts with
1417
1419
  * the alert before it closes (e.g. by moving the mouse over it), the timer will restart.
@@ -2992,7 +2994,7 @@ declare class FlowUiTag extends FlowRdfElement {
2992
2994
  };
2993
2995
  private readonly localize;
2994
2996
  /** The tag's theme variant. */
2995
- variant: 'primary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2997
+ variant: 'primary' | 'secondary' | 'success' | 'neutral' | 'warning' | 'danger' | 'text';
2996
2998
  /** The tag's size. */
2997
2999
  size: 'small' | 'medium' | 'large';
2998
3000
  /** Draws a pill-style tag with rounded edges. */