@shoper/phoenix_design_system 1.11.10-0 → 1.11.10-10
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/cjs/packages/phoenix/src/components/form/file_picker/file_picker.js +0 -1
- package/build/cjs/packages/phoenix/src/components/form/file_picker/file_picker.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/search.js +247 -66
- package/build/cjs/packages/phoenix/src/components/form/search/search.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/search_constants.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +5 -0
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +26 -7
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +20 -10
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +15 -4
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +15 -4
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +22 -3
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +17 -4
- package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +1 -1
- package/build/cjs/packages/phoenix/src/index.js +6 -6
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.js +0 -1
- package/build/esm/packages/phoenix/src/components/form/file_picker/file_picker.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search.d.ts +22 -2
- package/build/esm/packages/phoenix/src/components/form/search/search.js +248 -67
- package/build/esm/packages/phoenix/src/components/form/search/search.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search_constants.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search_constants.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/search_types.d.ts +10 -0
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.d.ts +2 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js +5 -0
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/buttons/search_clear.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.d.ts +2 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js +26 -7
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/history/search_history.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.d.ts +2 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js +21 -11
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.d.ts +3 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js +15 -4
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_producer_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.d.ts +3 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js +15 -4
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_product_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.d.ts +4 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js +22 -3
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_results.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.d.ts +3 -1
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js +17 -4
- package/build/esm/packages/phoenix/src/components/form/search/subcomponents/results/search_suggestion_content.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.js +1 -1
- package/build/esm/packages/phoenix/src/index.js +2 -2
- package/package.json +1 -1
package/build/cjs/packages/phoenix/src/components/form/search/subcomponents/input/search_input.js
CHANGED
|
@@ -12,15 +12,25 @@ 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
|
+
};
|
|
15
24
|
}
|
|
16
25
|
connectedCallback() {
|
|
17
26
|
super.connectedCallback();
|
|
18
|
-
this.
|
|
19
|
-
if (!this.
|
|
27
|
+
this.input = this.querySelector('input[type="search"]');
|
|
28
|
+
if (!this.input) {
|
|
20
29
|
throw new Error('Search input not found');
|
|
21
30
|
}
|
|
22
31
|
this._setupInitialValue();
|
|
23
32
|
this._setupListeners();
|
|
33
|
+
this._setupAttributes();
|
|
24
34
|
}
|
|
25
35
|
_setupInitialValue() {
|
|
26
36
|
const searchQueryRegExp = /\/searchquery\/([^/]{1,})/;
|
|
@@ -28,7 +38,7 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
|
|
|
28
38
|
if (!searchPhraseRegArray)
|
|
29
39
|
return;
|
|
30
40
|
const searchQuery = searchPhraseRegArray[1].replace(/\+/g, ' ');
|
|
31
|
-
this.
|
|
41
|
+
this.input.value = decodeURIComponent(this._deserializeInputPhrase(searchQuery));
|
|
32
42
|
}
|
|
33
43
|
_deserializeInputPhrase(value) {
|
|
34
44
|
if (value.indexOf('%2f') !== -1) {
|
|
@@ -46,14 +56,14 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
|
|
|
46
56
|
return value;
|
|
47
57
|
}
|
|
48
58
|
_setupListeners() {
|
|
49
|
-
this.
|
|
59
|
+
this.input.addEventListener('focusin', (ev) => {
|
|
50
60
|
this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.focusin, {
|
|
51
61
|
detail: {
|
|
52
62
|
searchPhrase: ev.target.value
|
|
53
63
|
}
|
|
54
64
|
});
|
|
55
65
|
});
|
|
56
|
-
this.
|
|
66
|
+
this.input.addEventListener('keyup', (ev) => {
|
|
57
67
|
if (ev.key === 'ArrowUp' || ev.key === 'ArrowDown' || ev.key === 'Escape')
|
|
58
68
|
return;
|
|
59
69
|
if (ev.key !== 'Enter') {
|
|
@@ -74,8 +84,8 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
|
|
|
74
84
|
}
|
|
75
85
|
});
|
|
76
86
|
});
|
|
77
|
-
this.
|
|
78
|
-
if (this.
|
|
87
|
+
this.input.addEventListener('search', (ev) => {
|
|
88
|
+
if (this.input.value !== '') {
|
|
79
89
|
return;
|
|
80
90
|
}
|
|
81
91
|
this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.search, {
|
|
@@ -88,13 +98,13 @@ exports.HSearchInput = class HSearchInput extends phoenix_light_lit_element.Phoe
|
|
|
88
98
|
if (!ev.detail || ev.detail.moduleInstanceId !== this.moduleInstanceId)
|
|
89
99
|
return;
|
|
90
100
|
this._isSearchPhraseCleared = true;
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
101
|
+
this.input.value = '';
|
|
102
|
+
this.input.focus();
|
|
93
103
|
});
|
|
94
104
|
document.addEventListener(search_constants.SEARCH_CUSTOM_EVENT_NAMES.updateSearchPhrase, (ev) => {
|
|
95
105
|
if (!ev.detail || ev.detail.moduleInstanceId !== this.moduleInstanceId)
|
|
96
106
|
return;
|
|
97
|
-
this.
|
|
107
|
+
this.input.value = ev.detail.searchPhrase;
|
|
98
108
|
this.emitCustomEvent(search_constants.SEARCH_CUSTOM_EVENT_NAMES.keyup, {
|
|
99
109
|
detail: {
|
|
100
110
|
searchPhrase: ev.detail.searchPhrase
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -31,11 +31,14 @@ 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} ${this.initialItemIds.producers + index ===
|
|
34
|
+
class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(this.initialItemIds.producers + index) ===
|
|
35
35
|
this.activeItemId
|
|
36
36
|
? search_constants.SEARCH_CLASS_NAMES.itemActive
|
|
37
37
|
: ''}"
|
|
38
|
-
data-search-item-id="${this.initialItemIds.producers + index}"
|
|
38
|
+
data-search-item-id="${this.searchId}${this.initialItemIds.producers + index}"
|
|
39
|
+
aria-label=${this.producerAriaLabel ? `${this.producerAriaLabel} ${producer.name}` : undefined}
|
|
40
|
+
tabindex="0"
|
|
41
|
+
role="option"
|
|
39
42
|
>
|
|
40
43
|
<a
|
|
41
44
|
href="${producer.url}"
|
|
@@ -56,9 +59,13 @@ tslib_es6.__decorate([
|
|
|
56
59
|
tslib_es6.__metadata("design:type", Array)
|
|
57
60
|
], exports.HSearchProducerContent.prototype, "producers", void 0);
|
|
58
61
|
tslib_es6.__decorate([
|
|
59
|
-
decorators.property({ type:
|
|
60
|
-
tslib_es6.__metadata("design:type",
|
|
62
|
+
decorators.property({ type: String, attribute: 'active-item-id' }),
|
|
63
|
+
tslib_es6.__metadata("design:type", String)
|
|
61
64
|
], 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);
|
|
62
69
|
tslib_es6.__decorate([
|
|
63
70
|
decorators.property({ type: Object, reflect: true }),
|
|
64
71
|
tslib_es6.__metadata("design:type", Object)
|
|
@@ -71,6 +78,10 @@ tslib_es6.__decorate([
|
|
|
71
78
|
decorators.property({ type: String, attribute: 'search-phrase' }),
|
|
72
79
|
tslib_es6.__metadata("design:type", String)
|
|
73
80
|
], exports.HSearchProducerContent.prototype, "searchPhrase", void 0);
|
|
81
|
+
tslib_es6.__decorate([
|
|
82
|
+
decorators.property({ type: String }),
|
|
83
|
+
tslib_es6.__metadata("design:type", String)
|
|
84
|
+
], exports.HSearchProducerContent.prototype, "producerAriaLabel", void 0);
|
|
74
85
|
exports.HSearchProducerContent = tslib_es6.__decorate([
|
|
75
86
|
phoenix_custom_element.phoenixCustomElement(search_constants.SEARCH_COMPONENT_NAMES.searchProducerContent)
|
|
76
87
|
], exports.HSearchProducerContent);
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -44,11 +44,14 @@ 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} ${this.initialItemIds.products + index ===
|
|
47
|
+
class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(this.initialItemIds.products + index) ===
|
|
48
48
|
this.activeItemId
|
|
49
49
|
? search_constants.SEARCH_CLASS_NAMES.itemActive
|
|
50
50
|
: ''}"
|
|
51
|
-
data-search-item-id="${this.initialItemIds.products + index}"
|
|
51
|
+
data-search-item-id="${this.searchId}${this.initialItemIds.products + index}"
|
|
52
|
+
aria-label=${this.productAriaLabel ? `${this.productAriaLabel} ${product.name}` : undefined}
|
|
53
|
+
tabindex="0"
|
|
54
|
+
role="option"
|
|
52
55
|
>
|
|
53
56
|
<a
|
|
54
57
|
href="${product.url}"
|
|
@@ -97,9 +100,13 @@ tslib_es6.__decorate([
|
|
|
97
100
|
tslib_es6.__metadata("design:type", Object)
|
|
98
101
|
], exports.HSearchProductContent.prototype, "settings", void 0);
|
|
99
102
|
tslib_es6.__decorate([
|
|
100
|
-
decorators.property({ type:
|
|
101
|
-
tslib_es6.__metadata("design:type",
|
|
103
|
+
decorators.property({ type: String, attribute: 'active-item-id' }),
|
|
104
|
+
tslib_es6.__metadata("design:type", String)
|
|
102
105
|
], 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);
|
|
103
110
|
tslib_es6.__decorate([
|
|
104
111
|
decorators.property({ type: Object, reflect: true }),
|
|
105
112
|
tslib_es6.__metadata("design:type", Object)
|
|
@@ -108,6 +115,10 @@ tslib_es6.__decorate([
|
|
|
108
115
|
decorators.property({ type: Object }),
|
|
109
116
|
tslib_es6.__metadata("design:type", Object)
|
|
110
117
|
], exports.HSearchProductContent.prototype, "translations", void 0);
|
|
118
|
+
tslib_es6.__decorate([
|
|
119
|
+
decorators.property({ type: String }),
|
|
120
|
+
tslib_es6.__metadata("design:type", String)
|
|
121
|
+
], exports.HSearchProductContent.prototype, "productAriaLabel", void 0);
|
|
111
122
|
exports.HSearchProductContent = tslib_es6.__decorate([
|
|
112
123
|
phoenix_custom_element.phoenixCustomElement(search_constants.SEARCH_COMPONENT_NAMES.searchProductContent)
|
|
113
124
|
], exports.HSearchProductContent);
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -7,6 +7,7 @@ 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');
|
|
10
11
|
var when = require('../../../../../../../../external/lit/external/lit-html/directives/when.js');
|
|
11
12
|
var search_constants = require('../../search_constants.js');
|
|
12
13
|
var isEqual = require('../../../../../../../../external/lodash/isEqual.js');
|
|
@@ -14,6 +15,8 @@ var isEqual = require('../../../../../../../../external/lodash/isEqual.js');
|
|
|
14
15
|
exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
15
16
|
constructor() {
|
|
16
17
|
super(...arguments);
|
|
18
|
+
this._loadMoreButtonId = v4['default']();
|
|
19
|
+
this._goToProductsForButtonId = v4['default']();
|
|
17
20
|
this.searchPhrase = '';
|
|
18
21
|
this.translations = {};
|
|
19
22
|
this._productPage = 1;
|
|
@@ -67,11 +70,13 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
|
|
|
67
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
|
|
68
71
|
class="${search_constants.SEARCH_CLASS_NAMES.section}"
|
|
69
72
|
active-item-id="${this.activeItemId}"
|
|
73
|
+
search-id="${this.searchId}"
|
|
70
74
|
.initialItemIds="${this._getInitialItemsIds()}"
|
|
71
75
|
.translations="${this.translations}"
|
|
72
76
|
locale="${this.locale}"
|
|
73
77
|
view="${this.view}"
|
|
74
78
|
module-instance-id="${this.moduleInstanceId}"
|
|
79
|
+
.suggestionAriaLabel=${this.settings.suggesterItemAriaLabel}
|
|
75
80
|
>
|
|
76
81
|
</h-search-suggestion-content>`)}
|
|
77
82
|
${when.when((_c = this.results.products) === null || _c === void 0 ? void 0 : _c.length, () => lit.html `
|
|
@@ -80,18 +85,26 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
|
|
|
80
85
|
.products="${this.results.products}"
|
|
81
86
|
.settings="${this.settings}"
|
|
82
87
|
active-item-id="${this.activeItemId}"
|
|
88
|
+
search-id="${this.searchId}"
|
|
83
89
|
.initialItemIds="${this._getInitialItemsIds()}"
|
|
84
90
|
.translations="${this.translations}"
|
|
91
|
+
.productAriaLabel=${this.settings.suggesterProductItemAriaLabel}
|
|
85
92
|
></h-search-product-content>
|
|
86
93
|
|
|
87
94
|
${when.when(this.settings.isLoadingMoreSearchResultsEnabled, () => when.when(this._areMoreProductsAvailable(), () => lit.html `<button
|
|
88
95
|
class="${search_constants.SEARCH_CLASS_NAMES.productButton}"
|
|
89
96
|
@click="${this.handleLoadMoreProducts}"
|
|
90
97
|
type="button"
|
|
98
|
+
data-search-item-id="${this.searchId}${this._loadMoreButtonId}"
|
|
91
99
|
>
|
|
92
100
|
${this.translations.loadMore}
|
|
93
101
|
</button>`), () => lit.html `
|
|
94
|
-
<button
|
|
102
|
+
<button
|
|
103
|
+
class="${search_constants.SEARCH_CLASS_NAMES.productButton}"
|
|
104
|
+
@click="${this.handleGoToProductsFor}"
|
|
105
|
+
type="button"
|
|
106
|
+
data-search-item-id="${this.searchId}${this._goToProductsForButtonId}"
|
|
107
|
+
>
|
|
95
108
|
${this.translations.goToProductsFor}: <strong>${this._getSearchPhrase()}</strong>
|
|
96
109
|
</button>
|
|
97
110
|
`)}
|
|
@@ -101,9 +114,11 @@ exports.HSearchResults = class HSearchResults extends phoenix_light_lit_element.
|
|
|
101
114
|
class="${search_constants.SEARCH_CLASS_NAMES.section}"
|
|
102
115
|
.producers="${this.results.producers}"
|
|
103
116
|
active-item-id="${this.activeItemId}"
|
|
117
|
+
search-id="${this.searchId}"
|
|
104
118
|
.initialItemIds="${this._getInitialItemsIds()}"
|
|
105
119
|
.translations="${this.translations}"
|
|
106
120
|
search-phrase="${this.searchPhrase}"
|
|
121
|
+
.producerAriaLabel=${this.settings.suggesterProducerItemAriaLabel}
|
|
107
122
|
></h-search-producer-content>`)}
|
|
108
123
|
`;
|
|
109
124
|
});
|
|
@@ -130,9 +145,13 @@ tslib_es6.__decorate([
|
|
|
130
145
|
tslib_es6.__metadata("design:type", String)
|
|
131
146
|
], exports.HSearchResults.prototype, "locale", void 0);
|
|
132
147
|
tslib_es6.__decorate([
|
|
133
|
-
decorators.property({ type:
|
|
134
|
-
tslib_es6.__metadata("design:type",
|
|
148
|
+
decorators.property({ type: String, attribute: 'active-item-id' }),
|
|
149
|
+
tslib_es6.__metadata("design:type", String)
|
|
135
150
|
], 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);
|
|
136
155
|
tslib_es6.__decorate([
|
|
137
156
|
decorators.property({ type: Object }),
|
|
138
157
|
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,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;"}
|
|
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;"}
|
|
@@ -107,11 +107,16 @@ 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} ${index === this.activeItemId
|
|
110
|
+
class="${search_constants.SEARCH_CLASS_NAMES.item} ${search_constants.SEARCH_CLASS_NAMES.itemHoverable} ${String(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="${index}"
|
|
114
|
+
data-search-item-id="${this.searchId}${index}"
|
|
115
|
+
aria-label="${this.suggestionAriaLabel ?
|
|
116
|
+
`${this.suggestionAriaLabel} ${suggestion.suggestionName || suggestion.categoryName}` :
|
|
117
|
+
''}"
|
|
118
|
+
tabindex="0"
|
|
119
|
+
role="option"
|
|
115
120
|
>
|
|
116
121
|
${when.when(suggestion.type === search_constants.SUGGESTIONS_TYPE.suggestion, () => lit.html ` <span> ${this._getMatchedPhrase(suggestion.suggestionName)} </span>
|
|
117
122
|
<h-icon
|
|
@@ -134,9 +139,13 @@ exports.HSearchSuggestionContent = class HSearchSuggestionContent extends phoeni
|
|
|
134
139
|
}
|
|
135
140
|
};
|
|
136
141
|
tslib_es6.__decorate([
|
|
137
|
-
decorators.property({ type:
|
|
138
|
-
tslib_es6.__metadata("design:type",
|
|
142
|
+
decorators.property({ type: String, attribute: 'active-item-id' }),
|
|
143
|
+
tslib_es6.__metadata("design:type", String)
|
|
139
144
|
], 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);
|
|
140
149
|
tslib_es6.__decorate([
|
|
141
150
|
decorators.property({ type: Object, reflect: true }),
|
|
142
151
|
tslib_es6.__metadata("design:type", Object)
|
|
@@ -157,6 +166,10 @@ tslib_es6.__decorate([
|
|
|
157
166
|
decorators.property({ type: String, attribute: 'module-instance-id' }),
|
|
158
167
|
tslib_es6.__metadata("design:type", String)
|
|
159
168
|
], exports.HSearchSuggestionContent.prototype, "moduleInstanceId", void 0);
|
|
169
|
+
tslib_es6.__decorate([
|
|
170
|
+
decorators.property({ type: String }),
|
|
171
|
+
tslib_es6.__metadata("design:type", String)
|
|
172
|
+
], exports.HSearchSuggestionContent.prototype, "suggestionAriaLabel", void 0);
|
|
160
173
|
tslib_es6.__decorate([
|
|
161
174
|
decorators.state(),
|
|
162
175
|
tslib_es6.__metadata("design:type", String)
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -301,7 +301,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
301
301
|
offset=${this.offset}
|
|
302
302
|
content-width="full"
|
|
303
303
|
>
|
|
304
|
-
<h-dropdown-toggler name=${this.controlName}
|
|
304
|
+
<h-dropdown-toggler name=${this.controlName}> ${this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler)} </h-dropdown-toggler>
|
|
305
305
|
|
|
306
306
|
<h-dropdown-content
|
|
307
307
|
class="${select_constants.SELECT_CSS_CLASSES.selectContent} ${this.error ? select_constants.SELECT_CSS_CLASSES.selectContentError : ''}"
|
|
@@ -99,10 +99,10 @@ var display_stepper = require('./components/form/input_stepper/display_stepper.j
|
|
|
99
99
|
var button_stepper = require('./components/form/input_stepper/button_stepper.js');
|
|
100
100
|
var search_constants = require('./components/form/search/search_constants.js');
|
|
101
101
|
var search_input = require('./components/form/search/subcomponents/input/search_input.js');
|
|
102
|
-
var
|
|
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
|
|
105
|
+
var search = require('./components/form/search/search.js');
|
|
106
106
|
var search_submit = require('./components/form/search/subcomponents/buttons/search_submit.js');
|
|
107
107
|
var search_clear = require('./components/form/search/subcomponents/buttons/search_clear.js');
|
|
108
108
|
var search_close = require('./components/form/search/subcomponents/buttons/search_close.js');
|
|
@@ -592,10 +592,10 @@ Object.defineProperty(exports, 'HSearchInput', {
|
|
|
592
592
|
return search_input.HSearchInput;
|
|
593
593
|
}
|
|
594
594
|
});
|
|
595
|
-
Object.defineProperty(exports, '
|
|
595
|
+
Object.defineProperty(exports, 'HSearchResults', {
|
|
596
596
|
enumerable: true,
|
|
597
597
|
get: function () {
|
|
598
|
-
return
|
|
598
|
+
return search_results.HSearchResults;
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
Object.defineProperty(exports, 'HSearchHistoryLoadMore', {
|
|
@@ -610,10 +610,10 @@ Object.defineProperty(exports, 'HSearchHistory', {
|
|
|
610
610
|
return search_history.HSearchHistory;
|
|
611
611
|
}
|
|
612
612
|
});
|
|
613
|
-
Object.defineProperty(exports, '
|
|
613
|
+
Object.defineProperty(exports, 'HSearch', {
|
|
614
614
|
enumerable: true,
|
|
615
615
|
get: function () {
|
|
616
|
-
return
|
|
616
|
+
return search.HSearch;
|
|
617
617
|
}
|
|
618
618
|
});
|
|
619
619
|
Object.defineProperty(exports, 'HSearchSubmit', {
|
|
@@ -93,7 +93,6 @@ let HFilePicker = class HFilePicker extends PhoenixLightLitElement {
|
|
|
93
93
|
control-id="${this.controlId}"
|
|
94
94
|
label-text="${this.labelText}"
|
|
95
95
|
label-icon-name="${ifDefined(this.labelIconName)}"
|
|
96
|
-
focus-priority
|
|
97
96
|
/>`
|
|
98
97
|
: nothing}
|
|
99
98
|
${((_b = this._file) === null || _b === void 0 ? void 0 : _b.name)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,+CAAmD;AAC1F;AACA;AACA;AACA;AACA,uBAAuB,0CAA8C;AACrE;AACA,eAAe,wDAA4D;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,uBAAuB,0CAA8C;AACrE;AACA,eAAe,wDAA4D;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,6 +12,10 @@ export declare class HSearch extends PhoenixLightLitElement {
|
|
|
12
12
|
private _searchContextObserver;
|
|
13
13
|
private _searchInput;
|
|
14
14
|
private _inputField;
|
|
15
|
+
private _id;
|
|
16
|
+
private _searchContentContainerId;
|
|
17
|
+
private _searchResultsRef;
|
|
18
|
+
private _searchHistoryRef;
|
|
15
19
|
private _shouldShowHistory;
|
|
16
20
|
private _shouldShowResults;
|
|
17
21
|
private _shouldShowMessage;
|
|
@@ -22,6 +26,7 @@ export declare class HSearch extends PhoenixLightLitElement {
|
|
|
22
26
|
private _historyContext;
|
|
23
27
|
private _activeItemId;
|
|
24
28
|
private _translations;
|
|
29
|
+
private _containerRole;
|
|
25
30
|
connectedCallback(): Promise<void>;
|
|
26
31
|
disconnectedCallback(): void;
|
|
27
32
|
private _setupContext;
|
|
@@ -34,11 +39,26 @@ export declare class HSearch extends PhoenixLightLitElement {
|
|
|
34
39
|
private _displayHistorySuggestions;
|
|
35
40
|
private _hideHistorySuggestionsAndResults;
|
|
36
41
|
private _displayResults;
|
|
42
|
+
private _handleToggleHistoryAndResults;
|
|
43
|
+
private _toggleSearchInputAttributes;
|
|
44
|
+
private _toggleSearchContainerAttributes;
|
|
37
45
|
private _bindKeys;
|
|
38
|
-
private
|
|
39
|
-
private
|
|
46
|
+
private _focusOnPreviousElementBeforeSearchInput;
|
|
47
|
+
private _focusOnNextElementAfterSearchInput;
|
|
48
|
+
private _preventScrollingOnSearchContentBrowsing;
|
|
49
|
+
private _handleForwardListFocus;
|
|
50
|
+
private _handleForwardGridFocus;
|
|
51
|
+
private _handleForwardFocus;
|
|
52
|
+
private _handleMoveToInputFieldOnArrowLeft;
|
|
53
|
+
private _handleMoveToInputFieldOnArrowRight;
|
|
54
|
+
private _handleBackwardListFocus;
|
|
55
|
+
private _handleBackwardGridFocus;
|
|
56
|
+
private _handleBackwardFocus;
|
|
40
57
|
private _handleChooseSearchItem;
|
|
41
58
|
private _resetSearchView;
|
|
59
|
+
private _setActiveItemId;
|
|
60
|
+
private _handleFocusOnInputWithMarkerEnd;
|
|
61
|
+
private _handleFocusOnInputWithMarkerStart;
|
|
42
62
|
private _submitSearchPhrase;
|
|
43
63
|
private _hideSuggesterOnClickOutside;
|
|
44
64
|
private _switchTypeOfSearchView;
|