@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.cjs CHANGED
@@ -2569,6 +2569,21 @@ var init_Listen = __esm({
2569
2569
  }
2570
2570
  });
2571
2571
 
2572
+ // src/elements/shared.ts
2573
+ var dispatchControlEvent;
2574
+ var init_shared = __esm({
2575
+ "src/elements/shared.ts"() {
2576
+ "use strict";
2577
+ dispatchControlEvent = (host, type, detail) => {
2578
+ host.dispatchEvent(new CustomEvent(type, {
2579
+ detail,
2580
+ bubbles: true,
2581
+ composed: true
2582
+ }));
2583
+ };
2584
+ }
2585
+ });
2586
+
2572
2587
  // swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/components/curve/constants.ts
2573
2588
  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;
2574
2589
  var init_constants = __esm({
@@ -2820,21 +2835,6 @@ var init_svg_renderer = __esm({
2820
2835
  }
2821
2836
  });
2822
2837
 
2823
- // src/elements/shared.ts
2824
- var dispatchControlEvent;
2825
- var init_shared = __esm({
2826
- "src/elements/shared.ts"() {
2827
- "use strict";
2828
- dispatchControlEvent = (host, type, detail) => {
2829
- host.dispatchEvent(new CustomEvent(type, {
2830
- detail,
2831
- bubbles: true,
2832
- composed: true
2833
- }));
2834
- };
2835
- }
2836
- });
2837
-
2838
2838
  // swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/components/curve/canvas.ts
2839
2839
  function applyDecs2203RFactory2() {
2840
2840
  function createAddInitializerMethod(initializers, decoratorFinishedRef) {
@@ -4212,6 +4212,7 @@ var init_canvas = __esm({
4212
4212
  }, this.#emitPoints = (value, event) => {
4213
4213
  const target = this.#getEventTarget();
4214
4214
  const detail = {
4215
+ name: target.name,
4215
4216
  value,
4216
4217
  event
4217
4218
  };
@@ -4222,6 +4223,7 @@ var init_canvas = __esm({
4222
4223
  }
4223
4224
  const target = this.#getEventTarget();
4224
4225
  const detail = {
4226
+ name: target.name,
4225
4227
  value: index,
4226
4228
  event
4227
4229
  };
@@ -5159,6 +5161,7 @@ var init_canvas_controls = __esm({
5159
5161
  }, this.#notifyHost = (type, value, event) => {
5160
5162
  const target = this.#getEventTarget();
5161
5163
  const detail = {
5164
+ name: target.name,
5162
5165
  value,
5163
5166
  event
5164
5167
  };
@@ -8193,6 +8196,7 @@ var init_controls = __esm({
8193
8196
  }, this.#notifyHost = (type, value, event) => {
8194
8197
  const target = this.#getEventTarget();
8195
8198
  const detail = {
8199
+ name: target.name,
8196
8200
  value,
8197
8201
  event
8198
8202
  };
@@ -11500,6 +11504,7 @@ var init_toolbar = __esm({
11500
11504
  }, this.#notifyHost = (type, value, event) => {
11501
11505
  const target = this.#getEventTarget();
11502
11506
  const detail = {
11507
+ name: target.name,
11503
11508
  value,
11504
11509
  event
11505
11510
  };
@@ -12084,6 +12089,7 @@ var init_curve = __esm({
12084
12089
  init_Component();
12085
12090
  init_Listen();
12086
12091
  init_Prop();
12092
+ init_shared();
12087
12093
  init_canvas();
12088
12094
  init_canvas_controls();
12089
12095
  init_controls();
@@ -12590,14 +12596,11 @@ var init_curve = __esm({
12590
12596
  }
12591
12597
  emitPointsChange(value, sourceEvent) {
12592
12598
  const detail = {
12599
+ name: this.name,
12593
12600
  value,
12594
12601
  event: sourceEvent ?? new Event("points-change")
12595
12602
  };
12596
- this.dispatchEvent(new CustomEvent("points-change", {
12597
- detail,
12598
- bubbles: true,
12599
- composed: true
12600
- }));
12603
+ dispatchControlEvent(this, "points-change", detail);
12601
12604
  }
12602
12605
  static {
12603
12606
  _initClass13();
@@ -14094,10 +14097,15 @@ var init_checkbox = __esm({
14094
14097
  return;
14095
14098
  }
14096
14099
  this.checked = !this.checked;
14097
- dispatchControlEvent2(this, "checkbox", {
14100
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
14101
+ const detail = {
14102
+ name,
14098
14103
  value: this.checked,
14099
14104
  event
14100
- });
14105
+ };
14106
+ dispatchControlEvent2(this, "checkbox", detail);
14107
+ dispatchControlEvent2(this, "change", detail);
14108
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
14101
14109
  }
14102
14110
  static {
14103
14111
  _initClass15();
@@ -15655,6 +15663,7 @@ var init_dropdown = __esm({
15655
15663
  }
15656
15664
  }
15657
15665
  dispatchControlEvent2(this, "toggle", {
15666
+ name: this.name ?? void 0,
15658
15667
  value: next,
15659
15668
  event: origin
15660
15669
  });
@@ -15918,6 +15927,7 @@ var init_dropdown = __esm({
15918
15927
  }
15919
15928
  #dispatchValueChange(value, label, event) {
15920
15929
  dispatchControlEvent2(this, "change", {
15930
+ name: this.name ?? void 0,
15921
15931
  value,
15922
15932
  event
15923
15933
  });
@@ -16793,20 +16803,28 @@ var init_input = __esm({
16793
16803
  return;
16794
16804
  }
16795
16805
  this.value = target.value;
16796
- dispatchControlEvent2(this, "input", {
16806
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
16807
+ const detail = {
16808
+ name,
16797
16809
  value: this.value ?? "",
16798
16810
  event
16799
- });
16811
+ };
16812
+ dispatchControlEvent2(this, "input", detail);
16813
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
16800
16814
  }
16801
16815
  handleChange(event, target) {
16802
16816
  if (!target) {
16803
16817
  return;
16804
16818
  }
16805
16819
  this.value = target.value;
16806
- dispatchControlEvent2(this, "change", {
16820
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
16821
+ const detail = {
16822
+ name,
16807
16823
  value: this.value ?? "",
16808
16824
  event
16809
- });
16825
+ };
16826
+ dispatchControlEvent2(this, "change", detail);
16827
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
16810
16828
  }
16811
16829
  static {
16812
16830
  _initClass18();
@@ -19338,7 +19356,7 @@ function applyDecs2203RFactory22() {
19338
19356
  function _apply_decs_2203_r22(targetClass, memberDecs, classDecs, parentClass) {
19339
19357
  return (_apply_decs_2203_r22 = applyDecs2203RFactory22())(targetClass, memberDecs, classDecs, parentClass);
19340
19358
  }
19341
- var import_lit_html26, _dec76, _initClass22, _HTMLElement22, _dec125, _dec218, _dec316, _dec414, _init_dropdown, _init_value5, _init_disabled6, _init_placement4, _initProto18, _ColorInput, ColorInput;
19359
+ var import_lit_html26, _dec76, _initClass22, _HTMLElement22, _dec125, _dec218, _dec316, _dec414, _dec512, _init_dropdown, _init_value5, _init_disabled6, _init_name6, _init_placement4, _initProto18, _ColorInput, ColorInput;
19342
19360
  var init_color = __esm({
19343
19361
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/color/index.ts"() {
19344
19362
  "use strict";
@@ -19423,12 +19441,15 @@ var init_color = __esm({
19423
19441
  type: Boolean,
19424
19442
  reflect: true
19425
19443
  }), _dec414 = Prop({
19444
+ reflect: true,
19445
+ defaultValue: null
19446
+ }), _dec512 = Prop({
19426
19447
  reflect: true,
19427
19448
  defaultValue: "bottom-start"
19428
19449
  });
19429
19450
  ColorInput = class extends (_HTMLElement22 = HTMLElement) {
19430
19451
  static {
19431
- ({ e: [_init_dropdown, _init_value5, _init_disabled6, _init_placement4, _initProto18], c: [_ColorInput, _initClass22] } = _apply_decs_2203_r22(this, [
19452
+ ({ e: [_init_dropdown, _init_value5, _init_disabled6, _init_name6, _init_placement4, _initProto18], c: [_ColorInput, _initClass22] } = _apply_decs_2203_r22(this, [
19432
19453
  [
19433
19454
  _dec125,
19434
19455
  1,
@@ -19447,6 +19468,11 @@ var init_color = __esm({
19447
19468
  [
19448
19469
  _dec414,
19449
19470
  1,
19471
+ "name"
19472
+ ],
19473
+ [
19474
+ _dec512,
19475
+ 1,
19450
19476
  "placement"
19451
19477
  ]
19452
19478
  ], [
@@ -19475,12 +19501,19 @@ var init_color = __esm({
19475
19501
  set disabled(_v) {
19476
19502
  this.#___private_disabled_3 = _v;
19477
19503
  }
19478
- #___private_placement_4;
19504
+ #___private_name_4;
19505
+ get name() {
19506
+ return this.#___private_name_4;
19507
+ }
19508
+ set name(_v) {
19509
+ this.#___private_name_4 = _v;
19510
+ }
19511
+ #___private_placement_5;
19479
19512
  get placement() {
19480
- return this.#___private_placement_4;
19513
+ return this.#___private_placement_5;
19481
19514
  }
19482
19515
  set placement(_v) {
19483
- this.#___private_placement_4 = _v;
19516
+ this.#___private_placement_5 = _v;
19484
19517
  }
19485
19518
  connectedCallback() {
19486
19519
  this.#hasCustomTrigger = this.querySelector('[slot="trigger"]') !== null;
@@ -19525,21 +19558,24 @@ var init_color = __esm({
19525
19558
  _initClass22();
19526
19559
  }
19527
19560
  constructor(...args) {
19528
- 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) => {
19561
+ 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) => {
19529
19562
  this.value = event.target.value;
19530
19563
  dispatchControlEvent2(this, "input", {
19564
+ name: this.name ?? void 0,
19531
19565
  value: this.value,
19532
19566
  event
19533
19567
  });
19534
19568
  }, this.#handlePickerInput = (event) => {
19535
19569
  this.value = event.detail.value;
19536
19570
  dispatchControlEvent2(this, "input", {
19571
+ name: this.name ?? void 0,
19537
19572
  value: this.value,
19538
19573
  event
19539
19574
  });
19540
19575
  }, this.#handlePickerChange = (event) => {
19541
19576
  this.value = event.detail.value;
19542
19577
  dispatchControlEvent2(this, "change", {
19578
+ name: this.name ?? void 0,
19543
19579
  value: this.value,
19544
19580
  event
19545
19581
  });
@@ -19552,6 +19588,7 @@ var init_color = __esm({
19552
19588
  }, this.#handlePickerApply = (event) => {
19553
19589
  this.value = event.detail.value;
19554
19590
  dispatchControlEvent2(this, "change", {
19591
+ name: this.name ?? void 0,
19555
19592
  value: this.value,
19556
19593
  event
19557
19594
  });
@@ -32797,7 +32834,7 @@ function applyDecs2203RFactory50() {
32797
32834
  function _apply_decs_2203_r50(targetClass, memberDecs, classDecs, parentClass) {
32798
32835
  return (_apply_decs_2203_r50 = applyDecs2203RFactory50())(targetClass, memberDecs, classDecs, parentClass);
32799
32836
  }
32800
- var import_lit_html54, _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;
32837
+ var import_lit_html54, _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;
32801
32838
  var init_number = __esm({
32802
32839
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/number/index.ts"() {
32803
32840
  "use strict";
@@ -32904,7 +32941,7 @@ var init_number = __esm({
32904
32941
  }), _dec416 = Prop({
32905
32942
  type: Number,
32906
32943
  reflect: true
32907
- }), _dec512 = Prop({
32944
+ }), _dec513 = Prop({
32908
32945
  reflect: true
32909
32946
  }), _dec612 = Prop({
32910
32947
  type: Boolean,
@@ -32916,7 +32953,7 @@ var init_number = __esm({
32916
32953
  });
32917
32954
  NumberInput = class extends (_HTMLElement50 = HTMLElement) {
32918
32955
  static {
32919
- ({ e: [_init_value6, _init_min, _init_max, _init_step, _init_name6, _init_disabled7, _init_control3, _initProto27], c: [_NumberInput, _initClass50] } = _apply_decs_2203_r50(this, [
32956
+ ({ e: [_init_value6, _init_min, _init_max, _init_step, _init_name7, _init_disabled7, _init_control3, _initProto27], c: [_NumberInput, _initClass50] } = _apply_decs_2203_r50(this, [
32920
32957
  [
32921
32958
  _dec140,
32922
32959
  1,
@@ -32938,7 +32975,7 @@ var init_number = __esm({
32938
32975
  "step"
32939
32976
  ],
32940
32977
  [
32941
- _dec512,
32978
+ _dec513,
32942
32979
  1,
32943
32980
  "name"
32944
32981
  ],
@@ -33033,20 +33070,28 @@ var init_number = __esm({
33033
33070
  return;
33034
33071
  }
33035
33072
  this.value = coerceNumber(target.value);
33036
- dispatchControlEvent2(this, "input", {
33073
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
33074
+ const detail = {
33075
+ name,
33037
33076
  value: this.value,
33038
33077
  event
33039
- });
33078
+ };
33079
+ dispatchControlEvent2(this, "input", detail);
33080
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
33040
33081
  }
33041
33082
  handleChange(event, target) {
33042
33083
  if (!target) {
33043
33084
  return;
33044
33085
  }
33045
33086
  this.value = coerceNumber(target.value);
33046
- dispatchControlEvent2(this, "change", {
33087
+ const name = this.name ?? this.getAttribute("name") ?? void 0;
33088
+ const detail = {
33089
+ name,
33047
33090
  value: this.value,
33048
33091
  event
33049
- });
33092
+ };
33093
+ dispatchControlEvent2(this, "change", detail);
33094
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
33050
33095
  }
33051
33096
  addActiveLayer(button) {
33052
33097
  const layer = document.createElement("div");
@@ -33084,7 +33129,7 @@ var init_number = __esm({
33084
33129
  _initClass50();
33085
33130
  }
33086
33131
  constructor(...args) {
33087
- 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);
33132
+ 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);
33088
33133
  }
33089
33134
  };
33090
33135
  }
@@ -33467,7 +33512,7 @@ function applyDecs2203RFactory51() {
33467
33512
  function _apply_decs_2203_r51(targetClass, memberDecs, classDecs, parentClass) {
33468
33513
  return (_apply_decs_2203_r51 = applyDecs2203RFactory51())(targetClass, memberDecs, classDecs, parentClass);
33469
33514
  }
33470
- var import_lit_html55, _dec141, _initClass51, _HTMLElement51, _dec144, _dec225, _dec321, _dec417, _dec513, _init_value7, _init_disabled8, _init_control4, _init_name7, _initProto28, _Origin, Origin;
33515
+ var import_lit_html55, _dec141, _initClass51, _HTMLElement51, _dec144, _dec225, _dec321, _dec417, _dec514, _init_value7, _init_disabled8, _init_control4, _init_name8, _initProto28, _Origin, Origin;
33471
33516
  var init_origin = __esm({
33472
33517
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/origin/index.ts"() {
33473
33518
  "use strict";
@@ -33619,12 +33664,12 @@ var init_origin = __esm({
33619
33664
  }), _dec321 = Query("ease-dropdown"), _dec417 = Prop({
33620
33665
  reflect: true,
33621
33666
  defaultValue: ""
33622
- }), _dec513 = Listen("change", {
33667
+ }), _dec514 = Listen("change", {
33623
33668
  selector: "ease-dropdown"
33624
33669
  });
33625
33670
  Origin = class extends (_HTMLElement51 = HTMLElement) {
33626
33671
  static {
33627
- ({ e: [_init_value7, _init_disabled8, _init_control4, _init_name7, _initProto28], c: [_Origin, _initClass51] } = _apply_decs_2203_r51(this, [
33672
+ ({ e: [_init_value7, _init_disabled8, _init_control4, _init_name8, _initProto28], c: [_Origin, _initClass51] } = _apply_decs_2203_r51(this, [
33628
33673
  [
33629
33674
  _dec144,
33630
33675
  1,
@@ -33646,7 +33691,7 @@ var init_origin = __esm({
33646
33691
  "name"
33647
33692
  ],
33648
33693
  [
33649
- _dec513,
33694
+ _dec514,
33650
33695
  2,
33651
33696
  "handleChange"
33652
33697
  ]
@@ -33699,7 +33744,7 @@ var init_origin = __esm({
33699
33744
  _initClass51();
33700
33745
  }
33701
33746
  constructor(...args) {
33702
- 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) => {
33747
+ 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) => {
33703
33748
  this.value = String(this.control?.value ?? "center-center");
33704
33749
  dispatchControlEvent2(this, "change", {
33705
33750
  value: this.value,
@@ -34088,7 +34133,7 @@ function applyDecs2203RFactory52() {
34088
34133
  function _apply_decs_2203_r52(targetClass, memberDecs, classDecs, parentClass) {
34089
34134
  return (_apply_decs_2203_r52 = applyDecs2203RFactory52())(targetClass, memberDecs, classDecs, parentClass);
34090
34135
  }
34091
- var import_lit_html56, _dec145, _initClass52, _HTMLElement52, _dec146, _dec226, _dec322, _dec418, _dec514, _dec613, _dec711, _init_activeTab, _init_headline2, _init_maxHeight3, _init_contentElement3, _init_bodyElement, _initProto29, _Panel, Panel;
34136
+ var import_lit_html56, _dec145, _initClass52, _HTMLElement52, _dec146, _dec226, _dec322, _dec418, _dec515, _dec613, _dec711, _init_activeTab, _init_headline2, _init_maxHeight3, _init_contentElement3, _init_bodyElement, _initProto29, _Panel, Panel;
34092
34137
  var init_panel = __esm({
34093
34138
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/panel/index.ts"() {
34094
34139
  "use strict";
@@ -34163,7 +34208,6 @@ var init_panel = __esm({
34163
34208
  align-items: center;
34164
34209
  gap: 2px;
34165
34210
  flex-grow: 1;
34166
- margin: 0 0 0 4px;
34167
34211
  }
34168
34212
 
34169
34213
  [part="tabs"]:empty {
@@ -34172,17 +34216,18 @@ var init_panel = __esm({
34172
34216
 
34173
34217
  [part="tab"] {
34174
34218
  appearance: none;
34219
+ border-radius: var(--ease-panel-tab-radius, var(--radii-md));
34220
+ background-color: var(--ease-panel-tab-background, transparent);
34221
+ box-sizing: border-box;
34222
+ padding: var(--ease-panel-tab-padding, 4px 8px);
34175
34223
  font-size: var(--ease-panel-tab-font-size);
34176
34224
  font-weight: var(--ease-panel-tab-font-weight);
34177
34225
  line-height: 24px;
34178
34226
  font-family: var(--ease-font-family);
34179
34227
  color: var(--ease-panel-tab-color);
34180
- background-color: transparent;
34181
34228
  border: none;
34182
- padding: 4px 8px;
34183
34229
  margin: 0;
34184
34230
  cursor: pointer;
34185
- border-radius: var(--ease-panel-tab-radius);
34186
34231
  transition: color 200ms, background-color 200ms;
34187
34232
  transition-timing-function: cubic-bezier(.25, 0, .5, 1);
34188
34233
  }
@@ -34348,7 +34393,7 @@ var init_panel = __esm({
34348
34393
  reflect: true,
34349
34394
  attribute: "max-height",
34350
34395
  defaultValue: null
34351
- }), _dec418 = Query('[part="content"]'), _dec514 = Query('[part="body"]'), _dec613 = Listen("slotchange", {
34396
+ }), _dec418 = Query('[part="content"]'), _dec515 = Query('[part="body"]'), _dec613 = Listen("slotchange", {
34352
34397
  selector: 'slot[name="footer"]'
34353
34398
  }), _dec711 = Listen("slotchange", {
34354
34399
  selector: "slot:not([name])"
@@ -34377,7 +34422,7 @@ var init_panel = __esm({
34377
34422
  "contentElement"
34378
34423
  ],
34379
34424
  [
34380
- _dec514,
34425
+ _dec515,
34381
34426
  1,
34382
34427
  "bodyElement"
34383
34428
  ],
@@ -35818,7 +35863,7 @@ function applyDecs2203RFactory54() {
35818
35863
  function _apply_decs_2203_r54(targetClass, memberDecs, classDecs, parentClass) {
35819
35864
  return (_apply_decs_2203_r54 = applyDecs2203RFactory54())(targetClass, memberDecs, classDecs, parentClass);
35820
35865
  }
35821
- var import_lit_html58, _dec149, _initClass54, _HTMLElement54, _dec150, _dec228, _dec324, _dec419, _dec515, _dec614, _init_checked2, _init_name8, _init_value9, _init_disabled9, _init_control5, _initProto31, _RadioInput, RadioInput;
35866
+ var import_lit_html58, _dec149, _initClass54, _HTMLElement54, _dec150, _dec228, _dec324, _dec419, _dec516, _dec614, _init_checked2, _init_name9, _init_value9, _init_disabled9, _init_control5, _initProto31, _RadioInput, RadioInput;
35822
35867
  var init_input2 = __esm({
35823
35868
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/radio/input.ts"() {
35824
35869
  "use strict";
@@ -36090,12 +36135,12 @@ var init_input2 = __esm({
36090
36135
  }), _dec419 = Prop({
36091
36136
  type: Boolean,
36092
36137
  reflect: true
36093
- }), _dec515 = Query("button"), _dec614 = Listen("click", {
36138
+ }), _dec516 = Query("button"), _dec614 = Listen("click", {
36094
36139
  selector: "button"
36095
36140
  });
36096
36141
  RadioInput = class extends (_HTMLElement54 = HTMLElement) {
36097
36142
  static {
36098
- ({ e: [_init_checked2, _init_name8, _init_value9, _init_disabled9, _init_control5, _initProto31], c: [_RadioInput, _initClass54] } = _apply_decs_2203_r54(this, [
36143
+ ({ e: [_init_checked2, _init_name9, _init_value9, _init_disabled9, _init_control5, _initProto31], c: [_RadioInput, _initClass54] } = _apply_decs_2203_r54(this, [
36099
36144
  [
36100
36145
  _dec150,
36101
36146
  1,
@@ -36117,7 +36162,7 @@ var init_input2 = __esm({
36117
36162
  "disabled"
36118
36163
  ],
36119
36164
  [
36120
- _dec515,
36165
+ _dec516,
36121
36166
  1,
36122
36167
  "control"
36123
36168
  ],
@@ -36210,16 +36255,22 @@ var init_input2 = __esm({
36210
36255
  return;
36211
36256
  }
36212
36257
  this.checked = true;
36213
- dispatchControlEvent2(this, "radio", {
36258
+ const groupName = this.closest("ease-radio-group")?.getAttribute("name") ?? void 0;
36259
+ const name = this.getAttribute("name") ?? groupName ?? void 0;
36260
+ const detail = {
36261
+ name,
36214
36262
  value: this.checked,
36215
36263
  event
36216
- });
36264
+ };
36265
+ dispatchControlEvent2(this, "radio", detail);
36266
+ dispatchControlEvent2(this, "change", detail);
36267
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36217
36268
  }
36218
36269
  static {
36219
36270
  _initClass54();
36220
36271
  }
36221
36272
  constructor(...args) {
36222
- 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()}`;
36273
+ 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()}`;
36223
36274
  }
36224
36275
  };
36225
36276
  }
@@ -36602,7 +36653,7 @@ function applyDecs2203RFactory55() {
36602
36653
  function _apply_decs_2203_r55(targetClass, memberDecs, classDecs, parentClass) {
36603
36654
  return (_apply_decs_2203_r55 = applyDecs2203RFactory55())(targetClass, memberDecs, classDecs, parentClass);
36604
36655
  }
36605
- var import_lit_html59, _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;
36656
+ var import_lit_html59, _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;
36606
36657
  var init_slider = __esm({
36607
36658
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/slider/index.ts"() {
36608
36659
  "use strict";
@@ -36724,11 +36775,15 @@ var init_slider = __esm({
36724
36775
  .step=${this.step ?? 1}
36725
36776
  .value=${String(this.value ?? 0)}
36726
36777
  ?disabled=${this.disabled}
36778
+ @input=${this.handleRangeInput}
36779
+ @change=${this.handleRangeChange}
36727
36780
  ?aria-disabled=${this.disabled}
36728
36781
  />
36729
36782
 
36730
36783
  <ease-input
36731
36784
  part="value"
36785
+ @input=${this.handleValueInput}
36786
+ @change=${this.handleValueChange}
36732
36787
  type="number"
36733
36788
  placeholder="-"
36734
36789
  .disabled=${Boolean(this.disabled)}
@@ -36749,7 +36804,7 @@ var init_slider = __esm({
36749
36804
  }), _dec420 = Prop({
36750
36805
  type: Number,
36751
36806
  reflect: true
36752
- }), _dec516 = Prop({
36807
+ }), _dec517 = Prop({
36753
36808
  type: Boolean,
36754
36809
  reflect: true
36755
36810
  }), _dec615 = Query("input"), _dec712 = Query("ease-input"), _dec811 = Listen("input", {
@@ -36787,7 +36842,7 @@ var init_slider = __esm({
36787
36842
  "step"
36788
36843
  ],
36789
36844
  [
36790
- _dec516,
36845
+ _dec517,
36791
36846
  1,
36792
36847
  "disabled"
36793
36848
  ],
@@ -36900,10 +36955,13 @@ var init_slider = __esm({
36900
36955
  if (this.valueControl) {
36901
36956
  this.valueControl.value = numericValue === null ? "" : String(numericValue);
36902
36957
  }
36903
- dispatchControlEvent2(this, "input", {
36958
+ const name = this.getAttribute("name") ?? void 0;
36959
+ const detail = {
36960
+ name,
36904
36961
  value: this.value,
36905
36962
  event
36906
- });
36963
+ };
36964
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36907
36965
  }
36908
36966
  handleRangeChange(event, target) {
36909
36967
  if (target) {
@@ -36914,10 +36972,13 @@ var init_slider = __esm({
36914
36972
  this.valueControl.value = numericValue === null ? "" : String(numericValue);
36915
36973
  }
36916
36974
  }
36917
- dispatchControlEvent2(this, "change", {
36975
+ const name = this.getAttribute("name") ?? void 0;
36976
+ const detail = {
36977
+ name,
36918
36978
  value: this.value,
36919
36979
  event
36920
- });
36980
+ };
36981
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36921
36982
  }
36922
36983
  handleValueInput(event) {
36923
36984
  const rawValue = event.detail?.value ?? "";
@@ -36927,10 +36988,15 @@ var init_slider = __esm({
36927
36988
  if (this.control) {
36928
36989
  this.control.value = String(numericValue ?? 0);
36929
36990
  }
36930
- dispatchControlEvent2(this, "input", {
36991
+ const name = this.getAttribute("name") ?? void 0;
36992
+ const controlEvent = event.detail?.event ?? event;
36993
+ const detail = {
36994
+ name,
36931
36995
  value: this.value,
36932
- event: event.detail?.event ?? event
36933
- });
36996
+ event: controlEvent
36997
+ };
36998
+ dispatchControlEvent2(this, "input", detail);
36999
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36934
37000
  }
36935
37001
  handleValueChange(event) {
36936
37002
  const rawValue = event.detail?.value ?? "";
@@ -36940,10 +37006,15 @@ var init_slider = __esm({
36940
37006
  if (this.control) {
36941
37007
  this.control.value = String(numericValue ?? 0);
36942
37008
  }
36943
- dispatchControlEvent2(this, "change", {
37009
+ const name = this.getAttribute("name") ?? void 0;
37010
+ const controlEvent = event.detail?.event ?? event;
37011
+ const detail = {
37012
+ name,
36944
37013
  value: this.value,
36945
- event: event.detail?.event ?? event
36946
- });
37014
+ event: controlEvent
37015
+ };
37016
+ dispatchControlEvent2(this, "change", detail);
37017
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
36947
37018
  }
36948
37019
  updateProgress() {
36949
37020
  if (!this.control) {
@@ -37342,7 +37413,7 @@ function applyDecs2203RFactory56() {
37342
37413
  function _apply_decs_2203_r56(targetClass, memberDecs, classDecs, parentClass) {
37343
37414
  return (_apply_decs_2203_r56 = applyDecs2203RFactory56())(targetClass, memberDecs, classDecs, parentClass);
37344
37415
  }
37345
- var import_lit_html60, _dec155, _initClass56, _HTMLElement56, _dec156, _dec230, _dec326, _dec421, _dec517, _init_value11, _init_defaultSlot, _initProto33, readControlValue2, getControlName, _State, State;
37416
+ var import_lit_html60, _dec155, _initClass56, _HTMLElement56, _dec156, _dec230, _dec326, _dec421, _dec518, _init_value11, _init_defaultSlot, _initProto33, readControlValue2, getControlName, _State, State;
37346
37417
  var init_state = __esm({
37347
37418
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/state/index.ts"() {
37348
37419
  "use strict";
@@ -37394,7 +37465,7 @@ var init_state = __esm({
37394
37465
  target: (host) => host
37395
37466
  }), _dec421 = Listen("change", {
37396
37467
  target: (host) => host
37397
- }), _dec517 = Listen(CONTROL_CHANGE_EVENT, {
37468
+ }), _dec518 = Listen(CONTROL_CHANGE_EVENT, {
37398
37469
  target: (host) => host
37399
37470
  });
37400
37471
  State = class extends (_HTMLElement56 = HTMLElement) {
@@ -37421,7 +37492,7 @@ var init_state = __esm({
37421
37492
  "handleInternalChange"
37422
37493
  ],
37423
37494
  [
37424
- _dec517,
37495
+ _dec518,
37425
37496
  2,
37426
37497
  "handleControlChange"
37427
37498
  ]
@@ -38209,10 +38280,15 @@ var init_toggle = __esm({
38209
38280
  return;
38210
38281
  }
38211
38282
  this.checked = !this.checked;
38212
- dispatchControlEvent2(this, "toggle", {
38283
+ const name = this.getAttribute("name") ?? void 0;
38284
+ const detail = {
38285
+ name,
38213
38286
  value: this.checked,
38214
38287
  event
38215
- });
38288
+ };
38289
+ dispatchControlEvent2(this, "toggle", detail);
38290
+ dispatchControlEvent2(this, "change", detail);
38291
+ dispatchControlEvent2(this, CONTROL_CHANGE_EVENT, detail);
38216
38292
  }
38217
38293
  static {
38218
38294
  _initClass57();
@@ -38601,7 +38677,7 @@ function applyDecs2203RFactory58() {
38601
38677
  function _apply_decs_2203_r58(targetClass, memberDecs, classDecs, parentClass) {
38602
38678
  return (_apply_decs_2203_r58 = applyDecs2203RFactory58())(targetClass, memberDecs, classDecs, parentClass);
38603
38679
  }
38604
- var import_lit_html62, _dec159, _initClass58, _HTMLElement58, _dec160, _dec232, _dec328, _dec423, _dec518, _dec616, _init_open5, _init_delay2, _init_placement5, _init_triggerElement2, _init_contentElement4, _initProto35, _Tooltip2, Tooltip2;
38680
+ var import_lit_html62, _dec159, _initClass58, _HTMLElement58, _dec160, _dec232, _dec328, _dec423, _dec519, _dec616, _init_open5, _init_delay2, _init_placement5, _init_triggerElement2, _init_contentElement4, _initProto35, _Tooltip2, Tooltip2;
38605
38681
  var init_tooltip2 = __esm({
38606
38682
  "swc:/Users/aaroniker/Documents/GitHub/ease/web-kit/packages/core/src/elements/tooltip/index.ts"() {
38607
38683
  "use strict";
@@ -38654,7 +38730,7 @@ var init_tooltip2 = __esm({
38654
38730
  }), _dec328 = Prop({
38655
38731
  reflect: true,
38656
38732
  defaultValue: "top-center"
38657
- }), _dec423 = Query('[slot="trigger"]'), _dec518 = Query("[data-tooltip-content]"), _dec616 = OutsideClick({
38733
+ }), _dec423 = Query('[slot="trigger"]'), _dec519 = Query("[data-tooltip-content]"), _dec616 = OutsideClick({
38658
38734
  content: (host) => host.contentElement,
38659
38735
  triggers: (host) => [
38660
38736
  host.triggerElement
@@ -38685,7 +38761,7 @@ var init_tooltip2 = __esm({
38685
38761
  "triggerElement"
38686
38762
  ],
38687
38763
  [
38688
- _dec518,
38764
+ _dec519,
38689
38765
  1,
38690
38766
  "contentElement"
38691
38767
  ],
@@ -40766,7 +40842,7 @@ _dec78 = Component({
40766
40842
  [part="content"] {
40767
40843
  height: 0;
40768
40844
  overflow: hidden;
40769
- transition: height 200ms cubic-bezier(.25, 0, .5, 1);
40845
+ transition: height 200ms cubic-bezier(.25, 0, .5, 1) !important;
40770
40846
  }
40771
40847
 
40772
40848
  :host([open]) [part="content"] {