bt-core-app 1.4.35 → 1.4.37
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/dist/bt-core-app.js +838 -833
- package/dist/index.d.ts +28 -21
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -538,33 +538,22 @@ export declare interface ListEvents {
|
|
|
538
538
|
export declare interface ListProps {
|
|
539
539
|
additionalUrl?: string;
|
|
540
540
|
bladeName?: string;
|
|
541
|
-
canAdd?: boolean;
|
|
542
|
-
canDelete?: boolean;
|
|
543
|
-
canEdit?: boolean;
|
|
544
|
-
canRestore?: boolean;
|
|
545
|
-
canShowInactive?: boolean;
|
|
546
541
|
canSelect?: boolean;
|
|
547
542
|
canUnselect?: boolean;
|
|
548
543
|
confirmOnDelete?: boolean;
|
|
549
544
|
customFilters?: CustomFilterParam[];
|
|
550
545
|
defaultFilters?: string[];
|
|
551
|
-
dividers?: boolean;
|
|
552
546
|
eager?: boolean;
|
|
553
547
|
errorMsg?: string;
|
|
554
548
|
headers?: TableColumn[];
|
|
555
549
|
hideActions?: boolean;
|
|
556
|
-
hideColumns?: boolean;
|
|
557
|
-
hideFilters?: boolean;
|
|
558
|
-
hideRefresh?: boolean;
|
|
559
|
-
hideSubtoolbarSettings?: boolean;
|
|
560
|
-
includeDetails?: boolean;
|
|
561
550
|
isSingle?: boolean;
|
|
562
551
|
itemBladeName?: string;
|
|
563
552
|
itemID?: string;
|
|
564
553
|
items?: any[];
|
|
554
|
+
/**only used with server pagination */
|
|
565
555
|
itemsPerPage?: number;
|
|
566
556
|
itemText?: string;
|
|
567
|
-
lines?: 'one' | 'two' | 'three';
|
|
568
557
|
loadingMsg?: string;
|
|
569
558
|
localOnly?: boolean;
|
|
570
559
|
nav?: string;
|
|
@@ -572,10 +561,8 @@ export declare interface ListProps {
|
|
|
572
561
|
onCanDelete?: (item: any) => boolean;
|
|
573
562
|
/**when trying to delete in api */
|
|
574
563
|
onCanDeleteAsync?: OnCanDoAsync;
|
|
575
|
-
onGetSaveAsync?: OnDoSuccessAsync;
|
|
576
564
|
onCanRestore?: (item: any) => boolean;
|
|
577
565
|
onCanRestoreAsync?: OnCanDoAsync;
|
|
578
|
-
onCanSaveAsync?: OnCanDoAsync;
|
|
579
566
|
onCanSelectItem?: (item: any) => boolean;
|
|
580
567
|
onDeleteAsync?: OnDoAsync;
|
|
581
568
|
onDeleteSuccessAsync?: OnDoAsync;
|
|
@@ -584,8 +571,6 @@ export declare interface ListProps {
|
|
|
584
571
|
onGetSuccessAsync?: OnGetSuccessAsync;
|
|
585
572
|
onRestoreAsync?: OnDoSuccessAsync;
|
|
586
573
|
onRestoreSuccessAsync?: OnDoSuccessAsync;
|
|
587
|
-
onSaveAsync?: OnDoSuccessAsync;
|
|
588
|
-
onSaveSuccessAsync?: OnDoSuccessAsync;
|
|
589
574
|
onSelectItem?: (item: any) => void;
|
|
590
575
|
params?: any;
|
|
591
576
|
proxyID?: string;
|
|
@@ -596,8 +581,6 @@ export declare interface ListProps {
|
|
|
596
581
|
selectProps?: string[];
|
|
597
582
|
sortBy?: string;
|
|
598
583
|
sortOrder?: 'Ascending' | 'Descending';
|
|
599
|
-
showListOnly?: boolean;
|
|
600
|
-
showTableOnly?: boolean;
|
|
601
584
|
showSearch?: boolean;
|
|
602
585
|
startShowingInactive?: boolean;
|
|
603
586
|
storeMode?: StoreMode;
|
|
@@ -606,7 +589,6 @@ export declare interface ListProps {
|
|
|
606
589
|
useServerPagination?: boolean;
|
|
607
590
|
useBladeSrc?: boolean;
|
|
608
591
|
useRouteSrc?: boolean;
|
|
609
|
-
variant?: BladeVariant;
|
|
610
592
|
}
|
|
611
593
|
|
|
612
594
|
declare interface LocalForage extends LocalForageDbMethods {
|
|
@@ -902,6 +884,7 @@ export declare interface TableColumn {
|
|
|
902
884
|
csvArray?: boolean;
|
|
903
885
|
csvFilter?: string;
|
|
904
886
|
csvText?: string;
|
|
887
|
+
display?: boolean;
|
|
905
888
|
hide?: boolean;
|
|
906
889
|
itemText?: string;
|
|
907
890
|
level?: number;
|
|
@@ -1115,7 +1098,30 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1115
1098
|
asyncItems: Ref<any[]>;
|
|
1116
1099
|
currentPage: Ref<number>;
|
|
1117
1100
|
deleteItem: (dItem: MaybeRefOrGetter<any>) => void;
|
|
1118
|
-
displayHeaders: ComputedRef<
|
|
1101
|
+
displayHeaders: ComputedRef< {
|
|
1102
|
+
align?: "start" | "end" | "center" | undefined;
|
|
1103
|
+
bool?: number | undefined;
|
|
1104
|
+
csv?: boolean | undefined;
|
|
1105
|
+
csvArray?: boolean | undefined;
|
|
1106
|
+
csvFilter?: string | undefined;
|
|
1107
|
+
csvText?: string | undefined;
|
|
1108
|
+
display?: boolean | undefined;
|
|
1109
|
+
hide?: boolean | undefined;
|
|
1110
|
+
itemText?: string | undefined;
|
|
1111
|
+
level?: number | undefined;
|
|
1112
|
+
maxWidth?: string | undefined;
|
|
1113
|
+
minWidth?: string | undefined;
|
|
1114
|
+
nav?: string | undefined;
|
|
1115
|
+
prefix?: string | undefined;
|
|
1116
|
+
searchable?: boolean | undefined;
|
|
1117
|
+
single?: boolean | undefined;
|
|
1118
|
+
sublevel?: number | undefined;
|
|
1119
|
+
suffix?: string | undefined;
|
|
1120
|
+
textFilter?: string | undefined;
|
|
1121
|
+
textFunction?: Function | undefined;
|
|
1122
|
+
title?: string | undefined;
|
|
1123
|
+
value?: string | undefined;
|
|
1124
|
+
}[]>;
|
|
1119
1125
|
errorMsg: ComputedRef<string | undefined>;
|
|
1120
1126
|
exportToCSV: () => void;
|
|
1121
1127
|
filteredItems: ShallowRef<any[]>;
|
|
@@ -1128,6 +1134,7 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1128
1134
|
csvArray?: boolean | undefined;
|
|
1129
1135
|
csvFilter?: string | undefined;
|
|
1130
1136
|
csvText?: string | undefined;
|
|
1137
|
+
display?: boolean | undefined;
|
|
1131
1138
|
hide?: boolean | undefined;
|
|
1132
1139
|
itemText?: string | undefined;
|
|
1133
1140
|
level?: number | undefined;
|
|
@@ -1153,7 +1160,6 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1153
1160
|
searchString: Ref<string | undefined>;
|
|
1154
1161
|
selectedFilters: Ref<number[]>;
|
|
1155
1162
|
selectItem: (rItem: any, variant: BladeVariant) => void;
|
|
1156
|
-
serverFilters: Ref<string[]>;
|
|
1157
1163
|
showError: ShallowRef<boolean>;
|
|
1158
1164
|
showInactive: Ref<boolean>;
|
|
1159
1165
|
showSearch: ShallowRef<boolean>;
|
|
@@ -1166,6 +1172,7 @@ export declare function useList(props: ListProps, emit?: ListEvents, options?: U
|
|
|
1166
1172
|
csvArray?: boolean | undefined;
|
|
1167
1173
|
csvFilter?: string | undefined;
|
|
1168
1174
|
csvText?: string | undefined;
|
|
1175
|
+
display?: boolean | undefined;
|
|
1169
1176
|
hide?: boolean | undefined;
|
|
1170
1177
|
itemText?: string | undefined;
|
|
1171
1178
|
level?: number | undefined;
|
package/package.json
CHANGED