@emuanalytics/flow-rdf-ui 0.0.33 → 0.0.35

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.mjs CHANGED
@@ -26,6 +26,7 @@ import { OverlayScrollbars } from 'overlayscrollbars';
26
26
  import { unsafeHTML } from 'lit/directives/unsafe-html.js';
27
27
  import { when } from 'lit/directives/when.js';
28
28
  import { choose } from 'lit/directives/choose.js';
29
+ export * from '@emuanalytics/flow-rdf-core';
29
30
 
30
31
  function animateTo(el, keyframes, options) {
31
32
  return new Promise((resolve) => {
@@ -3237,8 +3238,11 @@ const buttonStyles = css`
3237
3238
  white-space: nowrap;
3238
3239
  vertical-align: middle;
3239
3240
  padding: 0;
3240
- transition: var(--flow-ui-transition-x-fast) background-color, var(--flow-ui-transition-x-fast) color,
3241
- var(--flow-ui-transition-x-fast) border, var(--flow-ui-transition-x-fast) box-shadow;
3241
+ transition:
3242
+ var(--flow-ui-transition-x-fast) background-color,
3243
+ var(--flow-ui-transition-x-fast) color,
3244
+ var(--flow-ui-transition-x-fast) border,
3245
+ var(--flow-ui-transition-x-fast) box-shadow;
3242
3246
  cursor: inherit;
3243
3247
  }
3244
3248
 
@@ -3622,35 +3626,51 @@ const buttonStyles = css`
3622
3626
  }
3623
3627
 
3624
3628
  /*
3625
- * Circle modifier
3629
+ * FAB modifier
3626
3630
  */
3627
3631
 
3628
- .button--circle {
3632
+ .button--fab {
3629
3633
  padding-left: 0;
3630
3634
  padding-right: 0;
3631
3635
  }
3632
3636
 
3633
- .button--circle.button--small {
3637
+ .button--fab.button--small {
3634
3638
  width: var(--flow-ui-input-height-small);
3635
- border-radius: 50%;
3639
+ box-shadow: var(--flow-ui-shadow-small);
3636
3640
  }
3637
3641
 
3638
- .button--circle.button--medium {
3642
+ .button--fab.button--medium {
3639
3643
  width: var(--flow-ui-input-height-medium);
3640
- border-radius: 50%;
3644
+ box-shadow: var(--flow-ui-shadow-medium);
3641
3645
  }
3642
3646
 
3643
- .button--circle.button--large {
3647
+ .button--fab.button--large {
3644
3648
  width: var(--flow-ui-input-height-large);
3645
- border-radius: 50%;
3649
+ box-shadow: var(--flow-ui-shadow-large);
3646
3650
  }
3647
3651
 
3648
- .button--circle .button__prefix,
3649
- .button--circle .button__suffix,
3650
- .button--circle .button__caret {
3652
+ .button--fab .button__prefix,
3653
+ .button--fab .button__suffix,
3654
+ .button--fab .button__caret {
3651
3655
  display: none;
3652
3656
  }
3653
3657
 
3658
+ .button--circle {
3659
+ border-radius: 50%;
3660
+ }
3661
+
3662
+ .button--square.button--small {
3663
+ border-radius: var(--flow-ui-border-radius-small);
3664
+ }
3665
+
3666
+ .button--square.button--medium {
3667
+ border-radius: var(--flow-ui-border-radius-medium);
3668
+ }
3669
+
3670
+ .button--square.button--large {
3671
+ border-radius: var(--flow-ui-border-radius-large);
3672
+ }
3673
+
3654
3674
  /*
3655
3675
  * Caret modifier
3656
3676
  */
@@ -3784,7 +3804,12 @@ const buttonStyles = css`
3784
3804
  * buttons and we style them here instead.
3785
3805
  */
3786
3806
 
3787
- :host(.flow-ui-button-group__button--first:not(.flow-ui-button-group__button--last):not(.flow-ui-button-group__button--vertical)) .button {
3807
+ :host(
3808
+ .flow-ui-button-group__button--first:not(.flow-ui-button-group__button--last):not(
3809
+ .flow-ui-button-group__button--vertical
3810
+ )
3811
+ )
3812
+ .button {
3788
3813
  border-start-end-radius: 0;
3789
3814
  border-end-end-radius: 0;
3790
3815
  }
@@ -3793,13 +3818,21 @@ const buttonStyles = css`
3793
3818
  border-radius: 0;
3794
3819
  }
3795
3820
 
3796
- :host(.flow-ui-button-group__button--last:not(.flow-ui-button-group__button--vertical, .flow-ui-button-group__button--first)) .button {
3821
+ :host(
3822
+ .flow-ui-button-group__button--last:not(
3823
+ .flow-ui-button-group__button--vertical,
3824
+ .flow-ui-button-group__button--first
3825
+ )
3826
+ )
3827
+ .button {
3797
3828
  border-start-start-radius: 0;
3798
3829
  border-end-start-radius: 0;
3799
3830
  }
3800
3831
 
3801
3832
  /* All except the first */
3802
- :host(.flow-ui-button-group__button:not(.flow-ui-button-group__button--vertical, .flow-ui-button-group__button--first)) {
3833
+ :host(
3834
+ .flow-ui-button-group__button:not(.flow-ui-button-group__button--vertical, .flow-ui-button-group__button--first)
3835
+ ) {
3803
3836
  margin-inline-start: calc(-1 * var(--flow-ui-input-border-width));
3804
3837
  }
3805
3838
 
@@ -3809,8 +3842,7 @@ const buttonStyles = css`
3809
3842
  .flow-ui-button-group__button--first,
3810
3843
  .flow-ui-button-group__button--radio,
3811
3844
  .flow-ui-button-group__button--tool,
3812
- .flow-ui-button-group__button--vertical
3813
- [variant='default']
3845
+ .flow-ui-button-group__button--vertical [variant='default']
3814
3846
  ):not(:hover)
3815
3847
  )
3816
3848
  .button:after {
@@ -3824,7 +3856,12 @@ const buttonStyles = css`
3824
3856
  }
3825
3857
 
3826
3858
  /* Variants for vertical layout of button group */
3827
- :host(.flow-ui-button-group__button--vertical.flow-ui-button-group__button--first:not(.flow-ui-button-group__button--last)) .button {
3859
+ :host(
3860
+ .flow-ui-button-group__button--vertical.flow-ui-button-group__button--first:not(
3861
+ .flow-ui-button-group__button--last
3862
+ )
3863
+ )
3864
+ .button {
3828
3865
  border-end-start-radius: 0;
3829
3866
  border-end-end-radius: 0;
3830
3867
  }
@@ -3838,7 +3875,6 @@ const buttonStyles = css`
3838
3875
  margin-block-start: calc(-1 * var(--flow-ui-input-border-width));
3839
3876
  }
3840
3877
 
3841
-
3842
3878
  /* Bump hovered, focused, and checked buttons up so their focus ring isn't clipped */
3843
3879
  :host(.flow-ui-button-group__button--hover) {
3844
3880
  z-index: 1;
@@ -3849,7 +3885,8 @@ const buttonStyles = css`
3849
3885
  z-index: 2;
3850
3886
  }
3851
3887
 
3852
- :host(.flow-ui-button-group__button--focus), :host(.flow-ui-button-group__button--focus[checked]) {
3888
+ :host(.flow-ui-button-group__button--focus),
3889
+ :host(.flow-ui-button-group__button--focus[checked]) {
3853
3890
  z-index: 3;
3854
3891
  }
3855
3892
  `;
@@ -3865,7 +3902,7 @@ var __decorateClass$R = (decorators, target, key, kind) => {
3865
3902
  __defProp$R(target, key, result);
3866
3903
  return result;
3867
3904
  };
3868
- let FlowButton = class extends FlowRdfElement {
3905
+ let FlowButton$1 = class FlowButton extends FlowRdfElement {
3869
3906
  constructor() {
3870
3907
  super(...arguments);
3871
3908
  this.formControlController = new FormControlController(this, {
@@ -3891,7 +3928,8 @@ let FlowButton = class extends FlowRdfElement {
3891
3928
  this.loading = false;
3892
3929
  this.outline = false;
3893
3930
  this.pill = false;
3894
- this.circle = false;
3931
+ this.fabCircle = false;
3932
+ this.fabSquare = false;
3895
3933
  this.type = "button";
3896
3934
  this.name = "";
3897
3935
  this.value = "";
@@ -4020,7 +4058,9 @@ let FlowButton = class extends FlowRdfElement {
4020
4058
  "button--medium": this.size === "medium",
4021
4059
  "button--large": this.size === "large",
4022
4060
  "button--caret": this.caret,
4023
- "button--circle": this.circle,
4061
+ "button--fab": this.fabCircle || this.fabSquare,
4062
+ "button--circle": this.fabCircle,
4063
+ "button--square": this.fabSquare,
4024
4064
  "button--disabled": this.disabled,
4025
4065
  "button--focused": this.hasFocus,
4026
4066
  "button--loading": this.loading,
@@ -4062,88 +4102,94 @@ let FlowButton = class extends FlowRdfElement {
4062
4102
  `;
4063
4103
  }
4064
4104
  };
4065
- FlowButton.styles = buttonStyles;
4105
+ FlowButton$1.styles = buttonStyles;
4066
4106
  __decorateClass$R([
4067
4107
  query(".button")
4068
- ], FlowButton.prototype, "button", 2);
4108
+ ], FlowButton$1.prototype, "button", 2);
4069
4109
  __decorateClass$R([
4070
4110
  state()
4071
- ], FlowButton.prototype, "hasFocus", 2);
4111
+ ], FlowButton$1.prototype, "hasFocus", 2);
4072
4112
  __decorateClass$R([
4073
4113
  state()
4074
- ], FlowButton.prototype, "invalid", 2);
4114
+ ], FlowButton$1.prototype, "invalid", 2);
4075
4115
  __decorateClass$R([
4076
4116
  property()
4077
- ], FlowButton.prototype, "title", 2);
4117
+ ], FlowButton$1.prototype, "title", 2);
4078
4118
  __decorateClass$R([
4079
4119
  property({ reflect: true })
4080
- ], FlowButton.prototype, "variant", 2);
4120
+ ], FlowButton$1.prototype, "variant", 2);
4081
4121
  __decorateClass$R([
4082
4122
  property({ reflect: true })
4083
- ], FlowButton.prototype, "size", 2);
4123
+ ], FlowButton$1.prototype, "size", 2);
4084
4124
  __decorateClass$R([
4085
4125
  property({ type: Boolean, reflect: true })
4086
- ], FlowButton.prototype, "caret", 2);
4126
+ ], FlowButton$1.prototype, "caret", 2);
4087
4127
  __decorateClass$R([
4088
4128
  property({ type: Boolean, reflect: true })
4089
- ], FlowButton.prototype, "disabled", 2);
4129
+ ], FlowButton$1.prototype, "disabled", 2);
4090
4130
  __decorateClass$R([
4091
4131
  property({ type: Boolean, reflect: true })
4092
- ], FlowButton.prototype, "loading", 2);
4132
+ ], FlowButton$1.prototype, "loading", 2);
4093
4133
  __decorateClass$R([
4094
4134
  property({ type: Boolean, reflect: true })
4095
- ], FlowButton.prototype, "outline", 2);
4135
+ ], FlowButton$1.prototype, "outline", 2);
4096
4136
  __decorateClass$R([
4097
4137
  property({ type: Boolean, reflect: true })
4098
- ], FlowButton.prototype, "pill", 2);
4138
+ ], FlowButton$1.prototype, "pill", 2);
4099
4139
  __decorateClass$R([
4100
- property({ type: Boolean, reflect: true })
4101
- ], FlowButton.prototype, "circle", 2);
4140
+ property({ type: Boolean, reflect: true, attribute: "fab-circle" })
4141
+ ], FlowButton$1.prototype, "fabCircle", 2);
4142
+ __decorateClass$R([
4143
+ property({ type: Boolean, reflect: true, attribute: "fab-square" })
4144
+ ], FlowButton$1.prototype, "fabSquare", 2);
4102
4145
  __decorateClass$R([
4103
4146
  property()
4104
- ], FlowButton.prototype, "type", 2);
4147
+ ], FlowButton$1.prototype, "type", 2);
4105
4148
  __decorateClass$R([
4106
4149
  property()
4107
- ], FlowButton.prototype, "name", 2);
4150
+ ], FlowButton$1.prototype, "name", 2);
4108
4151
  __decorateClass$R([
4109
4152
  property()
4110
- ], FlowButton.prototype, "value", 2);
4153
+ ], FlowButton$1.prototype, "value", 2);
4111
4154
  __decorateClass$R([
4112
4155
  property()
4113
- ], FlowButton.prototype, "href", 2);
4156
+ ], FlowButton$1.prototype, "href", 2);
4114
4157
  __decorateClass$R([
4115
4158
  property()
4116
- ], FlowButton.prototype, "target", 2);
4159
+ ], FlowButton$1.prototype, "target", 2);
4117
4160
  __decorateClass$R([
4118
4161
  property()
4119
- ], FlowButton.prototype, "rel", 2);
4162
+ ], FlowButton$1.prototype, "rel", 2);
4120
4163
  __decorateClass$R([
4121
4164
  property()
4122
- ], FlowButton.prototype, "download", 2);
4165
+ ], FlowButton$1.prototype, "download", 2);
4123
4166
  __decorateClass$R([
4124
4167
  property()
4125
- ], FlowButton.prototype, "form", 2);
4168
+ ], FlowButton$1.prototype, "form", 2);
4126
4169
  __decorateClass$R([
4127
4170
  property({ attribute: "formaction" })
4128
- ], FlowButton.prototype, "formAction", 2);
4171
+ ], FlowButton$1.prototype, "formAction", 2);
4129
4172
  __decorateClass$R([
4130
4173
  property({ attribute: "formenctype" })
4131
- ], FlowButton.prototype, "formEnctype", 2);
4174
+ ], FlowButton$1.prototype, "formEnctype", 2);
4132
4175
  __decorateClass$R([
4133
4176
  property({ attribute: "formmethod" })
4134
- ], FlowButton.prototype, "formMethod", 2);
4177
+ ], FlowButton$1.prototype, "formMethod", 2);
4135
4178
  __decorateClass$R([
4136
4179
  property({ attribute: "formnovalidate", type: Boolean })
4137
- ], FlowButton.prototype, "formNoValidate", 2);
4180
+ ], FlowButton$1.prototype, "formNoValidate", 2);
4138
4181
  __decorateClass$R([
4139
4182
  property({ attribute: "formtarget" })
4140
- ], FlowButton.prototype, "formTarget", 2);
4183
+ ], FlowButton$1.prototype, "formTarget", 2);
4141
4184
  __decorateClass$R([
4142
4185
  watch("disabled", { waitUntilFirstUpdate: true })
4143
- ], FlowButton.prototype, "handleDisabledChange", 1);
4144
- FlowButton = __decorateClass$R([
4186
+ ], FlowButton$1.prototype, "handleDisabledChange", 1);
4187
+ FlowButton$1 = __decorateClass$R([
4145
4188
  customElement("flow-ui-button")
4146
- ], FlowButton);
4189
+ ], FlowButton$1);
4190
+
4191
+ const FlowButton = FlowButton$1;
4192
+ FlowButton$1.define("flow-ui-button");
4147
4193
 
4148
4194
  const isUndefined = (val) => typeof val === "undefined";
4149
4195
  const isNull = (val) => val === null;
@@ -23358,7 +23404,7 @@ const translation = {
23358
23404
  };
23359
23405
  registerTranslation(translation);
23360
23406
 
23361
- const version = "0.0.33";
23407
+ const version = "0.0.34";
23362
23408
 
23363
23409
  const CONSOLE_HIGHLIGHT_STYLE = `
23364
23410
  padding: 2px 4px;
@@ -544,6 +544,11 @@
544
544
 
545
545
  --flow-ui-chart-stroke-color-9: var(--flow-ui-color-yellow-500);
546
546
  --flow-ui-chart-fill-color-9: var(--flow-ui-color-yellow-300);
547
+
548
+ --flow-ui-map-background-color: var(--flow-ui-color-neutral-0);
549
+ --flow-ui-map-busy-track-size: var(--flow-ui-spacing-2x-small);
550
+ --flow-ui-map-busy-track-color: transparent;
551
+ --flow-ui-map-busy-indicator-color: var(--flow-ui-color-primary-500);
547
552
  }
548
553
 
549
554
  .flow-ui-scroll-lock {
@@ -553,6 +553,11 @@ export default css`
553
553
 
554
554
  --flow-ui-chart-stroke-color-9: var(--flow-ui-color-yellow-500);
555
555
  --flow-ui-chart-fill-color-9: var(--flow-ui-color-yellow-300);
556
+
557
+ --flow-ui-map-background-color: var(--flow-ui-color-neutral-0);
558
+ --flow-ui-map-busy-track-size: var(--flow-ui-spacing-2x-small);
559
+ --flow-ui-map-busy-track-color: transparent;
560
+ --flow-ui-map-busy-indicator-color: var(--flow-ui-color-primary-500);
556
561
  }
557
562
 
558
563
  .flow-ui-scroll-lock {
@@ -545,6 +545,11 @@
545
545
 
546
546
  --flow-ui-chart-stroke-color-9: var(--flow-ui-color-yellow-500);
547
547
  --flow-ui-chart-fill-color-9: var(--flow-ui-color-yellow-300);
548
+
549
+ --flow-ui-map-background-color: var(--flow-ui-color-neutral-0);
550
+ --flow-ui-map-busy-track-size: var(--flow-ui-spacing-2x-small);
551
+ --flow-ui-map-busy-track-color: transparent;
552
+ --flow-ui-map-busy-indicator-color: var(--flow-ui-color-primary-500);
548
553
  }
549
554
 
550
555
  .flow-ui-scroll-lock {
@@ -554,6 +554,11 @@ export default css`
554
554
 
555
555
  --flow-ui-chart-stroke-color-9: var(--flow-ui-color-yellow-500);
556
556
  --flow-ui-chart-fill-color-9: var(--flow-ui-color-yellow-300);
557
+
558
+ --flow-ui-map-background-color: var(--flow-ui-color-neutral-0);
559
+ --flow-ui-map-busy-track-size: var(--flow-ui-spacing-2x-small);
560
+ --flow-ui-map-busy-track-color: transparent;
561
+ --flow-ui-map-busy-indicator-color: var(--flow-ui-color-primary-500);
557
562
  }
558
563
 
559
564
  .flow-ui-scroll-lock {