@daracl/form 0.0.6 → 0.0.8

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/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ var __defProp = Object.defineProperty;
1
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
2
3
  var __esm = (fn, res) => function __init() {
3
4
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
@@ -5,6 +6,10 @@ var __esm = (fn, res) => function __init() {
5
6
  var __commonJS = (cb, mod) => function __require() {
6
7
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
7
8
  };
9
+ var __export = (target, all) => {
10
+ for (var name in all)
11
+ __defProp(target, name, { get: all[name], enumerable: true });
12
+ };
8
13
 
9
14
  // src/util/utils.ts
10
15
  function isPlainObject(obj) {
@@ -1832,6 +1837,10 @@ var init_RangeRender = __esm({
1832
1837
  });
1833
1838
 
1834
1839
  // node_modules/@daracl/datetimepicker/dist/index.js
1840
+ var dist_exports = {};
1841
+ __export(dist_exports, {
1842
+ default: () => dist_default
1843
+ });
1835
1844
  function getH(date) {
1836
1845
  let hour = date.getHours();
1837
1846
  if (hour > 12) {
@@ -3267,7 +3276,6 @@ var init_DateRender = __esm({
3267
3276
  init_Render();
3268
3277
  init_stringValidator();
3269
3278
  init_validUtils();
3270
- init_dist();
3271
3279
  init_utils();
3272
3280
  DateRender = class extends Render {
3273
3281
  constructor(field, rowElement, daraForm) {
@@ -3296,12 +3304,12 @@ var init_DateRender = __esm({
3296
3304
  this.setValue(dt);
3297
3305
  this.valid();
3298
3306
  };
3299
- this.dateObj = new dist_default(this.element, this.field.customOptions, {});
3307
+ this.loadDate();
3308
+ }
3309
+ async loadDate() {
3310
+ const DateTimePicker2 = await Promise.resolve().then(() => (init_dist(), dist_exports));
3311
+ this.dateObj = new DateTimePicker2.default(this.element, this.field.customOptions, {});
3300
3312
  }
3301
- // async loadDate() {
3302
- // const DateTimePicker = await import("@daracl/datetimepicker");
3303
- // this.dateObj = new DateTimePicker.default(this.element, this.field.customOptions, {} as any);
3304
- // }
3305
3313
  createField() {
3306
3314
  const field = this.field;
3307
3315
  const fieldContainerElement = this.rowElement.querySelector(".df-field-container");