@sava-info-systems/api-maker-with-extensions 1.11.0 → 1.12.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/dist/1025.js +1 -1
- package/dist/1097.js +1 -1
- package/dist/148.js +1 -1
- package/dist/1558.js +1 -1
- package/dist/1678.js +1 -1
- package/dist/1754.js +1 -1
- package/dist/1928.js +1 -1
- package/dist/1957.js +1 -1
- package/dist/2140.js +1 -1
- package/dist/2295.js +1 -1
- package/dist/2473.js +1 -1
- package/dist/2714.js +1 -1
- package/dist/2735.js +1 -1
- package/dist/2908.js +1 -1
- package/dist/3081.js +1 -0
- package/dist/3139.js +1 -1
- package/dist/3450.js +1 -1
- package/dist/4110.js +1 -1
- package/dist/4181.js +1 -1
- package/dist/4186.js +1 -1
- package/dist/4211.js +1 -1
- package/dist/4575.js +1 -1
- package/dist/4842.js +1 -1
- package/dist/485.js +1 -1
- package/dist/4895.js +1 -1
- package/dist/5249.js +1 -1
- package/dist/5334.js +1 -1
- package/dist/5421.js +1 -1
- package/dist/5679.js +1 -1
- package/dist/5761.js +1 -1
- package/dist/5765.js +1 -1
- package/dist/6236.js +1 -1
- package/dist/6393.js +1 -1
- package/dist/6401.js +1 -1
- package/dist/7368.js +1 -1
- package/dist/7436.js +1 -1
- package/dist/7470.js +1 -1
- package/dist/7649.js +1 -1
- package/dist/7975.js +1 -1
- package/dist/7977.js +1 -1
- package/dist/7987.js +1 -1
- package/dist/8125.js +1 -1
- package/dist/8266.js +1 -1
- package/dist/8296.js +1 -1
- package/dist/8841.js +1 -1
- package/dist/885.js +1 -1
- package/dist/891.js +1 -1
- package/dist/913.js +1 -1
- package/dist/9243.js +1 -1
- package/dist/9575.js +1 -1
- package/dist/9939.js +1 -1
- package/dist/assets/images/icons/api-maker-deployment.svg +5 -0
- package/dist/assets/schema-types/types.ts +357 -9
- package/dist/assets/styles/out/styles.css +1 -1
- package/dist/assets/styles/out/styles.css.map +1 -1
- package/dist/assets/styles/styles.scss +22 -0
- package/dist/common.js +1 -1
- package/dist/main.js +1 -1
- package/main.js +1 -1
- package/package.json +4 -4
- package/sandbox/assets/schema-types/types.js +38 -0
- package/sandbox/sandbox.js +1 -1
- package/src/assets/schema-types/types.ts +357 -9
- package/src/public/dist-db-masters/browser/main.js +70 -68
|
@@ -329,7 +329,7 @@ export interface IPropertyConversionDefaults {
|
|
|
329
329
|
/** This default value will converted to type and applied. */
|
|
330
330
|
defaultValue?: any;
|
|
331
331
|
|
|
332
|
-
/** defaultValue has higher priority. If defaultValue is not present, system will execution this function and returned value will be set. */
|
|
332
|
+
/** defaultValue has higher priority compare to defaultFun. If defaultValue is not present, system will execution this function and returned value will be set. */
|
|
333
333
|
defaultFun?: Function;
|
|
334
334
|
|
|
335
335
|
/** If true, it will apply default value when value is also null. */
|
|
@@ -1788,7 +1788,7 @@ export interface IDBMasterConfig {
|
|
|
1788
1788
|
* */
|
|
1789
1789
|
showOtherFieldErrors?: boolean;
|
|
1790
1790
|
|
|
1791
|
-
/**
|
|
1791
|
+
/** Generates UI controls. */
|
|
1792
1792
|
fields?: IDBMasterConfigFormField[][];
|
|
1793
1793
|
};
|
|
1794
1794
|
|
|
@@ -2127,8 +2127,17 @@ export interface IDBMasterConfigFormField {
|
|
|
2127
2127
|
/** This text will be displayed under control in small. HTML supported. */
|
|
2128
2128
|
helpText?: string;
|
|
2129
2129
|
|
|
2130
|
+
/** database field name, UI control value will be saved on this property in save/update object. */
|
|
2130
2131
|
path?: string;
|
|
2131
|
-
|
|
2132
|
+
|
|
2133
|
+
/** UI control type */
|
|
2134
|
+
control?: EDBMasterFormControl;
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Default : col-lg mt-4 col-md-{ 12 / ((columns.length === 2 ? 4 : columns.length) / 2) } <br/>
|
|
2138
|
+
* It will be applied to parent div which holds UI control in it.
|
|
2139
|
+
* */
|
|
2140
|
+
cssClassDiv?: string;
|
|
2132
2141
|
|
|
2133
2142
|
/** if true, that control will take focus automatically. */
|
|
2134
2143
|
autofocus?: boolean;
|
|
@@ -2139,6 +2148,9 @@ export interface IDBMasterConfigFormField {
|
|
|
2139
2148
|
/** if true or undefined, control will be visible. If string provides, it will evaluate that string and make it visible/invisible based on that. */
|
|
2140
2149
|
visible?: boolean | string;
|
|
2141
2150
|
|
|
2151
|
+
/** Generates UI controls. */
|
|
2152
|
+
fields?: IDBMasterConfigFormField[][];
|
|
2153
|
+
|
|
2142
2154
|
validations?: Pick<IPropertyValidation, 'required'>;
|
|
2143
2155
|
validationErrors?: {
|
|
2144
2156
|
required?: string;
|
|
@@ -2161,6 +2173,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2161
2173
|
/** Maximum number of character allows in the input field. */
|
|
2162
2174
|
maxLength?: number;
|
|
2163
2175
|
|
|
2176
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2177
|
+
tooltip?: string;
|
|
2178
|
+
|
|
2179
|
+
/** Type of CSS position. */
|
|
2180
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2181
|
+
tooltipStyleClass?: string;
|
|
2182
|
+
|
|
2164
2183
|
jsCode?: {
|
|
2165
2184
|
/**
|
|
2166
2185
|
* Available variables:<br/>
|
|
@@ -2215,6 +2234,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2215
2234
|
/** Minimum number of character allows in the input field. */
|
|
2216
2235
|
minLength?: number;
|
|
2217
2236
|
|
|
2237
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2238
|
+
tooltip?: string;
|
|
2239
|
+
|
|
2240
|
+
/** Type of CSS position. */
|
|
2241
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2242
|
+
tooltipStyleClass?: string;
|
|
2243
|
+
|
|
2218
2244
|
jsCode?: {
|
|
2219
2245
|
/**
|
|
2220
2246
|
* Available variables:<br/>
|
|
@@ -2293,6 +2319,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2293
2319
|
/** Minimum number of character allows in the input field. */
|
|
2294
2320
|
minLength?: number;
|
|
2295
2321
|
|
|
2322
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2323
|
+
tooltip?: string;
|
|
2324
|
+
|
|
2325
|
+
/** Type of CSS position. */
|
|
2326
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2327
|
+
tooltipStyleClass?: string;
|
|
2328
|
+
|
|
2296
2329
|
jsCode?: {
|
|
2297
2330
|
/**
|
|
2298
2331
|
* Available variables:<br/>
|
|
@@ -2365,6 +2398,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2365
2398
|
/** Maximum number of character allows in the input field. */
|
|
2366
2399
|
maxLength?: number;
|
|
2367
2400
|
|
|
2401
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2402
|
+
tooltip?: string;
|
|
2403
|
+
|
|
2404
|
+
/** Type of CSS position. */
|
|
2405
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2406
|
+
tooltipStyleClass?: string;
|
|
2407
|
+
|
|
2368
2408
|
jsCode?: {
|
|
2369
2409
|
/**
|
|
2370
2410
|
* Available variables:<br/>
|
|
@@ -2416,6 +2456,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2416
2456
|
|
|
2417
2457
|
/** Number of characters to initiate. */
|
|
2418
2458
|
length?: number;
|
|
2459
|
+
|
|
2460
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2461
|
+
tooltip?: string;
|
|
2462
|
+
|
|
2463
|
+
/** Type of CSS position. */
|
|
2464
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2465
|
+
tooltipStyleClass?: string;
|
|
2419
2466
|
};
|
|
2420
2467
|
// inputOtpSettings : end
|
|
2421
2468
|
|
|
@@ -2432,6 +2479,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2432
2479
|
/** Maximum number of character allows in the input field. */
|
|
2433
2480
|
maxLength?: number;
|
|
2434
2481
|
|
|
2482
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2483
|
+
tooltip?: string;
|
|
2484
|
+
|
|
2485
|
+
/** Type of CSS position. */
|
|
2486
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2487
|
+
tooltipStyleClass?: string;
|
|
2488
|
+
|
|
2435
2489
|
jsCode?: {
|
|
2436
2490
|
/**
|
|
2437
2491
|
* Available variables:<br/>
|
|
@@ -2469,6 +2523,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2469
2523
|
|
|
2470
2524
|
// checkboxSettings : start
|
|
2471
2525
|
checkboxSettings?: {
|
|
2526
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2527
|
+
tooltip?: string;
|
|
2528
|
+
|
|
2529
|
+
/** Type of CSS position. */
|
|
2530
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2531
|
+
tooltipStyleClass?: string;
|
|
2532
|
+
|
|
2472
2533
|
jsCode?: {
|
|
2473
2534
|
/**
|
|
2474
2535
|
* Available variables:<br/>
|
|
@@ -2504,12 +2565,92 @@ export interface IDBMasterConfigFormField {
|
|
|
2504
2565
|
};
|
|
2505
2566
|
// checkboxSettings : end
|
|
2506
2567
|
|
|
2568
|
+
// ratingSettings : start
|
|
2569
|
+
ratingSettings?: {
|
|
2570
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2571
|
+
tooltip?: string;
|
|
2572
|
+
|
|
2573
|
+
/** Type of CSS position. */
|
|
2574
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2575
|
+
tooltipStyleClass?: string;
|
|
2576
|
+
|
|
2577
|
+
/** When specified a cancel icon is displayed to allow removing the value. */
|
|
2578
|
+
cancel?: boolean;
|
|
2579
|
+
|
|
2580
|
+
/** Style class of the on icon. */
|
|
2581
|
+
iconOnClass?: string;
|
|
2582
|
+
|
|
2583
|
+
/** Inline style of the on icon. */
|
|
2584
|
+
iconOnStyle?: any;
|
|
2585
|
+
|
|
2586
|
+
/** Style class of the off icon. */
|
|
2587
|
+
iconOffClass?: string;
|
|
2588
|
+
|
|
2589
|
+
/** Inline style of the off icon. */
|
|
2590
|
+
iconOffStyle?: any;
|
|
2591
|
+
|
|
2592
|
+
/** Style class of the cancel icon. */
|
|
2593
|
+
iconCancelClass?: string;
|
|
2594
|
+
|
|
2595
|
+
/** Inline style of the cancel icon. */
|
|
2596
|
+
iconCancelStyle?: any;
|
|
2597
|
+
|
|
2598
|
+
/** Number of stars. */
|
|
2599
|
+
stars?: number;
|
|
2600
|
+
|
|
2601
|
+
/** cancel rating custom HTML */
|
|
2602
|
+
cancelIconHTML?: string;
|
|
2603
|
+
onIconHTML?: string;
|
|
2604
|
+
offIconHTML?: string;
|
|
2605
|
+
|
|
2606
|
+
jsCode?: {
|
|
2607
|
+
/**
|
|
2608
|
+
* Available variables:<br/>
|
|
2609
|
+
* formData: any = Entire form object<br/>
|
|
2610
|
+
* column: IDBMasterConfigFormField = Configuration of that form column. column.dropdownSettings?.dbData?.find will be query to get data. <br/>
|
|
2611
|
+
* allDropdownDataMap: {[path: string]: any[]} = Map of all dropdown data<br/>
|
|
2612
|
+
* globalData: any = User will send it using SET_GLOBAL_DATA_TO_USE_IN_ANY_SCRIPT event from parent. <br/>
|
|
2613
|
+
* utils: any = Common utility functions for user to use. <br/>
|
|
2614
|
+
* queryParams: any = Query params received from URL. <br/>
|
|
2615
|
+
* config: IDBMasterConfigFormField <br/>
|
|
2616
|
+
* event: any <br/>
|
|
2617
|
+
*/
|
|
2618
|
+
appendTo: EDBMasterRatingAppendTo,
|
|
2619
|
+
/**
|
|
2620
|
+
* // dropdownData is available to use.
|
|
2621
|
+
*
|
|
2622
|
+
* // Return promise for long awaiting tasks.
|
|
2623
|
+
* new Promise(async (resolve, reject) => {
|
|
2624
|
+
* await new Promise(r => setTimeout(r, 3000));
|
|
2625
|
+
* dropdownData[0].name = 'Sample data';
|
|
2626
|
+
* resolve();
|
|
2627
|
+
* });
|
|
2628
|
+
*
|
|
2629
|
+
* // Directly modify data of grid
|
|
2630
|
+
* dropdownData[0].name = 'Sample data';
|
|
2631
|
+
*
|
|
2632
|
+
* // Return function
|
|
2633
|
+
* (function setData() { dropdownData[0].name = 'Sample data'; } );
|
|
2634
|
+
*
|
|
2635
|
+
*/
|
|
2636
|
+
code: string,
|
|
2637
|
+
}[],
|
|
2638
|
+
};
|
|
2639
|
+
// ratingSettings : end
|
|
2640
|
+
|
|
2507
2641
|
// radioSettings : start
|
|
2508
2642
|
radioSettings?: {
|
|
2509
2643
|
displayType?: 'inline' | 'new_line';
|
|
2510
2644
|
displayInCenter?: boolean;
|
|
2511
2645
|
options: { label: string; value: any }[];
|
|
2512
2646
|
|
|
2647
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2648
|
+
tooltip?: string;
|
|
2649
|
+
|
|
2650
|
+
/** Type of CSS position. */
|
|
2651
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2652
|
+
tooltipStyleClass?: string;
|
|
2653
|
+
|
|
2513
2654
|
jsCode?: {
|
|
2514
2655
|
/**
|
|
2515
2656
|
* Available variables:<br/>
|
|
@@ -2579,6 +2720,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2579
2720
|
*/
|
|
2580
2721
|
view?: 'date' | 'month' | 'year';
|
|
2581
2722
|
|
|
2723
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2724
|
+
tooltip?: string;
|
|
2725
|
+
|
|
2726
|
+
/** Type of CSS position. */
|
|
2727
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2728
|
+
tooltipStyleClass?: string;
|
|
2729
|
+
|
|
2582
2730
|
jsCode?: {
|
|
2583
2731
|
/**
|
|
2584
2732
|
* Available variables:<br/>
|
|
@@ -2624,6 +2772,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2624
2772
|
|
|
2625
2773
|
format?: 'hex' | 'rgb' | 'hsb';
|
|
2626
2774
|
|
|
2775
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2776
|
+
tooltip?: string;
|
|
2777
|
+
|
|
2778
|
+
/** Type of CSS position. */
|
|
2779
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2780
|
+
tooltipStyleClass?: string;
|
|
2781
|
+
|
|
2627
2782
|
jsCode?: {
|
|
2628
2783
|
/**
|
|
2629
2784
|
* Available variables:<br/>
|
|
@@ -2699,12 +2854,19 @@ export interface IDBMasterConfigFormField {
|
|
|
2699
2854
|
/** Default : false, Make it true to handle huge amount of data. */
|
|
2700
2855
|
virtualScroll?: boolean;
|
|
2701
2856
|
|
|
2702
|
-
/** on value change of current dropdown, it will change values of these dropdowns and reload them. */
|
|
2857
|
+
/** on value change of current dropdown | auto complete | multi select, it will change values of these dropdowns | auto completes | multi selects and reload them. */
|
|
2703
2858
|
reloadDropdownsOfPath?: string[];
|
|
2704
2859
|
|
|
2705
2860
|
/** API call will happen when these values of path are present in formData */
|
|
2706
2861
|
isDependentOnPath?: string[];
|
|
2707
2862
|
|
|
2863
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2864
|
+
tooltip?: string;
|
|
2865
|
+
|
|
2866
|
+
/** Type of CSS position. */
|
|
2867
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2868
|
+
tooltipStyleClass?: string;
|
|
2869
|
+
|
|
2708
2870
|
jsCode?: {
|
|
2709
2871
|
/**
|
|
2710
2872
|
* modifyDropdownRequest = It will run before hitting API call. So we can do whatever we want.<br/>
|
|
@@ -2761,7 +2923,7 @@ export interface IDBMasterConfigFormField {
|
|
|
2761
2923
|
showClear?: boolean;
|
|
2762
2924
|
|
|
2763
2925
|
/** Minimum number of characters to initiate a search. */
|
|
2764
|
-
|
|
2926
|
+
minLengthForSearch?: number;
|
|
2765
2927
|
|
|
2766
2928
|
/** Delay between keystrokes to wait before sending a query. */
|
|
2767
2929
|
delay?: number;
|
|
@@ -2784,7 +2946,7 @@ export interface IDBMasterConfigFormField {
|
|
|
2784
2946
|
optionLabel?: string;
|
|
2785
2947
|
|
|
2786
2948
|
/** Default : value */
|
|
2787
|
-
optionValue?: string;
|
|
2949
|
+
// optionValue?: string;
|
|
2788
2950
|
|
|
2789
2951
|
/** one field or multiple comma separated fields are supported without any space in between. */
|
|
2790
2952
|
filterBy?: string;
|
|
@@ -2796,14 +2958,25 @@ export interface IDBMasterConfigFormField {
|
|
|
2796
2958
|
/** Default : false, Make it true to handle huge amount of data. */
|
|
2797
2959
|
virtualScroll?: boolean;
|
|
2798
2960
|
|
|
2799
|
-
/** on value change of current dropdown, it will change values of these dropdowns and reload them. */
|
|
2961
|
+
/** on value change of current dropdown | auto complete | multi select, it will change values of these dropdowns | auto completes | multi selects and reload them. */
|
|
2800
2962
|
reloadDropdownsOfPath?: string[];
|
|
2801
2963
|
|
|
2802
2964
|
/** API call will happen when these values of path are present in formData */
|
|
2803
2965
|
isDependentOnPath?: string[];
|
|
2804
2966
|
|
|
2967
|
+
/** Displays a button next to the input field when enabled. */
|
|
2805
2968
|
dropdown?: boolean;
|
|
2806
2969
|
|
|
2970
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
2971
|
+
tooltip?: string;
|
|
2972
|
+
|
|
2973
|
+
/** Type of CSS position. */
|
|
2974
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
2975
|
+
tooltipStyleClass?: string;
|
|
2976
|
+
|
|
2977
|
+
/** Maximum number of character allows in the input field. */
|
|
2978
|
+
maxLength?: number;
|
|
2979
|
+
|
|
2807
2980
|
addNewFormConfig?: IDBMasterConfig;
|
|
2808
2981
|
|
|
2809
2982
|
apiCallOverrides?: IDBMasterAPICallOverrides;
|
|
@@ -2883,12 +3056,17 @@ export interface IDBMasterConfigFormField {
|
|
|
2883
3056
|
/** Default : value */
|
|
2884
3057
|
optionValue?: string;
|
|
2885
3058
|
|
|
3059
|
+
/** Whether to show the header. */
|
|
3060
|
+
showHeader?: boolean;
|
|
3061
|
+
|
|
2886
3062
|
/** Enable filter */
|
|
2887
3063
|
filter?: boolean;
|
|
2888
3064
|
|
|
2889
3065
|
/** one field or multiple comma separated fields are supported without any space in between. */
|
|
2890
3066
|
filterBy?: string;
|
|
2891
|
-
|
|
3067
|
+
|
|
3068
|
+
/** Default: 'contains', Defines how the items are filtered. */
|
|
3069
|
+
filterMatchMode?: 'endsWith' | 'startsWith' | 'contains' | 'equals' | 'notEquals' | 'in' | 'lt' | 'lte' | 'gt' | 'gte';
|
|
2892
3070
|
|
|
2893
3071
|
/** Default : false, if true it will get latest data when form opens for add/edit operation. */
|
|
2894
3072
|
alwaysGetLatestDataOnFormOpen?: boolean;
|
|
@@ -2896,7 +3074,41 @@ export interface IDBMasterConfigFormField {
|
|
|
2896
3074
|
/** Default : false, Make it true to handle huge amount of data. */
|
|
2897
3075
|
virtualScroll?: boolean;
|
|
2898
3076
|
|
|
2899
|
-
/**
|
|
3077
|
+
/** Decides how many selected item labels to show at most. */
|
|
3078
|
+
maxSelectedLabels?: number;
|
|
3079
|
+
|
|
3080
|
+
/** Decides how many items can be selected at most. */
|
|
3081
|
+
selectionLimit?: number;
|
|
3082
|
+
|
|
3083
|
+
/** Ex: "{0} items selected", Label to display after exceeding max selected labels. defaults "ellipsis" keyword to indicate a text-overflow. */
|
|
3084
|
+
selectedItemsLabel?: string;
|
|
3085
|
+
|
|
3086
|
+
/** Whether to show the checkbox at header to toggle all items at once. */
|
|
3087
|
+
showToggleAll?: boolean;
|
|
3088
|
+
|
|
3089
|
+
/** Name of the disabled field of an option. */
|
|
3090
|
+
optionDisabled?: string;
|
|
3091
|
+
|
|
3092
|
+
/** Name of the label field of an option group. */
|
|
3093
|
+
optionGroupLabel?: string;
|
|
3094
|
+
|
|
3095
|
+
/** Name of the options field of an option group. */
|
|
3096
|
+
optionGroupChildren?: string;
|
|
3097
|
+
|
|
3098
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
3099
|
+
tooltip?: string;
|
|
3100
|
+
|
|
3101
|
+
/** Type of CSS position. */
|
|
3102
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
3103
|
+
tooltipStyleClass?: string;
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* Defines how the selected items are displayed.
|
|
3107
|
+
* @group Props
|
|
3108
|
+
*/
|
|
3109
|
+
display: 'comma' | 'chip';
|
|
3110
|
+
|
|
3111
|
+
/** on value change of current dropdown | auto complete | multi select, it will change values of these dropdowns | auto completes | multi selects and reload them. */
|
|
2900
3112
|
reloadDropdownsOfPath?: string[];
|
|
2901
3113
|
|
|
2902
3114
|
/** API call will happen when these values of path are present in formData */
|
|
@@ -2991,6 +3203,13 @@ export interface IDBMasterConfigFormField {
|
|
|
2991
3203
|
|
|
2992
3204
|
/** internal use only */
|
|
2993
3205
|
_fileSelectEvent?: any;
|
|
3206
|
+
|
|
3207
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
3208
|
+
tooltip?: string;
|
|
3209
|
+
|
|
3210
|
+
/** Type of CSS position. */
|
|
3211
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
3212
|
+
tooltipStyleClass?: string;
|
|
2994
3213
|
};
|
|
2995
3214
|
// fileUploadSettings : end
|
|
2996
3215
|
|
|
@@ -3191,6 +3410,13 @@ export interface IDBMasterConfigFormField {
|
|
|
3191
3410
|
/** Style class of the badge. */
|
|
3192
3411
|
size?: 'small' | 'large' | undefined | null;
|
|
3193
3412
|
|
|
3413
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
3414
|
+
tooltip?: string;
|
|
3415
|
+
|
|
3416
|
+
/** Type of CSS position. */
|
|
3417
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
3418
|
+
tooltipStyleClass?: string;
|
|
3419
|
+
|
|
3194
3420
|
jsCode?: {
|
|
3195
3421
|
/**
|
|
3196
3422
|
* Available variables:<br/>
|
|
@@ -3254,6 +3480,13 @@ export interface IDBMasterConfigFormField {
|
|
|
3254
3480
|
/** The source path for the preview image. */
|
|
3255
3481
|
previewImageSrc?: string;
|
|
3256
3482
|
|
|
3483
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
3484
|
+
tooltip?: string;
|
|
3485
|
+
|
|
3486
|
+
/** Type of CSS position. */
|
|
3487
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
3488
|
+
tooltipStyleClass?: string;
|
|
3489
|
+
|
|
3257
3490
|
jsCode?: {
|
|
3258
3491
|
/**
|
|
3259
3492
|
* Available variables:<br/>
|
|
@@ -3295,6 +3528,83 @@ export interface IDBMasterConfigFormField {
|
|
|
3295
3528
|
};
|
|
3296
3529
|
// customHTMLSettings : end
|
|
3297
3530
|
|
|
3531
|
+
// knobSettings : start
|
|
3532
|
+
knobSettings?: {
|
|
3533
|
+
/** Advisory information to display in a tooltip on hover. */
|
|
3534
|
+
tooltip?: string;
|
|
3535
|
+
|
|
3536
|
+
/** Type of CSS position. */
|
|
3537
|
+
tooltipPosition?: 'left' | 'top' | 'bottom' | 'right';
|
|
3538
|
+
tooltipStyleClass?: string;
|
|
3539
|
+
|
|
3540
|
+
/** Style class of the component. */
|
|
3541
|
+
cssClass?: string | undefined;
|
|
3542
|
+
|
|
3543
|
+
/** Inline style of the component. */
|
|
3544
|
+
style?: any;
|
|
3545
|
+
|
|
3546
|
+
/** Background of the value. */
|
|
3547
|
+
valueColor?: string | undefined;
|
|
3548
|
+
|
|
3549
|
+
/** Background color of the range. */
|
|
3550
|
+
rangeColor?: string;
|
|
3551
|
+
|
|
3552
|
+
/** Color of the value text. */
|
|
3553
|
+
textColor?: string;
|
|
3554
|
+
|
|
3555
|
+
/** Template string of the value. */
|
|
3556
|
+
valueTemplate?: string;
|
|
3557
|
+
|
|
3558
|
+
/** Size of the component in pixels. */
|
|
3559
|
+
size?: number;
|
|
3560
|
+
|
|
3561
|
+
/** Step factor to increment/decrement the value. */
|
|
3562
|
+
step?: number;
|
|
3563
|
+
|
|
3564
|
+
/** Minimum boundary value. */
|
|
3565
|
+
min?: number;
|
|
3566
|
+
|
|
3567
|
+
/** Maximum boundary value. */
|
|
3568
|
+
max?: number;
|
|
3569
|
+
|
|
3570
|
+
/** Width of the knob stroke. */
|
|
3571
|
+
strokeWidth?: number;
|
|
3572
|
+
|
|
3573
|
+
jsCode?: {
|
|
3574
|
+
/**
|
|
3575
|
+
* Available variables:<br/>
|
|
3576
|
+
* formData: any = Entire form object<br/>
|
|
3577
|
+
* column: IDBMasterConfigFormField = Configuration of that form column. column.dropdownSettings?.dbData?.find will be query to get data. <br/>
|
|
3578
|
+
* allDropdownDataMap: {[path: string]: any[]} = Map of all dropdown data<br/>
|
|
3579
|
+
* globalData: any = User will send it using SET_GLOBAL_DATA_TO_USE_IN_ANY_SCRIPT event from parent. <br/>
|
|
3580
|
+
* utils: any = Common utility functions for user to use. <br/>
|
|
3581
|
+
* queryParams: any = Query params received from URL. <br/>
|
|
3582
|
+
* config: IDBMasterConfigFormField <br/>
|
|
3583
|
+
* event: any <br/>
|
|
3584
|
+
*/
|
|
3585
|
+
appendTo: EDBMasterKnobAppendTo,
|
|
3586
|
+
/**
|
|
3587
|
+
* // dropdownData is available to use.
|
|
3588
|
+
*
|
|
3589
|
+
* // Return promise for long awaiting tasks.
|
|
3590
|
+
* new Promise(async (resolve, reject) => {
|
|
3591
|
+
* await new Promise(r => setTimeout(r, 3000));
|
|
3592
|
+
* dropdownData[0].name = 'Sample data';
|
|
3593
|
+
* resolve();
|
|
3594
|
+
* });
|
|
3595
|
+
*
|
|
3596
|
+
* // Directly modify data of grid
|
|
3597
|
+
* dropdownData[0].name = 'Sample data';
|
|
3598
|
+
*
|
|
3599
|
+
* // Return function
|
|
3600
|
+
* (function setData() { dropdownData[0].name = 'Sample data'; } );
|
|
3601
|
+
*
|
|
3602
|
+
*/
|
|
3603
|
+
code: string,
|
|
3604
|
+
}[],
|
|
3605
|
+
};
|
|
3606
|
+
// knobSettings : end
|
|
3607
|
+
|
|
3298
3608
|
// genericConfig : start
|
|
3299
3609
|
}
|
|
3300
3610
|
|
|
@@ -3335,6 +3645,14 @@ export enum EDBMasterAutoCompleteAppendTo {
|
|
|
3335
3645
|
disabled = 'disabled',
|
|
3336
3646
|
modifyAutoCompleteRequest = 'modifyAutoCompleteRequest',
|
|
3337
3647
|
onceAutoCompleteDataLoaded = 'onceAutoCompleteDataLoaded',
|
|
3648
|
+
focus = 'focus',
|
|
3649
|
+
blur = 'blur',
|
|
3650
|
+
keyUp = 'keyUp',
|
|
3651
|
+
keyDown = 'keyDown',
|
|
3652
|
+
onShow = 'onShow',
|
|
3653
|
+
onHide = 'onHide',
|
|
3654
|
+
onClear = 'onClear',
|
|
3655
|
+
onDropdownClick = 'onDropdownClick',
|
|
3338
3656
|
}
|
|
3339
3657
|
|
|
3340
3658
|
// autocompleteSettings : end
|
|
@@ -3346,6 +3664,12 @@ export enum EDBMasterMultiSelectAppendTo {
|
|
|
3346
3664
|
modifyMultiSelectRequest = 'modifyMultiSelectRequest',
|
|
3347
3665
|
onceMultiSelectDataLoaded = 'onceMultiSelectDataLoaded',
|
|
3348
3666
|
onChange = 'onChange',
|
|
3667
|
+
focus = 'focus',
|
|
3668
|
+
blur = 'blur',
|
|
3669
|
+
keyUp = 'keyUp',
|
|
3670
|
+
keyDown = 'keyDown',
|
|
3671
|
+
onClear = 'onClear',
|
|
3672
|
+
onSelectAllChange = 'onSelectAllChange',
|
|
3349
3673
|
}
|
|
3350
3674
|
|
|
3351
3675
|
// multiselectSettings : end
|
|
@@ -3485,6 +3809,28 @@ export enum EDBMasterCheckboxAppendTo {
|
|
|
3485
3809
|
|
|
3486
3810
|
// checkboxSettings : end
|
|
3487
3811
|
|
|
3812
|
+
// ratingSettings : start
|
|
3813
|
+
export enum EDBMasterRatingAppendTo {
|
|
3814
|
+
visible = 'visible',
|
|
3815
|
+
disabled = 'disabled',
|
|
3816
|
+
ngModelChange = 'ngModelChange',
|
|
3817
|
+
onRate = 'onRate',
|
|
3818
|
+
onCancel = 'onCancel',
|
|
3819
|
+
onFocus = 'onFocus',
|
|
3820
|
+
onBlur = 'onBlur',
|
|
3821
|
+
}
|
|
3822
|
+
|
|
3823
|
+
// ratingSettings : end
|
|
3824
|
+
|
|
3825
|
+
// knobSettings : start
|
|
3826
|
+
export enum EDBMasterKnobAppendTo {
|
|
3827
|
+
visible = 'visible',
|
|
3828
|
+
disabled = 'disabled',
|
|
3829
|
+
ngModelChange = 'ngModelChange',
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
// knobSettings : end
|
|
3833
|
+
|
|
3488
3834
|
// radioSettings : start
|
|
3489
3835
|
export enum EDBMasterRadioAppendTo {
|
|
3490
3836
|
visible = 'visible',
|
|
@@ -3562,6 +3908,8 @@ export enum EDBMasterFormControl {
|
|
|
3562
3908
|
file_upload = 'file_upload',
|
|
3563
3909
|
grid = 'grid',
|
|
3564
3910
|
divider = 'divider',
|
|
3911
|
+
rating = 'rating',
|
|
3912
|
+
knob = 'knob',
|
|
3565
3913
|
|
|
3566
3914
|
// Field holder controls
|
|
3567
3915
|
accordion = 'accordion',
|