-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-datepicker.min.js
1 lines (1 loc) · 1.87 KB
/
bootstrap-datepicker.min.js
1
angular.module("schemaForm").run(["$templateCache",function(e){e.put("directives/decorators/bootstrap/datepicker/datepicker.html",'<div class="form-group {{form.htmlClass}}" ng-class="{\'has-error\': form.disableErrorState !== true && hasError(),\'has-success\': form.disableSuccessState !== true && hasSuccess()}"><label class="control-label {{form.labelHtmlClass}}" ng-show="showTitle()">{{form.title}}</label><div ng-class="{\'input-group\': (form.fieldAddonLeft || form.fieldAddonRight)}"><span ng-if="form.fieldAddonLeft" class="input-group-addon" ng-bind-html="form.fieldAddonLeft"></span><adm-dtp ng-show="form.key" sf-changed="form" ng-model="$$value$$" class="form-control {{form.fieldHtmlClass}}" schema-validate="form" name="form.key.slice(-1)[0]" ng-disabled="form.readonly" mindate="{{form.minDate}}" maxdate="{{form.maxDate}}" options=\'{calType: "jalali", format: "YYYY/MM/DD",autoClose:true ,default:form.default}\'></adm-dtp><span ng-if="form.fieldAddonRight" class="input-group-addon" ng-bind-html="form.fieldAddonRight"></span></div><span ng-if="form.feedback !== false" class="form-control-feedback" ng-class="evalInScope(form.feedback) || {\'glyphicon\': true, \'glyphicon-ok\': hasSuccess(), \'glyphicon-remove\': hasError() }" aria-hidden="true"></span><div class="help-block" ng-show="hasError()" sf-message="form.description"></div></div>')}]),angular.module("schemaForm").config(["schemaFormProvider","schemaFormDecoratorsProvider","sfPathProvider",function(e,r,a){var o=function(r,o,t){if("string"===o.type&&("date"===o.format||"date-time"===o.format)){var s=e.stdFormObj(r,o,t);return s.key=t.path,s.type="datepicker",t.lookup[a.stringify(t.path)]=s,s}};e.defaults.string.unshift(o),r.addMapping("bootstrapDecorator","datepicker","directives/decorators/bootstrap/datepicker/datepicker.html"),r.createDirective("datepicker","directives/decorators/bootstrap/datepicker/datepicker.html")}]);