@nascentdigital/funnel-core 6.1.1 → 6.1.2

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.
@@ -8,6 +8,7 @@ export declare class Field<TSchema extends Schema.Field.Type = Schema.Field.Type
8
8
  readonly id: string;
9
9
  readonly name: string;
10
10
  readonly required: boolean;
11
+ readonly tags: ReadonlySet<string>;
11
12
  private readonly publishedValue;
12
13
  private _initialValue;
13
14
  private _value;
@@ -75,6 +76,7 @@ export declare namespace Field {
75
76
  initialValue?: Value<TSchema>;
76
77
  required: boolean;
77
78
  customValidator?: FieldValidator;
79
+ tags?: string[] | string;
78
80
  };
79
81
  type Value<TSchema extends Schema.Field.Type = Schema.Field.Type> = Schema.Field.Data<TSchema>;
80
82
  interface Event extends EventBus.Event<'Field', Event.Type> {
@@ -85,4 +87,7 @@ export declare namespace Field {
85
87
  function filter(event: EventBus.Event): event is Event;
86
88
  function create(event: EventBus.Args<Event>): Event;
87
89
  }
90
+ const Tag: {
91
+ readonly config: "config";
92
+ };
88
93
  }
@@ -51,6 +51,7 @@ class Field {
51
51
  this.name = args.name;
52
52
  this.required = args.required;
53
53
  this.publishedValue = args.publishedValue;
54
+ this.tags = new Set(utils_1.ArrayUtils.coerce(args.tags));
54
55
  this._initialValue = (_a = args.initialValue) !== null && _a !== void 0 ? _a : this.defaultValue;
55
56
  this._value = this._initialValue;
56
57
  this._editing = false;
@@ -343,4 +344,8 @@ exports.Field = Field;
343
344
  }
344
345
  Event.create = create;
345
346
  })(Event = Field.Event || (Field.Event = {}));
347
+ // tags
348
+ Field.Tag = {
349
+ config: 'config'
350
+ };
346
351
  })(Field || (exports.Field = Field = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nascentdigital/funnel-core",
3
- "version": "6.1.1",
3
+ "version": "6.1.2",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/nascentdigital/funnel.git",
6
6
  "directory": "libs/core"
@@ -65,5 +65,5 @@
65
65
  "jest-tsd": "^0.2.2",
66
66
  "ts-jest": "^29.3.2"
67
67
  },
68
- "gitHead": "697c3651dedb43a6e6ff373a495cb29c7e7e1fc6"
68
+ "gitHead": "d72a93d505884f030d595ecf66c64351ebfc8ed1"
69
69
  }