@nymphjs/tilmeld-setup 1.0.0-beta.130 → 1.0.0-beta.131
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/CHANGELOG.md +4 -0
- package/dist/app/index.js +119 -102
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.131](https://forge.sciactive.com/sciactive/nymphjs/compare/v1.0.0-beta.130...v1.0.0-beta.131) (2026-10-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @nymphjs/tilmeld-setup
|
|
9
|
+
|
|
6
10
|
# [1.0.0-beta.130](https://forge.sciactive.com/sciactive/nymphjs/compare/v1.0.0-beta.129...v1.0.0-beta.130) (2026-10-09)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @nymphjs/tilmeld-setup
|
package/dist/app/index.js
CHANGED
|
@@ -22534,16 +22534,14 @@
|
|
|
22534
22534
|
this.$nymph = this.constructor.nymph;
|
|
22535
22535
|
this.$dataHandler = {
|
|
22536
22536
|
has: (data, name) => {
|
|
22537
|
-
if (typeof name !== 'symbol'
|
|
22538
|
-
|
|
22539
|
-
return false;
|
|
22537
|
+
if (typeof name !== 'symbol') {
|
|
22538
|
+
this.$check();
|
|
22540
22539
|
}
|
|
22541
22540
|
return name in data;
|
|
22542
22541
|
},
|
|
22543
22542
|
get: (data, name) => {
|
|
22544
|
-
if (typeof name !== 'symbol'
|
|
22545
|
-
|
|
22546
|
-
return undefined;
|
|
22543
|
+
if (typeof name !== 'symbol') {
|
|
22544
|
+
this.$check();
|
|
22547
22545
|
}
|
|
22548
22546
|
if (data.hasOwnProperty(name)) {
|
|
22549
22547
|
return data[name];
|
|
@@ -22551,9 +22549,8 @@
|
|
|
22551
22549
|
return undefined;
|
|
22552
22550
|
},
|
|
22553
22551
|
set: (data, name, value) => {
|
|
22554
|
-
if (typeof name !== 'symbol'
|
|
22555
|
-
|
|
22556
|
-
return false;
|
|
22552
|
+
if (typeof name !== 'symbol') {
|
|
22553
|
+
this.$check();
|
|
22557
22554
|
}
|
|
22558
22555
|
if (typeof name !== 'symbol') {
|
|
22559
22556
|
this.$dirty[name] = true;
|
|
@@ -22562,9 +22559,8 @@
|
|
|
22562
22559
|
return true;
|
|
22563
22560
|
},
|
|
22564
22561
|
deleteProperty: (data, name) => {
|
|
22565
|
-
if (typeof name !== 'symbol'
|
|
22566
|
-
|
|
22567
|
-
return false;
|
|
22562
|
+
if (typeof name !== 'symbol') {
|
|
22563
|
+
this.$check();
|
|
22568
22564
|
}
|
|
22569
22565
|
if (data.hasOwnProperty(name)) {
|
|
22570
22566
|
this.$dirty[name] = true;
|
|
@@ -22573,9 +22569,8 @@
|
|
|
22573
22569
|
return true;
|
|
22574
22570
|
},
|
|
22575
22571
|
defineProperty: (data, name, descriptor) => {
|
|
22576
|
-
if (typeof name !== 'symbol'
|
|
22577
|
-
|
|
22578
|
-
return false;
|
|
22572
|
+
if (typeof name !== 'symbol') {
|
|
22573
|
+
this.$check();
|
|
22579
22574
|
}
|
|
22580
22575
|
if (typeof name !== 'symbol') {
|
|
22581
22576
|
this.$dirty[name] = true;
|
|
@@ -22584,90 +22579,112 @@
|
|
|
22584
22579
|
return true;
|
|
22585
22580
|
},
|
|
22586
22581
|
getOwnPropertyDescriptor: (data, name) => {
|
|
22587
|
-
if (typeof name !== 'symbol'
|
|
22588
|
-
|
|
22589
|
-
return undefined;
|
|
22582
|
+
if (typeof name !== 'symbol') {
|
|
22583
|
+
this.$check();
|
|
22590
22584
|
}
|
|
22591
22585
|
return Object.getOwnPropertyDescriptor(data, name);
|
|
22592
22586
|
},
|
|
22593
22587
|
ownKeys: (data) => {
|
|
22594
|
-
|
|
22595
|
-
console.error(`Tried to enumerate data on a sleeping reference.`);
|
|
22596
|
-
return undefined;
|
|
22597
|
-
}
|
|
22588
|
+
this.$check();
|
|
22598
22589
|
return Object.getOwnPropertyNames(data);
|
|
22599
22590
|
},
|
|
22600
22591
|
};
|
|
22601
22592
|
this.$dataStore = {};
|
|
22602
22593
|
this.$data = new Proxy(this.$dataStore, this.$dataHandler);
|
|
22603
|
-
return
|
|
22604
|
-
|
|
22605
|
-
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
22609
|
-
|
|
22610
|
-
|
|
22611
|
-
|
|
22612
|
-
|
|
22613
|
-
|
|
22614
|
-
|
|
22615
|
-
|
|
22616
|
-
return entity
|
|
22617
|
-
}
|
|
22618
|
-
|
|
22619
|
-
|
|
22620
|
-
|
|
22621
|
-
|
|
22622
|
-
|
|
22623
|
-
|
|
22624
|
-
|
|
22625
|
-
|
|
22626
|
-
|
|
22627
|
-
|
|
22628
|
-
|
|
22629
|
-
|
|
22630
|
-
|
|
22631
|
-
|
|
22632
|
-
|
|
22633
|
-
|
|
22634
|
-
|
|
22635
|
-
|
|
22636
|
-
|
|
22637
|
-
|
|
22638
|
-
|
|
22639
|
-
|
|
22640
|
-
|
|
22641
|
-
|
|
22642
|
-
|
|
22643
|
-
|
|
22644
|
-
|
|
22645
|
-
|
|
22646
|
-
|
|
22647
|
-
|
|
22648
|
-
|
|
22649
|
-
name
|
|
22650
|
-
|
|
22651
|
-
|
|
22652
|
-
|
|
22653
|
-
|
|
22654
|
-
|
|
22655
|
-
|
|
22656
|
-
|
|
22657
|
-
|
|
22658
|
-
|
|
22659
|
-
|
|
22660
|
-
|
|
22661
|
-
|
|
22662
|
-
|
|
22663
|
-
|
|
22664
|
-
|
|
22665
|
-
|
|
22666
|
-
|
|
22667
|
-
|
|
22668
|
-
|
|
22669
|
-
|
|
22670
|
-
|
|
22594
|
+
return this.$proxy();
|
|
22595
|
+
}
|
|
22596
|
+
$existingProxy;
|
|
22597
|
+
$proxy() {
|
|
22598
|
+
if (this.$existingProxy == null) {
|
|
22599
|
+
this.$existingProxy = new Proxy(this, {
|
|
22600
|
+
has: (entity, name) => {
|
|
22601
|
+
if (typeof name !== 'string' ||
|
|
22602
|
+
name in entity ||
|
|
22603
|
+
name.substring(0, 1) === '$') {
|
|
22604
|
+
return name in entity;
|
|
22605
|
+
}
|
|
22606
|
+
this.$check();
|
|
22607
|
+
return name in entity.$data;
|
|
22608
|
+
},
|
|
22609
|
+
get: (entity, name) => {
|
|
22610
|
+
if (typeof name !== 'string' ||
|
|
22611
|
+
name in entity ||
|
|
22612
|
+
name.substring(0, 1) === '$') {
|
|
22613
|
+
if (name === 'tags' || name === 'cdate' || name === 'mdate') {
|
|
22614
|
+
this.$check();
|
|
22615
|
+
}
|
|
22616
|
+
return entity[name];
|
|
22617
|
+
}
|
|
22618
|
+
this.$check();
|
|
22619
|
+
if (name in entity.$data) {
|
|
22620
|
+
return entity.$data[name];
|
|
22621
|
+
}
|
|
22622
|
+
return undefined;
|
|
22623
|
+
},
|
|
22624
|
+
set: (entity, name, value) => {
|
|
22625
|
+
if (typeof name !== 'string' ||
|
|
22626
|
+
name in entity ||
|
|
22627
|
+
name.substring(0, 1) === '$') {
|
|
22628
|
+
if (name === 'tags' || name === 'cdate' || name === 'mdate') {
|
|
22629
|
+
this.$check();
|
|
22630
|
+
}
|
|
22631
|
+
entity[name] = value;
|
|
22632
|
+
}
|
|
22633
|
+
else {
|
|
22634
|
+
this.$check();
|
|
22635
|
+
entity.$data[name] = value;
|
|
22636
|
+
}
|
|
22637
|
+
return true;
|
|
22638
|
+
},
|
|
22639
|
+
deleteProperty: (entity, name) => {
|
|
22640
|
+
if (name in entity) {
|
|
22641
|
+
return delete entity[name];
|
|
22642
|
+
}
|
|
22643
|
+
else if (name in entity.$data) {
|
|
22644
|
+
this.$check();
|
|
22645
|
+
return delete entity.$data[name];
|
|
22646
|
+
}
|
|
22647
|
+
return true;
|
|
22648
|
+
},
|
|
22649
|
+
getPrototypeOf: (entity) => {
|
|
22650
|
+
return entity.constructor.prototype;
|
|
22651
|
+
},
|
|
22652
|
+
defineProperty: (entity, name, descriptor) => {
|
|
22653
|
+
if (typeof name !== 'string' ||
|
|
22654
|
+
name in entity ||
|
|
22655
|
+
name.substring(0, 1) === '$') {
|
|
22656
|
+
if (name === 'tags' || name === 'cdate' || name === 'mdate') {
|
|
22657
|
+
this.$check();
|
|
22658
|
+
}
|
|
22659
|
+
Object.defineProperty(entity, name, descriptor);
|
|
22660
|
+
}
|
|
22661
|
+
else {
|
|
22662
|
+
this.$check();
|
|
22663
|
+
Object.defineProperty(entity.$data, name, descriptor);
|
|
22664
|
+
}
|
|
22665
|
+
return true;
|
|
22666
|
+
},
|
|
22667
|
+
getOwnPropertyDescriptor: (entity, name) => {
|
|
22668
|
+
if (typeof name !== 'string' ||
|
|
22669
|
+
name in entity ||
|
|
22670
|
+
name.substring(0, 1) === '$') {
|
|
22671
|
+
if (name === 'tags' || name === 'cdate' || name === 'mdate') {
|
|
22672
|
+
this.$check();
|
|
22673
|
+
}
|
|
22674
|
+
return Object.getOwnPropertyDescriptor(entity, name);
|
|
22675
|
+
}
|
|
22676
|
+
else {
|
|
22677
|
+
this.$check();
|
|
22678
|
+
return Object.getOwnPropertyDescriptor(entity.$data, name);
|
|
22679
|
+
}
|
|
22680
|
+
},
|
|
22681
|
+
ownKeys: (entity) => {
|
|
22682
|
+
this.$check();
|
|
22683
|
+
return Object.getOwnPropertyNames(entity).concat(Object.getOwnPropertyNames(entity.$data));
|
|
22684
|
+
},
|
|
22685
|
+
});
|
|
22686
|
+
}
|
|
22687
|
+
return this.$existingProxy;
|
|
22671
22688
|
}
|
|
22672
22689
|
/**
|
|
22673
22690
|
* Create or retrieve a new entity instance.
|
|
@@ -22765,7 +22782,7 @@
|
|
|
22765
22782
|
}
|
|
22766
22783
|
$init(entityJson) {
|
|
22767
22784
|
if (entityJson == null) {
|
|
22768
|
-
return this;
|
|
22785
|
+
return this.$proxy();
|
|
22769
22786
|
}
|
|
22770
22787
|
this.$isASleepingReference = false;
|
|
22771
22788
|
this.$sleepingReference = null;
|
|
@@ -22786,7 +22803,7 @@
|
|
|
22786
22803
|
.reduce((obj, { key, value }) => Object.assign(obj, { [key]: value }), {});
|
|
22787
22804
|
this.$data = new Proxy(this.$dataStore, this.$dataHandler);
|
|
22788
22805
|
this.$nymph.setEntityToCache(this.constructor, this);
|
|
22789
|
-
return this;
|
|
22806
|
+
return this.$proxy();
|
|
22790
22807
|
}
|
|
22791
22808
|
$addTag(...tags) {
|
|
22792
22809
|
this.$check();
|
|
@@ -22916,7 +22933,7 @@
|
|
|
22916
22933
|
* Check if this is a sleeping reference and throw an error if so.
|
|
22917
22934
|
*/
|
|
22918
22935
|
$check() {
|
|
22919
|
-
if (this.$
|
|
22936
|
+
if (this.$asleep()) {
|
|
22920
22937
|
throw new EntityIsSleepingReferenceError('This entity is in a sleeping reference state. You must use .$wake() to wake it.');
|
|
22921
22938
|
}
|
|
22922
22939
|
}
|
|
@@ -22930,9 +22947,9 @@
|
|
|
22930
22947
|
* Wake from a sleeping reference.
|
|
22931
22948
|
*/
|
|
22932
22949
|
$wake() {
|
|
22933
|
-
if (!this.$
|
|
22950
|
+
if (!this.$asleep()) {
|
|
22934
22951
|
this.$wakePromise = null;
|
|
22935
|
-
return Promise.resolve(this);
|
|
22952
|
+
return Promise.resolve(this.$proxy());
|
|
22936
22953
|
}
|
|
22937
22954
|
if (this.$sleepingReference?.[1] == null) {
|
|
22938
22955
|
throw new InvalidStateError('Tried to wake a sleeping reference with no GUID.');
|
|
@@ -22964,7 +22981,7 @@
|
|
|
22964
22981
|
newLevel = level - 1;
|
|
22965
22982
|
}
|
|
22966
22983
|
if (newLevel !== undefined && newLevel < 0) {
|
|
22967
|
-
resolve(this);
|
|
22984
|
+
resolve(this.$proxy());
|
|
22968
22985
|
return;
|
|
22969
22986
|
}
|
|
22970
22987
|
const promises = [];
|
|
@@ -22999,13 +23016,13 @@
|
|
|
22999
23016
|
};
|
|
23000
23017
|
walkData(this.$data);
|
|
23001
23018
|
if (promises.length) {
|
|
23002
|
-
Promise.all(promises).then(() => resolve(this), (errObj) => reject(errObj));
|
|
23019
|
+
Promise.all(promises).then(() => resolve(this.$proxy()), (errObj) => reject(errObj));
|
|
23003
23020
|
}
|
|
23004
23021
|
else {
|
|
23005
|
-
resolve(this);
|
|
23022
|
+
resolve(this.$proxy());
|
|
23006
23023
|
}
|
|
23007
23024
|
};
|
|
23008
|
-
if (this.$
|
|
23025
|
+
if (this.$asleep()) {
|
|
23009
23026
|
this.$wake().then(wakeProps, (errObj) => reject(errObj));
|
|
23010
23027
|
}
|
|
23011
23028
|
else {
|
|
@@ -23019,7 +23036,7 @@
|
|
|
23019
23036
|
this.$sleepingReference = [...reference];
|
|
23020
23037
|
}
|
|
23021
23038
|
async $refresh() {
|
|
23022
|
-
if (this.$
|
|
23039
|
+
if (this.$asleep()) {
|
|
23023
23040
|
await this.$wake();
|
|
23024
23041
|
return true;
|
|
23025
23042
|
}
|
|
@@ -23061,11 +23078,11 @@
|
|
|
23061
23078
|
return data.return;
|
|
23062
23079
|
}
|
|
23063
23080
|
$toReference() {
|
|
23064
|
-
if (this.$isASleepingReference && this.$sleepingReference) {
|
|
23081
|
+
if (this.$isASleepingReference && this.$sleepingReference != null) {
|
|
23065
23082
|
return this.$sleepingReference;
|
|
23066
23083
|
}
|
|
23067
23084
|
if (this.guid == null) {
|
|
23068
|
-
return this;
|
|
23085
|
+
return this.$proxy();
|
|
23069
23086
|
}
|
|
23070
23087
|
return [
|
|
23071
23088
|
'nymph_entity_reference',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nymphjs/tilmeld-setup",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.131",
|
|
4
4
|
"description": "Nymph.js - Tilmeld Setup App",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
},
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nymphjs/nymph": "^1.0.0-beta.
|
|
45
|
-
"@nymphjs/tilmeld": "^1.0.0-beta.
|
|
44
|
+
"@nymphjs/nymph": "^1.0.0-beta.131",
|
|
45
|
+
"@nymphjs/tilmeld": "^1.0.0-beta.131",
|
|
46
46
|
"express": "^5.2.1",
|
|
47
47
|
"locutus": "^3.0.36"
|
|
48
48
|
},
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@material/elevation": "^14.0.0",
|
|
51
51
|
"@material/typography": "^14.0.0",
|
|
52
52
|
"@mdi/js": "^7.4.47",
|
|
53
|
-
"@nymphjs/client": "^1.0.0-beta.
|
|
54
|
-
"@nymphjs/driver-sqlite3": "^1.0.0-beta.
|
|
55
|
-
"@nymphjs/query-parser": "^1.0.0-beta.
|
|
56
|
-
"@nymphjs/server": "^1.0.0-beta.
|
|
57
|
-
"@nymphjs/tilmeld-client": "^1.0.0-beta.
|
|
58
|
-
"@nymphjs/tilmeld-components": "^1.0.0-beta.
|
|
53
|
+
"@nymphjs/client": "^1.0.0-beta.131",
|
|
54
|
+
"@nymphjs/driver-sqlite3": "^1.0.0-beta.131",
|
|
55
|
+
"@nymphjs/query-parser": "^1.0.0-beta.131",
|
|
56
|
+
"@nymphjs/server": "^1.0.0-beta.131",
|
|
57
|
+
"@nymphjs/tilmeld-client": "^1.0.0-beta.131",
|
|
58
|
+
"@nymphjs/tilmeld-components": "^1.0.0-beta.131",
|
|
59
59
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
60
60
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
61
61
|
"@rollup/plugin-sucrase": "^5.1.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"tslib": "^2.8.1",
|
|
99
99
|
"typescript": "^7.0.2"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "35a54445bf163d6b9dcead02d89de929fc5f7d26"
|
|
102
102
|
}
|