@yongdall/web 0.3.3 → 0.4.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/assets.yongdall.mjs +1 -1
- package/index.d.mts +232 -104
- package/index.mjs +24 -12
- package/index.mjs.map +1 -1
- package/package.json +8 -6
package/assets.yongdall.mjs
CHANGED
|
@@ -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;
|
|
@@ -589,6 +741,10 @@ type PageConfiguration = {
|
|
|
589
741
|
//#endregion
|
|
590
742
|
//#region packages/web/route/route.d.mts
|
|
591
743
|
type PageIdent = PageIdent.Model | PageIdent.Organization | PageIdent.User | PageIdent.Workspace | PageIdent.Page | PageIdent.Configuration;
|
|
744
|
+
declare const PageIdent: {
|
|
745
|
+
readonly parse: PageIdent.Parser;
|
|
746
|
+
readonly stringify: (page: PageIdent, ...paths: (string | null | undefined)[]) => string;
|
|
747
|
+
};
|
|
592
748
|
declare namespace PageIdent {
|
|
593
749
|
type Router = {
|
|
594
750
|
stringify: PageIdent.Stringify;
|
|
@@ -707,7 +863,7 @@ declare function modelService(model: string): {
|
|
|
707
863
|
documents: any[];
|
|
708
864
|
total: number;
|
|
709
865
|
}>;
|
|
710
|
-
getOptions(): Record<string, any>[]
|
|
866
|
+
getOptions(): Record<string, any>[];
|
|
711
867
|
/**
|
|
712
868
|
* @overload
|
|
713
869
|
* @param {boolean} [options]
|
|
@@ -824,7 +980,9 @@ type ListScriptParameter = {
|
|
|
824
980
|
type DocumentScriptParameter = {
|
|
825
981
|
model: ModelScriptConfiguration;
|
|
826
982
|
document?: Record<string, any> | undefined;
|
|
827
|
-
store?: Store$1<any, any
|
|
983
|
+
store?: Store$1<any, any, {
|
|
984
|
+
[x: string]: any;
|
|
985
|
+
}> | undefined;
|
|
828
986
|
};
|
|
829
987
|
type ModelScript = {
|
|
830
988
|
/**
|
|
@@ -938,6 +1096,10 @@ declare class PageHandle extends GeneralContext {
|
|
|
938
1096
|
get href(): string;
|
|
939
1097
|
get current(): boolean;
|
|
940
1098
|
get shown(): boolean;
|
|
1099
|
+
set icon(icon: string);
|
|
1100
|
+
get icon(): string;
|
|
1101
|
+
set print(print: Print);
|
|
1102
|
+
get print(): Print;
|
|
941
1103
|
set unsaved(unsaved: boolean);
|
|
942
1104
|
get unsaved(): boolean;
|
|
943
1105
|
set loading(loading: boolean);
|
|
@@ -1104,11 +1266,43 @@ declare namespace Command {
|
|
|
1104
1266
|
document?: Record<string, any> | undefined;
|
|
1105
1267
|
documents?: Record<string, any>[] | undefined;
|
|
1106
1268
|
checkedDocuments?: Record<string, any>[] | undefined;
|
|
1107
|
-
store?: Store$1<any, any
|
|
1269
|
+
store?: Store$1<any, any, {
|
|
1270
|
+
[x: string]: any;
|
|
1271
|
+
}> | undefined;
|
|
1272
|
+
};
|
|
1273
|
+
}
|
|
1274
|
+
//#endregion
|
|
1275
|
+
//#region packages/web/form/buildSource/index.d.mts
|
|
1276
|
+
type Source = Field.Source & Source.Extends;
|
|
1277
|
+
declare namespace Source {
|
|
1278
|
+
type Option = {
|
|
1279
|
+
id: string | number;
|
|
1280
|
+
value: string | number;
|
|
1281
|
+
label: string;
|
|
1282
|
+
data: any;
|
|
1283
|
+
parentId?: string | number | undefined;
|
|
1284
|
+
disabled?: boolean | undefined;
|
|
1285
|
+
children: Source.Option[];
|
|
1286
|
+
};
|
|
1287
|
+
type Load = () => State<Source.Option[]>;
|
|
1288
|
+
type Extends = {
|
|
1289
|
+
labels: {
|
|
1290
|
+
[x: string]: string;
|
|
1291
|
+
};
|
|
1292
|
+
options: Source.Option[];
|
|
1293
|
+
levelTree: (Source.Option & {
|
|
1294
|
+
level: number;
|
|
1295
|
+
})[];
|
|
1296
|
+
map: Record<string, any>;
|
|
1108
1297
|
};
|
|
1109
1298
|
}
|
|
1110
1299
|
//#endregion
|
|
1111
1300
|
//#region packages/web/typesDefine.d.mts
|
|
1301
|
+
interface CurrentPage {
|
|
1302
|
+
title: string;
|
|
1303
|
+
icon: string;
|
|
1304
|
+
print: Print;
|
|
1305
|
+
}
|
|
1112
1306
|
interface VerifyError {
|
|
1113
1307
|
focus(): void;
|
|
1114
1308
|
stop: boolean;
|
|
@@ -1141,8 +1335,10 @@ interface FieldContext {
|
|
|
1141
1335
|
readonly placeholder: string;
|
|
1142
1336
|
readonly description: string;
|
|
1143
1337
|
readonly signal: AbortSignal;
|
|
1338
|
+
readonly source: Source;
|
|
1144
1339
|
listen<K extends keyof FieldComponentEvent>(event: K, listen: FieldComponentEvent[K]): () => void;
|
|
1145
1340
|
emit(event: string, e: any): void;
|
|
1341
|
+
readonly bind?: ((data: any) => void) | null;
|
|
1146
1342
|
}
|
|
1147
1343
|
interface ConfiguratorContext extends FieldContext {
|
|
1148
1344
|
root: HTMLElement;
|
|
@@ -1200,8 +1396,9 @@ interface FieldFilterContext {
|
|
|
1200
1396
|
readonly field?: FieldScriptConfiguration;
|
|
1201
1397
|
readonly operator: string;
|
|
1202
1398
|
value: any;
|
|
1203
|
-
signal: AbortSignal;
|
|
1204
|
-
|
|
1399
|
+
readonly signal: AbortSignal;
|
|
1400
|
+
readonly source: Source;
|
|
1401
|
+
readonly destroyed: boolean;
|
|
1205
1402
|
}
|
|
1206
1403
|
interface FieldFilterComponent<T extends Record<string, any> = Record<string, any>> {
|
|
1207
1404
|
(ctx: FieldFilterContext, options?: T): HTMLElement;
|
|
@@ -1296,8 +1493,12 @@ interface Authenticator {
|
|
|
1296
1493
|
login(signal: AbortSignal): PromiseLike<void> | void;
|
|
1297
1494
|
}
|
|
1298
1495
|
interface Theme {
|
|
1496
|
+
title(page: CurrentPage): string;
|
|
1497
|
+
icon(page: CurrentPage): string;
|
|
1299
1498
|
home: (ctx: HomeContext) => void;
|
|
1300
|
-
updatePath: (path: string, search: string, hash: string
|
|
1499
|
+
updatePath: (path: string, search: string, hash: string, page: (PageIdent & {
|
|
1500
|
+
path: string;
|
|
1501
|
+
}) | null) => void;
|
|
1301
1502
|
/** 自动加载的样式文件 */
|
|
1302
1503
|
styleFiles: string[];
|
|
1303
1504
|
/** 添加到 <body> 上的类名 */
|
|
@@ -1343,6 +1544,10 @@ declare class PageContext extends GeneralContext {
|
|
|
1343
1544
|
get shown(): boolean;
|
|
1344
1545
|
set title(title: string);
|
|
1345
1546
|
get title(): string;
|
|
1547
|
+
set icon(icon: string);
|
|
1548
|
+
get icon(): string;
|
|
1549
|
+
set print(print: Print);
|
|
1550
|
+
get print(): Print;
|
|
1346
1551
|
set unsaved(unsaved: boolean);
|
|
1347
1552
|
get unsaved(): boolean;
|
|
1348
1553
|
set loading(loading: boolean);
|
|
@@ -1614,7 +1819,9 @@ declare function _default$2(store: Store$1<any, any>, root: HTMLElement, {
|
|
|
1614
1819
|
* @param {ModelScriptConfiguration} define
|
|
1615
1820
|
* @param {FieldComponents?} [fieldComponents]
|
|
1616
1821
|
*/
|
|
1617
|
-
declare function createStore(define: ModelScriptConfiguration, fieldComponents?: FieldComponents | null): Store$1<any, any
|
|
1822
|
+
declare function createStore(define: ModelScriptConfiguration, fieldComponents?: FieldComponents | null): Store$1<any, any, {
|
|
1823
|
+
[x: string]: any;
|
|
1824
|
+
}>;
|
|
1618
1825
|
//#endregion
|
|
1619
1826
|
//#region packages/web/form/createShowField.d.mts
|
|
1620
1827
|
/**
|
|
@@ -1703,6 +1910,14 @@ declare function waitAbortSignal(signal: AbortSignal | null | undefined, useReje
|
|
|
1703
1910
|
* @returns {Promise<void | never>}
|
|
1704
1911
|
*/
|
|
1705
1912
|
declare function waitAbortSignal(signal?: AbortSignal | null | undefined, useReject?: boolean | null | undefined): Promise<void | never>;
|
|
1913
|
+
declare namespace code128_d_exports {
|
|
1914
|
+
export { encode$1 as encode };
|
|
1915
|
+
}
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @param {string} text
|
|
1919
|
+
*/
|
|
1920
|
+
declare function encode$1(text: string): any[];
|
|
1706
1921
|
//#endregion
|
|
1707
1922
|
//#region packages/web/script/index.d.mts
|
|
1708
1923
|
/**
|
|
@@ -1724,7 +1939,7 @@ declare function enumerationsService(enumeration: string): {
|
|
|
1724
1939
|
catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<Record<string, any>[] | TResult2>;
|
|
1725
1940
|
finally(onfinally?: (() => void) | null | undefined): Promise<Record<string, any>[]>;
|
|
1726
1941
|
load: (force?: boolean) => Promise<Record<string, any>[]>;
|
|
1727
|
-
get: () => Record<string, any>[]
|
|
1942
|
+
get: () => Record<string, any>[];
|
|
1728
1943
|
};
|
|
1729
1944
|
//#endregion
|
|
1730
1945
|
//#region packages/web/services/formLayout.d.mts
|
|
@@ -1839,99 +2054,6 @@ declare namespace pathRoots {
|
|
|
1839
2054
|
let file: string;
|
|
1840
2055
|
}
|
|
1841
2056
|
//#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
2057
|
//#region packages/web/model.d.mts
|
|
1936
2058
|
/**
|
|
1937
2059
|
*
|
|
@@ -2049,7 +2171,7 @@ declare function testPermissions(authorization: string, permissions: Permission[
|
|
|
2049
2171
|
*/
|
|
2050
2172
|
declare function getPermissionFields(authorization: string, permissions: Permission[], model: ModelConfiguration | ModelScriptConfiguration): Set<string>;
|
|
2051
2173
|
declare namespace Ident_d_exports {
|
|
2052
|
-
export { decode, encode, parse, stringify };
|
|
2174
|
+
export { decode, encode, parse, stringify, stringifyPaths };
|
|
2053
2175
|
}
|
|
2054
2176
|
/** @import { PageIdent } from './route/route.mjs' */
|
|
2055
2177
|
/**
|
|
@@ -2073,6 +2195,12 @@ declare function parse(ident: string): PageIdent;
|
|
|
2073
2195
|
* @returns {string}
|
|
2074
2196
|
*/
|
|
2075
2197
|
declare function stringify(a: PageIdent): string;
|
|
2198
|
+
/**
|
|
2199
|
+
*
|
|
2200
|
+
* @param {PageIdent} a
|
|
2201
|
+
* @returns {Iterable<string>}
|
|
2202
|
+
*/
|
|
2203
|
+
declare function stringifyPaths(a: PageIdent): Iterable<string>;
|
|
2076
2204
|
//#endregion
|
|
2077
2205
|
//#region packages/web/request.d.mts
|
|
2078
2206
|
declare class ARequest extends DotRequest$1 {
|
|
@@ -2301,4 +2429,4 @@ declare function updateHooks(hooks: Record<string, Hook.Define<Hooks>>): void;
|
|
|
2301
2429
|
/** @type {Hook<Hooks>} */
|
|
2302
2430
|
declare const allHooks: Hook<Hooks>;
|
|
2303
2431
|
//#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,
|
|
2432
|
+
export { ArrayStore, Authenticator, BindObjectStore, code128_d_exports as Code128, Command, ConfiguratorComponent, ConfiguratorContext, type ContinuationDefine, CurrentPage, 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 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, type Source, State, Store, type StoreLayout, SubmodelsLayoutEvent, Theme, User, UserHook, VerifyContext, VerifyError, type WorkspaceDefine, addManager, allHooks, application, 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 };
|