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