@htmlbricks/hb-input-number 0.20.17 → 0.50.0-alpha.0
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/main.iife.js +75 -0
- package/{release/manifest.json → manifest.json} +34 -9
- package/package.json +14 -78
- package/types/webcomponent.type.d.json +76 -0
- package/types/webcomponent_events.type.d.json +66 -0
- package/LICENSE.md +0 -68
- package/README.md +0 -2
- package/extra/docs.ts +0 -132
- package/release/docs.js +0 -127
- package/release/docs.js.map +0 -1
- package/release/docs.ts +0 -132
- package/release/release.js +0 -2
- package/release/release.js.map +0 -1
- package/release/webcomponent.type.d.ts +0 -48
package/extra/docs.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
|
-
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
-
|
|
4
|
-
export const storybookArgs = {
|
|
5
|
-
schemaentry: { control: { type: "object" } },
|
|
6
|
-
show_validation: { control: { type: "boolean" } },
|
|
7
|
-
set_valid: { control: { type: "boolean" } },
|
|
8
|
-
set_value: { control: { type: "boolean" } },
|
|
9
|
-
setValid: { action: "setValid" },
|
|
10
|
-
setValue: { action: "setValue" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const cssVars: CssVar[] = [
|
|
14
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
15
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
16
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
17
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
18
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
19
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
20
|
-
];
|
|
21
|
-
export const cssParts: CssPart[] = [{ name: "invalid-feedback", description: "" }];
|
|
22
|
-
export const htmlSlots: HtmlSlot[] = [];
|
|
23
|
-
export const i18nLanguages: i18nLang[] = [];
|
|
24
|
-
|
|
25
|
-
export const styleSetup: StyleSetup = {
|
|
26
|
-
vars: cssVars,
|
|
27
|
-
parts: cssParts,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const examples: { name: string; description?: string; data: Component }[] = [
|
|
31
|
-
{
|
|
32
|
-
name: "required",
|
|
33
|
-
data: {
|
|
34
|
-
schemaentry: {
|
|
35
|
-
placeholder: "Insert your last name here...3",
|
|
36
|
-
id: "lastName",
|
|
37
|
-
required: true,
|
|
38
|
-
label: "Last Name",
|
|
39
|
-
validationTip: "This field cannot be empty.",
|
|
40
|
-
value: 4,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "withmax",
|
|
46
|
-
data: {
|
|
47
|
-
schemaentry: {
|
|
48
|
-
placeholder: "Insert your last name here...",
|
|
49
|
-
id: "lastName",
|
|
50
|
-
required: true,
|
|
51
|
-
label: "Last Name",
|
|
52
|
-
validationTip: "This field cannot be empty.",
|
|
53
|
-
params: { min: 3 },
|
|
54
|
-
value: 4,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "withmin",
|
|
60
|
-
data: {
|
|
61
|
-
schemaentry: {
|
|
62
|
-
placeholder: "Insert your last name here...",
|
|
63
|
-
id: "lastName",
|
|
64
|
-
required: true,
|
|
65
|
-
label: "Last Name",
|
|
66
|
-
validationTip: "This field cannot be empty.",
|
|
67
|
-
params: { max: 8 },
|
|
68
|
-
value: 4,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "withminmax",
|
|
74
|
-
data: {
|
|
75
|
-
schemaentry: {
|
|
76
|
-
placeholder: "Insert your last name here...",
|
|
77
|
-
id: "lastName",
|
|
78
|
-
required: true,
|
|
79
|
-
label: "Last Name",
|
|
80
|
-
validationTip: "This field cannot be empty.",
|
|
81
|
-
params: { min: 3, max: 10 },
|
|
82
|
-
value: 4,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "withzero",
|
|
88
|
-
data: {
|
|
89
|
-
schemaentry: {
|
|
90
|
-
placeholder: "Insert your last name here...",
|
|
91
|
-
id: "lastName",
|
|
92
|
-
label: "Last Name",
|
|
93
|
-
validationTip: "This field cannot be empty.",
|
|
94
|
-
value: 0,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "withzerorequired",
|
|
100
|
-
data: {
|
|
101
|
-
schemaentry: {
|
|
102
|
-
placeholder: "Insert your last name here...",
|
|
103
|
-
id: "lastName",
|
|
104
|
-
required: true,
|
|
105
|
-
label: "Last Name",
|
|
106
|
-
validationTip: "This field cannot be empty.",
|
|
107
|
-
value: 0,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
113
|
-
definitions: null as any,
|
|
114
|
-
storybookArgs,
|
|
115
|
-
styleSetup,
|
|
116
|
-
author: null as any,
|
|
117
|
-
contributors: [],
|
|
118
|
-
owner: null as any,
|
|
119
|
-
htmlSlots,
|
|
120
|
-
i18n: i18nLanguages,
|
|
121
|
-
examples,
|
|
122
|
-
screenshots: [],
|
|
123
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
124
|
-
readmePath: "README.md",
|
|
125
|
-
name: "hb-input-number",
|
|
126
|
-
category: "input",
|
|
127
|
-
tags: ["input"],
|
|
128
|
-
size: {},
|
|
129
|
-
iifePath: "release/release.js",
|
|
130
|
-
repoName: "@htmlbricks/hb-input-number",
|
|
131
|
-
version: null as any,
|
|
132
|
-
};
|
package/release/docs.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
export var storybookArgs = {
|
|
2
|
-
schemaentry: { control: { type: "object" } },
|
|
3
|
-
show_validation: { control: { type: "boolean" } },
|
|
4
|
-
set_valid: { control: { type: "boolean" } },
|
|
5
|
-
set_value: { control: { type: "boolean" } },
|
|
6
|
-
setValid: { action: "setValid" },
|
|
7
|
-
setValue: { action: "setValue" }
|
|
8
|
-
};
|
|
9
|
-
var cssVars = [
|
|
10
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
11
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
12
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
13
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
14
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
15
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
16
|
-
];
|
|
17
|
-
export var cssParts = [{ name: "invalid-feedback", description: "" }];
|
|
18
|
-
export var htmlSlots = [];
|
|
19
|
-
export var i18nLanguages = [];
|
|
20
|
-
export var styleSetup = {
|
|
21
|
-
vars: cssVars,
|
|
22
|
-
parts: cssParts
|
|
23
|
-
};
|
|
24
|
-
var examples = [
|
|
25
|
-
{
|
|
26
|
-
name: "required",
|
|
27
|
-
data: {
|
|
28
|
-
schemaentry: {
|
|
29
|
-
placeholder: "Insert your last name here...3",
|
|
30
|
-
id: "lastName",
|
|
31
|
-
required: true,
|
|
32
|
-
label: "Last Name",
|
|
33
|
-
validationTip: "This field cannot be empty.",
|
|
34
|
-
value: 4
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: "withmax",
|
|
40
|
-
data: {
|
|
41
|
-
schemaentry: {
|
|
42
|
-
placeholder: "Insert your last name here...",
|
|
43
|
-
id: "lastName",
|
|
44
|
-
required: true,
|
|
45
|
-
label: "Last Name",
|
|
46
|
-
validationTip: "This field cannot be empty.",
|
|
47
|
-
params: { min: 3 },
|
|
48
|
-
value: 4
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: "withmin",
|
|
54
|
-
data: {
|
|
55
|
-
schemaentry: {
|
|
56
|
-
placeholder: "Insert your last name here...",
|
|
57
|
-
id: "lastName",
|
|
58
|
-
required: true,
|
|
59
|
-
label: "Last Name",
|
|
60
|
-
validationTip: "This field cannot be empty.",
|
|
61
|
-
params: { max: 8 },
|
|
62
|
-
value: 4
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: "withminmax",
|
|
68
|
-
data: {
|
|
69
|
-
schemaentry: {
|
|
70
|
-
placeholder: "Insert your last name here...",
|
|
71
|
-
id: "lastName",
|
|
72
|
-
required: true,
|
|
73
|
-
label: "Last Name",
|
|
74
|
-
validationTip: "This field cannot be empty.",
|
|
75
|
-
params: { min: 3, max: 10 },
|
|
76
|
-
value: 4
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: "withzero",
|
|
82
|
-
data: {
|
|
83
|
-
schemaentry: {
|
|
84
|
-
placeholder: "Insert your last name here...",
|
|
85
|
-
id: "lastName",
|
|
86
|
-
label: "Last Name",
|
|
87
|
-
validationTip: "This field cannot be empty.",
|
|
88
|
-
value: 0
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: "withzerorequired",
|
|
94
|
-
data: {
|
|
95
|
-
schemaentry: {
|
|
96
|
-
placeholder: "Insert your last name here...",
|
|
97
|
-
id: "lastName",
|
|
98
|
-
required: true,
|
|
99
|
-
label: "Last Name",
|
|
100
|
-
validationTip: "This field cannot be empty.",
|
|
101
|
-
value: 0
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
];
|
|
106
|
-
export var componentSetup = {
|
|
107
|
-
definitions: null,
|
|
108
|
-
storybookArgs: storybookArgs,
|
|
109
|
-
styleSetup: styleSetup,
|
|
110
|
-
author: null,
|
|
111
|
-
contributors: [],
|
|
112
|
-
owner: null,
|
|
113
|
-
htmlSlots: htmlSlots,
|
|
114
|
-
i18n: i18nLanguages,
|
|
115
|
-
examples: examples,
|
|
116
|
-
screenshots: [],
|
|
117
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
118
|
-
readmePath: "README.md",
|
|
119
|
-
name: "hb-input-number",
|
|
120
|
-
category: "input",
|
|
121
|
-
tags: ["input"],
|
|
122
|
-
size: {},
|
|
123
|
-
iifePath: "release/release.js",
|
|
124
|
-
repoName: "@htmlbricks/hb-input-number",
|
|
125
|
-
version: null
|
|
126
|
-
};
|
|
127
|
-
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"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"}
|
package/release/docs.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
|
-
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
-
|
|
4
|
-
export const storybookArgs = {
|
|
5
|
-
schemaentry: { control: { type: "object" } },
|
|
6
|
-
show_validation: { control: { type: "boolean" } },
|
|
7
|
-
set_valid: { control: { type: "boolean" } },
|
|
8
|
-
set_value: { control: { type: "boolean" } },
|
|
9
|
-
setValid: { action: "setValid" },
|
|
10
|
-
setValue: { action: "setValue" },
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const cssVars: CssVar[] = [
|
|
14
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
15
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
16
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
17
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
18
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
19
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
20
|
-
];
|
|
21
|
-
export const cssParts: CssPart[] = [{ name: "invalid-feedback", description: "" }];
|
|
22
|
-
export const htmlSlots: HtmlSlot[] = [];
|
|
23
|
-
export const i18nLanguages: i18nLang[] = [];
|
|
24
|
-
|
|
25
|
-
export const styleSetup: StyleSetup = {
|
|
26
|
-
vars: cssVars,
|
|
27
|
-
parts: cssParts,
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const examples: { name: string; description?: string; data: Component }[] = [
|
|
31
|
-
{
|
|
32
|
-
name: "required",
|
|
33
|
-
data: {
|
|
34
|
-
schemaentry: {
|
|
35
|
-
placeholder: "Insert your last name here...3",
|
|
36
|
-
id: "lastName",
|
|
37
|
-
required: true,
|
|
38
|
-
label: "Last Name",
|
|
39
|
-
validationTip: "This field cannot be empty.",
|
|
40
|
-
value: 4,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "withmax",
|
|
46
|
-
data: {
|
|
47
|
-
schemaentry: {
|
|
48
|
-
placeholder: "Insert your last name here...",
|
|
49
|
-
id: "lastName",
|
|
50
|
-
required: true,
|
|
51
|
-
label: "Last Name",
|
|
52
|
-
validationTip: "This field cannot be empty.",
|
|
53
|
-
params: { min: 3 },
|
|
54
|
-
value: 4,
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: "withmin",
|
|
60
|
-
data: {
|
|
61
|
-
schemaentry: {
|
|
62
|
-
placeholder: "Insert your last name here...",
|
|
63
|
-
id: "lastName",
|
|
64
|
-
required: true,
|
|
65
|
-
label: "Last Name",
|
|
66
|
-
validationTip: "This field cannot be empty.",
|
|
67
|
-
params: { max: 8 },
|
|
68
|
-
value: 4,
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: "withminmax",
|
|
74
|
-
data: {
|
|
75
|
-
schemaentry: {
|
|
76
|
-
placeholder: "Insert your last name here...",
|
|
77
|
-
id: "lastName",
|
|
78
|
-
required: true,
|
|
79
|
-
label: "Last Name",
|
|
80
|
-
validationTip: "This field cannot be empty.",
|
|
81
|
-
params: { min: 3, max: 10 },
|
|
82
|
-
value: 4,
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: "withzero",
|
|
88
|
-
data: {
|
|
89
|
-
schemaentry: {
|
|
90
|
-
placeholder: "Insert your last name here...",
|
|
91
|
-
id: "lastName",
|
|
92
|
-
label: "Last Name",
|
|
93
|
-
validationTip: "This field cannot be empty.",
|
|
94
|
-
value: 0,
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: "withzerorequired",
|
|
100
|
-
data: {
|
|
101
|
-
schemaentry: {
|
|
102
|
-
placeholder: "Insert your last name here...",
|
|
103
|
-
id: "lastName",
|
|
104
|
-
required: true,
|
|
105
|
-
label: "Last Name",
|
|
106
|
-
validationTip: "This field cannot be empty.",
|
|
107
|
-
value: 0,
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
];
|
|
112
|
-
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
113
|
-
definitions: null as any,
|
|
114
|
-
storybookArgs,
|
|
115
|
-
styleSetup,
|
|
116
|
-
author: null as any,
|
|
117
|
-
contributors: [],
|
|
118
|
-
owner: null as any,
|
|
119
|
-
htmlSlots,
|
|
120
|
-
i18n: i18nLanguages,
|
|
121
|
-
examples,
|
|
122
|
-
screenshots: [],
|
|
123
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
124
|
-
readmePath: "README.md",
|
|
125
|
-
name: "hb-input-number",
|
|
126
|
-
category: "input",
|
|
127
|
-
tags: ["input"],
|
|
128
|
-
size: {},
|
|
129
|
-
iifePath: "release/release.js",
|
|
130
|
-
repoName: "@htmlbricks/hb-input-number",
|
|
131
|
-
version: null as any,
|
|
132
|
-
};
|
package/release/release.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var release=function(){"use strict";function e(){}function r(e){return e()}function t(){return Object.create(null)}function o(e){e.forEach(r)}function n(e){return"function"==typeof e}function i(e,r){return e!=e?r==r:e!==r||e&&"object"==typeof e||"function"==typeof e}function a(e,r,t){e.insertBefore(r,t||null)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function s(e){return document.createElement(e)}function l(e){return document.createTextNode(e)}function c(e,r,t,o){return e.addEventListener(r,t,o),()=>e.removeEventListener(r,t,o)}function u(e,r,t){null==t?e.removeAttribute(r):e.getAttribute(r)!==t&&e.setAttribute(r,t)}function m(e){return""===e?null:+e}function f(e,r){e.value=null==r?"":r}function b(e){const r={};for(const t of e)r[t.name]=t.value;return r}let p;function h(e){p=e}function g(){if(!p)throw new Error("Function called outside component initialization");return p}function v(){const e=g();return(r,t,{cancelable:o=!1}={})=>{const n=e.$$.callbacks[r];if(n){const i=function(e,r,{bubbles:t=!1,cancelable:o=!1}={}){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t,o,r),n}(r,t,{cancelable:o});return n.slice().forEach((r=>{r.call(e,i)})),!i.defaultPrevented}return!0}}const y=[],w=[];let $=[];const x=[],k=Promise.resolve();let _=!1;function q(e){$.push(e)}const E=new Set;let C=0;function O(){if(0!==C)return;const e=p;do{try{for(;C<y.length;){const e=y[C];C++,h(e),N(e.$$)}}catch(e){throw y.length=0,C=0,e}for(h(null),y.length=0,C=0;w.length;)w.pop()();for(let e=0;e<$.length;e+=1){const r=$[e];E.has(r)||(E.add(r),r())}$.length=0}while(y.length);for(;x.length;)x.pop()();_=!1,E.clear(),h(e)}function N(e){if(null!==e.fragment){e.update(),o(e.before_update);const r=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,r),e.after_update.forEach(q)}}const S=new Set;function z(e,r){const t=e.$$;null!==t.fragment&&(!function(e){const r=[],t=[];$.forEach((o=>-1===e.indexOf(o)?r.push(o):t.push(o))),t.forEach((e=>e())),$=r}(t.after_update),o(t.on_destroy),t.fragment&&t.fragment.d(r),t.on_destroy=t.fragment=null,t.ctx=[])}function M(e,r){-1===e.$$.dirty[0]&&(y.push(e),_||(_=!0,k.then(O)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31}function L(i,a,s,l,c,u,m,f=[-1]){const b=p;h(i);const g=i.$$={fragment:null,ctx:[],props:u,update:e,not_equal:c,bound:t(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(b?b.$$.context:[])),callbacks:t(),dirty:f,skip_bound:!1,root:a.target||b.$$.root};m&&m(g.root);let v=!1;if(g.ctx=s?s(i,a.props||{},((e,r,...t)=>{const o=t.length?t[0]:r;return g.ctx&&c(g.ctx[e],g.ctx[e]=o)&&(!g.skip_bound&&g.bound[e]&&g.bound[e](o),v&&M(i,e)),r})):[],g.update(),v=!0,o(g.before_update),g.fragment=!!l&&l(g.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);g.fragment&&g.fragment.l(e),e.forEach(d)}else g.fragment&&g.fragment.c();a.intro&&((y=i.$$.fragment)&&y.i&&(S.delete(y),y.i(w))),function(e,t,i,a){const{fragment:d,after_update:s}=e.$$;d&&d.m(t,i),a||q((()=>{const t=e.$$.on_mount.map(r).filter(n);e.$$.on_destroy?e.$$.on_destroy.push(...t):o(t),e.$$.on_mount=[]})),s.forEach(q)}(i,a.target,a.anchor,a.customElement),O()}var y,w;h(b)}let T;function j(e){let r,t,o,n,i,l,b,p;return{c(){r=s("input"),u(r,"type","number"),u(r,"class",t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":"")),u(r,"id",o=e[1]?.id),r.required=n=e[1]?.required,u(r,"placeholder",i=e[1]?.placeholder),r.readOnly=l=e[1]?.readonly},m(t,o){a(t,r,o),f(r,e[2]),b||(p=c(r,"input",e[12]),b=!0)},p(e,a){11&a&&t!==(t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&u(r,"class",t),2&a&&o!==(o=e[1]?.id)&&u(r,"id",o),2&a&&n!==(n=e[1]?.required)&&(r.required=n),2&a&&i!==(i=e[1]?.placeholder)&&u(r,"placeholder",i),2&a&&l!==(l=e[1]?.readonly)&&(r.readOnly=l),4&a&&m(r.value)!==e[2]&&f(r,e[2])},d(e){e&&d(r),b=!1,p()}}}function A(e){let r,t,o,n,i,l,b,p,h;return{c(){r=s("input"),u(r,"type","number"),u(r,"class",t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":"")),u(r,"id",o=e[1]?.id),r.required=n=e[1]?.required,u(r,"placeholder",i=e[1]?.placeholder),r.readOnly=l=e[1]?.readonly,u(r,"max",b=e[1].params.max)},m(t,o){a(t,r,o),f(r,e[2]),p||(h=c(r,"input",e[11]),p=!0)},p(e,a){11&a&&t!==(t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&u(r,"class",t),2&a&&o!==(o=e[1]?.id)&&u(r,"id",o),2&a&&n!==(n=e[1]?.required)&&(r.required=n),2&a&&i!==(i=e[1]?.placeholder)&&u(r,"placeholder",i),2&a&&l!==(l=e[1]?.readonly)&&(r.readOnly=l),2&a&&b!==(b=e[1].params.max)&&u(r,"max",b),4&a&&m(r.value)!==e[2]&&f(r,e[2])},d(e){e&&d(r),p=!1,h()}}}function R(e){let r,t,o,n,i,l,b,p,h;return{c(){r=s("input"),u(r,"type","number"),u(r,"class",t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":"")),u(r,"id",o=e[1]?.id),r.required=n=e[1]?.required,u(r,"placeholder",i=e[1]?.placeholder),r.readOnly=l=e[1]?.readonly,u(r,"min",b=e[1].params.min)},m(t,o){a(t,r,o),f(r,e[2]),p||(h=c(r,"input",e[10]),p=!0)},p(e,a){11&a&&t!==(t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&u(r,"class",t),2&a&&o!==(o=e[1]?.id)&&u(r,"id",o),2&a&&n!==(n=e[1]?.required)&&(r.required=n),2&a&&i!==(i=e[1]?.placeholder)&&u(r,"placeholder",i),2&a&&l!==(l=e[1]?.readonly)&&(r.readOnly=l),2&a&&b!==(b=e[1].params.min)&&u(r,"min",b),4&a&&m(r.value)!==e[2]&&f(r,e[2])},d(e){e&&d(r),p=!1,h()}}}function B(e){let r,t,o,n,i,l,b,p,h,g;return{c(){r=s("input"),u(r,"type","number"),u(r,"class",t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":"")),u(r,"id",o=e[1]?.id),r.required=n=e[1]?.required,u(r,"placeholder",i=e[1]?.placeholder),r.readOnly=l=e[1]?.readonly,u(r,"min",b=e[1].params.min),u(r,"max",p=e[1].params.max)},m(t,o){a(t,r,o),f(r,e[2]),h||(g=c(r,"input",e[9]),h=!0)},p(e,a){11&a&&t!==(t="form-control "+("yes"===e[0]&&e[1]?.required?e[3]?"is-valid":"is-invalid":""))&&u(r,"class",t),2&a&&o!==(o=e[1]?.id)&&u(r,"id",o),2&a&&n!==(n=e[1]?.required)&&(r.required=n),2&a&&i!==(i=e[1]?.placeholder)&&u(r,"placeholder",i),2&a&&l!==(l=e[1]?.readonly)&&(r.readOnly=l),2&a&&b!==(b=e[1].params.min)&&u(r,"min",b),2&a&&p!==(p=e[1].params.max)&&u(r,"max",p),4&a&&m(r.value)!==e[2]&&f(r,e[2])},d(e){e&&d(r),h=!1,g()}}}function H(e){let r,t,o=e[1].validationTip+"";return{c(){r=s("div"),t=l(o),u(r,"part","invalid-feedback"),u(r,"class","invalid-feedback mb-1")},m(e,o){a(e,r,o),function(e,r){e.appendChild(r)}(r,t)},p(e,r){2&r&&o!==(o=e[1].validationTip+"")&&function(e,r){r=""+r,e.data!==r&&(e.data=r)}(t,o)},d(e){e&&d(r)}}}function I(r){let t,o;function n(e,r){return!e[1]?.params?.min&&0!==e[1]?.params?.min||!e[1].params.max&&0!==e[1]?.params?.max?e[1]?.params?.min||0===e[1]?.params?.min?R:e[1]?.params?.max||0===e[1]?.params?.max?A:j:B}let i=n(r),s=i(r),c=r[1]?.validationTip&&"yes"===r[0]&&H(r);return{c(){s.c(),t=l(" "),c&&c.c(),o=l(""),this.c=e},m(e,r){s.m(e,r),a(e,t,r),c&&c.m(e,r),a(e,o,r)},p(e,[r]){i===(i=n(e))&&s?s.p(e,r):(s.d(1),s=i(e),s&&(s.c(),s.m(t.parentNode,t))),e[1]?.validationTip&&"yes"===e[0]?c?c.p(e,r):(c=H(e),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},i:e,o:e,d(e){s.d(e),e&&d(t),c&&c.d(e),e&&d(o)}}}function U(e,r,t){var o,n;let i,{set_value:a}=r,{set_valid:d}=r,{show_validation:s}=r,{schemaentry:l}=r,c=!1;const u=g(),f=v();function b(e,r){f(e,r),u.dispatchEvent&&u.dispatchEvent(new CustomEvent(e,{detail:r}))}let p;return e.$$set=e=>{"set_value"in e&&t(4,a=e.set_value),"set_valid"in e&&t(5,d=e.set_valid),"show_validation"in e&&t(0,s=e.show_validation),"schemaentry"in e&&t(1,l=e.schemaentry)},e.$$.update=()=>{if(511&e.$$.dirty){if("string"==typeof l){console.info("rendering schemaentry as string for hb-input-number");try{t(1,l=JSON.parse(l))}catch(e){console.error("error parsing JSON for schemaentry hb-input-number",e)}}!(null==l?void 0:l.value)&&0!==(null==l?void 0:l.value)&&""!==(null==l?void 0:l.value)||(p||0===p||""===p)&&p===(null==l?void 0:l.value)?i||0===i||t(2,i=null):(console.info("insert new value"),t(8,p=l.value),t(2,i=l.value)),s||t(0,s="no"),t(4,a=!(!a&&"no"===a)),t(5,d=!(!d&&"no"===d)),l?l.required?(i||0===i)&&(!(null===t(6,o=l.params)||void 0===o?void 0:o.min)||i>=l.params.min)&&(!(null===t(7,n=l.params)||void 0===n?void 0:n.max)||i<=l.params.max)?t(3,c=!0):t(3,c=!1):t(3,c=!0):t(3,c=!1),setTimeout((()=>{a&&b("setValue",{value:i,id:null==l?void 0:l.id}),d&&b("setValid",{valid:c,id:null==l?void 0:l.id})}),0)}},[s,l,i,c,a,d,o,n,p,function(){i=m(this.value),t(2,i),t(1,l),t(8,p),t(0,s),t(4,a),t(5,d),t(6,o),t(7,n),t(3,c)},function(){i=m(this.value),t(2,i),t(1,l),t(8,p),t(0,s),t(4,a),t(5,d),t(6,o),t(7,n),t(3,c)},function(){i=m(this.value),t(2,i),t(1,l),t(8,p),t(0,s),t(4,a),t(5,d),t(6,o),t(7,n),t(3,c)},function(){i=m(this.value),t(2,i),t(1,l),t(8,p),t(0,s),t(4,a),t(5,d),t(6,o),t(7,n),t(3,c)}]}"function"==typeof HTMLElement&&(T=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(r).filter(n);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,r,t){this[e]=t}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){z(this,1),this.$destroy=e}$on(r,t){if(!n(t))return e;const o=this.$$.callbacks[r]||(this.$$.callbacks[r]=[]);return o.push(t),()=>{const e=o.indexOf(t);-1!==e&&o.splice(e,1)}}$set(e){var r;this.$$set&&(r=e,0!==Object.keys(r).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class F extends T{constructor(e){super();const r=document.createElement("style");r.textContent="@import url(\"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap\");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", \"Liberation Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}input{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.form-control{display:block;width:100%;padding:0.375rem 0.75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;appearance:none;border-radius:0.25rem;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::placeholder{color:var(--bs-secondary,#c9d6df);opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}.form-control::file-selector-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control::-webkit-file-upload-button{padding:0.375rem 0.75rem;margin:-0.375rem -0.75rem;margin-inline-end:0.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}.form-control.is-valid{border-color:var(--bs-warning,#ffc107);padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-valid:focus{border-color:var(--bs-warning,#ffc107);box-shadow:0 0 0 0.25rem rgba(25, 135, 84, 0.25)}.invalid-feedback{display:none;width:100%;margin-top:0.25rem;font-size:0.875em;color:var(--bs-danger,#f67280)}.is-invalid~.invalid-feedback{display:block}.form-control.is-invalid{border-color:var(--bs-danger,#f67280);padding-right:calc(1.5em + 0.75rem);background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.form-control.is-invalid:focus{border-color:var(--bs-danger,#f67280);box-shadow:0 0 0 0.25rem rgba(220, 53, 69, 0.25)}@media(prefers-reduced-motion: reduce){}@keyframes placeholder-glow{50%{opacity:0.2}}@keyframes placeholder-wave{100%{mask-position:-200% 0%}}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}:host{font-family:\"Roboto\", sans-serif}",this.shadowRoot.appendChild(r),L(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},U,I,i,{set_value:4,set_valid:5,show_validation:0,schemaentry:1},null),e&&(e.target&&a(e.target,this,e.anchor),e.props&&(this.$set(e.props),O()))}static get observedAttributes(){return["set_value","set_valid","show_validation","schemaentry"]}get set_value(){return this.$$.ctx[4]}set set_value(e){this.$$set({set_value:e}),O()}get set_valid(){return this.$$.ctx[5]}set set_valid(e){this.$$set({set_valid:e}),O()}get show_validation(){return this.$$.ctx[0]}set show_validation(e){this.$$set({show_validation:e}),O()}get schemaentry(){return this.$$.ctx[1]}set schemaentry(e){this.$$set({schemaentry:e}),O()}}return customElements.define("hb-input-number",F),F}();
|
|
2
|
-
//# sourceMappingURL=release.js.map
|