@fundamental-ngx/platform 0.46.0-rc.0 → 0.46.0-rc.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/esm2022/approval-flow/approval-flow-add-node/approval-flow-add-node.component.mjs +1 -1
- package/esm2022/form/date-picker/date-picker.component.mjs +23 -9
- package/esm2022/form/date-picker/date-picker.module.mjs +5 -11
- package/esm2022/form/datetime-picker/datetime-picker.component.mjs +22 -9
- package/esm2022/form/datetime-picker/datetime-picker.module.mjs +5 -11
- package/esm2022/form/form-generator/controls/dynamic-form-generator-datepicker/dynamic-form-generator-datepicker.component.mjs +2 -2
- package/esm2022/table/components/table-editable-cell/table-editable-cell.component.mjs +1 -1
- package/esm2022/table/components/table-p13-dialog/filtering/filter-rule.component.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs +1 -1
- package/fesm2022/fundamental-ngx-platform-approval-flow.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-form.mjs +52 -28
- package/fesm2022/fundamental-ngx-platform-form.mjs.map +1 -1
- package/fesm2022/fundamental-ngx-platform-table.mjs +2 -2
- package/fesm2022/fundamental-ngx-platform-table.mjs.map +1 -1
- package/form/date-picker/date-picker.component.d.ts +11 -2
- package/form/date-picker/date-picker.module.d.ts +1 -6
- package/form/datetime-picker/datetime-picker.component.d.ts +11 -2
- package/form/datetime-picker/datetime-picker.module.d.ts +1 -6
- package/fundamental-ngx-platform-v0.46.0-rc.2.tgz +0 -0
- package/package.json +4 -4
- package/schematics/ng-add/index.js +1 -1
- package/fundamental-ngx-platform-v0.46.0-rc.0.tgz +0 -0
|
@@ -7,6 +7,7 @@ import { DatePickerComponent as FdDatePickerComponent } from '@fundamental-ngx/c
|
|
|
7
7
|
import { Placement, SpecialDayRule } from '@fundamental-ngx/core/shared';
|
|
8
8
|
import { PlatformFormFieldControl, BaseInput, PlatformFormField } from '@fundamental-ngx/platform/shared';
|
|
9
9
|
import { Nullable } from '@fundamental-ngx/cdk/utils';
|
|
10
|
+
import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
/**
|
|
12
13
|
* The Platform date picker component is a wrapper around fd-date-picker using platform form.
|
|
@@ -76,7 +77,7 @@ export declare class PlatformDatePickerComponent<D> extends BaseInput {
|
|
|
76
77
|
buttonFocusable: boolean;
|
|
77
78
|
/**
|
|
78
79
|
* Special days mark, it can be used by passing array of object with
|
|
79
|
-
* Special day number, list 1-20 [class:`fd-
|
|
80
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
80
81
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
81
82
|
* Rule accepts method with FdDate object as a parameter. ex:
|
|
82
83
|
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
@@ -114,6 +115,14 @@ export declare class PlatformDatePickerComponent<D> extends BaseInput {
|
|
|
114
115
|
* Whether to prevent page scrolling when focusing date picker input field after calendar has been closed.
|
|
115
116
|
*/
|
|
116
117
|
preventScrollOnFocus: boolean;
|
|
118
|
+
/** Whether date picker should rendered in mobile mode. */
|
|
119
|
+
mobile: boolean;
|
|
120
|
+
/** Mobile mode configuration. */
|
|
121
|
+
mobileConfig: MobileModeConfig;
|
|
122
|
+
/** Whether calendar is used inside mobile in landscape mode, it also adds close button on right side */
|
|
123
|
+
mobileLandscape: boolean;
|
|
124
|
+
/** Whether calendar is used inside mobile in portrait mode */
|
|
125
|
+
mobilePortrait: boolean;
|
|
117
126
|
/** Event emitted when the state of the isOpen property changes. */
|
|
118
127
|
readonly isOpenChange: EventEmitter<boolean>;
|
|
119
128
|
/** Fired when a new date is selected. */
|
|
@@ -160,7 +169,7 @@ export declare class PlatformDatePickerComponent<D> extends BaseInput {
|
|
|
160
169
|
/** @hidden */
|
|
161
170
|
handleActiveViewChange: (fdCalendarView: FdCalendarView) => void;
|
|
162
171
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformDatePickerComponent<any>, [null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; host: true; skipSelf: true; }, { optional: true; host: true; skipSelf: true; }, { optional: true; }, { optional: true; }]>;
|
|
163
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformDatePickerComponent<any>, "fdp-date-picker", never, { "value": { "alias": "value"; "required": false; }; "type": { "alias": "type"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "todayButtonLabel": { "alias": "todayButtonLabel"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "closeOnDateChoose": { "alias": "closeOnDateChoose"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "activeViewChange": "activeViewChange"; }, never, ["*"],
|
|
172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformDatePickerComponent<any>, "fdp-date-picker", never, { "value": { "alias": "value"; "required": false; }; "type": { "alias": "type"; "required": false; }; "selectedDate": { "alias": "selectedDate"; "required": false; }; "selectedRangeDate": { "alias": "selectedRangeDate"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "rangeHoverEffect": { "alias": "rangeHoverEffect"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "showTodayButton": { "alias": "showTodayButton"; "required": false; }; "todayButtonLabel": { "alias": "todayButtonLabel"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "closeOnDateChoose": { "alias": "closeOnDateChoose"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mobileConfig": { "alias": "mobileConfig"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; "disableRangeStartFunction": { "alias": "disableRangeStartFunction"; "required": false; }; "disableRangeEndFunction": { "alias": "disableRangeEndFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "selectedDateChange": "selectedDateChange"; "selectedRangeDateChange": "selectedRangeDateChange"; "activeViewChange": "activeViewChange"; }, never, ["*"], true, never, false>;
|
|
164
173
|
}
|
|
165
174
|
/** @hidden */
|
|
166
175
|
export declare function createMissingDateImplementationError(provider: string): Error;
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./date-picker.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@fundamental-ngx/core/date-picker";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@fundamental-ngx/cdk/utils";
|
|
7
|
-
import * as i6 from "@fundamental-ngx/core/content-density";
|
|
8
3
|
export declare class PlatformDatePickerModule {
|
|
9
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformDatePickerModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformDatePickerModule, [typeof i1.PlatformDatePickerComponent], [typeof
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformDatePickerModule, never, [typeof i1.PlatformDatePickerComponent], [typeof i1.PlatformDatePickerComponent]>;
|
|
11
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlatformDatePickerModule>;
|
|
12
7
|
}
|
|
@@ -6,6 +6,7 @@ import { DatetimeAdapter, DateTimeFormats } from '@fundamental-ngx/core/datetime
|
|
|
6
6
|
import { DatetimePickerComponent } from '@fundamental-ngx/core/datetime-picker';
|
|
7
7
|
import { Placement, SpecialDayRule } from '@fundamental-ngx/core/shared';
|
|
8
8
|
import { BaseInput, PlatformFormFieldControl, PlatformFormField } from '@fundamental-ngx/platform/shared';
|
|
9
|
+
import { MobileModeConfig } from '@fundamental-ngx/core/mobile-mode';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class PlatformDatetimePickerComponent<D> extends BaseInput implements AfterViewInit {
|
|
11
12
|
protected _cd: ChangeDetectorRef;
|
|
@@ -75,7 +76,7 @@ export declare class PlatformDatetimePickerComponent<D> extends BaseInput implem
|
|
|
75
76
|
buttonFocusable: boolean;
|
|
76
77
|
/**
|
|
77
78
|
* Special days mark, it can be used by passing array of object with
|
|
78
|
-
* Special day number, list 1-20 [class:`fd-
|
|
79
|
+
* Special day number, list 1-20 [class:`fd-calendar__item--legend-{{number}}`] is available there:
|
|
79
80
|
* https://sap.github.io/fundamental-styles/components/calendar.html calendar special days section
|
|
80
81
|
* Rule accepts method with FdDate object as a parameter. ex:
|
|
81
82
|
* `rule: (fdDate: FdDate) => fdDate.getDay() === 1`, which will mark all sundays as special day.
|
|
@@ -113,6 +114,14 @@ export declare class PlatformDatetimePickerComponent<D> extends BaseInput implem
|
|
|
113
114
|
* Whether to prevent page scrolling when focusing date picker input field after calendar has been closed.
|
|
114
115
|
*/
|
|
115
116
|
preventScrollOnFocus: boolean;
|
|
117
|
+
/** Whether date picker should rendered in mobile mode. */
|
|
118
|
+
mobile: boolean;
|
|
119
|
+
/** Mobile mode configuration. */
|
|
120
|
+
mobileConfig: MobileModeConfig;
|
|
121
|
+
/** Whether calendar is used inside mobile in landscape mode, it also adds close button on right side */
|
|
122
|
+
mobileLandscape: boolean;
|
|
123
|
+
/** Whether calendar is used inside mobile in portrait mode */
|
|
124
|
+
mobilePortrait: boolean;
|
|
116
125
|
/** Event emitted when the state of the isOpen property changes. */
|
|
117
126
|
readonly isOpenChange: EventEmitter<boolean>;
|
|
118
127
|
/** Event thrown every time calendar active view is changed */
|
|
@@ -167,5 +176,5 @@ export declare class PlatformDatetimePickerComponent<D> extends BaseInput implem
|
|
|
167
176
|
*/
|
|
168
177
|
private _adjustPickerWidth;
|
|
169
178
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformDatetimePickerComponent<any>, [null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; host: true; skipSelf: true; }, { optional: true; host: true; skipSelf: true; }, { optional: true; }, { optional: true; }]>;
|
|
170
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformDatetimePickerComponent<any>, "fdp-datetime-picker", never, { "value": { "alias": "value"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "meridian": { "alias": "meridian"; "required": false; }; "displaySeconds": { "alias": "displaySeconds"; "required": false; }; "displayMinutes": { "alias": "displayMinutes"; "required": false; }; "displayHours": { "alias": "displayHours"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "keepTwoDigitsTime": { "alias": "keepTwoDigitsTime"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "spinnerButtons": { "alias": "spinnerButtons"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "activeViewChange": "activeViewChange"; "datetimeChange": "datetimeChange"; "onClose": "onClose"; }, never, ["*"],
|
|
179
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PlatformDatetimePickerComponent<any>, "fdp-datetime-picker", never, { "value": { "alias": "value"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "meridian": { "alias": "meridian"; "required": false; }; "displaySeconds": { "alias": "displaySeconds"; "required": false; }; "displayMinutes": { "alias": "displayMinutes"; "required": false; }; "displayHours": { "alias": "displayHours"; "required": false; }; "useValidation": { "alias": "useValidation"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "startingDayOfWeek": { "alias": "startingDayOfWeek"; "required": false; }; "activeView": { "alias": "activeView"; "required": false; }; "allowNull": { "alias": "allowNull"; "required": false; }; "keepTwoDigitsTime": { "alias": "keepTwoDigitsTime"; "required": false; }; "state": { "alias": "state"; "required": false; }; "buttonFocusable": { "alias": "buttonFocusable"; "required": false; }; "specialDaysRules": { "alias": "specialDaysRules"; "required": false; }; "yearGrid": { "alias": "yearGrid"; "required": false; }; "aggregatedYearGrid": { "alias": "aggregatedYearGrid"; "required": false; }; "markWeekends": { "alias": "markWeekends"; "required": false; }; "spinnerButtons": { "alias": "spinnerButtons"; "required": false; }; "showWeekNumbers": { "alias": "showWeekNumbers"; "required": false; }; "showFooter": { "alias": "showFooter"; "required": false; }; "processInputOnBlur": { "alias": "processInputOnBlur"; "required": false; }; "preventScrollOnFocus": { "alias": "preventScrollOnFocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mobileConfig": { "alias": "mobileConfig"; "required": false; }; "mobileLandscape": { "alias": "mobileLandscape"; "required": false; }; "mobilePortrait": { "alias": "mobilePortrait"; "required": false; }; "disableFunction": { "alias": "disableFunction"; "required": false; }; }, { "isOpenChange": "isOpenChange"; "activeViewChange": "activeViewChange"; "datetimeChange": "datetimeChange"; "onClose": "onClose"; }, never, ["*"], true, never, false>;
|
|
171
180
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./datetime-picker.component";
|
|
3
|
-
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@fundamental-ngx/core/datetime-picker";
|
|
6
|
-
import * as i5 from "@fundamental-ngx/cdk/utils";
|
|
7
|
-
import * as i6 from "@fundamental-ngx/core/content-density";
|
|
8
3
|
export declare class PlatformDatetimePickerModule {
|
|
9
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformDatetimePickerModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformDatetimePickerModule, [typeof i1.PlatformDatetimePickerComponent], [typeof
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PlatformDatetimePickerModule, never, [typeof i1.PlatformDatetimePickerComponent], [typeof i1.PlatformDatetimePickerComponent]>;
|
|
11
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<PlatformDatetimePickerModule>;
|
|
12
7
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fundamental-ngx/platform",
|
|
3
|
-
"version": "0.46.0-rc.
|
|
3
|
+
"version": "0.46.0-rc.2",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"description": "Fundamental Library for Angular - platform",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"node": ">= 10"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@fundamental-ngx/core": "0.46.0-rc.
|
|
16
|
+
"@fundamental-ngx/core": "0.46.0-rc.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@fundamental-ngx/cdk": "0.46.0-rc.
|
|
20
|
-
"@fundamental-ngx/i18n": "0.46.0-rc.
|
|
19
|
+
"@fundamental-ngx/cdk": "0.46.0-rc.2",
|
|
20
|
+
"@fundamental-ngx/i18n": "0.46.0-rc.2",
|
|
21
21
|
"fast-deep-equal": "3.1.3",
|
|
22
22
|
"focus-trap": "^7.1.0",
|
|
23
23
|
"lodash-es": "^4.17.0",
|
|
@@ -32,7 +32,7 @@ function callCoreSchematic(options) {
|
|
|
32
32
|
(0, dependencies_1.addPackageJsonDependency)(tree, {
|
|
33
33
|
type: dependencies_1.NodeDependencyType.Default,
|
|
34
34
|
// Will be replaced with the real version during sync-version script run
|
|
35
|
-
version: `0.46.0-rc.
|
|
35
|
+
version: `0.46.0-rc.2`,
|
|
36
36
|
name: '@fundamental-ngx/core'
|
|
37
37
|
});
|
|
38
38
|
const installTaskId = context.addTask(new tasks_1.NodePackageInstallTask({
|
|
Binary file
|