@kigi/components 1.10.0 → 1.11.1
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
|
@@ -98,6 +98,12 @@
|
|
|
98
98
|
ng-disabled="!item.field"
|
|
99
99
|
label="label"
|
|
100
100
|
fetch="item.field.search(query)"></mbg-select>
|
|
101
|
+
<switch ng-if="item.field.inputType == 'BOOLEAN'"
|
|
102
|
+
name="item.field.inputType"
|
|
103
|
+
ng-model="item.selected"
|
|
104
|
+
class="green active-m"
|
|
105
|
+
ng-change="$ctrl.handleNgModel()">
|
|
106
|
+
</switch>
|
|
101
107
|
</div>
|
|
102
108
|
<div class="col-md-3">
|
|
103
109
|
<div class="options-action">
|
|
@@ -597,10 +597,13 @@ class MbgSelectController {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
checkFavorite() {
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
this.
|
|
603
|
-
|
|
600
|
+
let favorite
|
|
601
|
+
this.$timeout(() => {
|
|
602
|
+
favorite = MbgCookie.get(this.getFavoriteKey())
|
|
603
|
+
if (favorite && this.enableFavorite && !this.ngModel) {
|
|
604
|
+
this.selectOption(favorite)
|
|
605
|
+
}
|
|
606
|
+
}, 300)
|
|
604
607
|
}
|
|
605
608
|
|
|
606
609
|
favorite(evt, item) {
|