@studiometa/ui 0.2.52 → 0.2.54
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/Data/DataBind.cjs +118 -0
- package/atoms/Data/DataBind.cjs.map +7 -0
- package/atoms/Data/DataBind.d.ts +21 -0
- package/atoms/Data/DataBind.js +96 -0
- package/atoms/Data/DataBind.js.map +7 -0
- package/atoms/Data/DataComputed.cjs +49 -0
- package/atoms/Data/DataComputed.cjs.map +7 -0
- package/atoms/Data/DataComputed.d.ts +13 -0
- package/atoms/Data/DataComputed.js +28 -0
- package/atoms/Data/DataComputed.js.map +7 -0
- package/atoms/Data/DataEffect.cjs +47 -0
- package/atoms/Data/DataEffect.cjs.map +7 -0
- package/atoms/Data/DataEffect.d.ts +13 -0
- package/atoms/Data/DataEffect.js +25 -0
- package/atoms/Data/DataEffect.js.map +7 -0
- package/atoms/Data/DataModel.cjs +48 -0
- package/atoms/Data/DataModel.cjs.map +7 -0
- package/atoms/Data/DataModel.d.ts +10 -0
- package/atoms/Data/DataModel.js +26 -0
- package/atoms/Data/DataModel.js.map +7 -0
- package/atoms/Data/index.cjs +24 -0
- package/atoms/Data/index.cjs.map +7 -0
- package/atoms/Data/index.d.ts +4 -0
- package/atoms/Data/index.js +5 -0
- package/atoms/Data/index.js.map +7 -0
- package/atoms/Data/utils.cjs +46 -0
- package/atoms/Data/utils.cjs.map +7 -0
- package/atoms/Data/utils.d.ts +4 -0
- package/atoms/Data/utils.js +24 -0
- package/atoms/Data/utils.js.map +7 -0
- package/atoms/index.cjs +1 -0
- package/atoms/index.cjs.map +2 -2
- package/atoms/index.d.ts +1 -0
- package/atoms/index.js +1 -0
- package/atoms/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/ui/atoms/Data/DataBind.ts
|
|
20
|
+
var DataBind_exports = {};
|
|
21
|
+
__export(DataBind_exports, {
|
|
22
|
+
DataBind: () => DataBind
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(DataBind_exports);
|
|
25
|
+
var import_js_toolkit = require("@studiometa/js-toolkit");
|
|
26
|
+
var import_utils = require("@studiometa/js-toolkit/utils");
|
|
27
|
+
var import_utils2 = require("./utils.cjs");
|
|
28
|
+
var instances = /* @__PURE__ */ new Map();
|
|
29
|
+
var DataBind = class extends import_js_toolkit.Base {
|
|
30
|
+
static config = {
|
|
31
|
+
name: "DataBind",
|
|
32
|
+
options: {
|
|
33
|
+
prop: String,
|
|
34
|
+
name: String
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
get relatedInstances() {
|
|
38
|
+
const { name } = this.$options;
|
|
39
|
+
if (!instances.has(name)) {
|
|
40
|
+
instances.set(name, /* @__PURE__ */ new Set());
|
|
41
|
+
}
|
|
42
|
+
return instances.get(name);
|
|
43
|
+
}
|
|
44
|
+
get multiple() {
|
|
45
|
+
return this.$options.name.endsWith("[]");
|
|
46
|
+
}
|
|
47
|
+
get target() {
|
|
48
|
+
return this.$el;
|
|
49
|
+
}
|
|
50
|
+
get prop() {
|
|
51
|
+
if (this.$options.prop) {
|
|
52
|
+
return this.$options.prop;
|
|
53
|
+
}
|
|
54
|
+
const { target } = this;
|
|
55
|
+
if (target instanceof HTMLInputElement) {
|
|
56
|
+
return "value";
|
|
57
|
+
}
|
|
58
|
+
return "textContent";
|
|
59
|
+
}
|
|
60
|
+
get() {
|
|
61
|
+
const { target, multiple } = this;
|
|
62
|
+
if ((0, import_utils2.isSelect)(target)) {
|
|
63
|
+
if (multiple) {
|
|
64
|
+
const values = [];
|
|
65
|
+
for (const option2 of target.options) {
|
|
66
|
+
if (option2.selected) {
|
|
67
|
+
values.push(option2.value);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return values;
|
|
71
|
+
}
|
|
72
|
+
const option = target.options.item(target.selectedIndex);
|
|
73
|
+
return option.value;
|
|
74
|
+
}
|
|
75
|
+
if ((0, import_utils2.isCheckbox)(target)) {
|
|
76
|
+
if (multiple) {
|
|
77
|
+
const values = /* @__PURE__ */ new Set();
|
|
78
|
+
for (const instance of this.relatedInstances) {
|
|
79
|
+
if ((0, import_utils2.isCheckbox)(instance.target) && instance.target.checked) {
|
|
80
|
+
values.add(instance.target.value);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return Array.from(values);
|
|
84
|
+
} else {
|
|
85
|
+
return target.checked;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return target[this.prop];
|
|
89
|
+
}
|
|
90
|
+
set(value) {
|
|
91
|
+
const { target, multiple } = this;
|
|
92
|
+
if ((0, import_utils2.isSelect)(target)) {
|
|
93
|
+
for (const option of target.options) {
|
|
94
|
+
option.selected = multiple && (0, import_utils.isArray)(value) ? value.includes(option.value) : option.value === value;
|
|
95
|
+
}
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if ((0, import_utils2.isInput)(target)) {
|
|
99
|
+
switch (target.type) {
|
|
100
|
+
case "radio":
|
|
101
|
+
target.checked = target.value === value;
|
|
102
|
+
return;
|
|
103
|
+
case "checkbox":
|
|
104
|
+
target.checked = multiple && (0, import_utils.isArray)(value) ? value.includes(target.value) : Boolean(value);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
target[this.prop] = value;
|
|
109
|
+
}
|
|
110
|
+
mounted() {
|
|
111
|
+
this.relatedInstances.add(this);
|
|
112
|
+
}
|
|
113
|
+
destroyed() {
|
|
114
|
+
this.relatedInstances.delete(this);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
118
|
+
//# sourceMappingURL=DataBind.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataBind.ts"],
|
|
4
|
+
"sourcesContent": ["import { Base } from '@studiometa/js-toolkit';\nimport type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isArray } from '@studiometa/js-toolkit/utils';\nimport { isInput, isCheckbox, isSelect } from './utils.js';\n\nconst instances = new Map<string, Set<DataBind>>();\n\nexport interface DataBindProps extends BaseProps {\n $options: {\n prop: string;\n name: string;\n };\n}\n\nexport class DataBind<T extends BaseProps = BaseProps> extends Base<DataBindProps & T> {\n static config: BaseConfig = {\n name: 'DataBind',\n options: {\n prop: String,\n name: String,\n },\n };\n\n get relatedInstances() {\n const { name } = this.$options;\n\n if (!instances.has(name)) {\n instances.set(name, new Set());\n }\n\n return instances.get(name);\n }\n\n get multiple() {\n return this.$options.name.endsWith('[]');\n }\n\n get target() {\n return this.$el;\n }\n\n get prop() {\n if (this.$options.prop) {\n return this.$options.prop;\n }\n\n const { target } = this;\n if (target instanceof HTMLInputElement) {\n return 'value';\n }\n\n return 'textContent';\n }\n\n get() {\n const { target, multiple } = this;\n\n if (isSelect(target)) {\n if (multiple) {\n const values = [];\n for (const option of target.options) {\n if (option.selected) {\n values.push(option.value);\n }\n }\n\n return values;\n }\n\n const option = target.options.item(target.selectedIndex);\n return option.value;\n }\n\n if (isCheckbox(target)) {\n if (multiple) {\n const values = new Set();\n for (const instance of this.relatedInstances) {\n if (isCheckbox(instance.target) && instance.target.checked) {\n values.add(instance.target.value);\n }\n }\n return Array.from(values);\n } else {\n return target.checked;\n }\n }\n\n return target[this.prop];\n }\n\n set(value: boolean | string | string[]) {\n const { target, multiple } = this;\n\n if (isSelect(target)) {\n for (const option of target.options) {\n option.selected =\n multiple && isArray(value) ? value.includes(option.value) : option.value === value;\n }\n return;\n }\n\n if (isInput(target)) {\n switch (target.type) {\n case 'radio':\n target.checked = target.value === value;\n return;\n case 'checkbox':\n target.checked =\n multiple && isArray(value) ? value.includes(target.value) : Boolean(value);\n return;\n }\n }\n\n target[this.prop] = value;\n }\n\n mounted() {\n this.relatedInstances.add(this);\n }\n\n destroyed() {\n this.relatedInstances.delete(this);\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wBAAqB;AAErB,mBAAwB;AACxB,IAAAA,gBAA8C;AAE9C,IAAM,YAAY,oBAAI,IAA2B;AAS1C,IAAM,WAAN,cAAwD,uBAAwB;AAAA,EACrF,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,IAAI,mBAAmB;AACrB,UAAM,EAAE,KAAK,IAAI,KAAK;AAEtB,QAAI,CAAC,UAAU,IAAI,IAAI,GAAG;AACxB,gBAAU,IAAI,MAAM,oBAAI,IAAI,CAAC;AAAA,IAC/B;AAEA,WAAO,UAAU,IAAI,IAAI;AAAA,EAC3B;AAAA,EAEA,IAAI,WAAW;AACb,WAAO,KAAK,SAAS,KAAK,SAAS,IAAI;AAAA,EACzC;AAAA,EAEA,IAAI,SAAS;AACX,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,OAAO;AACT,QAAI,KAAK,SAAS,MAAM;AACtB,aAAO,KAAK,SAAS;AAAA,IACvB;AAEA,UAAM,EAAE,OAAO,IAAI;AACnB,QAAI,kBAAkB,kBAAkB;AACtC,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,MAAM;AACJ,UAAM,EAAE,QAAQ,SAAS,IAAI;AAE7B,YAAI,wBAAS,MAAM,GAAG;AACpB,UAAI,UAAU;AACZ,cAAM,SAAS,CAAC;AAChB,mBAAWC,WAAU,OAAO,SAAS;AACnC,cAAIA,QAAO,UAAU;AACnB,mBAAO,KAAKA,QAAO,KAAK;AAAA,UAC1B;AAAA,QACF;AAEA,eAAO;AAAA,MACT;AAEA,YAAM,SAAS,OAAO,QAAQ,KAAK,OAAO,aAAa;AACvD,aAAO,OAAO;AAAA,IAChB;AAEA,YAAI,0BAAW,MAAM,GAAG;AACtB,UAAI,UAAU;AACZ,cAAM,SAAS,oBAAI,IAAI;AACvB,mBAAW,YAAY,KAAK,kBAAkB;AAC5C,kBAAI,0BAAW,SAAS,MAAM,KAAK,SAAS,OAAO,SAAS;AAC1D,mBAAO,IAAI,SAAS,OAAO,KAAK;AAAA,UAClC;AAAA,QACF;AACA,eAAO,MAAM,KAAK,MAAM;AAAA,MAC1B,OAAO;AACL,eAAO,OAAO;AAAA,MAChB;AAAA,IACF;AAEA,WAAO,OAAO,KAAK,IAAI;AAAA,EACzB;AAAA,EAEA,IAAI,OAAoC;AACtC,UAAM,EAAE,QAAQ,SAAS,IAAI;AAE7B,YAAI,wBAAS,MAAM,GAAG;AACpB,iBAAW,UAAU,OAAO,SAAS;AACnC,eAAO,WACL,gBAAY,sBAAQ,KAAK,IAAI,MAAM,SAAS,OAAO,KAAK,IAAI,OAAO,UAAU;AAAA,MACjF;AACA;AAAA,IACF;AAEA,YAAI,uBAAQ,MAAM,GAAG;AACnB,cAAQ,OAAO,MAAM;AAAA,QACnB,KAAK;AACH,iBAAO,UAAU,OAAO,UAAU;AAClC;AAAA,QACF,KAAK;AACH,iBAAO,UACL,gBAAY,sBAAQ,KAAK,IAAI,MAAM,SAAS,OAAO,KAAK,IAAI,QAAQ,KAAK;AAC3E;AAAA,MACJ;AAAA,IACF;AAEA,WAAO,KAAK,IAAI,IAAI;AAAA,EACtB;AAAA,EAEA,UAAU;AACR,SAAK,iBAAiB,IAAI,IAAI;AAAA,EAChC;AAAA,EAEA,YAAY;AACV,SAAK,iBAAiB,OAAO,IAAI;AAAA,EACnC;AACF;",
|
|
6
|
+
"names": ["import_utils", "option"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Base } from '@studiometa/js-toolkit';
|
|
2
|
+
import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';
|
|
3
|
+
export interface DataBindProps extends BaseProps {
|
|
4
|
+
$options: {
|
|
5
|
+
prop: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare class DataBind<T extends BaseProps = BaseProps> extends Base<DataBindProps & T> {
|
|
10
|
+
static config: BaseConfig;
|
|
11
|
+
get relatedInstances(): Set<DataBind<BaseProps>>;
|
|
12
|
+
get multiple(): boolean;
|
|
13
|
+
get target(): (DataBindProps & T)["$el"] & HTMLElement & {
|
|
14
|
+
__base__?: WeakMap<import("@studiometa/js-toolkit").BaseConstructor, Base | "terminated">;
|
|
15
|
+
};
|
|
16
|
+
get prop(): string;
|
|
17
|
+
get(): any;
|
|
18
|
+
set(value: boolean | string | string[]): void;
|
|
19
|
+
mounted(): void;
|
|
20
|
+
destroyed(): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Base } from "@studiometa/js-toolkit";
|
|
2
|
+
import { isArray } from "@studiometa/js-toolkit/utils";
|
|
3
|
+
import { isInput, isCheckbox, isSelect } from "./utils.js";
|
|
4
|
+
const instances = /* @__PURE__ */ new Map();
|
|
5
|
+
class DataBind extends Base {
|
|
6
|
+
static config = {
|
|
7
|
+
name: "DataBind",
|
|
8
|
+
options: {
|
|
9
|
+
prop: String,
|
|
10
|
+
name: String
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
get relatedInstances() {
|
|
14
|
+
const { name } = this.$options;
|
|
15
|
+
if (!instances.has(name)) {
|
|
16
|
+
instances.set(name, /* @__PURE__ */ new Set());
|
|
17
|
+
}
|
|
18
|
+
return instances.get(name);
|
|
19
|
+
}
|
|
20
|
+
get multiple() {
|
|
21
|
+
return this.$options.name.endsWith("[]");
|
|
22
|
+
}
|
|
23
|
+
get target() {
|
|
24
|
+
return this.$el;
|
|
25
|
+
}
|
|
26
|
+
get prop() {
|
|
27
|
+
if (this.$options.prop) {
|
|
28
|
+
return this.$options.prop;
|
|
29
|
+
}
|
|
30
|
+
const { target } = this;
|
|
31
|
+
if (target instanceof HTMLInputElement) {
|
|
32
|
+
return "value";
|
|
33
|
+
}
|
|
34
|
+
return "textContent";
|
|
35
|
+
}
|
|
36
|
+
get() {
|
|
37
|
+
const { target, multiple } = this;
|
|
38
|
+
if (isSelect(target)) {
|
|
39
|
+
if (multiple) {
|
|
40
|
+
const values = [];
|
|
41
|
+
for (const option2 of target.options) {
|
|
42
|
+
if (option2.selected) {
|
|
43
|
+
values.push(option2.value);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return values;
|
|
47
|
+
}
|
|
48
|
+
const option = target.options.item(target.selectedIndex);
|
|
49
|
+
return option.value;
|
|
50
|
+
}
|
|
51
|
+
if (isCheckbox(target)) {
|
|
52
|
+
if (multiple) {
|
|
53
|
+
const values = /* @__PURE__ */ new Set();
|
|
54
|
+
for (const instance of this.relatedInstances) {
|
|
55
|
+
if (isCheckbox(instance.target) && instance.target.checked) {
|
|
56
|
+
values.add(instance.target.value);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return Array.from(values);
|
|
60
|
+
} else {
|
|
61
|
+
return target.checked;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return target[this.prop];
|
|
65
|
+
}
|
|
66
|
+
set(value) {
|
|
67
|
+
const { target, multiple } = this;
|
|
68
|
+
if (isSelect(target)) {
|
|
69
|
+
for (const option of target.options) {
|
|
70
|
+
option.selected = multiple && isArray(value) ? value.includes(option.value) : option.value === value;
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (isInput(target)) {
|
|
75
|
+
switch (target.type) {
|
|
76
|
+
case "radio":
|
|
77
|
+
target.checked = target.value === value;
|
|
78
|
+
return;
|
|
79
|
+
case "checkbox":
|
|
80
|
+
target.checked = multiple && isArray(value) ? value.includes(target.value) : Boolean(value);
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
target[this.prop] = value;
|
|
85
|
+
}
|
|
86
|
+
mounted() {
|
|
87
|
+
this.relatedInstances.add(this);
|
|
88
|
+
}
|
|
89
|
+
destroyed() {
|
|
90
|
+
this.relatedInstances.delete(this);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
DataBind
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=DataBind.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataBind.ts"],
|
|
4
|
+
"sourcesContent": ["import { Base } from '@studiometa/js-toolkit';\nimport type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isArray } from '@studiometa/js-toolkit/utils';\nimport { isInput, isCheckbox, isSelect } from './utils.js';\n\nconst instances = new Map<string, Set<DataBind>>();\n\nexport interface DataBindProps extends BaseProps {\n $options: {\n prop: string;\n name: string;\n };\n}\n\nexport class DataBind<T extends BaseProps = BaseProps> extends Base<DataBindProps & T> {\n static config: BaseConfig = {\n name: 'DataBind',\n options: {\n prop: String,\n name: String,\n },\n };\n\n get relatedInstances() {\n const { name } = this.$options;\n\n if (!instances.has(name)) {\n instances.set(name, new Set());\n }\n\n return instances.get(name);\n }\n\n get multiple() {\n return this.$options.name.endsWith('[]');\n }\n\n get target() {\n return this.$el;\n }\n\n get prop() {\n if (this.$options.prop) {\n return this.$options.prop;\n }\n\n const { target } = this;\n if (target instanceof HTMLInputElement) {\n return 'value';\n }\n\n return 'textContent';\n }\n\n get() {\n const { target, multiple } = this;\n\n if (isSelect(target)) {\n if (multiple) {\n const values = [];\n for (const option of target.options) {\n if (option.selected) {\n values.push(option.value);\n }\n }\n\n return values;\n }\n\n const option = target.options.item(target.selectedIndex);\n return option.value;\n }\n\n if (isCheckbox(target)) {\n if (multiple) {\n const values = new Set();\n for (const instance of this.relatedInstances) {\n if (isCheckbox(instance.target) && instance.target.checked) {\n values.add(instance.target.value);\n }\n }\n return Array.from(values);\n } else {\n return target.checked;\n }\n }\n\n return target[this.prop];\n }\n\n set(value: boolean | string | string[]) {\n const { target, multiple } = this;\n\n if (isSelect(target)) {\n for (const option of target.options) {\n option.selected =\n multiple && isArray(value) ? value.includes(option.value) : option.value === value;\n }\n return;\n }\n\n if (isInput(target)) {\n switch (target.type) {\n case 'radio':\n target.checked = target.value === value;\n return;\n case 'checkbox':\n target.checked =\n multiple && isArray(value) ? value.includes(target.value) : Boolean(value);\n return;\n }\n }\n\n target[this.prop] = value;\n }\n\n mounted() {\n this.relatedInstances.add(this);\n }\n\n destroyed() {\n this.relatedInstances.delete(this);\n }\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAAS,SAAS,YAAY,gBAAgB;AAE9C,MAAM,YAAY,oBAAI,IAA2B;AAS1C,MAAM,iBAAkD,KAAwB;AAAA,EACrF,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,IAAI,mBAAmB;AACrB,UAAM,EAAE,KAAK,IAAI,KAAK;AAEtB,QAAI,CAAC,UAAU,IAAI,IAAI,GAAG;AACxB,gBAAU,IAAI,MAAM,oBAAI,IAAI,CAAC;AAAA,IAC/B;AAEA,WAAO,UAAU,IAAI,IAAI;AAAA,EAC3B;AAAA,EAEA,IAAI,WAAW;AACb,WAAO,KAAK,SAAS,KAAK,SAAS,IAAI;AAAA,EACzC;AAAA,EAEA,IAAI,SAAS;AACX,WAAO,KAAK;AAAA,EACd;AAAA,EAEA,IAAI,OAAO;AACT,QAAI,KAAK,SAAS,MAAM;AACtB,aAAO,KAAK,SAAS;AAAA,IACvB;AAEA,UAAM,EAAE,OAAO,IAAI;AACnB,QAAI,kBAAkB,kBAAkB;AACtC,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,MAAM;AACJ,UAAM,EAAE,QAAQ,SAAS,IAAI;AAE7B,QAAI,SAAS,MAAM,GAAG;AACpB,UAAI,UAAU;AACZ,cAAM,SAAS,CAAC;AAChB,mBAAWA,WAAU,OAAO,SAAS;AACnC,cAAIA,QAAO,UAAU;AACnB,mBAAO,KAAKA,QAAO,KAAK;AAAA,UAC1B;AAAA,QACF;AAEA,eAAO;AAAA,MACT;AAEA,YAAM,SAAS,OAAO,QAAQ,KAAK,OAAO,aAAa;AACvD,aAAO,OAAO;AAAA,IAChB;AAEA,QAAI,WAAW,MAAM,GAAG;AACtB,UAAI,UAAU;AACZ,cAAM,SAAS,oBAAI,IAAI;AACvB,mBAAW,YAAY,KAAK,kBAAkB;AAC5C,cAAI,WAAW,SAAS,MAAM,KAAK,SAAS,OAAO,SAAS;AAC1D,mBAAO,IAAI,SAAS,OAAO,KAAK;AAAA,UAClC;AAAA,QACF;AACA,eAAO,MAAM,KAAK,MAAM;AAAA,MAC1B,OAAO;AACL,eAAO,OAAO;AAAA,MAChB;AAAA,IACF;AAEA,WAAO,OAAO,KAAK,IAAI;AAAA,EACzB;AAAA,EAEA,IAAI,OAAoC;AACtC,UAAM,EAAE,QAAQ,SAAS,IAAI;AAE7B,QAAI,SAAS,MAAM,GAAG;AACpB,iBAAW,UAAU,OAAO,SAAS;AACnC,eAAO,WACL,YAAY,QAAQ,KAAK,IAAI,MAAM,SAAS,OAAO,KAAK,IAAI,OAAO,UAAU;AAAA,MACjF;AACA;AAAA,IACF;AAEA,QAAI,QAAQ,MAAM,GAAG;AACnB,cAAQ,OAAO,MAAM;AAAA,QACnB,KAAK;AACH,iBAAO,UAAU,OAAO,UAAU;AAClC;AAAA,QACF,KAAK;AACH,iBAAO,UACL,YAAY,QAAQ,KAAK,IAAI,MAAM,SAAS,OAAO,KAAK,IAAI,QAAQ,KAAK;AAC3E;AAAA,MACJ;AAAA,IACF;AAEA,WAAO,KAAK,IAAI,IAAI;AAAA,EACtB;AAAA,EAEA,UAAU;AACR,SAAK,iBAAiB,IAAI,IAAI;AAAA,EAChC;AAAA,EAEA,YAAY;AACV,SAAK,iBAAiB,OAAO,IAAI;AAAA,EACnC;AACF;",
|
|
6
|
+
"names": ["option"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/ui/atoms/Data/DataComputed.ts
|
|
20
|
+
var DataComputed_exports = {};
|
|
21
|
+
__export(DataComputed_exports, {
|
|
22
|
+
DataComputed: () => DataComputed
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(DataComputed_exports);
|
|
25
|
+
var import_DataBind = require("./DataBind.cjs");
|
|
26
|
+
var import_utils = require("./utils.cjs");
|
|
27
|
+
var DataComputed = class extends import_DataBind.DataBind {
|
|
28
|
+
static config = {
|
|
29
|
+
name: "DataComputed",
|
|
30
|
+
options: {
|
|
31
|
+
compute: String
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
get compute() {
|
|
35
|
+
const { name, compute } = this.$options;
|
|
36
|
+
return (0, import_utils.getCallback)(name, `return ${compute};`);
|
|
37
|
+
}
|
|
38
|
+
set(value) {
|
|
39
|
+
let newValue = value;
|
|
40
|
+
try {
|
|
41
|
+
newValue = this.compute(value, this.target);
|
|
42
|
+
} catch (error) {
|
|
43
|
+
console.error("Failed", error);
|
|
44
|
+
}
|
|
45
|
+
super.set(newValue);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
49
|
+
//# sourceMappingURL=DataComputed.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataComputed.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isDefined } from '@studiometa/js-toolkit/utils';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { getCallback } from './utils.js';\n\nexport interface DataComputedProps extends DataBindProps {\n $options: {\n compute: string;\n } & DataBindProps['$options'];\n}\n\nconst callbacks = new Map<string, Function>();\n\nexport class DataComputed<T extends BaseProps = BaseProps> extends DataBind<DataComputedProps & T> {\n static config: BaseConfig = {\n name: 'DataComputed',\n options: {\n compute: String,\n },\n };\n\n get compute() {\n const { name, compute } = this.$options;\n return getCallback(name, `return ${compute};`);\n }\n\n set(value: boolean | string | string[]) {\n let newValue = value;\n\n try {\n newValue = this.compute(value, this.target);\n } catch (error) {\n // @todo better handling of errors?\n console.error('Failed', error);\n }\n\n super.set(newValue);\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB;AAEzB,mBAA4B;AAUrB,IAAM,eAAN,cAA4D,yBAAgC;AAAA,EACjG,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,IAAI,UAAU;AACZ,UAAM,EAAE,MAAM,QAAQ,IAAI,KAAK;AAC/B,eAAO,0BAAY,MAAM,UAAU,OAAO,GAAG;AAAA,EAC/C;AAAA,EAEA,IAAI,OAAoC;AACtC,QAAI,WAAW;AAEf,QAAI;AACF,iBAAW,KAAK,QAAQ,OAAO,KAAK,MAAM;AAAA,IAC5C,SAAS,OAAO;AAEd,cAAQ,MAAM,UAAU,KAAK;AAAA,IAC/B;AAEA,UAAM,IAAI,QAAQ;AAAA,EACpB;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';
|
|
2
|
+
import { DataBind } from './DataBind.js';
|
|
3
|
+
import type { DataBindProps } from './DataBind.js';
|
|
4
|
+
export interface DataComputedProps extends DataBindProps {
|
|
5
|
+
$options: {
|
|
6
|
+
compute: string;
|
|
7
|
+
} & DataBindProps['$options'];
|
|
8
|
+
}
|
|
9
|
+
export declare class DataComputed<T extends BaseProps = BaseProps> extends DataBind<DataComputedProps & T> {
|
|
10
|
+
static config: BaseConfig;
|
|
11
|
+
get compute(): Function;
|
|
12
|
+
set(value: boolean | string | string[]): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DataBind } from "./DataBind.js";
|
|
2
|
+
import { getCallback } from "./utils.js";
|
|
3
|
+
const callbacks = /* @__PURE__ */ new Map();
|
|
4
|
+
class DataComputed extends DataBind {
|
|
5
|
+
static config = {
|
|
6
|
+
name: "DataComputed",
|
|
7
|
+
options: {
|
|
8
|
+
compute: String
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
get compute() {
|
|
12
|
+
const { name, compute } = this.$options;
|
|
13
|
+
return getCallback(name, `return ${compute};`);
|
|
14
|
+
}
|
|
15
|
+
set(value) {
|
|
16
|
+
let newValue = value;
|
|
17
|
+
try {
|
|
18
|
+
newValue = this.compute(value, this.target);
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error("Failed", error);
|
|
21
|
+
}
|
|
22
|
+
super.set(newValue);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
DataComputed
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=DataComputed.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataComputed.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isDefined } from '@studiometa/js-toolkit/utils';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { getCallback } from './utils.js';\n\nexport interface DataComputedProps extends DataBindProps {\n $options: {\n compute: string;\n } & DataBindProps['$options'];\n}\n\nconst callbacks = new Map<string, Function>();\n\nexport class DataComputed<T extends BaseProps = BaseProps> extends DataBind<DataComputedProps & T> {\n static config: BaseConfig = {\n name: 'DataComputed',\n options: {\n compute: String,\n },\n };\n\n get compute() {\n const { name, compute } = this.$options;\n return getCallback(name, `return ${compute};`);\n }\n\n set(value: boolean | string | string[]) {\n let newValue = value;\n\n try {\n newValue = this.compute(value, this.target);\n } catch (error) {\n // @todo better handling of errors?\n console.error('Failed', error);\n }\n\n super.set(newValue);\n }\n}\n"],
|
|
5
|
+
"mappings": "AAEA,SAAS,gBAAgB;AAEzB,SAAS,mBAAmB;AAQ5B,MAAM,YAAY,oBAAI,IAAsB;AAErC,MAAM,qBAAsD,SAAgC;AAAA,EACjG,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,IAAI,UAAU;AACZ,UAAM,EAAE,MAAM,QAAQ,IAAI,KAAK;AAC/B,WAAO,YAAY,MAAM,UAAU,OAAO,GAAG;AAAA,EAC/C;AAAA,EAEA,IAAI,OAAoC;AACtC,QAAI,WAAW;AAEf,QAAI;AACF,iBAAW,KAAK,QAAQ,OAAO,KAAK,MAAM;AAAA,IAC5C,SAAS,OAAO;AAEd,cAAQ,MAAM,UAAU,KAAK;AAAA,IAC/B;AAEA,UAAM,IAAI,QAAQ;AAAA,EACpB;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -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 __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/ui/atoms/Data/DataEffect.ts
|
|
20
|
+
var DataEffect_exports = {};
|
|
21
|
+
__export(DataEffect_exports, {
|
|
22
|
+
DataEffect: () => DataEffect
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(DataEffect_exports);
|
|
25
|
+
var import_DataBind = require("./DataBind.cjs");
|
|
26
|
+
var import_utils = require("./utils.cjs");
|
|
27
|
+
var DataEffect = class extends import_DataBind.DataBind {
|
|
28
|
+
static config = {
|
|
29
|
+
name: "DataEffect",
|
|
30
|
+
options: {
|
|
31
|
+
effect: String
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
get effect() {
|
|
35
|
+
const { name, effect } = this.$options;
|
|
36
|
+
return (0, import_utils.getCallback)(name, effect);
|
|
37
|
+
}
|
|
38
|
+
set(value) {
|
|
39
|
+
try {
|
|
40
|
+
this.effect(value, this.target);
|
|
41
|
+
} catch (error) {
|
|
42
|
+
console.error("Failed", error);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
47
|
+
//# sourceMappingURL=DataEffect.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataEffect.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isDefined } from '@studiometa/js-toolkit/utils';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { getCallback } from './utils.js';\n\nexport interface DataEffectProps extends DataBindProps {\n $options: {\n effect: string;\n } & DataBindProps['$options'];\n}\n\nexport class DataEffect<T extends BaseProps = BaseProps> extends DataBind<DataEffectProps & T> {\n static config: BaseConfig = {\n name: 'DataEffect',\n options: {\n effect: String,\n },\n };\n\n get effect() {\n const { name, effect } = this.$options;\n return getCallback(name, effect);\n }\n\n set(value: boolean | string | string[]) {\n try {\n this.effect(value, this.target);\n } catch (error) {\n // @todo better handling of errors?\n console.error('Failed', error);\n }\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,sBAAyB;AAEzB,mBAA4B;AAQrB,IAAM,aAAN,cAA0D,yBAA8B;AAAA,EAC7F,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EAEA,IAAI,SAAS;AACX,UAAM,EAAE,MAAM,OAAO,IAAI,KAAK;AAC9B,eAAO,0BAAY,MAAM,MAAM;AAAA,EACjC;AAAA,EAEA,IAAI,OAAoC;AACtC,QAAI;AACF,WAAK,OAAO,OAAO,KAAK,MAAM;AAAA,IAChC,SAAS,OAAO;AAEd,cAAQ,MAAM,UAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';
|
|
2
|
+
import { DataBind } from './DataBind.js';
|
|
3
|
+
import type { DataBindProps } from './DataBind.js';
|
|
4
|
+
export interface DataEffectProps extends DataBindProps {
|
|
5
|
+
$options: {
|
|
6
|
+
effect: string;
|
|
7
|
+
} & DataBindProps['$options'];
|
|
8
|
+
}
|
|
9
|
+
export declare class DataEffect<T extends BaseProps = BaseProps> extends DataBind<DataEffectProps & T> {
|
|
10
|
+
static config: BaseConfig;
|
|
11
|
+
get effect(): Function;
|
|
12
|
+
set(value: boolean | string | string[]): void;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataBind } from "./DataBind.js";
|
|
2
|
+
import { getCallback } from "./utils.js";
|
|
3
|
+
class DataEffect extends DataBind {
|
|
4
|
+
static config = {
|
|
5
|
+
name: "DataEffect",
|
|
6
|
+
options: {
|
|
7
|
+
effect: String
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
get effect() {
|
|
11
|
+
const { name, effect } = this.$options;
|
|
12
|
+
return getCallback(name, effect);
|
|
13
|
+
}
|
|
14
|
+
set(value) {
|
|
15
|
+
try {
|
|
16
|
+
this.effect(value, this.target);
|
|
17
|
+
} catch (error) {
|
|
18
|
+
console.error("Failed", error);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
DataEffect
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=DataEffect.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataEffect.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { isDefined } from '@studiometa/js-toolkit/utils';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { getCallback } from './utils.js';\n\nexport interface DataEffectProps extends DataBindProps {\n $options: {\n effect: string;\n } & DataBindProps['$options'];\n}\n\nexport class DataEffect<T extends BaseProps = BaseProps> extends DataBind<DataEffectProps & T> {\n static config: BaseConfig = {\n name: 'DataEffect',\n options: {\n effect: String,\n },\n };\n\n get effect() {\n const { name, effect } = this.$options;\n return getCallback(name, effect);\n }\n\n set(value: boolean | string | string[]) {\n try {\n this.effect(value, this.target);\n } catch (error) {\n // @todo better handling of errors?\n console.error('Failed', error);\n }\n }\n}\n"],
|
|
5
|
+
"mappings": "AAEA,SAAS,gBAAgB;AAEzB,SAAS,mBAAmB;AAQrB,MAAM,mBAAoD,SAA8B;AAAA,EAC7F,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,IACN,SAAS;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EAEA,IAAI,SAAS;AACX,UAAM,EAAE,MAAM,OAAO,IAAI,KAAK;AAC9B,WAAO,YAAY,MAAM,MAAM;AAAA,EACjC;AAAA,EAEA,IAAI,OAAoC;AACtC,QAAI;AACF,WAAK,OAAO,OAAO,KAAK,MAAM;AAAA,IAChC,SAAS,OAAO;AAEd,cAAQ,MAAM,UAAU,KAAK;AAAA,IAC/B;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/ui/atoms/Data/DataModel.ts
|
|
20
|
+
var DataModel_exports = {};
|
|
21
|
+
__export(DataModel_exports, {
|
|
22
|
+
DataModel: () => DataModel
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(DataModel_exports);
|
|
25
|
+
var import_DataBind = require("./DataBind.cjs");
|
|
26
|
+
var import_utils = require("./utils.cjs");
|
|
27
|
+
var DataModel = class extends import_DataBind.DataBind {
|
|
28
|
+
static config = {
|
|
29
|
+
name: "DataModel"
|
|
30
|
+
};
|
|
31
|
+
dispatch() {
|
|
32
|
+
const { target, multiple } = this;
|
|
33
|
+
let value = this.get();
|
|
34
|
+
if (multiple && (0, import_utils.isCheckbox)(target) && !target.checked) {
|
|
35
|
+
const set = new Set(value);
|
|
36
|
+
set.delete(target.value);
|
|
37
|
+
value = Array.from(set);
|
|
38
|
+
}
|
|
39
|
+
for (const instance of this.relatedInstances) {
|
|
40
|
+
instance.set(value);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
onInput() {
|
|
44
|
+
this.dispatch();
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
48
|
+
//# sourceMappingURL=DataModel.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataModel.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { isCheckbox } from './utils.js';\n\nexport interface DataModelProps extends DataBindProps {}\n\nexport class DataModel<T extends BaseProps = BaseProps> extends DataBind<DataModelProps & T> {\n static config: BaseConfig = {\n name: 'DataModel',\n };\n\n dispatch() {\n const { target, multiple } = this;\n let value = this.get();\n\n if (multiple && isCheckbox(target) && !target.checked) {\n const set = new Set(value);\n set.delete(target.value);\n value = Array.from(set);\n }\n\n for (const instance of this.relatedInstances) {\n instance.set(value);\n }\n }\n\n onInput() {\n this.dispatch();\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAyB;AAEzB,mBAA2B;AAIpB,IAAM,YAAN,cAAyD,yBAA6B;AAAA,EAC3F,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,EACR;AAAA,EAEA,WAAW;AACT,UAAM,EAAE,QAAQ,SAAS,IAAI;AAC7B,QAAI,QAAQ,KAAK,IAAI;AAErB,QAAI,gBAAY,yBAAW,MAAM,KAAK,CAAC,OAAO,SAAS;AACrD,YAAM,MAAM,IAAI,IAAI,KAAK;AACzB,UAAI,OAAO,OAAO,KAAK;AACvB,cAAQ,MAAM,KAAK,GAAG;AAAA,IACxB;AAEA,eAAW,YAAY,KAAK,kBAAkB;AAC5C,eAAS,IAAI,KAAK;AAAA,IACpB;AAAA,EACF;AAAA,EAEA,UAAU;AACR,SAAK,SAAS;AAAA,EAChB;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';
|
|
2
|
+
import { DataBind } from './DataBind.js';
|
|
3
|
+
import type { DataBindProps } from './DataBind.js';
|
|
4
|
+
export interface DataModelProps extends DataBindProps {
|
|
5
|
+
}
|
|
6
|
+
export declare class DataModel<T extends BaseProps = BaseProps> extends DataBind<DataModelProps & T> {
|
|
7
|
+
static config: BaseConfig;
|
|
8
|
+
dispatch(): void;
|
|
9
|
+
onInput(): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DataBind } from "./DataBind.js";
|
|
2
|
+
import { isCheckbox } from "./utils.js";
|
|
3
|
+
class DataModel extends DataBind {
|
|
4
|
+
static config = {
|
|
5
|
+
name: "DataModel"
|
|
6
|
+
};
|
|
7
|
+
dispatch() {
|
|
8
|
+
const { target, multiple } = this;
|
|
9
|
+
let value = this.get();
|
|
10
|
+
if (multiple && isCheckbox(target) && !target.checked) {
|
|
11
|
+
const set = new Set(value);
|
|
12
|
+
set.delete(target.value);
|
|
13
|
+
value = Array.from(set);
|
|
14
|
+
}
|
|
15
|
+
for (const instance of this.relatedInstances) {
|
|
16
|
+
instance.set(value);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
onInput() {
|
|
20
|
+
this.dispatch();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
DataModel
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=DataModel.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/DataModel.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BaseConfig, BaseProps } from '@studiometa/js-toolkit';\nimport { DataBind } from './DataBind.js';\nimport type { DataBindProps } from './DataBind.js';\nimport { isCheckbox } from './utils.js';\n\nexport interface DataModelProps extends DataBindProps {}\n\nexport class DataModel<T extends BaseProps = BaseProps> extends DataBind<DataModelProps & T> {\n static config: BaseConfig = {\n name: 'DataModel',\n };\n\n dispatch() {\n const { target, multiple } = this;\n let value = this.get();\n\n if (multiple && isCheckbox(target) && !target.checked) {\n const set = new Set(value);\n set.delete(target.value);\n value = Array.from(set);\n }\n\n for (const instance of this.relatedInstances) {\n instance.set(value);\n }\n }\n\n onInput() {\n this.dispatch();\n }\n}\n"],
|
|
5
|
+
"mappings": "AACA,SAAS,gBAAgB;AAEzB,SAAS,kBAAkB;AAIpB,MAAM,kBAAmD,SAA6B;AAAA,EAC3F,OAAO,SAAqB;AAAA,IAC1B,MAAM;AAAA,EACR;AAAA,EAEA,WAAW;AACT,UAAM,EAAE,QAAQ,SAAS,IAAI;AAC7B,QAAI,QAAQ,KAAK,IAAI;AAErB,QAAI,YAAY,WAAW,MAAM,KAAK,CAAC,OAAO,SAAS;AACrD,YAAM,MAAM,IAAI,IAAI,KAAK;AACzB,UAAI,OAAO,OAAO,KAAK;AACvB,cAAQ,MAAM,KAAK,GAAG;AAAA,IACxB;AAEA,eAAW,YAAY,KAAK,kBAAkB;AAC5C,eAAS,IAAI,KAAK;AAAA,IACpB;AAAA,EACF;AAAA,EAEA,UAAU;AACR,SAAK,SAAS;AAAA,EAChB;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// packages/ui/atoms/Data/index.ts
|
|
17
|
+
var Data_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(Data_exports);
|
|
19
|
+
__reExport(Data_exports, require("./DataBind.cjs"), module.exports);
|
|
20
|
+
__reExport(Data_exports, require("./DataComputed.cjs"), module.exports);
|
|
21
|
+
__reExport(Data_exports, require("./DataEffect.cjs"), module.exports);
|
|
22
|
+
__reExport(Data_exports, require("./DataModel.cjs"), module.exports);
|
|
23
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
24
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './DataBind.js';\nexport * from './DataComputed.js';\nexport * from './DataEffect.js';\nexport * from './DataModel.js';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,yBAAc,2BAAd;AACA,yBAAc,+BADd;AAEA,yBAAc,6BAFd;AAGA,yBAAc,4BAHd;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/index.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './DataBind.js';\nexport * from './DataComputed.js';\nexport * from './DataEffect.js';\nexport * from './DataModel.js';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// packages/ui/atoms/Data/utils.ts
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
getCallback: () => getCallback,
|
|
23
|
+
isCheckbox: () => isCheckbox,
|
|
24
|
+
isInput: () => isInput,
|
|
25
|
+
isSelect: () => isSelect
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(utils_exports);
|
|
28
|
+
function isInput(el) {
|
|
29
|
+
return el instanceof HTMLInputElement;
|
|
30
|
+
}
|
|
31
|
+
function isCheckbox(el) {
|
|
32
|
+
return isInput(el) && el.type === "checkbox";
|
|
33
|
+
}
|
|
34
|
+
function isSelect(el) {
|
|
35
|
+
return el instanceof HTMLSelectElement;
|
|
36
|
+
}
|
|
37
|
+
var callbacks = /* @__PURE__ */ new Map();
|
|
38
|
+
function getCallback(name, code) {
|
|
39
|
+
const key = code + name;
|
|
40
|
+
if (!callbacks.has(key)) {
|
|
41
|
+
callbacks.set(key, new Function("value", "target", code));
|
|
42
|
+
}
|
|
43
|
+
return callbacks.get(key);
|
|
44
|
+
}
|
|
45
|
+
if (module.exports.default) module.exports = module.exports.default;
|
|
46
|
+
//# sourceMappingURL=utils.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/utils.ts"],
|
|
4
|
+
"sourcesContent": ["export function isInput(el: Element): el is HTMLInputElement {\n return el instanceof HTMLInputElement;\n}\n\nexport function isCheckbox(el: Element): el is HTMLInputElement {\n return isInput(el) && el.type === 'checkbox';\n}\n\nexport function isSelect(el: Element): el is HTMLSelectElement {\n return el instanceof HTMLSelectElement;\n}\n\nconst callbacks = new Map<string, Function>();\n\nexport function getCallback(name: string, code: string): Function {\n const key = code + name;\n\n if (!callbacks.has(key)) {\n callbacks.set(key, new Function('value', 'target', code));\n }\n\n return callbacks.get(key);\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,QAAQ,IAAqC;AAC3D,SAAO,cAAc;AACvB;AAEO,SAAS,WAAW,IAAqC;AAC9D,SAAO,QAAQ,EAAE,KAAK,GAAG,SAAS;AACpC;AAEO,SAAS,SAAS,IAAsC;AAC7D,SAAO,cAAc;AACvB;AAEA,IAAM,YAAY,oBAAI,IAAsB;AAErC,SAAS,YAAY,MAAc,MAAwB;AAChE,QAAM,MAAM,OAAO;AAEnB,MAAI,CAAC,UAAU,IAAI,GAAG,GAAG;AACvB,cAAU,IAAI,KAAK,IAAI,SAAS,SAAS,UAAU,IAAI,CAAC;AAAA,EAC1D;AAEA,SAAO,UAAU,IAAI,GAAG;AAC1B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function isInput(el: Element): el is HTMLInputElement;
|
|
2
|
+
export declare function isCheckbox(el: Element): el is HTMLInputElement;
|
|
3
|
+
export declare function isSelect(el: Element): el is HTMLSelectElement;
|
|
4
|
+
export declare function getCallback(name: string, code: string): Function;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function isInput(el) {
|
|
2
|
+
return el instanceof HTMLInputElement;
|
|
3
|
+
}
|
|
4
|
+
function isCheckbox(el) {
|
|
5
|
+
return isInput(el) && el.type === "checkbox";
|
|
6
|
+
}
|
|
7
|
+
function isSelect(el) {
|
|
8
|
+
return el instanceof HTMLSelectElement;
|
|
9
|
+
}
|
|
10
|
+
const callbacks = /* @__PURE__ */ new Map();
|
|
11
|
+
function getCallback(name, code) {
|
|
12
|
+
const key = code + name;
|
|
13
|
+
if (!callbacks.has(key)) {
|
|
14
|
+
callbacks.set(key, new Function("value", "target", code));
|
|
15
|
+
}
|
|
16
|
+
return callbacks.get(key);
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
getCallback,
|
|
20
|
+
isCheckbox,
|
|
21
|
+
isInput,
|
|
22
|
+
isSelect
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../packages/ui/atoms/Data/utils.ts"],
|
|
4
|
+
"sourcesContent": ["export function isInput(el: Element): el is HTMLInputElement {\n return el instanceof HTMLInputElement;\n}\n\nexport function isCheckbox(el: Element): el is HTMLInputElement {\n return isInput(el) && el.type === 'checkbox';\n}\n\nexport function isSelect(el: Element): el is HTMLSelectElement {\n return el instanceof HTMLSelectElement;\n}\n\nconst callbacks = new Map<string, Function>();\n\nexport function getCallback(name: string, code: string): Function {\n const key = code + name;\n\n if (!callbacks.has(key)) {\n callbacks.set(key, new Function('value', 'target', code));\n }\n\n return callbacks.get(key);\n}\n"],
|
|
5
|
+
"mappings": "AAAO,SAAS,QAAQ,IAAqC;AAC3D,SAAO,cAAc;AACvB;AAEO,SAAS,WAAW,IAAqC;AAC9D,SAAO,QAAQ,EAAE,KAAK,GAAG,SAAS;AACpC;AAEO,SAAS,SAAS,IAAsC;AAC7D,SAAO,cAAc;AACvB;AAEA,MAAM,YAAY,oBAAI,IAAsB;AAErC,SAAS,YAAY,MAAc,MAAwB;AAChE,QAAM,MAAM,OAAO;AAEnB,MAAI,CAAC,UAAU,IAAI,GAAG,GAAG;AACvB,cAAU,IAAI,KAAK,IAAI,SAAS,SAAS,UAAU,IAAI,CAAC;AAAA,EAC1D;AAEA,SAAO,UAAU,IAAI,GAAG;AAC1B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/atoms/index.cjs
CHANGED
|
@@ -20,6 +20,7 @@ __reExport(atoms_exports, require("./Action/index.cjs"), module.exports);
|
|
|
20
20
|
__reExport(atoms_exports, require("./AnchorScrollTo/index.cjs"), module.exports);
|
|
21
21
|
__reExport(atoms_exports, require("./CircularMarquee/index.cjs"), module.exports);
|
|
22
22
|
__reExport(atoms_exports, require("./Cursor/index.cjs"), module.exports);
|
|
23
|
+
__reExport(atoms_exports, require("./Data/index.cjs"), module.exports);
|
|
23
24
|
__reExport(atoms_exports, require("./Figure/index.cjs"), module.exports);
|
|
24
25
|
__reExport(atoms_exports, require("./FigureVideo/index.cjs"), module.exports);
|
|
25
26
|
__reExport(atoms_exports, require("./LargeText/index.cjs"), module.exports);
|
package/atoms/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/ui/atoms/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './Action/index.js';\nexport * from './AnchorScrollTo/index.js';\nexport * from './CircularMarquee/index.js';\nexport * from './Cursor/index.js';\nexport * from './Figure/index.js';\nexport * from './FigureVideo/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,+BAAd;AACA,0BAAc,uCADd;AAEA,0BAAc,wCAFd;AAGA,0BAAc,+BAHd;AAIA,0BAAc
|
|
4
|
+
"sourcesContent": ["export * from './Action/index.js';\nexport * from './AnchorScrollTo/index.js';\nexport * from './CircularMarquee/index.js';\nexport * from './Cursor/index.js';\nexport * from './Data/index.js';\nexport * from './Figure/index.js';\nexport * from './FigureVideo/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,+BAAd;AACA,0BAAc,uCADd;AAEA,0BAAc,wCAFd;AAGA,0BAAc,+BAHd;AAIA,0BAAc,6BAJd;AAKA,0BAAc,+BALd;AAMA,0BAAc,oCANd;AAOA,0BAAc,kCAPd;AAQA,0BAAc,oCARd;AASA,0BAAc,iCATd;AAUA,0BAAc,wCAVd;AAWA,0BAAc,qCAXd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/atoms/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './Action/index.js';
|
|
|
2
2
|
export * from './AnchorScrollTo/index.js';
|
|
3
3
|
export * from './CircularMarquee/index.js';
|
|
4
4
|
export * from './Cursor/index.js';
|
|
5
|
+
export * from './Data/index.js';
|
|
5
6
|
export * from './Figure/index.js';
|
|
6
7
|
export * from './FigureVideo/index.js';
|
|
7
8
|
export * from './LargeText/index.js';
|
package/atoms/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./Action/index.js";
|
|
|
2
2
|
export * from "./AnchorScrollTo/index.js";
|
|
3
3
|
export * from "./CircularMarquee/index.js";
|
|
4
4
|
export * from "./Cursor/index.js";
|
|
5
|
+
export * from "./Data/index.js";
|
|
5
6
|
export * from "./Figure/index.js";
|
|
6
7
|
export * from "./FigureVideo/index.js";
|
|
7
8
|
export * from "./LargeText/index.js";
|
package/atoms/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../packages/ui/atoms/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './Action/index.js';\nexport * from './AnchorScrollTo/index.js';\nexport * from './CircularMarquee/index.js';\nexport * from './Cursor/index.js';\nexport * from './Figure/index.js';\nexport * from './FigureVideo/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
-
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
4
|
+
"sourcesContent": ["export * from './Action/index.js';\nexport * from './AnchorScrollTo/index.js';\nexport * from './CircularMarquee/index.js';\nexport * from './Cursor/index.js';\nexport * from './Data/index.js';\nexport * from './Figure/index.js';\nexport * from './FigureVideo/index.js';\nexport * from './LargeText/index.js';\nexport * from './LazyInclude/index.js';\nexport * from './Prefetch/index.js';\nexport * from './ScrollAnimation/index.js';\nexport * from './ScrollReveal/index.js';\n"],
|
|
5
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|