@daracl/form 0.0.1 → 0.0.3

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @daracl/form v0.0.1
2
+ * @daracl/form v0.0.3
3
3
  * Copyright 2023-2024 darainfo and other contributors;
4
4
  * Licensed MIT
5
5
  */
@@ -9,9 +9,9 @@
9
9
  else if(typeof define === 'function' && define.amd)
10
10
  define([], factory);
11
11
  else if(typeof exports === 'object')
12
- exports["DaraForm"] = factory();
12
+ exports["Daracl"] = factory();
13
13
  else
14
- root["DaraForm"] = factory();
14
+ root["Daracl"] = root["Daracl"] || {}, root["Daracl"]["form"] = factory();
15
15
  })(self, () => {
16
16
  return /******/ (() => { // webpackBootstrap
17
17
  /******/ "use strict";
@@ -820,7 +820,7 @@ var init_DateTimePicker = __esm({
820
820
  this.initTimeEvent();
821
821
  }
822
822
  static {
823
- this.VERSION = `${"0.0.1"}`;
823
+ this.VERSION = `${"0.0.3"}`;
824
824
  }
825
825
  static {
826
826
  this.format = format_default;
@@ -1816,7 +1816,7 @@ class DaraForm {
1816
1816
  return this.fieldInfoMap;
1817
1817
  }
1818
1818
  }
1819
- DaraForm.VERSION = `${"0.0.1"}`;
1819
+ DaraForm.VERSION = `${"0.0.3"}`;
1820
1820
  DaraForm.validator = {
1821
1821
  string: (value, field) => {
1822
1822
  return (0, stringValidator_1.stringValidator)(value, field);
@@ -2864,6 +2864,7 @@ class DateRender extends Render_1.default {
2864
2864
  dateOnSelectEvent.call(null, dt, e);
2865
2865
  }
2866
2866
  this.setValue(dt);
2867
+ this.valid();
2867
2868
  };
2868
2869
  this.dateObj = new datetimepicker_1.default(this.element, this.field.customOptions, {});
2869
2870
  }
@@ -2872,7 +2873,7 @@ class DateRender extends Render_1.default {
2872
2873
  const fieldContainerElement = this.rowElement.querySelector(".df-field-container");
2873
2874
  fieldContainerElement.innerHTML = `
2874
2875
  <div class="df-field">
2875
- <input type="text" name="${field.$xssName}" class="form-field text help-icon" autocomplete="off"/>
2876
+ <input type="text" name="${field.$xssName}" class="form-field text help-icon" autocomplete="off" readonly/>
2876
2877
  </div>
2877
2878
  ${Render_1.default.getDescriptionTemplate(field)}
2878
2879
  <div class="help-message"></div>