@neeloong/form 0.18.0 → 0.20.0
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/index.d.mts +22 -8
- package/index.full.js +937 -143
- package/index.full.min.js +6 -6
- package/index.full.min.mjs +6 -6
- package/index.min.mjs +2 -2
- package/index.mjs +937 -143
- package/package.json +1 -1
package/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @neeloong/form v0.
|
|
2
|
+
* @neeloong/form v0.20.0
|
|
3
3
|
* (c) 2024-2025 Fierflame
|
|
4
4
|
* @license Apache-2.0
|
|
5
5
|
*/
|
|
@@ -783,7 +783,16 @@ type StoreLayout = {
|
|
|
783
783
|
fields?: StoreLayout.Item[] | null | undefined;
|
|
784
784
|
};
|
|
785
785
|
declare namespace StoreLayout {
|
|
786
|
-
type Action = "add" | "move" | "trigger" | "remove" | "serial";
|
|
786
|
+
type Action = "add" | "move" | "trigger" | "remove" | "serial" | "open" | "collapse";
|
|
787
|
+
type Grid = {
|
|
788
|
+
colStart?: number | undefined;
|
|
789
|
+
colSpan?: number | undefined;
|
|
790
|
+
colEnd?: number | undefined;
|
|
791
|
+
rowStart?: number | undefined;
|
|
792
|
+
rowSpan?: number | undefined;
|
|
793
|
+
rowEnd?: number | undefined;
|
|
794
|
+
cell?: "" | "collapse" | "block" | "inline" | "fieldset" | "base" | undefined;
|
|
795
|
+
};
|
|
787
796
|
type Field = {
|
|
788
797
|
type?: "field" | undefined;
|
|
789
798
|
colStart?: number | undefined;
|
|
@@ -792,13 +801,16 @@ declare namespace StoreLayout {
|
|
|
792
801
|
rowStart?: number | undefined;
|
|
793
802
|
rowSpan?: number | undefined;
|
|
794
803
|
rowEnd?: number | undefined;
|
|
795
|
-
cell?: ""
|
|
804
|
+
cell?: StoreLayout.Grid["cell"];
|
|
796
805
|
field: string;
|
|
797
806
|
html?: string | ParentNode | null | undefined;
|
|
798
807
|
inlineHtml?: string | ParentNode | null | undefined;
|
|
799
808
|
fields?: StoreLayout.Item[] | null | undefined;
|
|
800
809
|
tableFoot?: "add" | "header" | "none" | undefined;
|
|
801
|
-
columns?: (string | StoreLayout.Action[])[] | undefined;
|
|
810
|
+
columns?: (string | number | StoreLayout.Action[])[] | undefined;
|
|
811
|
+
arrayStyle?: "tree" | "table" | undefined;
|
|
812
|
+
mainMethod?: "move" | "trigger" | "open" | "collapse" | undefined;
|
|
813
|
+
levelKey?: string | undefined;
|
|
802
814
|
};
|
|
803
815
|
type Button = {
|
|
804
816
|
type: "button";
|
|
@@ -808,11 +820,12 @@ declare namespace StoreLayout {
|
|
|
808
820
|
rowStart?: number | undefined;
|
|
809
821
|
rowSpan?: number | undefined;
|
|
810
822
|
rowEnd?: number | undefined;
|
|
811
|
-
cell?: ""
|
|
823
|
+
cell?: StoreLayout.Grid["cell"];
|
|
812
824
|
required?: boolean | undefined;
|
|
813
825
|
label?: string | undefined;
|
|
814
826
|
description?: string | undefined;
|
|
815
|
-
|
|
827
|
+
disabled?: ((store: Store<any, any>, options?: StoreLayout.Options | null) => boolean) | undefined;
|
|
828
|
+
text?: string | ((store: Store<any, any>, options?: StoreLayout.Options | null) => string) | undefined;
|
|
816
829
|
click?: string | ((event: Event, store: Store<any, any>, options?: StoreLayout.Options | null) => void) | undefined;
|
|
817
830
|
};
|
|
818
831
|
type Html = {
|
|
@@ -823,7 +836,7 @@ declare namespace StoreLayout {
|
|
|
823
836
|
rowStart?: number | undefined;
|
|
824
837
|
rowSpan?: number | undefined;
|
|
825
838
|
rowEnd?: number | undefined;
|
|
826
|
-
cell?: ""
|
|
839
|
+
cell?: StoreLayout.Grid["cell"];
|
|
827
840
|
required?: boolean | undefined;
|
|
828
841
|
label?: string | undefined;
|
|
829
842
|
description?: string | undefined;
|
|
@@ -1220,9 +1233,10 @@ declare class ArrayStore<T = any, M = any> extends Store<(T | null)[], M> {
|
|
|
1220
1233
|
*
|
|
1221
1234
|
* @param {number} from
|
|
1222
1235
|
* @param {number} to
|
|
1236
|
+
* @param {number} quantity
|
|
1223
1237
|
* @returns
|
|
1224
1238
|
*/
|
|
1225
|
-
move(from: number, to: number):
|
|
1239
|
+
move(from: number, to: number, quantity?: number): number;
|
|
1226
1240
|
/**
|
|
1227
1241
|
*
|
|
1228
1242
|
* @param {number} a
|