@yomotech/view-toolkit 1.0.64 → 1.0.66
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/README.md +64 -64
- package/fesm2022/yomotech-view-toolkit-catalog.mjs +5 -1
- package/fesm2022/yomotech-view-toolkit-catalog.mjs.map +1 -1
- package/fesm2022/yomotech-view-toolkit.mjs +972 -874
- package/fesm2022/yomotech-view-toolkit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yomotech-view-toolkit.d.ts +27 -0
package/package.json
CHANGED
|
@@ -966,6 +966,11 @@ interface DataSource {
|
|
|
966
966
|
sessionStorage?: boolean;
|
|
967
967
|
/** with storageType database: the page starts empty and loads once every filter field has a value */
|
|
968
968
|
loadOnFilter?: boolean;
|
|
969
|
+
/** the page's own filters - name and type, no field of the data object; {{filter.<name>}} in the call */
|
|
970
|
+
filters?: {
|
|
971
|
+
name: string;
|
|
972
|
+
type?: string;
|
|
973
|
+
}[];
|
|
969
974
|
}
|
|
970
975
|
type StorageKind = 'localstorage' | 'sessionstorage' | 'filter' | 'database' | '';
|
|
971
976
|
/** The kind of a data source, lowercase - "localStorage" of older Designer versions counts as "localstorage". */
|
|
@@ -1093,6 +1098,8 @@ declare class PageData {
|
|
|
1093
1098
|
send(button: any, index: number | 'all'): Promise<boolean>;
|
|
1094
1099
|
/** A button with a browser storage: its record goes into the button's list, or out again (toggleRecord). */
|
|
1095
1100
|
keep(button: any, record: any): Promise<boolean>;
|
|
1101
|
+
/** The page waits for its filters: a filter page with a filter still empty (the empty list says so). */
|
|
1102
|
+
get waitingForFilter(): boolean;
|
|
1096
1103
|
/** Filter fields are the keys set by setFilter; a filter page loads only when none is empty. */
|
|
1097
1104
|
private filterComplete;
|
|
1098
1105
|
private loadBackendRecords;
|
|
@@ -1234,6 +1241,24 @@ declare class CardComponent {
|
|
|
1234
1241
|
updatebuttonLanguage<T>(schema: T, translations: Record<string, string>): T;
|
|
1235
1242
|
updateLayoutLanguage<T>(schema: T, translations: Record<string, string>): T;
|
|
1236
1243
|
dateChangeEvent(filter: any, value: any): void;
|
|
1244
|
+
/**
|
|
1245
|
+
* The text of an empty list in the app: its filters still open, or nothing there; none while loading, after a
|
|
1246
|
+
* failed load (that has its own message) or with records. Fixed texts in the app's language.
|
|
1247
|
+
*/
|
|
1248
|
+
/** A fixed text of the library in the app's language (the key is the English text). */
|
|
1249
|
+
fixedText(key: string): string;
|
|
1250
|
+
emptyText(): string | null;
|
|
1251
|
+
/** The filters the page names (dataSource.filters), name -> type; empty for a page without them. */
|
|
1252
|
+
private declaredFilters;
|
|
1253
|
+
private filterSchemaMemo;
|
|
1254
|
+
/** The page's schema with its own filters as the group vlFilter - the input knows its type without a data field. */
|
|
1255
|
+
filterSchema(): any;
|
|
1256
|
+
private filterFields;
|
|
1257
|
+
/** The header element as an input of the group vlFilter (kept per element: the field pipe sees the same object). */
|
|
1258
|
+
filterField(element: any): any;
|
|
1259
|
+
private pageFilterValues;
|
|
1260
|
+
/** A filter of the page changed: its value goes to {{filter.<name>}}; once all are set the keyboard closes. */
|
|
1261
|
+
pageFilterChange(element: any, value: any): Promise<void>;
|
|
1237
1262
|
/** The filter values go to the page's data; it loads once every filter field is set. */
|
|
1238
1263
|
applyDateFilter(filters: any): Promise<void>;
|
|
1239
1264
|
/** Every filter field of the page, an unset one as null - the page loads only when none is empty. */
|
|
@@ -2367,6 +2392,8 @@ declare class SideMenuComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
|
2367
2392
|
/** True without option.role, else when the signed-in user has that role (case does not matter). */
|
|
2368
2393
|
private roleFits;
|
|
2369
2394
|
setLoginedUser(user: any): void;
|
|
2395
|
+
/** The sign-out when the menu has no logout entry: the fixed text Logout of the app's languages. */
|
|
2396
|
+
private readonly defaultLogout;
|
|
2370
2397
|
/** The menu entry with action 'logout', at any depth of the menu. */
|
|
2371
2398
|
private findLogoutMenu;
|
|
2372
2399
|
initializeProjects(): void;
|