@ekzo-dev/bootstrap-addons 5.3.12 → 5.3.13
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.3.
|
|
4
|
+
"version": "5.3.13",
|
|
5
5
|
"homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@ekzo-dev/bootstrap": "~5.3.
|
|
12
|
+
"@ekzo-dev/bootstrap": "~5.3.3",
|
|
13
13
|
"@ekzo-dev/vanilla-jsoneditor": "~3.11.0",
|
|
14
14
|
"@ekzo-dev/toolkit": "^1.2.4",
|
|
15
15
|
"@fortawesome/free-solid-svg-icons": "^7.0.1",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<template class="${floatingLabel ? 'form-floating' : ''}">
|
|
2
|
-
<label for="
|
|
2
|
+
<label for.one-time="id" if.bind="label && !floatingLabel" class="form-label">${label}</label>
|
|
3
3
|
<fieldset class="${classes}" disabled.bind="disabled">
|
|
4
4
|
<input
|
|
5
5
|
type="text"
|
|
6
|
-
id="
|
|
6
|
+
id.one-time="id"
|
|
7
7
|
required.bind="required"
|
|
8
8
|
value.bind="value"
|
|
9
9
|
form.bind="form & attr"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<input type="number" min="0" value.bind="duration.seconds" placeholder="--" />
|
|
23
23
|
<span>${labels.seconds}</span>
|
|
24
24
|
</fieldset>
|
|
25
|
-
<label for="
|
|
25
|
+
<label for.one-time="id" if.bind="label && floatingLabel"><span>${label}</span></label>
|
|
26
26
|
<div class="invalid-feedback" if.bind="invalidFeedback">${invalidFeedback}</div>
|
|
27
27
|
<div class="valid-feedback" if.bind="validFeedback">${validFeedback}</div>
|
|
28
28
|
</template>
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
<template class="addon ${floatingLabel ? 'form-floating' : ''}" bs-dropdown>
|
|
2
|
-
<label for="
|
|
2
|
+
<label for.one-time="id" if.bind="label && !floatingLabel" class="form-label">${label}</label>
|
|
3
3
|
<input
|
|
4
|
-
id="
|
|
4
|
+
id.one-time="id"
|
|
5
5
|
class="form-select ${bsSize ? `form-select-${bsSize}` : ''} ${valid ? 'is-valid' : valid === false ? 'is-invalid' : ''}"
|
|
6
6
|
bs-dropdown-toggle="arrow.bind: false"
|
|
7
7
|
value="${valueText}"
|
|
8
8
|
placeholder="${emptyOption?.text ?? ''}"
|
|
9
|
-
disabled.bind="disabled"
|
|
10
|
-
required.bind="required"
|
|
11
|
-
form.bind="form & attr"
|
|
12
|
-
name.bind="name & attr"
|
|
13
|
-
title.bind="title & attr"
|
|
14
9
|
autocomplete="off"
|
|
15
10
|
keydown.trigger="$event.preventDefault()"
|
|
16
11
|
ref="control"
|
|
@@ -33,12 +28,12 @@
|
|
|
33
28
|
class="form-check-input"
|
|
34
29
|
type="checkbox"
|
|
35
30
|
checked.bind="value"
|
|
36
|
-
model.bind="option.value"
|
|
37
|
-
disabled.bind="option.disabled"
|
|
38
31
|
matcher.bind="matcher"
|
|
39
|
-
|
|
32
|
+
model.one-time="option.value"
|
|
33
|
+
disabled.one-time="option.disabled"
|
|
34
|
+
id.one-time="optionId($index)"
|
|
40
35
|
/>
|
|
41
|
-
<label class="form-check-label" for="
|
|
36
|
+
<label class="form-check-label" for.one-time="optionId($index)">${option.text || ' '}</label>
|
|
42
37
|
</div>
|
|
43
38
|
</div>
|
|
44
39
|
<template repeat.for="[k, v] of groupedOptions | filter:filter">
|
|
@@ -49,12 +44,14 @@
|
|
|
49
44
|
class="form-check-input"
|
|
50
45
|
type="checkbox"
|
|
51
46
|
checked.bind="value"
|
|
52
|
-
model.bind="option.value"
|
|
53
|
-
disabled.bind="option.disabled"
|
|
54
47
|
matcher.bind="matcher"
|
|
55
|
-
|
|
48
|
+
model.one-time="option.value"
|
|
49
|
+
disabled.one-time="option.disabled"
|
|
50
|
+
id.one-time="optionId($index, $parent.$index)"
|
|
56
51
|
/>
|
|
57
|
-
<label class="form-check-label" for="
|
|
52
|
+
<label class="form-check-label" for.one-time="optionId($index, $parent.$index)"
|
|
53
|
+
>${option.text || ' '}</label
|
|
54
|
+
>
|
|
58
55
|
</div>
|
|
59
56
|
</div>
|
|
60
57
|
</template>
|
|
@@ -64,7 +61,7 @@
|
|
|
64
61
|
type="button"
|
|
65
62
|
repeat.for="option of ungroupedOptions | filter:filter:emptyOption"
|
|
66
63
|
class="dropdown-item ${option.value === selectedOption?.value ? 'active' : ''}"
|
|
67
|
-
disabled.
|
|
64
|
+
disabled.one-time="option.disabled"
|
|
68
65
|
click.trigger="selectOption(option)"
|
|
69
66
|
>
|
|
70
67
|
${option.text || ' '}
|
|
@@ -75,7 +72,7 @@
|
|
|
75
72
|
type="button"
|
|
76
73
|
repeat.for="option of v"
|
|
77
74
|
class="ps-4 dropdown-item ${option.value === selectedOption?.value ? 'active' : ''}"
|
|
78
|
-
disabled.
|
|
75
|
+
disabled.one-time="option.disabled"
|
|
79
76
|
click.trigger="selectOption(option)"
|
|
80
77
|
>
|
|
81
78
|
${option.text || ' '}
|
|
@@ -83,7 +80,7 @@
|
|
|
83
80
|
</template>
|
|
84
81
|
</template>
|
|
85
82
|
</bs-dropdown-menu>
|
|
86
|
-
<label for="
|
|
83
|
+
<label for.one-time="id" if.bind="label && floatingLabel"><span>${label}</span></label>
|
|
87
84
|
<div class="invalid-feedback" if.bind="invalidFeedback">${invalidFeedback}</div>
|
|
88
85
|
<div class="valid-feedback" if.bind="validFeedback">${validFeedback}</div>
|
|
89
86
|
</template>
|
|
@@ -29,8 +29,6 @@ export class BsSelect extends BaseBsSelect implements ICustomElementViewModel {
|
|
|
29
29
|
|
|
30
30
|
host = resolve(HTMLElement);
|
|
31
31
|
|
|
32
|
-
control!: HTMLFieldSetElement;
|
|
33
|
-
|
|
34
32
|
filter: string = '';
|
|
35
33
|
|
|
36
34
|
emptyOption?: ISelectOption;
|
|
@@ -97,8 +95,6 @@ export class BsSelect extends BaseBsSelect implements ICustomElementViewModel {
|
|
|
97
95
|
}
|
|
98
96
|
|
|
99
97
|
get showClear(): boolean {
|
|
100
|
-
console.warn(`BsSelect #${this.id}: get showClear`);
|
|
101
|
-
|
|
102
98
|
return (
|
|
103
99
|
!this.disabled &&
|
|
104
100
|
((this.emptyOption && this.selectedOption?.value !== this.emptyOption.value) ||
|
|
@@ -126,7 +122,6 @@ export class BsSelect extends BaseBsSelect implements ICustomElementViewModel {
|
|
|
126
122
|
}
|
|
127
123
|
|
|
128
124
|
get selectedOption(): ISelectOption | undefined {
|
|
129
|
-
console.warn(`BsSelect #${this.id}: get selectedOption`);
|
|
130
125
|
if (this.multiple) return;
|
|
131
126
|
|
|
132
127
|
const { value, emptyValue, matcher } = this;
|