@fieldia/core 0.15.0 → 0.16.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.15.0",
3
+ "version": "0.16.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",
@@ -6902,6 +6902,9 @@
6902
6902
  "name"
6903
6903
  ],
6904
6904
  "additionalProperties": false
6905
+ },
6906
+ {
6907
+ "$ref": "#/$defs/MapNode"
6905
6908
  }
6906
6909
  ]
6907
6910
  },
@@ -7112,6 +7115,241 @@
7112
7115
  ],
7113
7116
  "additionalProperties": false
7114
7117
  },
7118
+ "MapNode": {
7119
+ "type": "object",
7120
+ "properties": {
7121
+ "type": {
7122
+ "type": "string",
7123
+ "const": "map"
7124
+ },
7125
+ "id": {
7126
+ "type": "string",
7127
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7128
+ },
7129
+ "label": {
7130
+ "type": "string"
7131
+ },
7132
+ "layers": {
7133
+ "minItems": 1,
7134
+ "type": "array",
7135
+ "items": {
7136
+ "$ref": "#/$defs/MapLayer"
7137
+ }
7138
+ },
7139
+ "height": {
7140
+ "type": "integer",
7141
+ "minimum": 160,
7142
+ "maximum": 1200
7143
+ },
7144
+ "colspan": {
7145
+ "type": "integer",
7146
+ "minimum": 1,
7147
+ "maximum": 12
7148
+ },
7149
+ "invisible": {
7150
+ "$ref": "#/$defs/Modifier"
7151
+ },
7152
+ "roles": {
7153
+ "$ref": "#/$defs/Roles"
7154
+ },
7155
+ "hideOn": {
7156
+ "minItems": 1,
7157
+ "type": "array",
7158
+ "items": {
7159
+ "$ref": "#/$defs/ScreenWidth"
7160
+ }
7161
+ }
7162
+ },
7163
+ "required": [
7164
+ "type",
7165
+ "id",
7166
+ "layers"
7167
+ ],
7168
+ "additionalProperties": false
7169
+ },
7170
+ "MapLayer": {
7171
+ "type": "object",
7172
+ "properties": {
7173
+ "id": {
7174
+ "type": "string",
7175
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7176
+ },
7177
+ "label": {
7178
+ "type": "string"
7179
+ },
7180
+ "point": {
7181
+ "type": "string",
7182
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7183
+ },
7184
+ "latitude": {
7185
+ "type": "string",
7186
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7187
+ },
7188
+ "longitude": {
7189
+ "type": "string",
7190
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7191
+ },
7192
+ "lines": {
7193
+ "type": "string",
7194
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7195
+ },
7196
+ "pin": {
7197
+ "$ref": "#/$defs/Pin"
7198
+ },
7199
+ "card": {
7200
+ "$ref": "#/$defs/MapCard"
7201
+ },
7202
+ "live": {
7203
+ "type": "object",
7204
+ "properties": {
7205
+ "staleAfter": {
7206
+ "type": "integer",
7207
+ "minimum": 5,
7208
+ "maximum": 86400
7209
+ },
7210
+ "follow": {
7211
+ "type": "boolean"
7212
+ }
7213
+ },
7214
+ "additionalProperties": false
7215
+ },
7216
+ "route": {
7217
+ "$ref": "#/$defs/MapRoute"
7218
+ },
7219
+ "myLocation": {
7220
+ "type": "boolean"
7221
+ },
7222
+ "invisible": {
7223
+ "$ref": "#/$defs/Modifier"
7224
+ }
7225
+ },
7226
+ "required": [
7227
+ "id"
7228
+ ],
7229
+ "additionalProperties": false
7230
+ },
7231
+ "Pin": {
7232
+ "type": "object",
7233
+ "properties": {
7234
+ "look": {
7235
+ "type": "string",
7236
+ "enum": [
7237
+ "pin",
7238
+ "icon",
7239
+ "photo",
7240
+ "label",
7241
+ "dot"
7242
+ ]
7243
+ },
7244
+ "icon": {
7245
+ "type": "string",
7246
+ "minLength": 1
7247
+ },
7248
+ "iconField": {
7249
+ "type": "string",
7250
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7251
+ },
7252
+ "image": {
7253
+ "type": "string",
7254
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7255
+ },
7256
+ "label": {
7257
+ "type": "string",
7258
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7259
+ },
7260
+ "tones": {
7261
+ "minItems": 1,
7262
+ "type": "array",
7263
+ "items": {
7264
+ "$ref": "#/$defs/ToneWhen"
7265
+ }
7266
+ },
7267
+ "turn": {
7268
+ "type": "string",
7269
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7270
+ },
7271
+ "widget": {
7272
+ "type": "string",
7273
+ "minLength": 1
7274
+ }
7275
+ },
7276
+ "additionalProperties": false
7277
+ },
7278
+ "MapCard": {
7279
+ "type": "object",
7280
+ "properties": {
7281
+ "title": {
7282
+ "type": "string",
7283
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7284
+ },
7285
+ "image": {
7286
+ "type": "string",
7287
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7288
+ },
7289
+ "fields": {
7290
+ "minItems": 1,
7291
+ "type": "array",
7292
+ "items": {
7293
+ "type": "string",
7294
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7295
+ }
7296
+ },
7297
+ "open": {
7298
+ "type": "boolean"
7299
+ }
7300
+ },
7301
+ "additionalProperties": false
7302
+ },
7303
+ "MapRoute": {
7304
+ "type": "object",
7305
+ "properties": {
7306
+ "from": {
7307
+ "type": "string",
7308
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7309
+ },
7310
+ "to": {
7311
+ "type": "string",
7312
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7313
+ },
7314
+ "through": {
7315
+ "type": "string",
7316
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
7317
+ },
7318
+ "mode": {
7319
+ "type": "string",
7320
+ "enum": [
7321
+ "car",
7322
+ "bike",
7323
+ "foot"
7324
+ ]
7325
+ },
7326
+ "progress": {
7327
+ "type": "boolean"
7328
+ },
7329
+ "write": {
7330
+ "type": "object",
7331
+ "properties": {
7332
+ "seconds": {
7333
+ "type": "string",
7334
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7335
+ },
7336
+ "metres": {
7337
+ "type": "string",
7338
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7339
+ },
7340
+ "line": {
7341
+ "type": "string",
7342
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7343
+ }
7344
+ },
7345
+ "additionalProperties": false
7346
+ }
7347
+ },
7348
+ "required": [
7349
+ "from"
7350
+ ],
7351
+ "additionalProperties": false
7352
+ },
7115
7353
  "HelpShown": {
7116
7354
  "type": "string",
7117
7355
  "enum": [
@@ -7671,78 +7909,6 @@
7671
7909
  },
7672
7910
  "additionalProperties": false
7673
7911
  },
7674
- "Pin": {
7675
- "type": "object",
7676
- "properties": {
7677
- "look": {
7678
- "type": "string",
7679
- "enum": [
7680
- "pin",
7681
- "icon",
7682
- "photo",
7683
- "label",
7684
- "dot"
7685
- ]
7686
- },
7687
- "icon": {
7688
- "type": "string",
7689
- "minLength": 1
7690
- },
7691
- "iconField": {
7692
- "type": "string",
7693
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7694
- },
7695
- "image": {
7696
- "type": "string",
7697
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7698
- },
7699
- "label": {
7700
- "type": "string",
7701
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7702
- },
7703
- "tones": {
7704
- "minItems": 1,
7705
- "type": "array",
7706
- "items": {
7707
- "$ref": "#/$defs/ToneWhen"
7708
- }
7709
- },
7710
- "turn": {
7711
- "type": "string",
7712
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7713
- },
7714
- "widget": {
7715
- "type": "string",
7716
- "minLength": 1
7717
- }
7718
- },
7719
- "additionalProperties": false
7720
- },
7721
- "MapCard": {
7722
- "type": "object",
7723
- "properties": {
7724
- "title": {
7725
- "type": "string",
7726
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7727
- },
7728
- "image": {
7729
- "type": "string",
7730
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7731
- },
7732
- "fields": {
7733
- "minItems": 1,
7734
- "type": "array",
7735
- "items": {
7736
- "type": "string",
7737
- "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
7738
- }
7739
- },
7740
- "open": {
7741
- "type": "boolean"
7742
- }
7743
- },
7744
- "additionalProperties": false
7745
- },
7746
7912
  "PageEvents": {
7747
7913
  "type": "object",
7748
7914
  "properties": {