@easemate/web-kit 0.3.5 → 0.3.7

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/build/index.js CHANGED
@@ -2557,6 +2557,21 @@ var init_Listen = __esm({
2557
2557
  }
2558
2558
  });
2559
2559
 
2560
+ // src/elements/shared.ts
2561
+ var dispatchControlEvent;
2562
+ var init_shared = __esm({
2563
+ "src/elements/shared.ts"() {
2564
+ "use strict";
2565
+ dispatchControlEvent = (host, type, detail) => {
2566
+ host.dispatchEvent(new CustomEvent(type, {
2567
+ detail,
2568
+ bubbles: true,
2569
+ composed: true
2570
+ }));
2571
+ };
2572
+ }
2573
+ });
2574
+
2560
2575
  // swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/components/curve/constants.ts
2561
2576
  var HIT_AREA_RADIUS, LINEAR_HIT_THRESHOLD, LINEAR_PATH_SAMPLES, DRAG_ACTIVATION_DISTANCE_PX, DRAG_ACTIVATION_DISTANCE_PX_SQUARED, DEFAULT_HANDLE_LENGTH, SVG_WIDTH, SVG_HEIGHT, BEZIER_CONTROL_MIN_Y, BEZIER_CONTROL_MAX_Y, EASING_PRESETS;
2562
2577
  var init_constants = __esm({
@@ -2808,21 +2823,6 @@ var init_svg_renderer = __esm({
2808
2823
  }
2809
2824
  });
2810
2825
 
2811
- // src/elements/shared.ts
2812
- var dispatchControlEvent;
2813
- var init_shared = __esm({
2814
- "src/elements/shared.ts"() {
2815
- "use strict";
2816
- dispatchControlEvent = (host, type, detail) => {
2817
- host.dispatchEvent(new CustomEvent(type, {
2818
- detail,
2819
- bubbles: true,
2820
- composed: true
2821
- }));
2822
- };
2823
- }
2824
- });
2825
-
2826
2826
  // swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/components/curve/canvas.ts
2827
2827
  import { html as html3, svg as svg2 } from "lit-html";
2828
2828
  function applyDecs2203RFactory2() {
@@ -4200,6 +4200,7 @@ var init_canvas = __esm({
4200
4200
  }, this.#emitPoints = (value, event) => {
4201
4201
  const target = this.#getEventTarget();
4202
4202
  const detail = {
4203
+ name: target.name,
4203
4204
  value,
4204
4205
  event
4205
4206
  };
@@ -4210,6 +4211,7 @@ var init_canvas = __esm({
4210
4211
  }
4211
4212
  const target = this.#getEventTarget();
4212
4213
  const detail = {
4214
+ name: target.name,
4213
4215
  value: index,
4214
4216
  event
4215
4217
  };
@@ -5147,6 +5149,7 @@ var init_canvas_controls = __esm({
5147
5149
  }, this.#notifyHost = (type, value, event) => {
5148
5150
  const target = this.#getEventTarget();
5149
5151
  const detail = {
5152
+ name: target.name,
5150
5153
  value,
5151
5154
  event
5152
5155
  };
@@ -8181,6 +8184,7 @@ var init_controls = __esm({
8181
8184
  }, this.#notifyHost = (type, value, event) => {
8182
8185
  const target = this.#getEventTarget();
8183
8186
  const detail = {
8187
+ name: target.name,
8184
8188
  value,
8185
8189
  event
8186
8190
  };
@@ -11488,6 +11492,7 @@ var init_toolbar = __esm({
11488
11492
  }, this.#notifyHost = (type, value, event) => {
11489
11493
  const target = this.#getEventTarget();
11490
11494
  const detail = {
11495
+ name: target.name,
11491
11496
  value,
11492
11497
  event
11493
11498
  };
@@ -12072,6 +12077,7 @@ var init_curve = __esm({
12072
12077
  init_Component();
12073
12078
  init_Listen();
12074
12079
  init_Prop();
12080
+ init_shared();
12075
12081
  init_canvas();
12076
12082
  init_canvas_controls();
12077
12083
  init_controls();
@@ -12578,14 +12584,11 @@ var init_curve = __esm({
12578
12584
  }
12579
12585
  emitPointsChange(value, sourceEvent) {
12580
12586
  const detail = {
12587
+ name: this.name,
12581
12588
  value,
12582
12589
  event: sourceEvent ?? new Event("points-change")
12583
12590
  };
12584
- this.dispatchEvent(new CustomEvent("points-change", {
12585
- detail,
12586
- bubbles: true,
12587
- composed: true
12588
- }));
12591
+ dispatchControlEvent(this, "points-change", detail);
12589
12592
  }
12590
12593
  static {
12591
12594
  _initClass13();
@@ -14082,10 +14085,15 @@ var init_checkbox = __esm({
14082
14085
  return;
14083
14086
  }
14084
14087
  this.checked = !this.checked;
14085
- dispatchControlEvent2(this, "checkbox", {
14088
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
14089
+ const detail = {
14090
+ name,
14086
14091
  value: this.checked,
14087
14092
  event
14088
- });
14093
+ };
14094
+ dispatchControlEvent2(this, "checkbox", detail);
14095
+ dispatchControlEvent2(this, "change", detail);
14096
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
14089
14097
  }
14090
14098
  static {
14091
14099
  _initClass15();
@@ -15643,6 +15651,7 @@ var init_dropdown = __esm({
15643
15651
  }
15644
15652
  }
15645
15653
  dispatchControlEvent2(this, "toggle", {
15654
+ name: this.name ?? void 0,
15646
15655
  value: next,
15647
15656
  event: origin
15648
15657
  });
@@ -15906,6 +15915,7 @@ var init_dropdown = __esm({
15906
15915
  }
15907
15916
  #dispatchValueChange(value, label, event) {
15908
15917
  dispatchControlEvent2(this, "change", {
15918
+ name: this.name ?? void 0,
15909
15919
  value,
15910
15920
  event
15911
15921
  });
@@ -16781,20 +16791,28 @@ var init_input = __esm({
16781
16791
  return;
16782
16792
  }
16783
16793
  this.value = target.value;
16784
- dispatchControlEvent2(this, "input", {
16794
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
16795
+ const detail = {
16796
+ name,
16785
16797
  value: this.value ?? "",
16786
16798
  event
16787
- });
16799
+ };
16800
+ dispatchControlEvent2(this, "input", detail);
16801
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
16788
16802
  }
16789
16803
  handleChange(event, target) {
16790
16804
  if (!target) {
16791
16805
  return;
16792
16806
  }
16793
16807
  this.value = target.value;
16794
- dispatchControlEvent2(this, "change", {
16808
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
16809
+ const detail = {
16810
+ name,
16795
16811
  value: this.value ?? "",
16796
16812
  event
16797
- });
16813
+ };
16814
+ dispatchControlEvent2(this, "change", detail);
16815
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
16798
16816
  }
16799
16817
  static {
16800
16818
  _initClass18();
@@ -19326,7 +19344,7 @@ function applyDecs2203RFactory22() {
19326
19344
  function _apply_decs_2203_r22(targetClass, memberDecs, classDecs, parentClass) {
19327
19345
  return (_apply_decs_2203_r22 = applyDecs2203RFactory22())(targetClass, memberDecs, classDecs, parentClass);
19328
19346
  }
19329
- var _dec76, _initClass22, _HTMLElement22, _dec125, _dec218, _dec316, _dec414, _init_dropdown, _init_value5, _init_disabled6, _init_placement4, _initProto18, _ColorInput, ColorInput;
19347
+ var _dec76, _initClass22, _HTMLElement22, _dec125, _dec218, _dec316, _dec414, _dec512, _init_dropdown, _init_value5, _init_disabled6, _init_name6, _init_placement4, _initProto18, _ColorInput, ColorInput;
19330
19348
  var init_color = __esm({
19331
19349
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/color/index.ts"() {
19332
19350
  "use strict";
@@ -19410,12 +19428,15 @@ var init_color = __esm({
19410
19428
  type: Boolean,
19411
19429
  reflect: true
19412
19430
  }), _dec414 = Prop({
19431
+ reflect: true,
19432
+ defaultValue: null
19433
+ }), _dec512 = Prop({
19413
19434
  reflect: true,
19414
19435
  defaultValue: "bottom-start"
19415
19436
  });
19416
19437
  ColorInput = class extends (_HTMLElement22 = HTMLElement) {
19417
19438
  static {
19418
- ({ e: [_init_dropdown, _init_value5, _init_disabled6, _init_placement4, _initProto18], c: [_ColorInput, _initClass22] } = _apply_decs_2203_r22(this, [
19439
+ ({ e: [_init_dropdown, _init_value5, _init_disabled6, _init_name6, _init_placement4, _initProto18], c: [_ColorInput, _initClass22] } = _apply_decs_2203_r22(this, [
19419
19440
  [
19420
19441
  _dec125,
19421
19442
  1,
@@ -19434,6 +19455,11 @@ var init_color = __esm({
19434
19455
  [
19435
19456
  _dec414,
19436
19457
  1,
19458
+ "name"
19459
+ ],
19460
+ [
19461
+ _dec512,
19462
+ 1,
19437
19463
  "placement"
19438
19464
  ]
19439
19465
  ], [
@@ -19462,12 +19488,19 @@ var init_color = __esm({
19462
19488
  set disabled(_v) {
19463
19489
  this.#___private_disabled_3 = _v;
19464
19490
  }
19465
- #___private_placement_4;
19491
+ #___private_name_4;
19492
+ get name() {
19493
+ return this.#___private_name_4;
19494
+ }
19495
+ set name(_v) {
19496
+ this.#___private_name_4 = _v;
19497
+ }
19498
+ #___private_placement_5;
19466
19499
  get placement() {
19467
- return this.#___private_placement_4;
19500
+ return this.#___private_placement_5;
19468
19501
  }
19469
19502
  set placement(_v) {
19470
- this.#___private_placement_4 = _v;
19503
+ this.#___private_placement_5 = _v;
19471
19504
  }
19472
19505
  connectedCallback() {
19473
19506
  this.#hasCustomTrigger = this.querySelector('[slot="trigger"]') !== null;
@@ -19512,21 +19545,24 @@ var init_color = __esm({
19512
19545
  _initClass22();
19513
19546
  }
19514
19547
  constructor(...args) {
19515
- super(...args), this.#hasCustomTrigger = (_initProto18(this), false), this.#___private_dropdown_1 = _init_dropdown(this), this.#___private_value_2 = _init_value5(this), this.#___private_disabled_3 = _init_disabled6(this, false), this.#___private_placement_4 = _init_placement4(this, "bottom-start"), this.#handleInputChange = (event) => {
19548
+ super(...args), this.#hasCustomTrigger = (_initProto18(this), false), this.#___private_dropdown_1 = _init_dropdown(this), this.#___private_value_2 = _init_value5(this), this.#___private_disabled_3 = _init_disabled6(this, false), this.#___private_name_4 = _init_name6(this, null), this.#___private_placement_5 = _init_placement4(this, "bottom-start"), this.#handleInputChange = (event) => {
19516
19549
  this.value = event.target.value;
19517
19550
  dispatchControlEvent2(this, "input", {
19551
+ name: this.name ?? void 0,
19518
19552
  value: this.value,
19519
19553
  event
19520
19554
  });
19521
19555
  }, this.#handlePickerInput = (event) => {
19522
19556
  this.value = event.detail.value;
19523
19557
  dispatchControlEvent2(this, "input", {
19558
+ name: this.name ?? void 0,
19524
19559
  value: this.value,
19525
19560
  event
19526
19561
  });
19527
19562
  }, this.#handlePickerChange = (event) => {
19528
19563
  this.value = event.detail.value;
19529
19564
  dispatchControlEvent2(this, "change", {
19565
+ name: this.name ?? void 0,
19530
19566
  value: this.value,
19531
19567
  event
19532
19568
  });
@@ -19539,6 +19575,7 @@ var init_color = __esm({
19539
19575
  }, this.#handlePickerApply = (event) => {
19540
19576
  this.value = event.detail.value;
19541
19577
  dispatchControlEvent2(this, "change", {
19578
+ name: this.name ?? void 0,
19542
19579
  value: this.value,
19543
19580
  event
19544
19581
  });
@@ -32785,7 +32822,7 @@ function applyDecs2203RFactory50() {
32785
32822
  function _apply_decs_2203_r50(targetClass, memberDecs, classDecs, parentClass) {
32786
32823
  return (_apply_decs_2203_r50 = applyDecs2203RFactory50())(targetClass, memberDecs, classDecs, parentClass);
32787
32824
  }
32788
- var _dec139, _initClass50, _HTMLElement50, _dec140, _dec224, _dec320, _dec416, _dec512, _dec612, _dec710, _dec810, _dec910, _init_value6, _init_min, _init_max, _init_step, _init_name6, _init_disabled7, _init_control3, _initProto27, _NumberInput, NumberInput;
32825
+ var _dec139, _initClass50, _HTMLElement50, _dec140, _dec224, _dec320, _dec416, _dec513, _dec612, _dec710, _dec810, _dec910, _init_value6, _init_min, _init_max, _init_step, _init_name7, _init_disabled7, _init_control3, _initProto27, _NumberInput, NumberInput;
32789
32826
  var init_number = __esm({
32790
32827
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/number/index.ts"() {
32791
32828
  "use strict";
@@ -32891,7 +32928,7 @@ var init_number = __esm({
32891
32928
  }), _dec416 = Prop({
32892
32929
  type: Number,
32893
32930
  reflect: true
32894
- }), _dec512 = Prop({
32931
+ }), _dec513 = Prop({
32895
32932
  reflect: true
32896
32933
  }), _dec612 = Prop({
32897
32934
  type: Boolean,
@@ -32903,7 +32940,7 @@ var init_number = __esm({
32903
32940
  });
32904
32941
  NumberInput = class extends (_HTMLElement50 = HTMLElement) {
32905
32942
  static {
32906
- ({ e: [_init_value6, _init_min, _init_max, _init_step, _init_name6, _init_disabled7, _init_control3, _initProto27], c: [_NumberInput, _initClass50] } = _apply_decs_2203_r50(this, [
32943
+ ({ e: [_init_value6, _init_min, _init_max, _init_step, _init_name7, _init_disabled7, _init_control3, _initProto27], c: [_NumberInput, _initClass50] } = _apply_decs_2203_r50(this, [
32907
32944
  [
32908
32945
  _dec140,
32909
32946
  1,
@@ -32925,7 +32962,7 @@ var init_number = __esm({
32925
32962
  "step"
32926
32963
  ],
32927
32964
  [
32928
- _dec512,
32965
+ _dec513,
32929
32966
  1,
32930
32967
  "name"
32931
32968
  ],
@@ -33020,20 +33057,28 @@ var init_number = __esm({
33020
33057
  return;
33021
33058
  }
33022
33059
  this.value = coerceNumber(target.value);
33023
- dispatchControlEvent2(this, "input", {
33060
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
33061
+ const detail = {
33062
+ name,
33024
33063
  value: this.value,
33025
33064
  event
33026
- });
33065
+ };
33066
+ dispatchControlEvent2(this, "input", detail);
33067
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
33027
33068
  }
33028
33069
  handleChange(event, target) {
33029
33070
  if (!target) {
33030
33071
  return;
33031
33072
  }
33032
33073
  this.value = coerceNumber(target.value);
33033
- dispatchControlEvent2(this, "change", {
33074
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
33075
+ const detail = {
33076
+ name,
33034
33077
  value: this.value,
33035
33078
  event
33036
- });
33079
+ };
33080
+ dispatchControlEvent2(this, "change", detail);
33081
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
33037
33082
  }
33038
33083
  addActiveLayer(button) {
33039
33084
  const layer = document.createElement("div");
@@ -33071,7 +33116,7 @@ var init_number = __esm({
33071
33116
  _initClass50();
33072
33117
  }
33073
33118
  constructor(...args) {
33074
- super(...args), this.#___private_value_1 = (_initProto27(this), _init_value6(this)), this.#___private_min_2 = _init_min(this), this.#___private_max_3 = _init_max(this), this.#___private_step_4 = _init_step(this), this.#___private_name_5 = _init_name6(this), this.#___private_disabled_6 = _init_disabled7(this), this.#___private_control_7 = _init_control3(this);
33119
+ super(...args), this.#___private_value_1 = (_initProto27(this), _init_value6(this)), this.#___private_min_2 = _init_min(this), this.#___private_max_3 = _init_max(this), this.#___private_step_4 = _init_step(this), this.#___private_name_5 = _init_name7(this), this.#___private_disabled_6 = _init_disabled7(this), this.#___private_control_7 = _init_control3(this);
33075
33120
  }
33076
33121
  };
33077
33122
  }
@@ -33455,7 +33500,7 @@ function applyDecs2203RFactory51() {
33455
33500
  function _apply_decs_2203_r51(targetClass, memberDecs, classDecs, parentClass) {
33456
33501
  return (_apply_decs_2203_r51 = applyDecs2203RFactory51())(targetClass, memberDecs, classDecs, parentClass);
33457
33502
  }
33458
- var _dec141, _initClass51, _HTMLElement51, _dec144, _dec225, _dec321, _dec417, _dec513, _init_value7, _init_disabled8, _init_control4, _init_name7, _initProto28, _Origin, Origin;
33503
+ var _dec141, _initClass51, _HTMLElement51, _dec144, _dec225, _dec321, _dec417, _dec514, _init_value7, _init_disabled8, _init_control4, _init_name8, _initProto28, _Origin, Origin;
33459
33504
  var init_origin = __esm({
33460
33505
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/origin/index.ts"() {
33461
33506
  "use strict";
@@ -33606,12 +33651,12 @@ var init_origin = __esm({
33606
33651
  }), _dec321 = Query("ease-dropdown"), _dec417 = Prop({
33607
33652
  reflect: true,
33608
33653
  defaultValue: ""
33609
- }), _dec513 = Listen("change", {
33654
+ }), _dec514 = Listen("change", {
33610
33655
  selector: "ease-dropdown"
33611
33656
  });
33612
33657
  Origin = class extends (_HTMLElement51 = HTMLElement) {
33613
33658
  static {
33614
- ({ e: [_init_value7, _init_disabled8, _init_control4, _init_name7, _initProto28], c: [_Origin, _initClass51] } = _apply_decs_2203_r51(this, [
33659
+ ({ e: [_init_value7, _init_disabled8, _init_control4, _init_name8, _initProto28], c: [_Origin, _initClass51] } = _apply_decs_2203_r51(this, [
33615
33660
  [
33616
33661
  _dec144,
33617
33662
  1,
@@ -33633,7 +33678,7 @@ var init_origin = __esm({
33633
33678
  "name"
33634
33679
  ],
33635
33680
  [
33636
- _dec513,
33681
+ _dec514,
33637
33682
  2,
33638
33683
  "handleChange"
33639
33684
  ]
@@ -33686,7 +33731,7 @@ var init_origin = __esm({
33686
33731
  _initClass51();
33687
33732
  }
33688
33733
  constructor(...args) {
33689
- super(...args), this.#___private_value_1 = (_initProto28(this), _init_value7(this, "center-center")), this.#___private_disabled_2 = _init_disabled8(this), this.#___private_control_3 = _init_control4(this), this.#___private_name_4 = _init_name7(this, ""), this.handleValueChange = (event) => {
33734
+ super(...args), this.#___private_value_1 = (_initProto28(this), _init_value7(this, "center-center")), this.#___private_disabled_2 = _init_disabled8(this), this.#___private_control_3 = _init_control4(this), this.#___private_name_4 = _init_name8(this, ""), this.handleValueChange = (event) => {
33690
33735
  this.value = String(this.control?.value ?? "center-center");
33691
33736
  dispatchControlEvent2(this, "change", {
33692
33737
  value: this.value,
@@ -34076,7 +34121,7 @@ function applyDecs2203RFactory52() {
34076
34121
  function _apply_decs_2203_r52(targetClass, memberDecs, classDecs, parentClass) {
34077
34122
  return (_apply_decs_2203_r52 = applyDecs2203RFactory52())(targetClass, memberDecs, classDecs, parentClass);
34078
34123
  }
34079
- var _dec145, _initClass52, _HTMLElement52, _dec146, _dec226, _dec322, _dec418, _dec514, _dec613, _dec711, _init_activeTab, _init_headline2, _init_maxHeight3, _init_contentElement3, _init_bodyElement, _initProto29, _Panel, Panel;
34124
+ var _dec145, _initClass52, _HTMLElement52, _dec146, _dec226, _dec322, _dec418, _dec515, _dec613, _dec711, _init_activeTab, _init_headline2, _init_maxHeight3, _init_contentElement3, _init_bodyElement, _initProto29, _Panel, Panel;
34080
34125
  var init_panel = __esm({
34081
34126
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/panel/index.ts"() {
34082
34127
  "use strict";
@@ -34150,7 +34195,6 @@ var init_panel = __esm({
34150
34195
  align-items: center;
34151
34196
  gap: 2px;
34152
34197
  flex-grow: 1;
34153
- margin: 0 0 0 4px;
34154
34198
  }
34155
34199
 
34156
34200
  [part="tabs"]:empty {
@@ -34159,17 +34203,18 @@ var init_panel = __esm({
34159
34203
 
34160
34204
  [part="tab"] {
34161
34205
  appearance: none;
34206
+ border-radius: var(--ease-panel-tab-radius, var(--radii-md));
34207
+ background-color: var(--ease-panel-tab-background, transparent);
34208
+ box-sizing: border-box;
34209
+ padding: var(--ease-panel-tab-padding, 4px 8px);
34162
34210
  font-size: var(--ease-panel-tab-font-size);
34163
34211
  font-weight: var(--ease-panel-tab-font-weight);
34164
34212
  line-height: 24px;
34165
34213
  font-family: var(--ease-font-family);
34166
34214
  color: var(--ease-panel-tab-color);
34167
- background-color: transparent;
34168
34215
  border: none;
34169
- padding: 4px 8px;
34170
34216
  margin: 0;
34171
34217
  cursor: pointer;
34172
- border-radius: var(--ease-panel-tab-radius);
34173
34218
  transition: color 200ms, background-color 200ms;
34174
34219
  transition-timing-function: cubic-bezier(.25, 0, .5, 1);
34175
34220
  }
@@ -34335,7 +34380,7 @@ var init_panel = __esm({
34335
34380
  reflect: true,
34336
34381
  attribute: "max-height",
34337
34382
  defaultValue: null
34338
- }), _dec418 = Query('[part="content"]'), _dec514 = Query('[part="body"]'), _dec613 = Listen("slotchange", {
34383
+ }), _dec418 = Query('[part="content"]'), _dec515 = Query('[part="body"]'), _dec613 = Listen("slotchange", {
34339
34384
  selector: 'slot[name="footer"]'
34340
34385
  }), _dec711 = Listen("slotchange", {
34341
34386
  selector: "slot:not([name])"
@@ -34364,7 +34409,7 @@ var init_panel = __esm({
34364
34409
  "contentElement"
34365
34410
  ],
34366
34411
  [
34367
- _dec514,
34412
+ _dec515,
34368
34413
  1,
34369
34414
  "bodyElement"
34370
34415
  ],
@@ -35806,7 +35851,7 @@ function applyDecs2203RFactory54() {
35806
35851
  function _apply_decs_2203_r54(targetClass, memberDecs, classDecs, parentClass) {
35807
35852
  return (_apply_decs_2203_r54 = applyDecs2203RFactory54())(targetClass, memberDecs, classDecs, parentClass);
35808
35853
  }
35809
- var _dec149, _initClass54, _HTMLElement54, _dec150, _dec228, _dec324, _dec419, _dec515, _dec614, _init_checked2, _init_name8, _init_value9, _init_disabled9, _init_control5, _initProto31, _RadioInput, RadioInput;
35854
+ var _dec149, _initClass54, _HTMLElement54, _dec150, _dec228, _dec324, _dec419, _dec516, _dec614, _init_checked2, _init_name9, _init_value9, _init_disabled9, _init_control5, _initProto31, _RadioInput, RadioInput;
35810
35855
  var init_input2 = __esm({
35811
35856
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/radio/input.ts"() {
35812
35857
  "use strict";
@@ -36077,12 +36122,12 @@ var init_input2 = __esm({
36077
36122
  }), _dec419 = Prop({
36078
36123
  type: Boolean,
36079
36124
  reflect: true
36080
- }), _dec515 = Query("button"), _dec614 = Listen("click", {
36125
+ }), _dec516 = Query("button"), _dec614 = Listen("click", {
36081
36126
  selector: "button"
36082
36127
  });
36083
36128
  RadioInput = class extends (_HTMLElement54 = HTMLElement) {
36084
36129
  static {
36085
- ({ e: [_init_checked2, _init_name8, _init_value9, _init_disabled9, _init_control5, _initProto31], c: [_RadioInput, _initClass54] } = _apply_decs_2203_r54(this, [
36130
+ ({ e: [_init_checked2, _init_name9, _init_value9, _init_disabled9, _init_control5, _initProto31], c: [_RadioInput, _initClass54] } = _apply_decs_2203_r54(this, [
36086
36131
  [
36087
36132
  _dec150,
36088
36133
  1,
@@ -36104,7 +36149,7 @@ var init_input2 = __esm({
36104
36149
  "disabled"
36105
36150
  ],
36106
36151
  [
36107
- _dec515,
36152
+ _dec516,
36108
36153
  1,
36109
36154
  "control"
36110
36155
  ],
@@ -36197,16 +36242,22 @@ var init_input2 = __esm({
36197
36242
  return;
36198
36243
  }
36199
36244
  this.checked = true;
36200
- dispatchControlEvent2(this, "radio", {
36245
+ const groupName = this.closest("ease-radio-group")?.getAttribute("name") ?? void 0;
36246
+ const name = this.getAttribute("name") ?? groupName ?? void 0;
36247
+ const detail = {
36248
+ name,
36201
36249
  value: this.checked,
36202
36250
  event
36203
- });
36251
+ };
36252
+ dispatchControlEvent2(this, "radio", detail);
36253
+ dispatchControlEvent2(this, "change", detail);
36254
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36204
36255
  }
36205
36256
  static {
36206
36257
  _initClass54();
36207
36258
  }
36208
36259
  constructor(...args) {
36209
- super(...args), this.#___private_checked_1 = (_initProto31(this), _init_checked2(this)), this.#___private_name_2 = _init_name8(this), this.#___private_value_3 = _init_value9(this), this.#___private_disabled_4 = _init_disabled9(this), this.#___private_control_5 = _init_control5(this), this._firstRender = true, this.filterId = `goo-${crypto.randomUUID()}`;
36260
+ super(...args), this.#___private_checked_1 = (_initProto31(this), _init_checked2(this)), this.#___private_name_2 = _init_name9(this), this.#___private_value_3 = _init_value9(this), this.#___private_disabled_4 = _init_disabled9(this), this.#___private_control_5 = _init_control5(this), this._firstRender = true, this.filterId = `goo-${crypto.randomUUID()}`;
36210
36261
  }
36211
36262
  };
36212
36263
  }
@@ -36590,7 +36641,7 @@ function applyDecs2203RFactory55() {
36590
36641
  function _apply_decs_2203_r55(targetClass, memberDecs, classDecs, parentClass) {
36591
36642
  return (_apply_decs_2203_r55 = applyDecs2203RFactory55())(targetClass, memberDecs, classDecs, parentClass);
36592
36643
  }
36593
- var _dec151, _initClass55, _HTMLElement55, _dec154, _dec229, _dec325, _dec420, _dec516, _dec615, _dec712, _dec811, _dec911, _dec1010, _dec1112, _init_value10, _init_min2, _init_max2, _init_step2, _init_disabled10, _init_control6, _init_valueControl, _initProto32, _Slider, Slider;
36644
+ var _dec151, _initClass55, _HTMLElement55, _dec154, _dec229, _dec325, _dec420, _dec517, _dec615, _dec712, _dec811, _dec911, _dec1010, _dec1112, _init_value10, _init_min2, _init_max2, _init_step2, _init_disabled10, _init_control6, _init_valueControl, _initProto32, _Slider, Slider;
36594
36645
  var init_slider = __esm({
36595
36646
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/slider/index.ts"() {
36596
36647
  "use strict";
@@ -36711,11 +36762,15 @@ var init_slider = __esm({
36711
36762
  .step=${this.step ?? 1}
36712
36763
  .value=${String(this.value ?? 0)}
36713
36764
  ?disabled=${this.disabled}
36765
+ @input=${this.handleRangeInput}
36766
+ @change=${this.handleRangeChange}
36714
36767
  ?aria-disabled=${this.disabled}
36715
36768
  />
36716
36769
 
36717
36770
  <ease-input
36718
36771
  part="value"
36772
+ @input=${this.handleValueInput}
36773
+ @change=${this.handleValueChange}
36719
36774
  type="number"
36720
36775
  placeholder="-"
36721
36776
  .disabled=${Boolean(this.disabled)}
@@ -36736,7 +36791,7 @@ var init_slider = __esm({
36736
36791
  }), _dec420 = Prop({
36737
36792
  type: Number,
36738
36793
  reflect: true
36739
- }), _dec516 = Prop({
36794
+ }), _dec517 = Prop({
36740
36795
  type: Boolean,
36741
36796
  reflect: true
36742
36797
  }), _dec615 = Query("input"), _dec712 = Query("ease-input"), _dec811 = Listen("input", {
@@ -36774,7 +36829,7 @@ var init_slider = __esm({
36774
36829
  "step"
36775
36830
  ],
36776
36831
  [
36777
- _dec516,
36832
+ _dec517,
36778
36833
  1,
36779
36834
  "disabled"
36780
36835
  ],
@@ -36887,10 +36942,13 @@ var init_slider = __esm({
36887
36942
  if (this.valueControl) {
36888
36943
  this.valueControl.value = numericValue === null ? "" : String(numericValue);
36889
36944
  }
36890
- dispatchControlEvent2(this, "input", {
36945
+ const name = this.getAttribute("name") ?? void 0;
36946
+ const detail = {
36947
+ name,
36891
36948
  value: this.value,
36892
36949
  event
36893
- });
36950
+ };
36951
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36894
36952
  }
36895
36953
  handleRangeChange(event, target) {
36896
36954
  if (target) {
@@ -36901,10 +36959,13 @@ var init_slider = __esm({
36901
36959
  this.valueControl.value = numericValue === null ? "" : String(numericValue);
36902
36960
  }
36903
36961
  }
36904
- dispatchControlEvent2(this, "change", {
36962
+ const name = this.getAttribute("name") ?? void 0;
36963
+ const detail = {
36964
+ name,
36905
36965
  value: this.value,
36906
36966
  event
36907
- });
36967
+ };
36968
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36908
36969
  }
36909
36970
  handleValueInput(event) {
36910
36971
  const rawValue = event.detail?.value ?? "";
@@ -36914,10 +36975,15 @@ var init_slider = __esm({
36914
36975
  if (this.control) {
36915
36976
  this.control.value = String(numericValue ?? 0);
36916
36977
  }
36917
- dispatchControlEvent2(this, "input", {
36978
+ const name = this.getAttribute("name") ?? void 0;
36979
+ const controlEvent = event.detail?.event ?? event;
36980
+ const detail = {
36981
+ name,
36918
36982
  value: this.value,
36919
- event: event.detail?.event ?? event
36920
- });
36983
+ event: controlEvent
36984
+ };
36985
+ dispatchControlEvent2(this, "input", detail);
36986
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36921
36987
  }
36922
36988
  handleValueChange(event) {
36923
36989
  const rawValue = event.detail?.value ?? "";
@@ -36927,10 +36993,15 @@ var init_slider = __esm({
36927
36993
  if (this.control) {
36928
36994
  this.control.value = String(numericValue ?? 0);
36929
36995
  }
36930
- dispatchControlEvent2(this, "change", {
36996
+ const name = this.getAttribute("name") ?? void 0;
36997
+ const controlEvent = event.detail?.event ?? event;
36998
+ const detail = {
36999
+ name,
36931
37000
  value: this.value,
36932
- event: event.detail?.event ?? event
36933
- });
37001
+ event: controlEvent
37002
+ };
37003
+ dispatchControlEvent2(this, "change", detail);
37004
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36934
37005
  }
36935
37006
  updateProgress() {
36936
37007
  if (!this.control) {
@@ -37330,7 +37401,7 @@ function applyDecs2203RFactory56() {
37330
37401
  function _apply_decs_2203_r56(targetClass, memberDecs, classDecs, parentClass) {
37331
37402
  return (_apply_decs_2203_r56 = applyDecs2203RFactory56())(targetClass, memberDecs, classDecs, parentClass);
37332
37403
  }
37333
- var _dec155, _initClass56, _HTMLElement56, _dec156, _dec230, _dec326, _dec421, _dec517, _init_value11, _init_defaultSlot, _initProto33, readControlValue2, getControlName, _State, State;
37404
+ var _dec155, _initClass56, _HTMLElement56, _dec156, _dec230, _dec326, _dec421, _dec518, _init_value11, _init_defaultSlot, _initProto33, readControlValue2, getControlName, _State, State;
37334
37405
  var init_state = __esm({
37335
37406
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/state/index.ts"() {
37336
37407
  "use strict";
@@ -37381,7 +37452,7 @@ var init_state = __esm({
37381
37452
  target: (host) => host
37382
37453
  }), _dec421 = Listen("change", {
37383
37454
  target: (host) => host
37384
- }), _dec517 = Listen(CONTROL_CHANGE_EVENT, {
37455
+ }), _dec518 = Listen(CONTROL_CHANGE_EVENT, {
37385
37456
  target: (host) => host
37386
37457
  });
37387
37458
  State = class extends (_HTMLElement56 = HTMLElement) {
@@ -37408,7 +37479,7 @@ var init_state = __esm({
37408
37479
  "handleInternalChange"
37409
37480
  ],
37410
37481
  [
37411
- _dec517,
37482
+ _dec518,
37412
37483
  2,
37413
37484
  "handleControlChange"
37414
37485
  ]
@@ -38196,10 +38267,15 @@ var init_toggle = __esm({
38196
38267
  return;
38197
38268
  }
38198
38269
  this.checked = !this.checked;
38199
- dispatchControlEvent2(this, "toggle", {
38270
+ const name = this.getAttribute("name") ?? void 0;
38271
+ const detail = {
38272
+ name,
38200
38273
  value: this.checked,
38201
38274
  event
38202
- });
38275
+ };
38276
+ dispatchControlEvent2(this, "toggle", detail);
38277
+ dispatchControlEvent2(this, "change", detail);
38278
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
38203
38279
  }
38204
38280
  static {
38205
38281
  _initClass57();
@@ -38589,7 +38665,7 @@ function applyDecs2203RFactory58() {
38589
38665
  function _apply_decs_2203_r58(targetClass, memberDecs, classDecs, parentClass) {
38590
38666
  return (_apply_decs_2203_r58 = applyDecs2203RFactory58())(targetClass, memberDecs, classDecs, parentClass);
38591
38667
  }
38592
- var _dec159, _initClass58, _HTMLElement58, _dec160, _dec232, _dec328, _dec423, _dec518, _dec616, _init_open5, _init_delay2, _init_placement5, _init_triggerElement2, _init_contentElement4, _initProto35, _Tooltip2, Tooltip2;
38668
+ var _dec159, _initClass58, _HTMLElement58, _dec160, _dec232, _dec328, _dec423, _dec519, _dec616, _init_open5, _init_delay2, _init_placement5, _init_triggerElement2, _init_contentElement4, _initProto35, _Tooltip2, Tooltip2;
38593
38669
  var init_tooltip2 = __esm({
38594
38670
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/tooltip/index.ts"() {
38595
38671
  "use strict";
@@ -38641,7 +38717,7 @@ var init_tooltip2 = __esm({
38641
38717
  }), _dec328 = Prop({
38642
38718
  reflect: true,
38643
38719
  defaultValue: "top-center"
38644
- }), _dec423 = Query('[slot="trigger"]'), _dec518 = Query("[data-tooltip-content]"), _dec616 = OutsideClick({
38720
+ }), _dec423 = Query('[slot="trigger"]'), _dec519 = Query("[data-tooltip-content]"), _dec616 = OutsideClick({
38645
38721
  content: (host) => host.contentElement,
38646
38722
  triggers: (host) => [
38647
38723
  host.triggerElement
@@ -38672,7 +38748,7 @@ var init_tooltip2 = __esm({
38672
38748
  "triggerElement"
38673
38749
  ],
38674
38750
  [
38675
- _dec518,
38751
+ _dec519,
38676
38752
  1,
38677
38753
  "contentElement"
38678
38754
  ],
@@ -40647,7 +40723,7 @@ _dec78 = Component({
40647
40723
  [part="content"] {
40648
40724
  height: 0;
40649
40725
  overflow: hidden;
40650
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
40726
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1) !important;
40651
40727
  }
40652
40728
 
40653
40729
  :host([open]) [part="content"] {