@modelform/react-native 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.
@@ -2941,6 +2941,10 @@ var dashboard_schema_default = {
2941
2941
  $ref: "#/definitions/DocumentKind",
2942
2942
  description: "Whether this document is a form (for recording entries) or a dashboard (for showing them). Without it, a document with input-* panels counts as a form. See documentKind()."
2943
2943
  },
2944
+ localOnly: {
2945
+ type: "boolean",
2946
+ description: "Forms: keep what this form records on the device where it's recorded. Apps that sync entries (to an account, other devices, a server) must leave these out. Off by default."
2947
+ },
2944
2948
  uid: {
2945
2949
  type: "string"
2946
2950
  },
@@ -3040,7 +3044,7 @@ var dashboard_schema_default = {
3040
3044
  "form",
3041
3045
  "dashboard"
3042
3046
  ],
3043
- description: "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds three extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)"
3047
+ description: "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds four extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `localOnly` to keep a form's entries on the device that records them - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)"
3044
3048
  },
3045
3049
  Panel: {
3046
3050
  type: "object",
@@ -4543,7 +4547,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
4543
4547
  validate12.errors = vErrors;
4544
4548
  return errors === 0;
4545
4549
  }
4546
- var schema18 = { "type": "string", "enum": ["form", "dashboard"], "description": "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds three extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)" };
4550
+ var schema18 = { "type": "string", "enum": ["form", "dashboard"], "description": "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds four extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `localOnly` to keep a form's entries on the device that records them - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)" };
4547
4551
  var schema19 = { "type": "object", "properties": { "id": { "type": "number" }, "type": { "type": "string", "examples": ["row", "timeseries", "trend", "xychart", "stat", "gauge", "bargauge", "piechart", "barchart", "table", "text", "geomap", "input-number", "input-slider", "input-select", "input-toggle", "input-rating", "input-text", "input-counter", "input-duration", "input-group"] }, "title": { "type": "string" }, "description": { "type": "string" }, "gridPos": { "$ref": "#/definitions/GridPos" }, "datasource": { "anyOf": [{ "$ref": "#/definitions/DataSourceRef" }, { "type": "string" }, { "type": "null" }] }, "targets": { "type": "array", "items": { "$ref": "#/definitions/Target" } }, "fieldConfig": { "type": "object", "properties": { "defaults": { "$ref": "#/definitions/FieldConfig" }, "overrides": { "type": "array", "items": { "$ref": "#/definitions/FieldOverride" } } } }, "options": { "type": "object" }, "transformations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "options": { "type": "object" }, "disabled": { "type": "boolean" } }, "required": ["id"] }, "description": "Applied in order to the query results. See transform.ts for the ones modelform implements." }, "collapsed": { "type": "boolean", "description": "Rows only." }, "panels": { "type": "array", "items": { "$ref": "#/definitions/Panel" }, "description": "Rows only: children of a collapsed row live here instead of at the top level." }, "repeat": { "type": "string", "description": "Repeat this row (or panel) once per selected value of the named variable." }, "repeatDirection": { "type": "string", "enum": ["h", "v"], "description": "Panel repeats: side by side (`h`, wrapping at maxPerRow) or stacked (`v`)." }, "maxPerRow": { "type": "number" }, "scopedVars": { "type": "object", "additionalProperties": { "type": "object", "properties": { "text": { "type": "string" }, "value": { "type": "string" } }, "required": ["text", "value"] }, "description": "Set on each copy of a repeated row or panel: the single value it was repeated for." }, "mobile": { "$ref": "#/definitions/MobileOptions" }, "links": { "type": "array", "items": { "$ref": "#/definitions/DataLink" }, "description": "Panel links, from the panel header menu in Grafana." } }, "required": ["type", "gridPos"], "additionalProperties": {}, "allOf": [{ "if": { "properties": { "type": { "pattern": "^input-(?!group$)" } }, "required": ["type"] }, "then": { "required": ["options"], "properties": { "options": { "$ref": "#/definitions/InputOptions" } } } }, { "if": { "properties": { "type": { "const": "input-group" } }, "required": ["type"] }, "then": { "required": ["options"], "properties": { "options": { "$ref": "#/definitions/InputGroupOptions" } } } }] };
4548
4552
  var pattern1 = new RegExp("^input-(?!group$)", "u");
4549
4553
  var schema20 = { "type": "object", "properties": { "metric": { "type": "string", "description": "The metric this input records to. Visualization queries select data by this name." }, "unit": { "type": "string" }, "min": { "type": "number" }, "max": { "type": "number" }, "step": { "type": "number" }, "placeholder": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "description": 'input-slider only: text spaced evenly along the track, first at min and last at max, e.g. ["Understeer", "Neutral", "Oversteer"]. Replaces the numeric min/max labels.' }, "default": { "anyOf": [{ "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "string", "const": "last" }], "description": 'Initial value: a literal, or "last" to start from the most recent entry.' }, "record": { "type": "string", "enum": ["changed", "always"], "description": '"changed" (the default) records the value only when it was edited before Save; "always" records it on every Save, so a default like "last" is kept with each save.' }, "required": { "type": "boolean", "description": "Save waits until this has a value." }, "choices": { "type": "array", "items": { "$ref": "#/definitions/InputChoice" }, "description": "input-select only." }, "choicesFrom": { "type": "string", "description": "input-select only: take the choices from the app at runtime instead of `choices`, for lists that live in app data (e.g. wheel sets). Names a key of InputForm's `choices` prop." }, "multi": { "type": "boolean", "description": "input-select only: allow selecting several. Each selection is recorded as its own entry." }, "increment": { "type": "number", "description": "input-counter only: the amount each tap records (default 1)." }, "suggest": { "type": "boolean", "description": "input-text only: a single-line field that suggests values recorded earlier, matching what's typed." }, "suggestWith": { "type": "string", "description": "input-text with `suggest` only: another input's metric whose current value narrows the suggestions to values saved alongside it (e.g. configurations of the chosen track). Falls back to every earlier value when none were." } }, "required": ["metric"] };
@@ -7828,9 +7832,9 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
7828
7832
  errors++;
7829
7833
  }
7830
7834
  }
7831
- if (data.uid !== void 0) {
7832
- if (typeof data.uid !== "string") {
7833
- const err4 = { instancePath: instancePath + "/uid", schemaPath: "#/properties/uid/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7835
+ if (data.localOnly !== void 0) {
7836
+ if (typeof data.localOnly !== "boolean") {
7837
+ const err4 = { instancePath: instancePath + "/localOnly", schemaPath: "#/properties/localOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
7834
7838
  if (vErrors === null) {
7835
7839
  vErrors = [err4];
7836
7840
  } else {
@@ -7839,9 +7843,9 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
7839
7843
  errors++;
7840
7844
  }
7841
7845
  }
7842
- if (data.title !== void 0) {
7843
- if (typeof data.title !== "string") {
7844
- const err5 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7846
+ if (data.uid !== void 0) {
7847
+ if (typeof data.uid !== "string") {
7848
+ const err5 = { instancePath: instancePath + "/uid", schemaPath: "#/properties/uid/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7845
7849
  if (vErrors === null) {
7846
7850
  vErrors = [err5];
7847
7851
  } else {
@@ -7850,9 +7854,9 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
7850
7854
  errors++;
7851
7855
  }
7852
7856
  }
7853
- if (data.description !== void 0) {
7854
- if (typeof data.description !== "string") {
7855
- const err6 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7857
+ if (data.title !== void 0) {
7858
+ if (typeof data.title !== "string") {
7859
+ const err6 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7856
7860
  if (vErrors === null) {
7857
7861
  vErrors = [err6];
7858
7862
  } else {
@@ -7861,209 +7865,220 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
7861
7865
  errors++;
7862
7866
  }
7863
7867
  }
7868
+ if (data.description !== void 0) {
7869
+ if (typeof data.description !== "string") {
7870
+ const err7 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7871
+ if (vErrors === null) {
7872
+ vErrors = [err7];
7873
+ } else {
7874
+ vErrors.push(err7);
7875
+ }
7876
+ errors++;
7877
+ }
7878
+ }
7864
7879
  if (data.tags !== void 0) {
7865
- let data4 = data.tags;
7866
- if (Array.isArray(data4)) {
7867
- const len0 = data4.length;
7880
+ let data5 = data.tags;
7881
+ if (Array.isArray(data5)) {
7882
+ const len0 = data5.length;
7868
7883
  for (let i0 = 0; i0 < len0; i0++) {
7869
- if (typeof data4[i0] !== "string") {
7870
- const err7 = { instancePath: instancePath + "/tags/" + i0, schemaPath: "#/properties/tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7884
+ if (typeof data5[i0] !== "string") {
7885
+ const err8 = { instancePath: instancePath + "/tags/" + i0, schemaPath: "#/properties/tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7871
7886
  if (vErrors === null) {
7872
- vErrors = [err7];
7887
+ vErrors = [err8];
7873
7888
  } else {
7874
- vErrors.push(err7);
7889
+ vErrors.push(err8);
7875
7890
  }
7876
7891
  errors++;
7877
7892
  }
7878
7893
  }
7879
7894
  } else {
7880
- const err8 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7895
+ const err9 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7881
7896
  if (vErrors === null) {
7882
- vErrors = [err8];
7897
+ vErrors = [err9];
7883
7898
  } else {
7884
- vErrors.push(err8);
7899
+ vErrors.push(err9);
7885
7900
  }
7886
7901
  errors++;
7887
7902
  }
7888
7903
  }
7889
7904
  if (data.panels !== void 0) {
7890
- let data6 = data.panels;
7891
- if (Array.isArray(data6)) {
7892
- const len1 = data6.length;
7905
+ let data7 = data.panels;
7906
+ if (Array.isArray(data7)) {
7907
+ const len1 = data7.length;
7893
7908
  for (let i1 = 0; i1 < len1; i1++) {
7894
- if (!validate18(data6[i1], { instancePath: instancePath + "/panels/" + i1, parentData: data6, parentDataProperty: i1, rootData })) {
7909
+ if (!validate18(data7[i1], { instancePath: instancePath + "/panels/" + i1, parentData: data7, parentDataProperty: i1, rootData })) {
7895
7910
  vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);
7896
7911
  errors = vErrors.length;
7897
7912
  }
7898
7913
  }
7899
7914
  } else {
7900
- const err9 = { instancePath: instancePath + "/panels", schemaPath: "#/properties/panels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7915
+ const err10 = { instancePath: instancePath + "/panels", schemaPath: "#/properties/panels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7901
7916
  if (vErrors === null) {
7902
- vErrors = [err9];
7917
+ vErrors = [err10];
7903
7918
  } else {
7904
- vErrors.push(err9);
7919
+ vErrors.push(err10);
7905
7920
  }
7906
7921
  errors++;
7907
7922
  }
7908
7923
  }
7909
7924
  if (data.templating !== void 0) {
7910
- let data8 = data.templating;
7911
- if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
7912
- if (data8.list === void 0) {
7913
- const err10 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/required", keyword: "required", params: { missingProperty: "list" }, message: "must have required property 'list'" };
7925
+ let data9 = data.templating;
7926
+ if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
7927
+ if (data9.list === void 0) {
7928
+ const err11 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/required", keyword: "required", params: { missingProperty: "list" }, message: "must have required property 'list'" };
7914
7929
  if (vErrors === null) {
7915
- vErrors = [err10];
7930
+ vErrors = [err11];
7916
7931
  } else {
7917
- vErrors.push(err10);
7932
+ vErrors.push(err11);
7918
7933
  }
7919
7934
  errors++;
7920
7935
  }
7921
- if (data8.list !== void 0) {
7922
- let data9 = data8.list;
7923
- if (Array.isArray(data9)) {
7924
- const len2 = data9.length;
7936
+ if (data9.list !== void 0) {
7937
+ let data10 = data9.list;
7938
+ if (Array.isArray(data10)) {
7939
+ const len2 = data10.length;
7925
7940
  for (let i2 = 0; i2 < len2; i2++) {
7926
- if (!validate33(data9[i2], { instancePath: instancePath + "/templating/list/" + i2, parentData: data9, parentDataProperty: i2, rootData })) {
7941
+ if (!validate33(data10[i2], { instancePath: instancePath + "/templating/list/" + i2, parentData: data10, parentDataProperty: i2, rootData })) {
7927
7942
  vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
7928
7943
  errors = vErrors.length;
7929
7944
  }
7930
7945
  }
7931
7946
  } else {
7932
- const err11 = { instancePath: instancePath + "/templating/list", schemaPath: "#/properties/templating/properties/list/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7947
+ const err12 = { instancePath: instancePath + "/templating/list", schemaPath: "#/properties/templating/properties/list/type", keyword: "type", params: { type: "array" }, message: "must be array" };
7933
7948
  if (vErrors === null) {
7934
- vErrors = [err11];
7949
+ vErrors = [err12];
7935
7950
  } else {
7936
- vErrors.push(err11);
7951
+ vErrors.push(err12);
7937
7952
  }
7938
7953
  errors++;
7939
7954
  }
7940
7955
  }
7941
7956
  } else {
7942
- const err12 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7957
+ const err13 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7943
7958
  if (vErrors === null) {
7944
- vErrors = [err12];
7959
+ vErrors = [err13];
7945
7960
  } else {
7946
- vErrors.push(err12);
7961
+ vErrors.push(err13);
7947
7962
  }
7948
7963
  errors++;
7949
7964
  }
7950
7965
  }
7951
7966
  if (data.time !== void 0) {
7952
- let data11 = data.time;
7953
- if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
7954
- if (data11.from === void 0) {
7955
- const err13 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
7967
+ let data12 = data.time;
7968
+ if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
7969
+ if (data12.from === void 0) {
7970
+ const err14 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
7956
7971
  if (vErrors === null) {
7957
- vErrors = [err13];
7972
+ vErrors = [err14];
7958
7973
  } else {
7959
- vErrors.push(err13);
7974
+ vErrors.push(err14);
7960
7975
  }
7961
7976
  errors++;
7962
7977
  }
7963
- if (data11.to === void 0) {
7964
- const err14 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
7978
+ if (data12.to === void 0) {
7979
+ const err15 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
7965
7980
  if (vErrors === null) {
7966
- vErrors = [err14];
7981
+ vErrors = [err15];
7967
7982
  } else {
7968
- vErrors.push(err14);
7983
+ vErrors.push(err15);
7969
7984
  }
7970
7985
  errors++;
7971
7986
  }
7972
- if (data11.from !== void 0) {
7973
- if (typeof data11.from !== "string") {
7974
- const err15 = { instancePath: instancePath + "/time/from", schemaPath: "#/properties/time/properties/from/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7987
+ if (data12.from !== void 0) {
7988
+ if (typeof data12.from !== "string") {
7989
+ const err16 = { instancePath: instancePath + "/time/from", schemaPath: "#/properties/time/properties/from/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7975
7990
  if (vErrors === null) {
7976
- vErrors = [err15];
7991
+ vErrors = [err16];
7977
7992
  } else {
7978
- vErrors.push(err15);
7993
+ vErrors.push(err16);
7979
7994
  }
7980
7995
  errors++;
7981
7996
  }
7982
7997
  }
7983
- if (data11.to !== void 0) {
7984
- if (typeof data11.to !== "string") {
7985
- const err16 = { instancePath: instancePath + "/time/to", schemaPath: "#/properties/time/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7998
+ if (data12.to !== void 0) {
7999
+ if (typeof data12.to !== "string") {
8000
+ const err17 = { instancePath: instancePath + "/time/to", schemaPath: "#/properties/time/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" };
7986
8001
  if (vErrors === null) {
7987
- vErrors = [err16];
8002
+ vErrors = [err17];
7988
8003
  } else {
7989
- vErrors.push(err16);
8004
+ vErrors.push(err17);
7990
8005
  }
7991
8006
  errors++;
7992
8007
  }
7993
8008
  }
7994
8009
  } else {
7995
- const err17 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8010
+ const err18 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
7996
8011
  if (vErrors === null) {
7997
- vErrors = [err17];
8012
+ vErrors = [err18];
7998
8013
  } else {
7999
- vErrors.push(err17);
8014
+ vErrors.push(err18);
8000
8015
  }
8001
8016
  errors++;
8002
8017
  }
8003
8018
  }
8004
8019
  if (data.timezone !== void 0) {
8005
8020
  if (typeof data.timezone !== "string") {
8006
- const err18 = { instancePath: instancePath + "/timezone", schemaPath: "#/properties/timezone/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8021
+ const err19 = { instancePath: instancePath + "/timezone", schemaPath: "#/properties/timezone/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8007
8022
  if (vErrors === null) {
8008
- vErrors = [err18];
8023
+ vErrors = [err19];
8009
8024
  } else {
8010
- vErrors.push(err18);
8025
+ vErrors.push(err19);
8011
8026
  }
8012
8027
  errors++;
8013
8028
  }
8014
8029
  }
8015
8030
  if (data.refresh !== void 0) {
8016
- let data15 = data.refresh;
8017
- const _errs31 = errors;
8031
+ let data16 = data.refresh;
8032
+ const _errs33 = errors;
8018
8033
  let valid10 = false;
8019
- const _errs32 = errors;
8020
- if (typeof data15 !== "string") {
8021
- const err19 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8034
+ const _errs34 = errors;
8035
+ if (typeof data16 !== "string") {
8036
+ const err20 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8022
8037
  if (vErrors === null) {
8023
- vErrors = [err19];
8038
+ vErrors = [err20];
8024
8039
  } else {
8025
- vErrors.push(err19);
8040
+ vErrors.push(err20);
8026
8041
  }
8027
8042
  errors++;
8028
8043
  }
8029
- var _valid0 = _errs32 === errors;
8044
+ var _valid0 = _errs34 === errors;
8030
8045
  valid10 = valid10 || _valid0;
8031
8046
  if (!valid10) {
8032
- const _errs34 = errors;
8033
- if (typeof data15 !== "boolean") {
8034
- const err20 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8047
+ const _errs36 = errors;
8048
+ if (typeof data16 !== "boolean") {
8049
+ const err21 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8035
8050
  if (vErrors === null) {
8036
- vErrors = [err20];
8051
+ vErrors = [err21];
8037
8052
  } else {
8038
- vErrors.push(err20);
8053
+ vErrors.push(err21);
8039
8054
  }
8040
8055
  errors++;
8041
8056
  }
8042
- if (false !== data15) {
8043
- const err21 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
8057
+ if (false !== data16) {
8058
+ const err22 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
8044
8059
  if (vErrors === null) {
8045
- vErrors = [err21];
8060
+ vErrors = [err22];
8046
8061
  } else {
8047
- vErrors.push(err21);
8062
+ vErrors.push(err22);
8048
8063
  }
8049
8064
  errors++;
8050
8065
  }
8051
- var _valid0 = _errs34 === errors;
8066
+ var _valid0 = _errs36 === errors;
8052
8067
  valid10 = valid10 || _valid0;
8053
8068
  }
8054
8069
  if (!valid10) {
8055
- const err22 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
8070
+ const err23 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
8056
8071
  if (vErrors === null) {
8057
- vErrors = [err22];
8072
+ vErrors = [err23];
8058
8073
  } else {
8059
- vErrors.push(err22);
8074
+ vErrors.push(err23);
8060
8075
  }
8061
8076
  errors++;
8062
8077
  } else {
8063
- errors = _errs31;
8078
+ errors = _errs33;
8064
8079
  if (vErrors !== null) {
8065
- if (_errs31) {
8066
- vErrors.length = _errs31;
8080
+ if (_errs33) {
8081
+ vErrors.length = _errs33;
8067
8082
  } else {
8068
8083
  vErrors = null;
8069
8084
  }
@@ -8071,89 +8086,89 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
8071
8086
  }
8072
8087
  }
8073
8088
  if (data.__inputs !== void 0) {
8074
- let data16 = data.__inputs;
8075
- if (Array.isArray(data16)) {
8076
- const len3 = data16.length;
8089
+ let data17 = data.__inputs;
8090
+ if (Array.isArray(data17)) {
8091
+ const len3 = data17.length;
8077
8092
  for (let i3 = 0; i3 < len3; i3++) {
8078
- let data17 = data16[i3];
8079
- if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
8080
- if (data17.name === void 0) {
8081
- const err23 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
8093
+ let data18 = data17[i3];
8094
+ if (data18 && typeof data18 == "object" && !Array.isArray(data18)) {
8095
+ if (data18.name === void 0) {
8096
+ const err24 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
8082
8097
  if (vErrors === null) {
8083
- vErrors = [err23];
8098
+ vErrors = [err24];
8084
8099
  } else {
8085
- vErrors.push(err23);
8100
+ vErrors.push(err24);
8086
8101
  }
8087
8102
  errors++;
8088
8103
  }
8089
- if (data17.type === void 0) {
8090
- const err24 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
8104
+ if (data18.type === void 0) {
8105
+ const err25 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
8091
8106
  if (vErrors === null) {
8092
- vErrors = [err24];
8107
+ vErrors = [err25];
8093
8108
  } else {
8094
- vErrors.push(err24);
8109
+ vErrors.push(err25);
8095
8110
  }
8096
8111
  errors++;
8097
8112
  }
8098
- if (data17.name !== void 0) {
8099
- if (typeof data17.name !== "string") {
8100
- const err25 = { instancePath: instancePath + "/__inputs/" + i3 + "/name", schemaPath: "#/properties/__inputs/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8113
+ if (data18.name !== void 0) {
8114
+ if (typeof data18.name !== "string") {
8115
+ const err26 = { instancePath: instancePath + "/__inputs/" + i3 + "/name", schemaPath: "#/properties/__inputs/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8101
8116
  if (vErrors === null) {
8102
- vErrors = [err25];
8117
+ vErrors = [err26];
8103
8118
  } else {
8104
- vErrors.push(err25);
8119
+ vErrors.push(err26);
8105
8120
  }
8106
8121
  errors++;
8107
8122
  }
8108
8123
  }
8109
- if (data17.type !== void 0) {
8110
- if (typeof data17.type !== "string") {
8111
- const err26 = { instancePath: instancePath + "/__inputs/" + i3 + "/type", schemaPath: "#/properties/__inputs/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8124
+ if (data18.type !== void 0) {
8125
+ if (typeof data18.type !== "string") {
8126
+ const err27 = { instancePath: instancePath + "/__inputs/" + i3 + "/type", schemaPath: "#/properties/__inputs/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8112
8127
  if (vErrors === null) {
8113
- vErrors = [err26];
8128
+ vErrors = [err27];
8114
8129
  } else {
8115
- vErrors.push(err26);
8130
+ vErrors.push(err27);
8116
8131
  }
8117
8132
  errors++;
8118
8133
  }
8119
8134
  }
8120
- if (data17.pluginId !== void 0) {
8121
- if (typeof data17.pluginId !== "string") {
8122
- const err27 = { instancePath: instancePath + "/__inputs/" + i3 + "/pluginId", schemaPath: "#/properties/__inputs/items/properties/pluginId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8135
+ if (data18.pluginId !== void 0) {
8136
+ if (typeof data18.pluginId !== "string") {
8137
+ const err28 = { instancePath: instancePath + "/__inputs/" + i3 + "/pluginId", schemaPath: "#/properties/__inputs/items/properties/pluginId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8123
8138
  if (vErrors === null) {
8124
- vErrors = [err27];
8139
+ vErrors = [err28];
8125
8140
  } else {
8126
- vErrors.push(err27);
8141
+ vErrors.push(err28);
8127
8142
  }
8128
8143
  errors++;
8129
8144
  }
8130
8145
  }
8131
8146
  } else {
8132
- const err28 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8147
+ const err29 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8133
8148
  if (vErrors === null) {
8134
- vErrors = [err28];
8149
+ vErrors = [err29];
8135
8150
  } else {
8136
- vErrors.push(err28);
8151
+ vErrors.push(err29);
8137
8152
  }
8138
8153
  errors++;
8139
8154
  }
8140
8155
  }
8141
8156
  } else {
8142
- const err29 = { instancePath: instancePath + "/__inputs", schemaPath: "#/properties/__inputs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8157
+ const err30 = { instancePath: instancePath + "/__inputs", schemaPath: "#/properties/__inputs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8143
8158
  if (vErrors === null) {
8144
- vErrors = [err29];
8159
+ vErrors = [err30];
8145
8160
  } else {
8146
- vErrors.push(err29);
8161
+ vErrors.push(err30);
8147
8162
  }
8148
8163
  errors++;
8149
8164
  }
8150
8165
  }
8151
8166
  } else {
8152
- const err30 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8167
+ const err31 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8153
8168
  if (vErrors === null) {
8154
- vErrors = [err30];
8169
+ vErrors = [err31];
8155
8170
  } else {
8156
- vErrors.push(err30);
8171
+ vErrors.push(err31);
8157
8172
  }
8158
8173
  errors++;
8159
8174
  }
@@ -8420,9 +8435,9 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
8420
8435
  errors++;
8421
8436
  }
8422
8437
  }
8423
- if (data.uid !== void 0) {
8424
- if (typeof data.uid !== "string") {
8425
- const err4 = { instancePath: instancePath + "/uid", schemaPath: "#/properties/uid/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8438
+ if (data.localOnly !== void 0) {
8439
+ if (typeof data.localOnly !== "boolean") {
8440
+ const err4 = { instancePath: instancePath + "/localOnly", schemaPath: "#/properties/localOnly/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8426
8441
  if (vErrors === null) {
8427
8442
  vErrors = [err4];
8428
8443
  } else {
@@ -8431,9 +8446,9 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
8431
8446
  errors++;
8432
8447
  }
8433
8448
  }
8434
- if (data.title !== void 0) {
8435
- if (typeof data.title !== "string") {
8436
- const err5 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8449
+ if (data.uid !== void 0) {
8450
+ if (typeof data.uid !== "string") {
8451
+ const err5 = { instancePath: instancePath + "/uid", schemaPath: "#/properties/uid/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8437
8452
  if (vErrors === null) {
8438
8453
  vErrors = [err5];
8439
8454
  } else {
@@ -8442,9 +8457,9 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
8442
8457
  errors++;
8443
8458
  }
8444
8459
  }
8445
- if (data.description !== void 0) {
8446
- if (typeof data.description !== "string") {
8447
- const err6 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8460
+ if (data.title !== void 0) {
8461
+ if (typeof data.title !== "string") {
8462
+ const err6 = { instancePath: instancePath + "/title", schemaPath: "#/properties/title/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8448
8463
  if (vErrors === null) {
8449
8464
  vErrors = [err6];
8450
8465
  } else {
@@ -8453,209 +8468,220 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
8453
8468
  errors++;
8454
8469
  }
8455
8470
  }
8471
+ if (data.description !== void 0) {
8472
+ if (typeof data.description !== "string") {
8473
+ const err7 = { instancePath: instancePath + "/description", schemaPath: "#/properties/description/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8474
+ if (vErrors === null) {
8475
+ vErrors = [err7];
8476
+ } else {
8477
+ vErrors.push(err7);
8478
+ }
8479
+ errors++;
8480
+ }
8481
+ }
8456
8482
  if (data.tags !== void 0) {
8457
- let data4 = data.tags;
8458
- if (Array.isArray(data4)) {
8459
- const len0 = data4.length;
8483
+ let data5 = data.tags;
8484
+ if (Array.isArray(data5)) {
8485
+ const len0 = data5.length;
8460
8486
  for (let i0 = 0; i0 < len0; i0++) {
8461
- if (typeof data4[i0] !== "string") {
8462
- const err7 = { instancePath: instancePath + "/tags/" + i0, schemaPath: "#/properties/tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8487
+ if (typeof data5[i0] !== "string") {
8488
+ const err8 = { instancePath: instancePath + "/tags/" + i0, schemaPath: "#/properties/tags/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8463
8489
  if (vErrors === null) {
8464
- vErrors = [err7];
8490
+ vErrors = [err8];
8465
8491
  } else {
8466
- vErrors.push(err7);
8492
+ vErrors.push(err8);
8467
8493
  }
8468
8494
  errors++;
8469
8495
  }
8470
8496
  }
8471
8497
  } else {
8472
- const err8 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8498
+ const err9 = { instancePath: instancePath + "/tags", schemaPath: "#/properties/tags/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8473
8499
  if (vErrors === null) {
8474
- vErrors = [err8];
8500
+ vErrors = [err9];
8475
8501
  } else {
8476
- vErrors.push(err8);
8502
+ vErrors.push(err9);
8477
8503
  }
8478
8504
  errors++;
8479
8505
  }
8480
8506
  }
8481
8507
  if (data.panels !== void 0) {
8482
- let data6 = data.panels;
8483
- if (Array.isArray(data6)) {
8484
- const len1 = data6.length;
8508
+ let data7 = data.panels;
8509
+ if (Array.isArray(data7)) {
8510
+ const len1 = data7.length;
8485
8511
  for (let i1 = 0; i1 < len1; i1++) {
8486
- if (!validate18(data6[i1], { instancePath: instancePath + "/panels/" + i1, parentData: data6, parentDataProperty: i1, rootData })) {
8512
+ if (!validate18(data7[i1], { instancePath: instancePath + "/panels/" + i1, parentData: data7, parentDataProperty: i1, rootData })) {
8487
8513
  vErrors = vErrors === null ? validate18.errors : vErrors.concat(validate18.errors);
8488
8514
  errors = vErrors.length;
8489
8515
  }
8490
8516
  }
8491
8517
  } else {
8492
- const err9 = { instancePath: instancePath + "/panels", schemaPath: "#/properties/panels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8518
+ const err10 = { instancePath: instancePath + "/panels", schemaPath: "#/properties/panels/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8493
8519
  if (vErrors === null) {
8494
- vErrors = [err9];
8520
+ vErrors = [err10];
8495
8521
  } else {
8496
- vErrors.push(err9);
8522
+ vErrors.push(err10);
8497
8523
  }
8498
8524
  errors++;
8499
8525
  }
8500
8526
  }
8501
8527
  if (data.templating !== void 0) {
8502
- let data8 = data.templating;
8503
- if (data8 && typeof data8 == "object" && !Array.isArray(data8)) {
8504
- if (data8.list === void 0) {
8505
- const err10 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/required", keyword: "required", params: { missingProperty: "list" }, message: "must have required property 'list'" };
8528
+ let data9 = data.templating;
8529
+ if (data9 && typeof data9 == "object" && !Array.isArray(data9)) {
8530
+ if (data9.list === void 0) {
8531
+ const err11 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/required", keyword: "required", params: { missingProperty: "list" }, message: "must have required property 'list'" };
8506
8532
  if (vErrors === null) {
8507
- vErrors = [err10];
8533
+ vErrors = [err11];
8508
8534
  } else {
8509
- vErrors.push(err10);
8535
+ vErrors.push(err11);
8510
8536
  }
8511
8537
  errors++;
8512
8538
  }
8513
- if (data8.list !== void 0) {
8514
- let data9 = data8.list;
8515
- if (Array.isArray(data9)) {
8516
- const len2 = data9.length;
8539
+ if (data9.list !== void 0) {
8540
+ let data10 = data9.list;
8541
+ if (Array.isArray(data10)) {
8542
+ const len2 = data10.length;
8517
8543
  for (let i2 = 0; i2 < len2; i2++) {
8518
- if (!validate33(data9[i2], { instancePath: instancePath + "/templating/list/" + i2, parentData: data9, parentDataProperty: i2, rootData })) {
8544
+ if (!validate33(data10[i2], { instancePath: instancePath + "/templating/list/" + i2, parentData: data10, parentDataProperty: i2, rootData })) {
8519
8545
  vErrors = vErrors === null ? validate33.errors : vErrors.concat(validate33.errors);
8520
8546
  errors = vErrors.length;
8521
8547
  }
8522
8548
  }
8523
8549
  } else {
8524
- const err11 = { instancePath: instancePath + "/templating/list", schemaPath: "#/properties/templating/properties/list/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8550
+ const err12 = { instancePath: instancePath + "/templating/list", schemaPath: "#/properties/templating/properties/list/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8525
8551
  if (vErrors === null) {
8526
- vErrors = [err11];
8552
+ vErrors = [err12];
8527
8553
  } else {
8528
- vErrors.push(err11);
8554
+ vErrors.push(err12);
8529
8555
  }
8530
8556
  errors++;
8531
8557
  }
8532
8558
  }
8533
8559
  } else {
8534
- const err12 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8560
+ const err13 = { instancePath: instancePath + "/templating", schemaPath: "#/properties/templating/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8535
8561
  if (vErrors === null) {
8536
- vErrors = [err12];
8562
+ vErrors = [err13];
8537
8563
  } else {
8538
- vErrors.push(err12);
8564
+ vErrors.push(err13);
8539
8565
  }
8540
8566
  errors++;
8541
8567
  }
8542
8568
  }
8543
8569
  if (data.time !== void 0) {
8544
- let data11 = data.time;
8545
- if (data11 && typeof data11 == "object" && !Array.isArray(data11)) {
8546
- if (data11.from === void 0) {
8547
- const err13 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
8570
+ let data12 = data.time;
8571
+ if (data12 && typeof data12 == "object" && !Array.isArray(data12)) {
8572
+ if (data12.from === void 0) {
8573
+ const err14 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "from" }, message: "must have required property 'from'" };
8548
8574
  if (vErrors === null) {
8549
- vErrors = [err13];
8575
+ vErrors = [err14];
8550
8576
  } else {
8551
- vErrors.push(err13);
8577
+ vErrors.push(err14);
8552
8578
  }
8553
8579
  errors++;
8554
8580
  }
8555
- if (data11.to === void 0) {
8556
- const err14 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
8581
+ if (data12.to === void 0) {
8582
+ const err15 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/required", keyword: "required", params: { missingProperty: "to" }, message: "must have required property 'to'" };
8557
8583
  if (vErrors === null) {
8558
- vErrors = [err14];
8584
+ vErrors = [err15];
8559
8585
  } else {
8560
- vErrors.push(err14);
8586
+ vErrors.push(err15);
8561
8587
  }
8562
8588
  errors++;
8563
8589
  }
8564
- if (data11.from !== void 0) {
8565
- if (typeof data11.from !== "string") {
8566
- const err15 = { instancePath: instancePath + "/time/from", schemaPath: "#/properties/time/properties/from/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8590
+ if (data12.from !== void 0) {
8591
+ if (typeof data12.from !== "string") {
8592
+ const err16 = { instancePath: instancePath + "/time/from", schemaPath: "#/properties/time/properties/from/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8567
8593
  if (vErrors === null) {
8568
- vErrors = [err15];
8594
+ vErrors = [err16];
8569
8595
  } else {
8570
- vErrors.push(err15);
8596
+ vErrors.push(err16);
8571
8597
  }
8572
8598
  errors++;
8573
8599
  }
8574
8600
  }
8575
- if (data11.to !== void 0) {
8576
- if (typeof data11.to !== "string") {
8577
- const err16 = { instancePath: instancePath + "/time/to", schemaPath: "#/properties/time/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8601
+ if (data12.to !== void 0) {
8602
+ if (typeof data12.to !== "string") {
8603
+ const err17 = { instancePath: instancePath + "/time/to", schemaPath: "#/properties/time/properties/to/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8578
8604
  if (vErrors === null) {
8579
- vErrors = [err16];
8605
+ vErrors = [err17];
8580
8606
  } else {
8581
- vErrors.push(err16);
8607
+ vErrors.push(err17);
8582
8608
  }
8583
8609
  errors++;
8584
8610
  }
8585
8611
  }
8586
8612
  } else {
8587
- const err17 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8613
+ const err18 = { instancePath: instancePath + "/time", schemaPath: "#/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8588
8614
  if (vErrors === null) {
8589
- vErrors = [err17];
8615
+ vErrors = [err18];
8590
8616
  } else {
8591
- vErrors.push(err17);
8617
+ vErrors.push(err18);
8592
8618
  }
8593
8619
  errors++;
8594
8620
  }
8595
8621
  }
8596
8622
  if (data.timezone !== void 0) {
8597
8623
  if (typeof data.timezone !== "string") {
8598
- const err18 = { instancePath: instancePath + "/timezone", schemaPath: "#/properties/timezone/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8624
+ const err19 = { instancePath: instancePath + "/timezone", schemaPath: "#/properties/timezone/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8599
8625
  if (vErrors === null) {
8600
- vErrors = [err18];
8626
+ vErrors = [err19];
8601
8627
  } else {
8602
- vErrors.push(err18);
8628
+ vErrors.push(err19);
8603
8629
  }
8604
8630
  errors++;
8605
8631
  }
8606
8632
  }
8607
8633
  if (data.refresh !== void 0) {
8608
- let data15 = data.refresh;
8609
- const _errs31 = errors;
8634
+ let data16 = data.refresh;
8635
+ const _errs33 = errors;
8610
8636
  let valid10 = false;
8611
- const _errs32 = errors;
8612
- if (typeof data15 !== "string") {
8613
- const err19 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8637
+ const _errs34 = errors;
8638
+ if (typeof data16 !== "string") {
8639
+ const err20 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8614
8640
  if (vErrors === null) {
8615
- vErrors = [err19];
8641
+ vErrors = [err20];
8616
8642
  } else {
8617
- vErrors.push(err19);
8643
+ vErrors.push(err20);
8618
8644
  }
8619
8645
  errors++;
8620
8646
  }
8621
- var _valid0 = _errs32 === errors;
8647
+ var _valid0 = _errs34 === errors;
8622
8648
  valid10 = valid10 || _valid0;
8623
8649
  if (!valid10) {
8624
- const _errs34 = errors;
8625
- if (typeof data15 !== "boolean") {
8626
- const err20 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8650
+ const _errs36 = errors;
8651
+ if (typeof data16 !== "boolean") {
8652
+ const err21 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8627
8653
  if (vErrors === null) {
8628
- vErrors = [err20];
8654
+ vErrors = [err21];
8629
8655
  } else {
8630
- vErrors.push(err20);
8656
+ vErrors.push(err21);
8631
8657
  }
8632
8658
  errors++;
8633
8659
  }
8634
- if (false !== data15) {
8635
- const err21 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
8660
+ if (false !== data16) {
8661
+ const err22 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf/1/const", keyword: "const", params: { allowedValue: false }, message: "must be equal to constant" };
8636
8662
  if (vErrors === null) {
8637
- vErrors = [err21];
8663
+ vErrors = [err22];
8638
8664
  } else {
8639
- vErrors.push(err21);
8665
+ vErrors.push(err22);
8640
8666
  }
8641
8667
  errors++;
8642
8668
  }
8643
- var _valid0 = _errs34 === errors;
8669
+ var _valid0 = _errs36 === errors;
8644
8670
  valid10 = valid10 || _valid0;
8645
8671
  }
8646
8672
  if (!valid10) {
8647
- const err22 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
8673
+ const err23 = { instancePath: instancePath + "/refresh", schemaPath: "#/properties/refresh/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
8648
8674
  if (vErrors === null) {
8649
- vErrors = [err22];
8675
+ vErrors = [err23];
8650
8676
  } else {
8651
- vErrors.push(err22);
8677
+ vErrors.push(err23);
8652
8678
  }
8653
8679
  errors++;
8654
8680
  } else {
8655
- errors = _errs31;
8681
+ errors = _errs33;
8656
8682
  if (vErrors !== null) {
8657
- if (_errs31) {
8658
- vErrors.length = _errs31;
8683
+ if (_errs33) {
8684
+ vErrors.length = _errs33;
8659
8685
  } else {
8660
8686
  vErrors = null;
8661
8687
  }
@@ -8663,89 +8689,89 @@ function validate17(data, { instancePath = "", parentData, parentDataProperty, r
8663
8689
  }
8664
8690
  }
8665
8691
  if (data.__inputs !== void 0) {
8666
- let data16 = data.__inputs;
8667
- if (Array.isArray(data16)) {
8668
- const len3 = data16.length;
8692
+ let data17 = data.__inputs;
8693
+ if (Array.isArray(data17)) {
8694
+ const len3 = data17.length;
8669
8695
  for (let i3 = 0; i3 < len3; i3++) {
8670
- let data17 = data16[i3];
8671
- if (data17 && typeof data17 == "object" && !Array.isArray(data17)) {
8672
- if (data17.name === void 0) {
8673
- const err23 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
8696
+ let data18 = data17[i3];
8697
+ if (data18 && typeof data18 == "object" && !Array.isArray(data18)) {
8698
+ if (data18.name === void 0) {
8699
+ const err24 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "name" }, message: "must have required property 'name'" };
8674
8700
  if (vErrors === null) {
8675
- vErrors = [err23];
8701
+ vErrors = [err24];
8676
8702
  } else {
8677
- vErrors.push(err23);
8703
+ vErrors.push(err24);
8678
8704
  }
8679
8705
  errors++;
8680
8706
  }
8681
- if (data17.type === void 0) {
8682
- const err24 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
8707
+ if (data18.type === void 0) {
8708
+ const err25 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/required", keyword: "required", params: { missingProperty: "type" }, message: "must have required property 'type'" };
8683
8709
  if (vErrors === null) {
8684
- vErrors = [err24];
8710
+ vErrors = [err25];
8685
8711
  } else {
8686
- vErrors.push(err24);
8712
+ vErrors.push(err25);
8687
8713
  }
8688
8714
  errors++;
8689
8715
  }
8690
- if (data17.name !== void 0) {
8691
- if (typeof data17.name !== "string") {
8692
- const err25 = { instancePath: instancePath + "/__inputs/" + i3 + "/name", schemaPath: "#/properties/__inputs/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8716
+ if (data18.name !== void 0) {
8717
+ if (typeof data18.name !== "string") {
8718
+ const err26 = { instancePath: instancePath + "/__inputs/" + i3 + "/name", schemaPath: "#/properties/__inputs/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8693
8719
  if (vErrors === null) {
8694
- vErrors = [err25];
8720
+ vErrors = [err26];
8695
8721
  } else {
8696
- vErrors.push(err25);
8722
+ vErrors.push(err26);
8697
8723
  }
8698
8724
  errors++;
8699
8725
  }
8700
8726
  }
8701
- if (data17.type !== void 0) {
8702
- if (typeof data17.type !== "string") {
8703
- const err26 = { instancePath: instancePath + "/__inputs/" + i3 + "/type", schemaPath: "#/properties/__inputs/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8727
+ if (data18.type !== void 0) {
8728
+ if (typeof data18.type !== "string") {
8729
+ const err27 = { instancePath: instancePath + "/__inputs/" + i3 + "/type", schemaPath: "#/properties/__inputs/items/properties/type/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8704
8730
  if (vErrors === null) {
8705
- vErrors = [err26];
8731
+ vErrors = [err27];
8706
8732
  } else {
8707
- vErrors.push(err26);
8733
+ vErrors.push(err27);
8708
8734
  }
8709
8735
  errors++;
8710
8736
  }
8711
8737
  }
8712
- if (data17.pluginId !== void 0) {
8713
- if (typeof data17.pluginId !== "string") {
8714
- const err27 = { instancePath: instancePath + "/__inputs/" + i3 + "/pluginId", schemaPath: "#/properties/__inputs/items/properties/pluginId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8738
+ if (data18.pluginId !== void 0) {
8739
+ if (typeof data18.pluginId !== "string") {
8740
+ const err28 = { instancePath: instancePath + "/__inputs/" + i3 + "/pluginId", schemaPath: "#/properties/__inputs/items/properties/pluginId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8715
8741
  if (vErrors === null) {
8716
- vErrors = [err27];
8742
+ vErrors = [err28];
8717
8743
  } else {
8718
- vErrors.push(err27);
8744
+ vErrors.push(err28);
8719
8745
  }
8720
8746
  errors++;
8721
8747
  }
8722
8748
  }
8723
8749
  } else {
8724
- const err28 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8750
+ const err29 = { instancePath: instancePath + "/__inputs/" + i3, schemaPath: "#/properties/__inputs/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8725
8751
  if (vErrors === null) {
8726
- vErrors = [err28];
8752
+ vErrors = [err29];
8727
8753
  } else {
8728
- vErrors.push(err28);
8754
+ vErrors.push(err29);
8729
8755
  }
8730
8756
  errors++;
8731
8757
  }
8732
8758
  }
8733
8759
  } else {
8734
- const err29 = { instancePath: instancePath + "/__inputs", schemaPath: "#/properties/__inputs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8760
+ const err30 = { instancePath: instancePath + "/__inputs", schemaPath: "#/properties/__inputs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8735
8761
  if (vErrors === null) {
8736
- vErrors = [err29];
8762
+ vErrors = [err30];
8737
8763
  } else {
8738
- vErrors.push(err29);
8764
+ vErrors.push(err30);
8739
8765
  }
8740
8766
  errors++;
8741
8767
  }
8742
8768
  }
8743
8769
  } else {
8744
- const err30 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8770
+ const err31 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8745
8771
  if (vErrors === null) {
8746
- vErrors = [err30];
8772
+ vErrors = [err31];
8747
8773
  } else {
8748
- vErrors.push(err30);
8774
+ vErrors.push(err31);
8749
8775
  }
8750
8776
  errors++;
8751
8777
  }
@@ -12381,6 +12407,8 @@ Forms hold input panels. Each records to a \`metric\` (lowercase words joined wi
12381
12407
  | input-counter | taps that add up, e.g. glasses of water | increment, unit |
12382
12408
  | input-duration | a length of time, recorded in seconds | placeholder |
12383
12409
 
12410
+ A form can set \`"localOnly": true\` (beside \`"kind"\`) to keep what it records on the device where it's recorded: it's never synced to an account, other devices or assistants. Use it only when asked, e.g. for a private journal.
12411
+
12384
12412
  Any input (not counter) can also take \`required: true\`, \`default\` (a value, or \`"last"\` for the last one saved), and \`record: "always"\` to record its value on every save even when it wasn't changed.
12385
12413
 
12386
12414
  \`input-group\` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it \`h: 12\` and options \`{ "itemTitle": "Set", "titleFrom": "<a field's metric>", "start": 1 | "last", "min", "max", "fields": [ { "type": "input-\u2026", "title", "span": 1\u201324, "options": { "metric", \u2026 } } ] }\`. Fields can be any input but input-counter.