@yongdall/web 0.3.2 → 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 +234 -105
- 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;
|
|
@@ -701,12 +857,13 @@ declare function modelService(model: string): {
|
|
|
701
857
|
page,
|
|
702
858
|
offset,
|
|
703
859
|
select,
|
|
704
|
-
total
|
|
860
|
+
total,
|
|
861
|
+
primary
|
|
705
862
|
}?: Search.Param): Promise<{
|
|
706
863
|
documents: any[];
|
|
707
864
|
total: number;
|
|
708
865
|
}>;
|
|
709
|
-
getOptions(): Record<string, any>[]
|
|
866
|
+
getOptions(): Record<string, any>[];
|
|
710
867
|
/**
|
|
711
868
|
* @overload
|
|
712
869
|
* @param {boolean} [options]
|
|
@@ -823,7 +980,9 @@ type ListScriptParameter = {
|
|
|
823
980
|
type DocumentScriptParameter = {
|
|
824
981
|
model: ModelScriptConfiguration;
|
|
825
982
|
document?: Record<string, any> | undefined;
|
|
826
|
-
store?: Store$1<any, any
|
|
983
|
+
store?: Store$1<any, any, {
|
|
984
|
+
[x: string]: any;
|
|
985
|
+
}> | undefined;
|
|
827
986
|
};
|
|
828
987
|
type ModelScript = {
|
|
829
988
|
/**
|
|
@@ -937,6 +1096,10 @@ declare class PageHandle extends GeneralContext {
|
|
|
937
1096
|
get href(): string;
|
|
938
1097
|
get current(): boolean;
|
|
939
1098
|
get shown(): boolean;
|
|
1099
|
+
set icon(icon: string);
|
|
1100
|
+
get icon(): string;
|
|
1101
|
+
set print(print: Print);
|
|
1102
|
+
get print(): Print;
|
|
940
1103
|
set unsaved(unsaved: boolean);
|
|
941
1104
|
get unsaved(): boolean;
|
|
942
1105
|
set loading(loading: boolean);
|
|
@@ -1103,11 +1266,43 @@ declare namespace Command {
|
|
|
1103
1266
|
document?: Record<string, any> | undefined;
|
|
1104
1267
|
documents?: Record<string, any>[] | undefined;
|
|
1105
1268
|
checkedDocuments?: Record<string, any>[] | undefined;
|
|
1106
|
-
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>;
|
|
1107
1297
|
};
|
|
1108
1298
|
}
|
|
1109
1299
|
//#endregion
|
|
1110
1300
|
//#region packages/web/typesDefine.d.mts
|
|
1301
|
+
interface CurrentPage {
|
|
1302
|
+
title: string;
|
|
1303
|
+
icon: string;
|
|
1304
|
+
print: Print;
|
|
1305
|
+
}
|
|
1111
1306
|
interface VerifyError {
|
|
1112
1307
|
focus(): void;
|
|
1113
1308
|
stop: boolean;
|
|
@@ -1140,8 +1335,10 @@ interface FieldContext {
|
|
|
1140
1335
|
readonly placeholder: string;
|
|
1141
1336
|
readonly description: string;
|
|
1142
1337
|
readonly signal: AbortSignal;
|
|
1338
|
+
readonly source: Source;
|
|
1143
1339
|
listen<K extends keyof FieldComponentEvent>(event: K, listen: FieldComponentEvent[K]): () => void;
|
|
1144
1340
|
emit(event: string, e: any): void;
|
|
1341
|
+
readonly bind?: ((data: any) => void) | null;
|
|
1145
1342
|
}
|
|
1146
1343
|
interface ConfiguratorContext extends FieldContext {
|
|
1147
1344
|
root: HTMLElement;
|
|
@@ -1199,8 +1396,9 @@ interface FieldFilterContext {
|
|
|
1199
1396
|
readonly field?: FieldScriptConfiguration;
|
|
1200
1397
|
readonly operator: string;
|
|
1201
1398
|
value: any;
|
|
1202
|
-
signal: AbortSignal;
|
|
1203
|
-
|
|
1399
|
+
readonly signal: AbortSignal;
|
|
1400
|
+
readonly source: Source;
|
|
1401
|
+
readonly destroyed: boolean;
|
|
1204
1402
|
}
|
|
1205
1403
|
interface FieldFilterComponent<T extends Record<string, any> = Record<string, any>> {
|
|
1206
1404
|
(ctx: FieldFilterContext, options?: T): HTMLElement;
|
|
@@ -1295,8 +1493,12 @@ interface Authenticator {
|
|
|
1295
1493
|
login(signal: AbortSignal): PromiseLike<void> | void;
|
|
1296
1494
|
}
|
|
1297
1495
|
interface Theme {
|
|
1496
|
+
title(page: CurrentPage): string;
|
|
1497
|
+
icon(page: CurrentPage): string;
|
|
1298
1498
|
home: (ctx: HomeContext) => void;
|
|
1299
|
-
updatePath: (path: string, search: string, hash: string
|
|
1499
|
+
updatePath: (path: string, search: string, hash: string, page: (PageIdent & {
|
|
1500
|
+
path: string;
|
|
1501
|
+
}) | null) => void;
|
|
1300
1502
|
/** 自动加载的样式文件 */
|
|
1301
1503
|
styleFiles: string[];
|
|
1302
1504
|
/** 添加到 <body> 上的类名 */
|
|
@@ -1342,6 +1544,10 @@ declare class PageContext extends GeneralContext {
|
|
|
1342
1544
|
get shown(): boolean;
|
|
1343
1545
|
set title(title: string);
|
|
1344
1546
|
get title(): string;
|
|
1547
|
+
set icon(icon: string);
|
|
1548
|
+
get icon(): string;
|
|
1549
|
+
set print(print: Print);
|
|
1550
|
+
get print(): Print;
|
|
1345
1551
|
set unsaved(unsaved: boolean);
|
|
1346
1552
|
get unsaved(): boolean;
|
|
1347
1553
|
set loading(loading: boolean);
|
|
@@ -1613,7 +1819,9 @@ declare function _default$2(store: Store$1<any, any>, root: HTMLElement, {
|
|
|
1613
1819
|
* @param {ModelScriptConfiguration} define
|
|
1614
1820
|
* @param {FieldComponents?} [fieldComponents]
|
|
1615
1821
|
*/
|
|
1616
|
-
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
|
+
}>;
|
|
1617
1825
|
//#endregion
|
|
1618
1826
|
//#region packages/web/form/createShowField.d.mts
|
|
1619
1827
|
/**
|
|
@@ -1702,6 +1910,14 @@ declare function waitAbortSignal(signal: AbortSignal | null | undefined, useReje
|
|
|
1702
1910
|
* @returns {Promise<void | never>}
|
|
1703
1911
|
*/
|
|
1704
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[];
|
|
1705
1921
|
//#endregion
|
|
1706
1922
|
//#region packages/web/script/index.d.mts
|
|
1707
1923
|
/**
|
|
@@ -1723,7 +1939,7 @@ declare function enumerationsService(enumeration: string): {
|
|
|
1723
1939
|
catch<TResult2 = never>(onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): Promise<Record<string, any>[] | TResult2>;
|
|
1724
1940
|
finally(onfinally?: (() => void) | null | undefined): Promise<Record<string, any>[]>;
|
|
1725
1941
|
load: (force?: boolean) => Promise<Record<string, any>[]>;
|
|
1726
|
-
get: () => Record<string, any>[]
|
|
1942
|
+
get: () => Record<string, any>[];
|
|
1727
1943
|
};
|
|
1728
1944
|
//#endregion
|
|
1729
1945
|
//#region packages/web/services/formLayout.d.mts
|
|
@@ -1838,99 +2054,6 @@ declare namespace pathRoots {
|
|
|
1838
2054
|
let file: string;
|
|
1839
2055
|
}
|
|
1840
2056
|
//#endregion
|
|
1841
|
-
//#region packages/web/loadOptions.d.mts
|
|
1842
|
-
/**
|
|
1843
|
-
*
|
|
1844
|
-
* @param {Record<string, Field>} fields 字段配置
|
|
1845
|
-
* @param {Search.ExecParam} param
|
|
1846
|
-
* @returns
|
|
1847
|
-
*/
|
|
1848
|
-
declare function modelFilter(fields: Record<string, Field>, param: Search.ExecParam): boolean | null;
|
|
1849
|
-
/**
|
|
1850
|
-
*
|
|
1851
|
-
* @param {object} options
|
|
1852
|
-
* @param {string?} [options.type]
|
|
1853
|
-
* @param {string?} [options.name]
|
|
1854
|
-
* @param {string?} [options.model]
|
|
1855
|
-
* @param {string?} [options.filter]
|
|
1856
|
-
* @param {*} [options.values]
|
|
1857
|
-
* @param {string?} [options.id]
|
|
1858
|
-
* @param {string?} [options.label]
|
|
1859
|
-
* @param {string?} [options.value]
|
|
1860
|
-
* @param {string?} [options.parent]
|
|
1861
|
-
* @param {string?} [options.children]
|
|
1862
|
-
* @param {string?} [options.sequence]
|
|
1863
|
-
* @param {string?} [options.disabled]
|
|
1864
|
-
* @param {*} [options.values]
|
|
1865
|
-
* @param {((placeholder: string) => Search.Value | null) | false} [getPlaceholder]
|
|
1866
|
-
* @param {(value: Search.ExecParam) => boolean?} [exec]
|
|
1867
|
-
* @returns
|
|
1868
|
-
*/
|
|
1869
|
-
declare function loadOptions({
|
|
1870
|
-
type,
|
|
1871
|
-
name,
|
|
1872
|
-
model,
|
|
1873
|
-
values,
|
|
1874
|
-
...options
|
|
1875
|
-
}: {
|
|
1876
|
-
type?: string | null | undefined;
|
|
1877
|
-
name?: string | null | undefined;
|
|
1878
|
-
model?: string | null | undefined;
|
|
1879
|
-
filter?: string | null | undefined;
|
|
1880
|
-
values?: any;
|
|
1881
|
-
id?: string | null | undefined;
|
|
1882
|
-
label?: string | null | undefined;
|
|
1883
|
-
value?: string | null | undefined;
|
|
1884
|
-
parent?: string | null | undefined;
|
|
1885
|
-
children?: string | null | undefined;
|
|
1886
|
-
sequence?: string | null | undefined;
|
|
1887
|
-
disabled?: string | null | undefined;
|
|
1888
|
-
values?: any;
|
|
1889
|
-
}, getPlaceholder?: ((placeholder: string) => Search.Value | null) | false, exec?: (value: Search.ExecParam) => boolean | null): State<Option[]>;
|
|
1890
|
-
/**
|
|
1891
|
-
*
|
|
1892
|
-
* @param {object} options
|
|
1893
|
-
* @param {string?} [options.type]
|
|
1894
|
-
* @param {string?} [options.name]
|
|
1895
|
-
* @param {string?} [options.model]
|
|
1896
|
-
* @param {string?} [options.filter]
|
|
1897
|
-
* @param {*} [options.values]
|
|
1898
|
-
* @param {string} [options.configurator]
|
|
1899
|
-
* @param {string?} [options.parent]
|
|
1900
|
-
* @param {string?} [options.children]
|
|
1901
|
-
* @param {((placeholder: string) => Search.Value | null)} [getPlaceholder]
|
|
1902
|
-
* @param {(value: Search.ExecParam) => boolean?} [exec]
|
|
1903
|
-
* @returns
|
|
1904
|
-
*/
|
|
1905
|
-
declare function findConfigurator({
|
|
1906
|
-
type,
|
|
1907
|
-
name,
|
|
1908
|
-
model,
|
|
1909
|
-
values,
|
|
1910
|
-
configurator,
|
|
1911
|
-
parent,
|
|
1912
|
-
children,
|
|
1913
|
-
filter
|
|
1914
|
-
}: {
|
|
1915
|
-
type?: string | null | undefined;
|
|
1916
|
-
name?: string | null | undefined;
|
|
1917
|
-
model?: string | null | undefined;
|
|
1918
|
-
filter?: string | null | undefined;
|
|
1919
|
-
values?: any;
|
|
1920
|
-
configurator?: string | undefined;
|
|
1921
|
-
parent?: string | null | undefined;
|
|
1922
|
-
children?: string | null | undefined;
|
|
1923
|
-
}, getPlaceholder?: ((placeholder: string) => Search.Value | null), exec?: (value: Search.ExecParam) => boolean | null): State<any>;
|
|
1924
|
-
type Option = {
|
|
1925
|
-
id: string | number;
|
|
1926
|
-
value: string | number;
|
|
1927
|
-
label: string;
|
|
1928
|
-
data: any;
|
|
1929
|
-
parentId?: string | number | undefined;
|
|
1930
|
-
disabled?: boolean | undefined;
|
|
1931
|
-
children: Option[];
|
|
1932
|
-
};
|
|
1933
|
-
//#endregion
|
|
1934
2057
|
//#region packages/web/model.d.mts
|
|
1935
2058
|
/**
|
|
1936
2059
|
*
|
|
@@ -2048,7 +2171,7 @@ declare function testPermissions(authorization: string, permissions: Permission[
|
|
|
2048
2171
|
*/
|
|
2049
2172
|
declare function getPermissionFields(authorization: string, permissions: Permission[], model: ModelConfiguration | ModelScriptConfiguration): Set<string>;
|
|
2050
2173
|
declare namespace Ident_d_exports {
|
|
2051
|
-
export { decode, encode, parse, stringify };
|
|
2174
|
+
export { decode, encode, parse, stringify, stringifyPaths };
|
|
2052
2175
|
}
|
|
2053
2176
|
/** @import { PageIdent } from './route/route.mjs' */
|
|
2054
2177
|
/**
|
|
@@ -2072,6 +2195,12 @@ declare function parse(ident: string): PageIdent;
|
|
|
2072
2195
|
* @returns {string}
|
|
2073
2196
|
*/
|
|
2074
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>;
|
|
2075
2204
|
//#endregion
|
|
2076
2205
|
//#region packages/web/request.d.mts
|
|
2077
2206
|
declare class ARequest extends DotRequest$1 {
|
|
@@ -2300,4 +2429,4 @@ declare function updateHooks(hooks: Record<string, Hook.Define<Hooks>>): void;
|
|
|
2300
2429
|
/** @type {Hook<Hooks>} */
|
|
2301
2430
|
declare const allHooks: Hook<Hooks>;
|
|
2302
2431
|
//#endregion
|
|
2303
|
-
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 };
|