@shoper/phoenix_design_system 1.4.3-2 → 1.4.3-3
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
|
|
6
|
+
var lit = require('lit');
|
|
6
7
|
var decorators = require('lit/decorators');
|
|
7
8
|
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
9
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
@@ -11,7 +12,6 @@ var context_consumer_controller = require('../../../core/context/context_consume
|
|
|
11
12
|
var behavior_subject = require('../../../core/classes/behavior_subject/behavior_subject.js');
|
|
12
13
|
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
13
14
|
var search_constants = require('./search_constants.js');
|
|
14
|
-
var development = require('lit/development');
|
|
15
15
|
var when = require('../../../../../../external/lit/external/lit-html/directives/when.js');
|
|
16
16
|
|
|
17
17
|
exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -153,11 +153,11 @@ exports.HSearch = class HSearch extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
153
153
|
this._shouldShowResults = false;
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
|
-
return
|
|
156
|
+
return lit.html `
|
|
157
157
|
${when.when(this._shouldShowHistory, () => {
|
|
158
|
-
return
|
|
158
|
+
return lit.html `<h-search-history .history="${this._historyLimitedContent}"></h-search-history>`;
|
|
159
159
|
})}
|
|
160
|
-
${when.when(this._shouldShowResults, () =>
|
|
160
|
+
${when.when(this._shouldShowResults, () => lit.html `<h-search-results .results="${this._searchResults}"></h-search-results>`)}
|
|
161
161
|
`;
|
|
162
162
|
}
|
|
163
163
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
+
import { html } from 'lit';
|
|
2
3
|
import { state } from 'lit/decorators';
|
|
3
4
|
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
4
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
@@ -7,7 +8,6 @@ import { ContextConsumerController } from '../../../core/context/context_consume
|
|
|
7
8
|
import { BehaviorSubject } from '../../../core/classes/behavior_subject/behavior_subject.js';
|
|
8
9
|
import { ContextProviderController } from '../../../core/context/context_provider_controller.js';
|
|
9
10
|
import { SEARCH_CONFIGURATION, SEARCH_CUSTOM_EVENT_NAMES, SEARCH_COMPONENT_NAMES } from './search_constants.js';
|
|
10
|
-
import { html } from 'lit/development';
|
|
11
11
|
import { when as n } from '../../../../../../external/lit/external/lit-html/directives/when.js';
|
|
12
12
|
|
|
13
13
|
let HSearch = class HSearch extends PhoenixLightLitElement {
|