@shoper/phoenix_design_system 1.1.4-1 → 1.1.4-11
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 +2 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/select_close_btn.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/select_components_constatns.js +2 -1
- package/build/cjs/packages/phoenix/src/components/form/select/components/select_components_constatns.js.map +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 +28 -10
- 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 -1
- 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 +2 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/select_close_btn.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/select_components_constatns.d.ts +1 -0
- package/build/esm/packages/phoenix/src/components/form/select/components/select_components_constatns.js +2 -1
- package/build/esm/packages/phoenix/src/components/form/select/components/select_components_constatns.js.map +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.d.ts +2 -0
- package/build/esm/packages/phoenix/src/components/form/select/select.js +29 -11
- 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 +2 -1
- package/build/esm/packages/phoenix/src/components/form/select/select_constants.js +2 -1
- 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
|
@@ -7,6 +7,7 @@ var phoenix_light_lit_element = require('../../../../core/phoenix_light_lit_elem
|
|
|
7
7
|
var phoenix_custom_element = require('../../../../core/decorators/phoenix_custom_element.js');
|
|
8
8
|
var select_components_constatns = require('./select_components_constatns.js');
|
|
9
9
|
var btn_controller = require('../../../../controllers/btn_controller/btn_controller.js');
|
|
10
|
+
var icon_constants = require('../../../icon/icon_constants.js');
|
|
10
11
|
var litHtml = require('lit-html');
|
|
11
12
|
|
|
12
13
|
exports.HSelectCloseBtn = class HSelectCloseBtn extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
@@ -28,7 +29,7 @@ exports.HSelectCloseBtn = class HSelectCloseBtn extends phoenix_light_lit_elemen
|
|
|
28
29
|
render() {
|
|
29
30
|
return litHtml.html `${this.hasSlot(select_components_constatns.SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
30
31
|
? this.getSlot(select_components_constatns.SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
31
|
-
: litHtml.html
|
|
32
|
+
: litHtml.html ` <h-icon size=${icon_constants.ICON_SIZES_CSS_CLASS_MAP.l} icon-name="icon-x"></h-icon>`} `;
|
|
32
33
|
}
|
|
33
34
|
};
|
|
34
35
|
exports.HSelectCloseBtn = tslib_es6.__decorate([
|
package/build/cjs/packages/phoenix/src/components/form/select/components/select_close_btn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,kDAAsD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,kDAAsD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -20,7 +20,8 @@ const SELECT_RELATED_COMPONENTS_NAMES = {
|
|
|
20
20
|
optionContent: 'h-option-content',
|
|
21
21
|
toggler: 'h-select-toggler',
|
|
22
22
|
closeBtn: 'h-select-close-btn',
|
|
23
|
-
search: 'h-select-search'
|
|
23
|
+
search: 'h-select-search',
|
|
24
|
+
placeholder: 'h-placeholder'
|
|
24
25
|
};
|
|
25
26
|
const SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME = 'content';
|
|
26
27
|
const SELECT_INPUT_PLACEHOLDER_SLOT_NAME = 'placeholder';
|
|
@@ -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;"}
|
|
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;"}
|
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,9 +23,11 @@ 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() {
|
|
30
|
+
var _a;
|
|
29
31
|
super();
|
|
30
32
|
this.multiselect = false;
|
|
31
33
|
this.opened = false;
|
|
@@ -88,6 +90,9 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
88
90
|
}, select_constants.SELECT_RESIZE_DEBOUNCE_TIME);
|
|
89
91
|
const $options = Array.from(this.querySelectorAll(select_components_constatns.SELECT_RELATED_COMPONENTS_NAMES.option));
|
|
90
92
|
$options.forEach(($option) => $option.setAttribute('slot', select_constants.SELECT_SLOT_NAMES.content));
|
|
93
|
+
this.$placeholder = (_a = this.querySelector(select_components_constatns.SELECT_RELATED_COMPONENTS_NAMES.placeholder)) !== null && _a !== void 0 ? _a : 'Select';
|
|
94
|
+
if (this.$placeholder instanceof HTMLElement)
|
|
95
|
+
this.$placeholder.remove();
|
|
91
96
|
}
|
|
92
97
|
updated(changedProperties) {
|
|
93
98
|
super.updated(changedProperties);
|
|
@@ -189,6 +194,9 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
189
194
|
this._selectController.options$.unsubscribe(this._optionsObserver);
|
|
190
195
|
window.removeEventListener('resize', this._handleResize);
|
|
191
196
|
}
|
|
197
|
+
_getClonedPlaceholderElement() {
|
|
198
|
+
return this.$placeholder instanceof HTMLElement ? this.$placeholder.cloneNode(true) : this.$placeholder;
|
|
199
|
+
}
|
|
192
200
|
render() {
|
|
193
201
|
var _a;
|
|
194
202
|
const options = (_a = this._selectController.options$.getValue()) !== null && _a !== void 0 ? _a : [];
|
|
@@ -200,13 +208,22 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
200
208
|
name=${this.controlName}
|
|
201
209
|
offset=${this.offset}
|
|
202
210
|
>
|
|
203
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
211
|
+
<h-dropdown-toggler name=${this.controlName}>
|
|
212
|
+
<h-select-toggler>
|
|
213
|
+
<span slot="placeholder"> ${lit.html `${this._getClonedPlaceholderElement()}`} </span>
|
|
214
|
+
</h-select-toggler>
|
|
215
|
+
</h-dropdown-toggler>
|
|
204
216
|
|
|
205
217
|
<h-dropdown-content class=${select_constants.SELECT_CSS_CLASSES.selectContent} ${ref_js.ref(this._$dropdownContent)} name=${this.controlName}>
|
|
206
|
-
<h-select-close-btn
|
|
218
|
+
<h-select-close-btn
|
|
219
|
+
class="${select_constants.SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
220
|
+
@selectCloseBtn.close=${this._closeSelect}
|
|
221
|
+
></h-select-close-btn>
|
|
222
|
+
|
|
223
|
+
<div class=${select_constants.SELECT_CSS_CLASSES.selectLabel}>${lit.html `${this._getClonedPlaceholderElement()}`}</div>
|
|
207
224
|
|
|
208
225
|
${options.length > select_constants.MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
209
|
-
? lit.html
|
|
226
|
+
? lit.html ` <h-select-search
|
|
210
227
|
class=${select_constants.SELECT_CSS_CLASSES.selectSearch}
|
|
211
228
|
${ref_js.ref(this._$search)}
|
|
212
229
|
.value=${this._searchValue}
|
|
@@ -225,7 +242,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
225
242
|
`
|
|
226
243
|
: lit.nothing}
|
|
227
244
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
228
|
-
? lit.html
|
|
245
|
+
? lit.html ` <div>
|
|
229
246
|
<p class=${select_constants.SELECT_CSS_CLASSES.selectNoResult}>
|
|
230
247
|
Brak wyników dla: <em class=${select_constants.SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
231
248
|
</p>
|
|
@@ -236,8 +253,8 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
236
253
|
<section class=${select_constants.SELECT_CSS_CLASSES.selectFooter}>
|
|
237
254
|
<button class="${select_constants.SELECT_CSS_CLASSES.selectClearButton}" @click=${this._clearOptions}>clear</button>
|
|
238
255
|
<h-select-close-btn class="${select_constants.SELECT_CSS_CLASSES.selectCloseButton}" @selectCloseBtn.close=${this._closeSelect}
|
|
239
|
-
>ok</
|
|
240
|
-
>
|
|
256
|
+
><span slot=${select_components_constatns.SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME}>ok</span>
|
|
257
|
+
</h-select-close-btn>
|
|
241
258
|
</section>
|
|
242
259
|
`
|
|
243
260
|
: lit.nothing}
|
|
@@ -251,7 +268,8 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
251
268
|
exports.HSelect._components = {
|
|
252
269
|
search: select_search.HSelectSearch,
|
|
253
270
|
icon: icon.HIcon,
|
|
254
|
-
closeBtn: select_close_btn.HSelectCloseBtn
|
|
271
|
+
closeBtn: select_close_btn.HSelectCloseBtn,
|
|
272
|
+
toggler: select_toggler.HSelectToggler
|
|
255
273
|
};
|
|
256
274
|
tslib_es6.__decorate([
|
|
257
275
|
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;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',
|
|
@@ -31,6 +31,7 @@ const SELECT_CSS_CLASSES = {
|
|
|
31
31
|
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
32
32
|
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
33
33
|
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
34
|
+
selectLabel: `${baseSelectClass}__label`
|
|
34
35
|
};
|
|
35
36
|
|
|
36
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;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
|
@@ -3,6 +3,7 @@ import { PhoenixLightLitElement } from '../../../../core/phoenix_light_lit_eleme
|
|
|
3
3
|
import { phoenixCustomElement } from '../../../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
import { SELECT_CLOSE_BTN_EVENT_NAMES, SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME, SELECT_RELATED_COMPONENTS_NAMES } from './select_components_constatns.js';
|
|
5
5
|
import { BtnController } from '../../../../controllers/btn_controller/btn_controller.js';
|
|
6
|
+
import { ICON_SIZES_CSS_CLASS_MAP } from '../../../icon/icon_constants.js';
|
|
6
7
|
import { html } from 'lit-html';
|
|
7
8
|
|
|
8
9
|
let HSelectCloseBtn = class HSelectCloseBtn extends PhoenixLightLitElement {
|
|
@@ -24,7 +25,7 @@ let HSelectCloseBtn = class HSelectCloseBtn extends PhoenixLightLitElement {
|
|
|
24
25
|
render() {
|
|
25
26
|
return html `${this.hasSlot(SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
26
27
|
? this.getSlot(SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME)
|
|
27
|
-
: html
|
|
28
|
+
: html ` <h-icon size=${ICON_SIZES_CSS_CLASS_MAP.l} icon-name="icon-x"></h-icon>`} `;
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
HSelectCloseBtn = __decorate([
|
package/build/esm/packages/phoenix/src/components/form/select/components/select_close_btn.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,2BAA2B,kDAAsD;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;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,2BAA2B,kDAAsD;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;"}
|
|
@@ -17,6 +17,7 @@ export declare const SELECT_RELATED_COMPONENTS_NAMES: {
|
|
|
17
17
|
readonly toggler: "h-select-toggler";
|
|
18
18
|
readonly closeBtn: "h-select-close-btn";
|
|
19
19
|
readonly search: "h-select-search";
|
|
20
|
+
readonly placeholder: "h-placeholder";
|
|
20
21
|
};
|
|
21
22
|
export declare const SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME = "content";
|
|
22
23
|
export declare const SELECT_INPUT_PLACEHOLDER_SLOT_NAME = "placeholder";
|
|
@@ -16,7 +16,8 @@ const SELECT_RELATED_COMPONENTS_NAMES = {
|
|
|
16
16
|
optionContent: 'h-option-content',
|
|
17
17
|
toggler: 'h-select-toggler',
|
|
18
18
|
closeBtn: 'h-select-close-btn',
|
|
19
|
-
search: 'h-select-search'
|
|
19
|
+
search: 'h-select-search',
|
|
20
|
+
placeholder: 'h-placeholder'
|
|
20
21
|
};
|
|
21
22
|
const SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME = 'content';
|
|
22
23
|
const SELECT_INPUT_PLACEHOLDER_SLOT_NAME = 'placeholder';
|
|
@@ -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;"}
|
|
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;"}
|
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;"}
|
|
@@ -19,6 +19,7 @@ export declare class HSelect extends PhoenixLightLitElement {
|
|
|
19
19
|
private _selectContext;
|
|
20
20
|
private _listBoxController;
|
|
21
21
|
private _optionsObserver;
|
|
22
|
+
private $placeholder;
|
|
22
23
|
constructor();
|
|
23
24
|
updated(changedProperties: PropertyValues): void;
|
|
24
25
|
private _focusElementAfterSelectOpened;
|
|
@@ -41,5 +42,6 @@ export declare class HSelect extends PhoenixLightLitElement {
|
|
|
41
42
|
replaceOptions(options: SelectOption[]): void;
|
|
42
43
|
disconnectedCallback(): void;
|
|
43
44
|
private _handleResize;
|
|
45
|
+
private _getClonedPlaceholderElement;
|
|
44
46
|
protected render(): TemplateResult;
|
|
45
47
|
}
|
|
@@ -4,14 +4,14 @@ import { state } from 'lit/decorators';
|
|
|
4
4
|
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { property } from '@lit/reactive-element/decorators.js';
|
|
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';
|
|
7
|
+
import { SELECT_RELATED_COMPONENTS_NAMES, SELECT_CLOSE_BTN_EVENT_NAMES, SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME } from './components/select_components_constatns.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,9 +19,11 @@ 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() {
|
|
26
|
+
var _a;
|
|
25
27
|
super();
|
|
26
28
|
this.multiselect = false;
|
|
27
29
|
this.opened = false;
|
|
@@ -84,6 +86,9 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
84
86
|
}, SELECT_RESIZE_DEBOUNCE_TIME);
|
|
85
87
|
const $options = Array.from(this.querySelectorAll(SELECT_RELATED_COMPONENTS_NAMES.option));
|
|
86
88
|
$options.forEach(($option) => $option.setAttribute('slot', SELECT_SLOT_NAMES.content));
|
|
89
|
+
this.$placeholder = (_a = this.querySelector(SELECT_RELATED_COMPONENTS_NAMES.placeholder)) !== null && _a !== void 0 ? _a : 'Select';
|
|
90
|
+
if (this.$placeholder instanceof HTMLElement)
|
|
91
|
+
this.$placeholder.remove();
|
|
87
92
|
}
|
|
88
93
|
updated(changedProperties) {
|
|
89
94
|
super.updated(changedProperties);
|
|
@@ -185,6 +190,9 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
185
190
|
this._selectController.options$.unsubscribe(this._optionsObserver);
|
|
186
191
|
window.removeEventListener('resize', this._handleResize);
|
|
187
192
|
}
|
|
193
|
+
_getClonedPlaceholderElement() {
|
|
194
|
+
return this.$placeholder instanceof HTMLElement ? this.$placeholder.cloneNode(true) : this.$placeholder;
|
|
195
|
+
}
|
|
188
196
|
render() {
|
|
189
197
|
var _a;
|
|
190
198
|
const options = (_a = this._selectController.options$.getValue()) !== null && _a !== void 0 ? _a : [];
|
|
@@ -196,13 +204,22 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
196
204
|
name=${this.controlName}
|
|
197
205
|
offset=${this.offset}
|
|
198
206
|
>
|
|
199
|
-
<h-dropdown-toggler name=${this.controlName}>
|
|
207
|
+
<h-dropdown-toggler name=${this.controlName}>
|
|
208
|
+
<h-select-toggler>
|
|
209
|
+
<span slot="placeholder"> ${html `${this._getClonedPlaceholderElement()}`} </span>
|
|
210
|
+
</h-select-toggler>
|
|
211
|
+
</h-dropdown-toggler>
|
|
200
212
|
|
|
201
213
|
<h-dropdown-content class=${SELECT_CSS_CLASSES.selectContent} ${ref(this._$dropdownContent)} name=${this.controlName}>
|
|
202
|
-
<h-select-close-btn
|
|
214
|
+
<h-select-close-btn
|
|
215
|
+
class="${SELECT_CSS_CLASSES.selectCloseMobileButton}"
|
|
216
|
+
@selectCloseBtn.close=${this._closeSelect}
|
|
217
|
+
></h-select-close-btn>
|
|
218
|
+
|
|
219
|
+
<div class=${SELECT_CSS_CLASSES.selectLabel}>${html `${this._getClonedPlaceholderElement()}`}</div>
|
|
203
220
|
|
|
204
221
|
${options.length > MIN_NUMBER_OF_OPTIONS_TO_SHOW_SEARCH
|
|
205
|
-
? html
|
|
222
|
+
? html ` <h-select-search
|
|
206
223
|
class=${SELECT_CSS_CLASSES.selectSearch}
|
|
207
224
|
${ref(this._$search)}
|
|
208
225
|
.value=${this._searchValue}
|
|
@@ -221,7 +238,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
221
238
|
`
|
|
222
239
|
: nothing}
|
|
223
240
|
${!this._selectController.visibleOptionsCount && Object.keys(this._$options).length
|
|
224
|
-
? html
|
|
241
|
+
? html ` <div>
|
|
225
242
|
<p class=${SELECT_CSS_CLASSES.selectNoResult}>
|
|
226
243
|
Brak wyników dla: <em class=${SELECT_CSS_CLASSES.selectSearchedPhrase}>"${this._searchValue}"</em>
|
|
227
244
|
</p>
|
|
@@ -232,8 +249,8 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
232
249
|
<section class=${SELECT_CSS_CLASSES.selectFooter}>
|
|
233
250
|
<button class="${SELECT_CSS_CLASSES.selectClearButton}" @click=${this._clearOptions}>clear</button>
|
|
234
251
|
<h-select-close-btn class="${SELECT_CSS_CLASSES.selectCloseButton}" @selectCloseBtn.close=${this._closeSelect}
|
|
235
|
-
>ok</
|
|
236
|
-
>
|
|
252
|
+
><span slot=${SELECT_CLOSE_BUTTON_CONTENT_SLOT_NAME}>ok</span>
|
|
253
|
+
</h-select-close-btn>
|
|
237
254
|
</section>
|
|
238
255
|
`
|
|
239
256
|
: nothing}
|
|
@@ -247,7 +264,8 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
247
264
|
HSelect._components = {
|
|
248
265
|
search: HSelectSearch,
|
|
249
266
|
icon: HIcon,
|
|
250
|
-
closeBtn: HSelectCloseBtn
|
|
267
|
+
closeBtn: HSelectCloseBtn,
|
|
268
|
+
toggler: HSelectToggler
|
|
251
269
|
};
|
|
252
270
|
__decorate([
|
|
253
271
|
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;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";
|
|
@@ -26,4 +26,5 @@ export declare const SELECT_CSS_CLASSES: {
|
|
|
26
26
|
readonly selectCloseMobileButton: "select__close-mobile-btn";
|
|
27
27
|
readonly selectClearButton: "select__clear-btn";
|
|
28
28
|
readonly selectCloseButton: "select__close-btn";
|
|
29
|
+
readonly selectLabel: "select__label";
|
|
29
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',
|
|
@@ -27,6 +27,7 @@ const SELECT_CSS_CLASSES = {
|
|
|
27
27
|
selectCloseMobileButton: `${baseSelectClass}__close-mobile-btn`,
|
|
28
28
|
selectClearButton: `${baseSelectClass}__clear-btn`,
|
|
29
29
|
selectCloseButton: `${baseSelectClass}__close-btn`,
|
|
30
|
+
selectLabel: `${baseSelectClass}__label`
|
|
30
31
|
};
|
|
31
32
|
|
|
32
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;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;"}
|