@studiometa/ui 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/atoms/AnchorScrollTo/AnchorScrollTo.cjs +47 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.d.ts +31 -0
- package/atoms/AnchorScrollTo/AnchorScrollTo.js +1 -0
- package/atoms/Cursor/Cursor.cjs +14 -22
- package/atoms/Cursor/Cursor.d.ts +2 -2
- package/atoms/Cursor/Cursor.js +1 -103
- package/atoms/Figure/Figure.cjs +9 -14
- package/atoms/Figure/Figure.d.ts +1 -1
- package/atoms/Figure/Figure.js +1 -27
- package/atoms/LargeText/LargeText.cjs +82 -0
- package/atoms/LargeText/LargeText.d.ts +94 -0
- package/atoms/LargeText/LargeText.js +1 -0
- package/atoms/LazyInclude/LazyInclude.cjs +67 -0
- package/atoms/LazyInclude/LazyInclude.d.ts +64 -0
- package/atoms/LazyInclude/LazyInclude.js +1 -0
- package/atoms/Prefetch/AbstractPrefetch.cjs +79 -0
- package/atoms/Prefetch/AbstractPrefetch.d.ts +52 -0
- package/atoms/Prefetch/AbstractPrefetch.js +1 -0
- package/atoms/Prefetch/PrefetchWhenOver.cjs +43 -0
- package/atoms/Prefetch/PrefetchWhenOver.d.ts +21 -0
- package/atoms/Prefetch/PrefetchWhenOver.js +1 -0
- package/atoms/Prefetch/PrefetchWhenVisible.cjs +44 -0
- package/atoms/Prefetch/PrefetchWhenVisible.d.ts +21 -0
- package/atoms/Prefetch/PrefetchWhenVisible.js +1 -0
- package/atoms/Prefetch/index.cjs +33 -0
- package/atoms/Prefetch/index.d.ts +3 -0
- package/atoms/Prefetch/index.js +1 -0
- package/atoms/index.cjs +19 -18
- package/atoms/index.d.ts +5 -1
- package/atoms/index.js +1 -6
- package/index.cjs +11 -15
- package/index.js +1 -3
- package/molecules/Accordion/Accordion.cjs +12 -34
- package/molecules/Accordion/Accordion.js +1 -35
- package/molecules/Accordion/AccordionCore.cjs +8 -13
- package/molecules/Accordion/AccordionCore.d.ts +2 -2
- package/molecules/Accordion/AccordionCore.js +1 -34
- package/molecules/Accordion/AccordionItem.cjs +70 -114
- package/molecules/Accordion/AccordionItem.d.ts +15 -16
- package/molecules/Accordion/AccordionItem.js +1 -178
- package/molecules/Menu/Menu.cjs +148 -0
- package/molecules/Menu/Menu.d.ts +140 -0
- package/molecules/Menu/Menu.js +1 -0
- package/molecules/Menu/MenuBtn.cjs +53 -0
- package/molecules/Menu/MenuBtn.d.ts +39 -0
- package/molecules/Menu/MenuBtn.js +1 -0
- package/molecules/Menu/MenuList.cjs +134 -0
- package/molecules/Menu/MenuList.d.ts +101 -0
- package/molecules/Menu/MenuList.js +1 -0
- package/molecules/Menu/index.cjs +33 -0
- package/molecules/Menu/index.d.ts +3 -0
- package/molecules/Menu/index.js +1 -0
- package/molecules/Modal/Modal.cjs +42 -72
- package/molecules/Modal/Modal.d.ts +11 -11
- package/molecules/Modal/Modal.js +1 -151
- package/molecules/Modal/ModalWithTransition.cjs +70 -0
- package/molecules/Modal/ModalWithTransition.d.ts +29 -0
- package/molecules/Modal/ModalWithTransition.js +1 -0
- package/molecules/Panel/Panel.cjs +114 -0
- package/molecules/Panel/Panel.d.ts +42 -0
- package/molecules/Panel/Panel.js +1 -0
- package/molecules/Slider/AbstractSliderChild.cjs +64 -0
- package/molecules/Slider/AbstractSliderChild.d.ts +59 -0
- package/molecules/Slider/AbstractSliderChild.js +1 -0
- package/molecules/Slider/Slider.cjs +230 -0
- package/molecules/Slider/Slider.d.ts +245 -0
- package/molecules/Slider/Slider.js +1 -0
- package/molecules/Slider/SliderBtn.cjs +58 -0
- package/molecules/Slider/SliderBtn.d.ts +31 -0
- package/molecules/Slider/SliderBtn.js +1 -0
- package/molecules/Slider/SliderCount.cjs +43 -0
- package/molecules/Slider/SliderCount.d.ts +21 -0
- package/molecules/Slider/SliderCount.js +1 -0
- package/molecules/Slider/SliderDots.cjs +48 -0
- package/molecules/Slider/SliderDots.d.ts +33 -0
- package/molecules/Slider/SliderDots.js +1 -0
- package/molecules/Slider/SliderDrag.cjs +40 -0
- package/molecules/Slider/SliderDrag.d.ts +16 -0
- package/molecules/Slider/SliderDrag.js +1 -0
- package/molecules/Slider/SliderItem.cjs +107 -0
- package/molecules/Slider/SliderItem.d.ts +106 -0
- package/molecules/Slider/SliderItem.js +1 -0
- package/molecules/Slider/SliderProgress.cjs +47 -0
- package/molecules/Slider/SliderProgress.d.ts +27 -0
- package/molecules/Slider/SliderProgress.js +1 -0
- package/molecules/Slider/index.cjs +43 -0
- package/molecules/Slider/index.d.ts +8 -0
- package/molecules/Slider/index.js +1 -0
- package/molecules/Sticky/Sticky.cjs +11 -19
- package/molecules/Sticky/Sticky.d.ts +8 -8
- package/molecules/Sticky/Sticky.js +1 -107
- package/molecules/TableOfContent/TableOfContent.cjs +66 -0
- package/molecules/TableOfContent/TableOfContent.d.ts +59 -0
- package/molecules/TableOfContent/TableOfContent.js +1 -0
- package/molecules/TableOfContent/TableOfContentAnchor.cjs +60 -0
- package/molecules/TableOfContent/TableOfContentAnchor.d.ts +36 -0
- package/molecules/TableOfContent/TableOfContentAnchor.js +1 -0
- package/molecules/TableOfContent/index.cjs +31 -0
- package/molecules/TableOfContent/index.d.ts +2 -0
- package/molecules/TableOfContent/index.js +1 -0
- package/molecules/Tabs/Tabs.cjs +54 -82
- package/molecules/Tabs/Tabs.d.ts +7 -8
- package/molecules/Tabs/Tabs.js +1 -126
- package/molecules/index.cjs +18 -17
- package/molecules/index.d.ts +6 -1
- package/molecules/index.js +1 -12
- package/organisms/Frame/Frame.cjs +171 -0
- package/organisms/Frame/Frame.d.ts +119 -0
- package/organisms/Frame/Frame.js +1 -0
- package/organisms/Frame/FrameAnchor.cjs +43 -0
- package/organisms/Frame/FrameAnchor.d.ts +35 -0
- package/organisms/Frame/FrameAnchor.js +1 -0
- package/organisms/Frame/FrameForm.cjs +43 -0
- package/organisms/Frame/FrameForm.d.ts +32 -0
- package/organisms/Frame/FrameForm.js +1 -0
- package/organisms/Frame/FrameTarget.cjs +92 -0
- package/organisms/Frame/FrameTarget.d.ts +47 -0
- package/organisms/Frame/FrameTarget.js +1 -0
- package/organisms/Frame/index.cjs +35 -0
- package/organisms/Frame/index.d.ts +4 -0
- package/organisms/Frame/index.js +1 -0
- package/organisms/index.cjs +9 -12
- package/organisms/index.d.ts +1 -1
- package/organisms/index.js +1 -0
- package/package.json +3 -4
- package/primitives/Draggable/Draggable.cjs +15 -28
- package/primitives/Draggable/Draggable.d.ts +0 -5
- package/primitives/Draggable/Draggable.js +1 -38
- package/primitives/Sentinel/Sentinel.cjs +8 -13
- package/primitives/Sentinel/Sentinel.js +1 -15
- package/primitives/Transition/Transition.cjs +66 -0
- package/primitives/Transition/Transition.d.ts +67 -0
- package/primitives/Transition/Transition.js +1 -0
- package/primitives/index.cjs +12 -17
- package/primitives/index.d.ts +1 -0
- package/primitives/index.js +1 -6
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => {
|
|
20
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// packages/ui/atoms/AnchorScrollTo/AnchorScrollTo.js
|
|
25
|
+
var AnchorScrollTo_exports = {};
|
|
26
|
+
__export(AnchorScrollTo_exports, {
|
|
27
|
+
default: () => AnchorScrollTo
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(AnchorScrollTo_exports);
|
|
30
|
+
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
31
|
+
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
32
|
+
var AnchorScrollTo = class extends import_js_toolkit.Base {
|
|
33
|
+
get targetSelector() {
|
|
34
|
+
return this.$el.hash;
|
|
35
|
+
}
|
|
36
|
+
onClick(event) {
|
|
37
|
+
try {
|
|
38
|
+
(0, import_utils.scrollTo)(this.targetSelector);
|
|
39
|
+
event.preventDefault();
|
|
40
|
+
} catch (err) {
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
__publicField(AnchorScrollTo, "config", {
|
|
45
|
+
name: "AnchorScrollTo"
|
|
46
|
+
});
|
|
47
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {AnchorScrollTo & {
|
|
3
|
+
* $el: HTMLAnchorElement
|
|
4
|
+
* }} AnchorScrollToInterface
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AncorScrollTo class.
|
|
8
|
+
*/
|
|
9
|
+
export default class AnchorScrollTo extends Base {
|
|
10
|
+
static config: {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Get the target selector.
|
|
15
|
+
*
|
|
16
|
+
* @this {AnchorScrollToInterface}
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
get targetSelector(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Scroll to the target selector on click.
|
|
22
|
+
*
|
|
23
|
+
* @param {MouseEvent} event
|
|
24
|
+
* @returns {void}
|
|
25
|
+
*/
|
|
26
|
+
onClick(event: MouseEvent): void;
|
|
27
|
+
}
|
|
28
|
+
export type AnchorScrollToInterface = AnchorScrollTo & {
|
|
29
|
+
$el: HTMLAnchorElement;
|
|
30
|
+
};
|
|
31
|
+
import { Base } from "@studiometa/js-toolkit";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Base as r}from"@studiometa/js-toolkit";import{scrollTo as e}from"@studiometa/js-toolkit/utils";class o extends r{static config={name:"AnchorScrollTo"};get targetSelector(){return this.$el.hash}onClick(t){try{e(this.targetSelector),t.preventDefault()}catch{}}}export{o as default};
|
package/atoms/Cursor/Cursor.cjs
CHANGED
|
@@ -3,24 +3,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
9
|
};
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
for (let key of __getOwnPropNames(
|
|
14
|
-
if (!__hasOwnProp.call(
|
|
15
|
-
__defProp(
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
15
|
}
|
|
17
|
-
return
|
|
16
|
+
return to;
|
|
18
17
|
};
|
|
19
|
-
var __toCommonJS =
|
|
20
|
-
return (module2, temp) => {
|
|
21
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
22
|
-
};
|
|
23
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
19
|
var __publicField = (obj, key, value) => {
|
|
25
20
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
26
21
|
return value;
|
|
@@ -31,18 +26,16 @@ var Cursor_exports = {};
|
|
|
31
26
|
__export(Cursor_exports, {
|
|
32
27
|
default: () => Cursor
|
|
33
28
|
});
|
|
29
|
+
module.exports = __toCommonJS(Cursor_exports);
|
|
34
30
|
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
35
31
|
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
36
32
|
var Cursor = class extends import_js_toolkit.Base {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
__publicField(this, "pointerY", 0);
|
|
44
|
-
__publicField(this, "pointerScale", 0);
|
|
45
|
-
}
|
|
33
|
+
x = 0;
|
|
34
|
+
y = 0;
|
|
35
|
+
scale = 0;
|
|
36
|
+
pointerX = 0;
|
|
37
|
+
pointerY = 0;
|
|
38
|
+
pointerScale = 0;
|
|
46
39
|
mounted() {
|
|
47
40
|
this.x = 0;
|
|
48
41
|
this.y = 0;
|
|
@@ -125,5 +118,4 @@ __publicField(Cursor, "config", {
|
|
|
125
118
|
}
|
|
126
119
|
}
|
|
127
120
|
});
|
|
128
|
-
module.exports = __toCommonJS(Cursor_exports);
|
|
129
121
|
if (module.exports.default) module.exports = module.exports.default;
|
package/atoms/Cursor/Cursor.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export default class Cursor extends Base {
|
|
|
96
96
|
* @param {PointerServiceProps} options
|
|
97
97
|
* @return {void}
|
|
98
98
|
*/
|
|
99
|
-
moved({ event, x, y, isDown }: PointerServiceProps): void;
|
|
99
|
+
moved(this: CursorInterface, { event, x, y, isDown }: PointerServiceProps): void;
|
|
100
100
|
/**
|
|
101
101
|
* RequestAnimationFrame hook.
|
|
102
102
|
*
|
|
@@ -104,7 +104,7 @@ export default class Cursor extends Base {
|
|
|
104
104
|
*
|
|
105
105
|
* @return {void}
|
|
106
106
|
*/
|
|
107
|
-
ticked(): void;
|
|
107
|
+
ticked(this: CursorInterface): void;
|
|
108
108
|
/**
|
|
109
109
|
* Render the cursor.
|
|
110
110
|
*
|
package/atoms/Cursor/Cursor.js
CHANGED
|
@@ -1,103 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import { Base } from "@studiometa/js-toolkit";
|
|
8
|
-
import { damp, matrix } from "@studiometa/js-toolkit/utils";
|
|
9
|
-
class Cursor extends Base {
|
|
10
|
-
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
|
-
__publicField(this, "x", 0);
|
|
13
|
-
__publicField(this, "y", 0);
|
|
14
|
-
__publicField(this, "scale", 0);
|
|
15
|
-
__publicField(this, "pointerX", 0);
|
|
16
|
-
__publicField(this, "pointerY", 0);
|
|
17
|
-
__publicField(this, "pointerScale", 0);
|
|
18
|
-
}
|
|
19
|
-
mounted() {
|
|
20
|
-
this.x = 0;
|
|
21
|
-
this.y = 0;
|
|
22
|
-
this.scale = 0;
|
|
23
|
-
this.pointerX = 0;
|
|
24
|
-
this.pointerY = 0;
|
|
25
|
-
this.pointerScale = 0;
|
|
26
|
-
this.render({ x: this.x, y: this.y, scale: this.scale });
|
|
27
|
-
}
|
|
28
|
-
moved({ event, x, y, isDown }) {
|
|
29
|
-
if (!this.$services.has("ticked")) {
|
|
30
|
-
this.$services.enable("ticked");
|
|
31
|
-
}
|
|
32
|
-
this.pointerX = x;
|
|
33
|
-
this.pointerY = y;
|
|
34
|
-
let scale = 1;
|
|
35
|
-
if (!event) {
|
|
36
|
-
this.pointerScale = scale;
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
const shouldGrow = event.target instanceof Element && event.target.matches(this.$options.growSelectors) || false;
|
|
40
|
-
const shouldReduce = isDown || event.target instanceof Element && event.target.matches(this.$options.shrinkSelectors) || false;
|
|
41
|
-
if (shouldGrow) {
|
|
42
|
-
scale = this.$options.growTo;
|
|
43
|
-
}
|
|
44
|
-
if (shouldReduce) {
|
|
45
|
-
scale = this.$options.shrinkTo;
|
|
46
|
-
}
|
|
47
|
-
this.pointerScale = scale;
|
|
48
|
-
}
|
|
49
|
-
ticked() {
|
|
50
|
-
this.x = damp(this.pointerX, this.x, this.$options.translateDampFactor);
|
|
51
|
-
this.y = damp(this.pointerY, this.y, this.$options.translateDampFactor);
|
|
52
|
-
this.scale = damp(this.pointerScale, this.scale, this.pointerScale < this.scale ? this.$options.shrinkDampFactor : this.$options.growDampFactor);
|
|
53
|
-
this.render({ x: this.x, y: this.y, scale: this.scale });
|
|
54
|
-
if (this.x === this.pointerX && this.y === this.pointerY && this.scale === this.pointerScale) {
|
|
55
|
-
this.$services.disable("ticked");
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
render({ x, y, scale }) {
|
|
59
|
-
const transform = matrix({
|
|
60
|
-
translateX: x,
|
|
61
|
-
translateY: y,
|
|
62
|
-
scaleX: scale,
|
|
63
|
-
scaleY: scale
|
|
64
|
-
});
|
|
65
|
-
this.$el.style.transform = `translateZ(0) ${transform}`;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
__publicField(Cursor, "config", {
|
|
69
|
-
name: "Cursor",
|
|
70
|
-
options: {
|
|
71
|
-
growSelectors: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: "a, a *, button, button *, [data-cursor-grow], [data-cursor-grow] *"
|
|
74
|
-
},
|
|
75
|
-
shrinkSelectors: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: "[data-cursor-shrink], [data-cursor-shrink] *"
|
|
78
|
-
},
|
|
79
|
-
growTo: {
|
|
80
|
-
type: Number,
|
|
81
|
-
default: 2
|
|
82
|
-
},
|
|
83
|
-
shrinkTo: {
|
|
84
|
-
type: Number,
|
|
85
|
-
default: 0.5
|
|
86
|
-
},
|
|
87
|
-
translateDampFactor: {
|
|
88
|
-
type: Number,
|
|
89
|
-
default: 0.25
|
|
90
|
-
},
|
|
91
|
-
growDampFactor: {
|
|
92
|
-
type: Number,
|
|
93
|
-
default: 0.25
|
|
94
|
-
},
|
|
95
|
-
shrinkDampFactor: {
|
|
96
|
-
type: Number,
|
|
97
|
-
default: 0.25
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
export {
|
|
102
|
-
Cursor as default
|
|
103
|
-
};
|
|
1
|
+
import{Base as n}from"@studiometa/js-toolkit";import{damp as a,matrix as c}from"@studiometa/js-toolkit/utils";class l extends n{static config={name:"Cursor",options:{growSelectors:{type:String,default:"a, a *, button, button *, [data-cursor-grow], [data-cursor-grow] *"},shrinkSelectors:{type:String,default:"[data-cursor-shrink], [data-cursor-shrink] *"},growTo:{type:Number,default:2},shrinkTo:{type:Number,default:.5},translateDampFactor:{type:Number,default:.25},growDampFactor:{type:Number,default:.25},shrinkDampFactor:{type:Number,default:.25}}};x=0;y=0;scale=0;pointerX=0;pointerY=0;pointerScale=0;mounted(){this.x=0,this.y=0,this.scale=0,this.pointerX=0,this.pointerY=0,this.pointerScale=0,this.render({x:this.x,y:this.y,scale:this.scale})}moved({event:t,x:i,y:s,isDown:r}){this.$services.has("ticked")||this.$services.enable("ticked"),this.pointerX=i,this.pointerY=s;let e=1;if(!t){this.pointerScale=e;return}const o=t.target instanceof Element&&t.target.matches(this.$options.growSelectors)||!1,h=r||t.target instanceof Element&&t.target.matches(this.$options.shrinkSelectors)||!1;o&&(e=this.$options.growTo),h&&(e=this.$options.shrinkTo),this.pointerScale=e}ticked(){this.x=a(this.pointerX,this.x,this.$options.translateDampFactor),this.y=a(this.pointerY,this.y,this.$options.translateDampFactor),this.scale=a(this.pointerScale,this.scale,this.pointerScale<this.scale?this.$options.shrinkDampFactor:this.$options.growDampFactor),this.render({x:this.x,y:this.y,scale:this.scale}),this.x===this.pointerX&&this.y===this.pointerY&&this.scale===this.pointerScale&&this.$services.disable("ticked")}render({x:t,y:i,scale:s}){const r=c({translateX:t,translateY:i,scaleX:s,scaleY:s});this.$el.style.transform=`translateZ(0) ${r}`}}export{l as default};
|
package/atoms/Figure/Figure.cjs
CHANGED
|
@@ -3,24 +3,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
9
|
};
|
|
11
|
-
var
|
|
12
|
-
if (
|
|
13
|
-
for (let key of __getOwnPropNames(
|
|
14
|
-
if (!__hasOwnProp.call(
|
|
15
|
-
__defProp(
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
15
|
}
|
|
17
|
-
return
|
|
16
|
+
return to;
|
|
18
17
|
};
|
|
19
|
-
var __toCommonJS =
|
|
20
|
-
return (module2, temp) => {
|
|
21
|
-
return cache && cache.get(module2) || (temp = __reExport(__markAsModule({}), module2, 1), cache && cache.set(module2, temp), temp);
|
|
22
|
-
};
|
|
23
|
-
})(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
19
|
var __publicField = (obj, key, value) => {
|
|
25
20
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
26
21
|
return value;
|
|
@@ -31,6 +26,7 @@ var Figure_exports = {};
|
|
|
31
26
|
__export(Figure_exports, {
|
|
32
27
|
default: () => Figure
|
|
33
28
|
});
|
|
29
|
+
module.exports = __toCommonJS(Figure_exports);
|
|
34
30
|
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
35
31
|
var Figure = class extends (0, import_js_toolkit.withMountWhenInView)(import_js_toolkit.Base, { threshold: [0, 1] }) {
|
|
36
32
|
mounted() {
|
|
@@ -40,7 +36,7 @@ var Figure = class extends (0, import_js_toolkit.withMountWhenInView)(import_js_
|
|
|
40
36
|
if (!(this.$refs.img instanceof HTMLImageElement)) {
|
|
41
37
|
throw new Error("[Figure] The `img` ref must be an `<img>` element.");
|
|
42
38
|
}
|
|
43
|
-
if (this.$refs.img.hasAttribute("data-src")) {
|
|
39
|
+
if (this.$refs.img.hasAttribute("data-src") && this.$refs.img.getAttribute("data-src") !== this.$refs.img.src) {
|
|
44
40
|
this.$refs.img.src = this.$refs.img.getAttribute("data-src");
|
|
45
41
|
}
|
|
46
42
|
}
|
|
@@ -49,5 +45,4 @@ __publicField(Figure, "config", {
|
|
|
49
45
|
name: "Figure",
|
|
50
46
|
refs: ["img"]
|
|
51
47
|
});
|
|
52
|
-
module.exports = __toCommonJS(Figure_exports);
|
|
53
48
|
if (module.exports.default) module.exports = module.exports.default;
|
package/atoms/Figure/Figure.d.ts
CHANGED
package/atoms/Figure/Figure.js
CHANGED
|
@@ -1,27 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
-
var __publicField = (obj, key, value) => {
|
|
4
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
|
-
return value;
|
|
6
|
-
};
|
|
7
|
-
import { Base, withMountWhenInView } from "@studiometa/js-toolkit";
|
|
8
|
-
class Figure extends withMountWhenInView(Base, { threshold: [0, 1] }) {
|
|
9
|
-
mounted() {
|
|
10
|
-
if (!this.$refs.img) {
|
|
11
|
-
throw new Error("[Figure] The `img` ref is required.");
|
|
12
|
-
}
|
|
13
|
-
if (!(this.$refs.img instanceof HTMLImageElement)) {
|
|
14
|
-
throw new Error("[Figure] The `img` ref must be an `<img>` element.");
|
|
15
|
-
}
|
|
16
|
-
if (this.$refs.img.hasAttribute("data-src")) {
|
|
17
|
-
this.$refs.img.src = this.$refs.img.getAttribute("data-src");
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
__publicField(Figure, "config", {
|
|
22
|
-
name: "Figure",
|
|
23
|
-
refs: ["img"]
|
|
24
|
-
});
|
|
25
|
-
export {
|
|
26
|
-
Figure as default
|
|
27
|
-
};
|
|
1
|
+
import{Base as e,withMountWhenInView as t}from"@studiometa/js-toolkit";class i extends t(e,{threshold:[0,1]}){static config={name:"Figure",refs:["img"]};mounted(){if(!this.$refs.img)throw new Error("[Figure] The `img` ref is required.");if(!(this.$refs.img instanceof HTMLImageElement))throw new Error("[Figure] The `img` ref must be an `<img>` element.");this.$refs.img.hasAttribute("data-src")&&this.$refs.img.getAttribute("data-src")!==this.$refs.img.src&&(this.$refs.img.src=this.$refs.img.getAttribute("data-src"))}}export{i as default};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => {
|
|
20
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// packages/ui/atoms/LargeText/LargeText.js
|
|
25
|
+
var LargeText_exports = {};
|
|
26
|
+
__export(LargeText_exports, {
|
|
27
|
+
default: () => LargeText
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(LargeText_exports);
|
|
30
|
+
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
31
|
+
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
32
|
+
var LargeText = class extends (0, import_js_toolkit.withMountWhenInView)(import_js_toolkit.Base, { rootMargin: "50%" }) {
|
|
33
|
+
translateX = 0;
|
|
34
|
+
deltaY = 0;
|
|
35
|
+
transform = {
|
|
36
|
+
skewX: 0,
|
|
37
|
+
translateX: 0
|
|
38
|
+
};
|
|
39
|
+
width = 0;
|
|
40
|
+
mounted() {
|
|
41
|
+
this.width = this.$refs.target.clientWidth;
|
|
42
|
+
}
|
|
43
|
+
resized() {
|
|
44
|
+
this.width = this.$refs.target.clientWidth;
|
|
45
|
+
}
|
|
46
|
+
scrolled(props) {
|
|
47
|
+
this.deltaY = props.delta.y;
|
|
48
|
+
}
|
|
49
|
+
ticked() {
|
|
50
|
+
this.translateX -= (Math.abs(this.deltaY) + 1) * this.$options.sensitivity;
|
|
51
|
+
this.transform.translateX = (0, import_utils.damp)(this.translateX, this.transform.translateX, 0.25);
|
|
52
|
+
if (this.$options.skew) {
|
|
53
|
+
this.transform.skewX = (0, import_utils.damp)((0, import_utils.clamp)(this.deltaY / 20 * -1, -0.5, 0.5) * this.$options.skewSensitivity, this.transform.skewX, 0.25);
|
|
54
|
+
}
|
|
55
|
+
if (this.translateX <= this.width * -1) {
|
|
56
|
+
this.translateX = 0;
|
|
57
|
+
this.transform.translateX += this.width;
|
|
58
|
+
} else if (this.$options.sensitivity < 0 && this.translateX >= this.width) {
|
|
59
|
+
this.translateX = 0;
|
|
60
|
+
this.transform.translateX -= this.width;
|
|
61
|
+
}
|
|
62
|
+
(0, import_utils.nextFrame)(() => {
|
|
63
|
+
this.$refs.target.style.transform = (0, import_utils.matrix)(this.transform) + " translateZ(0px)";
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
__publicField(LargeText, "config", {
|
|
68
|
+
name: "LargeText",
|
|
69
|
+
refs: ["target"],
|
|
70
|
+
options: {
|
|
71
|
+
skew: Boolean,
|
|
72
|
+
sensitivity: {
|
|
73
|
+
type: Number,
|
|
74
|
+
default: 1
|
|
75
|
+
},
|
|
76
|
+
skewSensitivity: {
|
|
77
|
+
type: Number,
|
|
78
|
+
default: 1
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {LargeText & {
|
|
3
|
+
* $refs: { target: HTMLElement },
|
|
4
|
+
* $options: {
|
|
5
|
+
* skew: boolean,
|
|
6
|
+
* sensitivity: number,
|
|
7
|
+
* skewSensitivity: number,
|
|
8
|
+
* }
|
|
9
|
+
* }} LargeTextInterface
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Large text class.
|
|
13
|
+
*/
|
|
14
|
+
export default class LargeText extends Base {
|
|
15
|
+
/**
|
|
16
|
+
* Config.
|
|
17
|
+
*/
|
|
18
|
+
static config: {
|
|
19
|
+
name: string;
|
|
20
|
+
refs: string[];
|
|
21
|
+
options: {
|
|
22
|
+
skew: BooleanConstructor;
|
|
23
|
+
sensitivity: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
skewSensitivity: {
|
|
28
|
+
type: NumberConstructor;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Translate X.
|
|
35
|
+
* @type {number}
|
|
36
|
+
*/
|
|
37
|
+
translateX: number;
|
|
38
|
+
/**
|
|
39
|
+
* Scroll delta Y.
|
|
40
|
+
* @type {number}
|
|
41
|
+
*/
|
|
42
|
+
deltaY: number;
|
|
43
|
+
/**
|
|
44
|
+
* Transform values.
|
|
45
|
+
*/
|
|
46
|
+
transform: {
|
|
47
|
+
skewX: number;
|
|
48
|
+
translateX: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Target width.
|
|
52
|
+
* @type {number}
|
|
53
|
+
*/
|
|
54
|
+
width: number;
|
|
55
|
+
/**
|
|
56
|
+
* Set width on mount.
|
|
57
|
+
*
|
|
58
|
+
* @this {LargeTextInterface}
|
|
59
|
+
* @returns {void}
|
|
60
|
+
*/
|
|
61
|
+
mounted(this: LargeTextInterface): void;
|
|
62
|
+
/**
|
|
63
|
+
* Set width on resize.
|
|
64
|
+
*
|
|
65
|
+
* @this {LargeTextInterface}
|
|
66
|
+
* @returns {void}
|
|
67
|
+
*/
|
|
68
|
+
resized(this: LargeTextInterface): void;
|
|
69
|
+
/**
|
|
70
|
+
* Update delta scroll on scroll.
|
|
71
|
+
*
|
|
72
|
+
* @param {import('@studiometa/js-toolkit/services/scroll').ScrollServiceProps} props
|
|
73
|
+
* @returns {void}
|
|
74
|
+
*/
|
|
75
|
+
scrolled(props: import('@studiometa/js-toolkit/services/scroll').ScrollServiceProps): void;
|
|
76
|
+
/**
|
|
77
|
+
* Update values on raf.
|
|
78
|
+
*
|
|
79
|
+
* @this {LargeTextInterface}
|
|
80
|
+
* @returns {void}
|
|
81
|
+
*/
|
|
82
|
+
ticked(this: LargeTextInterface): void;
|
|
83
|
+
}
|
|
84
|
+
export type LargeTextInterface = LargeText & {
|
|
85
|
+
$refs: {
|
|
86
|
+
target: HTMLElement;
|
|
87
|
+
};
|
|
88
|
+
$options: {
|
|
89
|
+
skew: boolean;
|
|
90
|
+
sensitivity: number;
|
|
91
|
+
skewSensitivity: number;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
import { Base } from "@studiometa/js-toolkit";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Base as i,withMountWhenInView as e}from"@studiometa/js-toolkit";import{damp as t,matrix as a,clamp as r,nextFrame as n}from"@studiometa/js-toolkit/utils";class h extends e(i,{rootMargin:"50%"}){static config={name:"LargeText",refs:["target"],options:{skew:Boolean,sensitivity:{type:Number,default:1},skewSensitivity:{type:Number,default:1}}};translateX=0;deltaY=0;transform={skewX:0,translateX:0};width=0;mounted(){this.width=this.$refs.target.clientWidth}resized(){this.width=this.$refs.target.clientWidth}scrolled(s){this.deltaY=s.delta.y}ticked(){this.translateX-=(Math.abs(this.deltaY)+1)*this.$options.sensitivity,this.transform.translateX=t(this.translateX,this.transform.translateX,.25),this.$options.skew&&(this.transform.skewX=t(r(this.deltaY/20*-1,-.5,.5)*this.$options.skewSensitivity,this.transform.skewX,.25)),this.translateX<=this.width*-1?(this.translateX=0,this.transform.translateX+=this.width):this.$options.sensitivity<0&&this.translateX>=this.width&&(this.translateX=0,this.transform.translateX-=this.width),n(()=>{this.$refs.target.style.transform=a(this.transform)+" translateZ(0px)"})}}export{h as default};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var __publicField = (obj, key, value) => {
|
|
20
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
21
|
+
return value;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// packages/ui/atoms/LazyInclude/LazyInclude.js
|
|
25
|
+
var LazyInclude_exports = {};
|
|
26
|
+
__export(LazyInclude_exports, {
|
|
27
|
+
default: () => LazyInclude
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(LazyInclude_exports);
|
|
30
|
+
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
31
|
+
var LazyInclude = class extends import_js_toolkit.Base {
|
|
32
|
+
mounted() {
|
|
33
|
+
if (!this.$options.src) {
|
|
34
|
+
this.$log("The `src` option is missing. Define it with the `data-option-src` attribute");
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
fetch(this.$options.src).then((response) => response.text()).then((content) => {
|
|
38
|
+
this.$emit("content", content);
|
|
39
|
+
}).catch((error) => {
|
|
40
|
+
this.$emit("error", error);
|
|
41
|
+
}).finally(() => {
|
|
42
|
+
this.$emit("always");
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
onContent(content) {
|
|
46
|
+
this.$refs.loading.style.display = "none";
|
|
47
|
+
this.$el.innerHTML = content;
|
|
48
|
+
}
|
|
49
|
+
onError() {
|
|
50
|
+
this.$refs.error.style.display = "block";
|
|
51
|
+
}
|
|
52
|
+
onAlways() {
|
|
53
|
+
if (this.$options.terminateOnLoad) {
|
|
54
|
+
this.$terminate();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
__publicField(LazyInclude, "config", {
|
|
59
|
+
name: "LazyInclude",
|
|
60
|
+
refs: ["loading", "error"],
|
|
61
|
+
emits: ["content", "error", "always"],
|
|
62
|
+
options: {
|
|
63
|
+
src: String,
|
|
64
|
+
terminateOnLoad: Boolean
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {{ src: string, terminateOnLoad: boolean }} LazyIncludeOptions
|
|
3
|
+
* @typedef {{ loading: HTMLElement, error: HTMLElement }} LazyIncludeRefs
|
|
4
|
+
* @typedef {LazyInclude & { $refs: LazyIncludeRefs, $options: LazyIncludeOptions }} LazyIncludeInterface
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* LazyInclude class.
|
|
8
|
+
*/
|
|
9
|
+
export default class LazyInclude extends Base {
|
|
10
|
+
/**
|
|
11
|
+
* Config.
|
|
12
|
+
*/
|
|
13
|
+
static config: {
|
|
14
|
+
name: string;
|
|
15
|
+
refs: string[];
|
|
16
|
+
emits: string[];
|
|
17
|
+
options: {
|
|
18
|
+
src: StringConstructor;
|
|
19
|
+
terminateOnLoad: BooleanConstructor;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Load the lazy content on mount.
|
|
24
|
+
*
|
|
25
|
+
* @this {LazyIncludeInterface}
|
|
26
|
+
* @returns {void}
|
|
27
|
+
*/
|
|
28
|
+
mounted(this: LazyIncludeInterface): void;
|
|
29
|
+
/**
|
|
30
|
+
* Set content.
|
|
31
|
+
*
|
|
32
|
+
* @this {LazyIncludeInterface}
|
|
33
|
+
* @param {string} content
|
|
34
|
+
* @returns {void}
|
|
35
|
+
*/
|
|
36
|
+
onContent(this: LazyIncludeInterface, content: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Set error.
|
|
39
|
+
*
|
|
40
|
+
* @this {LazyIncludeInterface}
|
|
41
|
+
* @returns {void}
|
|
42
|
+
*/
|
|
43
|
+
onError(this: LazyIncludeInterface): void;
|
|
44
|
+
/**
|
|
45
|
+
* Always.
|
|
46
|
+
*
|
|
47
|
+
* @this {LazyIncludeInterface}
|
|
48
|
+
* @returns {void}
|
|
49
|
+
*/
|
|
50
|
+
onAlways(this: LazyIncludeInterface): void;
|
|
51
|
+
}
|
|
52
|
+
export type LazyIncludeOptions = {
|
|
53
|
+
src: string;
|
|
54
|
+
terminateOnLoad: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type LazyIncludeRefs = {
|
|
57
|
+
loading: HTMLElement;
|
|
58
|
+
error: HTMLElement;
|
|
59
|
+
};
|
|
60
|
+
export type LazyIncludeInterface = LazyInclude & {
|
|
61
|
+
$refs: LazyIncludeRefs;
|
|
62
|
+
$options: LazyIncludeOptions;
|
|
63
|
+
};
|
|
64
|
+
import { Base } from "@studiometa/js-toolkit";
|