cronapp-framework-js 3.0.0-SP.20 → 3.0.0-SP.22
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/components/templates/Component_Container/crn-eight-four-container.template.html +2 -2
- package/components/templates/Component_Container/crn-four-eight-container.template.html +2 -2
- package/components/templates/Component_Container/crn-one-container.template.html +1 -1
- package/components/templates/Component_Container/crn-three-container.template.html +3 -3
- package/components/templates/Component_Container/crn-three-six-three-container.template.html +3 -3
- package/components/templates/Component_Container/crn-two-container.template.html +2 -2
- package/css/themes/custom/krypton/custom-krypton.css +79 -33
- package/css/themes/custom/material-round/grid-material-round.css +5 -1
- package/dist/components/templates/Component_Container/crn-eight-four-container.template.html +1 -1
- package/dist/components/templates/Component_Container/crn-four-eight-container.template.html +1 -1
- package/dist/components/templates/Component_Container/crn-one-container.template.html +1 -1
- package/dist/components/templates/Component_Container/crn-three-container.template.html +1 -1
- package/dist/components/templates/Component_Container/crn-three-six-three-container.template.html +1 -1
- package/dist/components/templates/Component_Container/crn-two-container.template.html +1 -1
- package/dist/css/themes/custom/krypton/custom-krypton.css +1 -1
- package/dist/css/themes/custom/material-round/grid-material-round.css +1 -1
- package/dist/js/directives.js +10 -10
- package/js/directives.js +12 -1
- package/package.json +1 -1
package/js/directives.js
CHANGED
|
@@ -4239,6 +4239,13 @@
|
|
|
4239
4239
|
|
|
4240
4240
|
this.toComboType(attrs, parent, select, combobox);
|
|
4241
4241
|
|
|
4242
|
+
let forcedRefreshModelAt;
|
|
4243
|
+
let canRefresh = () => {
|
|
4244
|
+
let check = performance.now();
|
|
4245
|
+
if (!forcedRefreshModelAt) return true;
|
|
4246
|
+
return check - forcedRefreshModelAt > 2000;
|
|
4247
|
+
};
|
|
4248
|
+
|
|
4242
4249
|
var forceChangeModel = async function(value) {
|
|
4243
4250
|
|
|
4244
4251
|
$log.debug("forceChangeModel | " + attrs['id'] + " | " + value);
|
|
@@ -4345,7 +4352,7 @@
|
|
|
4345
4352
|
overRideRefresh: function() {
|
|
4346
4353
|
dataSourceScreen.fetched = false;
|
|
4347
4354
|
dataSourceScreen.cleanup();
|
|
4348
|
-
defineInitialValue();
|
|
4355
|
+
canRefresh() && defineInitialValue();
|
|
4349
4356
|
}
|
|
4350
4357
|
});
|
|
4351
4358
|
}
|
|
@@ -4479,6 +4486,10 @@
|
|
|
4479
4486
|
});
|
|
4480
4487
|
|
|
4481
4488
|
$("[aria-owns='" + `${attrs.id}_listbox` + "']").attr('aria-label', $translate.instant('template.crud.search'));
|
|
4489
|
+
if (ngModelCtrl.$modelValue) {
|
|
4490
|
+
_scope.cronapi.internal.forceRefreshNgModel(attrs.ngModel, ngModelCtrl.$modelValue);
|
|
4491
|
+
forcedRefreshModelAt = performance.now();
|
|
4492
|
+
}
|
|
4482
4493
|
}
|
|
4483
4494
|
};
|
|
4484
4495
|
})
|