@magic-xpa/angular 4.1000.0-dev4100.310 → 4.1000.0-dev4100.315
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/esm2020/src/services/task.magics.service.mjs +3 -2
- package/esm2020/src/ui/directives/magic/combobox.magic.directive.mjs +11 -1
- package/esm2020/src/ui/directives/magic.directive.mjs +1 -1
- package/fesm2015/magic-xpa-angular.mjs +10 -1
- package/fesm2015/magic-xpa-angular.mjs.map +1 -1
- package/fesm2020/magic-xpa-angular.mjs +10 -1
- package/fesm2020/magic-xpa-angular.mjs.map +1 -1
- package/package.json +3 -3
- package/src/ui/directives/magic/combobox.magic.directive.d.ts +1 -0
- package/src/ui/directives/magic.directive.d.ts +1 -1
@@ -1764,7 +1764,8 @@ class TaskMagicService {
|
|
1764
1764
|
break;
|
1765
1765
|
case CommandType.SET_PROPERTY:
|
1766
1766
|
this.handleSetProperty(command, isTableChild);
|
1767
|
-
if (command.Operation == HtmlProperties.ReadOnly
|
1767
|
+
if (command.Operation == HtmlProperties.ReadOnly ||
|
1768
|
+
command.Operation == HtmlProperties.ItemsList)
|
1768
1769
|
this.refreshDom.next(command);
|
1769
1770
|
break;
|
1770
1771
|
case CommandType.PROP_SET_USER_PROPERTY:
|
@@ -3730,10 +3731,18 @@ CheckboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: CheckboxMagicDirec
|
|
3730
3731
|
class ComboboxMagicDirective {
|
3731
3732
|
constructor(magicDirective) {
|
3732
3733
|
this.magicDirective = magicDirective;
|
3734
|
+
this.magicDirective.task.refreshDom.pipe(filter(c => this.magicDirective.IsSameElement(c))).subscribe(value => {
|
3735
|
+
let command = value;
|
3736
|
+
if (command.Operation === HtmlProperties.ItemsList)
|
3737
|
+
this.onComboboxItemsListChanged();
|
3738
|
+
});
|
3733
3739
|
}
|
3734
3740
|
onChange($event) {
|
3735
3741
|
this.magicDirective.task.onComboboxSelectionChanged($event, this.magicDirective.id, +this.magicDirective.rowId);
|
3736
3742
|
}
|
3743
|
+
onComboboxItemsListChanged() {
|
3744
|
+
this.magicDirective.task.refreshView();
|
3745
|
+
}
|
3737
3746
|
}
|
3738
3747
|
ComboboxMagicDirective.ɵfac = function ComboboxMagicDirective_Factory(t) { return new (t || ComboboxMagicDirective)(i0.ɵɵdirectiveInject(MagicDirective)); };
|
3739
3748
|
ComboboxMagicDirective.ɵdir = i0.ɵɵdefineDirective({ type: ComboboxMagicDirective, selectors: [["select", "magic", "", 3, "multiple", ""]], hostBindings: function ComboboxMagicDirective_HostBindings(rf, ctx) { if (rf & 1) {
|