bhl-forms 0.0.74 → 0.0.75

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.
@@ -4751,10 +4751,13 @@ const handleSubmitError = (err, node) => {
4751
4751
  node.setErrors(err.toString());
4752
4752
  return true;
4753
4753
  };
4754
- const getKey = (d, path) => {
4754
+ const getKey = (d, path, def2) => {
4755
4755
  if (typeof path === "string") {
4756
4756
  path = path.split(".");
4757
4757
  }
4758
+ if (typeof def2 !== "undefined") {
4759
+ return path.reduce((x, y) => x[y] || def2, d);
4760
+ }
4758
4761
  return path.reduce((x, y) => x[y], d);
4759
4762
  };
4760
4763
  const keyValOverlap = (o1, o2) => {
@@ -5893,6 +5896,9 @@ const dataDefaults = {
5893
5896
  }
5894
5897
  return enabledSteps().indexOf(stepName) > -1;
5895
5898
  },
5899
+ getKey: (d, k, def2) => {
5900
+ return getKey(d, k, def2);
5901
+ },
5896
5902
  inputIsEnabled: (node, key, inputName) => {
5897
5903
  if (!node || !key || !node.attrs.inputMap) {
5898
5904
  return true;
@@ -11307,7 +11313,7 @@ const checkBoxClassification = {
11307
11313
  const buttonClassification = {
11308
11314
  wrapper: "t-mb-1",
11309
11315
  input: "t-bg-red-500 hover:t-bg-red-600 t-text-white t-text-xl t-font-normal t-py-4 t-px-9 sm:t-px-10 t-rounded",
11310
- outer: "t-mb-0"
11316
+ outer: "!t-mb-2 t-mt-4"
11311
11317
  };
11312
11318
  var theme = {
11313
11319
  global: {