@supersoniks/concorde 3.1.1 → 3.1.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.
@@ -129,8 +129,9 @@ let ri = (St = class {
129
129
  * Supprime les écouteurs associés
130
130
  */
131
131
  delete() {
132
- for (const t of this._proxies_.values())
133
- t.delete();
132
+ var t;
133
+ for (const s in this._proxies_.keys())
134
+ s != "_parent_" && ((t = this._proxies_.get(s)) == null || t.delete());
134
135
  this._invalidateListeners_.clear(), this._assignListeners_.clear(), this._mutationListeners_.clear(), this._fillListeners_.clear(), this._templateFillListeners_.clear(), this._proxies_.clear(), St.instances.delete(this._instanceCounter_);
135
136
  }
136
137
  /**
@@ -462,7 +463,7 @@ let N = (k = class {
462
463
  const h = await new Response(l.readable).arrayBuffer();
463
464
  return new TextDecoder().decode(h);
464
465
  }
465
- }, k.buildDate = "Tue May 07 2024 12:17:38 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
466
+ }, k.buildDate = "Thu May 30 2024 12:53:16 GMT+0200 (Central European Summer Time)", k.changed = !1, k.saving = !1, k.saveId = 0, k.instance = null, k.instances = /* @__PURE__ */ new Map(), k.modifiedCollectore = [], k);
466
467
  const Us = window;
467
468
  Us.SonicPublisherManager || (Us.SonicPublisherManager = N);
468
469
  Us.SonicPublisherManager.registerInstance(
@@ -2696,12 +2697,23 @@ const ns = /* @__PURE__ */ new Map(), Oe = (r) => {
2696
2697
  const w = d.indexOf(this);
2697
2698
  w == 0 ? f = d[d.length - 1] : f = d[w - 1];
2698
2699
  }
2699
- const m = (b = f == null ? void 0 : f.shadowRoot) == null ? void 0 : b.querySelector(h);
2700
+ const m = (b = f == null ? void 0 : f.shadowRoot) == null ? void 0 : b.querySelector(
2701
+ h
2702
+ );
2700
2703
  m && m.focus && (m.focus(), l.preventDefault(), l.stopPropagation());
2701
2704
  });
2702
2705
  }
2706
+ focus() {
2707
+ var e;
2708
+ const i = (e = this.shadowRoot) == null ? void 0 : e.querySelector(
2709
+ "[data-form-element]"
2710
+ );
2711
+ i == null || i.focus();
2712
+ }
2703
2713
  connectedCallback() {
2704
- this.formDataProvider = this.getAncestorAttributeValue("formDataProvider"), super.connectedCallback(), this.addKeyboardNavigation();
2714
+ this.formDataProvider = this.getAncestorAttributeValue(
2715
+ "formDataProvider"
2716
+ ), super.connectedCallback(), this.addKeyboardNavigation();
2705
2717
  }
2706
2718
  disconnectedCallback() {
2707
2719
  super.disconnectedCallback(), this._name && this.publisher && this.publisher[this._name].offAssign(this.onValueAssign);
@@ -3277,6 +3289,7 @@ const x = (r) => r ?? $, Lt = P`
3277
3289
  font-size: var(--sc-fs);
3278
3290
  line-height: var(--sc-lh);
3279
3291
  }
3292
+
3280
3293
  :host([size="2xs"]) {
3281
3294
  --sc-fs: 0.625rem;
3282
3295
  }
@@ -3286,6 +3299,9 @@ const x = (r) => r ?? $, Lt = P`
3286
3299
  :host([size="sm"]) {
3287
3300
  --sc-fs: 0.875rem;
3288
3301
  }
3302
+ :host([size="md"]) {
3303
+ --sc-fs: 1rem;
3304
+ }
3289
3305
  :host([size="lg"]) {
3290
3306
  --sc-fs: 1.125rem;
3291
3307
  }
@@ -4320,7 +4336,8 @@ const ts = P`
4320
4336
  }
4321
4337
 
4322
4338
  .custom-scroll::-webkit-scrollbar-thumb {
4323
- box-shadow: inset 0 0 2rem 2rem var(--sc-scrollbar-bg);
4339
+ box-shadow: inset 0 0 2rem 2rem
4340
+ var(--sc-scrollbar-bg, var(--sc-base-400, #222));
4324
4341
  border-radius: var(--sc-rounded);
4325
4342
  border: solid 0.15rem transparent;
4326
4343
  }
@@ -4595,7 +4612,8 @@ yt = Et([
4595
4612
  const nn = P`
4596
4613
  :host {
4597
4614
  /* polices*/
4598
- --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
4615
+ --sc-font-family-base: "Inter var", "Inter", -apple-system, system-ui,
4616
+ BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
4599
4617
  sans-serif;
4600
4618
  --sc-font-weight-base: 400;
4601
4619
  --sc-font-style-base: normal;
@@ -4622,16 +4640,23 @@ const nn = P`
4622
4640
  /* 4 for rounded full*/
4623
4641
  --sc-btn-rounded-intensity: 1.4;
4624
4642
  --sc-btn-font-weight: 500;
4625
- --sc-btn-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity));
4643
+ --sc-btn-rounded: calc(
4644
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
4645
+ var(--sc-btn-rounded-intensity)
4646
+ );
4626
4647
 
4627
4648
  /* Placeholder */
4628
4649
  --sc-placeholder-bg: rgba(17, 24, 39, 0.05);
4629
4650
 
4630
4651
  /* OMBRES */
4631
- --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
4632
- --sc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
4633
- --sc-shadow-lg: 0 10px 15px 0px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
4634
- --sc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
4652
+ --sc-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1),
4653
+ 0 1px 2px -1px rgb(0 0 0 / 0.1);
4654
+ --sc-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
4655
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
4656
+ --sc-shadow-lg: 0 10px 15px 0px rgb(0 0 0 / 0.1),
4657
+ 0 4px 6px -4px rgb(0 0 0 / 0.1);
4658
+ --sc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
4659
+ 0 8px 10px -6px rgb(0 0 0 / 0.1);
4635
4660
  --sc-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
4636
4661
 
4637
4662
  /* Forms */
@@ -4642,15 +4667,15 @@ const nn = P`
4642
4667
  --sc-input-bg: var(--sc-base-100);
4643
4668
  --sc-input-border-color: var(--sc-input-bg);
4644
4669
  --sc-input-rounded-intensity: 1.4;
4645
- --sc-input-rounded: calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity));
4670
+ --sc-input-rounded: calc(
4671
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
4672
+ var(--sc-input-rounded-intensity)
4673
+ );
4646
4674
  --sc-label-font-weight: 500;
4647
4675
 
4648
4676
  /* Contrast -- ex : Text on images */
4649
4677
  --sc-contrast-content: #fff;
4650
- --sc-contrast: #11151f;
4651
-
4652
- /*Scrollbar*/
4653
- --sc-scrollbar-bg: var(--sc-base-400);
4678
+ --sc-contrast: #000000;
4654
4679
 
4655
4680
  /*Body*/
4656
4681
  --sc-body-bg: var(--sc-base);
@@ -5820,7 +5845,7 @@ let Wt = class extends Y(y) {
5820
5845
  );
5821
5846
  if (r.isFormValid = !0, r.invalidate(), !r.isFormValid.get())
5822
5847
  return;
5823
- if (this.publisher && (this.publisher.disabled = !0), r.isFormValid, this.hasAttribute("native")) {
5848
+ if (this.disabled = !0, r.isFormValid, this.hasAttribute("native")) {
5824
5849
  this.submitNativeForm();
5825
5850
  return;
5826
5851
  }
@@ -5879,12 +5904,12 @@ let Wt = class extends Y(y) {
5879
5904
  const D = this.getAncestorAttributeValue(
5880
5905
  "submitResultDataProvider"
5881
5906
  );
5882
- D && N.get(D).set(c), this.publisher && (this.publisher.disabled = null);
5907
+ D && N.get(D).set(c), this.disabled = !1;
5883
5908
  }, m = n != null && n.needsCaptchaValidation.get() ? n : r.needsCaptchaValidation.get() ? r : null;
5884
5909
  if (m) {
5885
5910
  m.captchaMethod = s, m.captchaAction = (h == null ? void 0 : h.split("?")[0]) ?? this.getAncestorAttributeValue("formDataProvider") ?? "submit", m.captchaToken = "request_token";
5886
5911
  const w = (C) => {
5887
- C != "request_token" && C != "" && (f(), m.captchaToken.offAssign(w));
5912
+ C && C != "request_token" && (f(), m.captchaToken.offAssign(w));
5888
5913
  };
5889
5914
  m.captchaToken.onAssign(w);
5890
5915
  } else
@@ -6972,7 +6997,7 @@ var Ya = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, Le = (r, t
6972
6997
  const Ja = "sonic-progress";
6973
6998
  let Zt = class extends y {
6974
6999
  constructor() {
6975
- super(...arguments), this.max = 100, this.invert = !1, this.type = "default", this.size = "md";
7000
+ super(...arguments), this.max = 100, this.invert = !1, this.type = "default";
6976
7001
  }
6977
7002
  render() {
6978
7003
  return g`
@@ -7062,8 +7087,13 @@ Zt.styles = [
7062
7087
  --sc-progress-color: var(--sc-success);
7063
7088
  }
7064
7089
 
7090
+ :host([type="invert"]) {
7091
+ --sc-progress-bg: rgba(190, 190, 190, 0.125);
7092
+ --sc-progress-color: var(--sc-base);
7093
+ }
7094
+
7065
7095
  :host([invert]) {
7066
- --sc-progress-bg: rgba(200, 200, 200, 0.1);
7096
+ --sc-progress-bg: rgba(190, 190, 190, 0.125);
7067
7097
  }
7068
7098
 
7069
7099
  :host([type="default"][invert]) {
@@ -7566,7 +7596,10 @@ let F = class extends Os(Oe(Y(y))) {
7566
7596
  super.handleChange(r);
7567
7597
  return;
7568
7598
  }
7569
- this.changeTimeoutId && clearTimeout(this.changeTimeoutId), this.changeTimeoutId = setTimeout(() => super.handleChange(r), parseInt(this.getAttribute("inputDelayMs")));
7599
+ this.changeTimeoutId && clearTimeout(this.changeTimeoutId), this.changeTimeoutId = setTimeout(
7600
+ () => super.handleChange(r),
7601
+ parseInt(this.getAttribute("inputDelayMs"))
7602
+ );
7570
7603
  }
7571
7604
  // toggle password visibility
7572
7605
  togglePasswordVisibility() {
@@ -7590,10 +7623,13 @@ let F = class extends Os(Oe(Y(y))) {
7590
7623
  ></slot
7591
7624
  ></label>
7592
7625
 
7593
- <div @click=${this.inlineContentFocus} class="form-control ${yi(r)}">
7626
+ <div @click=${this.inlineContentFocus} class="form-control ${yi(
7627
+ r
7628
+ )}">
7594
7629
  <div part="content" class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}">
7595
7630
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
7596
7631
  <input
7632
+ data-form-element
7597
7633
  part="input"
7598
7634
  id=${x(this.id || "form-element")}
7599
7635
  part="input"
@@ -7628,7 +7664,10 @@ let F = class extends Os(Oe(Y(y))) {
7628
7664
  aria-label="Toggle password visibility"
7629
7665
  variant="unstyled"
7630
7666
  >
7631
- <sonic-icon library="heroicons" name=${this.isPassword ? "eye" : "eye-slash"}></sonic-icon>
7667
+ <sonic-icon
7668
+ library="heroicons"
7669
+ name=${this.isPassword ? "eye" : "eye-slash"}
7670
+ ></sonic-icon>
7632
7671
  </sonic-button>` : ""}
7633
7672
  <slot name="suffix" @slotchange=${this.hasSlotOrProps}></slot>
7634
7673
  </div>
@@ -7985,7 +8024,9 @@ var hl = Object.defineProperty, dl = Object.getOwnPropertyDescriptor, $t = (r, t
7985
8024
  (n = r[o]) && (e = (i ? n(t, s, e) : n(e)) || e);
7986
8025
  return i && e && hl(t, s, e), e;
7987
8026
  };
7988
- let pt = class extends ui(xr(_r(Qt(y)))) {
8027
+ let pt = class extends ui(
8028
+ xr(_r(Qt(y)))
8029
+ ) {
7989
8030
  constructor() {
7990
8031
  super(...arguments), this.size = "md", this.placeholder = "", this.filteredFields = "", this.readonly = null, this.dataProviderExpression = "", this.key = "", this.searchParameter = "", this.propertyName = "", this.hasInputPrefix = !1, this._resizeController = new Sr(this, {}), this.searchDataProvider = "", this.initSearchDataProvider = "", this.queueDataProvider = "", this.initQueueDataProvider = "", this.lastValidSearch = "", this.updateSearchParameter = (r) => {
7991
8032
  var s;
@@ -7993,22 +8034,34 @@ let pt = class extends ui(xr(_r(Qt(y)))) {
7993
8034
  this.lastValidSearch = "";
7994
8035
  return;
7995
8036
  }
7996
- this.queryQueueListItem(this.queueDataProvider, this.findSelection, this.setSearchFromSelection) === !1 && (this.lastValidSearch = r, (s = this.searchPublisher) == null || s.set(this.lastValidSearch));
8037
+ this.queryQueueListItem(
8038
+ this.queueDataProvider,
8039
+ this.findSelection,
8040
+ this.setSearchFromSelection
8041
+ ) === !1 && (this.lastValidSearch = r, (s = this.searchPublisher) == null || s.set(this.lastValidSearch));
7997
8042
  }, this.initSearchParameter = () => {
7998
- this.queryQueueListItem(this.initQueueDataProvider, this.findSelection, this.setSearchFromSelection);
8043
+ this.queryQueueListItem(
8044
+ this.initQueueDataProvider,
8045
+ this.findSelection,
8046
+ this.setSearchFromSelection
8047
+ );
7999
8048
  }, this.selectListItem = (r) => {
8000
8049
  var s;
8001
8050
  const t = this.propertyName === "_self" ? r : r[this.propertyName || this.name];
8002
8051
  (s = this.formValuePublisher) == null || s.set(t);
8003
8052
  }, this.findSearchedItem = (r) => {
8004
8053
  var s;
8005
- return (this.propertyName === "_self" ? r : r[this.propertyName || this.searchParameter || this.name]) == ((s = this.searchPublisher) == null ? void 0 : s.get());
8054
+ return console.log(this.propertyName), (this.propertyName === "_self" ? r : r[this.propertyName || this.searchParameter || this.name]) == ((s = this.searchPublisher) == null ? void 0 : s.get());
8006
8055
  }, this.findSelection = (r) => (this.propertyName === "_self" ? r : r[this.propertyName || this.name]) == this.value, this.setSearchFromSelection = (r) => {
8007
8056
  var t;
8008
- this.lastValidSearch = this.propertyName === "_self" ? r : r[this.propertyName || this.searchParameter || this.name], (t = this.searchPublisher) == null || t.set(this.lastValidSearch);
8057
+ this.lastValidSearch = this.propertyName === "_self" ? r : r[this.searchParameter || this.propertyName || this.name], (t = this.searchPublisher) == null || t.set(this.lastValidSearch);
8009
8058
  }, this.updateActiveSelection = () => {
8010
8059
  var r, t, s;
8011
- this.queryQueueListItem(this.queueDataProvider, this.findSearchedItem, this.selectListItem), !this.select && this.lastValidSearch && this.lastValidSearch != ((r = this.searchPublisher) == null ? void 0 : r.get()) && ((t = this.formValuePublisher) != null && t.get()) && ((s = this.formValuePublisher) == null || s.set(""));
8060
+ this.queryQueueListItem(
8061
+ this.queueDataProvider,
8062
+ this.findSearchedItem,
8063
+ this.selectListItem
8064
+ ), !this.select && this.lastValidSearch && this.lastValidSearch != ((r = this.searchPublisher) == null ? void 0 : r.get()) && ((t = this.formValuePublisher) != null && t.get()) && ((s = this.formValuePublisher) == null || s.set(""));
8012
8065
  };
8013
8066
  }
8014
8067
  /**
@@ -8024,7 +8077,9 @@ let pt = class extends ui(xr(_r(Qt(y)))) {
8024
8077
  const r = this.searchParameter || this.name, t = this.getAncestorAttributeValue("formDataProvider"), s = t + "__" + this.name + "__autocomplete";
8025
8078
  this.initSearchDataProvider = `${s}_init_search__`, this.initQueueDataProvider = `${s}_init_queue__`, this.searchDataProvider = `${s}_search__`, this.queueDataProvider = `${s}_queue__`;
8026
8079
  const i = J.get;
8027
- this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = i(t)[this.name], this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(this.initQueueDataProvider).resultCount, this.value && (J.get(this.initSearchDataProvider)[this.name] = this.value), (e = this.initCountPublisher) == null || e.onAssign(this.initSearchParameter), (o = this.formValuePublisher) == null || o.onAssign(this.updateSearchParameter), (n = this.countPublisher) == null || n.onAssign(this.updateActiveSelection);
8080
+ this.searchPublisher = i(this.searchDataProvider)[r], this.formValuePublisher = i(t)[this.name], this.countPublisher = i(this.queueDataProvider).resultCount, this.initCountPublisher = i(
8081
+ this.initQueueDataProvider
8082
+ ).resultCount, this.value && (J.get(this.initSearchDataProvider)[this.name] = this.value), (e = this.initCountPublisher) == null || e.onAssign(this.initSearchParameter), (o = this.formValuePublisher) == null || o.onAssign(this.updateSearchParameter), (n = this.countPublisher) == null || n.onAssign(this.updateActiveSelection);
8028
8083
  }
8029
8084
  disconnectedCallback() {
8030
8085
  var t, s, i;
@@ -8084,18 +8139,33 @@ let pt = class extends ui(xr(_r(Qt(y)))) {
8084
8139
  inlineContent
8085
8140
  size=${this.size}
8086
8141
  >
8087
- <slot name="prefix" slot="prefix" @slotchange=${this.hasSlotOrProps}></slot>
8088
-
8089
- ${this.select ? g` <sonic-icon slot="suffix" class="select-chevron" name="nav-arrow-down" .size=${this.size}></sonic-icon> ` : $}
8142
+ <slot
8143
+ name="prefix"
8144
+ slot="prefix"
8145
+ @slotchange=${this.hasSlotOrProps}
8146
+ ></slot>
8147
+
8148
+ ${this.select ? g`
8149
+ <sonic-icon
8150
+ slot="suffix"
8151
+ class="select-chevron"
8152
+ name="nav-arrow-down"
8153
+ .size=${this.size}
8154
+ ></sonic-icon>
8155
+ ` : $}
8090
8156
  </sonic-input>
8091
- <sonic-menu slot="content" class="custom-scroll" style="${this.offsetWidth ? `width: ${this.offsetWidth}px` : ""}">
8157
+ <sonic-menu
8158
+ slot="content"
8159
+ class="custom-scroll"
8160
+ style="${this.offsetWidth ? `width: ${this.offsetWidth}px` : ""}"
8161
+ >
8092
8162
  <sonic-queue
8093
8163
  dataProvider="${this.queueDataProvider}"
8094
8164
  filteredFields=${this.filteredFields}
8095
8165
  dataProviderExpression="${this.dataProviderExpression}"
8096
8166
  dataFilterProvider="${this.searchDataProvider}"
8097
8167
  key="${this.key}"
8098
- .templates=${this.templateList}
8168
+ .templates=${this.templateList.concat(this.templatePartsList)}
8099
8169
  displayContents
8100
8170
  >
8101
8171
  </sonic-queue>
@@ -8301,7 +8371,9 @@ var vl = Object.defineProperty, yl = Object.getOwnPropertyDescriptor, Ut = (r, t
8301
8371
  return i && e && vl(t, s, e), e;
8302
8372
  };
8303
8373
  const wl = "sonic-checkbox";
8304
- let mt = class extends di(Os(Oe(Y(y)))) {
8374
+ let mt = class extends di(
8375
+ Os(Oe(Y(y)))
8376
+ ) {
8305
8377
  constructor() {
8306
8378
  super(...arguments), this.touched = !1, this.iconName = "check", this.indeterminateIconName = "minus-small", this.showAsIndeterminate = !1, this.hasDescription = !1, this.hasLabel = !1;
8307
8379
  }
@@ -8392,7 +8464,8 @@ mt.styles = [
8392
8464
  outline: none;
8393
8465
  margin: 0;
8394
8466
  background-color: var(--sc-checkbox-bg);
8395
- border: var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color);
8467
+ border: var(--sc-checkbox-border-width) solid
8468
+ var(--sc-checkbox-border-color);
8396
8469
  }
8397
8470
 
8398
8471
  input:focus,
@@ -8636,6 +8709,7 @@ let K = class extends Oe(Y(y)) {
8636
8709
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
8637
8710
  <div class="form-select-wrapper">
8638
8711
  <select
8712
+ data-form-element
8639
8713
  id="form-element"
8640
8714
  @change=${this.handleChange}
8641
8715
  @blur=${this.handleBlur}
@@ -8816,7 +8890,9 @@ let at = class extends Os(Oe(Y(y))) {
8816
8890
  }
8817
8891
  validateFormElement() {
8818
8892
  var s;
8819
- const r = (s = this.shadowRoot) == null ? void 0 : s.querySelector("textarea");
8893
+ const r = (s = this.shadowRoot) == null ? void 0 : s.querySelector(
8894
+ "textarea"
8895
+ );
8820
8896
  if (!r || r.checkValidity())
8821
8897
  return;
8822
8898
  const t = this.getFormPublisher();
@@ -8827,15 +8903,21 @@ let at = class extends Os(Oe(Y(y))) {
8827
8903
  resize: this.resize
8828
8904
  };
8829
8905
  return g`
8830
- <label for="${this.id || "form-element"}" class="${this.hasLabel ? "form-label" : "hidden"}"
8906
+ <label
8907
+ for="${this.id || "form-element"}"
8908
+ class="${this.hasLabel ? "form-label" : "hidden"}"
8831
8909
  >${this.label ? z(
8832
8910
  this.label
8833
8911
  /*+ labelStarSuffix*/
8834
- ) : ""}<slot name="label" @slotchange=${this.hasSlotOrProps}></slot
8912
+ ) : ""}<slot
8913
+ name="label"
8914
+ @slotchange=${this.hasSlotOrProps}
8915
+ ></slot
8835
8916
  ></label>
8836
8917
 
8837
8918
  <div class="form-control">
8838
8919
  <textarea
8920
+ data-form-element
8839
8921
  id="${this.id || "form-element"}"
8840
8922
  @input=${this.handleChange}
8841
8923
  @blur=${this.handleBlur}
@@ -8861,7 +8943,10 @@ ${this.value}</textarea
8861
8943
  >
8862
8944
  </div>
8863
8945
 
8864
- <slot name="description" @slotchange=${this.hasSlotOrProps} class="${this.hasDescription ? "form-description" : "hidden"}"
8946
+ <slot
8947
+ name="description"
8948
+ @slotchange=${this.hasSlotOrProps}
8949
+ class="${this.hasDescription ? "form-description" : "hidden"}"
8865
8950
  >${this.description ? g`${z(this.description)}` : ""}</slot
8866
8951
  >
8867
8952
  `;
@@ -10370,7 +10455,10 @@ let pe = class extends y {
10370
10455
  }
10371
10456
  render() {
10372
10457
  const r = this.disabled || this.label == "" ? "disabled" : "";
10373
- return g`<div data-tooltip-text="${this.label.trim().replace("&nbsp;", " ")}" class="tooltip ${r}">
10458
+ return g`<div
10459
+ data-tooltip-text="${this.label.trim().replace("&nbsp;", " ")}"
10460
+ class="tooltip ${r}"
10461
+ >
10374
10462
  <slot></slot>
10375
10463
  </div>`;
10376
10464
  }
@@ -10383,6 +10471,7 @@ pe.styles = [
10383
10471
  align-items: center;
10384
10472
  text-align: center;
10385
10473
  --sc-tooltip-fw: var(--sc-font-weight-base);
10474
+ --sc-tooltip-position: calc(100% + 0.25rem);
10386
10475
  }
10387
10476
 
10388
10477
  .tooltip:before {
@@ -10393,57 +10482,86 @@ pe.styles = [
10393
10482
  opacity: 0;
10394
10483
  pointer-events: none;
10395
10484
  background: var(--sc-base-content, #111827);
10396
- padding: 0.32rem 0.25rem;
10485
+ padding: 0.32rem 0.55rem;
10397
10486
  border-radius: var(--sc-rounded);
10398
10487
  color: var(--sc-base, #fff);
10399
10488
  z-index: 999;
10400
- display: none;
10401
10489
  line-height: 1.1;
10402
10490
  width: max-content;
10403
10491
  max-width: 18rem;
10404
10492
  white-space: pre-line;
10405
10493
  font-weight: var(--sc-tooltip-fw);
10494
+ transition: 0.2s;
10495
+ scale: 0.9;
10496
+ will-change: opacity, transform;
10406
10497
  }
10407
10498
  :host(:focus-within) .tooltip:not(.disabled):before,
10408
10499
  .tooltip:not(.disabled):hover:before {
10409
10500
  opacity: 1;
10410
- display: block;
10501
+ scale: 1;
10411
10502
  }
10412
10503
 
10413
10504
  :host(:not([placement])) .tooltip:before,
10414
10505
  :host([placement="top"]) .tooltip:before {
10415
- bottom: calc(100% + 0.25rem);
10506
+ bottom: var(--sc-tooltip-position);
10416
10507
  left: 50%;
10417
10508
  transform: translateX(-50%);
10418
10509
  }
10419
10510
 
10420
10511
  :host([placement="top-end"]) .tooltip:before {
10421
- bottom: calc(100% + 0.25rem);
10512
+ bottom: var(--sc-tooltip-position);
10422
10513
  right: 0;
10423
- transform: translateX(0);
10424
10514
  }
10425
10515
  :host([placement="top-start"]) .tooltip:before {
10426
- bottom: calc(100% + 0.25rem);
10516
+ bottom: var(--sc-tooltip-position);
10427
10517
  left: 0;
10428
- transform: translateX(0);
10429
10518
  }
10430
10519
 
10431
10520
  :host([placement="bottom"]) .tooltip:before {
10432
- top: calc(100% + 0.25rem);
10521
+ top: var(--sc-tooltip-position);
10433
10522
  left: 50%;
10434
10523
  transform: translateX(-50%);
10435
10524
  }
10436
10525
 
10526
+ :host([placement="bottom-start"]) .tooltip:before {
10527
+ top: var(--sc-tooltip-position);
10528
+ left: 0;
10529
+ }
10530
+ :host([placement="bottom-end"]) .tooltip:before {
10531
+ top: var(--sc-tooltip-position);
10532
+ right: 0;
10533
+ }
10534
+
10437
10535
  :host([placement="left"]) .tooltip:before {
10438
10536
  top: 50%;
10439
- right: calc(100% + 0.25rem);
10537
+ right: var(--sc-tooltip-position);
10440
10538
  transform: translateY(-50%);
10441
10539
  }
10442
10540
 
10541
+ :host([placement="left-start"]) .tooltip:before {
10542
+ top: 0;
10543
+ right: var(--sc-tooltip-position);
10544
+ }
10545
+
10546
+ :host([placement="left-end"]) .tooltip:before {
10547
+ bottom: 0;
10548
+ right: var(--sc-tooltip-position);
10549
+ }
10550
+
10443
10551
  :host([placement="right"]) .tooltip:before {
10444
10552
  top: 50%;
10445
10553
  transform: translateY(-50%);
10446
- left: calc(100% + 0.25rem);
10554
+ left: var(--sc-tooltip-position);
10555
+ }
10556
+
10557
+ :host([placement="right-start"]) .tooltip:before {
10558
+ top: 0;
10559
+ left: var(--sc-tooltip-position);
10560
+ }
10561
+
10562
+ :host([placement="right-end"]) .tooltip:before {
10563
+ bottom: 0;
10564
+ left: var(--sc-tooltip-position);
10447
10565
  }
10448
10566
  `
10449
10567
  ];
@@ -11231,15 +11349,15 @@ var Ph = Object.defineProperty, $h = Object.getOwnPropertyDescriptor, Ee = (r, t
11231
11349
  };
11232
11350
  const Ch = "sonic-table";
11233
11351
  let Yt = class extends y {
11234
- constructor() {
11235
- super(...arguments), this.bordered = !1, this.rounded = !1, this.noCustomScroll = !1;
11236
- }
11237
11352
  render() {
11238
11353
  const r = {
11239
11354
  maxHeight: this.maxHeight
11240
11355
  };
11241
11356
  return g`
11242
- <div class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}" style=${dt(r)}>
11357
+ <div
11358
+ class="table-container ${this.noCustomScroll ? "" : "custom-scroll"}"
11359
+ style=${dt(r)}
11360
+ >
11243
11361
  <div class="table">
11244
11362
  <slot></slot>
11245
11363
  </div>
@@ -11270,13 +11388,13 @@ Yt.styles = [
11270
11388
  display: block;
11271
11389
  }
11272
11390
 
11273
- :host([maxHeight]) .table-container {
11391
+ .table-container {
11274
11392
  overflow-x: auto;
11275
11393
  -webkit-overflow-scrolling: touch;
11276
11394
  }
11277
11395
 
11278
- :host(:not([maxHeight])) .table-container {
11279
- overflow: initial !important;
11396
+ :host([noCustomScroll]) .table-container {
11397
+ overflow: initial;
11280
11398
  }
11281
11399
 
11282
11400
  .table {
@@ -11288,7 +11406,8 @@ Yt.styles = [
11288
11406
  :host([bordered]) .table-container {
11289
11407
  border: var(--sc-border-width) solid var(--sc-table-border-color);
11290
11408
  border-radius: var(--sc-rounded);
11291
- --sc-table-td-border-b: var(--sc-border-width) solid var(--sc-table-border-color);
11409
+ --sc-table-td-border-b: var(--sc-border-width) solid
11410
+ var(--sc-table-border-color);
11292
11411
  }
11293
11412
  `
11294
11413
  ];
@@ -11333,10 +11452,14 @@ let Ge = class extends Qt(y) {
11333
11452
  const r = document.createElement("style");
11334
11453
  r.innerHTML = ".grecaptcha-badge {z-index: 9999;}", r.id = "concorde-recaptcha-css", document.head.appendChild(r);
11335
11454
  }
11336
- this.formPublisher && !this.formPublisher.captchaToken.get() && (this.formPublisher.needsCaptchaValidation = !0, this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged));
11455
+ this.formPublisher && !this.formPublisher.captchaToken.get() && (this.formPublisher.needsCaptchaValidation = !0, this.formPublisher.captchaToken.onAssign(
11456
+ this.onCaptchaTokenChanged
11457
+ ));
11337
11458
  }
11338
11459
  disconnectedCallback() {
11339
- this.formPublisher && this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged), super.disconnectedCallback();
11460
+ this.formPublisher && (this.formPublisher.captchaToken.offAssign(
11461
+ this.onCaptchaTokenChanged
11462
+ ), this.formPublisher.captchaToken = ""), super.disconnectedCallback();
11340
11463
  }
11341
11464
  requestToken() {
11342
11465
  var s, i;