@shoper/phoenix_design_system 1.15.11-39 → 1.15.11-40

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.
Files changed (50) hide show
  1. package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js +2 -9
  2. package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
  3. package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js +5 -23
  4. package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
  5. package/build/cjs/packages/phoenix/src/components/form/radio/radio_control.js +5 -0
  6. package/build/cjs/packages/phoenix/src/components/form/radio/radio_control.js.map +1 -1
  7. package/build/cjs/packages/phoenix/src/components/form/select/components/search/select_search.js +1 -48
  8. package/build/cjs/packages/phoenix/src/components/form/select/components/search/select_search.js.map +1 -1
  9. package/build/cjs/packages/phoenix/src/components/form/select/components/select_options.js +2 -1
  10. package/build/cjs/packages/phoenix/src/components/form/select/components/select_options.js.map +1 -1
  11. package/build/cjs/packages/phoenix/src/components/form/select/select.js +29 -97
  12. package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
  13. package/build/cjs/packages/phoenix/src/components/modal/modal.js +3 -1
  14. package/build/cjs/packages/phoenix/src/components/modal/modal.js.map +1 -1
  15. package/build/cjs/packages/phoenix/src/controllers/list_box_controller/list_box_keyboard_controller.js +38 -83
  16. package/build/cjs/packages/phoenix/src/controllers/list_box_controller/list_box_keyboard_controller.js.map +1 -1
  17. package/build/esm/packages/phoenix/src/components/dropdown/dropdown.d.ts +0 -1
  18. package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js +2 -9
  19. package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
  20. package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.d.ts +0 -3
  21. package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js +5 -23
  22. package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
  23. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.d.ts +1 -0
  24. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.js +5 -0
  25. package/build/esm/packages/phoenix/src/components/form/radio/radio_control.js.map +1 -1
  26. package/build/esm/packages/phoenix/src/components/form/select/components/search/select_search.d.ts +0 -7
  27. package/build/esm/packages/phoenix/src/components/form/select/components/search/select_search.js +1 -48
  28. package/build/esm/packages/phoenix/src/components/form/select/components/search/select_search.js.map +1 -1
  29. package/build/esm/packages/phoenix/src/components/form/select/components/select_options.js +2 -1
  30. package/build/esm/packages/phoenix/src/components/form/select/components/select_options.js.map +1 -1
  31. package/build/esm/packages/phoenix/src/components/form/select/select.d.ts +6 -16
  32. package/build/esm/packages/phoenix/src/components/form/select/select.js +29 -97
  33. package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
  34. package/build/esm/packages/phoenix/src/components/modal/modal.js +3 -1
  35. package/build/esm/packages/phoenix/src/components/modal/modal.js.map +1 -1
  36. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_controller_types.d.ts +2 -6
  37. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_controller_types.js +0 -1
  38. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_controller_types.js.map +1 -1
  39. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_keyboard_controller.d.ts +3 -8
  40. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_keyboard_controller.js +38 -83
  41. package/build/esm/packages/phoenix/src/controllers/list_box_controller/list_box_keyboard_controller.js.map +1 -1
  42. package/package.json +2 -2
  43. package/build/cjs/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller.js +0 -88
  44. package/build/cjs/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller.js.map +0 -1
  45. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller.d.ts +0 -14
  46. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller.js +0 -84
  47. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller.js.map +0 -1
  48. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller_types.d.ts +0 -8
  49. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller_types.js +0 -3
  50. package/build/esm/packages/phoenix/src/components/form/select/controllers/select_toggler_keyboard_controller/select_toggler_keyboard_controller_types.js.map +0 -1
@@ -5,64 +5,37 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
6
6
  require('lit');
7
7
  var utilities = require('@dreamcommerce/utilities');
8
+ var keystrokes_controller = require('../keystrokes_controller/keystrokes_controller.js');
8
9
  var list_box_controller_constants = require('./list_box_controller_constants.js');
9
10
 
10
- var _ListBoxKeyboardController_host, _ListBoxKeyboardController__$list, _ListBoxKeyboardController__$options, _ListBoxKeyboardController_listItemSelector, _ListBoxKeyboardController_keys;
11
+ var _ListBoxKeyboardController_host, _ListBoxKeyboardController__$list, _ListBoxKeyboardController_currentOptionIndex, _ListBoxKeyboardController__$options, _ListBoxKeyboardController_listItemSelector, _ListBoxKeyboardController_keys;
11
12
  class ListBoxKeyboardController {
12
13
  constructor({ host, $list, listItemSelector = '[role="option"]', orientation = list_box_controller_constants.LIST_BOX_KEYBOARD_NAVIGATION_DIRECTIONS.vertical }) {
13
14
  _ListBoxKeyboardController_host.set(this, void 0);
14
15
  _ListBoxKeyboardController__$list.set(this, void 0);
16
+ _ListBoxKeyboardController_currentOptionIndex.set(this, void 0);
15
17
  _ListBoxKeyboardController__$options.set(this, void 0);
16
18
  _ListBoxKeyboardController_listItemSelector.set(this, void 0);
17
19
  _ListBoxKeyboardController_keys.set(this, void 0);
18
- this._handleKeyboardNavigation = (ev) => {
19
- if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_keys, "f").find((key) => key === ev.key)) {
20
- this._handleArrowNavigation(ev);
21
- return;
22
- }
23
- this._handleWriteableCharacter(ev);
24
- };
25
20
  this._handleArrowNavigation = (event) => {
26
- var _a;
27
21
  event.preventDefault();
28
22
  const { key } = event;
29
- const activeElementId = (_a = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").$dropdownToggler.value) === null || _a === void 0 ? void 0 : _a.getAttribute('aria-activedescendant');
30
- if (!activeElementId) {
31
- this._setVirtualFocusToFirstElement();
32
- return;
33
- }
34
- const $availableOptions = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").filter(($option) => {
35
- return !$option.getAttribute('inactive') && !$option.getAttribute('disabled') && !$option.hidden;
36
- });
37
- const $activeElement = document.querySelector(`#${activeElementId}`);
38
- const activeElementIndex = $availableOptions.findIndex(($element) => $element.id === $activeElement.id);
39
- let $newActiveElement;
40
- if (key === 'ArrowDown' || key === 'ArrowRight') {
41
- $newActiveElement = $availableOptions[activeElementIndex + 1];
23
+ const prevOptionIndex = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f");
24
+ let newOptionIndex = key === 'ArrowDown' || key === 'ArrowRight' ? this._getNextOptionIndex() : this._getPrevOptionIndex();
25
+ if (newOptionIndex === undefined) {
26
+ const selectedOptionIndex = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").findIndex(($option) => $option.selected);
27
+ newOptionIndex = selectedOptionIndex !== -1 ? selectedOptionIndex : 0;
42
28
  }
43
- if (key === 'ArrowUp' || key === 'ArrowLeft') {
44
- $newActiveElement = $availableOptions[activeElementIndex - 1];
45
- }
46
- if (!$newActiveElement)
47
- return;
48
- tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").manageSelectVirtualFocus($newActiveElement);
49
- };
50
- this._setVirtualFocusToFirstElement = () => {
51
- const $firstOption = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").options[0];
52
- if (!$firstOption)
29
+ if (newOptionIndex === tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f"))
53
30
  return;
54
- tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").manageSelectVirtualFocus($firstOption);
55
- };
56
- this._handleWriteableCharacter = (ev) => {
57
- var _a;
58
- const $searchInput = (_a = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").$search.value) === null || _a === void 0 ? void 0 : _a.querySelector('[role="search"]');
59
- if (!$searchInput)
60
- return;
61
- $searchInput === null || $searchInput === void 0 ? void 0 : $searchInput.focus();
62
- };
63
- this.calculateSelectedOptionIndex = () => {
64
- const selectedOptionIndex = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").findIndex(($option) => $option.selected);
65
- this.currentOptionIndex = selectedOptionIndex !== -1 ? selectedOptionIndex : 0;
31
+ if (prevOptionIndex !== undefined) {
32
+ const $prevOption = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f")[prevOptionIndex];
33
+ utilities.UiDomUtils.makeUnnavigable($prevOption);
34
+ }
35
+ tslib_es6.__classPrivateFieldSet(this, _ListBoxKeyboardController_currentOptionIndex, newOptionIndex, "f");
36
+ const $focusedOption = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f")[newOptionIndex];
37
+ utilities.UiDomUtils.makeNavigable($focusedOption);
38
+ $focusedOption.focus();
66
39
  };
67
40
  tslib_es6.__classPrivateFieldSet(this, _ListBoxKeyboardController_host, host, "f");
68
41
  tslib_es6.__classPrivateFieldSet(this, _ListBoxKeyboardController__$list, $list, "f");
@@ -72,58 +45,40 @@ class ListBoxKeyboardController {
72
45
  tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f").addController(this);
73
46
  }
74
47
  hostConnected() {
75
- tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f").addEventListener('keydown', this._handleKeyboardNavigation);
48
+ new keystrokes_controller.KeystrokesController({
49
+ host: tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_host, "f"),
50
+ keys: tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_keys, "f"),
51
+ callback: this._handleArrowNavigation,
52
+ target: tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f")
53
+ });
76
54
  utilities.UiDomUtils.makeNavigable(tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f"));
77
55
  tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f").addEventListener('focusin', (event) => {
78
56
  if (event.target !== tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f"))
79
57
  return;
80
- // if (this.currentOptionIndex === undefined) return;
81
- // const $prevOption = this.#_$options[this.currentOptionIndex];
82
- // UiDomUtils.makeUnnavigable($prevOption);
83
- // this.currentOptionIndex = undefined;
58
+ if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") === undefined)
59
+ return;
60
+ const $prevOption = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f")[tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f")];
61
+ utilities.UiDomUtils.makeUnnavigable($prevOption);
62
+ tslib_es6.__classPrivateFieldSet(this, _ListBoxKeyboardController_currentOptionIndex, undefined, "f");
84
63
  });
85
- // this.#_$options.forEach(($option: HTMLElement) => UiDomUtils.makeUnnavigable($option));
64
+ tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").forEach(($option) => utilities.UiDomUtils.makeUnnavigable($option));
86
65
  }
87
66
  _getPrevOptionIndex() {
88
- if (this.currentOptionIndex === undefined)
67
+ if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") === undefined)
89
68
  return undefined;
90
- if (this.currentOptionIndex <= 0)
91
- return this.currentOptionIndex;
92
- if (this.currentOptionIndex <= 0)
93
- return this.currentOptionIndex;
94
- const $availableOptions = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").filter(($option) => {
95
- return !$option.getAttribute('inactive') && !$option.getAttribute('disabled') && !$option.hidden;
96
- });
97
- if (!!$availableOptions[this.currentOptionIndex - 1])
98
- return this.currentOptionIndex - 1;
99
- // bo ktoś wpisał coś w searcha i index obecnie wybranej opcji jest inny
100
- const newIndexOfCurrentlySelectedOption = $availableOptions.findIndex(($option) => $option.selected);
101
- if (newIndexOfCurrentlySelectedOption)
102
- return newIndexOfCurrentlySelectedOption - 1;
103
- return this.currentOptionIndex - 1;
69
+ if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") <= 0)
70
+ return tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f");
71
+ return tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") - 1;
104
72
  }
105
73
  _getNextOptionIndex() {
106
- if (this.currentOptionIndex === undefined)
74
+ if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") === undefined)
107
75
  return undefined;
108
- const $availableOptions = tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").filter(($option) => {
109
- return !$option.getAttribute('inactive') && !$option.getAttribute('disabled') && !$option.hidden;
110
- });
111
- if (this.currentOptionIndex === $availableOptions.length - 1)
112
- return this.currentOptionIndex;
113
- if (this.currentOptionIndex > $availableOptions.length - 1) {
114
- // bo ktoś wpisał coś w searcha i index obecnie wybranej opcji jest inny
115
- const newIndexOfCurrentlySelectedOption = $availableOptions.findIndex(($option) => $option.selected);
116
- if (newIndexOfCurrentlySelectedOption)
117
- return newIndexOfCurrentlySelectedOption + 1;
118
- return 0;
119
- }
120
- return this.currentOptionIndex + 1;
121
- }
122
- hostDisconnected() {
123
- tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$list, "f").removeEventListener('keydown', this._handleKeyboardNavigation);
76
+ if (tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") >= tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController__$options, "f").length - 1)
77
+ return tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f");
78
+ return tslib_es6.__classPrivateFieldGet(this, _ListBoxKeyboardController_currentOptionIndex, "f") + 1;
124
79
  }
125
80
  }
126
- _ListBoxKeyboardController_host = new WeakMap(), _ListBoxKeyboardController__$list = new WeakMap(), _ListBoxKeyboardController__$options = new WeakMap(), _ListBoxKeyboardController_listItemSelector = new WeakMap(), _ListBoxKeyboardController_keys = new WeakMap();
81
+ _ListBoxKeyboardController_host = new WeakMap(), _ListBoxKeyboardController__$list = new WeakMap(), _ListBoxKeyboardController_currentOptionIndex = new WeakMap(), _ListBoxKeyboardController__$options = new WeakMap(), _ListBoxKeyboardController_listItemSelector = new WeakMap(), _ListBoxKeyboardController_keys = new WeakMap();
127
82
 
128
83
  exports.ListBoxKeyboardController = ListBoxKeyboardController;
129
84
  //# sourceMappingURL=list_box_keyboard_controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -17,7 +17,6 @@ export declare class HDropdown extends PhoenixLightLitElement implements IDropdo
17
17
  mobilePosition: TMobileElementPosition;
18
18
  id: string;
19
19
  preventFocusTrap: boolean;
20
- noAutoFocus: boolean;
21
20
  $dropdownToggler: HDropdownToggler | null;
22
21
  $dropdownContent: HDropdownContent | null;
23
22
  $nestedDropdownContentElements?: HDropdownContent[];
@@ -28,7 +28,6 @@ let HDropdown = HDropdown_1 = class HDropdown extends PhoenixLightLitElement {
28
28
  this.portalTarget = DEFAULT_DROPDOWN_PORTAL_NAME;
29
29
  this.id = v4();
30
30
  this.preventFocusTrap = false;
31
- this.noAutoFocus = false;
32
31
  this._backdropController = new BackdropController();
33
32
  this._handleClickOutside = async (target) => {
34
33
  var _a, _b;
@@ -45,8 +44,7 @@ let HDropdown = HDropdown_1 = class HDropdown extends PhoenixLightLitElement {
45
44
  return;
46
45
  }
47
46
  await this.show();
48
- if (!this.noAutoFocus)
49
- this._focusOnFirstContentElement();
47
+ this._focusOnFirstContentElement();
50
48
  };
51
49
  this.show = async () => {
52
50
  if (this.opened)
@@ -174,8 +172,7 @@ let HDropdown = HDropdown_1 = class HDropdown extends PhoenixLightLitElement {
174
172
  const isHoveredWithinDropdown = this._isHoveredWithinDropdown(ev.target);
175
173
  if (isHoveredWithinDropdown && !this.opened) {
176
174
  await this.show();
177
- if (!this.noAutoFocus)
178
- this._focusOnFirstContentElement();
175
+ this._focusOnFirstContentElement();
179
176
  return;
180
177
  }
181
178
  if (!isHoveredWithinDropdown && this.opened)
@@ -465,10 +462,6 @@ __decorate([
465
462
  property({ type: Boolean, attribute: 'prevent-focus-trap' }),
466
463
  __metadata("design:type", Object)
467
464
  ], HDropdown.prototype, "preventFocusTrap", void 0);
468
- __decorate([
469
- property({ type: Boolean, attribute: 'no-autofocus' }),
470
- __metadata("design:type", Object)
471
- ], HDropdown.prototype, "noAutoFocus", void 0);
472
465
  HDropdown = HDropdown_1 = __decorate([
473
466
  phoenixCustomElement('h-dropdown'),
474
467
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qDAAyD;AACxE;AACA;AACA;AACA,uBAAuB,4CAAgD;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,qDAAyD;AACxE;AACA;AACA;AACA,uBAAuB,4CAAgD;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,9 +1,6 @@
1
1
  import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
2
2
  export declare class HDropdownToggler extends PhoenixLightLitElement {
3
3
  name: string;
4
- ariaHasPopup: string;
5
- ariaControls: string;
6
- role: string;
7
4
  private _btnController;
8
5
  private _toggleElementAriaController;
9
6
  private _$dropdown;
@@ -3,6 +3,7 @@ import { property } from 'lit/decorators';
3
3
  import '@dreamcommerce/utilities';
4
4
  import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
5
5
  import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
6
+ import { BtnController } from '../../controllers/btn_controller/btn_controller.js';
6
7
  import { BREAKPOINTS } from '../../global_constants.js';
7
8
  import { DROPDOWN_CONTAINER_NAME, DROPDOWN_EVENTS, DROPDOWN_CSS_CLASSES, DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME } from './dropdown_constants.js';
8
9
  import { ToggleElementAriaController } from '../../controllers/toggle_element_aria_controller/toggle_element_aria_controller.js';
@@ -11,9 +12,6 @@ let HDropdownToggler = class HDropdownToggler extends PhoenixLightLitElement {
11
12
  constructor() {
12
13
  super();
13
14
  this.name = '';
14
- this.ariaHasPopup = 'menu';
15
- this.ariaControls = '';
16
- this.role = 'button';
17
15
  this._setupTogglerAria = () => {
18
16
  this._$dropdown = this.closest(DROPDOWN_CONTAINER_NAME);
19
17
  if (this._$dropdown.isOpened)
@@ -21,14 +19,11 @@ let HDropdownToggler = class HDropdownToggler extends PhoenixLightLitElement {
21
19
  host: this,
22
20
  initialAriaExpandedValue: this._$dropdown.isOpened()
23
21
  });
24
- this.setAttribute('role', this.role);
25
- this.setAttribute('aria-haspopup', this.ariaHasPopup);
26
- if (this.ariaControls || this._$dropdown.id)
27
- this.setAttribute('aria-controls', this.ariaControls || this._$dropdown.id);
22
+ this.setAttribute('aria-haspopup', 'true');
23
+ if (this._$dropdown.id)
24
+ this.setAttribute('aria-controls', this._$dropdown.id);
28
25
  };
29
26
  this._dispatchToggleDropdownEventWithKeyboard = (ev) => {
30
- if (ev.key !== 'Enter' && ev.key !== ' ')
31
- return;
32
27
  ev.stopImmediatePropagation();
33
28
  this._dispatchToggleDropdownEvent(ev);
34
29
  };
@@ -47,8 +42,7 @@ let HDropdownToggler = class HDropdownToggler extends PhoenixLightLitElement {
47
42
  connectedCallback() {
48
43
  var _a;
49
44
  super.connectedCallback();
50
- this.setAttribute('tabindex', '0');
51
- this.addEventListener('keydown', this._dispatchToggleDropdownEventWithKeyboard);
45
+ this._btnController = new BtnController(this, this._dispatchToggleDropdownEventWithKeyboard);
52
46
  this._setupTogglerAria();
53
47
  const hasToggleOnHover = (_a = this._$dropdown) === null || _a === void 0 ? void 0 : _a.hasAttribute(DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME);
54
48
  if (hasToggleOnHover) {
@@ -62,18 +56,6 @@ __decorate([
62
56
  property({ type: String, reflect: true }),
63
57
  __metadata("design:type", Object)
64
58
  ], HDropdownToggler.prototype, "name", void 0);
65
- __decorate([
66
- property({ type: String, attribute: 'aria-haspopup' }),
67
- __metadata("design:type", Object)
68
- ], HDropdownToggler.prototype, "ariaHasPopup", void 0);
69
- __decorate([
70
- property({ type: String, attribute: 'aria-controls' }),
71
- __metadata("design:type", Object)
72
- ], HDropdownToggler.prototype, "ariaControls", void 0);
73
- __decorate([
74
- property({ type: String }),
75
- __metadata("design:type", Object)
76
- ], HDropdownToggler.prototype, "role", void 0);
77
59
  HDropdownToggler = __decorate([
78
60
  phoenixCustomElement('h-dropdown-toggler'),
79
61
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -9,6 +9,7 @@ export declare class HRadioControl extends PhoenixLightLitElement {
9
9
  readonly: boolean;
10
10
  checked: boolean;
11
11
  value: string;
12
+ ariaDescribedby: string;
12
13
  constructor();
13
14
  connectedCallback(): void;
14
15
  protected render(): TemplateResult;
@@ -37,6 +37,7 @@ let HRadioControl = class HRadioControl extends PhoenixLightLitElement {
37
37
  ?readonly="${this.readonly}"
38
38
  ?hidden="${this.hidden}"
39
39
  .checked="${this.checked}"
40
+ aria-describedby="${ifDefined(this.ariaDescribedby)}"
40
41
  @change="${this._handleChangeEvent}"
41
42
  />
42
43
 
@@ -76,6 +77,10 @@ __decorate([
76
77
  property({ type: String }),
77
78
  __metadata("design:type", String)
78
79
  ], HRadioControl.prototype, "value", void 0);
80
+ __decorate([
81
+ property({ type: String, attribute: 'aria-describedby' }),
82
+ __metadata("design:type", String)
83
+ ], HRadioControl.prototype, "ariaDescribedby", void 0);
79
84
  HRadioControl = __decorate([
80
85
  phoenixCustomElement('h-radio-control'),
81
86
  __metadata("design:paramtypes", [])
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -2,14 +2,7 @@ import { PhoenixLightLitElement } from "../../../../../core/phoenix_light_lit_el
2
2
  import { TemplateResult } from 'lit';
3
3
  export declare class HSelectSearch extends PhoenixLightLitElement {
4
4
  value: string;
5
- private selectControlId;
6
- private selectOptionsId;
7
- private _$selectOptions;
8
- private _$select;
9
5
  connectedCallback(): void;
10
- private _handleSearchKeydown;
11
- private _handleDispatchEventOnOptionsList;
12
- private _handleFocusOptionOnArrowNavigation;
13
6
  private _handleInputChange;
14
7
  protected render(): TemplateResult;
15
8
  }
@@ -1,11 +1,9 @@
1
1
  import { __decorate, __metadata } from '../../../../../../../../external/tslib/tslib.es6.js';
2
2
  import { html } from 'lit';
3
3
  import { property } from 'lit/decorators';
4
- import '@dreamcommerce/utilities';
5
4
  import { PhoenixLightLitElement } from '../../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
6
5
  import { phoenixCustomElement } from '../../../../../core/decorators/phoenix_custom_element.js';
7
6
  import { SELECT_SEARCH_EVENT_NAMES, SELECT_RELATED_COMPONENTS_NAMES } from '../select_components_constatns.js';
8
- import { DROPDOWN_CONTENT_NAME } from '../../../../dropdown/dropdown_constants.js';
9
7
  import debounce_1 from '../../../../../../../../external/lodash/debounce.js';
10
8
  import { SELECT_SEARCH_CSS_CLASSES } from './select_search_constants.js';
11
9
 
@@ -13,37 +11,6 @@ let HSelectSearch = class HSelectSearch extends PhoenixLightLitElement {
13
11
  constructor() {
14
12
  super(...arguments);
15
13
  this.value = '';
16
- this.selectControlId = '';
17
- this.selectOptionsId = '';
18
- this._$selectOptions = null;
19
- this._$select = null;
20
- this._handleSearchKeydown = (ev) => {
21
- if (ev.key !== 'ArrowDown' && ev.key !== 'ArrowUp')
22
- return;
23
- this._handleFocusOptionOnArrowNavigation();
24
- this._handleDispatchEventOnOptionsList(ev);
25
- };
26
- this._handleDispatchEventOnOptionsList = (ev) => {
27
- var _a;
28
- const arrowNavigationEvent = new KeyboardEvent('keydown', {
29
- key: ev.key
30
- });
31
- (_a = this._$selectOptions) === null || _a === void 0 ? void 0 : _a.dispatchEvent(arrowNavigationEvent);
32
- };
33
- this._handleFocusOptionOnArrowNavigation = () => {
34
- var _a;
35
- const $options = this._$selectOptions ? [...this._$selectOptions.querySelectorAll('h-option')] : [];
36
- const $availableOptions = $options.filter(($option) => {
37
- return !$option.getAttribute('inactive') && !$option.getAttribute('disabled') && !$option.hidden;
38
- });
39
- const $firstOption = $availableOptions.find(($option) => {
40
- return !$option.getAttribute('inactive') && !$option.getAttribute('disabled') && !$option.getAttribute('hidden');
41
- });
42
- const $selectedOption = $availableOptions.find(($option) => $option.getAttribute('aria-selected'));
43
- const $optionToFocus = $selectedOption || $firstOption;
44
- if ($optionToFocus)
45
- (_a = this._$select) === null || _a === void 0 ? void 0 : _a.manageSelectVirtualFocus($optionToFocus);
46
- };
47
14
  this._handleInputChange = debounce_1(({ target }) => {
48
15
  this.value = target.value;
49
16
  this.emitCustomEvent(SELECT_SEARCH_EVENT_NAMES.search, {
@@ -54,22 +21,16 @@ let HSelectSearch = class HSelectSearch extends PhoenixLightLitElement {
54
21
  connectedCallback() {
55
22
  super.connectedCallback();
56
23
  this.classList.add(SELECT_SEARCH_CSS_CLASSES.selectSearch);
57
- const $selectOptionsContainer = this.closest(DROPDOWN_CONTENT_NAME);
58
- this._$selectOptions = $selectOptionsContainer === null || $selectOptionsContainer === void 0 ? void 0 : $selectOptionsContainer.querySelector('h-options');
59
- this._$select = document.querySelector(`[control-id="${this.selectControlId}"]`);
60
- this.addEventListener('keydown', this._handleSearchKeydown);
61
24
  }
62
25
  render() {
63
26
  return html `
64
27
  <h-icon icon-name="icon-search" class=${SELECT_SEARCH_CSS_CLASSES.selectSearchIcon}></h-icon>
65
28
  <input
66
- id="${this.selectControlId}-search"
67
- class="${SELECT_SEARCH_CSS_CLASSES.selectSearchInput}"
29
+ class=${SELECT_SEARCH_CSS_CLASSES.selectSearchInput}
68
30
  type="text"
69
31
  role="search"
70
32
  .value=${this.value}
71
33
  aria-autocomplete="list"
72
- aria-controls="${this.selectOptionsId}"
73
34
  autocomplete="false"
74
35
  placeholder="Szukaj"
75
36
  @input=${this._handleInputChange}
@@ -81,14 +42,6 @@ __decorate([
81
42
  property({ type: String, reflect: true }),
82
43
  __metadata("design:type", String)
83
44
  ], HSelectSearch.prototype, "value", void 0);
84
- __decorate([
85
- property({ type: String }),
86
- __metadata("design:type", String)
87
- ], HSelectSearch.prototype, "selectControlId", void 0);
88
- __decorate([
89
- property({ type: String }),
90
- __metadata("design:type", String)
91
- ], HSelectSearch.prototype, "selectOptionsId", void 0);
92
45
  HSelectSearch = __decorate([
93
46
  phoenixCustomElement(SELECT_RELATED_COMPONENTS_NAMES.search)
94
47
  ], HSelectSearch);
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,qDAAyD;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,qDAAyD;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,qDAAyD;AAChG;AACA;AACA;AACA;AACA;AACA,uBAAuB,qDAAyD;AAChF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from '../../../../../../../external/tslib/tslib.es6.js';
2
- import '@dreamcommerce/utilities';
2
+ import { UiDomUtils } from '@dreamcommerce/utilities';
3
3
  import { PhoenixLightLitElement } from '../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
4
4
  import { phoenixCustomElement } from '../../../../core/decorators/phoenix_custom_element.js';
5
5
  import { SELECT_OPTIONS_EVENT_NAMES, SELECT_OPTION_EVENT_NAMES, SELECT_RELATED_COMPONENTS_NAMES } from './select_components_constatns.js';
@@ -22,6 +22,7 @@ let HOptions = class HOptions extends PhoenixLightLitElement {
22
22
  });
23
23
  };
24
24
  this.setAttribute('role', 'listbox');
25
+ UiDomUtils.makeNavigable(this);
25
26
  this.addEventListener(SELECT_OPTION_EVENT_NAMES.clicked, this._dispatchClickedEvent);
26
27
  this.addEventListener(SELECT_OPTION_EVENT_NAMES.updated, this._dispatchUpdatedEvent);
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,kDAAsD;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,kDAAsD;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,9 +1,5 @@
1
1
  import { PropertyValues, TemplateResult } from 'lit';
2
- import { HDropdown } from "../../dropdown/dropdown";
3
- import { HDropdownToggler } from "../../dropdown/dropdown_toggler";
4
2
  import { HOption } from "./components/option/select_option";
5
- import { HSelectSearch } from "./components/search/select_search";
6
- import { ListBoxKeyboardController } from "../../../controllers/list_box_controller/list_box_keyboard_controller";
7
3
  import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element/phoenix_light_lit_element";
8
4
  import { SelectOption } from "./model/select_option";
9
5
  import type { TSelectType } from "./select_types";
@@ -22,8 +18,7 @@ export declare class HSelect extends PhoenixLightLitElement {
22
18
  required: boolean;
23
19
  optionsList?: TSelectOption[];
24
20
  noDeselect: boolean;
25
- assistiveTitleId: string;
26
- private _selectOptionsId;
21
+ ariaLabelledby: string;
27
22
  get selectedIndex(): number;
28
23
  set selectedIndex(index: number);
29
24
  get selectedOptions(): (HOption | undefined)[];
@@ -33,18 +28,15 @@ export declare class HSelect extends PhoenixLightLitElement {
33
28
  private _searchValue;
34
29
  private _selectController;
35
30
  private _$options;
36
- $dropdown: import("lit-html/directives/ref.js").Ref<HDropdown>;
37
- $search: import("lit-html/directives/ref.js").Ref<HSelectSearch>;
31
+ private _$dropdown;
32
+ private _$search;
38
33
  private _$optionsList;
39
34
  private _$dropdownContent;
40
- $dropdownToggler: import("lit-html/directives/ref.js").Ref<HDropdownToggler>;
35
+ private _$dropdownToggler;
41
36
  private _selectContext;
42
- listBoxController: ListBoxKeyboardController;
43
- private _selectTogglerKeyboardController;
37
+ private _listBoxController;
44
38
  private _optionsObserver;
45
- private _selectedOptionsAriaObserver;
46
39
  private $placeholder;
47
- private $searchLabel;
48
40
  constructor();
49
41
  updated(changedProperties: PropertyValues): void;
50
42
  private _focusElementAfterSelectOpened;
@@ -55,7 +47,6 @@ export declare class HSelect extends PhoenixLightLitElement {
55
47
  private _setupEvents;
56
48
  private _handleOptionDeselect;
57
49
  private _updateOptionsView;
58
- private _updateLabelAria;
59
50
  private _appendNewHTMLOption;
60
51
  updateOptionAriaAttribute($option: HOption): void;
61
52
  private _removeHTMLOptions;
@@ -64,8 +55,7 @@ export declare class HSelect extends PhoenixLightLitElement {
64
55
  private _selectOption;
65
56
  private _handleSearch;
66
57
  private _handleDropdownHidden;
67
- private _handleDropdownShowed;
68
- manageSelectVirtualFocus: ($newOption: HTMLElement) => void;
58
+ private _manageSelectFocusAria;
69
59
  private _closeSelect;
70
60
  private _clearOptions;
71
61
  private _dispatchChangeEvent;