@ekzo-dev/bootstrap-addons 5.2.21 → 5.2.23
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.
|
|
4
|
+
"version": "5.2.23",
|
|
5
5
|
"homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -15,7 +15,7 @@ const Overview: Story = (args): StoryFnAureliaReturnType => ({
|
|
|
15
15
|
|
|
16
16
|
Overview.args = {
|
|
17
17
|
jsonSchema: {
|
|
18
|
-
$schema: '
|
|
18
|
+
$schema: 'https://json-schema.org/draft/2020-12/schema',
|
|
19
19
|
type: 'object',
|
|
20
20
|
properties: {
|
|
21
21
|
enum: {
|
|
@@ -27,6 +27,11 @@ import addFormats from 'ajv-formats';
|
|
|
27
27
|
import { bindable, BindingMode, customElement } from 'aurelia';
|
|
28
28
|
import { JSONValue, parsePath } from 'immutable-json-patch';
|
|
29
29
|
|
|
30
|
+
const patternMap: Record<string, string> = {
|
|
31
|
+
'^[A-Za-z_][-A-Za-z0-9._]*$': '^[A-Za-z_][\\-A-Za-z0-9._]*$',
|
|
32
|
+
'^[A-Za-z][-A-Za-z0-9.:_]*$': '^[A-Za-z][\\-A-Za-z0-9.:_]*$',
|
|
33
|
+
};
|
|
34
|
+
|
|
30
35
|
@customElement({
|
|
31
36
|
name: 'bs-json-input',
|
|
32
37
|
template,
|
|
@@ -190,7 +195,8 @@ export class BsJsonInput {
|
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
#initAjv($schema: string, ajvOptions: Options): Ajv {
|
|
193
|
-
|
|
198
|
+
// some regexp's in 2019-09/2020-12 meta-schemas are not compatible with 'v' flag, so update them
|
|
199
|
+
const regExp = (pattern: string) => new RegExp(patternMap[pattern] ?? pattern, 'v');
|
|
194
200
|
|
|
195
201
|
regExp.code = 'regexp';
|
|
196
202
|
|