@fieldia/core 0.16.0 → 0.18.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fieldia/core",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Headless form model for Fieldia: the page format, modifiers, validation and record state. No DOM.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://fieldia.dev",
@@ -7141,6 +7141,25 @@
7141
7141
  "minimum": 160,
7142
7142
  "maximum": 1200
7143
7143
  },
7144
+ "tools": {
7145
+ "type": "array",
7146
+ "items": {
7147
+ "type": "string",
7148
+ "enum": [
7149
+ "satellite",
7150
+ "traffic",
7151
+ "fullscreen",
7152
+ "measure"
7153
+ ]
7154
+ }
7155
+ },
7156
+ "fences": {
7157
+ "minItems": 1,
7158
+ "type": "array",
7159
+ "items": {
7160
+ "$ref": "#/$defs/MapFence"
7161
+ }
7162
+ },
7144
7163
  "colspan": {
7145
7164
  "type": "integer",
7146
7165
  "minimum": 1,
@@ -7219,6 +7238,42 @@
7219
7238
  "myLocation": {
7220
7239
  "type": "boolean"
7221
7240
  },
7241
+ "regions": {
7242
+ "type": "object",
7243
+ "properties": {
7244
+ "from": {
7245
+ "type": "string",
7246
+ "minLength": 1
7247
+ },
7248
+ "key": {
7249
+ "type": "string",
7250
+ "minLength": 1
7251
+ },
7252
+ "name": {
7253
+ "type": "string",
7254
+ "minLength": 1
7255
+ },
7256
+ "shade": {
7257
+ "type": "string",
7258
+ "minLength": 1
7259
+ },
7260
+ "legend": {
7261
+ "type": "boolean"
7262
+ },
7263
+ "choose": {
7264
+ "type": "string",
7265
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7266
+ }
7267
+ },
7268
+ "required": [
7269
+ "from",
7270
+ "key"
7271
+ ],
7272
+ "additionalProperties": false
7273
+ },
7274
+ "reachable": {
7275
+ "$ref": "#/$defs/MapReach"
7276
+ },
7222
7277
  "invisible": {
7223
7278
  "$ref": "#/$defs/Modifier"
7224
7279
  }
@@ -7350,6 +7405,70 @@
7350
7405
  ],
7351
7406
  "additionalProperties": false
7352
7407
  },
7408
+ "MapReach": {
7409
+ "type": "object",
7410
+ "properties": {
7411
+ "from": {
7412
+ "type": "string",
7413
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7414
+ },
7415
+ "minutes": {
7416
+ "type": "number",
7417
+ "exclusiveMinimum": 0,
7418
+ "maximum": 120
7419
+ },
7420
+ "mode": {
7421
+ "type": "string",
7422
+ "enum": [
7423
+ "car",
7424
+ "bike",
7425
+ "foot"
7426
+ ]
7427
+ }
7428
+ },
7429
+ "required": [
7430
+ "from",
7431
+ "minutes"
7432
+ ],
7433
+ "additionalProperties": false
7434
+ },
7435
+ "MapFence": {
7436
+ "type": "object",
7437
+ "properties": {
7438
+ "layer": {
7439
+ "type": "string",
7440
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7441
+ },
7442
+ "area": {
7443
+ "type": "string",
7444
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7445
+ },
7446
+ "within": {
7447
+ "type": "string",
7448
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7449
+ },
7450
+ "when": {
7451
+ "type": "string",
7452
+ "enum": [
7453
+ "enter",
7454
+ "leave"
7455
+ ]
7456
+ },
7457
+ "steps": {
7458
+ "minItems": 1,
7459
+ "type": "array",
7460
+ "items": {
7461
+ "$ref": "#/$defs/ActionStep"
7462
+ }
7463
+ }
7464
+ },
7465
+ "required": [
7466
+ "layer",
7467
+ "when",
7468
+ "steps"
7469
+ ],
7470
+ "additionalProperties": false
7471
+ },
7353
7472
  "HelpShown": {
7354
7473
  "type": "string",
7355
7474
  "enum": [
@@ -7905,6 +8024,70 @@
7905
8024
  "type": "integer",
7906
8025
  "minimum": 1,
7907
8026
  "maximum": 5000
8027
+ },
8028
+ "tools": {
8029
+ "type": "array",
8030
+ "items": {
8031
+ "type": "string",
8032
+ "enum": [
8033
+ "satellite",
8034
+ "traffic",
8035
+ "fullscreen",
8036
+ "measure",
8037
+ "nearest"
8038
+ ]
8039
+ }
8040
+ },
8041
+ "regions": {
8042
+ "type": "object",
8043
+ "properties": {
8044
+ "from": {
8045
+ "type": "string",
8046
+ "minLength": 1
8047
+ },
8048
+ "key": {
8049
+ "type": "string",
8050
+ "minLength": 1
8051
+ },
8052
+ "name": {
8053
+ "type": "string",
8054
+ "minLength": 1
8055
+ },
8056
+ "shade": {
8057
+ "type": "string",
8058
+ "minLength": 1
8059
+ },
8060
+ "legend": {
8061
+ "type": "boolean"
8062
+ },
8063
+ "field": {
8064
+ "type": "string",
8065
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
8066
+ }
8067
+ },
8068
+ "required": [
8069
+ "from",
8070
+ "key",
8071
+ "field"
8072
+ ],
8073
+ "additionalProperties": false
8074
+ },
8075
+ "heat": {
8076
+ "anyOf": [
8077
+ {
8078
+ "type": "boolean"
8079
+ },
8080
+ {
8081
+ "type": "object",
8082
+ "properties": {
8083
+ "weight": {
8084
+ "type": "string",
8085
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
8086
+ }
8087
+ },
8088
+ "additionalProperties": false
8089
+ }
8090
+ ]
7908
8091
  }
7909
8092
  },
7910
8093
  "additionalProperties": false