@neeloong/form 0.19.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @neeloong/form v0.19.0
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?: "" | "block" | "inline" | "collapse" | "base" | undefined;
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,7 +820,7 @@ declare namespace StoreLayout {
808
820
  rowStart?: number | undefined;
809
821
  rowSpan?: number | undefined;
810
822
  rowEnd?: number | undefined;
811
- cell?: "" | "block" | "inline" | "collapse" | "base" | undefined;
823
+ cell?: StoreLayout.Grid["cell"];
812
824
  required?: boolean | undefined;
813
825
  label?: string | undefined;
814
826
  description?: string | undefined;
@@ -824,7 +836,7 @@ declare namespace StoreLayout {
824
836
  rowStart?: number | undefined;
825
837
  rowSpan?: number | undefined;
826
838
  rowEnd?: number | undefined;
827
- cell?: "" | "content" | "block" | "inline" | "collapse" | undefined;
839
+ cell?: StoreLayout.Grid["cell"];
828
840
  required?: boolean | undefined;
829
841
  label?: string | undefined;
830
842
  description?: string | undefined;
@@ -1221,9 +1233,10 @@ declare class ArrayStore<T = any, M = any> extends Store<(T | null)[], M> {
1221
1233
  *
1222
1234
  * @param {number} from
1223
1235
  * @param {number} to
1236
+ * @param {number} quantity
1224
1237
  * @returns
1225
1238
  */
1226
- move(from: number, to: number): boolean;
1239
+ move(from: number, to: number, quantity?: number): number;
1227
1240
  /**
1228
1241
  *
1229
1242
  * @param {number} a