@itrocks/framework 1.3.0 → 1.4.1
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/README.md +5 -0
- package/cjs/sql-relationships.js +12 -6
- package/fr-FR.csv +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -323,3 +323,8 @@ The list HTML includes authorised selector metadata, advice, template and sessio
|
|
|
323
323
|
additional application requests.
|
|
324
324
|
A stable configured `session.secret` is needed to recognise existing cookies after a server restart.
|
|
325
325
|
See [property selector integration](docs/property-select.md) for route-backed metadata and access.
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
Ordinary object collections without an explicit relation cardinality use the storage link-table convention in SQL
|
|
329
|
+
criteria, including filters through a collection's representative properties. Component collections retain their
|
|
330
|
+
inverse foreign-key mapping. Explicit relation metadata and schema mappings take precedence.
|
package/cjs/sql-relationships.js
CHANGED
|
@@ -78,7 +78,10 @@ function relationshipOf(table, column, property) {
|
|
|
78
78
|
throw new sql_join_1.RelationshipError('unsupported-relationship', column);
|
|
79
79
|
inverse = candidates[0];
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
const conventionalCollection = (fact.cardinality === 'unknown')
|
|
82
|
+
&& (multiplicity === 'many')
|
|
83
|
+
&& !(0, composition_1.componentOf)(table, column);
|
|
84
|
+
if (!mapping && ((fact.cardinality === 'many-to-many') || conventionalCollection)) {
|
|
82
85
|
const left = (0, sql_join_dependencies_8.tableOf)(table);
|
|
83
86
|
const right = (0, sql_join_dependencies_8.tableOf)(target);
|
|
84
87
|
if ((left === right) || ((0, rename_1.toColumn)(left) === (0, rename_1.toColumn)(right))) {
|
|
@@ -107,11 +110,14 @@ function relationshipOf(table, column, property) {
|
|
|
107
110
|
}
|
|
108
111
|
}
|
|
109
112
|
let cardinality = fact.cardinality;
|
|
110
|
-
if (
|
|
111
|
-
if (
|
|
112
|
-
cardinality = (
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
if (cardinality === 'unknown') {
|
|
114
|
+
if (multiplicity === 'many') {
|
|
115
|
+
cardinality = (0, composition_1.componentOf)(table, column) ? 'one-to-many' : 'many-to-many';
|
|
116
|
+
}
|
|
117
|
+
else if (multiplicity === 'one') {
|
|
118
|
+
const owned = (0, composition_1.componentOf)(table, column)
|
|
119
|
+
|| ((0, composition_2.compositeOf)(table, column) && (inverse?.relation?.targetMultiplicity === 'one'));
|
|
120
|
+
cardinality = owned ? 'one-to-one' : 'many-to-one';
|
|
115
121
|
}
|
|
116
122
|
}
|
|
117
123
|
return {
|
package/fr-FR.csv
CHANGED
|
@@ -58,12 +58,13 @@ please enter your new password;veuillez entrer votre nouveau mot de passe
|
|
|
58
58
|
please try again later or contact our support team if the issue persists;veuillez réessayer ultérieurement ou contacter notre équipe de support si le problème persiste
|
|
59
59
|
please wait for an administrator to activate it;veuillez attendre qu'un administrateur l'active
|
|
60
60
|
print;imprimer
|
|
61
|
-
reset search filters;
|
|
61
|
+
reset search filters;réinitialiser les filtres de recherche
|
|
62
62
|
sign up;s'inscrire
|
|
63
63
|
sign-up error;erreur pendant l'inscription
|
|
64
64
|
reset;réinitialiser
|
|
65
65
|
save;enregistrer
|
|
66
66
|
save $1;enregistrer $1
|
|
67
|
+
search;rechercher
|
|
67
68
|
send;envoyer
|
|
68
69
|
this is the $1 I love;c'est le $1 que j'aime
|
|
69
70
|
true;vrai
|
package/package.json
CHANGED