@defra/forms-model 3.0.178 → 3.0.180

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.
Files changed (62) hide show
  1. package/dist/module/components/component-types.js +4 -42
  2. package/dist/module/components/component-types.js.map +1 -1
  3. package/dist/module/components/enums.js +0 -5
  4. package/dist/module/components/enums.js.map +1 -1
  5. package/dist/module/components/helpers.js +57 -0
  6. package/dist/module/components/helpers.js.map +1 -0
  7. package/dist/module/components/index.js +2 -1
  8. package/dist/module/components/index.js.map +1 -1
  9. package/dist/module/components/types.js.map +1 -1
  10. package/dist/module/conditions/condition-field.js +5 -5
  11. package/dist/module/conditions/condition-field.js.map +1 -1
  12. package/dist/module/conditions/condition-operators.js +64 -48
  13. package/dist/module/conditions/condition-operators.js.map +1 -1
  14. package/dist/module/conditions/condition-ref.js.map +1 -1
  15. package/dist/module/conditions/condition-values.js +9 -10
  16. package/dist/module/conditions/condition-values.js.map +1 -1
  17. package/dist/module/conditions/condition.js.map +1 -1
  18. package/dist/module/conditions/enums.js +31 -0
  19. package/dist/module/conditions/enums.js.map +1 -1
  20. package/dist/module/conditions/index.js +2 -2
  21. package/dist/module/conditions/index.js.map +1 -1
  22. package/dist/module/conditions/types.js.map +1 -1
  23. package/dist/types/components/component-types.d.ts +1 -0
  24. package/dist/types/components/component-types.d.ts.map +1 -1
  25. package/dist/types/components/enums.d.ts +1 -6
  26. package/dist/types/components/enums.d.ts.map +1 -1
  27. package/dist/types/components/helpers.d.ts +30 -0
  28. package/dist/types/components/helpers.d.ts.map +1 -0
  29. package/dist/types/components/index.d.ts +2 -1
  30. package/dist/types/components/index.d.ts.map +1 -1
  31. package/dist/types/components/types.d.ts +8 -40
  32. package/dist/types/components/types.d.ts.map +1 -1
  33. package/dist/types/conditions/condition-field.d.ts +6 -6
  34. package/dist/types/conditions/condition-field.d.ts.map +1 -1
  35. package/dist/types/conditions/condition-operators.d.ts +56 -232
  36. package/dist/types/conditions/condition-operators.d.ts.map +1 -1
  37. package/dist/types/conditions/condition-ref.d.ts +3 -3
  38. package/dist/types/conditions/condition-ref.d.ts.map +1 -1
  39. package/dist/types/conditions/condition-values.d.ts +5 -8
  40. package/dist/types/conditions/condition-values.d.ts.map +1 -1
  41. package/dist/types/conditions/condition.d.ts +6 -6
  42. package/dist/types/conditions/condition.d.ts.map +1 -1
  43. package/dist/types/conditions/enums.d.ts +28 -0
  44. package/dist/types/conditions/enums.d.ts.map +1 -1
  45. package/dist/types/conditions/index.d.ts +2 -2
  46. package/dist/types/conditions/index.d.ts.map +1 -1
  47. package/dist/types/conditions/types.d.ts +8 -0
  48. package/dist/types/conditions/types.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/src/components/component-types.ts +6 -47
  51. package/src/components/enums.ts +1 -6
  52. package/src/components/helpers.ts +138 -0
  53. package/src/components/index.ts +14 -1
  54. package/src/components/types.ts +49 -58
  55. package/src/conditions/condition-field.ts +25 -11
  56. package/src/conditions/condition-operators.ts +129 -96
  57. package/src/conditions/condition-ref.ts +2 -2
  58. package/src/conditions/condition-values.ts +15 -20
  59. package/src/conditions/condition.ts +5 -5
  60. package/src/conditions/enums.ts +31 -0
  61. package/src/conditions/index.ts +7 -2
  62. package/src/conditions/types.ts +16 -0
@@ -1,4 +1,5 @@
1
1
  import { ConditionValueAbstract } from "./condition-value-abstract.js";
2
+ import { ConditionType, DateDirections } from "./enums.js";
2
3
  export class ConditionValue extends ConditionValueAbstract {
3
4
  type;
4
5
  value;
@@ -11,7 +12,7 @@ export class ConditionValue extends ConditionValueAbstract {
11
12
  throw new Error("ConditionValue param 'display' must be a string");
12
13
  }
13
14
  super();
14
- this.type = 'Value';
15
+ this.type = ConditionType.Value;
15
16
  this.value = value;
16
17
  this.display = display ?? value;
17
18
  }
@@ -28,11 +29,6 @@ export class ConditionValue extends ConditionValueAbstract {
28
29
  return ConditionValue.from(this);
29
30
  }
30
31
  }
31
- export let DateDirections = /*#__PURE__*/function (DateDirections) {
32
- DateDirections["FUTURE"] = "in the future";
33
- DateDirections["PAST"] = "in the past";
34
- return DateDirections;
35
- }({});
36
32
  export const dateUnits = {
37
33
  YEARS: {
38
34
  display: 'year(s)',
@@ -61,7 +57,10 @@ export const timeUnits = {
61
57
  value: 'seconds'
62
58
  }
63
59
  };
64
- export const dateTimeUnits = Object.assign({}, dateUnits, timeUnits);
60
+ export const dateTimeUnits = {
61
+ ...dateUnits,
62
+ ...timeUnits
63
+ };
65
64
  export class RelativeTimeValue extends ConditionValueAbstract {
66
65
  type;
67
66
  timePeriod;
@@ -79,7 +78,7 @@ export class RelativeTimeValue extends ConditionValueAbstract {
79
78
  throw new Error("RelativeTimeValue param 'direction' must be from enum DateDirections");
80
79
  }
81
80
  super();
82
- this.type = 'RelativeTime';
81
+ this.type = ConditionType.RelativeTime;
83
82
  this.timePeriod = timePeriod;
84
83
  this.timeUnit = timeUnit;
85
84
  this.direction = direction;
@@ -101,9 +100,9 @@ export class RelativeTimeValue extends ConditionValueAbstract {
101
100
  }
102
101
  export function conditionValueFrom(obj) {
103
102
  switch (obj.type) {
104
- case 'Value':
103
+ case ConditionType.Value:
105
104
  return ConditionValue.from(obj);
106
- case 'RelativeTime':
105
+ case ConditionType.RelativeTime:
107
106
  return RelativeTimeValue.from(obj);
108
107
  }
109
108
  }
@@ -1 +1 @@
1
- {"version":3,"file":"condition-values.js","names":["ConditionValueAbstract","ConditionValue","type","value","display","constructor","Error","toPresentationString","toExpression","from","obj","clone","DateDirections","dateUnits","YEARS","MONTHS","DAYS","timeUnits","HOURS","MINUTES","SECONDS","dateTimeUnits","Object","assign","RelativeTimeValue","timePeriod","timeUnit","direction","timeOnly","values","map","unit","includes","PAST","Number","conditionValueFrom"],"sources":["../../../src/conditions/condition-values.ts"],"sourcesContent":["import { ConditionValueAbstract } from '~/src/conditions/condition-value-abstract.js'\nimport {\n type DateTimeUnitValues,\n type DateUnits,\n type TimeUnits\n} from '~/src/conditions/types.js'\n\nexport class ConditionValue\n extends ConditionValueAbstract\n implements ConditionValueFrom\n{\n type: 'Value'\n value: string\n display: string\n\n constructor(value: string, display?: string) {\n if (!value || typeof value !== 'string') {\n throw new Error(\"ConditionValue param 'value' must be a string\")\n }\n\n if (display && typeof display !== 'string') {\n throw new Error(\"ConditionValue param 'display' must be a string\")\n }\n\n super()\n\n this.type = 'Value'\n this.value = value\n this.display = display ?? value\n }\n\n toPresentationString() {\n return this.display\n }\n\n toExpression() {\n return this.value\n }\n\n static from(obj: ConditionValue | ConditionValueFrom) {\n return new ConditionValue(obj.value, obj.display)\n }\n\n clone() {\n return ConditionValue.from(this)\n }\n}\n\nexport interface ConditionValueFrom {\n value: string\n display?: string\n}\n\nexport enum DateDirections {\n FUTURE = 'in the future',\n PAST = 'in the past'\n}\n\nexport const dateUnits: DateUnits = {\n YEARS: { display: 'year(s)', value: 'years' },\n MONTHS: { display: 'month(s)', value: 'months' },\n DAYS: { display: 'day(s)', value: 'days' }\n}\n\nexport const timeUnits: TimeUnits = {\n HOURS: { display: 'hour(s)', value: 'hours' },\n MINUTES: { display: 'minute(s)', value: 'minutes' },\n SECONDS: { display: 'second(s)', value: 'seconds' }\n}\n\nexport const dateTimeUnits: DateUnits & TimeUnits = Object.assign(\n {},\n dateUnits,\n timeUnits\n)\n\nexport class RelativeTimeValue\n extends ConditionValueAbstract\n implements RelativeTimeValueFrom\n{\n type: 'RelativeTime'\n timePeriod: string\n timeUnit: DateTimeUnitValues\n direction: DateDirections\n timeOnly: boolean\n\n constructor(\n timePeriod: string,\n timeUnit: DateTimeUnitValues,\n direction: DateDirections,\n timeOnly = false\n ) {\n if (typeof timePeriod !== 'string') {\n throw new Error(\"RelativeTimeValue param 'timePeriod' must be a string\")\n }\n\n if (\n !Object.values(dateTimeUnits)\n .map((unit) => unit.value)\n .includes(timeUnit)\n ) {\n throw new Error(\n \"RelativeTimeValue param 'dateTimeUnits' must only include DateTimeUnitValues keys\"\n )\n }\n\n if (!Object.values(DateDirections).includes(direction)) {\n throw new Error(\n \"RelativeTimeValue param 'direction' must be from enum DateDirections\"\n )\n }\n\n super()\n\n this.type = 'RelativeTime'\n this.timePeriod = timePeriod\n this.timeUnit = timeUnit\n this.direction = direction\n this.timeOnly = timeOnly\n }\n\n toPresentationString() {\n return `${this.timePeriod} ${this.timeUnit} ${this.direction}`\n }\n\n toExpression(): string {\n const timePeriod =\n this.direction === DateDirections.PAST\n ? 0 - Number(this.timePeriod)\n : this.timePeriod\n return this.timeOnly\n ? `timeForComparison(${timePeriod}, '${this.timeUnit}')`\n : `dateForComparison(${timePeriod}, '${this.timeUnit}')`\n }\n\n static from(obj: RelativeTimeValue | RelativeTimeValueFrom) {\n return new RelativeTimeValue(\n obj.timePeriod,\n obj.timeUnit,\n obj.direction,\n obj.timeOnly\n )\n }\n\n clone() {\n return RelativeTimeValue.from(this)\n }\n}\n\nexport interface RelativeTimeValueFrom {\n timePeriod: string\n timeUnit: DateTimeUnitValues\n direction: DateDirections\n timeOnly: boolean\n}\n\nexport function conditionValueFrom(\n obj:\n | ConditionValue\n | RelativeTimeValue\n | ({ type: 'Value' } & ConditionValueFrom)\n | ({ type: 'RelativeTime' } & RelativeTimeValueFrom)\n) {\n switch (obj.type) {\n case 'Value':\n return ConditionValue.from(obj)\n\n case 'RelativeTime':\n return RelativeTimeValue.from(obj)\n }\n}\n"],"mappings":"AAAA,SAASA,sBAAsB;AAO/B,OAAO,MAAMC,cAAc,SACjBD,sBAAsB,CAEhC;EACEE,IAAI;EACJC,KAAK;EACLC,OAAO;EAEPC,WAAWA,CAACF,KAAa,EAAEC,OAAgB,EAAE;IAC3C,IAAI,CAACD,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MACvC,MAAM,IAAIG,KAAK,CAAC,+CAA+C,CAAC;IAClE;IAEA,IAAIF,OAAO,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MAC1C,MAAM,IAAIE,KAAK,CAAC,iDAAiD,CAAC;IACpE;IAEA,KAAK,CAAC,CAAC;IAEP,IAA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AU,MAAM,IAAI,CAACC,QAAQ,IAAI;EAC5D;EAEA,OAAOjB,IAAIA,CAACC,GAA8C,EAAE;IAC1D,OAAO,IAAIc,iBAAiB,CAC1Bd,GAAG,CAACe,UAAU,EACdf,GAAG,CAACgB,QAAQ,EACZhB,GAAG,CAACiB,SAAS,EACbjB,GAAG,CAACkB,QACN,CAAC;EACH;EAEAjB,KAAKA,CAAA,EAAG;IACN,OAAOa,iBAAiB,CAACf,IAAI,CAAC,IAAI,CAAC;EACrC;AACF;AASA,OAAO,SAAS0B,kBAAkBA,CAChCzB,GAIsD,EACtD;EACA,QAAQA,GAAG,CAACR,IAAI;IACd,KAAK,OAAO;MACV,OAAOD,cAAc,CAACQ,IAAI,CAACC,GAAG,CAAC;IAEjC,KAAK,cAAc;MACjB,OAAOc,iBAAiB,CAACf,IAAI,CAACC,GAAG,CAAC;EACtC;AACF","ignoreList":[]}
1
+ {"version":3,"file":"condition-values.js","names":["ConditionValueAbstract","ConditionType","DateDirections","ConditionValue","type","value","display","constructor","Error","Value","toPresentationString","toExpression","from","obj","clone","dateUnits","YEARS","MONTHS","DAYS","timeUnits","HOURS","MINUTES","SECONDS","dateTimeUnits","RelativeTimeValue","timePeriod","timeUnit","direction","timeOnly","Object","values","map","unit","includes","RelativeTime","PAST","Number","conditionValueFrom"],"sources":["../../../src/conditions/condition-values.ts"],"sourcesContent":["import { ConditionValueAbstract } from '~/src/conditions/condition-value-abstract.js'\nimport { ConditionType, DateDirections } from '~/src/conditions/enums.js'\nimport {\n type DateTimeUnitValues,\n type DateUnits,\n type TimeUnits\n} from '~/src/conditions/types.js'\n\nexport class ConditionValue\n extends ConditionValueAbstract\n implements ConditionValueFrom\n{\n type: ConditionType.Value\n value: string\n display: string\n\n constructor(value: string, display?: string) {\n if (!value || typeof value !== 'string') {\n throw new Error(\"ConditionValue param 'value' must be a string\")\n }\n\n if (display && typeof display !== 'string') {\n throw new Error(\"ConditionValue param 'display' must be a string\")\n }\n\n super()\n\n this.type = ConditionType.Value\n this.value = value\n this.display = display ?? value\n }\n\n toPresentationString() {\n return this.display\n }\n\n toExpression() {\n return this.value\n }\n\n static from(obj: ConditionValue | ConditionValueFrom) {\n return new ConditionValue(obj.value, obj.display)\n }\n\n clone() {\n return ConditionValue.from(this)\n }\n}\n\nexport interface ConditionValueFrom {\n value: string\n display?: string\n}\n\nexport const dateUnits: DateUnits = {\n YEARS: { display: 'year(s)', value: 'years' },\n MONTHS: { display: 'month(s)', value: 'months' },\n DAYS: { display: 'day(s)', value: 'days' }\n} as const\n\nexport const timeUnits: TimeUnits = {\n HOURS: { display: 'hour(s)', value: 'hours' },\n MINUTES: { display: 'minute(s)', value: 'minutes' },\n SECONDS: { display: 'second(s)', value: 'seconds' }\n} as const\n\nexport const dateTimeUnits: DateUnits & TimeUnits = {\n ...dateUnits,\n ...timeUnits\n} as const\n\nexport class RelativeTimeValue\n extends ConditionValueAbstract\n implements RelativeTimeValueFrom\n{\n type: ConditionType.RelativeTime\n timePeriod: string\n timeUnit: DateTimeUnitValues\n direction: DateDirections\n timeOnly: boolean\n\n constructor(\n timePeriod: string,\n timeUnit: DateTimeUnitValues,\n direction: DateDirections,\n timeOnly = false\n ) {\n if (typeof timePeriod !== 'string') {\n throw new Error(\"RelativeTimeValue param 'timePeriod' must be a string\")\n }\n\n if (\n !Object.values(dateTimeUnits)\n .map((unit) => unit.value)\n .includes(timeUnit)\n ) {\n throw new Error(\n \"RelativeTimeValue param 'dateTimeUnits' must only include DateTimeUnitValues keys\"\n )\n }\n\n if (!Object.values(DateDirections).includes(direction)) {\n throw new Error(\n \"RelativeTimeValue param 'direction' must be from enum DateDirections\"\n )\n }\n\n super()\n\n this.type = ConditionType.RelativeTime\n this.timePeriod = timePeriod\n this.timeUnit = timeUnit\n this.direction = direction\n this.timeOnly = timeOnly\n }\n\n toPresentationString() {\n return `${this.timePeriod} ${this.timeUnit} ${this.direction}`\n }\n\n toExpression(): string {\n const timePeriod =\n this.direction === DateDirections.PAST\n ? 0 - Number(this.timePeriod)\n : this.timePeriod\n return this.timeOnly\n ? `timeForComparison(${timePeriod}, '${this.timeUnit}')`\n : `dateForComparison(${timePeriod}, '${this.timeUnit}')`\n }\n\n static from(obj: RelativeTimeValue | RelativeTimeValueFrom) {\n return new RelativeTimeValue(\n obj.timePeriod,\n obj.timeUnit,\n obj.direction,\n obj.timeOnly\n )\n }\n\n clone() {\n return RelativeTimeValue.from(this)\n }\n}\n\nexport interface RelativeTimeValueFrom {\n timePeriod: string\n timeUnit: DateTimeUnitValues\n direction: DateDirections\n timeOnly: boolean\n}\n\nexport function conditionValueFrom(\n obj:\n | ConditionValue\n | RelativeTimeValue\n | ({ type: ConditionType.Value } & ConditionValueFrom)\n | ({ type: ConditionType.RelativeTime } & RelativeTimeValueFrom)\n) {\n switch (obj.type) {\n case ConditionType.Value:\n return ConditionValue.from(obj)\n\n case ConditionType.RelativeTime:\n return RelativeTimeValue.from(obj)\n }\n}\n"],"mappings":"AAAA,SAASA,sBAAsB;AAC/B,SAASC,aAAa,EAAEC,cAAc;AAOtC,OAAO,MAAMC,cAAc,SACjBH,sBAAsB,CAEhC;EACEI,IAAI;EACJC,KAAK;EACLC,OAAO;EAEPC,WAAWA,CAACF,KAAa,EAAEC,OAAgB,EAAE;IAC3C,IAAI,CAACD,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;MACvC,MAAM,IAAIG,KAAK,CAAC,+CAA+C,CAAC;IAClE;IAEA,IAAIF,OAAO,IAAI,OAAOA,OAAO,KAAK,QAAQ,EAAE;MAC1C,MAAM,IAAIE,KAAK,CAAC,iDAAiD,CAAC;IACpE;IAEA,KAAK,CAAC,CAAC;IAEP,IAAI,CAACJ,IAAI,GAAGH,aAAa,CAACQ,KAAK;IAC/B,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,OAAO,GAAGA,OAAO,IAAID,KAAK;EACjC;EAEAK,oBAAoBA,CAAA,EAAG;IACrB,OAAO,IAAI,CAACJ,OA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iB,CAACZ,IAAI,CAAC,IAAI,CAAC;EACrC;AACF;AASA,OAAO,SAASyB,kBAAkBA,CAChCxB,GAIkE,EAClE;EACA,QAAQA,GAAG,CAACT,IAAI;IACd,KAAKH,aAAa,CAACQ,KAAK;MACtB,OAAON,cAAc,CAACS,IAAI,CAACC,GAAG,CAAC;IAEjC,KAAKZ,aAAa,CAACiC,YAAY;MAC7B,OAAOV,iBAAiB,CAACZ,IAAI,CAACC,GAAG,CAAC;EACtC;AACF","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"condition.js","names":["ConditionAbstract","ConditionField","getExpression","ConditionValueAbstract","Condition","field","operator","value","constructor","coordinator","Error","asFirstCondition","_asFirstCondition","conditionString","display","toPresentationString","conditionExpression","type","name","clone","from"],"sources":["../../../src/conditions/condition.ts"],"sourcesContent":["import { ConditionAbstract } from '~/src/conditions/condition-abstract.js'\nimport { ConditionField } from '~/src/conditions/condition-field.js'\nimport { getExpression } from '~/src/conditions/condition-operators.js'\nimport { ConditionValueAbstract } from '~/src/conditions/condition-value-abstract.js'\nimport {\n type ConditionValue,\n type RelativeTimeValue\n} from '~/src/conditions/condition-values.js'\nimport { type Coordinator } from '~/src/conditions/enums.js'\n\nexport class Condition extends ConditionAbstract {\n field: ConditionField\n operator: string\n value: ConditionValue | RelativeTimeValue\n\n constructor(\n field?: ConditionField,\n operator?: string,\n value?: ConditionValue | RelativeTimeValue,\n coordinator?: Coordinator\n ) {\n if (!(field instanceof ConditionField)) {\n throw new Error(\"Condition param 'field' must be ConditionField instance\")\n }\n if (typeof operator !== 'string') {\n throw new Error(\"Condition param 'operator' must be a string\")\n }\n if (!(value instanceof ConditionValueAbstract)) {\n throw new Error(\n \"Condition param 'field' must be ConditionValueAbstract instance\"\n )\n }\n\n super(coordinator)\n\n this.field = field\n this.operator = operator\n this.value = value\n }\n\n asFirstCondition() {\n this._asFirstCondition()\n return this\n }\n\n conditionString() {\n return `'${this.field.display}' ${\n this.operator\n } '${this.value.toPresentationString()}'`\n }\n\n conditionExpression() {\n return getExpression(\n this.field.type,\n this.field.name,\n this.operator,\n this.value\n )\n }\n\n clone() {\n return new Condition(\n ConditionField.from(this.field),\n this.operator,\n this.value.clone(),\n this.coordinator\n )\n }\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,cAAc;AACvB,SAASC,aAAa;AACtB,SAASC,sBAAsB;AAO/B,OAAO,MAAMC,SAAS,SAASJ,iBAAiB,CAAC;EAC/CK,KAAK;EACLC,QAAQ;EACRC,KAAK;EAELC,WAAWA,CACTH,KAAsB,EACtBC,QAAiB,EACjBC,KAA0C,EAC1CE,WAAyB,EACzB;IACA,IAAI,EAAEJ,KAAK,YAAYJ,cAAc,CAAC,EAAE;MACtC,MAAM,IAAIS,KAAK,CAAC,yDAAyD,CAAC;IAC5E;IACA,IAAI,OAAOJ,QAAQ,KAAK,QAAQ,EAAE;MAChC,MAAM,IAAII,KAAK,CAAC,6CAA6C,CAAC;IAChE;IACA,IAAI,EAAEH,KAAK,YAAYJ,sBAAsB,CAAC,EAAE;MAC9C,MAAM,IAAIO,KAAK,CACb,iEACF,CAAC;IACH;IAEA,KAAK,CAACD,WAAW,CAAC;IAElB,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;EAEAI,gBAAgBA,CAAA,EAAG;IACjB,IAAI,CAACC,iBAAiB,CAAC,CAAC;IACxB,OAAO,IAAI;EACb;EAEAC,eAAeA,CAAA,EAAG;IAChB,OAAO,IAAI,IAAI,CAACR,KAAK,CAACS,OAAO,KAC3B,IAAI,CAACR,QAAQ,KACV,IAAI,CAACC,KAAK,CAACQ,oBAAoB,CAAC,CAAC,GAAG;EAC3C;EAEAC,mBAAmBA,CAAA,EAAG;IACpB,OAAOd,aAAa,CAClB,IAAI,CAACG,KAAK,CAACY,IAAI,EACf,IAAI,CAACZ,KAAK,CAACa,IAAI,EACf,IAAI,CAACZ,QAAQ,EACb,IAAI,CAACC,KACP,CAAC;EACH;EAEAY,KAAKA,CAAA,EAAG;IACN,OAAO,IAAIf,SAAS,CAClBH,cAAc,CAACmB,IAAI,CAAC,IAAI,CAACf,KAAK,CAAC,EAC/B,IAAI,CAACC,QAAQ,EACb,IAAI,CAACC,KAAK,CAACY,KAAK,CAAC,CAAC,EAClB,IAAI,CAACV,WACP,CAAC;EACH;AACF","ignoreList":[]}
1
+ {"version":3,"file":"condition.js","names":["ConditionAbstract","ConditionField","getExpression","ConditionValueAbstract","Condition","field","operator","value","constructor","coordinator","Error","asFirstCondition","_asFirstCondition","conditionString","display","toPresentationString","conditionExpression","type","name","clone","from"],"sources":["../../../src/conditions/condition.ts"],"sourcesContent":["import { ConditionAbstract } from '~/src/conditions/condition-abstract.js'\nimport { ConditionField } from '~/src/conditions/condition-field.js'\nimport { getExpression } from '~/src/conditions/condition-operators.js'\nimport { ConditionValueAbstract } from '~/src/conditions/condition-value-abstract.js'\nimport {\n type ConditionValue,\n type RelativeTimeValue\n} from '~/src/conditions/condition-values.js'\nimport { type Coordinator, type OperatorName } from '~/src/conditions/enums.js'\n\nexport class Condition extends ConditionAbstract {\n field\n operator\n value\n\n constructor(\n field?: ConditionField,\n operator?: OperatorName,\n value?: ConditionValue | RelativeTimeValue,\n coordinator?: Coordinator\n ) {\n if (!(field instanceof ConditionField)) {\n throw new Error(\"Condition param 'field' must be ConditionField instance\")\n }\n if (typeof operator !== 'string') {\n throw new Error(\"Condition param 'operator' must be a string\")\n }\n if (!(value instanceof ConditionValueAbstract)) {\n throw new Error(\n \"Condition param 'field' must be ConditionValueAbstract instance\"\n )\n }\n\n super(coordinator)\n\n this.field = field\n this.operator = operator\n this.value = value\n }\n\n asFirstCondition() {\n this._asFirstCondition()\n return this\n }\n\n conditionString() {\n return `'${this.field.display}' ${\n this.operator\n } '${this.value.toPresentationString()}'`\n }\n\n conditionExpression() {\n return getExpression(\n this.field.type,\n this.field.name,\n this.operator,\n this.value\n )\n }\n\n clone() {\n return new Condition(\n ConditionField.from(this.field),\n this.operator,\n this.value.clone(),\n this.coordinator\n )\n }\n}\n"],"mappings":"AAAA,SAASA,iBAAiB;AAC1B,SAASC,cAAc;AACvB,SAASC,aAAa;AACtB,SAASC,sBAAsB;AAO/B,OAAO,MAAMC,SAAS,SAASJ,iBAAiB,CAAC;EAC/CK,KAAK;EACLC,QAAQ;EACRC,KAAK;EAELC,WAAWA,CACTH,KAAsB,EACtBC,QAAuB,EACvBC,KAA0C,EAC1CE,WAAyB,EACzB;IACA,IAAI,EAAEJ,KAAK,YAAYJ,cAAc,CAAC,EAAE;MACtC,MAAM,IAAIS,KAAK,CAAC,yDAAyD,CAAC;IAC5E;IACA,IAAI,OAAOJ,QAAQ,KAAK,QAAQ,EAAE;MAChC,MAAM,IAAII,KAAK,CAAC,6CAA6C,CAAC;IAChE;IACA,IAAI,EAAEH,KAAK,YAAYJ,sBAAsB,CAAC,EAAE;MAC9C,MAAM,IAAIO,KAAK,CACb,iEACF,CAAC;IACH;IAEA,KAAK,CAACD,WAAW,CAAC;IAElB,IAAI,CAACJ,KAAK,GAAGA,KAAK;IAClB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,KAAK,GAAGA,KAAK;EACpB;EAEAI,gBAAgBA,CAAA,EAAG;IACjB,IAAI,CAACC,iBAAiB,CAAC,CAAC;IACxB,OAAO,IAAI;EACb;EAEAC,eAAeA,CAAA,EAAG;IAChB,OAAO,IAAI,IAAI,CAACR,KAAK,CAACS,OAAO,KAC3B,IAAI,CAACR,QAAQ,KACV,IAAI,CAACC,KAAK,CAACQ,oBAAoB,CAAC,CAAC,GAAG;EAC3C;EAEAC,mBAAmBA,CAAA,EAAG;IACpB,OAAOd,aAAa,CAClB,IAAI,CAACG,KAAK,CAACY,IAAI,EACf,IAAI,CAACZ,KAAK,CAACa,IAAI,EACf,IAAI,CAACZ,QAAQ,EACb,IAAI,CAACC,KACP,CAAC;EACH;EAEAY,KAAKA,CAAA,EAAG;IACN,OAAO,IAAIf,SAAS,CAClBH,cAAc,CAACmB,IAAI,CAAC,IAAI,CAACf,KAAK,CAAC,EAC/B,IAAI,CAACC,QAAQ,EACb,IAAI,CAACC,KAAK,CAACY,KAAK,CAAC,CAAC,EAClB,IAAI,CAACV,WACP,CAAC;EACH;AACF","ignoreList":[]}
@@ -8,4 +8,35 @@ export let Coordinator = /*#__PURE__*/function (Coordinator) {
8
8
  Coordinator["OR"] = "or";
9
9
  return Coordinator;
10
10
  }({});
11
+ export let Operator = /*#__PURE__*/function (Operator) {
12
+ Operator["Is"] = "==";
13
+ Operator["IsNot"] = "!=";
14
+ Operator["Contains"] = "in";
15
+ Operator["IsAtLeast"] = ">=";
16
+ Operator["IsAtMost"] = "<=";
17
+ Operator["IsLessThan"] = "<";
18
+ Operator["IsMoreThan"] = ">";
19
+ return Operator;
20
+ }({});
21
+ export let OperatorName = /*#__PURE__*/function (OperatorName) {
22
+ OperatorName["Is"] = "is";
23
+ OperatorName["IsNot"] = "is not";
24
+ OperatorName["IsLongerThan"] = "is longer than";
25
+ OperatorName["IsShorterThan"] = "is shorter than";
26
+ OperatorName["HasLength"] = "has length";
27
+ OperatorName["Contains"] = "contains";
28
+ OperatorName["DoesNotContain"] = "does not contain";
29
+ OperatorName["IsAtLeast"] = "is at least";
30
+ OperatorName["IsAtMost"] = "is at most";
31
+ OperatorName["IsLessThan"] = "is less than";
32
+ OperatorName["IsMoreThan"] = "is more than";
33
+ OperatorName["IsBefore"] = "is before";
34
+ OperatorName["IsAfter"] = "is after";
35
+ return OperatorName;
36
+ }({});
37
+ export let DateDirections = /*#__PURE__*/function (DateDirections) {
38
+ DateDirections["FUTURE"] = "in the future";
39
+ DateDirections["PAST"] = "in the past";
40
+ return DateDirections;
41
+ }({});
11
42
  //# sourceMappingURL=enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.js","names":["ConditionType","Coordinator"],"sources":["../../../src/conditions/enums.ts"],"sourcesContent":["export enum ConditionType {\n Value = 'Value',\n RelativeTime = 'RelativeTime'\n}\n\nexport enum Coordinator {\n AND = 'and',\n OR = 'or'\n}\n"],"mappings":"AAAA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAKzB,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"enums.js","names":["ConditionType","Coordinator","Operator","OperatorName","DateDirections"],"sources":["../../../src/conditions/enums.ts"],"sourcesContent":["export enum ConditionType {\n Value = 'Value',\n RelativeTime = 'RelativeTime'\n}\n\nexport enum Coordinator {\n AND = 'and',\n OR = 'or'\n}\n\nexport enum Operator {\n Is = '==',\n IsNot = '!=',\n Contains = 'in',\n IsAtLeast = '>=',\n IsAtMost = '<=',\n IsLessThan = '<',\n IsMoreThan = '>'\n}\n\nexport enum OperatorName {\n Is = 'is',\n IsNot = 'is not',\n IsLongerThan = 'is longer than',\n IsShorterThan = 'is shorter than',\n HasLength = 'has length',\n Contains = 'contains',\n DoesNotContain = 'does not contain',\n IsAtLeast = 'is at least',\n IsAtMost = 'is at most',\n IsLessThan = 'is less than',\n IsMoreThan = 'is more than',\n IsBefore = 'is before',\n IsAfter = 'is after'\n}\n\nexport enum DateDirections {\n FUTURE = 'in the future',\n PAST = 'in the past'\n}\n"],"mappings":"AAAA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAKzB,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAKvB,WAAYC,QAAQ,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAUpB,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAgBxB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  export { getExpression, getOperatorConfig, getOperatorNames, absoluteDateOrTimeOperatorNames, relativeDateOrTimeOperatorNames } from "./condition-operators.js";
2
- export { timeUnits, dateUnits, dateTimeUnits, ConditionValue, DateDirections, RelativeTimeValue, conditionValueFrom } from "./condition-values.js";
2
+ export { timeUnits, dateUnits, dateTimeUnits, ConditionValue, RelativeTimeValue, conditionValueFrom } from "./condition-values.js";
3
3
  export { ConditionField } from "./condition-field.js";
4
4
  export { Condition } from "./condition.js";
5
5
  export { ConditionRef } from "./condition-ref.js";
@@ -7,5 +7,5 @@ export { ConditionGroup } from "./condition-group.js";
7
7
  export { ConditionsModel } from "./condition-model.js";
8
8
  export { ConditionGroupDef } from "./condition-group-def.js";
9
9
  export { toExpression, toPresentationString } from "./helpers.js";
10
- export { ConditionType, Coordinator } from "./enums.js";
10
+ export { ConditionType, Coordinator, DateDirections, Operator, OperatorName } from "./enums.js";
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getExpression","getOperatorConfig","getOperatorNames","absoluteDateOrTimeOperatorNames","relativeDateOrTimeOperatorNames","timeUnits","dateUnits","dateTimeUnits","ConditionValue","DateDirections","RelativeTimeValue","conditionValueFrom","ConditionField","Condition","ConditionRef","ConditionGroup","ConditionsModel","ConditionGroupDef","toExpression","toPresentationString","ConditionType","Coordinator"],"sources":["../../../src/conditions/index.ts"],"sourcesContent":["export {\n getExpression,\n getOperatorConfig,\n getOperatorNames,\n absoluteDateOrTimeOperatorNames,\n relativeDateOrTimeOperatorNames\n} from '~/src/conditions/condition-operators.js'\n\nexport {\n timeUnits,\n dateUnits,\n dateTimeUnits,\n ConditionValue,\n DateDirections,\n RelativeTimeValue,\n conditionValueFrom\n} from '~/src/conditions/condition-values.js'\n\nexport { ConditionField } from '~/src/conditions/condition-field.js'\nexport { Condition } from '~/src/conditions/condition.js'\nexport { ConditionRef } from '~/src/conditions/condition-ref.js'\nexport { ConditionGroup } from '~/src/conditions/condition-group.js'\nexport { ConditionsModel } from '~/src/conditions/condition-model.js'\nexport { ConditionGroupDef } from '~/src/conditions/condition-group-def.js'\nexport { toExpression, toPresentationString } from '~/src/conditions/helpers.js'\n\nexport { ConditionType, Coordinator } from '~/src/conditions/enums.js'\n"],"mappings":"AAAA,SACEA,aAAa,EACbC,iBAAiB,EACjBC,gBAAgB,EAChBC,+BAA+B,EAC/BC,+BAA+B;AAGjC,SACEC,SAAS,EACTC,SAAS,EACTC,aAAa,EACbC,cAAc,EACdC,cAAc,EACdC,iBAAiB,EACjBC,kBAAkB;AAGpB,SAASC,cAAc;AACvB,SAASC,SAAS;AAClB,SAASC,YAAY;AACrB,SAASC,cAAc;AACvB,SAASC,eAAe;AACxB,SAASC,iBAAiB;AAC1B,SAASC,YAAY,EAAEC,oBAAoB;AAE3C,SAASC,aAAa,EAAEC,WAAW","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["getExpression","getOperatorConfig","getOperatorNames","absoluteDateOrTimeOperatorNames","relativeDateOrTimeOperatorNames","timeUnits","dateUnits","dateTimeUnits","ConditionValue","RelativeTimeValue","conditionValueFrom","ConditionField","Condition","ConditionRef","ConditionGroup","ConditionsModel","ConditionGroupDef","toExpression","toPresentationString","ConditionType","Coordinator","DateDirections","Operator","OperatorName"],"sources":["../../../src/conditions/index.ts"],"sourcesContent":["export {\n getExpression,\n getOperatorConfig,\n getOperatorNames,\n absoluteDateOrTimeOperatorNames,\n relativeDateOrTimeOperatorNames\n} from '~/src/conditions/condition-operators.js'\n\nexport {\n timeUnits,\n dateUnits,\n dateTimeUnits,\n ConditionValue,\n RelativeTimeValue,\n conditionValueFrom\n} from '~/src/conditions/condition-values.js'\n\nexport { ConditionField } from '~/src/conditions/condition-field.js'\nexport { Condition } from '~/src/conditions/condition.js'\nexport { ConditionRef } from '~/src/conditions/condition-ref.js'\nexport { ConditionGroup } from '~/src/conditions/condition-group.js'\nexport { ConditionsModel } from '~/src/conditions/condition-model.js'\nexport { ConditionGroupDef } from '~/src/conditions/condition-group-def.js'\nexport { toExpression, toPresentationString } from '~/src/conditions/helpers.js'\n\nexport {\n ConditionType,\n Coordinator,\n DateDirections,\n Operator,\n OperatorName\n} from '~/src/conditions/enums.js'\n"],"mappings":"AAAA,SACEA,aAAa,EACbC,iBAAiB,EACjBC,gBAAgB,EAChBC,+BAA+B,EAC/BC,+BAA+B;AAGjC,SACEC,SAAS,EACTC,SAAS,EACTC,aAAa,EACbC,cAAc,EACdC,iBAAiB,EACjBC,kBAAkB;AAGpB,SAASC,cAAc;AACvB,SAASC,SAAS;AAClB,SAASC,YAAY;AACrB,SAASC,cAAc;AACvB,SAASC,eAAe;AACxB,SAASC,iBAAiB;AAC1B,SAASC,YAAY,EAAEC,oBAAoB;AAE3C,SACEC,aAAa,EACbC,WAAW,EACXC,cAAc,EACdC,QAAQ,EACRC,YAAY","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../src/conditions/types.ts"],"sourcesContent":["import { type ConditionGroup } from '~/src/conditions/condition-group.js'\nimport { type ConditionRef } from '~/src/conditions/condition-ref.js'\nimport { type Condition } from '~/src/conditions/condition.js'\n\nexport type ConditionsArray = (Condition | ConditionGroup | ConditionRef)[]\n\nexport type DateTimeUnitValues =\n | 'years'\n | 'months'\n | 'days'\n | 'hours'\n | 'minutes'\n | 'seconds'\n\nexport interface DateUnits {\n YEARS: { display: 'year(s)'; value: 'years' }\n MONTHS: { display: 'month(s)'; value: 'months' }\n DAYS: { display: 'day(s)'; value: 'days' }\n}\n\nexport interface TimeUnits {\n HOURS: { display: 'hour(s)'; value: 'hours' }\n MINUTES: { display: 'minute(s)'; value: 'minutes' }\n SECONDS: { display: 'second(s)'; value: 'seconds' }\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../src/conditions/types.ts"],"sourcesContent":["import { type ConditionalComponentsDef } from '~/src/components/types.js'\nimport { type ConditionGroup } from '~/src/conditions/condition-group.js'\nimport { type ConditionRef } from '~/src/conditions/condition-ref.js'\nimport {\n type ConditionValue,\n type RelativeTimeValue\n} from '~/src/conditions/condition-values.js'\nimport { type Condition } from '~/src/conditions/condition.js'\nimport { type OperatorName } from '~/src/conditions/enums.js'\n\nexport type ConditionsArray = (Condition | ConditionGroup | ConditionRef)[]\n\nexport type DateTimeUnitValues =\n | 'years'\n | 'months'\n | 'days'\n | 'hours'\n | 'minutes'\n | 'seconds'\n\nexport interface DateUnits {\n YEARS: { display: 'year(s)'; value: 'years' }\n MONTHS: { display: 'month(s)'; value: 'months' }\n DAYS: { display: 'day(s)'; value: 'days' }\n}\n\nexport interface TimeUnits {\n HOURS: { display: 'hour(s)'; value: 'hours' }\n MINUTES: { display: 'minute(s)'; value: 'minutes' }\n SECONDS: { display: 'second(s)'; value: 'seconds' }\n}\n\nexport interface OperatorDefinition {\n units?: DateUnits | TimeUnits\n expression: (\n component: Pick<ConditionalComponentsDef, 'type' | 'name'>,\n conditionValue: ConditionValue | RelativeTimeValue\n ) => string\n}\n\nexport type Conditionals = Record<OperatorName, OperatorDefinition>\n"],"mappings":"","ignoreList":[]}
@@ -1,3 +1,4 @@
1
1
  import { type ComponentDef } from '../components/types.js';
2
2
  export declare const ComponentTypes: ComponentDef[];
3
+ export declare const ConditionalComponentTypes: import("../components/types.js").ConditionalComponentsDef[];
3
4
  //# sourceMappingURL=component-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,eAAO,MAAM,cAAc,EAAE,YAAY,EAgNxC,CAAA"}
1
+ {"version":3,"file":"component-types.d.ts","sourceRoot":"","sources":["../../../src/components/component-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,eAAO,MAAM,cAAc,EAAE,YAAY,EAmKxC,CAAA;AAED,eAAO,MAAM,yBAAyB,gEACM,CAAA"}
@@ -2,12 +2,9 @@ export declare enum ComponentType {
2
2
  TextField = "TextField",
3
3
  MultilineTextField = "MultilineTextField",
4
4
  YesNoField = "YesNoField",
5
- DateField = "DateField",
6
5
  TimeField = "TimeField",
7
- DateTimeField = "DateTimeField",
8
6
  DatePartsField = "DatePartsField",
9
7
  MonthYearField = "MonthYearField",
10
- DateTimePartsField = "DateTimePartsField",
11
8
  SelectField = "SelectField",
12
9
  AutocompleteField = "AutocompleteField",
13
10
  RadiosField = "RadiosField",
@@ -16,12 +13,10 @@ export declare enum ComponentType {
16
13
  UkAddressField = "UkAddressField",
17
14
  TelephoneNumberField = "TelephoneNumberField",
18
15
  EmailAddressField = "EmailAddressField",
19
- FileUploadField = "FileUploadField",
20
16
  Html = "Html",
21
17
  InsetText = "InsetText",
22
18
  Details = "Details",
23
- List = "List",
24
- WebsiteField = "WebsiteField"
19
+ List = "List"
25
20
  }
26
21
  export declare enum ComponentSubType {
27
22
  Content = "content",
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/components/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,YAAY,iBAAiB;CAC9B;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/components/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,kBAAkB,uBAAuB;IACzC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,WAAW,gBAAgB;IAC3B,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,iBAAiB,sBAAsB;IACvC,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,SAAS,cAAc;CACxB"}
@@ -0,0 +1,30 @@
1
+ import { type InputFieldsComponentsDef, type ComponentDef, type ConditionalComponentsDef, type ContentComponentsDef, type HtmlComponent, type InsetTextComponent, type ListComponentsDef, type SelectionComponentsDef, type EditorComponentsDef } from '../components/types.js';
2
+ /**
3
+ * Filter known components with support for conditions
4
+ */
5
+ export declare function hasConditionSupport(component?: Partial<ComponentDef>): component is ConditionalComponentsDef;
6
+ /**
7
+ * Filter known components with content fields
8
+ */
9
+ export declare function hasContentField(component?: Partial<ComponentDef>): component is ContentComponentsDef;
10
+ /**
11
+ * Filter known components with text editor
12
+ */
13
+ export declare function hasEditor(component?: Partial<ComponentDef>): component is EditorComponentsDef;
14
+ /**
15
+ * Filter known components with input fields
16
+ */
17
+ export declare function hasInputField(component?: Partial<ComponentDef>): component is InputFieldsComponentsDef;
18
+ /**
19
+ * Filter known components with lists
20
+ */
21
+ export declare function hasListField(component?: Partial<ComponentDef>): component is ListComponentsDef;
22
+ /**
23
+ * Filter known components with selection fields
24
+ */
25
+ export declare function hasSelectionFields(component?: Partial<ComponentDef>): component is SelectionComponentsDef;
26
+ /**
27
+ * Filter known components with titles
28
+ */
29
+ export declare function hasTitle(component?: Partial<ComponentDef>): component is Exclude<ComponentDef, InsetTextComponent | HtmlComponent>;
30
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/components/helpers.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAA;AAElC;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,wBAAwB,CAavC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,oBAAoB,CASnC;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,mBAAmB,CAmBlC;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,wBAAwB,CAcvC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,iBAAiB,CAUhC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,sBAAsB,CASrC;AAED;;GAEG;AACH,wBAAgB,QAAQ,CACtB,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAChC,SAAS,IAAI,OAAO,CAAC,YAAY,EAAE,kBAAkB,GAAG,aAAa,CAAC,CAGxE"}
@@ -1,3 +1,4 @@
1
- export { ComponentTypes } from '../components/component-types.js';
1
+ export { ComponentTypes, ConditionalComponentTypes } from '../components/component-types.js';
2
+ export { hasConditionSupport, hasContentField, hasEditor, hasInputField, hasListField, hasSelectionFields, hasTitle } from '../components/helpers.js';
2
3
  export { ComponentType, ComponentSubType } from '../components/enums.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,yBAAyB,EAC1B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,SAAS,EACT,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACT,MAAM,6BAA6B,CAAA;AAEpC,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA"}
@@ -1,9 +1,5 @@
1
1
  import { type ComponentSubType, type ComponentType } from '../components/enums.js';
2
- export interface ConditionalComponent {
3
- name: string;
4
- title: string;
5
- subType: ComponentSubType.Field;
6
- }
2
+ export type ConditionalComponentType = Extract<ComponentType, typeof ComponentType.CheckboxesField | typeof ComponentType.DatePartsField | typeof ComponentType.EmailAddressField | typeof ComponentType.MultilineTextField | typeof ComponentType.NumberField | typeof ComponentType.TextField | typeof ComponentType.TimeField | typeof ComponentType.YesNoField>;
7
3
  export interface ContentOptions {
8
4
  condition?: string;
9
5
  }
@@ -11,7 +7,7 @@ export interface ContentOptions {
11
7
  * Types for Components JSON structure which are expected by engine and turned into actual form input/content/lists
12
8
  */
13
9
  interface TextFieldBase {
14
- type: ComponentType.EmailAddressField | ComponentType.MultilineTextField | ComponentType.NumberField | ComponentType.TelephoneNumberField | ComponentType.TextField | ComponentType.UkAddressField | ComponentType.WebsiteField | ComponentType.YesNoField;
10
+ type: ComponentType.EmailAddressField | ComponentType.MultilineTextField | ComponentType.NumberField | ComponentType.TelephoneNumberField | ComponentType.TextField | ComponentType.UkAddressField | ComponentType.YesNoField;
15
11
  subType?: ComponentSubType.Field;
16
12
  name: string;
17
13
  title: string;
@@ -78,7 +74,7 @@ interface ContentFieldBase {
78
74
  schema?: object;
79
75
  }
80
76
  interface DateFieldBase {
81
- type: ComponentType.DateField | ComponentType.DatePartsField | ComponentType.DateTimeField | ComponentType.DateTimePartsField | ComponentType.MonthYearField | ComponentType.TimeField;
77
+ type: ComponentType.DatePartsField | ComponentType.MonthYearField | ComponentType.TimeField;
82
78
  subType?: ComponentSubType.Field;
83
79
  name: string;
84
80
  title: string;
@@ -105,12 +101,6 @@ export interface EmailAddressFieldComponent extends TextFieldBase {
105
101
  export interface NumberFieldComponent extends NumberFieldBase {
106
102
  type: ComponentType.NumberField;
107
103
  }
108
- export interface WebsiteFieldComponent extends TextFieldBase {
109
- type: ComponentType.WebsiteField;
110
- options: TextFieldBase['options'] & {
111
- customValidationMessage?: string;
112
- };
113
- }
114
104
  export interface TelephoneNumberFieldComponent extends TextFieldBase {
115
105
  type: ComponentType.TelephoneNumberField;
116
106
  options: TextFieldBase['options'] & {
@@ -132,40 +122,15 @@ export interface MultilineTextFieldComponent extends TextFieldBase {
132
122
  min?: number;
133
123
  };
134
124
  }
135
- export interface FileUploadFieldComponent {
136
- type: ComponentType.FileUploadField;
137
- subType?: ComponentSubType.Field;
138
- name: string;
139
- title: string;
140
- hint: string;
141
- options: {
142
- required?: boolean;
143
- hideTitle?: boolean;
144
- multiple?: boolean;
145
- classes?: string;
146
- exposeToContext?: boolean;
147
- imageQualityPlayback?: boolean;
148
- };
149
- schema: object;
150
- }
151
125
  export interface UkAddressFieldComponent extends TextFieldBase {
152
126
  type: ComponentType.UkAddressField;
153
127
  }
154
- export interface DateFieldComponent extends DateFieldBase {
155
- type: ComponentType.DateField;
156
- }
157
- export interface DateTimeFieldComponent extends DateFieldBase {
158
- type: ComponentType.DateTimeField;
159
- }
160
128
  export interface DatePartsFieldFieldComponent extends DateFieldBase {
161
129
  type: ComponentType.DatePartsField;
162
130
  }
163
131
  export interface MonthYearFieldComponent extends DateFieldBase {
164
132
  type: ComponentType.MonthYearField;
165
133
  }
166
- export interface DateTimePartsFieldComponent extends DateFieldBase {
167
- type: ComponentType.DateTimePartsField;
168
- }
169
134
  export interface TimeFieldComponent extends DateFieldBase {
170
135
  type: ComponentType.TimeField;
171
136
  }
@@ -200,9 +165,12 @@ export interface SelectFieldComponent extends ListFieldBase {
200
165
  autocomplete?: string;
201
166
  };
202
167
  }
203
- export type ComponentDef = InsetTextComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | DateFieldComponent | DatePartsFieldFieldComponent | MonthYearFieldComponent | DateTimeFieldComponent | DateTimePartsFieldComponent | DetailsComponent | EmailAddressFieldComponent | FileUploadFieldComponent | HtmlComponent | ListComponent | MultilineTextFieldComponent | NumberFieldComponent | RadiosFieldComponent | SelectFieldComponent | TelephoneNumberFieldComponent | TextFieldComponent | TimeFieldComponent | UkAddressFieldComponent | YesNoFieldComponent | WebsiteFieldComponent;
204
- export type InputFieldsComponentsDef = TextFieldComponent | EmailAddressFieldComponent | NumberFieldComponent | MultilineTextFieldComponent | TelephoneNumberFieldComponent | YesNoFieldComponent | FileUploadFieldComponent | DateFieldComponent | DateTimeFieldComponent | DateTimePartsFieldComponent | MonthYearFieldComponent | TimeFieldComponent | UkAddressFieldComponent | WebsiteFieldComponent;
168
+ export type ComponentDef = InsetTextComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | DatePartsFieldFieldComponent | MonthYearFieldComponent | DetailsComponent | EmailAddressFieldComponent | HtmlComponent | ListComponent | MultilineTextFieldComponent | NumberFieldComponent | RadiosFieldComponent | SelectFieldComponent | TelephoneNumberFieldComponent | TextFieldComponent | TimeFieldComponent | UkAddressFieldComponent | YesNoFieldComponent;
169
+ export type InputFieldsComponentsDef = TextFieldComponent | EmailAddressFieldComponent | NumberFieldComponent | MultilineTextFieldComponent | TelephoneNumberFieldComponent | YesNoFieldComponent | MonthYearFieldComponent | TimeFieldComponent | UkAddressFieldComponent;
205
170
  export type ContentComponentsDef = DetailsComponent | HtmlComponent | InsetTextComponent | ListComponent;
171
+ export type EditorComponentsDef = TextFieldComponent | EmailAddressFieldComponent | TelephoneNumberFieldComponent | MultilineTextFieldComponent | NumberFieldComponent | AutocompleteFieldComponent | SelectFieldComponent | RadiosFieldComponent | CheckboxesFieldComponent | ListComponent | DetailsComponent | HtmlComponent | InsetTextComponent | DatePartsFieldFieldComponent;
206
172
  export type ListComponentsDef = ListComponent | AutocompleteFieldComponent | CheckboxesFieldComponent | RadiosFieldComponent | SelectFieldComponent;
173
+ export type SelectionComponentsDef = CheckboxesFieldComponent | RadiosFieldComponent | SelectFieldComponent | YesNoFieldComponent;
174
+ export type ConditionalComponentsDef = CheckboxesFieldComponent | DatePartsFieldFieldComponent | EmailAddressFieldComponent | MultilineTextFieldComponent | NumberFieldComponent | TextFieldComponent | TimeFieldComponent | YesNoFieldComponent;
207
175
  export {};
208
176
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EACnB,MAAM,2BAA2B,CAAA;AAElC,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,UAAU,aAAa;IACrB,IAAI,EACA,aAAa,CAAC,iBAAiB,GAC/B,aAAa,CAAC,kBAAkB,GAChC,aAAa,CAAC,WAAW,GACzB,aAAa,CAAC,oBAAoB,GAClC,aAAa,CAAC,SAAS,GACvB,aAAa,CAAC,cAAc,GAC5B,aAAa,CAAC,YAAY,GAC1B,aAAa,CAAC,UAAU,CAAA;IAC5B,OAAO,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAA;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,OAAO,CAAA;QACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,YAAY,CAAC,EAAE,OAAO,CAAA;QACtB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,eAAe,CAAC,EAAE,OAAO,CAAA;KAC1B,CAAA;IACD,MAAM,EAAE;QACN,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MA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AAkB,GAClB,0BAA0B,GAC1B,oBAAoB,GACpB,2BAA2B,GAC3B,6BAA6B,GAC7B,mBAAmB,GACnB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,CAAA;AAG3B,MAAM,MAAM,oBAAoB,GAC5B,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,aAAa,CAAA;AAGjB,MAAM,MAAM,mBAAmB,GAC3B,kBAAkB,GAClB,0BAA0B,GAC1B,6BAA6B,GAC7B,2BAA2B,GAC3B,oBAAoB,GACpB,0BAA0B,GAC1B,oBAAoB,GACpB,oBAAoB,GACpB,wBAAwB,GACxB,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,4BAA4B,CAAA;AAGhC,MAAM,MAAM,iBAAiB,GACzB,aAAa,GACb,0BAA0B,GAC1B,wBAAwB,GACxB,oBAAoB,GACpB,oBAAoB,CAAA;AAGxB,MAAM,MAAM,sBAAsB,GAC9B,wBAAwB,GACxB,oBAAoB,GACpB,oBAAoB,GACpB,mBAAmB,CAAA;AAGvB,MAAM,MAAM,wBAAwB,GAChC,wBAAwB,GACxB,4BAA4B,GAC5B,0BAA0B,GAC1B,2BAA2B,GAC3B,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,mBAAmB,CAAA"}
@@ -1,12 +1,12 @@
1
- import { type ComponentType } from '../components/enums.js';
1
+ import { type ConditionalComponentType } from '../components/types.js';
2
2
  export declare class ConditionField {
3
- name: string;
4
- type: ComponentType;
5
- display: string;
6
- constructor(name: string, type: ComponentType, display: string);
3
+ name: any;
4
+ type: any;
5
+ display: any;
6
+ constructor(name?: string, type?: ConditionalComponentType, display?: string);
7
7
  static from(obj: {
8
8
  name: string;
9
- type: ComponentType;
9
+ type: ConditionalComponentType;
10
10
  display: string;
11
11
  }): ConditionField;
12
12
  }
@@ -1 +1 @@
1
- {"version":3,"file":"condition-field.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,qBAAa,cAAc;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,aAAa,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;gBAEH,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM;IAkB9D,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,aAAa,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CAGxE"}
1
+ {"version":3,"file":"condition-field.d.ts","sourceRoot":"","sources":["../../../src/conditions/condition-field.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAA;AAEzE,qBAAa,cAAc;IACzB,IAAI,MAAA;IACJ,IAAI,MAAA;IACJ,OAAO,MAAA;gBAGL,IAAI,CAAC,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,MAAM;IAyBlB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,wBAAwB,CAAA;QAC9B,OAAO,EAAE,MAAM,CAAA;KAChB;CAGF"}