@stonecrop/aform 0.2.67 → 0.3.1

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/aform.d.ts CHANGED
@@ -45,7 +45,7 @@ export declare type BasicSchema = {
45
45
  * Table cell context definition.
46
46
  * @public
47
47
  */
48
- declare type CellContext = {
48
+ export declare type CellContext = {
49
49
  row: TableRow;
50
50
  column: TableColumn;
51
51
  table: {
@@ -88,7 +88,7 @@ export { Login }
88
88
 
89
89
  /**
90
90
  * Superset of schema types
91
- * @public
91
+ * @beta
92
92
  */
93
93
  export declare type SchemaTypes = FormSchema | TableSchema | FieldsetSchema;
94
94
 
@@ -96,7 +96,7 @@ export declare type SchemaTypes = FormSchema | TableSchema | FieldsetSchema;
96
96
  * Table column definition.
97
97
  * @public
98
98
  */
99
- declare type TableColumn = {
99
+ export declare type TableColumn = {
100
100
  name: string;
101
101
  align?: CanvasTextAlign;
102
102
  edit?: boolean;
@@ -116,7 +116,7 @@ declare type TableColumn = {
116
116
  * Table configuration definition.
117
117
  * @public
118
118
  */
119
- declare type TableConfig = {
119
+ export declare type TableConfig = {
120
120
  /**
121
121
  * The type of view to display the table in. Possible values:
122
122
  * - `uncounted` - row numbers are not displayed in the table
@@ -132,7 +132,7 @@ declare type TableConfig = {
132
132
  * Table row definition.
133
133
  * @public
134
134
  */
135
- declare type TableRow = {
135
+ export declare type TableRow = {
136
136
  [key: string]: any;
137
137
  indent?: number;
138
138
  parent?: number;
package/dist/aform.js CHANGED
@@ -45,7 +45,7 @@ import './assets/index.css';const Le = { class: "aform_form-element" }, Ve = ["f
45
45
  for (const [o, l] of t)
46
46
  n[o] = l;
47
47
  return n;
48
- }, Fe = /* @__PURE__ */ E(xe, [["__scopeId", "data-v-f0ba8b6d"]]), Be = /* @__PURE__ */ A({
48
+ }, Fe = /* @__PURE__ */ E(xe, [["__scopeId", "data-v-87d41dfc"]]), Be = /* @__PURE__ */ A({
49
49
  __name: "AComboBox",
50
50
  props: ["event", "cellData", "tableID"],
51
51
  setup(e) {
@@ -103,7 +103,7 @@ import './assets/index.css';const Le = { class: "aform_form-element" }, Ve = ["f
103
103
  ])
104
104
  ]));
105
105
  }
106
- }), We = /* @__PURE__ */ E(Ue, [["__scopeId", "data-v-ec9dd0e4"]]), Ye = { class: "input-wrapper" }, Ge = {
106
+ }), We = /* @__PURE__ */ E(Ue, [["__scopeId", "data-v-79ffa25e"]]), Ye = { class: "input-wrapper" }, Ge = {
107
107
  id: "autocomplete-results",
108
108
  class: "autocomplete-results"
109
109
  }, Ke = {
@@ -602,48 +602,50 @@ const mt = {
602
602
  }
603
603
  ]), (g, _) => (m(), h("div", mt, [
604
604
  i("table", null, [
605
- i("tr", null, [
606
- i("td", {
607
- id: "previous-month-btn",
608
- onClick: d,
609
- tabindex: -1
610
- }, "<"),
611
- i("th", pt, k(S.value), 1),
612
- i("td", {
613
- id: "next-month-btn",
614
- onClick: f,
615
- tabindex: -1
616
- }, ">")
617
- ]),
618
- _[0] || (_[0] = i("tr", { class: "days-header" }, [
619
- i("td", null, "M"),
620
- i("td", null, "T"),
621
- i("td", null, "W"),
622
- i("td", null, "T"),
623
- i("td", null, "F"),
624
- i("td", null, "S"),
625
- i("td", null, "S")
626
- ], -1)),
627
- (m(), h(B, null, q(gt, (M) => i("tr", { key: M }, [
628
- (m(), h(B, null, q(re, (L) => i("td", {
629
- ref_for: !0,
630
- ref: "celldate",
631
- key: w(M, L),
632
- contenteditable: !1,
633
- spellcheck: !1,
634
- tabindex: 0,
635
- onClick: Me((he) => b(w(M, L)), ["prevent", "stop"]),
636
- onKeydown: G((he) => b(w(M, L)), ["enter"]),
637
- class: K({
638
- todaysDate: p($(M, L)),
639
- selectedDate: y($(M, L))
640
- })
641
- }, k(new Date($(M, L)).getDate()), 43, vt)), 64))
642
- ])), 64))
605
+ i("tbody", null, [
606
+ i("tr", null, [
607
+ i("td", {
608
+ id: "previous-month-btn",
609
+ onClick: d,
610
+ tabindex: -1
611
+ }, "<"),
612
+ i("th", pt, k(S.value), 1),
613
+ i("td", {
614
+ id: "next-month-btn",
615
+ onClick: f,
616
+ tabindex: -1
617
+ }, ">")
618
+ ]),
619
+ _[0] || (_[0] = i("tr", { class: "days-header" }, [
620
+ i("td", null, "M"),
621
+ i("td", null, "T"),
622
+ i("td", null, "W"),
623
+ i("td", null, "T"),
624
+ i("td", null, "F"),
625
+ i("td", null, "S"),
626
+ i("td", null, "S")
627
+ ], -1)),
628
+ (m(), h(B, null, q(gt, (M) => i("tr", { key: M }, [
629
+ (m(), h(B, null, q(re, (L) => i("td", {
630
+ ref_for: !0,
631
+ ref: "celldate",
632
+ key: w(M, L),
633
+ contenteditable: !1,
634
+ spellcheck: !1,
635
+ tabindex: 0,
636
+ onClick: Me((he) => b(w(M, L)), ["prevent", "stop"]),
637
+ onKeydown: G((he) => b(w(M, L)), ["enter"]),
638
+ class: K({
639
+ todaysDate: p($(M, L)),
640
+ selectedDate: y($(M, L))
641
+ })
642
+ }, k(new Date($(M, L)).getDate()), 43, vt)), 64))
643
+ ])), 64))
644
+ ])
643
645
  ])
644
646
  ], 512));
645
647
  }
646
- }), yt = /* @__PURE__ */ E(ht, [["__scopeId", "data-v-a73ce0ff"]]), bt = /* @__PURE__ */ A({
648
+ }), yt = /* @__PURE__ */ E(ht, [["__scopeId", "data-v-72e0307f"]]), bt = /* @__PURE__ */ A({
647
649
  __name: "CollapseButton",
648
650
  props: {
649
651
  collapsed: { type: Boolean }
@@ -691,7 +693,7 @@ const mt = {
691
693
  }, l(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
692
694
  ]));
693
695
  }
694
- }), ge = /* @__PURE__ */ E(wt, [["__scopeId", "data-v-d9ce3008"]]), Dt = /* @__PURE__ */ A({
696
+ }), ge = /* @__PURE__ */ E(wt, [["__scopeId", "data-v-68845234"]]), Dt = /* @__PURE__ */ A({
695
697
  __name: "AFieldset",
696
698
  props: {
697
699
  schema: {},
@@ -725,7 +727,7 @@ const mt = {
725
727
  ], !0)
726
728
  ]));
727
729
  }
728
- }), At = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-df65d1bf"]]);
730
+ }), At = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-dc9bd613"]]);
729
731
  function Mt(e) {
730
732
  return de() ? (fe(e), !0) : !1;
731
733
  }