@yongdall/web 0.3.3 → 0.4.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.
@@ -1,4 +1,4 @@
1
1
  export const alias = {".":"index","plugin":"plugin"};
2
2
  export const esm = {"boot":"boot.mjs","index":"index.mjs","plugin":"plugin.mjs"};
3
3
  export const importmap = {"*":{"{%origin%}/plugin":"{%root:origin%}/{%esm:plugin%}?plugin={%plugin%}"}};
4
- export const nodeModules = {"dot-request":{"esm":{".":"index.min.mjs"}},"@neeloong/form":{"esm":{".":"index.min.mjs"}},"signal-polyfill":{"esm":{".":"dist/index.js"}}};
4
+ export const nodeModules = {"dot-request":{"esm":{".":"index.min.mjs"}},"@neeloong/form":{"esm":{".":"index.min.mjs"}},"signal-polyfill":{"esm":{".":"dist/index.js"}},"dompurify":true};
package/index.d.mts CHANGED
@@ -1,10 +1,11 @@
1
1
  import * as dot_request1 from "dot-request";
2
2
  import DotRequest, { default as DotRequest$1 } from "dot-request";
3
- import { ArrayStore, ObjectStore, Schema, Schema as Schema$1, Store, Store as Store$1, StoreLayout, StoreLayout as StoreLayout$1, renderStore } from "@neeloong/form";
3
+ import { ArrayStore, BindObjectStore, ObjectStore, Schema, Schema as Schema$1, Store, Store as Store$1, StoreLayout, StoreLayout as StoreLayout$1, renderStore } from "@neeloong/form";
4
4
  import { Hook, Indicator, Plugin, Search } from "@yongdall/common";
5
5
  import { Field, MaybePromise, Permission, Permissions } from "@yongdall/types";
6
6
  import { Signal as Signal$1 } from "signal-polyfill";
7
7
  export * from "@yongdall/common";
8
+ export * from "@yongdall/types";
8
9
 
9
10
  //#region \0rolldown/runtime.js
10
11
  //#endregion
@@ -89,6 +90,13 @@ declare function createState<T>(initValue?: T | undefined): State<T | undefined>
89
90
  * @returns {State<T>}
90
91
  */
91
92
  declare function createComputed<T>(get: () => T, set?: (newValue: T) => void): State<T>;
93
+ /**
94
+ * @template {Record<string, any>} T
95
+ * @param {State<T>} state
96
+ * @param {Record<string, any>} struct
97
+ * @returns {T}
98
+ */
99
+ declare function createDeeply<T extends Record<string, any>>(state: State<T>, struct: Record<string, any>): T;
92
100
  type State<T> = {
93
101
  get: () => T;
94
102
  set: (newValue: T) => void;
@@ -423,6 +431,8 @@ declare class PageSider extends GeneralContext {
423
431
  */
424
432
  constructor(parent: ParentNode, next: Node | null, inserted: boolean, signal: AbortSignal);
425
433
  get container(): HTMLDivElement;
434
+ set unprintable(unprintable: boolean);
435
+ get unprintable(): boolean;
426
436
  set panel(panel: boolean);
427
437
  get panel(): boolean;
428
438
  set title(t: string);
@@ -458,6 +468,8 @@ declare class PageHeader extends GeneralContext {
458
468
  * @returns
459
469
  */
460
470
  setMenu(menus: any, create?: Menu.Renderer): void;
471
+ set unprintable(unprintable: boolean);
472
+ get unprintable(): boolean;
461
473
  #private;
462
474
  }
463
475
  //#endregion
@@ -471,6 +483,8 @@ declare class PageFooter extends GeneralContext {
471
483
  */
472
484
  constructor(root: HTMLElement, signal?: AbortSignal);
473
485
  get container(): HTMLDivElement;
486
+ set unprintable(unprintable: boolean);
487
+ get unprintable(): boolean;
474
488
  #private;
475
489
  }
476
490
  //#endregion
@@ -486,6 +500,8 @@ declare class PageSection extends GeneralContext {
486
500
  */
487
501
  constructor(parent: ParentNode, next: Node | null, inserted: boolean, signal: AbortSignal);
488
502
  get container(): HTMLDivElement;
503
+ set unprintable(unprintable: boolean);
504
+ get unprintable(): boolean;
489
505
  set panel(panel: boolean);
490
506
  get panel(): boolean;
491
507
  get inserted(): boolean;
@@ -547,6 +563,142 @@ declare class Page {
547
563
  #private;
548
564
  }
549
565
  //#endregion
566
+ //#region packages/web/print.d.mts
567
+ type Print = Print.Page & Print.Pages;
568
+ declare namespace Print {
569
+ type MarginBox = {
570
+ content?: Print.Context | Print.Context[] | undefined;
571
+ /**
572
+ * - 字体族
573
+ */
574
+ fontFamily?: string | undefined;
575
+ /**
576
+ * - 字体大小
577
+ */
578
+ fontSize?: string | number | undefined;
579
+ bold?: boolean | undefined;
580
+ italic?: boolean | undefined;
581
+ /**
582
+ * - 文字颜色
583
+ */
584
+ color?: string | undefined;
585
+ /**
586
+ * - 文本方向
587
+ */
588
+ direction?: "ltr" | "rtl" | undefined;
589
+ /**
590
+ * - 行高
591
+ */
592
+ lineHeight?: string | number | undefined;
593
+ /**
594
+ * - 层叠顺序
595
+ */
596
+ zIndex?: number | undefined;
597
+ /**
598
+ * - 文本对齐
599
+ */
600
+ textAlign?: "left" | "right" | "center" | "justify" | "start" | "end" | undefined;
601
+ /**
602
+ * - 垂直对齐
603
+ */
604
+ verticalAlign?: number | "sub" | "baseline" | "super" | "top" | "text-top" | "middle" | "bottom" | "text-bottom" | undefined;
605
+ /**
606
+ * - 内边距属性对象
607
+ */
608
+ padding?: Record<"left" | "right" | "top" | "bottom", string | number> | undefined;
609
+ border?: Print.Border | undefined;
610
+ };
611
+ type Context = string | Print.Newline | Print.Image | Print.Barcode | Print.Counter;
612
+ type Newline = {
613
+ type: "newline";
614
+ };
615
+ type Counter = {
616
+ type: "page" | "pages";
617
+ };
618
+ type Image = {
619
+ type: "image";
620
+ url: string;
621
+ alt?: string | undefined;
622
+ width?: string | number | undefined;
623
+ height?: string | number | undefined;
624
+ };
625
+ type Barcode = {
626
+ type: "barcode" | "code128";
627
+ text: string;
628
+ width?: string | number | undefined;
629
+ height?: string | number | undefined;
630
+ };
631
+ type Border = {
632
+ /**
633
+ * - 边框宽度复合属性
634
+ */
635
+ width?: string | number | undefined;
636
+ /**
637
+ * - 边框颜色复合属性
638
+ */
639
+ color?: string | undefined;
640
+ /**
641
+ * - 边框样式复合属性
642
+ */
643
+ style?: "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset" | undefined;
644
+ };
645
+ type Page = {
646
+ /**
647
+ * 页面尺寸
648
+ */
649
+ size?: {
650
+ width?: string;
651
+ height?: string;
652
+ } | "A3" | "B4" | "A4" | "B5" | "A5" | undefined;
653
+ /**
654
+ * 页面方向
655
+ */
656
+ orientation?: "portrait" | "landscape" | "auto" | undefined;
657
+ /**
658
+ * 页边距
659
+ */
660
+ margin?: string | [string, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
661
+ topLeft?: Print.MarginBox | undefined;
662
+ topCenter?: Print.MarginBox | undefined;
663
+ topRight?: Print.MarginBox | undefined;
664
+ bottomLeft?: Print.MarginBox | undefined;
665
+ bottomCenter?: Print.MarginBox | undefined;
666
+ bottomRight?: Print.MarginBox | undefined;
667
+ leftTop?: Print.MarginBox | undefined;
668
+ leftMiddle?: Print.MarginBox | undefined;
669
+ leftBottom?: Print.MarginBox | undefined;
670
+ rightTop?: Print.MarginBox | undefined;
671
+ rightMiddle?: Print.MarginBox | undefined;
672
+ rightBottom?: Print.MarginBox | undefined;
673
+ topLeftCorner?: Print.MarginBox | undefined;
674
+ topRightCorner?: Print.MarginBox | undefined;
675
+ bottomLeftCorner?: Print.MarginBox | undefined;
676
+ bottomRightCorner?: Print.MarginBox | undefined;
677
+ topBorder?: Print.Border | undefined;
678
+ bottomBorder?: Print.Border | undefined;
679
+ leftBorder?: Print.Border | undefined;
680
+ rightBorder?: Print.Border | undefined;
681
+ };
682
+ type Pages = {
683
+ /**
684
+ * 左侧页面/节点
685
+ */
686
+ left?: Print.Page | undefined;
687
+ /**
688
+ * 右侧页面/节点
689
+ */
690
+ right?: Print.Page | undefined;
691
+ /**
692
+ * 首页页面/节点
693
+ */
694
+ first?: Print.Page | undefined;
695
+ /**
696
+ * 空白页面/节点
697
+ */
698
+ blank?: Print.Page | undefined;
699
+ };
700
+ }
701
+ //#endregion
550
702
  //#region packages/web/services/page.d.mts
551
703
  type PageConfiguration = {
552
704
  id?: string | undefined;
@@ -559,12 +711,7 @@ type PageConfiguration = {
559
711
  title?: string | undefined;
560
712
  titlePattern?: string | undefined;
561
713
  config?: Record<string, any> | undefined;
562
- fields?: {
563
- field?: string;
564
- label?: string;
565
- width?: number;
566
- pattern?: string;
567
- }[] | undefined;
714
+ fields?: PageConfiguration.Field[] | undefined;
568
715
  sides?: {
569
716
  widget: string;
570
717
  options: string;
@@ -586,9 +733,23 @@ type PageConfiguration = {
586
733
  operator: string;
587
734
  }[] | undefined;
588
735
  };
736
+ declare namespace PageConfiguration {
737
+ type Field = {
738
+ field?: string | undefined;
739
+ label?: string | undefined;
740
+ width?: number | undefined;
741
+ pattern?: string | undefined;
742
+ align?: "" | "left" | "right" | "center" | undefined;
743
+ enableLink?: boolean | undefined;
744
+ };
745
+ }
589
746
  //#endregion
590
747
  //#region packages/web/route/route.d.mts
591
748
  type PageIdent = PageIdent.Model | PageIdent.Organization | PageIdent.User | PageIdent.Workspace | PageIdent.Page | PageIdent.Configuration;
749
+ declare const PageIdent: {
750
+ readonly parse: PageIdent.Parser;
751
+ readonly stringify: (page: PageIdent, ...paths: (string | null | undefined)[]) => string;
752
+ };
592
753
  declare namespace PageIdent {
593
754
  type Router = {
594
755
  stringify: PageIdent.Stringify;
@@ -707,7 +868,7 @@ declare function modelService(model: string): {
707
868
  documents: any[];
708
869
  total: number;
709
870
  }>;
710
- getOptions(): Record<string, any>[] | never[];
871
+ getOptions(): Record<string, any>[];
711
872
  /**
712
873
  * @overload
713
874
  * @param {boolean} [options]
@@ -824,7 +985,9 @@ type ListScriptParameter = {
824
985
  type DocumentScriptParameter = {
825
986
  model: ModelScriptConfiguration;
826
987
  document?: Record<string, any> | undefined;
827
- store?: Store$1<any, any> | undefined;
988
+ store?: Store$1<any, any, {
989
+ [x: string]: any;
990
+ }> | undefined;
828
991
  };
829
992
  type ModelScript = {
830
993
  /**
@@ -864,17 +1027,7 @@ type FieldScript = {
864
1027
  label?: ((store: Store$1) => string) | null | undefined;
865
1028
  description?: ((store: Store$1) => string) | null | undefined;
866
1029
  placeholder?: ((store: Store$1) => string) | null | undefined;
867
- step?: ((store: Store$1) => string) | null | undefined;
868
- max?: ((store: Store$1) => string) | null | undefined;
869
- min?: ((store: Store$1) => string) | null | undefined;
870
1030
  validator?: Schema$1.Validator | Schema$1.Validator[] | null | undefined;
871
- validators?: {
872
- input?: Schema$1.AsyncValidator | Schema$1.AsyncValidator[] | null | undefined;
873
- change?: Schema$1.AsyncValidator | Schema$1.AsyncValidator[] | null | undefined;
874
- click?: Schema$1.AsyncValidator | Schema$1.AsyncValidator[] | null | undefined;
875
- focus?: Schema$1.AsyncValidator | Schema$1.AsyncValidator[] | null | undefined;
876
- blur?: Schema$1.AsyncValidator | Schema$1.AsyncValidator[] | null | undefined;
877
- } | undefined;
878
1031
  };
879
1032
  //#endregion
880
1033
  //#region packages/web/route/PageHandle.d.mts
@@ -938,6 +1091,10 @@ declare class PageHandle extends GeneralContext {
938
1091
  get href(): string;
939
1092
  get current(): boolean;
940
1093
  get shown(): boolean;
1094
+ set icon(icon: string);
1095
+ get icon(): string;
1096
+ set print(print: Print);
1097
+ get print(): Print;
941
1098
  set unsaved(unsaved: boolean);
942
1099
  get unsaved(): boolean;
943
1100
  set loading(loading: boolean);
@@ -1104,11 +1261,51 @@ declare namespace Command {
1104
1261
  document?: Record<string, any> | undefined;
1105
1262
  documents?: Record<string, any>[] | undefined;
1106
1263
  checkedDocuments?: Record<string, any>[] | undefined;
1107
- store?: Store$1<any, any> | undefined;
1264
+ store?: Store$1<any, any, {
1265
+ [x: string]: any;
1266
+ }> | undefined;
1267
+ };
1268
+ }
1269
+ //#endregion
1270
+ //#region packages/web/DataSource/index.d.mts
1271
+ /**
1272
+ *
1273
+ * @param {any[] | Field.Source | null} [source]
1274
+ * @param {string | null} [model]
1275
+ * @param {Store | null} [store]
1276
+ * @returns {DataSource}
1277
+ */
1278
+ declare function buildDataSource(source?: any[] | Field.Source | null, model?: string | null, store?: Store$1 | null): DataSource;
1279
+ type DataSource = Field.Source & DataSource.Extends;
1280
+ declare namespace DataSource {
1281
+ type Option = {
1282
+ id: string | number;
1283
+ value: string | number;
1284
+ label: string;
1285
+ data: any;
1286
+ parentId?: string | number | undefined;
1287
+ disabled?: boolean | undefined;
1288
+ children: DataSource.Option[];
1289
+ };
1290
+ type Extends = {
1291
+ labels: {
1292
+ [x: string]: string;
1293
+ };
1294
+ options: DataSource.Option[];
1295
+ levelTree: (DataSource.Option & {
1296
+ level: number;
1297
+ })[];
1298
+ map: Record<string, any>;
1299
+ model?: string | null | undefined;
1108
1300
  };
1109
1301
  }
1110
1302
  //#endregion
1111
1303
  //#region packages/web/typesDefine.d.mts
1304
+ interface CurrentPage {
1305
+ title: string;
1306
+ icon: string;
1307
+ print: Print;
1308
+ }
1112
1309
  interface VerifyError {
1113
1310
  focus(): void;
1114
1311
  stop: boolean;
@@ -1141,8 +1338,10 @@ interface FieldContext {
1141
1338
  readonly placeholder: string;
1142
1339
  readonly description: string;
1143
1340
  readonly signal: AbortSignal;
1341
+ readonly source: DataSource;
1144
1342
  listen<K extends keyof FieldComponentEvent>(event: K, listen: FieldComponentEvent[K]): () => void;
1145
1343
  emit(event: string, e: any): void;
1344
+ readonly bind?: ((data: any) => void) | null;
1146
1345
  }
1147
1346
  interface ConfiguratorContext extends FieldContext {
1148
1347
  root: HTMLElement;
@@ -1200,8 +1399,9 @@ interface FieldFilterContext {
1200
1399
  readonly field?: FieldScriptConfiguration;
1201
1400
  readonly operator: string;
1202
1401
  value: any;
1203
- signal: AbortSignal;
1204
- destroyed: boolean;
1402
+ readonly signal: AbortSignal;
1403
+ readonly source: DataSource;
1404
+ readonly destroyed: boolean;
1205
1405
  }
1206
1406
  interface FieldFilterComponent<T extends Record<string, any> = Record<string, any>> {
1207
1407
  (ctx: FieldFilterContext, options?: T): HTMLElement;
@@ -1296,8 +1496,12 @@ interface Authenticator {
1296
1496
  login(signal: AbortSignal): PromiseLike<void> | void;
1297
1497
  }
1298
1498
  interface Theme {
1499
+ title(page: CurrentPage): string;
1500
+ icon(page: CurrentPage): string;
1299
1501
  home: (ctx: HomeContext) => void;
1300
- updatePath: (path: string, search: string, hash: string) => void;
1502
+ updatePath: (path: string, search: string, hash: string, page: (PageIdent & {
1503
+ path: string;
1504
+ }) | null) => void;
1301
1505
  /** 自动加载的样式文件 */
1302
1506
  styleFiles: string[];
1303
1507
  /** 添加到 <body> 上的类名 */
@@ -1343,6 +1547,10 @@ declare class PageContext extends GeneralContext {
1343
1547
  get shown(): boolean;
1344
1548
  set title(title: string);
1345
1549
  get title(): string;
1550
+ set icon(icon: string);
1551
+ get icon(): string;
1552
+ set print(print: Print);
1553
+ get print(): Print;
1346
1554
  set unsaved(unsaved: boolean);
1347
1555
  get unsaved(): boolean;
1348
1556
  set loading(loading: boolean);
@@ -1614,7 +1822,9 @@ declare function _default$2(store: Store$1<any, any>, root: HTMLElement, {
1614
1822
  * @param {ModelScriptConfiguration} define
1615
1823
  * @param {FieldComponents?} [fieldComponents]
1616
1824
  */
1617
- declare function createStore(define: ModelScriptConfiguration, fieldComponents?: FieldComponents | null): Store$1<any, any>;
1825
+ declare function createStore(define: ModelScriptConfiguration, fieldComponents?: FieldComponents | null): Store$1<any, any, {
1826
+ [x: string]: any;
1827
+ }>;
1618
1828
  //#endregion
1619
1829
  //#region packages/web/form/createShowField.d.mts
1620
1830
  /**
@@ -1662,13 +1872,13 @@ declare function showFilterDialog(modelDefine: ModelScriptConfiguration, value?:
1662
1872
  //#region packages/web/form/createStoreField.d.mts
1663
1873
  /**
1664
1874
  *
1665
- * @param {Store} store
1875
+ * @param {Store<any, Field?, any>} store
1666
1876
  * @param {FieldStyle} style
1667
1877
  * @param {any} [renderer]
1668
1878
  * @param {StoreLayout.Options?} [options]
1669
1879
  * @returns {HTMLElement?}
1670
1880
  */
1671
- declare function createStoreField(store: Store$1, style: FieldStyle, renderer?: any, options?: StoreLayout$1.Options | null): HTMLElement | null;
1881
+ declare function createStoreField(store: Store$1<any, Field | null, any>, style: FieldStyle, renderer?: any, options?: StoreLayout$1.Options | null): HTMLElement | null;
1672
1882
  //#endregion
1673
1883
  //#region packages/web/utils/toUrl.d.mts
1674
1884
  /**
@@ -1703,6 +1913,14 @@ declare function waitAbortSignal(signal: AbortSignal | null | undefined, useReje
1703
1913
  * @returns {Promise<void | never>}
1704
1914
  */
1705
1915
  declare function waitAbortSignal(signal?: AbortSignal | null | undefined, useReject?: boolean | null | undefined): Promise<void | never>;
1916
+ declare namespace code128_d_exports {
1917
+ export { encode$1 as encode };
1918
+ }
1919
+ /**
1920
+ *
1921
+ * @param {string} text
1922
+ */
1923
+ declare function encode$1(text: string): any[];
1706
1924
  //#endregion
1707
1925
  //#region packages/web/script/index.d.mts
1708
1926
  /**
@@ -1724,7 +1942,7 @@ declare function enumerationsService(enumeration: string): {
1724
1942
  catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<Record<string, any>[] | TResult2>;
1725
1943
  finally(onfinally?: (() => void) | null | undefined): Promise<Record<string, any>[]>;
1726
1944
  load: (force?: boolean) => Promise<Record<string, any>[]>;
1727
- get: () => Record<string, any>[] | never[];
1945
+ get: () => Record<string, any>[];
1728
1946
  };
1729
1947
  //#endregion
1730
1948
  //#region packages/web/services/formLayout.d.mts
@@ -1737,25 +1955,37 @@ declare function formLayoutsService(layout: string): {
1737
1955
  then<TResult1 = {
1738
1956
  layout: any;
1739
1957
  type?: string;
1958
+ enableLink?: boolean;
1959
+ enableLinkEditable?: boolean;
1740
1960
  } | null, TResult2 = never>(onfulfilled?: ((value: {
1741
1961
  layout: any;
1742
1962
  type?: string;
1963
+ enableLink?: boolean;
1964
+ enableLinkEditable?: boolean;
1743
1965
  } | null) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<TResult1 | TResult2>;
1744
1966
  catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<{
1745
1967
  layout: any;
1746
1968
  type?: string;
1969
+ enableLink?: boolean;
1970
+ enableLinkEditable?: boolean;
1747
1971
  } | TResult2 | null>;
1748
1972
  finally(onfinally?: (() => void) | null | undefined): Promise<{
1749
1973
  layout: any;
1750
1974
  type?: string;
1975
+ enableLink?: boolean;
1976
+ enableLinkEditable?: boolean;
1751
1977
  } | null>;
1752
1978
  load: (force?: boolean) => Promise<{
1753
1979
  layout: any;
1754
1980
  type?: string;
1981
+ enableLink?: boolean;
1982
+ enableLinkEditable?: boolean;
1755
1983
  } | null>;
1756
1984
  get: () => {
1757
1985
  layout: any;
1758
1986
  type?: string;
1987
+ enableLink?: boolean;
1988
+ enableLinkEditable?: boolean;
1759
1989
  } | null;
1760
1990
  };
1761
1991
  //#endregion
@@ -1839,99 +2069,6 @@ declare namespace pathRoots {
1839
2069
  let file: string;
1840
2070
  }
1841
2071
  //#endregion
1842
- //#region packages/web/loadOptions.d.mts
1843
- /**
1844
- *
1845
- * @param {Record<string, Field>} fields 字段配置
1846
- * @param {Search.ExecParam} param
1847
- * @returns
1848
- */
1849
- declare function modelFilter(fields: Record<string, Field>, param: Search.ExecParam): boolean | null;
1850
- /**
1851
- *
1852
- * @param {object} options
1853
- * @param {string?} [options.type]
1854
- * @param {string?} [options.name]
1855
- * @param {string?} [options.model]
1856
- * @param {string?} [options.filter]
1857
- * @param {*} [options.values]
1858
- * @param {string?} [options.id]
1859
- * @param {string?} [options.label]
1860
- * @param {string?} [options.value]
1861
- * @param {string?} [options.parent]
1862
- * @param {string?} [options.children]
1863
- * @param {string?} [options.sequence]
1864
- * @param {string?} [options.disabled]
1865
- * @param {*} [options.values]
1866
- * @param {((placeholder: string) => Search.Value | null) | false} [getPlaceholder]
1867
- * @param {(value: Search.ExecParam) => boolean?} [exec]
1868
- * @returns
1869
- */
1870
- declare function loadOptions({
1871
- type,
1872
- name,
1873
- model,
1874
- values,
1875
- ...options
1876
- }: {
1877
- type?: string | null | undefined;
1878
- name?: string | null | undefined;
1879
- model?: string | null | undefined;
1880
- filter?: string | null | undefined;
1881
- values?: any;
1882
- id?: string | null | undefined;
1883
- label?: string | null | undefined;
1884
- value?: string | null | undefined;
1885
- parent?: string | null | undefined;
1886
- children?: string | null | undefined;
1887
- sequence?: string | null | undefined;
1888
- disabled?: string | null | undefined;
1889
- values?: any;
1890
- }, getPlaceholder?: ((placeholder: string) => Search.Value | null) | false, exec?: (value: Search.ExecParam) => boolean | null): State<Option[]>;
1891
- /**
1892
- *
1893
- * @param {object} options
1894
- * @param {string?} [options.type]
1895
- * @param {string?} [options.name]
1896
- * @param {string?} [options.model]
1897
- * @param {string?} [options.filter]
1898
- * @param {*} [options.values]
1899
- * @param {string} [options.configurator]
1900
- * @param {string?} [options.parent]
1901
- * @param {string?} [options.children]
1902
- * @param {((placeholder: string) => Search.Value | null)} [getPlaceholder]
1903
- * @param {(value: Search.ExecParam) => boolean?} [exec]
1904
- * @returns
1905
- */
1906
- declare function findConfigurator({
1907
- type,
1908
- name,
1909
- model,
1910
- values,
1911
- configurator,
1912
- parent,
1913
- children,
1914
- filter
1915
- }: {
1916
- type?: string | null | undefined;
1917
- name?: string | null | undefined;
1918
- model?: string | null | undefined;
1919
- filter?: string | null | undefined;
1920
- values?: any;
1921
- configurator?: string | undefined;
1922
- parent?: string | null | undefined;
1923
- children?: string | null | undefined;
1924
- }, getPlaceholder?: ((placeholder: string) => Search.Value | null), exec?: (value: Search.ExecParam) => boolean | null): State<any>;
1925
- type Option = {
1926
- id: string | number;
1927
- value: string | number;
1928
- label: string;
1929
- data: any;
1930
- parentId?: string | number | undefined;
1931
- disabled?: boolean | undefined;
1932
- children: Option[];
1933
- };
1934
- //#endregion
1935
2072
  //#region packages/web/model.d.mts
1936
2073
  /**
1937
2074
  *
@@ -2049,7 +2186,7 @@ declare function testPermissions(authorization: string, permissions: Permission[
2049
2186
  */
2050
2187
  declare function getPermissionFields(authorization: string, permissions: Permission[], model: ModelConfiguration | ModelScriptConfiguration): Set<string>;
2051
2188
  declare namespace Ident_d_exports {
2052
- export { decode, encode, parse, stringify };
2189
+ export { decode, encode, parse, stringify, stringifyPaths };
2053
2190
  }
2054
2191
  /** @import { PageIdent } from './route/route.mjs' */
2055
2192
  /**
@@ -2073,6 +2210,12 @@ declare function parse(ident: string): PageIdent;
2073
2210
  * @returns {string}
2074
2211
  */
2075
2212
  declare function stringify(a: PageIdent): string;
2213
+ /**
2214
+ *
2215
+ * @param {PageIdent} a
2216
+ * @returns {Iterable<string>}
2217
+ */
2218
+ declare function stringifyPaths(a: PageIdent): Iterable<string>;
2076
2219
  //#endregion
2077
2220
  //#region packages/web/request.d.mts
2078
2221
  declare class ARequest extends DotRequest$1 {
@@ -2301,4 +2444,4 @@ declare function updateHooks(hooks: Record<string, Hook.Define<Hooks>>): void;
2301
2444
  /** @type {Hook<Hooks>} */
2302
2445
  declare const allHooks: Hook<Hooks>;
2303
2446
  //#endregion
2304
- export { ArrayStore, Authenticator, Command, ConfiguratorComponent, ConfiguratorContext, type ContinuationDefine, DotRequest, FieldComponent, FieldComponentEvent, FieldComponents, FieldContext, FieldDefine, FieldFilter, FieldFilterComponent, FieldFilterContext, FieldFilterFns, FieldFilterOptions, FieldFilterStyle, type FieldScript, type FieldScriptConfiguration, FieldShowHandle, FieldStyle, FilterFns, FormFieldHook, FromRenderer, GeneralContext, type HomeContext, Hooks, IconDefine, Ident_d_exports as Ident, List, type Match, Menu, type ModelConfiguration, ModelIndicator, type ModelScript, type ModelScriptConfiguration, ObjectStore, Option, Page, type PageContext, type PageError, PageFooter, type PageHandle, PageHeader, type PageIdent, type PageManager, type PageRenderer, PageSection, PageSectionParam, PageSider, Pagination, ResponseError, type Schema, Signal$1 as Signal, State, Store, type StoreLayout, SubmodelsLayoutEvent, Theme, User, UserHook, VerifyContext, VerifyError, type WorkspaceDefine, addManager, allHooks, application, buildPlugin, createComputed, createFilters, createIcon, createQuickFilters, createShowField, createState, createStore, createStoreField, effect, enumerationsService, execScript, filterPermission, findConfigurator, formLayoutsService, getAllFilterFns, getAuthorizations, getField, getFieldFilter, getFieldFilterOperators, getFilterFns, getPages, getPermissionFields, getPrimaryFields, hasField, hasFieldFilter, importStyle, importWidget, isPluginId, loadMenu, loadOptions, modelFilter, modelService, neverAbortedSignal, pathRoots, _default as permissionsService, plugins, _default$1 as renderForm, renderStore, _default$2 as renderStoreForm, request, root$1 as root, selectFile, setIcon, showFilterDialog, start, testPermission, testPermissionConstraints, testPermissions, toFileLink, toFileURL, toId, toSchema, toUrl, updateHooks, waitAbortSignal, watch };
2447
+ export { ArrayStore, Authenticator, BindObjectStore, code128_d_exports as Code128, Command, ConfiguratorComponent, ConfiguratorContext, type ContinuationDefine, CurrentPage, type DataSource, DotRequest, FieldComponent, FieldComponentEvent, FieldComponents, FieldContext, FieldDefine, FieldFilter, FieldFilterComponent, FieldFilterContext, FieldFilterFns, FieldFilterOptions, FieldFilterStyle, type FieldScript, type FieldScriptConfiguration, FieldShowHandle, FieldStyle, FilterFns, FormFieldHook, FromRenderer, GeneralContext, type HomeContext, Hooks, IconDefine, Ident_d_exports as Ident, List, type Match, Menu, type ModelConfiguration, ModelIndicator, type ModelScript, type ModelScriptConfiguration, ObjectStore, Page, type PageConfiguration, type PageContext, type PageError, PageFooter, type PageHandle, PageHeader, PageIdent, type PageManager, type PageRenderer, PageSection, PageSectionParam, PageSider, Pagination, type Print, ResponseError, type Schema, Signal$1 as Signal, State, Store, type StoreLayout, SubmodelsLayoutEvent, Theme, User, UserHook, VerifyContext, VerifyError, type WorkspaceDefine, addManager, allHooks, application, buildDataSource, buildPlugin, createComputed, createDeeply, createFilters, createIcon, createQuickFilters, createShowField, createState, createStore, createStoreField, effect, enumerationsService, execScript, filterPermission, formLayoutsService, getAllFilterFns, getAuthorizations, getField, getFieldFilter, getFieldFilterOperators, getFilterFns, getPages, getPermissionFields, getPrimaryFields, hasField, hasFieldFilter, importStyle, importWidget, isPluginId, loadMenu, modelService, neverAbortedSignal, pathRoots, _default as permissionsService, plugins, _default$1 as renderForm, renderStore, _default$2 as renderStoreForm, request, root$1 as root, selectFile, setIcon, showFilterDialog, start, testPermission, testPermissionConstraints, testPermissions, toFileLink, toFileURL, toId, toSchema, toUrl, updateHooks, waitAbortSignal, watch };