@shoper/phoenix_design_system 1.1.3 → 1.1.4-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/accordion/accordion.js +1 -1
- package/build/cjs/packages/phoenix/src/components/accordion/accordion_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/accordion/accordion_group.js +2 -2
- package/build/cjs/packages/phoenix/src/components/accordion/accordion_toggler.js +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/checkbox/checkbox_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_consumer_controller.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_provider_controller.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/select_close_btn.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js +8 -4
- package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select.js +23 -12
- package/build/cjs/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/select_constants.js +6 -2
- package/build/cjs/packages/phoenix/src/components/form/select/select_constants.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/icon/icon.js +19 -5
- package/build/cjs/packages/phoenix/src/components/icon/icon.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal.js +1 -1
- package/build/cjs/packages/phoenix/src/core/context/context_consumer_controller.js +1 -1
- package/build/cjs/packages/phoenix/src/index.js +2 -9
- package/build/cjs/packages/phoenix/src/index.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion.js +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_group.js +2 -2
- package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.js +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_consumer_controller.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/controllers/props_synchronizing/control_props_sync_provider_controller.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/select_close_btn.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.d.ts +1 -0
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js +9 -5
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler_constants.d.ts +1 -0
- package/build/esm/packages/phoenix/src/components/form/select/select.js +23 -12
- package/build/esm/packages/phoenix/src/components/form/select/select.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.d.ts +5 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js +6 -2
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/icon/icon.d.ts +7 -2
- package/build/esm/packages/phoenix/src/components/icon/icon.js +19 -5
- package/build/esm/packages/phoenix/src/components/icon/icon.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal.js +1 -1
- package/build/esm/packages/phoenix/src/core/context/context_consumer_controller.js +1 -1
- package/build/esm/packages/phoenix/src/index.d.ts +0 -1
- package/build/esm/packages/phoenix/src/index.js +1 -2
- package/build/esm/packages/phoenix/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
|
6
6
|
var decorators = require('lit/decorators');
|
|
7
7
|
var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
8
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
9
|
-
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
10
9
|
var context_provider_controller = require('../../core/context/context_provider_controller.js');
|
|
10
|
+
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
11
11
|
var accordion_constants = require('./accordion_constants.js');
|
|
12
12
|
|
|
13
13
|
exports.HAccordion = class HAccordion extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
|
6
6
|
var decorators = require('lit/decorators');
|
|
7
7
|
var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
8
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
9
|
-
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
10
9
|
var observer = require('../../core/classes/observer/observer.js');
|
|
10
|
+
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
11
11
|
var accordion_constants = require('./accordion_constants.js');
|
|
12
12
|
var transition_controller = require('../../controllers/transition_controller/transition_controller.js');
|
|
13
13
|
|
|
@@ -6,10 +6,10 @@ var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
|
6
6
|
var decorators = require('lit/decorators');
|
|
7
7
|
var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
8
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
9
|
-
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
10
9
|
var observer = require('../../core/classes/observer/observer.js');
|
|
11
|
-
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
12
10
|
var context_provider_controller = require('../../core/context/context_provider_controller.js');
|
|
11
|
+
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
12
|
+
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
13
13
|
var accordion_constants = require('./accordion_constants.js');
|
|
14
14
|
|
|
15
15
|
exports.HAccordionGroup = class HAccordionGroup extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -6,8 +6,8 @@ var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
|
6
6
|
var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
7
7
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
8
8
|
var btn_controller = require('../../controllers/btn_controller/btn_controller.js');
|
|
9
|
-
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
10
9
|
var observer = require('../../core/classes/observer/observer.js');
|
|
10
|
+
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
11
11
|
var accordion_constants = require('./accordion_constants.js');
|
|
12
12
|
|
|
13
13
|
exports.HAccordionToggler = class HAccordionToggler extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -9,11 +9,11 @@ var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/ph
|
|
|
9
9
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
10
10
|
var decorators_js = require('@lit/reactive-element/decorators.js');
|
|
11
11
|
var keystrokes_controller = require('../../controllers/keystrokes_controller/keystrokes_controller.js');
|
|
12
|
-
var litHtml = require('lit-html');
|
|
13
12
|
var global_constants = require('../../global_constants.js');
|
|
14
13
|
var dropdown_constants = require('./dropdown_constants.js');
|
|
15
14
|
var relative_position_controller_constants = require('../../controllers/relative_position_controller/relative_position_controller_constants.js');
|
|
16
15
|
var portal_constants = require('../portal/portal_constants.js');
|
|
16
|
+
var litHtml = require('lit-html');
|
|
17
17
|
var backdrop_controller = require('../backdrop/controller/backdrop_controller.js');
|
|
18
18
|
var click_outside_controller = require('../../controllers/click_outside_controller/click_outside_controller.js');
|
|
19
19
|
var throttle = require('../../../../../external/lodash/throttle.js');
|
|
@@ -7,8 +7,8 @@ var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element
|
|
|
7
7
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
8
8
|
var decorators_js = require('@lit/reactive-element/decorators.js');
|
|
9
9
|
var index = require('../../../../external/classnames/index.js');
|
|
10
|
-
var litHtml = require('lit-html');
|
|
11
10
|
var ref_js = require('lit-html/directives/ref.js');
|
|
11
|
+
var litHtml = require('lit-html');
|
|
12
12
|
var control_props_sync_consumer_controller = require('../controllers/props_synchronizing/control_props_sync_consumer_controller.js');
|
|
13
13
|
var ifDefined_js = require('lit-html/directives/if-defined.js');
|
|
14
14
|
var checkbox_constants = require('./checkbox_constants.js');
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../../../../../../../external/tslib/tslib.es6.js');
|
|
6
6
|
require('lit');
|
|
7
|
-
var context_consumer_controller = require('../../../../core/context/context_consumer_controller.js');
|
|
8
7
|
var observer = require('../../../../core/classes/observer/observer.js');
|
|
8
|
+
var context_consumer_controller = require('../../../../core/context/context_consumer_controller.js');
|
|
9
9
|
var control_props_sync_controller_constants = require('./control_props_sync_controller_constants.js');
|
|
10
10
|
|
|
11
11
|
var _ControlPropsSyncConsumerController_host, _ControlPropsSyncConsumerController_contextConsumer, _ControlPropsSyncConsumerController_basePropsObservable, _ControlPropsSyncConsumerController_propsObserver, _ControlPropsSyncConsumerController_onPropsUpdated;
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../../../../../../../external/tslib/tslib.es6.js');
|
|
6
6
|
require('lit');
|
|
7
|
-
var behavior_subject = require('../../../../core/classes/behavior_subject/behavior_subject.js');
|
|
8
7
|
var context_provider_controller = require('../../../../core/context/context_provider_controller.js');
|
|
8
|
+
var behavior_subject = require('../../../../core/classes/behavior_subject/behavior_subject.js');
|
|
9
9
|
var control_props_sync_controller_constants = require('./control_props_sync_controller_constants.js');
|
|
10
10
|
|
|
11
11
|
var _ControlPropsSyncProviderController_host, _ControlPropsSyncProviderController_controlPropsProvider, _ControlPropsSyncProviderController_propsObservable, _ControlPropsSyncProviderController_propsToSync;
|
package/build/cjs/packages/phoenix/src/components/form/select/components/select_close_btn.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.HSelectCloseBtn = class HSelectCloseBtn extends phoenix_light_lit_elemen
|
|
|
28
28
|
render() {
|
|
29
29
|
return litHtml.html `${this.hasSlot(select_components_constatns.SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
30
30
|
? this.getSlot(select_components_constatns.SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
31
|
-
: litHtml.html
|
|
31
|
+
: litHtml.html ` <h-icon icon-name="icon-x"></h-icon>`} `;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
exports.HSelectCloseBtn = tslib_es6.__decorate([
|
package/build/cjs/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js
CHANGED
|
@@ -7,11 +7,11 @@ var decorators = require('lit/decorators');
|
|
|
7
7
|
var phoenix_light_lit_element = require('../../../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
8
8
|
var phoenix_custom_element = require('../../../../../core/decorators/phoenix_custom_element.js');
|
|
9
9
|
var select_components_constatns = require('../select_components_constatns.js');
|
|
10
|
-
var litHtml = require('lit-html');
|
|
11
|
-
var context_consumer_controller = require('../../../../../core/context/context_consumer_controller.js');
|
|
12
|
-
var select_constants = require('../../select_constants.js');
|
|
13
10
|
var observer = require('../../../../../core/classes/observer/observer.js');
|
|
11
|
+
var select_constants = require('../../select_constants.js');
|
|
12
|
+
var litHtml = require('lit-html');
|
|
14
13
|
var observable_directive = require('../../../../../directives/observable_directive.js');
|
|
14
|
+
var context_consumer_controller = require('../../../../../core/context/context_consumer_controller.js');
|
|
15
15
|
var select_toggler_constants = require('./select_toggler_constants.js');
|
|
16
16
|
|
|
17
17
|
exports.HSelectToggler = class HSelectToggler extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -32,7 +32,7 @@ exports.HSelectToggler = class HSelectToggler extends phoenix_light_lit_element.
|
|
|
32
32
|
}
|
|
33
33
|
connectedCallback() {
|
|
34
34
|
super.connectedCallback();
|
|
35
|
-
this.setAttribute('slot',
|
|
35
|
+
// this.setAttribute('slot', SELECT_SLOT_NAMES.input);
|
|
36
36
|
this.setAttribute('role', 'textbox');
|
|
37
37
|
this.classList.add(select_toggler_constants.SELECT_TOGGLER_CSS_CLASSES.selectToggler);
|
|
38
38
|
this._subscribeObserver();
|
|
@@ -75,6 +75,10 @@ exports.HSelectToggler = class HSelectToggler extends phoenix_light_lit_element.
|
|
|
75
75
|
`;
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
|
+
tslib_es6.__decorate([
|
|
79
|
+
decorators.property({ attribute: true }),
|
|
80
|
+
tslib_es6.__metadata("design:type", String)
|
|
81
|
+
], exports.HSelectToggler.prototype, "placeholder", void 0);
|
|
78
82
|
tslib_es6.__decorate([
|
|
79
83
|
decorators.state(),
|
|
80
84
|
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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;"}
|
|
@@ -9,13 +9,13 @@ var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element
|
|
|
9
9
|
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
10
10
|
var decorators_js = require('@lit/reactive-element/decorators.js');
|
|
11
11
|
var select_components_constatns = require('./components/select_components_constatns.js');
|
|
12
|
-
var icon = require('../../icon/icon.js');
|
|
13
|
-
var select_constants = require('./select_constants.js');
|
|
14
12
|
var observer = require('../../../core/classes/observer/observer.js');
|
|
15
|
-
var
|
|
13
|
+
var icon = require('../../icon/icon.js');
|
|
16
14
|
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
15
|
+
var select_constants = require('./select_constants.js');
|
|
17
16
|
var ref_js = require('lit-html/directives/ref.js');
|
|
18
17
|
var debounce = require('../../../../../../external/lodash/debounce.js');
|
|
18
|
+
var observable_directive = require('../../../directives/observable_directive.js');
|
|
19
19
|
var multi_select_controller = require('./controllers/multi_select_controller.js');
|
|
20
20
|
var select_controller = require('./controllers/select_controller.js');
|
|
21
21
|
var select_search = require('./components/search/select_search.js');
|
|
@@ -23,6 +23,7 @@ var list_box_keyboard_controller = require('../../../controllers/list_box_contro
|
|
|
23
23
|
var select_option_mapper = require('./model/select_option_mapper.js');
|
|
24
24
|
var select_utils = require('./select_utils.js');
|
|
25
25
|
var select_close_btn = require('./components/select_close_btn.js');
|
|
26
|
+
var select_toggler = require('./components/toggler/select_toggler.js');
|
|
26
27
|
|
|
27
28
|
exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
28
29
|
constructor() {
|
|
@@ -200,13 +201,22 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
200
201
|
name=${this.controlName}
|
|
201
202
|
offset=${this.offset}
|
|
202
203
|
>
|
|
203
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
204
|
+
<h-dropdown-toggler name=${this.controlName}>
|
|
205
|
+
<h-select-toggler>
|
|
206
|
+
<span slot="placeholder">${this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler)}</span>
|
|
207
|
+
</h-select-toggler>
|
|
208
|
+
</h-dropdown-toggler>
|
|
204
209
|
|
|
205
210
|
<h-dropdown-content class=${select_constants.SELECT_CSS_CLASSES.selectContent} ${ref_js.ref(this._$dropdownContent)} name=${this.controlName}>
|
|
206
|
-
<h-select-close-btn
|
|
211
|
+
<h-select-close-btn
|
|
212
|
+
class="${select_constants.SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
213
|
+
@selectCloseBtn.close=${this._closeSelect}
|
|
214
|
+
></h-select-close-btn>
|
|
215
|
+
|
|
216
|
+
<p class=${select_constants.SELECT_CSS_CLASSES.selectLabel}>${this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler)}</p>
|
|
207
217
|
|
|
208
218
|
${options.length > select_constants.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
209
|
-
? lit.html
|
|
219
|
+
? lit.html ` <h-select-search
|
|
210
220
|
class=${select_constants.SELECT_CSS_CLASSES.selectSearch}
|
|
211
221
|
${ref_js.ref(this._$search)}
|
|
212
222
|
.value=${this._searchValue}
|
|
@@ -225,7 +235,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
225
235
|
`
|
|
226
236
|
: lit.nothing}
|
|
227
237
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
228
|
-
? lit.html
|
|
238
|
+
? lit.html ` <div>
|
|
229
239
|
<p class=${select_constants.SELECT_CSS_CLASSES.selectNoResult}>
|
|
230
240
|
Brak wyników dla: <em class=${select_constants.SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
231
241
|
</p>
|
|
@@ -234,10 +244,10 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
234
244
|
${this.multiselect && this._selectController.selectedOptionsCount >= 1
|
|
235
245
|
? lit.html `
|
|
236
246
|
<section class=${select_constants.SELECT_CSS_CLASSES.selectFooter}>
|
|
237
|
-
<button class="
|
|
238
|
-
<h-select-close-btn class="
|
|
239
|
-
>ok
|
|
240
|
-
>
|
|
247
|
+
<button class="${select_constants.SELECT_CSS_CLASSES.selectClearButton}" @click=${this._clearOptions}>clear</button>
|
|
248
|
+
<h-select-close-btn class="${select_constants.SELECT_CSS_CLASSES.selectCloseButton}" @selectCloseBtn.close=${this._closeSelect}
|
|
249
|
+
>ok
|
|
250
|
+
</h-select-close-btn>
|
|
241
251
|
</section>
|
|
242
252
|
`
|
|
243
253
|
: lit.nothing}
|
|
@@ -251,7 +261,8 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
251
261
|
exports.HSelect._components = {
|
|
252
262
|
search: select_search.HSelectSearch,
|
|
253
263
|
icon: icon.HIcon,
|
|
254
|
-
closeBtn: select_close_btn.HSelectCloseBtn
|
|
264
|
+
closeBtn: select_close_btn.HSelectCloseBtn,
|
|
265
|
+
toggler: select_toggler.HSelectToggler
|
|
255
266
|
};
|
|
256
267
|
tslib_es6.__decorate([
|
|
257
268
|
decorators_js.property({ type: String }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;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,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -8,7 +8,7 @@ const SELECT_CONTEXTS = {
|
|
|
8
8
|
};
|
|
9
9
|
const SELECT_SLOT_NAMES = {
|
|
10
10
|
content: 'content',
|
|
11
|
-
|
|
11
|
+
toggler: 'toggler'
|
|
12
12
|
};
|
|
13
13
|
const SELECT_EVENT_NAMES = {
|
|
14
14
|
selectOption: 'selectOption.select',
|
|
@@ -27,7 +27,11 @@ const SELECT_CSS_CLASSES = {
|
|
|
27
27
|
selectContent: `${baseSelectClass}__content`,
|
|
28
28
|
selectFooter: `${baseSelectClass}__footer`,
|
|
29
29
|
selectNoResult: `${baseSelectClass}__no-result`,
|
|
30
|
-
selectSearchedPhrase: `${baseSelectClass}__searched-phrase
|
|
30
|
+
selectSearchedPhrase: `${baseSelectClass}__searched-phrase`,
|
|
31
|
+
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
32
|
+
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
33
|
+
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
34
|
+
selectLabel: `${baseSelectClass}__label`
|
|
31
35
|
};
|
|
32
36
|
|
|
33
37
|
exports.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH = MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -10,19 +10,27 @@ var phoenix_custom_element = require('../../core/decorators/phoenix_custom_eleme
|
|
|
10
10
|
var icon_constants = require('./icon_constants.js');
|
|
11
11
|
var index = require('../../../external/classnames/index.js');
|
|
12
12
|
var namespaced_attribure_directive = require('../../directives/namespaced_attribure_directive.js');
|
|
13
|
+
var observer = require('../../core/classes/observer/observer.js');
|
|
14
|
+
var subject = require('../../core/classes/subject/subject.js');
|
|
13
15
|
|
|
14
16
|
var HIcon_1;
|
|
15
17
|
exports.HIcon = HIcon_1 = class HIcon extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
16
18
|
constructor() {
|
|
17
|
-
super(
|
|
19
|
+
super();
|
|
18
20
|
this.filled = false;
|
|
19
21
|
this.clickable = false;
|
|
20
22
|
this.noStroke = false;
|
|
23
|
+
this._srcObserverCallback = (src) => {
|
|
24
|
+
if (src)
|
|
25
|
+
this.requestUpdate();
|
|
26
|
+
};
|
|
27
|
+
this._srcObserver = new observer.Observer(this._srcObserverCallback);
|
|
28
|
+
HIcon_1.src.subscribe(this._srcObserver);
|
|
21
29
|
}
|
|
22
30
|
connectedCallback() {
|
|
23
31
|
var _a;
|
|
24
32
|
super.connectedCallback();
|
|
25
|
-
|
|
33
|
+
HIcon_1.src.subscribe(this._srcObserver);
|
|
26
34
|
this._cssClasses = index['default'](icon_constants.ICON_CSS_CLASSES.icon, {
|
|
27
35
|
[icon_constants.ICON_SIZES_CSS_CLASS_MAP[(_a = this.size) !== null && _a !== void 0 ? _a : '']]: Boolean(this.size),
|
|
28
36
|
[icon_constants.ICON_CSS_CLASSES.iconFilled]: this.filled,
|
|
@@ -30,15 +38,20 @@ exports.HIcon = HIcon_1 = class HIcon extends phoenix_light_lit_element.PhoenixL
|
|
|
30
38
|
[icon_constants.ICON_CSS_CLASSES.iconClickable]: this.clickable
|
|
31
39
|
});
|
|
32
40
|
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
HIcon_1.src.unsubscribe(this._srcObserver);
|
|
43
|
+
}
|
|
33
44
|
render() {
|
|
34
|
-
|
|
45
|
+
if (!HIcon_1.src.getValue())
|
|
46
|
+
return null;
|
|
35
47
|
return lit.html `
|
|
36
48
|
<svg class="${this._cssClasses}">
|
|
37
|
-
<use xlink:href="${namespaced_attribure_directive.namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src}#${this.iconName}`)}"></use>
|
|
49
|
+
<use xlink:href="${namespaced_attribure_directive.namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src.getValue()}#${this.iconName}`)}"></use>
|
|
38
50
|
</svg>
|
|
39
51
|
`;
|
|
40
52
|
}
|
|
41
53
|
};
|
|
54
|
+
exports.HIcon.src = new subject.Subject();
|
|
42
55
|
tslib_es6.__decorate([
|
|
43
56
|
decorators.property({ type: String, attribute: 'icon-name' }),
|
|
44
57
|
tslib_es6.__metadata("design:type", String)
|
|
@@ -60,6 +73,7 @@ tslib_es6.__decorate([
|
|
|
60
73
|
tslib_es6.__metadata("design:type", Boolean)
|
|
61
74
|
], exports.HIcon.prototype, "noStroke", void 0);
|
|
62
75
|
exports.HIcon = HIcon_1 = tslib_es6.__decorate([
|
|
63
|
-
phoenix_custom_element.phoenixCustomElement('h-icon')
|
|
76
|
+
phoenix_custom_element.phoenixCustomElement('h-icon'),
|
|
77
|
+
tslib_es6.__metadata("design:paramtypes", [])
|
|
64
78
|
], exports.HIcon);
|
|
65
79
|
//# sourceMappingURL=icon.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,oBAAoB,uCAA2C;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,oBAAoB,uCAA2C;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -6,9 +6,9 @@ var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
|
6
6
|
var phoenix_light_lit_element = require('../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
7
7
|
var phoenix_custom_element = require('../../core/decorators/phoenix_custom_element.js');
|
|
8
8
|
var decorators_js = require('@lit/reactive-element/decorators.js');
|
|
9
|
-
var litHtml = require('lit-html');
|
|
10
9
|
var ref_js = require('lit-html/directives/ref.js');
|
|
11
10
|
var portal_constants = require('../portal/portal_constants.js');
|
|
11
|
+
var litHtml = require('lit-html');
|
|
12
12
|
var backdrop_controller = require('../backdrop/controller/backdrop_controller.js');
|
|
13
13
|
require('@lit/reactive-element');
|
|
14
14
|
var modal_constants = require('./modal_constants.js');
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tslib_es6 = require('../../../../../external/tslib/tslib.es6.js');
|
|
6
6
|
require('lit');
|
|
7
|
-
var context_constants = require('./context_constants.js');
|
|
8
7
|
var context_consumer_messages_names = require('./context_consumer_messages_names.js');
|
|
8
|
+
var context_constants = require('./context_constants.js');
|
|
9
9
|
|
|
10
10
|
var _ContextConsumerController_host, _ContextConsumerController_asyncConsumerSentinelId, _ContextConsumerController_asyncConsumerIntervalId;
|
|
11
11
|
class ContextConsumerController {
|
|
@@ -10,8 +10,6 @@ var icon = require('./components/icon/icon.js');
|
|
|
10
10
|
var select_option = require('./components/form/select/components/option/select_option.js');
|
|
11
11
|
var select_option_content = require('./components/form/select/components/option/select_option_content.js');
|
|
12
12
|
var select_options = require('./components/form/select/components/select_options.js');
|
|
13
|
-
var context_consumer_controller = require('./core/context/context_consumer_controller.js');
|
|
14
|
-
var select_toggler = require('./components/form/select/components/toggler/select_toggler.js');
|
|
15
13
|
var context_provider_controller = require('./core/context/context_provider_controller.js');
|
|
16
14
|
var portal = require('./components/portal/portal.js');
|
|
17
15
|
var portal_target = require('./components/portal/portal_target.js');
|
|
@@ -22,6 +20,7 @@ var toggle_element_aria_controller = require('./controllers/toggle_element_aria_
|
|
|
22
20
|
var dropdown_toggler = require('./components/dropdown/dropdown_toggler.js');
|
|
23
21
|
var relative_position_controller = require('./controllers/relative_position_controller/relative_position_controller.js');
|
|
24
22
|
var dropdown = require('./components/dropdown/dropdown.js');
|
|
23
|
+
var context_consumer_controller = require('./core/context/context_consumer_controller.js');
|
|
25
24
|
var select = require('./components/form/select/select.js');
|
|
26
25
|
var modal = require('./components/modal/modal.js');
|
|
27
26
|
var modal_opener = require('./components/modal/modal_opener.js');
|
|
@@ -114,13 +113,6 @@ Object.defineProperty(exports, 'HOptions', {
|
|
|
114
113
|
return select_options.HOptions;
|
|
115
114
|
}
|
|
116
115
|
});
|
|
117
|
-
exports.ContextConsumerController = context_consumer_controller.ContextConsumerController;
|
|
118
|
-
Object.defineProperty(exports, 'HSelectToggler', {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function () {
|
|
121
|
-
return select_toggler.HSelectToggler;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
116
|
exports.ContextProviderController = context_provider_controller.ContextProviderController;
|
|
125
117
|
Object.defineProperty(exports, 'HPortal', {
|
|
126
118
|
enumerable: true,
|
|
@@ -156,6 +148,7 @@ Object.defineProperty(exports, 'HDropdown', {
|
|
|
156
148
|
return dropdown.HDropdown;
|
|
157
149
|
}
|
|
158
150
|
});
|
|
151
|
+
exports.ContextConsumerController = context_consumer_controller.ContextConsumerController;
|
|
159
152
|
Object.defineProperty(exports, 'HSelect', {
|
|
160
153
|
enumerable: true,
|
|
161
154
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,8 +2,8 @@ import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.
|
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
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
|
-
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
6
5
|
import { ContextProviderController } from '../../core/context/context_provider_controller.js';
|
|
6
|
+
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
7
7
|
import { ACCORDION_MODE, ACCORDION_CONTEXTS } from './accordion_constants.js';
|
|
8
8
|
|
|
9
9
|
let HAccordion = class HAccordion extends PhoenixLightLitElement {
|
|
@@ -2,8 +2,8 @@ import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.
|
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
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
|
-
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
6
5
|
import { Observer } from '../../core/classes/observer/observer.js';
|
|
6
|
+
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
7
7
|
import { ACCORDION_CONTEXTS } from './accordion_constants.js';
|
|
8
8
|
import { TransitionController } from '../../controllers/transition_controller/transition_controller.js';
|
|
9
9
|
|
|
@@ -2,10 +2,10 @@ import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.
|
|
|
2
2
|
import { property, state } from 'lit/decorators';
|
|
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
|
-
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
6
5
|
import { Observer } from '../../core/classes/observer/observer.js';
|
|
7
|
-
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
8
6
|
import { ContextProviderController } from '../../core/context/context_provider_controller.js';
|
|
7
|
+
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
8
|
+
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
9
9
|
import { ACCORDION_MODE, ACCORDION_CONTEXTS, ACCORDION_EVENTS } from './accordion_constants.js';
|
|
10
10
|
|
|
11
11
|
let HAccordionGroup = class HAccordionGroup extends PhoenixLightLitElement {
|
|
@@ -2,8 +2,8 @@ import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.
|
|
|
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
4
|
import { BtnController } from '../../controllers/btn_controller/btn_controller.js';
|
|
5
|
-
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
6
5
|
import { Observer } from '../../core/classes/observer/observer.js';
|
|
6
|
+
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
7
7
|
import { ACCORDION_EVENTS, ACCORDION_CONTEXTS } from './accordion_constants.js';
|
|
8
8
|
|
|
9
9
|
let HAccordionToggler = class HAccordionToggler extends PhoenixLightLitElement {
|
|
@@ -5,11 +5,11 @@ import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/pho
|
|
|
5
5
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { property } from '@lit/reactive-element/decorators.js';
|
|
7
7
|
import { KeystrokesController } from '../../controllers/keystrokes_controller/keystrokes_controller.js';
|
|
8
|
-
import { html } from 'lit-html';
|
|
9
8
|
import { BREAKPOINTS, SCROLLABLE_CLASS_NAME } from '../../global_constants.js';
|
|
10
9
|
import { DEFAULT_DROPDOWN_PORTAL_NAME, DROPDOWN_CONTENT_VISIBLE_CLASS, DROPDOWN_CONTENT_SHOW, DROPDOWN_EVENTS, DROPDOWN_CONTAINER_NAME, DROPDOWN_CONTENT_HIDE, DROPDOWN_CONTENT_NAME, DROPDOWN_TOGGLER_NAME } from './dropdown_constants.js';
|
|
11
10
|
import { DIRECTIONS, RELATIVE_POSITION_CONTROLLER_EVENTS, DEFAULT_THROTTLE_WAIT_TIME } from '../../controllers/relative_position_controller/relative_position_controller_constants.js';
|
|
12
11
|
import { PORTAL_TARGET_COMPONENT_NAME, PORTAL_TARGET_NAME_PROP } from '../portal/portal_constants.js';
|
|
12
|
+
import { html } from 'lit-html';
|
|
13
13
|
import { BackdropController } from '../backdrop/controller/backdrop_controller.js';
|
|
14
14
|
import { ClickOutsideController } from '../../controllers/click_outside_controller/click_outside_controller.js';
|
|
15
15
|
import throttle_1 from '../../../../../external/lodash/throttle.js';
|
|
@@ -3,8 +3,8 @@ import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/
|
|
|
3
3
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
import { property } from '@lit/reactive-element/decorators.js';
|
|
5
5
|
import classnames from '../../../../external/classnames/index.js';
|
|
6
|
-
import { html } from 'lit-html';
|
|
7
6
|
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
7
|
+
import { html } from 'lit-html';
|
|
8
8
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
9
9
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
10
10
|
import { CHECKBOX_CONTROL_EVENTS, CHECKBOX_CONTROL_CSS_CLASSES } from './checkbox_constants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __classPrivateFieldGet, __classPrivateFieldSet } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import { ContextConsumerController } from '../../../../core/context/context_consumer_controller.js';
|
|
4
3
|
import { Observer } from '../../../../core/classes/observer/observer.js';
|
|
4
|
+
import { ContextConsumerController } from '../../../../core/context/context_consumer_controller.js';
|
|
5
5
|
import { FORM_CONTROL_CONTEXTS } from './control_props_sync_controller_constants.js';
|
|
6
6
|
|
|
7
7
|
var _ControlPropsSyncConsumerController_host, _ControlPropsSyncConsumerController_contextConsumer, _ControlPropsSyncConsumerController_basePropsObservable, _ControlPropsSyncConsumerController_propsObserver, _ControlPropsSyncConsumerController_onPropsUpdated;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import { BehaviorSubject } from '../../../../core/classes/behavior_subject/behavior_subject.js';
|
|
4
3
|
import { ContextProviderController } from '../../../../core/context/context_provider_controller.js';
|
|
4
|
+
import { BehaviorSubject } from '../../../../core/classes/behavior_subject/behavior_subject.js';
|
|
5
5
|
import { BASE_FORM_CONTROL_PROPS, FORM_CONTROL_CONTEXTS } from './control_props_sync_controller_constants.js';
|
|
6
6
|
|
|
7
7
|
var _ControlPropsSyncProviderController_host, _ControlPropsSyncProviderController_controlPropsProvider, _ControlPropsSyncProviderController_propsObservable, _ControlPropsSyncProviderController_propsToSync;
|
package/build/esm/packages/phoenix/src/components/form/select/components/select_close_btn.js
CHANGED
|
@@ -24,7 +24,7 @@ let HSelectCloseBtn = class HSelectCloseBtn extends PhoenixLightLitElement {
|
|
|
24
24
|
render() {
|
|
25
25
|
return html `${this.hasSlot(SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
26
26
|
? this.getSlot(SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
27
|
-
: html
|
|
27
|
+
: html ` <h-icon icon-name="icon-x"></h-icon>`} `;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
HSelectCloseBtn = __decorate([
|
package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { SelectOption } from "../../model/select_option";
|
|
|
3
3
|
import { TemplateResult } from 'lit-html';
|
|
4
4
|
import { BehaviorSubject } from "../../../../../core/classes/behavior_subject/behavior_subject";
|
|
5
5
|
export declare class HSelectToggler extends PhoenixLightLitElement {
|
|
6
|
+
placeholder: string;
|
|
6
7
|
selectedOptions$: BehaviorSubject<SelectOption[]> | null;
|
|
7
8
|
isMultiselect: boolean;
|
|
8
9
|
private _contextConsumer;
|
package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { state } from 'lit/decorators';
|
|
2
|
+
import { property, state } from 'lit/decorators';
|
|
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_INPUT_PLACEHOLDER_SLOT_NAME, SELECT_RELATED_COMPONENTS_NAMES } from '../select_components_constatns.js';
|
|
6
|
-
import { html } from 'lit-html';
|
|
7
|
-
import { ContextConsumerController } from '../../../../../core/context/context_consumer_controller.js';
|
|
8
|
-
import { SELECT_EVENT_NAMES, SELECT_SLOT_NAMES, SELECT_CONTEXTS } from '../../select_constants.js';
|
|
9
6
|
import { Observer } from '../../../../../core/classes/observer/observer.js';
|
|
7
|
+
import { SELECT_EVENT_NAMES, SELECT_CONTEXTS } from '../../select_constants.js';
|
|
8
|
+
import { html } from 'lit-html';
|
|
10
9
|
import { observe } from '../../../../../directives/observable_directive.js';
|
|
10
|
+
import { ContextConsumerController } from '../../../../../core/context/context_consumer_controller.js';
|
|
11
11
|
import { SELECT_TOGGLER_CSS_CLASSES } from './select_toggler_constants.js';
|
|
12
12
|
|
|
13
13
|
let HSelectToggler = class HSelectToggler extends PhoenixLightLitElement {
|
|
@@ -28,7 +28,7 @@ let HSelectToggler = class HSelectToggler extends PhoenixLightLitElement {
|
|
|
28
28
|
}
|
|
29
29
|
connectedCallback() {
|
|
30
30
|
super.connectedCallback();
|
|
31
|
-
this.setAttribute('slot', SELECT_SLOT_NAMES.input);
|
|
31
|
+
// this.setAttribute('slot', SELECT_SLOT_NAMES.input);
|
|
32
32
|
this.setAttribute('role', 'textbox');
|
|
33
33
|
this.classList.add(SELECT_TOGGLER_CSS_CLASSES.selectToggler);
|
|
34
34
|
this._subscribeObserver();
|
|
@@ -71,6 +71,10 @@ let HSelectToggler = class HSelectToggler extends PhoenixLightLitElement {
|
|
|
71
71
|
`;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
+
__decorate([
|
|
75
|
+
property({ attribute: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], HSelectToggler.prototype, "placeholder", void 0);
|
|
74
78
|
__decorate([
|
|
75
79
|
state(),
|
|
76
80
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,qDAAyD;AAChG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -5,13 +5,13 @@ import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/
|
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { property } from '@lit/reactive-element/decorators.js';
|
|
7
7
|
import { SELECT_RELATED_COMPONENTS_NAMES, SELECT_CLOSE_BTN_EVENT_NAMES } from './components/select_components_constatns.js';
|
|
8
|
-
import { HIcon } from '../../icon/icon.js';
|
|
9
|
-
import { SELECT_SLOT_NAMES, SELECT_CSS_CLASSES, SELECT_CONTEXTS, SELECT_EVENT_NAMES, MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH, SELECT_RESIZE_DEBOUNCE_TIME } from './select_constants.js';
|
|
10
8
|
import { Observer } from '../../../core/classes/observer/observer.js';
|
|
11
|
-
import {
|
|
9
|
+
import { HIcon } from '../../icon/icon.js';
|
|
12
10
|
import { ContextProviderController } from '../../../core/context/context_provider_controller.js';
|
|
11
|
+
import { SELECT_SLOT_NAMES, SELECT_CSS_CLASSES, SELECT_CONTEXTS, SELECT_EVENT_NAMES, MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH, SELECT_RESIZE_DEBOUNCE_TIME } from './select_constants.js';
|
|
13
12
|
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
14
13
|
import debounce_1 from '../../../../../../external/lodash/debounce.js';
|
|
14
|
+
import { observe } from '../../../directives/observable_directive.js';
|
|
15
15
|
import { MultiSelectController } from './controllers/multi_select_controller.js';
|
|
16
16
|
import { SelectController } from './controllers/select_controller.js';
|
|
17
17
|
import { HSelectSearch } from './components/search/select_search.js';
|
|
@@ -19,6 +19,7 @@ import { ListBoxKeyboardController } from '../../../controllers/list_box_control
|
|
|
19
19
|
import { SelectOptionMapper } from './model/select_option_mapper.js';
|
|
20
20
|
import { SelectControlUtils } from './select_utils.js';
|
|
21
21
|
import { HSelectCloseBtn } from './components/select_close_btn.js';
|
|
22
|
+
import { HSelectToggler } from './components/toggler/select_toggler.js';
|
|
22
23
|
|
|
23
24
|
let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
24
25
|
constructor() {
|
|
@@ -196,13 +197,22 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
196
197
|
name=${this.controlName}
|
|
197
198
|
offset=${this.offset}
|
|
198
199
|
>
|
|
199
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
200
|
+
<h-dropdown-toggler name=${this.controlName}>
|
|
201
|
+
<h-select-toggler>
|
|
202
|
+
<span slot="placeholder">${this.getSlot(SELECT_SLOT_NAMES.toggler)}</span>
|
|
203
|
+
</h-select-toggler>
|
|
204
|
+
</h-dropdown-toggler>
|
|
200
205
|
|
|
201
206
|
<h-dropdown-content class=${SELECT_CSS_CLASSES.selectContent} ${ref(this._$dropdownContent)} name=${this.controlName}>
|
|
202
|
-
<h-select-close-btn
|
|
207
|
+
<h-select-close-btn
|
|
208
|
+
class="${SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
209
|
+
@selectCloseBtn.close=${this._closeSelect}
|
|
210
|
+
></h-select-close-btn>
|
|
211
|
+
|
|
212
|
+
<p class=${SELECT_CSS_CLASSES.selectLabel}>${this.getSlot(SELECT_SLOT_NAMES.toggler)}</p>
|
|
203
213
|
|
|
204
214
|
${options.length > MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
205
|
-
? html
|
|
215
|
+
? html ` <h-select-search
|
|
206
216
|
class=${SELECT_CSS_CLASSES.selectSearch}
|
|
207
217
|
${ref(this._$search)}
|
|
208
218
|
.value=${this._searchValue}
|
|
@@ -221,7 +231,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
221
231
|
`
|
|
222
232
|
: nothing}
|
|
223
233
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
224
|
-
? html
|
|
234
|
+
? html ` <div>
|
|
225
235
|
<p class=${SELECT_CSS_CLASSES.selectNoResult}>
|
|
226
236
|
Brak wyników dla: <em class=${SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
227
237
|
</p>
|
|
@@ -230,10 +240,10 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
230
240
|
${this.multiselect && this._selectController.selectedOptionsCount >= 1
|
|
231
241
|
? html `
|
|
232
242
|
<section class=${SELECT_CSS_CLASSES.selectFooter}>
|
|
233
|
-
<button class="
|
|
234
|
-
<h-select-close-btn class="
|
|
235
|
-
>ok
|
|
236
|
-
>
|
|
243
|
+
<button class="${SELECT_CSS_CLASSES.selectClearButton}" @click=${this._clearOptions}>clear</button>
|
|
244
|
+
<h-select-close-btn class="${SELECT_CSS_CLASSES.selectCloseButton}" @selectCloseBtn.close=${this._closeSelect}
|
|
245
|
+
>ok
|
|
246
|
+
</h-select-close-btn>
|
|
237
247
|
</section>
|
|
238
248
|
`
|
|
239
249
|
: nothing}
|
|
@@ -247,7 +257,8 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
247
257
|
HSelect._components = {
|
|
248
258
|
search: HSelectSearch,
|
|
249
259
|
icon: HIcon,
|
|
250
|
-
closeBtn: HSelectCloseBtn
|
|
260
|
+
closeBtn: HSelectCloseBtn,
|
|
261
|
+
toggler: HSelectToggler
|
|
251
262
|
};
|
|
252
263
|
__decorate([
|
|
253
264
|
property({ type: String }),
|
|
@@ -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
|
|
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,uBAAuB,+CAAmD;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,7 +4,7 @@ export declare const SELECT_CONTEXTS: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const SELECT_SLOT_NAMES: {
|
|
6
6
|
readonly content: "content";
|
|
7
|
-
readonly
|
|
7
|
+
readonly toggler: "toggler";
|
|
8
8
|
};
|
|
9
9
|
export declare const SELECT_EVENT_NAMES: {
|
|
10
10
|
readonly selectOption: "selectOption.select";
|
|
@@ -23,4 +23,8 @@ export declare const SELECT_CSS_CLASSES: {
|
|
|
23
23
|
readonly selectFooter: "select__footer";
|
|
24
24
|
readonly selectNoResult: "select__no-result";
|
|
25
25
|
readonly selectSearchedPhrase: "select__searched-phrase";
|
|
26
|
+
readonly selectCloseMobileButton: "select__close-mobile-btn";
|
|
27
|
+
readonly selectClearButton: "select__clear-btn";
|
|
28
|
+
readonly selectCloseButton: "select__close-btn";
|
|
29
|
+
readonly selectLabel: "select__label";
|
|
26
30
|
};
|
|
@@ -4,7 +4,7 @@ const SELECT_CONTEXTS = {
|
|
|
4
4
|
};
|
|
5
5
|
const SELECT_SLOT_NAMES = {
|
|
6
6
|
content: 'content',
|
|
7
|
-
|
|
7
|
+
toggler: 'toggler'
|
|
8
8
|
};
|
|
9
9
|
const SELECT_EVENT_NAMES = {
|
|
10
10
|
selectOption: 'selectOption.select',
|
|
@@ -23,7 +23,11 @@ const SELECT_CSS_CLASSES = {
|
|
|
23
23
|
selectContent: `${baseSelectClass}__content`,
|
|
24
24
|
selectFooter: `${baseSelectClass}__footer`,
|
|
25
25
|
selectNoResult: `${baseSelectClass}__no-result`,
|
|
26
|
-
selectSearchedPhrase: `${baseSelectClass}__searched-phrase
|
|
26
|
+
selectSearchedPhrase: `${baseSelectClass}__searched-phrase`,
|
|
27
|
+
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
28
|
+
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
29
|
+
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
30
|
+
selectLabel: `${baseSelectClass}__label`
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
export { MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH, SELECT_CONTEXTS, SELECT_CSS_CLASSES, SELECT_EVENT_NAMES, SELECT_RESIZE_DEBOUNCE_TIME, SELECT_SLOT_NAMES };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;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,14 +1,19 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit';
|
|
2
2
|
import { TIconSize } from "./icon_constants";
|
|
3
3
|
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element/phoenix_light_lit_element";
|
|
4
|
+
import { Subject } from "../../core/classes/subject/subject";
|
|
4
5
|
export declare class HIcon extends PhoenixLightLitElement {
|
|
5
|
-
static src: string
|
|
6
|
+
static src: Subject<string>;
|
|
6
7
|
iconName: string;
|
|
7
8
|
size?: TIconSize | undefined;
|
|
8
9
|
filled: boolean;
|
|
9
10
|
clickable: boolean;
|
|
10
11
|
noStroke: boolean;
|
|
11
12
|
private _cssClasses;
|
|
13
|
+
private _srcObserver;
|
|
14
|
+
constructor();
|
|
15
|
+
private _srcObserverCallback;
|
|
12
16
|
connectedCallback(): void;
|
|
13
|
-
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
protected render(): TemplateResult | null;
|
|
14
19
|
}
|
|
@@ -6,19 +6,27 @@ import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_eleme
|
|
|
6
6
|
import { ICON_CSS_CLASSES, ICON_SIZES_CSS_CLASS_MAP } from './icon_constants.js';
|
|
7
7
|
import classnames from '../../../external/classnames/index.js';
|
|
8
8
|
import { namespacedAttribute } from '../../directives/namespaced_attribure_directive.js';
|
|
9
|
+
import { Observer } from '../../core/classes/observer/observer.js';
|
|
10
|
+
import { Subject } from '../../core/classes/subject/subject.js';
|
|
9
11
|
|
|
10
12
|
var HIcon_1;
|
|
11
13
|
let HIcon = HIcon_1 = class HIcon extends PhoenixLightLitElement {
|
|
12
14
|
constructor() {
|
|
13
|
-
super(
|
|
15
|
+
super();
|
|
14
16
|
this.filled = false;
|
|
15
17
|
this.clickable = false;
|
|
16
18
|
this.noStroke = false;
|
|
19
|
+
this._srcObserverCallback = (src) => {
|
|
20
|
+
if (src)
|
|
21
|
+
this.requestUpdate();
|
|
22
|
+
};
|
|
23
|
+
this._srcObserver = new Observer(this._srcObserverCallback);
|
|
24
|
+
HIcon_1.src.subscribe(this._srcObserver);
|
|
17
25
|
}
|
|
18
26
|
connectedCallback() {
|
|
19
27
|
var _a;
|
|
20
28
|
super.connectedCallback();
|
|
21
|
-
|
|
29
|
+
HIcon_1.src.subscribe(this._srcObserver);
|
|
22
30
|
this._cssClasses = classnames(ICON_CSS_CLASSES.icon, {
|
|
23
31
|
[ICON_SIZES_CSS_CLASS_MAP[(_a = this.size) !== null && _a !== void 0 ? _a : '']]: Boolean(this.size),
|
|
24
32
|
[ICON_CSS_CLASSES.iconFilled]: this.filled,
|
|
@@ -26,15 +34,20 @@ let HIcon = HIcon_1 = class HIcon extends PhoenixLightLitElement {
|
|
|
26
34
|
[ICON_CSS_CLASSES.iconClickable]: this.clickable
|
|
27
35
|
});
|
|
28
36
|
}
|
|
37
|
+
disconnectedCallback() {
|
|
38
|
+
HIcon_1.src.unsubscribe(this._srcObserver);
|
|
39
|
+
}
|
|
29
40
|
render() {
|
|
30
|
-
|
|
41
|
+
if (!HIcon_1.src.getValue())
|
|
42
|
+
return null;
|
|
31
43
|
return html `
|
|
32
44
|
<svg class="${this._cssClasses}">
|
|
33
|
-
<use xlink:href="${namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src}#${this.iconName}`)}"></use>
|
|
45
|
+
<use xlink:href="${namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src.getValue()}#${this.iconName}`)}"></use>
|
|
34
46
|
</svg>
|
|
35
47
|
`;
|
|
36
48
|
}
|
|
37
49
|
};
|
|
50
|
+
HIcon.src = new Subject();
|
|
38
51
|
__decorate([
|
|
39
52
|
property({ type: String, attribute: 'icon-name' }),
|
|
40
53
|
__metadata("design:type", String)
|
|
@@ -56,7 +69,8 @@ __decorate([
|
|
|
56
69
|
__metadata("design:type", Boolean)
|
|
57
70
|
], HIcon.prototype, "noStroke", void 0);
|
|
58
71
|
HIcon = HIcon_1 = __decorate([
|
|
59
|
-
phoenixCustomElement('h-icon')
|
|
72
|
+
phoenixCustomElement('h-icon'),
|
|
73
|
+
__metadata("design:paramtypes", [])
|
|
60
74
|
], HIcon);
|
|
61
75
|
|
|
62
76
|
export { HIcon };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA;AACA;AACA,uBAAuB,uCAA2C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,uBAAuB,uCAA2C;AAClE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,9 +2,9 @@ import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.
|
|
|
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
4
|
import { property, state } from '@lit/reactive-element/decorators.js';
|
|
5
|
-
import { html } from 'lit-html';
|
|
6
5
|
import { createRef, ref } from 'lit-html/directives/ref.js';
|
|
7
6
|
import { PORTAL_TARGET_NAME_PROP } from '../portal/portal_constants.js';
|
|
7
|
+
import { html } from 'lit-html';
|
|
8
8
|
import { BackdropController } from '../backdrop/controller/backdrop_controller.js';
|
|
9
9
|
import '@lit/reactive-element';
|
|
10
10
|
import { MODAL_OPENED_PROP, FOCUSABLE_ELEMENTS_WITHIN_MODAL, MODALS_PORTAL_NAME, MODAL_EVENTS } from './modal_constants.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import { CONTEXT_ASYNC_CONSUMER_DEFAULT_INTERVAL_RATE, CONTEXT_ASYNC_CONSUMER_DFAULT_MAX_WAITING_TIME } from './context_constants.js';
|
|
4
3
|
import { WEB_COMPONENT_CONTEXT_EVENTS } from './context_consumer_messages_names.js';
|
|
4
|
+
import { CONTEXT_ASYNC_CONSUMER_DEFAULT_INTERVAL_RATE, CONTEXT_ASYNC_CONSUMER_DFAULT_MAX_WAITING_TIME } from './context_constants.js';
|
|
5
5
|
|
|
6
6
|
var _ContextConsumerController_host, _ContextConsumerController_asyncConsumerSentinelId, _ContextConsumerController_asyncConsumerIntervalId;
|
|
7
7
|
class ContextConsumerController {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { HOption } from "./components/form/select/components/option/select_option";
|
|
2
2
|
export { HOptionContent } from "./components/form/select/components/option/select_option_content";
|
|
3
3
|
export { HOptions } from "./components/form/select/components/select_options";
|
|
4
|
-
export { HSelectToggler } from "./components/form/select/components/toggler/select_toggler";
|
|
5
4
|
export { HSelect } from "./components/form/select/select";
|
|
6
5
|
export { DEFAULT_SLOT_NAME } from "./core/phoenix_light_lit_element/phoenix_light_lit_elements_constants";
|
|
7
6
|
export { IPhoenixWebComponentClass } from "./global_types";
|
|
@@ -6,8 +6,6 @@ export { HIcon } from './components/icon/icon.js';
|
|
|
6
6
|
export { HOption } from './components/form/select/components/option/select_option.js';
|
|
7
7
|
export { HOptionContent } from './components/form/select/components/option/select_option_content.js';
|
|
8
8
|
export { HOptions } from './components/form/select/components/select_options.js';
|
|
9
|
-
export { ContextConsumerController } from './core/context/context_consumer_controller.js';
|
|
10
|
-
export { HSelectToggler } from './components/form/select/components/toggler/select_toggler.js';
|
|
11
9
|
export { ContextProviderController } from './core/context/context_provider_controller.js';
|
|
12
10
|
export { HPortal } from './components/portal/portal.js';
|
|
13
11
|
export { HPortalTarget } from './components/portal/portal_target.js';
|
|
@@ -18,6 +16,7 @@ export { ToggleElementAriaController } from './controllers/toggle_element_aria_c
|
|
|
18
16
|
export { HDropdownToggler } from './components/dropdown/dropdown_toggler.js';
|
|
19
17
|
export { RelativePositionController } from './controllers/relative_position_controller/relative_position_controller.js';
|
|
20
18
|
export { HDropdown } from './components/dropdown/dropdown.js';
|
|
19
|
+
export { ContextConsumerController } from './core/context/context_consumer_controller.js';
|
|
21
20
|
export { HSelect } from './components/form/select/select.js';
|
|
22
21
|
export { HModal } from './components/modal/modal.js';
|
|
23
22
|
export { HModalOpener } from './components/modal/modal_opener.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|