@shoper/phoenix_design_system 0.18.0 → 0.18.2
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 → external/@dreamcommerce}/utilities/build/esm/json_utils.js +0 -0
- package/build/cjs/{packages → external/@dreamcommerce}/utilities/build/esm/json_utils.js.map +0 -0
- 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 +1 -1
- package/build/cjs/packages/phoenix/src/components/accordion/accordion_toggler.js +1 -1
- package/build/cjs/packages/phoenix/src/components/backdrop/backdrop.js +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js +13 -5
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_constants.js +4 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_constants.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js +5 -3
- package/build/cjs/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
- package/build/cjs/packages/phoenix/src/components/form/checkbox/checkbox.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/checkbox/checkbox_content.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/control/control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/control/control_additional_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/control/control_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/control/control_element.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/control/control_errors.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/control/control_label.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/input/input.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/input/input_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/input/input_icon.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/input/input_unit.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/radio/radio.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/radio/radio_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/radio/radio_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/switch/switch.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/switch/switch_content.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/switch/switch_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/textarea/textarea.js +1 -1
- package/build/cjs/packages/phoenix/src/components/form/textarea/textarea_control.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal_body.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal_close.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal_footer.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal_header.js +1 -1
- package/build/cjs/packages/phoenix/src/components/modal/modal_opener.js +1 -1
- package/build/cjs/packages/phoenix/src/components/portal/portal.js +1 -1
- package/build/cjs/packages/phoenix/src/components/portal/portal_target.js +1 -1
- package/build/cjs/packages/phoenix/src/components/slider/slider.js +2 -2
- package/build/cjs/packages/phoenix/src/components/slider/slider.js.map +1 -1
- package/build/cjs/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js +3 -3
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element.js +51 -0
- package/build/cjs/packages/phoenix/src/{components/groups/toggle_button_group/toggle_button.js.map → core/phoenix_light_lit_element.js.map} +1 -1
- package/build/cjs/packages/phoenix/src/core/{phoenix_light_lit_element/phoenix_light_lit_elements_constants.js → phoenix_light_lit_elements_constants.js} +1 -5
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_elements_constants.js.map +1 -0
- package/build/cjs/packages/phoenix/src/index.js +7 -21
- package/build/cjs/packages/phoenix/src/index.js.map +1 -1
- package/build/esm/{packages → external/@dreamcommerce}/utilities/build/esm/json_utils.js +0 -0
- package/build/esm/{packages → external/@dreamcommerce}/utilities/build/esm/json_utils.js.map +0 -0
- package/build/esm/packages/phoenix/src/components/accordion/accordion.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion.js +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_content.d.ts +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.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_group.js +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/accordion/accordion_toggler.js +1 -1
- package/build/esm/packages/phoenix/src/components/backdrop/backdrop.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/backdrop/backdrop.js +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.d.ts +6 -4
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown.js +13 -5
- 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 +3 -0
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_constants.js +4 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_constants.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_content.js +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 +6 -4
- package/build/esm/packages/phoenix/src/components/dropdown/dropdown_toggler.js.map +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/checkbox/checkbox_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_additional_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_additional_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_element.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_element.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_errors.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_errors.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_label.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/control/control_label.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_icon.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_icon.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_unit.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/input/input_unit.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio_control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/radio/radio_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch_content.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch_content.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch_control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/switch/switch_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/textarea/textarea.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/textarea/textarea.js +1 -1
- package/build/esm/packages/phoenix/src/components/form/textarea/textarea_control.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/form/textarea/textarea_control.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_body.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_body.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_close.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_close.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_footer.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_footer.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_header.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_header.js +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_opener.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/modal/modal_opener.js +1 -1
- package/build/esm/packages/phoenix/src/components/portal/portal.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/portal/portal.js +1 -1
- package/build/esm/packages/phoenix/src/components/portal/portal_target.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/portal/portal_target.js +1 -1
- package/build/esm/packages/phoenix/src/components/slider/slider.d.ts +1 -1
- package/build/esm/packages/phoenix/src/components/slider/slider.js +2 -2
- package/build/esm/packages/phoenix/src/components/slider/slider.js.map +1 -1
- package/build/esm/packages/phoenix/src/controllers/btn_controller.d.ts +1 -1
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js +3 -3
- package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller_types.d.ts +1 -1
- package/build/esm/packages/phoenix/src/core/{phoenix_light_lit_element/phoenix_light_lit_element.d.ts → phoenix_light_lit_element.d.ts} +0 -7
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element.js +47 -0
- package/build/esm/packages/phoenix/src/{components/groups/toggle_button_group/toggle_button.js.map → core/phoenix_light_lit_element.js.map} +1 -1
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_elements_constants.d.ts +1 -0
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_elements_constants.js +4 -0
- package/build/esm/packages/phoenix/src/core/{phoenix_light_lit_element/phoenix_light_lit_elements_constants.js.map → phoenix_light_lit_elements_constants.js.map} +1 -1
- package/build/esm/packages/phoenix/src/index.d.ts +2 -5
- package/build/esm/packages/phoenix/src/index.js +4 -6
- package/build/esm/packages/phoenix/src/index.js.map +1 -1
- package/package.json +1 -3
- package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button.js +0 -55
- package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group.js +0 -67
- package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group.js.map +0 -1
- package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_constants.js +0 -17
- package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_constants.js.map +0 -1
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js +0 -86
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js.map +0 -1
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element_utils.js +0 -17
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element_utils.js.map +0 -1
- package/build/cjs/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_elements_constants.js.map +0 -1
- package/build/cjs/packages/utilities/build/esm/web_components_utils.js +0 -18
- package/build/cjs/packages/utilities/build/esm/web_components_utils.js.map +0 -1
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button.d.ts +0 -10
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button.js +0 -53
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group.d.ts +0 -12
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group.js +0 -65
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group.js.map +0 -1
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_constants.d.ts +0 -8
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_constants.js +0 -11
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_constants.js.map +0 -1
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_types.d.ts +0 -6
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_types.js +0 -2
- package/build/esm/packages/phoenix/src/components/groups/toggle_button_group/toggle_button_group_types.js.map +0 -1
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js +0 -82
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element.js.map +0 -1
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element_utils.d.ts +0 -4
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element_utils.js +0 -13
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_element_utils.js.map +0 -1
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_elements_constants.d.ts +0 -4
- package/build/esm/packages/phoenix/src/core/phoenix_light_lit_element/phoenix_light_lit_elements_constants.js +0 -7
- package/build/esm/packages/utilities/build/esm/web_components_utils.js +0 -14
- package/build/esm/packages/utilities/build/esm/web_components_utils.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HRadio extends PhoenixLightLitElement {
|
|
3
3
|
controlId: string;
|
|
4
4
|
controlName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
3
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
3
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
import classnames from '../../../../external/classnames/index.js';
|
|
6
6
|
import { BASE_FORM_CONTROL_PROPS } from '../controllers/props_synchronizing/control_props_sync_controller_constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
export declare class HRadioContent extends PhoenixLightLitElement {
|
|
4
4
|
controlId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html, nothing } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
7
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
export declare class HRadioControl extends PhoenixLightLitElement {
|
|
4
4
|
controlId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
7
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HSwitch extends PhoenixLightLitElement {
|
|
3
3
|
controlId: string;
|
|
4
4
|
controlName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
3
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
3
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
import classnames from '../../../../external/classnames/index.js';
|
|
6
6
|
import { BASE_FORM_CONTROL_PROPS } from '../controllers/props_synchronizing/control_props_sync_controller_constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
export declare class HSwitchContent extends PhoenixLightLitElement {
|
|
4
4
|
controlId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html, nothing } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
7
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
export declare class HSwitchControl extends PhoenixLightLitElement {
|
|
4
4
|
controlId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
7
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HTextarea extends PhoenixLightLitElement {
|
|
3
3
|
controlId: string;
|
|
4
4
|
controlName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
3
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
3
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
import classnames from '../../../../external/classnames/index.js';
|
|
6
6
|
import { BASE_FORM_CONTROL_PROPS } from '../controllers/props_synchronizing/control_props_sync_controller_constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TemplateResult } from 'lit';
|
|
3
3
|
export declare class HTextareaControl extends PhoenixLightLitElement {
|
|
4
4
|
controlId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { html, nothing } from 'lit';
|
|
3
3
|
import { property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { ControlPropsSyncConsumerController } from '../controllers/props_synchronizing/control_props_sync_consumer_controller.js';
|
|
7
7
|
import { ifDefined } from 'lit-html/directives/if-defined.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateResult } from 'lit-html';
|
|
2
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
3
3
|
import { PropertyValues } from '@lit/reactive-element';
|
|
4
4
|
export declare class HModal extends PhoenixLightLitElement {
|
|
5
5
|
opened: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
3
3
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
import { PORTAL_TARGET_NAME_PROP } from '../portal/portal_constants.js';
|
|
5
5
|
import { MODAL_OPENED_PROP, FOCUSABLE_ELEMENTS_WITHIN_MODAL, MODALS_PORTAL_NAME, MODAL_EVENTS } from './modal_constants.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HModalBody extends PhoenixLightLitElement {
|
|
3
3
|
constructor();
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
3
3
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
|
|
5
5
|
let HModalBody = class HModalBody extends PhoenixLightLitElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HModalClose extends PhoenixLightLitElement {
|
|
3
3
|
constructor();
|
|
4
4
|
connectedCallback(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
3
3
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
import { MODAL_EVENTS } from './modal_constants.js';
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HModalFooter extends PhoenixLightLitElement {
|
|
3
3
|
constructor();
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
3
3
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
|
|
5
5
|
let HModalFooter = class HModalFooter extends PhoenixLightLitElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HModalHeader extends PhoenixLightLitElement {
|
|
3
3
|
constructor();
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
3
3
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
4
4
|
|
|
5
5
|
let HModalHeader = class HModalHeader extends PhoenixLightLitElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
export declare class HModalOpener extends PhoenixLightLitElement {
|
|
3
3
|
name: string;
|
|
4
4
|
constructor();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
3
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
3
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
4
4
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
5
5
|
|
|
6
6
|
let HModalOpener = class HModalOpener extends PhoenixLightLitElement {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
import { PropertyValues } from 'lit';
|
|
3
3
|
export declare class HPortal extends PhoenixLightLitElement {
|
|
4
4
|
_id: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import 'lit';
|
|
3
3
|
import { state, property } from 'lit/decorators';
|
|
4
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
4
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { PORTAL_EVENTS } from './portal_constants.js';
|
|
7
7
|
import v4 from '../../../../../external/uuid/dist/esm-browser/v4.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
1
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
2
2
|
import { TPortalEventData } from './portal_types';
|
|
3
3
|
export declare class HPortalTarget extends PhoenixLightLitElement {
|
|
4
4
|
static portalTargetsNames: Set<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property, state } from 'lit/decorators';
|
|
3
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element
|
|
3
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
4
4
|
import { PortalTargetError } from './portal_target_error.js';
|
|
5
5
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
6
6
|
import { PORTAL_EVENTS, PORTAL_TARGET_NAME_PROP } from './portal_constants.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ISlider } from './slider_types';
|
|
2
|
-
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element
|
|
2
|
+
import { PhoenixLightLitElement } from "../../core/phoenix_light_lit_element";
|
|
3
3
|
export declare class HSlider extends PhoenixLightLitElement {
|
|
4
4
|
settings: string;
|
|
5
5
|
id: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { __decorate, __metadata } from '../../../../../external/tslib/tslib.es6.js';
|
|
2
2
|
import { property } from 'lit/decorators';
|
|
3
|
-
import {
|
|
4
|
-
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element/phoenix_light_lit_element.js';
|
|
3
|
+
import { PhoenixLightLitElement } from '../../core/phoenix_light_lit_element.js';
|
|
5
4
|
import { phoenixCustomElement } from '../../core/decorators/phoenix_custom_element.js';
|
|
6
5
|
import { Splide } from '../../../../../external/@splidejs/splide/dist/js/splide.esm.js';
|
|
6
|
+
import { JsonUtils } from '../../../../../external/@dreamcommerce/utilities/build/esm/json_utils.js';
|
|
7
7
|
|
|
8
8
|
let HSlider = class HSlider extends PhoenixLightLitElement {
|
|
9
9
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC,4CAAgD;AACvF;AACA;AACA;AACA,uBAAuB,gEAAoE;AAC3F,0BAA0B,0EAA8E;AACxG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,7 +2,7 @@ import { ReactiveController, ReactiveControllerHost } from 'lit';
|
|
|
2
2
|
export declare class BtnController implements ReactiveController {
|
|
3
3
|
host: ReactiveControllerHost & HTMLElement;
|
|
4
4
|
private _keystrokesController;
|
|
5
|
-
constructor(host: ReactiveControllerHost & HTMLElement, callback: () => void);
|
|
5
|
+
constructor(host: ReactiveControllerHost & HTMLElement, callback: (ev: Event) => void);
|
|
6
6
|
hostConnected(): void;
|
|
7
7
|
hostDisconnected(): void;
|
|
8
8
|
}
|
package/build/esm/packages/phoenix/src/controllers/keystrokes_controller/keystrokes_controller.js
CHANGED
|
@@ -17,15 +17,15 @@ class KeystrokesController {
|
|
|
17
17
|
}
|
|
18
18
|
this._buffer.push(key);
|
|
19
19
|
this._lastKeyTime = currentTime;
|
|
20
|
-
this._bindKeysWithCallback(this._buffer.join(''));
|
|
20
|
+
this._bindKeysWithCallback(ev, this._buffer.join(''));
|
|
21
21
|
};
|
|
22
|
-
this._bindKeysWithCallback = (keySequence) => {
|
|
22
|
+
this._bindKeysWithCallback = (ev, keySequence) => {
|
|
23
23
|
const isCorrectKeyPressed = !!this._keys.find((key) => {
|
|
24
24
|
return key.toLowerCase() === keySequence;
|
|
25
25
|
});
|
|
26
26
|
if (isCorrectKeyPressed) {
|
|
27
27
|
this._buffer = [];
|
|
28
|
-
this._callback();
|
|
28
|
+
this._callback(ev);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
__classPrivateFieldSet(this, _KeystrokesController_host, host, "f");
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { LitElement, TemplateResult, nothing, PropertyValues } from 'lit';
|
|
2
2
|
export declare class PhoenixLightLitElement extends LitElement {
|
|
3
3
|
_slots: Record<string, TemplateResult[]>;
|
|
4
|
-
protected childrenToWatch: string[];
|
|
5
|
-
isWebComponentConnected: boolean;
|
|
6
4
|
firstUpdated(props: PropertyValues): void;
|
|
7
|
-
private _setupChildrenWatch;
|
|
8
|
-
private _getComponentsNamesToWatch;
|
|
9
|
-
private _handleComponentConnected;
|
|
10
|
-
connectedCallback(): void;
|
|
11
|
-
allChildrenConnected(): void;
|
|
12
5
|
private _assignSlots;
|
|
13
6
|
getSlot(name: string): TemplateResult[] | typeof nothing;
|
|
14
7
|
hasSlot(name: string): boolean;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { DEFAULT_SLOT_NAME } from './phoenix_light_lit_elements_constants.js';
|
|
2
|
+
import { __decorate, __metadata } from '../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { LitElement, html, nothing } from 'lit';
|
|
4
|
+
import { state } from 'lit/decorators';
|
|
5
|
+
|
|
6
|
+
class PhoenixLightLitElement extends LitElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this._slots = {};
|
|
10
|
+
}
|
|
11
|
+
firstUpdated(props) {
|
|
12
|
+
super.firstUpdated(props);
|
|
13
|
+
this._slots = this._assignSlots();
|
|
14
|
+
this.requestUpdate();
|
|
15
|
+
}
|
|
16
|
+
_assignSlots() {
|
|
17
|
+
return [...this.querySelectorAll(':scope > [slot]')].reduce((acc, $el) => {
|
|
18
|
+
var _a;
|
|
19
|
+
const slotName = $el.slot || DEFAULT_SLOT_NAME;
|
|
20
|
+
acc[slotName] = acc[slotName] || [];
|
|
21
|
+
acc[slotName].push(html `${$el}`);
|
|
22
|
+
(_a = $el.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild($el);
|
|
23
|
+
$el.removeAttribute('slot');
|
|
24
|
+
return acc;
|
|
25
|
+
}, this._slots);
|
|
26
|
+
}
|
|
27
|
+
getSlot(name) {
|
|
28
|
+
try {
|
|
29
|
+
return this._slots[name];
|
|
30
|
+
}
|
|
31
|
+
catch (_a) { }
|
|
32
|
+
return nothing;
|
|
33
|
+
}
|
|
34
|
+
hasSlot(name) {
|
|
35
|
+
return !!this._slots[name];
|
|
36
|
+
}
|
|
37
|
+
createRenderRoot() {
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
__decorate([
|
|
42
|
+
state(),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], PhoenixLightLitElement.prototype, "_slots", void 0);
|
|
45
|
+
|
|
46
|
+
export { PhoenixLightLitElement };
|
|
47
|
+
//# sourceMappingURL=phoenix_light_lit_element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,uCAAuC
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,uCAAuC,yCAA6C;AACpF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_SLOT_NAME = "default";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { DEFAULT_SLOT_NAME } from "./core/
|
|
1
|
+
export { DEFAULT_SLOT_NAME } from "./core/phoenix_light_lit_elements_constants";
|
|
2
2
|
export { IPhoenixWebComponentClass } from "./global_types";
|
|
3
3
|
export { ContextProviderController } from "./core/context/context_provider_controller";
|
|
4
4
|
export { ContextConsumerController } from "./core/context/context_consumer_controller";
|
|
5
|
-
export { PhoenixLightLitElement } from "./core/phoenix_light_lit_element
|
|
5
|
+
export { PhoenixLightLitElement } from "./core/phoenix_light_lit_element";
|
|
6
6
|
export { HPortal } from './components/portal/portal';
|
|
7
7
|
export { HPortalTarget } from './components/portal/portal_target';
|
|
8
8
|
export { HModal } from './components/modal/modal';
|
|
@@ -54,9 +54,6 @@ export { BtnController } from './controllers/btn_controller';
|
|
|
54
54
|
export { HDropdown } from './components/dropdown/dropdown';
|
|
55
55
|
export { HDropdownToggler } from './components/dropdown/dropdown_toggler';
|
|
56
56
|
export { HDropdownContent } from './components/dropdown/dropdown_content';
|
|
57
|
-
export { HToggleButtonGroup } from './components/groups/toggle_button_group/toggle_button_group';
|
|
58
|
-
export { HToggleButton } from './components/groups/toggle_button_group/toggle_button';
|
|
59
|
-
export type { ISingleToggleOnModeToggleChange } from './components/groups/toggle_button_group/toggle_button_group_types';
|
|
60
57
|
export { ClickOutsideController } from './controllers/click_outside_controller/click_outside_controller';
|
|
61
58
|
export { IClickOutsideController } from "./controllers/click_outside_controller/click_outside_controller_types";
|
|
62
59
|
export { CLICK_OUTSIDE_CONTROLLER_MESSAGES } from "./controllers/click_outside_controller/click_outside_controller_messages";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { DEFAULT_SLOT_NAME } from './core/
|
|
1
|
+
export { DEFAULT_SLOT_NAME } from './core/phoenix_light_lit_elements_constants.js';
|
|
2
2
|
export { ContextProviderController } from './core/context/context_provider_controller.js';
|
|
3
3
|
export { ContextConsumerController } from './core/context/context_consumer_controller.js';
|
|
4
|
-
export { PhoenixLightLitElement } from './core/phoenix_light_lit_element
|
|
4
|
+
export { PhoenixLightLitElement } from './core/phoenix_light_lit_element.js';
|
|
5
5
|
export { HPortalTarget } from './components/portal/portal_target.js';
|
|
6
6
|
export { HPortal } from './components/portal/portal.js';
|
|
7
7
|
export { BackdropController } from './components/backdrop/controller/backdrop_controller.js';
|
|
@@ -48,12 +48,10 @@ export { HAccordionContent } from './components/accordion/accordion_content.js';
|
|
|
48
48
|
export { HAccordionToggler } from './components/accordion/accordion_toggler.js';
|
|
49
49
|
export { ClickOutsideController } from './controllers/click_outside_controller/click_outside_controller.js';
|
|
50
50
|
export { HDropdownContent } from './components/dropdown/dropdown_content.js';
|
|
51
|
-
export { RelativePositionController } from './controllers/relative_position_controller/relative_position_controller.js';
|
|
52
|
-
export { HDropdown } from './components/dropdown/dropdown.js';
|
|
53
51
|
export { ToggleElementAriaController } from './controllers/toggle_element_aria_controller/toggle_element_aria_controller.js';
|
|
54
52
|
export { HDropdownToggler } from './components/dropdown/dropdown_toggler.js';
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
53
|
+
export { RelativePositionController } from './controllers/relative_position_controller/relative_position_controller.js';
|
|
54
|
+
export { HDropdown } from './components/dropdown/dropdown.js';
|
|
57
55
|
export { CLICK_OUTSIDE_CONTROLLER_MESSAGES } from './controllers/click_outside_controller/click_outside_controller_messages.js';
|
|
58
56
|
export { HBackdrop } from './components/backdrop/backdrop.js';
|
|
59
57
|
export { VisibilityController } from './controllers/visibility_controller/visibility_controller.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;
|
|
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;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@shoper/phoenix_design_system",
|
|
3
3
|
"packageManager": "yarn@3.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.18.
|
|
5
|
+
"version": "0.18.2",
|
|
6
6
|
"description": "phoenix design system",
|
|
7
7
|
"author": "zefirek",
|
|
8
8
|
"license": "MIT",
|
|
@@ -26,11 +26,9 @@
|
|
|
26
26
|
"watch:tests:unit": "jest --watch -c .config/jest/jest.config.js"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@dreamcommerce/utilities": "0.9.1",
|
|
30
29
|
"@splidejs/splide": "4.0.7"
|
|
31
30
|
},
|
|
32
31
|
"devDependencies": {
|
|
33
|
-
"@dreamcommerce/utilities": "^0.9.1",
|
|
34
32
|
"@shoper/jest_config": "^0.0.0",
|
|
35
33
|
"@shoper/tsconfig": "^0.0.0",
|
|
36
34
|
"@splidejs/splide": "4.0.7",
|
package/build/cjs/packages/phoenix/src/components/groups/toggle_button_group/toggle_button.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib_es6 = require('../../../../../../external/tslib/tslib.es6.js');
|
|
6
|
-
require('lit');
|
|
7
|
-
var decorators = require('lit/decorators');
|
|
8
|
-
var phoenix_light_lit_element = require('../../../core/phoenix_light_lit_element/phoenix_light_lit_element.js');
|
|
9
|
-
var phoenix_custom_element = require('../../../core/decorators/phoenix_custom_element.js');
|
|
10
|
-
var toggle_button_group_constants = require('./toggle_button_group_constants.js');
|
|
11
|
-
|
|
12
|
-
exports.HToggleButton = class HToggleButton extends phoenix_light_lit_element.PhoenixLightLitElement {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.toggledOn = false;
|
|
16
|
-
}
|
|
17
|
-
willUpdate(propertyValues) {
|
|
18
|
-
var _a;
|
|
19
|
-
if (propertyValues.has('toggledOn')) {
|
|
20
|
-
(_a = this.firstElementChild) === null || _a === void 0 ? void 0 : _a.setAttribute('aria-pressed', this.toggledOn.toString());
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
connectedCallback() {
|
|
24
|
-
super.connectedCallback();
|
|
25
|
-
if (!this.hasAttribute('role')) {
|
|
26
|
-
this.setAttribute('role', 'presentation');
|
|
27
|
-
}
|
|
28
|
-
this.addEventListener('click', this._componentClickHandler);
|
|
29
|
-
this._emmitComponentConnected();
|
|
30
|
-
}
|
|
31
|
-
_emmitComponentConnected() {
|
|
32
|
-
const detail = {
|
|
33
|
-
target: this
|
|
34
|
-
};
|
|
35
|
-
this.dispatchEvent(new CustomEvent(toggle_button_group_constants.TOGGLE_BUTTON_EVENT_NAMES.connected, { bubbles: true, detail }));
|
|
36
|
-
}
|
|
37
|
-
_componentClickHandler(event) {
|
|
38
|
-
event.stopPropagation();
|
|
39
|
-
this._emitComponentClickedCustomEvent();
|
|
40
|
-
}
|
|
41
|
-
_emitComponentClickedCustomEvent() {
|
|
42
|
-
const detail = {
|
|
43
|
-
target: this
|
|
44
|
-
};
|
|
45
|
-
this.dispatchEvent(new CustomEvent(toggle_button_group_constants.TOGGLE_BUTTON_EVENT_NAMES.clicked, { bubbles: true, detail }));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
tslib_es6.__decorate([
|
|
49
|
-
decorators.property({ type: Boolean, attribute: toggle_button_group_constants.TOGGLED_ON_ATTRIBUTE_NAME }),
|
|
50
|
-
tslib_es6.__metadata("design:type", Object)
|
|
51
|
-
], exports.HToggleButton.prototype, "toggledOn", void 0);
|
|
52
|
-
exports.HToggleButton = tslib_es6.__decorate([
|
|
53
|
-
phoenix_custom_element.phoenixCustomElement('h-toggle-button')
|
|
54
|
-
], exports.HToggleButton);
|
|
55
|
-
//# sourceMappingURL=toggle_button.js.map
|