@coffer-org/plugin-documents 1.4.1 → 1.4.2
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/dist/person_identity/index.js +1 -0
- package/dist/schema.js +10 -15
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ nationality — ISO alpha-2. variants — given/family name per language (field.
|
|
|
12
12
|
field.keyed({
|
|
13
13
|
key: 'variants',
|
|
14
14
|
label: 'documents.person_identity.fields.variants',
|
|
15
|
+
icon: 'lucide:languages',
|
|
15
16
|
by: field.select({ key: 'lang', label: 'documents.person_identity.variants.lang', options: 'languages' }),
|
|
16
17
|
fields: [
|
|
17
18
|
field.string({ key: 'name', label: 'documents.person_identity.variants.name' }),
|
package/dist/schema.js
CHANGED
|
@@ -5887,7 +5887,7 @@ function group(o) {
|
|
|
5887
5887
|
required: o.required,
|
|
5888
5888
|
unique: r.unique,
|
|
5889
5889
|
label: o.label,
|
|
5890
|
-
icon:
|
|
5890
|
+
icon: o.icon,
|
|
5891
5891
|
display: v.display ?? "wrap",
|
|
5892
5892
|
kind: v.kind,
|
|
5893
5893
|
fixed: r.fixed,
|
|
@@ -5898,11 +5898,9 @@ function group(o) {
|
|
|
5898
5898
|
function row(o) {
|
|
5899
5899
|
return group({
|
|
5900
5900
|
label: o.label,
|
|
5901
|
+
icon: o.icon,
|
|
5901
5902
|
fields: o.fields,
|
|
5902
|
-
view: {
|
|
5903
|
-
...o.view,
|
|
5904
|
-
display: "scroll"
|
|
5905
|
-
}
|
|
5903
|
+
view: { display: "scroll" }
|
|
5906
5904
|
});
|
|
5907
5905
|
}
|
|
5908
5906
|
/** Tabular collection (array of rows → <table>, aligned by columns). Sugar. */
|
|
@@ -5910,14 +5908,12 @@ function table(o) {
|
|
|
5910
5908
|
return group({
|
|
5911
5909
|
key: o.key,
|
|
5912
5910
|
label: o.label,
|
|
5911
|
+
icon: o.icon,
|
|
5913
5912
|
fields: o.fields,
|
|
5914
5913
|
multiple: true,
|
|
5915
5914
|
required: o.required,
|
|
5916
5915
|
rules: o.rules,
|
|
5917
|
-
view: {
|
|
5918
|
-
...o.view,
|
|
5919
|
-
display: "table"
|
|
5920
|
-
}
|
|
5916
|
+
view: { display: "table" }
|
|
5921
5917
|
});
|
|
5922
5918
|
}
|
|
5923
5919
|
/**
|
|
@@ -5933,11 +5929,9 @@ function sheet(o) {
|
|
|
5933
5929
|
});
|
|
5934
5930
|
return group({
|
|
5935
5931
|
label: o.label,
|
|
5932
|
+
icon: o.icon,
|
|
5936
5933
|
fields: flat,
|
|
5937
|
-
view: {
|
|
5938
|
-
...o.view,
|
|
5939
|
-
display: "sheet"
|
|
5940
|
-
}
|
|
5934
|
+
view: { display: "sheet" }
|
|
5941
5935
|
});
|
|
5942
5936
|
}
|
|
5943
5937
|
/**
|
|
@@ -5969,8 +5963,8 @@ function keyed(o) {
|
|
|
5969
5963
|
return {
|
|
5970
5964
|
...(o.container ?? group)({
|
|
5971
5965
|
label: o.label,
|
|
5972
|
-
|
|
5973
|
-
|
|
5966
|
+
icon: o.icon,
|
|
5967
|
+
fields: [o.by, ...o.fields]
|
|
5974
5968
|
}),
|
|
5975
5969
|
key: o.key,
|
|
5976
5970
|
multiple: true,
|
|
@@ -7936,6 +7930,7 @@ nationality — ISO alpha-2. variants — given/family name per language (field.
|
|
|
7936
7930
|
}), field.keyed({
|
|
7937
7931
|
key: "variants",
|
|
7938
7932
|
label: "documents.person_identity.fields.variants",
|
|
7933
|
+
icon: "lucide:languages",
|
|
7939
7934
|
by: field.select({
|
|
7940
7935
|
key: "lang",
|
|
7941
7936
|
label: "documents.person_identity.variants.lang",
|