@piying-lib/angular-daisyui 1.2.0 → 1.2.2
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/extension/index.d.ts +59 -9
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs +246 -11
- package/fesm2022/piying-lib-angular-daisyui-extension.mjs.map +1 -1
- package/fesm2022/{piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs → piying-lib-angular-daisyui-field-control-props.directive-I-MQ3iQV.mjs} +2 -1
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-I-MQ3iQV.mjs.map +1 -0
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs +142 -16
- package/fesm2022/piying-lib-angular-daisyui-field-control.mjs.map +1 -1
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs +90 -12
- package/fesm2022/piying-lib-angular-daisyui-field-group.mjs.map +1 -1
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs +145 -0
- package/fesm2022/piying-lib-angular-daisyui-non-field-control.mjs.map +1 -1
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs +2 -2
- package/fesm2022/piying-lib-angular-daisyui-wrapper.mjs.map +1 -1
- package/field-control/index.d.ts +126 -6
- package/field-group/index.d.ts +91 -9
- package/non-field-control/index.d.ts +150 -0
- package/package.json +8 -4
- package/wrapper/index.d.ts +1 -1
- package/fesm2022/piying-lib-angular-daisyui-field-control-props.directive-C5mF89PX.mjs.map +0 -1
package/extension/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { Signal, Injector, WritableSignal } from '@angular/core';
|
|
3
3
|
import { IconConfig, StrOrTemplateComponent, Size, isSchema, SelectOption, OptionConvert, transformOption, ResolvedOption } from '@piying-lib/angular-core';
|
|
4
4
|
import { Params, ActivatedRoute, UrlTree, RouterLinkActive, IsActiveMatchOptions } from '@angular/router';
|
|
5
|
-
import * as _piying_view_angular_core from '@piying/view-angular-core';
|
|
6
5
|
import * as _piying_valibot_visit from '@piying/valibot-visit';
|
|
6
|
+
import * as _piying_view_angular_core from '@piying/view-angular-core';
|
|
7
7
|
import * as v from 'valibot';
|
|
8
8
|
import * as _piying_view_angular from '@piying/view-angular';
|
|
9
9
|
import { PiyingViewGroupBase, BaseControl, PiyingView } from '@piying/view-angular';
|
|
@@ -62,8 +62,11 @@ declare class MenuTreeNFCC {
|
|
|
62
62
|
};
|
|
63
63
|
readonly StrOrTemplateComponent: typeof StrOrTemplateComponent;
|
|
64
64
|
templateRef: _angular_core.Signal<unknown>;
|
|
65
|
+
/** 菜单项列表 */
|
|
65
66
|
list: _angular_core.InputSignal<NavigationItem[]>;
|
|
67
|
+
/** 尺寸大小 */
|
|
66
68
|
size: _angular_core.InputSignal<Size | undefined>;
|
|
69
|
+
/** 方向 */
|
|
67
70
|
direction: _angular_core.InputSignal<"horizontal" | "vertical" | undefined>;
|
|
68
71
|
wrapperClass$: _angular_core.Signal<string>;
|
|
69
72
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuTreeNFCC, never>;
|
|
@@ -75,8 +78,11 @@ declare class PaginationNFCC {
|
|
|
75
78
|
static __version: number;
|
|
76
79
|
readonly StrOrTemplateComponent: typeof StrOrTemplateComponent;
|
|
77
80
|
templateRef: _angular_core.Signal<unknown>;
|
|
81
|
+
/** 方向 */
|
|
78
82
|
direction: _angular_core.InputSignal<"horizontal" | "vertical" | undefined>;
|
|
83
|
+
/** 每页条数选项 */
|
|
79
84
|
sizeOptions: _angular_core.InputSignal<number[] | undefined>;
|
|
85
|
+
/** 每页条数标签函数 */
|
|
80
86
|
optionsLabel: _angular_core.InputSignal<((size: number, index: number, count: number) => string) | undefined>;
|
|
81
87
|
value: _angular_core.ModelSignal<{
|
|
82
88
|
index: number;
|
|
@@ -101,6 +107,11 @@ declare class PaginationNFCC {
|
|
|
101
107
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationNFCC, "app-pagination", never, { "direction": { "alias": "direction"; "required": false; "isSignal": true; }; "sizeOptions": { "alias": "sizeOptions"; "required": false; "isSignal": true; }; "optionsLabel": { "alias": "optionsLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": true; "isSignal": true; }; "count": { "alias": "count"; "required": true; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
|
|
102
108
|
}
|
|
103
109
|
|
|
110
|
+
declare class TableRowFGC extends PiyingViewGroupBase {
|
|
111
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableRowFGC, never>;
|
|
112
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableRowFGC, "tr", never, {}, {}, never, never, true, never>;
|
|
113
|
+
}
|
|
114
|
+
|
|
104
115
|
type ItemCellBase = string | v.BaseSchema<any, any, any>;
|
|
105
116
|
type ItemCell = ItemCellBase | ((rowData: any) => any);
|
|
106
117
|
type DataResolved = [number, any[]];
|
|
@@ -124,25 +135,38 @@ interface TableItemDefine2 {
|
|
|
124
135
|
};
|
|
125
136
|
columns: ColumnGroupDefine;
|
|
126
137
|
}
|
|
127
|
-
declare function createRowDefine(): v.SchemaWithPipe<readonly [v.TupleSchema<[], undefined>, _piying_valibot_visit.
|
|
128
|
-
|
|
129
|
-
|
|
138
|
+
declare function createRowDefine(): v.SchemaWithPipe<readonly [v.TupleSchema<[], undefined>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", [], _piying_view_angular_core.AnyCoreSchemaHandle> & {
|
|
139
|
+
__type: typeof TableRowFGC;
|
|
140
|
+
}]>;
|
|
141
|
+
declare function createDefaultColDefine(isHeader: boolean, content: any, context?: any): v.SchemaWithPipe<readonly [v.OptionalSchema<v.VoidSchema<undefined>, undefined>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle> & {
|
|
142
|
+
__type: typeof StrOrTemplateComponent;
|
|
143
|
+
}, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle>]>;
|
|
144
|
+
declare function createDefaultColDefineFn(isHeader: boolean, content: (item: any, index: number) => any, context?: any): v.SchemaWithPipe<readonly [v.OptionalSchema<v.VoidSchema<undefined>, undefined>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle> & {
|
|
145
|
+
__type: typeof StrOrTemplateComponent;
|
|
146
|
+
}, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", void | undefined, _piying_view_angular_core.AnyCoreSchemaHandle>]>;
|
|
130
147
|
declare class TableNFCC {
|
|
131
148
|
#private;
|
|
132
149
|
static __version: number;
|
|
133
150
|
templateRef: Signal<unknown>;
|
|
134
151
|
readonly StrOrTemplateComponent: typeof StrOrTemplateComponent;
|
|
152
|
+
/** 表格定义 */
|
|
135
153
|
define: _angular_core.InputSignal<TableItemDefine2 | undefined>;
|
|
154
|
+
/** 数据列表 */
|
|
136
155
|
data: _angular_core.InputSignal<any[] | Signal<any[]>>;
|
|
137
156
|
injector: Injector;
|
|
138
157
|
data$$: Signal<any[]>;
|
|
158
|
+
/** 是否启用斑马纹效果 */
|
|
139
159
|
zebra: _angular_core.InputSignal<boolean | undefined>;
|
|
160
|
+
/** 固定配置 */
|
|
140
161
|
pin: _angular_core.InputSignal<{
|
|
141
162
|
rows?: boolean;
|
|
142
163
|
cols?: boolean;
|
|
143
164
|
} | undefined>;
|
|
165
|
+
/** 尺寸大小 */
|
|
144
166
|
size: _angular_core.InputSignal<Size | undefined>;
|
|
167
|
+
/** 跟踪函数 */
|
|
145
168
|
trackBy: _angular_core.InputSignal<(key: number, value: any) => number>;
|
|
169
|
+
/** 分页配置 */
|
|
146
170
|
pagination: _angular_core.InputSignal<{
|
|
147
171
|
sizeOptions?: number[];
|
|
148
172
|
enable: boolean;
|
|
@@ -165,11 +189,6 @@ declare class TableNFCC {
|
|
|
165
189
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableNFCC, "app-table", never, { "define": { "alias": "define"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "pin": { "alias": "pin"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
166
190
|
}
|
|
167
191
|
|
|
168
|
-
declare class TableRowFGC extends PiyingViewGroupBase {
|
|
169
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableRowFGC, never>;
|
|
170
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableRowFGC, "tr", never, {}, {}, never, never, true, never>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
192
|
declare class SortHeaderWC {
|
|
174
193
|
static __version: number;
|
|
175
194
|
templateRef: _angular_core.Signal<unknown>;
|
|
@@ -200,6 +219,7 @@ declare class SortService {
|
|
|
200
219
|
|
|
201
220
|
declare class inputSortDirective {
|
|
202
221
|
#private;
|
|
222
|
+
/** 排序键 */
|
|
203
223
|
key: _angular_core.InputSignal<string>;
|
|
204
224
|
inputSort: _angular_core.WritableSignal<SortDirection>;
|
|
205
225
|
ngOnInit(): void;
|
|
@@ -325,10 +345,14 @@ declare class PickerRefFCC extends BaseControl {
|
|
|
325
345
|
static __version: number;
|
|
326
346
|
templateRef: _angular_core.Signal<unknown>;
|
|
327
347
|
readonly PiyingView: typeof PiyingView;
|
|
348
|
+
/** 触发器内容 */
|
|
328
349
|
trigger: _angular_core.InputSignal<unknown>;
|
|
350
|
+
/** 弹窗内容 */
|
|
329
351
|
content: _angular_core.InputSignal<unknown>;
|
|
352
|
+
/** 选择后是否自动关闭 */
|
|
330
353
|
changeClose: _angular_core.InputSignal<boolean | undefined>;
|
|
331
354
|
isOpen$: _angular_core.WritableSignal<boolean>;
|
|
355
|
+
/** 弹窗配置 */
|
|
332
356
|
overlayConfig: _angular_core.InputSignal<OverlayConfig | undefined>;
|
|
333
357
|
position$: _angular_core.WritableSignal<string>;
|
|
334
358
|
parentPyOptions: _angular_core.Signal<Omit<_piying_view_angular_core.SetOptional<Omit<_piying_valibot_visit.ConvertOptions<typeof _piying_view_angular_core.CoreSchemaHandle>, "handle"> & Partial<Pick<_piying_valibot_visit.ConvertOptions<typeof _piying_view_angular_core.CoreSchemaHandle>, "handle">> & {
|
|
@@ -353,8 +377,11 @@ declare class OptionListFCC extends BaseControl {
|
|
|
353
377
|
readonly StrOrTemplateComponent: typeof StrOrTemplateComponent;
|
|
354
378
|
readonly PiyingView: typeof PiyingView;
|
|
355
379
|
templateRef: _angular_core.Signal<unknown>;
|
|
380
|
+
/** 选项列表 */
|
|
356
381
|
options: _angular_core.InputSignalWithTransform<SelectOption[], SelectOption[] | undefined>;
|
|
382
|
+
/** 选项模板 */
|
|
357
383
|
optionTemplate: _angular_core.InputSignal<Record<string, any> | undefined>;
|
|
384
|
+
/** 选项转换器 */
|
|
358
385
|
optionConvert: _angular_core.InputSignalWithTransform<OptionConvert, Partial<OptionConvert>>;
|
|
359
386
|
transformOption: typeof transformOption;
|
|
360
387
|
optionInput: (content: any) => {
|
|
@@ -378,7 +405,9 @@ declare class ListTemplateNFCC {
|
|
|
378
405
|
readonly StrOrTemplateComponent: typeof StrOrTemplateComponent;
|
|
379
406
|
readonly PiyingView: typeof PiyingView;
|
|
380
407
|
templateRef: _angular_core.Signal<unknown>;
|
|
408
|
+
/** 模板 */
|
|
381
409
|
template: _angular_core.InputSignal<any>;
|
|
410
|
+
/** 列表数据 */
|
|
382
411
|
list: _angular_core.InputSignal<any[]>;
|
|
383
412
|
parentPyOptions: _angular_core.Signal<Omit<_piying_view_angular_core.SetOptional<Omit<_piying_valibot_visit.ConvertOptions<typeof _piying_view_angular_core.CoreSchemaHandle>, "handle"> & Partial<Pick<_piying_valibot_visit.ConvertOptions<typeof _piying_view_angular_core.CoreSchemaHandle>, "handle">> & {
|
|
384
413
|
builder: typeof _piying_view_angular_core.FormBuilder;
|
|
@@ -409,12 +438,19 @@ declare class EditableGroupFGC extends PiyingViewGroupBase {
|
|
|
409
438
|
static __version: number;
|
|
410
439
|
templateRef: _angular_core.Signal<unknown>;
|
|
411
440
|
PiyingView: typeof PiyingView;
|
|
441
|
+
/** 布局方式 */
|
|
412
442
|
layout: _angular_core.InputSignal<"row" | "columen">;
|
|
443
|
+
/** 是否禁用添加 */
|
|
413
444
|
disableAdd: _angular_core.InputSignal<boolean>;
|
|
445
|
+
/** 添加模式 */
|
|
414
446
|
addMode: _angular_core.InputSignal<number>;
|
|
447
|
+
/** 是否禁用删除 */
|
|
415
448
|
disableRemove: _angular_core.InputSignal<boolean>;
|
|
449
|
+
/** 添加位置 */
|
|
416
450
|
addPosition: _angular_core.InputSignal<"bottom" | "top">;
|
|
451
|
+
/** 初始值生成函数 */
|
|
417
452
|
initValue: _angular_core.InputSignal<((index: number | undefined) => any) | undefined>;
|
|
453
|
+
/** 最小长度 */
|
|
418
454
|
minLength: _angular_core.InputSignal<number>;
|
|
419
455
|
isRecord$$: _angular_core.Signal<boolean>;
|
|
420
456
|
wrapperClass$$: _angular_core.Signal<"flex gap-2 items-center" | "flex flex-col gap-2">;
|
|
@@ -469,6 +505,7 @@ declare class CheckboxListFGC extends PiyingViewGroupBase {
|
|
|
469
505
|
static __version: number;
|
|
470
506
|
templateRef: _angular_core.Signal<unknown>;
|
|
471
507
|
readonly PiyingView: typeof PiyingView;
|
|
508
|
+
/** 选项列表 */
|
|
472
509
|
options: _angular_core.InputSignal<CheckboxOption[] | undefined>;
|
|
473
510
|
templateSchema$$: _angular_core.Signal<v.BaseSchema<any, any, any>>;
|
|
474
511
|
schemaItemFn: (template: any, input: CheckboxOption) => v.SchemaWithPipe<readonly [v.OptionalSchema<any, undefined>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", any, _piying_view_angular_core.AnyCoreSchemaHandle>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", any, _piying_view_angular_core.AnyCoreSchemaHandle>, _piying_valibot_visit.RawConfigAction<"viewRawConfig", any, _piying_view_angular_core.AnyCoreSchemaHandle>]>;
|
|
@@ -549,6 +586,18 @@ declare class OptionListLocalFilterWC {
|
|
|
549
586
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OptionListLocalFilterWC, "app-local-filter", never, {}, {}, never, never, true, never>;
|
|
550
587
|
}
|
|
551
588
|
|
|
589
|
+
declare class FilterOptionNFCC {
|
|
590
|
+
#private;
|
|
591
|
+
static __version: number;
|
|
592
|
+
templateRef: _angular_core.Signal<unknown>;
|
|
593
|
+
content: WritableSignal<string>;
|
|
594
|
+
stopKeyboardListen(event: KeyboardEvent): void;
|
|
595
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterOptionNFCC, never>;
|
|
596
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterOptionNFCC, "app-filter-option", never, {}, {}, never, never, true, never>;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
type wrapper_index_d_FilterOptionNFCC = FilterOptionNFCC;
|
|
600
|
+
declare const wrapper_index_d_FilterOptionNFCC: typeof FilterOptionNFCC;
|
|
552
601
|
type wrapper_index_d_OptionListLocalFilterWC = OptionListLocalFilterWC;
|
|
553
602
|
declare const wrapper_index_d_OptionListLocalFilterWC: typeof OptionListLocalFilterWC;
|
|
554
603
|
type wrapper_index_d_SortHeaderWC = SortHeaderWC;
|
|
@@ -559,6 +608,7 @@ type wrapper_index_d_TableCheckboxOneWC = TableCheckboxOneWC;
|
|
|
559
608
|
declare const wrapper_index_d_TableCheckboxOneWC: typeof TableCheckboxOneWC;
|
|
560
609
|
declare namespace wrapper_index_d {
|
|
561
610
|
export {
|
|
611
|
+
wrapper_index_d_FilterOptionNFCC as FilterOptionNFCC,
|
|
562
612
|
wrapper_index_d_OptionListLocalFilterWC as OptionListLocalFilterWC,
|
|
563
613
|
wrapper_index_d_SortHeaderWC as SortHeaderWC,
|
|
564
614
|
wrapper_index_d_TableCheckboxAllWC as TableCheckboxAllWC,
|