@shoper/phoenix_design_system 1.11.11-3 → 1.11.11-30

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 (54) hide show
  1. package/build/cjs/packages/phoenix/src/components/accordion/accordion_toggler.js +16 -2
  2. package/build/cjs/packages/phoenix/src/components/accordion/accordion_toggler.js.map +1 -1
  3. package/build/cjs/packages/phoenix/src/components/form/search/search.js +89 -267
  4. package/build/cjs/packages/phoenix/src/components/form/search/search.js.map +1 -1
  5. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +0 -5
  6. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
  7. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +9 -21
  8. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
  9. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +1 -12
  10. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
  11. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js +1 -8
  12. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js.map +1 -1
  13. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +4 -9
  14. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
  15. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +4 -9
  16. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
  17. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +4 -11
  18. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
  19. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +5 -12
  20. package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
  21. package/build/cjs/packages/phoenix/src/index.js +12 -12
  22. package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.d.ts +1 -1
  23. package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.js +16 -2
  24. package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.js.map +1 -1
  25. package/build/esm/packages/phoenix/src/components/form/search/search.d.ts +5 -23
  26. package/build/esm/packages/phoenix/src/components/form/search/search.js +90 -268
  27. package/build/esm/packages/phoenix/src/components/form/search/search.js.map +1 -1
  28. package/build/esm/packages/phoenix/src/components/form/search/search_types.d.ts +0 -4
  29. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.d.ts +1 -2
  30. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +0 -5
  31. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
  32. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.d.ts +2 -2
  33. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +9 -21
  34. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
  35. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.d.ts +0 -1
  36. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +2 -13
  37. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
  38. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.d.ts +0 -1
  39. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js +1 -8
  40. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/message/search_message.js.map +1 -1
  41. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.d.ts +1 -2
  42. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +4 -9
  43. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
  44. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.d.ts +1 -2
  45. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +4 -9
  46. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
  47. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.d.ts +1 -2
  48. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +4 -11
  49. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
  50. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.d.ts +1 -2
  51. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +5 -12
  52. package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
  53. package/build/esm/packages/phoenix/src/index.js +2 -2
  54. package/package.json +2 -2
@@ -11,6 +11,7 @@ var icon_constants = require('../../../../icon/icon_constants.js');
11
11
  var observer = require('../../../../../core/classes/observer/observer.js');
12
12
  var context_consumer_controller = require('../../../../../core/context/context_consumer_controller.js');
13
13
  var ref_js = require('lit-html/directives/ref.js');
14
+ var v4 = require('../../../../../../../../external/uuid/dist/esm-browser/v4.js');
14
15
  var when = require('../../../../../../../../external/lit/external/lit-html/directives/when.js');
15
16
  var search_constants = require('../../search_constants.js');
16
17
  var repeat = require('../../../../../../../../external/lit/external/lit-html/directives/repeat.js');
@@ -19,6 +20,7 @@ exports.HSearchHistory = class HSearchHistory extends phoenix_light_lit_element.
19
20
  constructor() {
20
21
  super(...arguments);
21
22
  this.buttonRef = ref_js.createRef();
23
+ this._loadMoreButtonId = v4['default']();
22
24
  this.history = [];
23
25
  this.translations = {};
24
26
  }
@@ -45,33 +47,23 @@ exports.HSearchHistory = class HSearchHistory extends phoenix_light_lit_element.
45
47
  return when.when((_a = this.history) === null || _a === void 0 ? void 0 : _a.length, () => lit.html `<h3 class="${search_constants.SEARCH_CLASS_NAMES.headline}">${this.translations.searchHistory}</h3>
46
48
 
47
49
  <ul>
48
- ${repeat.repeat(this.history, (historyElement, index) => lit.html `
49
- <li
50
- class="
51
- ${search_constants.SEARCH_CLASS_NAMES.item}
52
- ${`${this.searchId}${index}` === this.activeItemId ? search_constants.SEARCH_CLASS_NAMES.itemActive : ''}
53
- "
54
- role="row"
50
+ ${repeat.repeat(this.history, (historyElement, index) => lit.html ` <li
51
+ class="${search_constants.SEARCH_CLASS_NAMES.item} ${index === this.activeItemId ? search_constants.SEARCH_CLASS_NAMES.itemActive : ''}"
55
52
  >
56
53
  <h-search-history-select
57
54
  item-label="${historyElement.label}"
58
55
  class="${search_constants.SEARCH_CLASS_NAMES.historySelect}"
59
56
  data-suggested-value="${historyElement.label}"
60
- data-search-item-id="${this.searchId}${index}"
57
+ data-search-item-id="${index}"
61
58
  module-instance-id="${this.moduleInstanceId}"
62
59
  aria-label=${this.translations.historyAriaLabel ? `${this.translations.historyAriaLabel} ${historyElement.label}` : undefined}
63
- role="gridcell"
64
60
  >
65
61
  <h-icon icon-name="icon-clock"></h-icon>
66
62
 
67
63
  <span class="${search_constants.SEARCH_CLASS_NAMES.historyItemValue}">${historyElement.label}</span>
68
64
  </h-search-history-select>
69
65
 
70
- <h-search-history-remove
71
- data-search-item-id="${this.searchId}${index}-grid"
72
- item-id="${historyElement.id}"
73
- role="gridcell"
74
- >
66
+ <h-search-history-remove item-id="${historyElement.id}">
75
67
  <h-icon
76
68
  icon-name="icon-x"
77
69
  clickable=${true}
@@ -84,7 +76,7 @@ exports.HSearchHistory = class HSearchHistory extends phoenix_light_lit_element.
84
76
 
85
77
  <h-search-history-load-more
86
78
  class="${search_constants.SEARCH_CLASS_NAMES.historyLoadMore}"
87
- data-search-item-id="${this.searchId}-loadmore"
79
+ data-search-item-id="${this._loadMoreButtonId}"
88
80
  ${ref_js.ref(this.buttonRef)}
89
81
  >
90
82
  ${this.translations.loadMore}
@@ -96,13 +88,9 @@ tslib_es6.__decorate([
96
88
  tslib_es6.__metadata("design:type", Array)
97
89
  ], exports.HSearchHistory.prototype, "history", void 0);
98
90
  tslib_es6.__decorate([
99
- decorators.property({ type: String, attribute: 'active-item-id' }),
100
- tslib_es6.__metadata("design:type", String)
91
+ decorators.property({ type: Number, attribute: 'active-item-id' }),
92
+ tslib_es6.__metadata("design:type", Number)
101
93
  ], exports.HSearchHistory.prototype, "activeItemId", void 0);
102
- tslib_es6.__decorate([
103
- decorators.property({ type: String, attribute: 'search-id' }),
104
- tslib_es6.__metadata("design:type", String)
105
- ], exports.HSearchHistory.prototype, "searchId", void 0);
106
94
  tslib_es6.__decorate([
107
95
  decorators.property({ type: Object }),
108
96
  tslib_es6.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,8DAAkE;AACnF,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -12,15 +12,6 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
12
12
  constructor() {
13
13
  super(...arguments);
14
14
  this._isSearchPhraseCleared = false;
15
- this._setupAttributes = () => {
16
- var _a, _b, _c, _d, _e, _f;
17
- (_a = this.input) === null || _a === void 0 ? void 0 : _a.setAttribute('role', 'combobox');
18
- (_b = this.input) === null || _b === void 0 ? void 0 : _b.setAttribute('aria-autocomplete', 'none');
19
- (_c = this.input) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-haspopup', 'grid');
20
- const $searchContentContainer = (_d = this.closest('h-search')) === null || _d === void 0 ? void 0 : _d.querySelector(`.${search_constants.SEARCH_CLASS_NAMES.container}`);
21
- (_e = this.input) === null || _e === void 0 ? void 0 : _e.setAttribute('aria-controls', ($searchContentContainer === null || $searchContentContainer === void 0 ? void 0 : $searchContentContainer.id) || '');
22
- (_f = this.input) === null || _f === void 0 ? void 0 : _f.setAttribute('aria-activedescendant', '');
23
- };
24
15
  }
25
16
  connectedCallback() {
26
17
  super.connectedCallback();
@@ -30,7 +21,6 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
30
21
  }
31
22
  this._setupInitialValue();
32
23
  this._setupListeners();
33
- this._setupAttributes();
34
24
  }
35
25
  _setupInitialValue() {
36
26
  const searchQueryRegExp = /\/searchquery\/([^/]{1,})/;
@@ -59,8 +49,7 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
59
49
  this.input.addEventListener('focusin', (ev) => {
60
50
  this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.focusin, {
61
51
  detail: {
62
- searchPhrase: ev.target.value,
63
- relatedTarget: ev.relatedTarget
52
+ searchPhrase: ev.target.value
64
53
  }
65
54
  });
66
55
  });
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -7,7 +7,6 @@ var lit = require('lit');
7
7
  var decorators = require('lit/decorators');
8
8
  var phoenix_light_lit_element = require('../../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
9
9
  var phoenix_custom_element = require('../../../../../core/decorators/phoenix_custom_element.js');
10
- var v4 = require('../../../../../../../../external/uuid/dist/esm-browser/v4.js');
11
10
  var when = require('../../../../../../../../external/lit/external/lit-html/directives/when.js');
12
11
  var search_constants = require('../../search_constants.js');
13
12
  var isEqual = require('../../../../../../../../external/lodash/isEqual.js');
@@ -18,7 +17,6 @@ exports.HSearchMessage = class HSearchMessage extends phoenix_light_lit_element.
18
17
  this.searchPhrase = '';
19
18
  this.history = [];
20
19
  this.translations = {};
21
- this._searchButtonId = v4['default']();
22
20
  }
23
21
  _createEmptyResults() {
24
22
  return {
@@ -51,12 +49,7 @@ exports.HSearchMessage = class HSearchMessage extends phoenix_light_lit_element.
51
49
  return lit.html `
52
50
  ${when.when(this._isNoResultsForSearchPhrase(), () => lit.html `<p class="${search_constants.SEARCH_CLASS_NAMES.messageNoResults}">
53
51
  ${this.searchPhrase} -
54
- <button
55
- class="${search_constants.SEARCH_CLASS_NAMES.messageText}"
56
- @click="${this.handleGoToResults}"
57
- type="button"
58
- data-search-item-id="${this._searchButtonId}"
59
- >
52
+ <button class="${search_constants.SEARCH_CLASS_NAMES.messageText}" @click="${this.handleGoToResults}" type="button">
60
53
  ${this.translations.searchInStore}
61
54
  </button>
62
55
  </p>`, () => lit.html `${when.when(this._hasHistoryAndEmptyPhrase(), () => lit.html `<p class="${search_constants.SEARCH_CLASS_NAMES.message} ${search_constants.SEARCH_CLASS_NAMES.messageWithHistory}">
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA,iBAAiB,8DAAkE;AACnF,mBAAmB,2EAAmF;AACtG;AACA,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -31,14 +31,13 @@ exports.HSearchProducerContent = class HSearchProducerContent extends phoenix_li
31
31
  ${repeat.repeat(this.producers, (producer, index) => {
32
32
  var _a, _b;
33
33
  return lit.html `<li
34
- class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(this.initialItemIds.producers + index) ===
34
+ class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${this.initialItemIds.producers + index ===
35
35
  this.activeItemId
36
36
  ? search_constants.SEARCH_CLASS_NAMES.itemActive
37
37
  : ''}"
38
- data-search-item-id="${this.searchId}${this.initialItemIds.producers + index}"
38
+ data-search-item-id="${this.initialItemIds.producers + index}"
39
39
  aria-label=${this.producerAriaLabel ? `${this.producerAriaLabel} ${producer.name}` : undefined}
40
40
  tabindex="0"
41
- role="option"
42
41
  >
43
42
  <a
44
43
  href="${producer.url}"
@@ -59,13 +58,9 @@ tslib_es6.__decorate([
59
58
  tslib_es6.__metadata("design:type", Array)
60
59
  ], exports.HSearchProducerContent.prototype, "producers", void 0);
61
60
  tslib_es6.__decorate([
62
- decorators.property({ type: String, attribute: 'active-item-id' }),
63
- tslib_es6.__metadata("design:type", String)
61
+ decorators.property({ type: Number, attribute: 'active-item-id' }),
62
+ tslib_es6.__metadata("design:type", Number)
64
63
  ], exports.HSearchProducerContent.prototype, "activeItemId", void 0);
65
- tslib_es6.__decorate([
66
- decorators.property({ type: String, attribute: 'search-id' }),
67
- tslib_es6.__metadata("design:type", String)
68
- ], exports.HSearchProducerContent.prototype, "searchId", void 0);
69
64
  tslib_es6.__decorate([
70
65
  decorators.property({ type: Object, reflect: true }),
71
66
  tslib_es6.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -44,14 +44,13 @@ exports.HSearchProductContent = class HSearchProductContent extends phoenix_ligh
44
44
  ${repeat.repeat(this.products, (product, index) => {
45
45
  var _a, _b;
46
46
  return lit.html ` <li
47
- class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(this.initialItemIds.products + index) ===
47
+ class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${this.initialItemIds.products + index ===
48
48
  this.activeItemId
49
49
  ? search_constants.SEARCH_CLASS_NAMES.itemActive
50
50
  : ''}"
51
- data-search-item-id="${this.searchId}${this.initialItemIds.products + index}"
51
+ data-search-item-id="${this.initialItemIds.products + index}"
52
52
  aria-label=${this.productAriaLabel ? `${this.productAriaLabel} ${product.name}` : undefined}
53
53
  tabindex="0"
54
- role="option"
55
54
  >
56
55
  <a
57
56
  href="${product.url}"
@@ -100,13 +99,9 @@ tslib_es6.__decorate([
100
99
  tslib_es6.__metadata("design:type", Object)
101
100
  ], exports.HSearchProductContent.prototype, "settings", void 0);
102
101
  tslib_es6.__decorate([
103
- decorators.property({ type: String, attribute: 'active-item-id' }),
104
- tslib_es6.__metadata("design:type", String)
102
+ decorators.property({ type: Number, attribute: 'active-item-id' }),
103
+ tslib_es6.__metadata("design:type", Number)
105
104
  ], exports.HSearchProductContent.prototype, "activeItemId", void 0);
106
- tslib_es6.__decorate([
107
- decorators.property({ type: String, attribute: 'search-id' }),
108
- tslib_es6.__metadata("design:type", String)
109
- ], exports.HSearchProductContent.prototype, "searchId", void 0);
110
105
  tslib_es6.__decorate([
111
106
  decorators.property({ type: Object, reflect: true }),
112
107
  tslib_es6.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -70,7 +70,6 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
70
70
  ${when.when(((_a = this.results.suggestions) === null || _a === void 0 ? void 0 : _a.length) || ((_b = this.results.categories) === null || _b === void 0 ? void 0 : _b.length), () => lit.html ` <h-search-suggestion-content
71
71
  class="${search_constants.SEARCH_CLASS_NAMES.section}"
72
72
  active-item-id="${this.activeItemId}"
73
- search-id="${this.searchId}"
74
73
  .initialItemIds="${this._getInitialItemsIds()}"
75
74
  .translations="${this.translations}"
76
75
  locale="${this.locale}"
@@ -85,7 +84,6 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
85
84
  .products="${this.results.products}"
86
85
  .settings="${this.settings}"
87
86
  active-item-id="${this.activeItemId}"
88
- search-id="${this.searchId}"
89
87
  .initialItemIds="${this._getInitialItemsIds()}"
90
88
  .translations="${this.translations}"
91
89
  .productAriaLabel=${this.settings.suggesterProductItemAriaLabel}
@@ -95,7 +93,7 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
95
93
  class="${search_constants.SEARCH_CLASS_NAMES.productButton}"
96
94
  @click="${this.handleLoadMoreProducts}"
97
95
  type="button"
98
- data-search-item-id="${this.searchId}${this._loadMoreButtonId}"
96
+ data-search-item-id="${this._loadMoreButtonId}"
99
97
  >
100
98
  ${this.translations.loadMore}
101
99
  </button>`), () => lit.html `
@@ -103,7 +101,7 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
103
101
  class="${search_constants.SEARCH_CLASS_NAMES.productButton}"
104
102
  @click="${this.handleGoToProductsFor}"
105
103
  type="button"
106
- data-search-item-id="${this.searchId}${this._goToProductsForButtonId}"
104
+ data-search-item-id="${this._goToProductsForButtonId}"
107
105
  >
108
106
  ${this.translations.goToProductsFor}: <strong>${this._getSearchPhrase()}</strong>
109
107
  </button>
@@ -114,7 +112,6 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
114
112
  class="${search_constants.SEARCH_CLASS_NAMES.section}"
115
113
  .producers="${this.results.producers}"
116
114
  active-item-id="${this.activeItemId}"
117
- search-id="${this.searchId}"
118
115
  .initialItemIds="${this._getInitialItemsIds()}"
119
116
  .translations="${this.translations}"
120
117
  search-phrase="${this.searchPhrase}"
@@ -145,13 +142,9 @@ tslib_es6.__decorate([
145
142
  tslib_es6.__metadata("design:type", String)
146
143
  ], exports.HSearchResults.prototype, "locale", void 0);
147
144
  tslib_es6.__decorate([
148
- decorators.property({ type: String, attribute: 'active-item-id' }),
149
- tslib_es6.__metadata("design:type", String)
145
+ decorators.property({ type: Number, attribute: 'active-item-id' }),
146
+ tslib_es6.__metadata("design:type", Number)
150
147
  ], exports.HSearchResults.prototype, "activeItemId", void 0);
151
- tslib_es6.__decorate([
152
- decorators.property({ type: String, attribute: 'search-id' }),
153
- tslib_es6.__metadata("design:type", String)
154
- ], exports.HSearchResults.prototype, "searchId", void 0);
155
148
  tslib_es6.__decorate([
156
149
  decorators.property({ type: Object }),
157
150
  tslib_es6.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA,iBAAiB,8DAAkE;AACnF,mBAAmB,2EAAmF;AACtG;AACA,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA,iBAAiB,8DAAkE;AACnF,mBAAmB,2EAAmF;AACtG;AACA,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -107,16 +107,13 @@ exports.HSearchSuggestionContent = class HSearchSuggestionContent extends phoeni
107
107
  <ul>
108
108
  ${repeat.repeat(this._suggestionsData, (suggestion, index) => lit.html `<li
109
109
  @click=${() => this._handleSuggestion(suggestion.suggestionName, suggestion.type)}
110
- class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(index) === this.activeItemId
110
+ class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${index === this.activeItemId
111
111
  ? search_constants.SEARCH_CLASS_NAMES.itemActive
112
112
  : ''}"
113
113
  data-suggested-value="${suggestion.suggestionName}"
114
- data-search-item-id="${this.searchId}${index}"
115
- aria-label="${this.suggestionAriaLabel ?
116
- `${this.suggestionAriaLabel} ${suggestion.suggestionName || suggestion.categoryName}` :
117
- ''}"
114
+ data-search-item-id="${index}"
115
+ aria-label=${this.suggestionAriaLabel ? `${this.suggestionAriaLabel} ${suggestion.suggestionName}` : undefined}
118
116
  tabindex="0"
119
- role="option"
120
117
  >
121
118
  ${when.when(suggestion.type === search_constants.SUGGESTIONS_TYPE.suggestion, () => lit.html ` <span> ${this._getMatchedPhrase(suggestion.suggestionName)} </span>
122
119
  <h-icon
@@ -139,13 +136,9 @@ exports.HSearchSuggestionContent = class HSearchSuggestionContent extends phoeni
139
136
  }
140
137
  };
141
138
  tslib_es6.__decorate([
142
- decorators.property({ type: String, attribute: 'active-item-id' }),
143
- tslib_es6.__metadata("design:type", String)
139
+ decorators.property({ type: Number, attribute: 'active-item-id' }),
140
+ tslib_es6.__metadata("design:type", Number)
144
141
  ], exports.HSearchSuggestionContent.prototype, "activeItemId", void 0);
145
- tslib_es6.__decorate([
146
- decorators.property({ type: String, attribute: 'search-id' }),
147
- tslib_es6.__metadata("design:type", String)
148
- ], exports.HSearchSuggestionContent.prototype, "searchId", void 0);
149
142
  tslib_es6.__decorate([
150
143
  decorators.property({ type: Object, reflect: true }),
151
144
  tslib_es6.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,qDAAyD;AACjF;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,2EAAmF;AACtG;AACA,qBAAqB,6EAAqF;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -102,11 +102,11 @@ var search_input = require('./components/form/search/subcomponents/input/search_
102
102
  var search_results = require('./components/form/search/subcomponents/results/search_results.js');
103
103
  var search_history_load_more = require('./components/form/search/subcomponents/history/search_history_load_more.js');
104
104
  var search_history = require('./components/form/search/subcomponents/history/search_history.js');
105
- var search_clear = require('./components/form/search/subcomponents/buttons/search_clear.js');
106
- var search_message = require('./components/form/search/subcomponents/message/search_message.js');
107
105
  var search = require('./components/form/search/search.js');
108
106
  var search_submit = require('./components/form/search/subcomponents/buttons/search_submit.js');
107
+ var search_clear = require('./components/form/search/subcomponents/buttons/search_clear.js');
109
108
  var search_close = require('./components/form/search/subcomponents/buttons/search_close.js');
109
+ var search_message = require('./components/form/search/subcomponents/message/search_message.js');
110
110
  var search_history_remove = require('./components/form/search/subcomponents/history/search_history_remove.js');
111
111
  var search_history_select = require('./components/form/search/subcomponents/history/search_history_select.js');
112
112
  var search_suggestion_content = require('./components/form/search/subcomponents/results/search_suggestion_content.js');
@@ -610,34 +610,34 @@ Object.defineProperty(exports, 'HSearchHistory', {
610
610
  return search_history.HSearchHistory;
611
611
  }
612
612
  });
613
- Object.defineProperty(exports, 'HSearchClear', {
613
+ Object.defineProperty(exports, 'HSearch', {
614
614
  enumerable: true,
615
615
  get: function () {
616
- return search_clear.HSearchClear;
616
+ return search.HSearch;
617
617
  }
618
618
  });
619
- Object.defineProperty(exports, 'HSearchMessage', {
619
+ Object.defineProperty(exports, 'HSearchSubmit', {
620
620
  enumerable: true,
621
621
  get: function () {
622
- return search_message.HSearchMessage;
622
+ return search_submit.HSearchSubmit;
623
623
  }
624
624
  });
625
- Object.defineProperty(exports, 'HSearch', {
625
+ Object.defineProperty(exports, 'HSearchClear', {
626
626
  enumerable: true,
627
627
  get: function () {
628
- return search.HSearch;
628
+ return search_clear.HSearchClear;
629
629
  }
630
630
  });
631
- Object.defineProperty(exports, 'HSearchSubmit', {
631
+ Object.defineProperty(exports, 'HSearchClose', {
632
632
  enumerable: true,
633
633
  get: function () {
634
- return search_submit.HSearchSubmit;
634
+ return search_close.HSearchClose;
635
635
  }
636
636
  });
637
- Object.defineProperty(exports, 'HSearchClose', {
637
+ Object.defineProperty(exports, 'HSearchMessage', {
638
638
  enumerable: true,
639
639
  get: function () {
640
- return search_close.HSearchClose;
640
+ return search_message.HSearchMessage;
641
641
  }
642
642
  });
643
643
  Object.defineProperty(exports, 'HSearchHistoryRemove', {
@@ -1,12 +1,12 @@
1
1
  import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
2
2
  export declare class HAccordionToggler extends PhoenixLightLitElement {
3
- private _btnController;
4
3
  private _contextConsumer;
5
4
  private _accordionGroupProps;
6
5
  private _accordionGroupPropsObserver;
7
6
  constructor();
8
7
  connectedCallback(): Promise<void>;
9
8
  private _setAttributes;
9
+ private _emitTogglerClickedWithKeyboard;
10
10
  private _emitTogglerClicked;
11
11
  disconnectedCallback(): void;
12
12
  }
@@ -1,7 +1,6 @@
1
1
  import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
2
2
  import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
3
3
  import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
4
- import { BtnController } from '../../controllers/btn_controller/btn_controller.js';
5
4
  import { Observer } from '../../core/classes/observer/observer.js';
6
5
  import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
7
6
  import { ACCORDION_EVENTS, ACCORDION_CONTEXTS } from './accordion_constants.js';
@@ -9,10 +8,16 @@ import { ACCORDION_EVENTS, ACCORDION_CONTEXTS } from './accordion_constants.js';
9
8
  let HAccordionToggler = class HAccordionToggler extends PhoenixLightLitElement {
10
9
  constructor() {
11
10
  super();
11
+ this._emitTogglerClickedWithKeyboard = (ev) => {
12
+ if (ev.key !== ' ' && ev.key !== 'Enter')
13
+ return;
14
+ if (this.getAttribute('aria-disabled') === 'true')
15
+ return;
16
+ this._emitTogglerClicked();
17
+ };
12
18
  this._emitTogglerClicked = () => {
13
19
  this.emitCustomEvent(ACCORDION_EVENTS.toggle);
14
20
  };
15
- this._btnController = new BtnController(this, this._emitTogglerClicked);
16
21
  this._contextConsumer = new ContextConsumerController(this);
17
22
  }
18
23
  async connectedCallback() {
@@ -21,12 +26,21 @@ let HAccordionToggler = class HAccordionToggler extends PhoenixLightLitElement {
21
26
  this._accordionGroupPropsObserver = new Observer((accordionProps) => this._setAttributes(accordionProps));
22
27
  this._accordionGroupProps.subscribe(this._accordionGroupPropsObserver);
23
28
  this.addEventListener('click', this._emitTogglerClicked);
29
+ this.addEventListener('keydown', this._emitTogglerClickedWithKeyboard);
24
30
  }
25
31
  _setAttributes({ regionId, opened, controlsId, disabled }) {
26
32
  this.setAttribute('id', regionId);
27
33
  this.setAttribute('aria-expanded', opened ? 'true' : 'false');
28
34
  this.setAttribute('aria-controls', controlsId);
29
35
  this.setAttribute('aria-disabled', disabled ? 'true' : 'false');
36
+ if (disabled) {
37
+ this.removeAttribute('role');
38
+ this.removeAttribute('tabindex');
39
+ }
40
+ else {
41
+ this.setAttribute('role', 'button');
42
+ this.setAttribute('tabindex', '0');
43
+ }
30
44
  }
31
45
  disconnectedCallback() {
32
46
  if (this._accordionGroupProps) {
@@ -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;"}
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;"}
@@ -12,12 +12,8 @@ export declare class HSearch extends PhoenixLightLitElement {
12
12
  private _searchContextObserver;
13
13
  private _searchInput;
14
14
  private _inputField;
15
- private _searchForm;
16
- private _id;
17
- private _searchContentContainerId;
18
15
  private _searchResultsRef;
19
16
  private _searchHistoryRef;
20
- private _searchMessageRef;
21
17
  private _shouldShowHistory;
22
18
  private _shouldShowResults;
23
19
  private _shouldShowMessage;
@@ -28,7 +24,6 @@ export declare class HSearch extends PhoenixLightLitElement {
28
24
  private _historyContext;
29
25
  private _activeItemId;
30
26
  private _translations;
31
- private _containerRole;
32
27
  connectedCallback(): Promise<void>;
33
28
  disconnectedCallback(): void;
34
29
  private _setupContext;
@@ -42,31 +37,18 @@ export declare class HSearch extends PhoenixLightLitElement {
42
37
  private _hideHistorySuggestionsAndResults;
43
38
  private _displayResults;
44
39
  private _handleToggleHistoryAndResults;
45
- private _toggleSearchInputAttributes;
46
- private _toggleSearchContainerAttributes;
40
+ private _toggleSearchInputAria;
47
41
  private _bindKeys;
48
- private _handleSearchTabNavigation;
49
- private _focusOnPreviousElementBeforeSearchInput;
50
- private _focusOnNextElementAfterSearchInput;
51
- private _preventScrollingOnSearchContentBrowsing;
52
- private _handleForwardListFocus;
53
- private _handleForwardGridFocus;
54
- private _handleForwardFocus;
55
- private _handleMoveToInputField;
56
- private _handleBackwardListFocus;
57
- private _handleBackwardGridFocus;
58
- private _handleBackwardFocus;
42
+ private _focusOutsideActiveItemsForward;
43
+ private _focusOutsideActiveItemsBackward;
44
+ private _getSearchItemsCount;
45
+ private _scroll;
59
46
  private _handleChooseSearchItem;
60
47
  private _resetSearchView;
61
- private _setActiveItemId;
62
- private _handleFocusOnInputWithCaretEnd;
63
- private _handleFocusOnInputWithCaretStart;
64
- private _handleWriteableCharacter;
65
48
  private _submitSearchPhrase;
66
49
  private _hideSuggesterOnClickOutside;
67
50
  private _switchTypeOfSearchView;
68
51
  private _isSuggesterLayerVisible;
69
- private _preventSubmitOnSearchClear;
70
52
  private _handleOpenSearch;
71
53
  private _handleOpenSearchWithKeyboard;
72
54
  protected render(): TemplateResult;