@yomotech/view-toolkit 1.0.39 → 1.0.41
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/package.json
CHANGED
|
@@ -651,8 +651,6 @@ declare class CardComponent {
|
|
|
651
651
|
declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
652
652
|
/** Marks for the app's test runner (#166): field key and button action. */
|
|
653
653
|
readonly vlFieldKey: typeof testFieldKey;
|
|
654
|
-
readonly vlAction: typeof testAction;
|
|
655
|
-
readonly vlWrites: typeof testWrites;
|
|
656
654
|
private readonly remoteLists;
|
|
657
655
|
/** Loaded lists by field reference. */
|
|
658
656
|
remoteData: Record<string, any[]>;
|
|
@@ -675,8 +673,6 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
|
|
|
675
673
|
readonly picker: DateTimePickerService;
|
|
676
674
|
private readonly host;
|
|
677
675
|
ngOnDestroy(): void;
|
|
678
|
-
/** Keep existing checkbox data objects usable; new objects use boolean. */
|
|
679
|
-
renderFieldType(type: string | undefined, field?: any): string | undefined;
|
|
680
676
|
customEmailPattern: string;
|
|
681
677
|
showPassword: boolean;
|
|
682
678
|
formCopy: any;
|
|
@@ -698,25 +694,12 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
|
|
|
698
694
|
};
|
|
699
695
|
getSectionBodyStyle(formSection: any): any;
|
|
700
696
|
getFieldWrapperStyle(formField: any): any;
|
|
701
|
-
getFieldInnerLayoutStyle(formField: any): Record<string, any>;
|
|
702
697
|
getScope(scope: any): string;
|
|
703
698
|
togglePasswordVisibility(): void;
|
|
704
699
|
invokeFormBtnClick(option: any, propertySchema: any): void;
|
|
705
700
|
setformData(): void;
|
|
706
701
|
setErroMessage(formField: any, errorMessages: any, field: any): string;
|
|
707
702
|
setValidations(): void;
|
|
708
|
-
matchData: any;
|
|
709
|
-
getLabel(formField: any): any;
|
|
710
|
-
dateChangeEvent(formField: any, event: any): void;
|
|
711
|
-
onDateTyping(event: any): void;
|
|
712
|
-
onTimeTyping(event: any): void;
|
|
713
|
-
timeChangeEvent(formField: any, event: any): void;
|
|
714
|
-
autocompChangeEvent(event: any, formfield: any): void;
|
|
715
|
-
autocompFocusOutEvent(event: any, formfield: any): void;
|
|
716
|
-
private getMediaProperty;
|
|
717
|
-
getMediaSource(field: any): string;
|
|
718
|
-
getMediaLabel(field: any): string;
|
|
719
|
-
getMediaKind(field: any): 'image' | 'video' | 'audio' | 'pdf' | 'file';
|
|
720
703
|
/**
|
|
721
704
|
* A field's message shows once the user typed in it and left it, or after a save attempt - not
|
|
722
705
|
* when an empty field was only passed through (the message then pushed the row and its label out
|
|
@@ -724,13 +707,6 @@ declare class FormComponent implements OnInit, OnChanges, AfterViewInit, OnDestr
|
|
|
724
707
|
*/
|
|
725
708
|
saveTried: boolean;
|
|
726
709
|
showError(control: any): boolean;
|
|
727
|
-
/**
|
|
728
|
-
* The toolkit keyboard of a field - the same rule as the dialog: the field's keyboardType (or the
|
|
729
|
-
* older keyboard; native/none = the device's own), else from its attribute type. #166 step 4.2
|
|
730
|
-
*/
|
|
731
|
-
keyboardTypeFor(field: any, propertySchema: any): CustomKeyboardType | null;
|
|
732
|
-
/** The message of a field's first error (layout's own, project text, English) - #166 step 4.6. */
|
|
733
|
-
fieldMessage(field: any, control: any): string;
|
|
734
710
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
735
711
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "vl-form", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; "form": { "alias": "form"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; }, { "formButtonClick": "formButtonClick"; "checkBoxChangeEvent": "checkBoxChangeEvent"; }, never, never, true, never>;
|
|
736
712
|
}
|
|
@@ -863,6 +839,15 @@ declare class GridComponent implements AfterViewInit, OnDestroy {
|
|
|
863
839
|
cellControl(col: any): string;
|
|
864
840
|
/** The DTO type of a column ("boolean" or a text flag for the switch). */
|
|
865
841
|
propertyType(col: any): string;
|
|
842
|
+
/** The DTO type of a column as the data object declares it ("string", "quantity" ...). */
|
|
843
|
+
cellType(col: any): string;
|
|
844
|
+
/**
|
|
845
|
+
* An unlocked text or number cell is typed in; the action column saves the row. A column with a
|
|
846
|
+
* shared control (password, text area, switch, combobox, radio) is shown, not typed in.
|
|
847
|
+
*/
|
|
848
|
+
inlineEditable(col: any): boolean;
|
|
849
|
+
/** An unlocked Boolean column without switch or radio ticks the row's value. */
|
|
850
|
+
checkboxEditable(col: any): boolean;
|
|
866
851
|
static ɵfac: i0.ɵɵFactoryDeclaration<GridComponent, never>;
|
|
867
852
|
static ɵcmp: i0.ɵɵComponentDeclaration<GridComponent, "vl-grid", never, { "errorMessages": { "alias": "errorMessages"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "tableitemInfo": { "alias": "tableitemInfo"; "required": false; }; "form": { "alias": "form"; "required": false; }; "isTableDataLoad": { "alias": "isTableDataLoad"; "required": false; }; "currenTableOptions": { "alias": "currenTableOptions"; "required": false; }; "projectSeleted": { "alias": "projectSeleted"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "userInfo": { "alias": "userInfo"; "required": false; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onGridScroll": "onGridScroll"; "showGridLink": "showGridLink"; "gridButtonClick": "gridButtonClick"; "gridIncreamentClick": "gridIncreamentClick"; "gridDecreamentClick": "gridDecreamentClick"; "gridImgClick": "gridImgClick"; }, never, never, true, never>;
|
|
868
853
|
}
|
|
@@ -976,12 +961,7 @@ declare class ModelComponent implements OnChanges, OnDestroy {
|
|
|
976
961
|
classes: string;
|
|
977
962
|
style: Record<string, any>;
|
|
978
963
|
};
|
|
979
|
-
/** The section is a 12 column grid, as in the Designer; the section's own style comes on top. */
|
|
980
964
|
getSectionBodyStyle(formSection: any): Record<string, any>;
|
|
981
|
-
/**
|
|
982
|
-
* The field's wrapper in the section grid: the field's whole style from the layout (the Designer's
|
|
983
|
-
* wrapper style), placed by gridColumn ("span N", else gridSpan) and never wider than its column.
|
|
984
|
-
*/
|
|
985
965
|
getFieldWrapperStyle(formField: any): Record<string, any>;
|
|
986
966
|
onTimePanelShow(formField: any): void;
|
|
987
967
|
dateChangeEvent(formField: any, value: any): void;
|
|
@@ -1325,7 +1305,6 @@ declare class DropdownControl {
|
|
|
1325
1305
|
private control?;
|
|
1326
1306
|
private cache;
|
|
1327
1307
|
private get option();
|
|
1328
|
-
private caption;
|
|
1329
1308
|
/** { label, value } entries - the same array while the source does not change */
|
|
1330
1309
|
entries(): {
|
|
1331
1310
|
label: string;
|
|
@@ -2024,6 +2003,24 @@ declare class ControlComponent implements OnChanges {
|
|
|
2024
2003
|
saveTried: boolean;
|
|
2025
2004
|
/** the label rule of the container: 'dialog' (the layout's layoutStyle) or 'form' */
|
|
2026
2005
|
container: 'dialog' | 'form';
|
|
2006
|
+
/** the button's type: 'submit' lets Enter in a field press it (form) */
|
|
2007
|
+
buttonType: 'button' | 'submit';
|
|
2008
|
+
/** 'edit': the field to type in (dialog, form); 'display': a record's value shown (card, grid) */
|
|
2009
|
+
mode: 'edit' | 'display';
|
|
2010
|
+
/** display mode: the record whose value is shown (record[name]) */
|
|
2011
|
+
record: any;
|
|
2012
|
+
/** no label (a grid cell: the column's heading is the label) */
|
|
2013
|
+
hideLabel: boolean;
|
|
2014
|
+
/** display mode: scope.style styles the value; false when the container styles it (grid cell) */
|
|
2015
|
+
styleValue: boolean;
|
|
2016
|
+
/** display mode: the small form of text area and media (grid cell) */
|
|
2017
|
+
compact: boolean;
|
|
2018
|
+
/** a selection list the container loaded itself; without it the field's own (field.data) */
|
|
2019
|
+
list: any[] | null | undefined;
|
|
2020
|
+
/** the container's list is still loading; without it the field's own (field.loading) */
|
|
2021
|
+
listLoading: boolean | null | undefined;
|
|
2022
|
+
/** the payment element's error (textContent) of the container, for the credit card */
|
|
2023
|
+
creditCardError: any;
|
|
2027
2024
|
/** an entry of an autocomplete or combobox list was chosen */
|
|
2028
2025
|
picked: EventEmitter<any>;
|
|
2029
2026
|
/** a date, time or period was set */
|
|
@@ -2032,6 +2029,10 @@ declare class ControlComponent implements OnChanges {
|
|
|
2032
2029
|
opened: EventEmitter<void>;
|
|
2033
2030
|
/** a check box, switch or radio button changed */
|
|
2034
2031
|
toggled: EventEmitter<any>;
|
|
2032
|
+
/** display mode: the value of a field with option.link was clicked; its option */
|
|
2033
|
+
linkClicked: EventEmitter<any>;
|
|
2034
|
+
/** display mode: a media value was clicked; its option */
|
|
2035
|
+
mediaClicked: EventEmitter<any>;
|
|
2035
2036
|
/** a button was clicked; its option (innerAction, action ...) */
|
|
2036
2037
|
buttonClick: EventEmitter<any>;
|
|
2037
2038
|
kind: ControlKind;
|
|
@@ -2043,12 +2044,32 @@ declare class ControlComponent implements OnChanges {
|
|
|
2043
2044
|
textboxInfo: any;
|
|
2044
2045
|
readonly vlAction: typeof testAction;
|
|
2045
2046
|
readonly vlWrites: typeof testWrites;
|
|
2047
|
+
/** the property's name in a record ("fromDate") */
|
|
2048
|
+
name: string;
|
|
2046
2049
|
ngOnChanges(): void;
|
|
2047
|
-
|
|
2050
|
+
get display(): boolean;
|
|
2051
|
+
/** protected in the layout, or a list: the value is shown, not typed in */
|
|
2048
2052
|
get readonly(): boolean;
|
|
2053
|
+
/**
|
|
2054
|
+
* the value shown: in a list what the record stores (never the property's default - that belongs
|
|
2055
|
+
* to a new record in the dialog), the property's otherwise
|
|
2056
|
+
*/
|
|
2057
|
+
get value(): any;
|
|
2058
|
+
/** a plain value of a list as text, "--" when empty */
|
|
2059
|
+
get text(): string;
|
|
2060
|
+
/** the row a number reads its currency field from: the record in a list */
|
|
2061
|
+
get numberRow(): any;
|
|
2062
|
+
/** a date or time of a list as text, "--" when empty */
|
|
2063
|
+
get dateText(): string;
|
|
2064
|
+
/** an older layout's own date pattern (Angular date pipe: option.dateFormat / timeFormat) */
|
|
2065
|
+
get legacyDateFormat(): string;
|
|
2066
|
+
get isLink(): boolean;
|
|
2067
|
+
openLink(): void;
|
|
2049
2068
|
/** the property the control writes into ({} so a control never writes into undefined) */
|
|
2050
2069
|
get target(): any;
|
|
2051
2070
|
get translations(): Record<string, string> | null;
|
|
2071
|
+
get selectionList(): any[];
|
|
2072
|
+
get selectionLoading(): boolean;
|
|
2052
2073
|
get messages(): any;
|
|
2053
2074
|
/** label.value, the layout's label.caption, then the data object's caption - translated */
|
|
2054
2075
|
get label(): string;
|
|
@@ -2066,13 +2087,18 @@ declare class ControlComponent implements OnChanges {
|
|
|
2066
2087
|
classes: string;
|
|
2067
2088
|
style: Record<string, any>;
|
|
2068
2089
|
};
|
|
2090
|
+
/** display mode: the value's style (scope.style), unless the container styles it */
|
|
2091
|
+
valueStyle(): {
|
|
2092
|
+
classes: string;
|
|
2093
|
+
style: Record<string, any>;
|
|
2094
|
+
};
|
|
2069
2095
|
/** a button has no input; the field's style is the button's */
|
|
2070
2096
|
buttonStyle(): {
|
|
2071
2097
|
classes: string;
|
|
2072
2098
|
style: Record<string, any>;
|
|
2073
2099
|
};
|
|
2074
2100
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlComponent, never>;
|
|
2075
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ControlComponent, "vl-control", never, { "field": { "alias": "field"; "required": false; }; "propertySchema": { "alias": "propertySchema"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "saveTried": { "alias": "saveTried"; "required": false; }; "container": { "alias": "container"; "required": false; }; }, { "picked": "picked"; "changed": "changed"; "opened": "opened"; "toggled": "toggled"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
2101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ControlComponent, "vl-control", never, { "field": { "alias": "field"; "required": false; }; "propertySchema": { "alias": "propertySchema"; "required": false; }; "selectedLanguageInfo": { "alias": "selectedLanguageInfo"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; "saveTried": { "alias": "saveTried"; "required": false; }; "container": { "alias": "container"; "required": false; }; "buttonType": { "alias": "buttonType"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "record": { "alias": "record"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "styleValue": { "alias": "styleValue"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "list": { "alias": "list"; "required": false; }; "listLoading": { "alias": "listLoading"; "required": false; }; "creditCardError": { "alias": "creditCardError"; "required": false; }; }, { "picked": "picked"; "changed": "changed"; "opened": "opened"; "toggled": "toggled"; "linkClicked": "linkClicked"; "mediaClicked": "mediaClicked"; "buttonClick": "buttonClick"; }, never, never, true, never>;
|
|
2076
2102
|
}
|
|
2077
2103
|
|
|
2078
2104
|
export { AppVersionResetService, Autocomplete, BACKEND_PROXY_PREFIX, CardComponent, CheckboxControl, ConfigService, ControlComponent, Couchdb, CustomKeyboardComponent, CustomKeyboardDirective, CustomKeyboardService, DateFormatPipe, DateHintPipe, DateRangeControl, DateTextPipe, DateTimeControl, DropdownControl, FormComponent, GridComponent, HeaderMenuComponent, LogsComponent, MediaControl, MediaSourcePipe, MobileKeycloakService, MobileOidcService, MobileOktaService, ModelComponent, NetworkLogService, NotificationService, NumberControl, PaginationComponent, PasswordControl, PlaceholderPipe, READ_ATTEMPT_TIMEOUT, REQUEST_STAGES, RETRY_PAUSES, RETRY_STATUSES, RadioControl, RemoteListService, RequestService, RequestTimeoutError, RequestTimeoutService, RulesPipe, SIDE_DOCK_CLASS, SideMenuComponent, SwitchControl, TextareaControl, Textbox, UtilityService, ViewToolkitModule, VisiblePipe, backendUrl, controlKind, controlProperty, currencyDigits, currentDateLanguage, dateDigitCount, dateInputPattern, displayDateValue, displayNumber, fieldInnerLayoutStyle, fieldModel, fieldRules, fixedTimeText, inputFormatHint, isNativeMobile, isNativePhone, languageDatePattern, layoutPlaceholder, mediaKind, normalizeCustomKeyboardType, numberShape, numberStep, numberSuffix, primeDatePattern, resolveCustomKeyboardType, resolvePlaceholder, ruleMessage, setDateLanguage, setInputHintLanguage, setToolkitKeyboardOnWeb, shapeDateDigits, shapeTimeText, sideDockWidth, splitReference, stagedRead, stagedRequest, storedToTyped, styleParts, testAction, testFieldKey, testWrites, timeHourFormat, toggleMeridiem, toolkitKeyboardActive, typedToStored, usesTwelveHours, visibleFields, whenOnline };
|