@opra/common 1.1.1 → 1.2.0
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/browser/index.cjs +1 -1
- package/browser/index.mjs +1 -1
- package/cjs/document/data-type/api-field.js +2 -2
- package/esm/document/data-type/api-field.js +2 -2
- package/package.json +1 -1
- package/types/document/data-type/api-field.d.ts +1 -1
- package/types/schema/data-type/field.interface.d.ts +2 -2
|
@@ -35,7 +35,7 @@ exports.ApiField = function (...args) {
|
|
|
35
35
|
_this.fixed = initArgs.fixed;
|
|
36
36
|
_this.required = initArgs.required;
|
|
37
37
|
_this.exclusive = initArgs.exclusive;
|
|
38
|
-
_this.
|
|
38
|
+
_this.localisation = initArgs.localisation;
|
|
39
39
|
_this.keyField = initArgs.keyField;
|
|
40
40
|
_this.deprecated = initArgs.deprecated;
|
|
41
41
|
_this.readonly = initArgs.readonly;
|
|
@@ -58,7 +58,7 @@ class ApiFieldClass extends document_element_js_1.DocumentElement {
|
|
|
58
58
|
fixed: this.fixed,
|
|
59
59
|
required: this.required || undefined,
|
|
60
60
|
exclusive: this.exclusive || undefined,
|
|
61
|
-
|
|
61
|
+
localisation: this.localisation || undefined,
|
|
62
62
|
keyField: this.keyField || undefined,
|
|
63
63
|
deprecated: this.deprecated || undefined,
|
|
64
64
|
readonly: this.readonly || undefined,
|
|
@@ -32,7 +32,7 @@ export const ApiField = function (...args) {
|
|
|
32
32
|
_this.fixed = initArgs.fixed;
|
|
33
33
|
_this.required = initArgs.required;
|
|
34
34
|
_this.exclusive = initArgs.exclusive;
|
|
35
|
-
_this.
|
|
35
|
+
_this.localisation = initArgs.localisation;
|
|
36
36
|
_this.keyField = initArgs.keyField;
|
|
37
37
|
_this.deprecated = initArgs.deprecated;
|
|
38
38
|
_this.readonly = initArgs.readonly;
|
|
@@ -55,7 +55,7 @@ class ApiFieldClass extends DocumentElement {
|
|
|
55
55
|
fixed: this.fixed,
|
|
56
56
|
required: this.required || undefined,
|
|
57
57
|
exclusive: this.exclusive || undefined,
|
|
58
|
-
|
|
58
|
+
localisation: this.localisation || undefined,
|
|
59
59
|
keyField: this.keyField || undefined,
|
|
60
60
|
deprecated: this.deprecated || undefined,
|
|
61
61
|
readonly: this.readonly || undefined,
|
package/package.json
CHANGED
|
@@ -62,7 +62,7 @@ declare class ApiFieldClass extends DocumentElement {
|
|
|
62
62
|
readonly fixed?: any;
|
|
63
63
|
readonly required?: boolean;
|
|
64
64
|
readonly exclusive?: boolean;
|
|
65
|
-
readonly
|
|
65
|
+
readonly localisation?: boolean;
|
|
66
66
|
readonly keyField?: string;
|
|
67
67
|
readonly deprecated?: boolean | string;
|
|
68
68
|
readonly readonly?: boolean;
|
|
@@ -43,9 +43,9 @@ export type Field = {
|
|
|
43
43
|
*/
|
|
44
44
|
keyField?: string;
|
|
45
45
|
/**
|
|
46
|
-
* If true, this Field is a candidate for
|
|
46
|
+
* If true, this Field is a candidate for localisation
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
localisation?: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Defines example values for the field
|
|
51
51
|
*/
|