fng-bootstrap-datetime 0.12.0-beta.216 → 0.12.0-beta.218
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.
@@ -383,8 +383,8 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
|
|
383
383
|
uiBootstrapDateModule.controller('fngUiBootstrapDatetimePickerCtrl',['$scope', function($scope) {
|
384
384
|
$scope.dateOptions = {};
|
385
385
|
}])
|
386
|
-
.directive('fngUiBootstrapDatetimePicker', ['$compile', '
|
387
|
-
function ($compile,
|
386
|
+
.directive('fngUiBootstrapDatetimePicker', ['$compile', 'PluginHelperService',
|
387
|
+
function ($compile, PluginHelperService) {
|
388
388
|
return {
|
389
389
|
restrict: 'E',
|
390
390
|
replace: true,
|
@@ -392,7 +392,7 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
|
|
392
392
|
priority: 1,
|
393
393
|
link: function (scope, element, attrs) {
|
394
394
|
var template;
|
395
|
-
var processedAttrs =
|
395
|
+
var processedAttrs = PluginHelperService.extractFromAttr(attrs, 'fngUiBootstrapDatetimePicker');
|
396
396
|
var overriddenDefaults = {
|
397
397
|
'show-button-bar': false,
|
398
398
|
'show-meridian': false,
|
@@ -423,7 +423,7 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
|
|
423
423
|
scope.dateOptions = Object.assign({}, overriddenDateDefaults, jsonDateOptions);
|
424
424
|
|
425
425
|
const isArray = processedAttrs.info.array;
|
426
|
-
template =
|
426
|
+
template = PluginHelperService.buildInputMarkup(
|
427
427
|
scope,
|
428
428
|
attrs,
|
429
429
|
{
|
@@ -438,7 +438,7 @@ angular.module('ui.bootstrap.datetimepicker', ["ui.bootstrap.dateparser", "ui.bo
|
|
438
438
|
str += ` ${opt}="${overriddenDefaults[opt]}"`;
|
439
439
|
}
|
440
440
|
}
|
441
|
-
str += " " +
|
441
|
+
str += " " + PluginHelperService.genDateTimePickerDisabledStr(scope, processedAttrs, "");
|
442
442
|
str += ' date-options="dateOptions"></datetimepicker></div>';
|
443
443
|
return str;
|
444
444
|
}
|