@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 +5 -5
- package/dist/aform.js +45 -43
- package/dist/aform.js.map +1 -1
- package/dist/aform.umd.cjs +2 -2
- package/dist/aform.umd.cjs.map +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/types/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/components/AForm.vue +1 -1
- package/src/components/form/ACheckbox.vue +1 -1
- package/src/components/form/ADate.vue +1 -1
- package/src/components/form/ADatePicker.vue +34 -32
- package/src/components/form/AFieldset.vue +3 -3
- package/src/components/form/ANumericInput.vue +1 -1
- package/src/components/form/ATextInput.vue +2 -2
- package/src/directives/mask.ts +1 -1
- package/src/index.ts +1 -0
- package/src/types/index.ts +1 -1
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
|
-
* @
|
|
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-
|
|
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-
|
|
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("
|
|
606
|
-
i("
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
i("
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
(m(), h(B, null, q(
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
730
|
+
}), At = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-dc9bd613"]]);
|
|
729
731
|
function Mt(e) {
|
|
730
732
|
return de() ? (fe(e), !0) : !1;
|
|
731
733
|
}
|