@shoper/phoenix_design_system 1.1.4-9 → 1.1.4
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 +2 -4
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_constants.js +3 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_constants.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js +13 -8
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +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 +4 -8
- 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 +12 -23
- 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 +2 -6
- 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 +5 -19
- 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 +9 -2
- 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 +2 -4
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_constants.d.ts +1 -0
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_constants.js +3 -2
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_constants.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js +15 -10
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +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 +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/toggler/select_toggler.js +5 -9
- 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 +0 -1
- package/build/esm/packages/phoenix/src/components/form/select/select.js +12 -23
- 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 +1 -5
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js +2 -6
- 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 +2 -7
- package/build/esm/packages/phoenix/src/components/icon/icon.js +5 -19
- 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 +1 -0
- package/build/esm/packages/phoenix/src/index.js +2 -1
- 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 context_provider_controller = require('../../core/context/context_provider_controller.js');
|
|
10
9
|
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
10
|
+
var context_provider_controller = require('../../core/context/context_provider_controller.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 observer = require('../../core/classes/observer/observer.js');
|
|
10
9
|
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
10
|
+
var observer = require('../../core/classes/observer/observer.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');
|
|
9
10
|
var observer = require('../../core/classes/observer/observer.js');
|
|
10
|
-
var context_provider_controller = require('../../core/context/context_provider_controller.js');
|
|
11
11
|
var behavior_subject = require('../../core/classes/behavior_subject/behavior_subject.js');
|
|
12
|
-
var
|
|
12
|
+
var context_provider_controller = require('../../core/context/context_provider_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 observer = require('../../core/classes/observer/observer.js');
|
|
10
9
|
var context_consumer_controller = require('../../core/context/context_consumer_controller.js');
|
|
10
|
+
var observer = require('../../core/classes/observer/observer.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');
|
|
12
13
|
var global_constants = require('../../global_constants.js');
|
|
13
14
|
var dropdown_constants = require('./dropdown_constants.js');
|
|
14
15
|
var relative_position_controller_constants = require('../../controllers/relative_position_controller/relative_position_controller_constants.js');
|
|
15
16
|
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');
|
|
@@ -273,11 +273,9 @@ exports.HDropdown = HDropdown_1 = class HDropdown extends phoenix_light_lit_elem
|
|
|
273
273
|
return this._findRootDropdown(element.parentElement || document.body);
|
|
274
274
|
}
|
|
275
275
|
_setupListeners() {
|
|
276
|
-
var _a;
|
|
277
276
|
this.addEventListener(relative_position_controller_constants.RELATIVE_POSITION_CONTROLLER_EVENTS.disabledPositioning, this._handleDisabledPositioning);
|
|
278
277
|
this.addEventListener(relative_position_controller_constants.RELATIVE_POSITION_CONTROLLER_EVENTS.enabledPositioning, this._handleEnabledPositioning);
|
|
279
|
-
|
|
280
|
-
(_a = this.$dropdownToggler) === null || _a === void 0 ? void 0 : _a.addEventListener(dropdown_constants.DROPDOWN_EVENTS.toggle, this.toggle);
|
|
278
|
+
this.addEventListener(dropdown_constants.DROPDOWN_EVENTS.toggle, this.toggle);
|
|
281
279
|
document.addEventListener(dropdown_constants.DROPDOWN_EVENTS.hide, this.hide);
|
|
282
280
|
window.addEventListener('resize', this._observeScrollToggling);
|
|
283
281
|
document.addEventListener('keydown', this._closeDropdownOnEscape);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4CAAgD;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,4CAAgD;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -20,7 +20,8 @@ const DROPDOWN_CONTENT_CSS_CLASS = `${DROPDOWN_CSS_CLASS}__content`;
|
|
|
20
20
|
const DROPDOWN_TOGGLER_CSS_CLASS = `${DROPDOWN_CSS_CLASS}__toggler`;
|
|
21
21
|
const DROPDOWN_CONTENT_VISIBLE_CLASS = `${DROPDOWN_CONTENT_CSS_CLASS}_visible`;
|
|
22
22
|
const DROPDOWN_CONTENT_SHOW = `${DROPDOWN_CONTENT_CSS_CLASS}_show`;
|
|
23
|
-
const DROPDOWN_CONTENT_HIDE = `${DROPDOWN_CONTENT_CSS_CLASS}_hide`;
|
|
23
|
+
const DROPDOWN_CONTENT_HIDE = `${DROPDOWN_CONTENT_CSS_CLASS}_hide`;
|
|
24
|
+
const DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME = 'toggleOnHover';
|
|
24
25
|
|
|
25
26
|
exports.DEFAULT_DROPDOWN_PORTAL_NAME = DEFAULT_DROPDOWN_PORTAL_NAME;
|
|
26
27
|
exports.DROPDOWN_CONTAINER_NAME = DROPDOWN_CONTAINER_NAME;
|
|
@@ -34,4 +35,5 @@ exports.DROPDOWN_EVENTS = DROPDOWN_EVENTS;
|
|
|
34
35
|
exports.DROPDOWN_NAME = DROPDOWN_NAME;
|
|
35
36
|
exports.DROPDOWN_TOGGLER_CSS_CLASS = DROPDOWN_TOGGLER_CSS_CLASS;
|
|
36
37
|
exports.DROPDOWN_TOGGLER_NAME = DROPDOWN_TOGGLER_NAME;
|
|
38
|
+
exports.DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME = DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME;
|
|
37
39
|
//# sourceMappingURL=dropdown_constants.js.map
|
|
@@ -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;"}
|
|
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;"}
|
|
@@ -8,6 +8,7 @@ var utilities = require('@dreamcommerce/utilities');
|
|
|
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
10
|
var btn_controller = require('../../controllers/btn_controller/btn_controller.js');
|
|
11
|
+
var global_constants = require('../../global_constants.js');
|
|
11
12
|
var dropdown_constants = require('./dropdown_constants.js');
|
|
12
13
|
var toggle_element_aria_controller = require('../../controllers/toggle_element_aria_controller/toggle_element_aria_controller.js');
|
|
13
14
|
|
|
@@ -15,11 +16,15 @@ exports.HDropdownToggler = class HDropdownToggler extends phoenix_light_lit_elem
|
|
|
15
16
|
constructor() {
|
|
16
17
|
super();
|
|
17
18
|
this.name = '';
|
|
18
|
-
this.toggleOnHover = false;
|
|
19
19
|
this._dispatchToggleDropdownEventWithKeyboard = (ev) => {
|
|
20
20
|
ev.stopImmediatePropagation();
|
|
21
21
|
this._dispatchToggleDropdownEvent(ev);
|
|
22
22
|
};
|
|
23
|
+
this._dispatchToggleDropdownEventOnMobile = (ev) => {
|
|
24
|
+
if (window.innerWidth > global_constants.BREAKPOINTS.xs)
|
|
25
|
+
return;
|
|
26
|
+
this._dispatchToggleDropdownEvent(ev);
|
|
27
|
+
};
|
|
23
28
|
this._dispatchToggleDropdownEvent = (ev) => {
|
|
24
29
|
ev.preventDefault();
|
|
25
30
|
const toggleDropdownEvent = new CustomEvent(dropdown_constants.DROPDOWN_EVENTS.toggle, {
|
|
@@ -46,15 +51,19 @@ exports.HDropdownToggler = class HDropdownToggler extends phoenix_light_lit_elem
|
|
|
46
51
|
var _a;
|
|
47
52
|
super.connectedCallback();
|
|
48
53
|
this._btnController = new btn_controller.BtnController(this, this._dispatchToggleDropdownEventWithKeyboard);
|
|
49
|
-
this._$dropdown = this.
|
|
54
|
+
this._$dropdown = this.closest(dropdown_constants.DROPDOWN_CONTAINER_NAME);
|
|
50
55
|
if (this._$dropdown.isOpened)
|
|
51
56
|
this._toggleElementAriaController = new toggle_element_aria_controller.ToggleElementAriaController({
|
|
52
57
|
host: this,
|
|
53
58
|
initialAriaExpandedValue: this._$dropdown.isOpened()
|
|
54
59
|
});
|
|
55
|
-
this.toggleOnHover = ((_a = this._$dropdown) === null || _a === void 0 ? void 0 : _a.getAttribute('toggleOnHover')) !== null;
|
|
56
|
-
this.addEventListener('click', this._dispatchToggleDropdownEvent);
|
|
57
60
|
document.addEventListener('keydown', this._handleFocusToOpenedDropdown);
|
|
61
|
+
const hasToggleOnHover = (_a = this._$dropdown) === null || _a === void 0 ? void 0 : _a.hasAttribute(dropdown_constants.DROPDOWN_TOGGLE_ON_HOVER_ATTRIBUTE_NAME);
|
|
62
|
+
if (hasToggleOnHover) {
|
|
63
|
+
this.addEventListener('click', this._dispatchToggleDropdownEventOnMobile);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.addEventListener('click', this._dispatchToggleDropdownEvent);
|
|
58
67
|
}
|
|
59
68
|
disconnectedCallback() {
|
|
60
69
|
super.disconnectedCallback();
|
|
@@ -65,10 +74,6 @@ tslib_es6.__decorate([
|
|
|
65
74
|
decorators.property({ type: String, reflect: true }),
|
|
66
75
|
tslib_es6.__metadata("design:type", Object)
|
|
67
76
|
], exports.HDropdownToggler.prototype, "name", void 0);
|
|
68
|
-
tslib_es6.__decorate([
|
|
69
|
-
decorators.state(),
|
|
70
|
-
tslib_es6.__metadata("design:type", Object)
|
|
71
|
-
], exports.HDropdownToggler.prototype, "toggleOnHover", void 0);
|
|
72
77
|
exports.HDropdownToggler = tslib_es6.__decorate([
|
|
73
78
|
phoenix_custom_element.phoenixCustomElement('h-dropdown-toggler'),
|
|
74
79
|
tslib_es6.__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,4CAAgD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -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 ref_js = require('lit-html/directives/ref.js');
|
|
11
10
|
var litHtml = require('lit-html');
|
|
11
|
+
var ref_js = require('lit-html/directives/ref.js');
|
|
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 observer = require('../../../../core/classes/observer/observer.js');
|
|
8
7
|
var context_consumer_controller = require('../../../../core/context/context_consumer_controller.js');
|
|
8
|
+
var observer = require('../../../../core/classes/observer/observer.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 context_provider_controller = require('../../../../core/context/context_provider_controller.js');
|
|
8
7
|
var behavior_subject = require('../../../../core/classes/behavior_subject/behavior_subject.js');
|
|
8
|
+
var context_provider_controller = require('../../../../core/context/context_provider_controller.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 `<icon iconName="icon-x"></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 observer = require('../../../../../core/classes/observer/observer.js');
|
|
11
|
-
var select_constants = require('../../select_constants.js');
|
|
12
10
|
var litHtml = require('lit-html');
|
|
13
|
-
var observable_directive = require('../../../../../directives/observable_directive.js');
|
|
14
11
|
var context_consumer_controller = require('../../../../../core/context/context_consumer_controller.js');
|
|
12
|
+
var select_constants = require('../../select_constants.js');
|
|
13
|
+
var observer = require('../../../../../core/classes/observer/observer.js');
|
|
14
|
+
var observable_directive = require('../../../../../directives/observable_directive.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
|
-
|
|
35
|
+
this.setAttribute('slot', select_constants.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,10 +75,6 @@ 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);
|
|
82
78
|
tslib_es6.__decorate([
|
|
83
79
|
decorators.state(),
|
|
84
80
|
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;"}
|
|
@@ -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 observer = require('../../../core/classes/observer/observer.js');
|
|
13
12
|
var icon = require('../../icon/icon.js');
|
|
14
|
-
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
15
13
|
var select_constants = require('./select_constants.js');
|
|
14
|
+
var observer = require('../../../core/classes/observer/observer.js');
|
|
15
|
+
var observable_directive = require('../../../directives/observable_directive.js');
|
|
16
|
+
var context_provider_controller = require('../../../core/context/context_provider_controller.js');
|
|
16
17
|
var ref_js = require('lit-html/directives/ref.js');
|
|
17
18
|
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,7 +23,6 @@ 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');
|
|
27
26
|
|
|
28
27
|
exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
29
28
|
constructor() {
|
|
@@ -201,22 +200,13 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
201
200
|
name=${this.controlName}
|
|
202
201
|
offset=${this.offset}
|
|
203
202
|
>
|
|
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>
|
|
203
|
+
<h-dropdown-toggler name=${this.controlName}> ${this.getSlot(select_constants.SELECT_SLOT_NAMES.input)} </h-dropdown-toggler>
|
|
209
204
|
|
|
210
205
|
<h-dropdown-content class=${select_constants.SELECT_CSS_CLASSES.selectContent} ${ref_js.ref(this._$dropdownContent)} name=${this.controlName}>
|
|
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>
|
|
206
|
+
<h-select-close-btn @selectCloseBtn.close=${this._closeSelect}></h-select-close-btn>
|
|
217
207
|
|
|
218
208
|
${options.length > select_constants.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
219
|
-
? lit.html
|
|
209
|
+
? lit.html `<h-select-search
|
|
220
210
|
class=${select_constants.SELECT_CSS_CLASSES.selectSearch}
|
|
221
211
|
${ref_js.ref(this._$search)}
|
|
222
212
|
.value=${this._searchValue}
|
|
@@ -235,7 +225,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
235
225
|
`
|
|
236
226
|
: lit.nothing}
|
|
237
227
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
238
|
-
? lit.html
|
|
228
|
+
? lit.html `<div>
|
|
239
229
|
<p class=${select_constants.SELECT_CSS_CLASSES.selectNoResult}>
|
|
240
230
|
Brak wyników dla: <em class=${select_constants.SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
241
231
|
</p>
|
|
@@ -244,10 +234,10 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
244
234
|
${this.multiselect && this._selectController.selectedOptionsCount >= 1
|
|
245
235
|
? lit.html `
|
|
246
236
|
<section class=${select_constants.SELECT_CSS_CLASSES.selectFooter}>
|
|
247
|
-
<button class="
|
|
248
|
-
<h-select-close-btn class="
|
|
249
|
-
>ok
|
|
250
|
-
|
|
237
|
+
<button class="btn btn_secondary btn_xs" @click=${this._clearOptions}>clear</button>
|
|
238
|
+
<h-select-close-btn class="btn btn_primary btn_xs" @selectCloseBtn.close=${this._closeSelect}
|
|
239
|
+
>ok</h-select-close-btn
|
|
240
|
+
>
|
|
251
241
|
</section>
|
|
252
242
|
`
|
|
253
243
|
: lit.nothing}
|
|
@@ -261,8 +251,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
261
251
|
exports.HSelect._components = {
|
|
262
252
|
search: select_search.HSelectSearch,
|
|
263
253
|
icon: icon.HIcon,
|
|
264
|
-
closeBtn: select_close_btn.HSelectCloseBtn
|
|
265
|
-
toggler: select_toggler.HSelectToggler
|
|
254
|
+
closeBtn: select_close_btn.HSelectCloseBtn
|
|
266
255
|
};
|
|
267
256
|
tslib_es6.__decorate([
|
|
268
257
|
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,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;
|
|
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;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;"}
|
|
@@ -8,7 +8,7 @@ const SELECT_CONTEXTS = {
|
|
|
8
8
|
};
|
|
9
9
|
const SELECT_SLOT_NAMES = {
|
|
10
10
|
content: 'content',
|
|
11
|
-
|
|
11
|
+
input: 'input'
|
|
12
12
|
};
|
|
13
13
|
const SELECT_EVENT_NAMES = {
|
|
14
14
|
selectOption: 'selectOption.select',
|
|
@@ -27,11 +27,7 @@ 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
|
|
31
|
-
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
32
|
-
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
33
|
-
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
34
|
-
selectLabel: `${baseSelectClass}__label`
|
|
30
|
+
selectSearchedPhrase: `${baseSelectClass}__searched-phrase`
|
|
35
31
|
};
|
|
36
32
|
|
|
37
33
|
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;"}
|
|
@@ -10,27 +10,19 @@ 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');
|
|
15
13
|
|
|
16
14
|
var HIcon_1;
|
|
17
15
|
exports.HIcon = HIcon_1 = class HIcon extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
18
16
|
constructor() {
|
|
19
|
-
super();
|
|
17
|
+
super(...arguments);
|
|
20
18
|
this.filled = false;
|
|
21
19
|
this.clickable = false;
|
|
22
20
|
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);
|
|
29
21
|
}
|
|
30
22
|
connectedCallback() {
|
|
31
23
|
var _a;
|
|
32
24
|
super.connectedCallback();
|
|
33
|
-
|
|
25
|
+
this.classList.add(icon_constants.ICON_CSS_CLASSES.icon);
|
|
34
26
|
this._cssClasses = index['default'](icon_constants.ICON_CSS_CLASSES.icon, {
|
|
35
27
|
[icon_constants.ICON_SIZES_CSS_CLASS_MAP[(_a = this.size) !== null && _a !== void 0 ? _a : '']]: Boolean(this.size),
|
|
36
28
|
[icon_constants.ICON_CSS_CLASSES.iconFilled]: this.filled,
|
|
@@ -38,20 +30,15 @@ exports.HIcon = HIcon_1 = class HIcon extends phoenix_light_lit_element.PhoenixL
|
|
|
38
30
|
[icon_constants.ICON_CSS_CLASSES.iconClickable]: this.clickable
|
|
39
31
|
});
|
|
40
32
|
}
|
|
41
|
-
disconnectedCallback() {
|
|
42
|
-
HIcon_1.src.unsubscribe(this._srcObserver);
|
|
43
|
-
}
|
|
44
33
|
render() {
|
|
45
|
-
|
|
46
|
-
return null;
|
|
34
|
+
super.render();
|
|
47
35
|
return lit.html `
|
|
48
36
|
<svg class="${this._cssClasses}">
|
|
49
|
-
<use xlink:href="${namespaced_attribure_directive.namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src
|
|
37
|
+
<use xlink:href="${namespaced_attribure_directive.namespacedAttribute('http://www.w3.org/1999/xlink', `${HIcon_1.src}#${this.iconName}`)}"></use>
|
|
50
38
|
</svg>
|
|
51
39
|
`;
|
|
52
40
|
}
|
|
53
41
|
};
|
|
54
|
-
exports.HIcon.src = new subject.Subject();
|
|
55
42
|
tslib_es6.__decorate([
|
|
56
43
|
decorators.property({ type: String, attribute: 'icon-name' }),
|
|
57
44
|
tslib_es6.__metadata("design:type", String)
|
|
@@ -73,7 +60,6 @@ tslib_es6.__decorate([
|
|
|
73
60
|
tslib_es6.__metadata("design:type", Boolean)
|
|
74
61
|
], exports.HIcon.prototype, "noStroke", void 0);
|
|
75
62
|
exports.HIcon = HIcon_1 = tslib_es6.__decorate([
|
|
76
|
-
phoenix_custom_element.phoenixCustomElement('h-icon')
|
|
77
|
-
tslib_es6.__metadata("design:paramtypes", [])
|
|
63
|
+
phoenix_custom_element.phoenixCustomElement('h-icon')
|
|
78
64
|
], exports.HIcon);
|
|
79
65
|
//# 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;"}
|
|
@@ -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');
|
|
9
10
|
var ref_js = require('lit-html/directives/ref.js');
|
|
10
11
|
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_consumer_messages_names = require('./context_consumer_messages_names.js');
|
|
8
7
|
var context_constants = require('./context_constants.js');
|
|
8
|
+
var context_consumer_messages_names = require('./context_consumer_messages_names.js');
|
|
9
9
|
|
|
10
10
|
var _ContextConsumerController_host, _ContextConsumerController_asyncConsumerSentinelId, _ContextConsumerController_asyncConsumerIntervalId;
|
|
11
11
|
class ContextConsumerController {
|
|
@@ -10,6 +10,8 @@ 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');
|
|
13
15
|
var context_provider_controller = require('./core/context/context_provider_controller.js');
|
|
14
16
|
var portal = require('./components/portal/portal.js');
|
|
15
17
|
var portal_target = require('./components/portal/portal_target.js');
|
|
@@ -20,7 +22,6 @@ var toggle_element_aria_controller = require('./controllers/toggle_element_aria_
|
|
|
20
22
|
var dropdown_toggler = require('./components/dropdown/dropdown_toggler.js');
|
|
21
23
|
var relative_position_controller = require('./controllers/relative_position_controller/relative_position_controller.js');
|
|
22
24
|
var dropdown = require('./components/dropdown/dropdown.js');
|
|
23
|
-
var context_consumer_controller = require('./core/context/context_consumer_controller.js');
|
|
24
25
|
var select = require('./components/form/select/select.js');
|
|
25
26
|
var modal = require('./components/modal/modal.js');
|
|
26
27
|
var modal_opener = require('./components/modal/modal_opener.js');
|
|
@@ -113,6 +114,13 @@ Object.defineProperty(exports, 'HOptions', {
|
|
|
113
114
|
return select_options.HOptions;
|
|
114
115
|
}
|
|
115
116
|
});
|
|
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
|
+
});
|
|
116
124
|
exports.ContextProviderController = context_provider_controller.ContextProviderController;
|
|
117
125
|
Object.defineProperty(exports, 'HPortal', {
|
|
118
126
|
enumerable: true,
|
|
@@ -148,7 +156,6 @@ Object.defineProperty(exports, 'HDropdown', {
|
|
|
148
156
|
return dropdown.HDropdown;
|
|
149
157
|
}
|
|
150
158
|
});
|
|
151
|
-
exports.ContextConsumerController = context_consumer_controller.ContextConsumerController;
|
|
152
159
|
Object.defineProperty(exports, 'HSelect', {
|
|
153
160
|
enumerable: true,
|
|
154
161
|
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;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 { ContextProviderController } from '../../core/context/context_provider_controller.js';
|
|
6
5
|
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
6
|
+
import { ContextProviderController } from '../../core/context/context_provider_controller.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 { Observer } from '../../core/classes/observer/observer.js';
|
|
6
5
|
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
6
|
+
import { Observer } from '../../core/classes/observer/observer.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';
|
|
5
6
|
import { Observer } from '../../core/classes/observer/observer.js';
|
|
6
|
-
import { ContextProviderController } from '../../core/context/context_provider_controller.js';
|
|
7
7
|
import { BehaviorSubject } from '../../core/classes/behavior_subject/behavior_subject.js';
|
|
8
|
-
import {
|
|
8
|
+
import { ContextProviderController } from '../../core/context/context_provider_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 { Observer } from '../../core/classes/observer/observer.js';
|
|
6
5
|
import { ContextConsumerController } from '../../core/context/context_consumer_controller.js';
|
|
6
|
+
import { Observer } from '../../core/classes/observer/observer.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';
|
|
8
9
|
import { BREAKPOINTS, SCROLLABLE_CLASS_NAME } from '../../global_constants.js';
|
|
9
10
|
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';
|
|
10
11
|
import { DIRECTIONS, RELATIVE_POSITION_CONTROLLER_EVENTS, DEFAULT_THROTTLE_WAIT_TIME } from '../../controllers/relative_position_controller/relative_position_controller_constants.js';
|
|
11
12
|
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';
|
|
@@ -269,11 +269,9 @@ let HDropdown = HDropdown_1 = class HDropdown extends PhoenixLightLitElement {
|
|
|
269
269
|
return this._findRootDropdown(element.parentElement || document.body);
|
|
270
270
|
}
|
|
271
271
|
_setupListeners() {
|
|
272
|
-
var _a;
|
|
273
272
|
this.addEventListener(RELATIVE_POSITION_CONTROLLER_EVENTS.disabledPositioning, this._handleDisabledPositioning);
|
|
274
273
|
this.addEventListener(RELATIVE_POSITION_CONTROLLER_EVENTS.enabledPositioning, this._handleEnabledPositioning);
|
|
275
|
-
|
|
276
|
-
(_a = this.$dropdownToggler) === null || _a === void 0 ? void 0 : _a.addEventListener(DROPDOWN_EVENTS.toggle, this.toggle);
|
|
274
|
+
this.addEventListener(DROPDOWN_EVENTS.toggle, this.toggle);
|
|
277
275
|
document.addEventListener(DROPDOWN_EVENTS.hide, this.hide);
|
|
278
276
|
window.addEventListener('resize', this._observeScrollToggling);
|
|
279
277
|
document.addEventListener('keydown', this._closeDropdownOnEscape);
|