@ekzo-dev/bootstrap-addons 5.2.20 → 5.2.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ekzo-dev/bootstrap-addons",
3
3
  "description": "Aurelia Bootstrap additional component",
4
- "version": "5.2.20",
4
+ "version": "5.2.21",
5
5
  "homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
6
6
  "repository": {
7
7
  "type": "git",
@@ -17,6 +17,10 @@ interface IDuration {
17
17
  seconds?: string;
18
18
  }
19
19
 
20
+ /**
21
+ * https://github.com/whatwg/html/issues/5488
22
+ * https://github.com/tc39/proposal-intl-duration-format
23
+ */
20
24
  @customElement({
21
25
  name: 'bs-duration-input',
22
26
  template,
@@ -190,9 +190,16 @@ export class BsJsonInput {
190
190
  }
191
191
 
192
192
  #initAjv($schema: string, ajvOptions: Options): Ajv {
193
+ const regExp = (pattern: string) => new RegExp(pattern, 'v');
194
+
195
+ regExp.code = 'regexp';
196
+
193
197
  const options: Options = {
194
198
  strict: false,
195
199
  multipleOfPrecision: 2,
200
+ code: {
201
+ regExp,
202
+ },
196
203
  ...ajvOptions,
197
204
  };
198
205
  let ajv: Ajv;