pinia-orm-edge 1.7.3-28257628.bbb8bab
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/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/casts.cjs +124 -0
- package/dist/casts.d.cts +66 -0
- package/dist/casts.d.mts +66 -0
- package/dist/casts.d.ts +66 -0
- package/dist/casts.mjs +118 -0
- package/dist/decorators.cjs +219 -0
- package/dist/decorators.d.cts +107 -0
- package/dist/decorators.d.mts +107 -0
- package/dist/decorators.d.ts +107 -0
- package/dist/decorators.mjs +198 -0
- package/dist/helpers.cjs +69 -0
- package/dist/helpers.d.cts +54 -0
- package/dist/helpers.d.mts +54 -0
- package/dist/helpers.d.ts +54 -0
- package/dist/helpers.mjs +61 -0
- package/dist/index.cjs +3592 -0
- package/dist/index.d.cts +49 -0
- package/dist/index.d.mts +49 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.mjs +3561 -0
- package/dist/nanoid/async.cjs +42 -0
- package/dist/nanoid/async.d.cts +29 -0
- package/dist/nanoid/async.d.mts +29 -0
- package/dist/nanoid/async.d.ts +29 -0
- package/dist/nanoid/async.mjs +39 -0
- package/dist/nanoid/index.cjs +42 -0
- package/dist/nanoid/index.d.cts +24 -0
- package/dist/nanoid/index.d.mts +24 -0
- package/dist/nanoid/index.d.ts +24 -0
- package/dist/nanoid/index.mjs +39 -0
- package/dist/nanoid/non-secure.cjs +42 -0
- package/dist/nanoid/non-secure.d.cts +24 -0
- package/dist/nanoid/non-secure.d.mts +24 -0
- package/dist/nanoid/non-secure.d.ts +24 -0
- package/dist/nanoid/non-secure.mjs +39 -0
- package/dist/shared/pinia-orm.1bd7d299.mjs +153 -0
- package/dist/shared/pinia-orm.4ff2e12f.mjs +66 -0
- package/dist/shared/pinia-orm.876a7cdc.d.cts +1981 -0
- package/dist/shared/pinia-orm.876a7cdc.d.mts +1981 -0
- package/dist/shared/pinia-orm.876a7cdc.d.ts +1981 -0
- package/dist/shared/pinia-orm.a62c4fc4.cjs +167 -0
- package/dist/shared/pinia-orm.a7e3e0f3.cjs +68 -0
- package/dist/uuid/v1.cjs +41 -0
- package/dist/uuid/v1.d.cts +25 -0
- package/dist/uuid/v1.d.mts +25 -0
- package/dist/uuid/v1.d.ts +25 -0
- package/dist/uuid/v1.mjs +38 -0
- package/dist/uuid/v4.cjs +41 -0
- package/dist/uuid/v4.d.cts +25 -0
- package/dist/uuid/v4.d.mts +25 -0
- package/dist/uuid/v4.d.ts +25 -0
- package/dist/uuid/v4.mjs +38 -0
- package/package.json +126 -0
@@ -0,0 +1,66 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
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
|
+
class CastAttribute {
|
8
|
+
/**
|
9
|
+
* Create a new Attribute instance.
|
10
|
+
*/
|
11
|
+
constructor(attributes) {
|
12
|
+
/**
|
13
|
+
* Default parameters
|
14
|
+
*/
|
15
|
+
__publicField(this, "$parameters", {});
|
16
|
+
this.$self().attributes = attributes;
|
17
|
+
this.$parameters = {
|
18
|
+
...this.$parameters,
|
19
|
+
...this.$self().parameters
|
20
|
+
};
|
21
|
+
}
|
22
|
+
/**
|
23
|
+
* Get the value for return.
|
24
|
+
*/
|
25
|
+
get(value) {
|
26
|
+
return value;
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Set the value for the store.
|
30
|
+
*/
|
31
|
+
set(value) {
|
32
|
+
return value;
|
33
|
+
}
|
34
|
+
static withParameters(parameters) {
|
35
|
+
this.parameters = parameters;
|
36
|
+
return this;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* Get the cast parameters
|
40
|
+
*/
|
41
|
+
getParameters() {
|
42
|
+
return this.$parameters;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* Get the constructor for this cast.
|
46
|
+
*/
|
47
|
+
$self() {
|
48
|
+
return this.constructor;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* Generate new instance of cast
|
52
|
+
*/
|
53
|
+
static newRawInstance(attributes) {
|
54
|
+
return new this(attributes);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* The model instance.
|
59
|
+
*/
|
60
|
+
__publicField(CastAttribute, "attributes");
|
61
|
+
/**
|
62
|
+
* Cast parameters
|
63
|
+
*/
|
64
|
+
__publicField(CastAttribute, "parameters");
|
65
|
+
|
66
|
+
export { CastAttribute as C };
|