@shoper/phoenix_design_system 1.2.13-17 → 1.2.13-18
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/form/input_stepper/input_stepper.js +3 -2
- package/build/cjs/packages/phoenix/src/components/form/input_stepper/input_stepper.js.map +1 -1
- package/build/cjs/packages/phoenix/src/index.js +7 -7
- package/build/esm/packages/phoenix/src/components/form/input_stepper/input_stepper.js +4 -3
- package/build/esm/packages/phoenix/src/components/form/input_stepper/input_stepper.js.map +1 -1
- package/build/esm/packages/phoenix/src/index.js +1 -1
- package/package.json +1 -1
|
@@ -30,8 +30,9 @@ exports.HInputStepper = class HInputStepper extends phoenix_light_lit_element.Ph
|
|
|
30
30
|
this._setValue(`${inputValue}`);
|
|
31
31
|
};
|
|
32
32
|
this._buttonClick = (event) => {
|
|
33
|
-
const
|
|
34
|
-
const
|
|
33
|
+
const $target = event.target;
|
|
34
|
+
const $buttonStepper = $target.closest(input_stepper_constants.INPUT_STEPPER_COMPONENT_NAMES.button);
|
|
35
|
+
const step = Number($buttonStepper === null || $buttonStepper === void 0 ? void 0 : $buttonStepper.step);
|
|
35
36
|
if (isNaN(step))
|
|
36
37
|
return;
|
|
37
38
|
this._setValueByButton(step);
|
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,wBAAwB,+CAAmD;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -86,9 +86,9 @@ var tooltip = require('./components/messages/tooltips/tooltip.js');
|
|
|
86
86
|
var tooltip_content = require('./components/messages/tooltips/tooltip_content.js');
|
|
87
87
|
var tag = require('./components/tag/tag.js');
|
|
88
88
|
var tag_remove_button = require('./components/tag/tag_remove_button.js');
|
|
89
|
+
var button_stepper = require('./components/form/input_stepper/button_stepper.js');
|
|
89
90
|
var input_stepper = require('./components/form/input_stepper/input_stepper.js');
|
|
90
91
|
var display_stepper = require('./components/form/input_stepper/display_stepper.js');
|
|
91
|
-
var button_stepper = require('./components/form/input_stepper/button_stepper.js');
|
|
92
92
|
var toggle_constants = require('./components/toggle/toggle_constants.js');
|
|
93
93
|
var toggle = require('./components/toggle/toggle.js');
|
|
94
94
|
var toggle_button$1 = require('./components/toggle/toggle_button.js');
|
|
@@ -513,22 +513,22 @@ Object.defineProperty(exports, 'HTagRemoveButton', {
|
|
|
513
513
|
return tag_remove_button.HTagRemoveButton;
|
|
514
514
|
}
|
|
515
515
|
});
|
|
516
|
-
Object.defineProperty(exports, '
|
|
516
|
+
Object.defineProperty(exports, 'HButtonStepper', {
|
|
517
517
|
enumerable: true,
|
|
518
518
|
get: function () {
|
|
519
|
-
return
|
|
519
|
+
return button_stepper.HButtonStepper;
|
|
520
520
|
}
|
|
521
521
|
});
|
|
522
|
-
Object.defineProperty(exports, '
|
|
522
|
+
Object.defineProperty(exports, 'HInputStepper', {
|
|
523
523
|
enumerable: true,
|
|
524
524
|
get: function () {
|
|
525
|
-
return
|
|
525
|
+
return input_stepper.HInputStepper;
|
|
526
526
|
}
|
|
527
527
|
});
|
|
528
|
-
Object.defineProperty(exports, '
|
|
528
|
+
Object.defineProperty(exports, 'HDisplayStepper', {
|
|
529
529
|
enumerable: true,
|
|
530
530
|
get: function () {
|
|
531
|
-
return
|
|
531
|
+
return display_stepper.HDisplayStepper;
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
534
|
exports.TOGGLE_ACTIONS = toggle_constants.TOGGLE_ACTIONS;
|
|
@@ -2,7 +2,7 @@ import { __decorate, __metadata } from '../../../../../../external/tslib/tslib.e
|
|
|
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 {
|
|
5
|
+
import { INPUT_STEPPER_COMPONENT_NAMES, INPUT_STEPPER_EVENT_NAMES, INPUT_STEPPER_CUSTOM_EVENT_NAMES } from './input_stepper_constants.js';
|
|
6
6
|
|
|
7
7
|
let HInputStepper = class HInputStepper extends PhoenixLightLitElement {
|
|
8
8
|
constructor() {
|
|
@@ -26,8 +26,9 @@ let HInputStepper = class HInputStepper extends PhoenixLightLitElement {
|
|
|
26
26
|
this._setValue(`${inputValue}`);
|
|
27
27
|
};
|
|
28
28
|
this._buttonClick = (event) => {
|
|
29
|
-
const
|
|
30
|
-
const
|
|
29
|
+
const $target = event.target;
|
|
30
|
+
const $buttonStepper = $target.closest(INPUT_STEPPER_COMPONENT_NAMES.button);
|
|
31
|
+
const step = Number($buttonStepper === null || $buttonStepper === void 0 ? void 0 : $buttonStepper.step);
|
|
31
32
|
if (isNaN(step))
|
|
32
33
|
return;
|
|
33
34
|
this._setValueByButton(step);
|
|
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,+CAAmD;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -82,9 +82,9 @@ export { HTooltip } from './components/messages/tooltips/tooltip.js';
|
|
|
82
82
|
export { HTooltipContent } from './components/messages/tooltips/tooltip_content.js';
|
|
83
83
|
export { HTag } from './components/tag/tag.js';
|
|
84
84
|
export { HTagRemoveButton } from './components/tag/tag_remove_button.js';
|
|
85
|
+
export { HButtonStepper } from './components/form/input_stepper/button_stepper.js';
|
|
85
86
|
export { HInputStepper } from './components/form/input_stepper/input_stepper.js';
|
|
86
87
|
export { HDisplayStepper } from './components/form/input_stepper/display_stepper.js';
|
|
87
|
-
export { HButtonStepper } from './components/form/input_stepper/button_stepper.js';
|
|
88
88
|
export { TOGGLE_ACTIONS, TOGGLE_CONTEXT_NAME, TOGGLE_EVENT_NAME } from './components/toggle/toggle_constants.js';
|
|
89
89
|
export { HToggle } from './components/toggle/toggle.js';
|
|
90
90
|
export { HToggleBtn } from './components/toggle/toggle_button.js';
|