@shoper/phoenix_design_system 1.17.16 → 1.17.17
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.
|
@@ -34,11 +34,11 @@ exports.HSlider = class HSlider extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
34
34
|
if ($focusableSlideChildren.length === 0)
|
|
35
35
|
return;
|
|
36
36
|
const updateFocusability = action === slider_constants.SLIDER_HANDLE_FOCUSABLE_NODES_OPTIONS.show ? this._showFocusableElement : this._hideFocusableElement;
|
|
37
|
-
$focusableSlideChildren.forEach(($element) =>
|
|
37
|
+
$focusableSlideChildren.forEach(($element) => updateFocusability($element));
|
|
38
38
|
};
|
|
39
39
|
this._scanMutationsForNewFocusableElements = (mutationList) => {
|
|
40
40
|
for (const mutation of mutationList) {
|
|
41
|
-
if (mutation.type !==
|
|
41
|
+
if (mutation.type !== 'childList')
|
|
42
42
|
continue;
|
|
43
43
|
const $target = mutation.target;
|
|
44
44
|
const isFocusable = utilities.UiDomUtils.isFocusable($target);
|
|
@@ -68,7 +68,7 @@ exports.HSlider = class HSlider extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
68
68
|
if (this.settings) {
|
|
69
69
|
this._settings = (_a = utilities.JsonUtils.fromJson(this.settings)) !== null && _a !== void 0 ? _a : this._settings;
|
|
70
70
|
}
|
|
71
|
-
this._slider = new splide_esm.Splide(
|
|
71
|
+
this._slider = new splide_esm.Splide(this, this._settings);
|
|
72
72
|
if (this._settings.mountOnConnectedCallback) {
|
|
73
73
|
this._slider.mount();
|
|
74
74
|
}
|
|
@@ -30,11 +30,11 @@ let HSlider = class HSlider extends PhoenixLightLitElement {
|
|
|
30
30
|
if ($focusableSlideChildren.length === 0)
|
|
31
31
|
return;
|
|
32
32
|
const updateFocusability = action === SLIDER_HANDLE_FOCUSABLE_NODES_OPTIONS.show ? this._showFocusableElement : this._hideFocusableElement;
|
|
33
|
-
$focusableSlideChildren.forEach(($element) =>
|
|
33
|
+
$focusableSlideChildren.forEach(($element) => updateFocusability($element));
|
|
34
34
|
};
|
|
35
35
|
this._scanMutationsForNewFocusableElements = (mutationList) => {
|
|
36
36
|
for (const mutation of mutationList) {
|
|
37
|
-
if (mutation.type !==
|
|
37
|
+
if (mutation.type !== 'childList')
|
|
38
38
|
continue;
|
|
39
39
|
const $target = mutation.target;
|
|
40
40
|
const isFocusable = UiDomUtils.isFocusable($target);
|
|
@@ -64,7 +64,7 @@ let HSlider = class HSlider extends PhoenixLightLitElement {
|
|
|
64
64
|
if (this.settings) {
|
|
65
65
|
this._settings = (_a = JsonUtils.fromJson(this.settings)) !== null && _a !== void 0 ? _a : this._settings;
|
|
66
66
|
}
|
|
67
|
-
this._slider = new Splide(
|
|
67
|
+
this._slider = new Splide(this, this._settings);
|
|
68
68
|
if (this._settings.mountOnConnectedCallback) {
|
|
69
69
|
this._slider.mount();
|
|
70
70
|
}
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
2
|
+
"name": "@shoper/phoenix_design_system",
|
|
3
|
+
"packageManager": "yarn@3.2.0",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"version": "1.17.17",
|
|
6
|
+
"description": "phoenix design system",
|
|
7
|
+
"author": "zefirek",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"source": "src/index.ts",
|
|
10
|
+
"main": "build/cjs/packages/phoenix/src/index.js",
|
|
11
|
+
"module": "build/esm/packages/phoenix/src/index.js",
|
|
12
|
+
"jsnext:main": "build/esm/packages/phoenix/src/index.js",
|
|
13
|
+
"types": "build/esm/packages/phoenix/src/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"build"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=14",
|
|
19
|
+
"npm": ">=6"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"storybook": "NODE_OPTIONS=--openssl-legacy-provider && start-storybook --no-open --port 6007",
|
|
23
|
+
"build": "rimraf ./build/ && tsc --project tsconfig.build.json && rollup --config rollup.config.js",
|
|
24
|
+
"watch": "rollup --config rollup.config.js --watch",
|
|
25
|
+
"tests:unit": "jest --max-workers=1 -c .config/jest/jest.config.js",
|
|
26
|
+
"watch:tests:unit": "jest --watch -c .config/jest/jest.config.js"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@dreamcommerce/utilities": "^1.0.0",
|
|
30
|
+
"@splidejs/splide": "4.0.7",
|
|
31
|
+
"@splidejs/splide-extension-auto-scroll": "0.5.3"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@dreamcommerce/utilities": "^1.23.0",
|
|
35
|
+
"@shoper/jest_config": "^0.0.0",
|
|
36
|
+
"@shoper/tsconfig": "^0.0.0",
|
|
37
|
+
"@splidejs/splide": "4.0.7",
|
|
38
|
+
"@splidejs/splide-extension-auto-scroll": "0.5.3",
|
|
39
|
+
"@storybook/web-components": "6.5.7",
|
|
40
|
+
"lit": "2.4.0"
|
|
41
|
+
},
|
|
42
|
+
"browserslist": [
|
|
43
|
+
"last 3 version, not ie <= 11, not dead"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"classnames": "2.3.1"
|
|
47
|
+
}
|
|
48
|
+
}
|