@fundamental-ngx/core 0.33.4-rc.1 → 0.33.4-rc.10
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 +1 -3
- package/action-bar/package.json +1 -1
- package/action-sheet/package.json +1 -1
- package/alert/package.json +1 -1
- package/avatar/package.json +1 -1
- package/avatar-group/package.json +1 -1
- package/bar/package.json +1 -1
- package/breadcrumb/package.json +1 -1
- package/busy-indicator/package.json +1 -1
- package/button/package.json +1 -1
- package/calendar/package.json +1 -1
- package/card/package.json +1 -1
- package/carousel/package.json +1 -1
- package/checkbox/checkbox/checkbox.component.d.ts +30 -35
- package/checkbox/esm2020/checkbox/checkbox.component.mjs +61 -80
- package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
- package/checkbox/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
- package/checkbox/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/checkbox/package.json +1 -1
- package/combobox/package.json +1 -1
- package/date-picker/package.json +1 -1
- package/datetime/package.json +1 -1
- package/datetime-picker/package.json +1 -1
- package/dialog/package.json +1 -1
- package/dynamic-page/package.json +1 -1
- package/dynamic-side-content/package.json +1 -1
- package/esm2020/checkbox/checkbox/checkbox.component.mjs +61 -80
- package/esm2020/list/list-item/list-item.component.mjs +6 -2
- package/esm2020/message-box/message-box-body/message-box-body.component.mjs +12 -10
- package/esm2020/message-box/message-box-footer/message-box-footer.component.mjs +12 -9
- package/esm2020/message-box/message-box-header/message-box-header.component.mjs +30 -16
- package/esm2020/message-box/message-box-semantic-icon/message-box-semantic-icon.component.mjs +12 -14
- package/esm2020/message-box/message-box.component.mjs +5 -15
- package/esm2020/message-box/utils/message-box-config.class.mjs +3 -2
- package/esm2020/multi-input/multi-input.component.mjs +38 -11
- package/esm2020/utils/helpers/range-selector.mjs +113 -0
- package/esm2020/utils/public_api.mjs +2 -1
- package/facets/package.json +1 -1
- package/feed-input/package.json +1 -1
- package/feed-list-item/package.json +1 -1
- package/fesm2015/fundamental-ngx-core-checkbox.mjs +59 -77
- package/fesm2015/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-list.mjs +5 -1
- package/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-message-box.mjs +67 -56
- package/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
- package/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2015/fundamental-ngx-core-utils.mjs +114 -1
- package/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-checkbox.mjs +59 -77
- package/fesm2020/fundamental-ngx-core-checkbox.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-list.mjs +5 -1
- package/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-message-box.mjs +62 -55
- package/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
- package/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
- package/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
- package/file-uploader/package.json +1 -1
- package/fixed-card-layout/package.json +1 -1
- package/flexible-column-layout/package.json +1 -1
- package/form/package.json +1 -1
- package/formatted-text/package.json +1 -1
- package/grid-list/package.json +1 -1
- package/icon/package.json +1 -1
- package/illustrated-message/package.json +1 -1
- package/infinite-scroll/package.json +1 -1
- package/info-label/package.json +1 -1
- package/inline-help/package.json +1 -1
- package/input-group/package.json +1 -1
- package/layout-grid/package.json +1 -1
- package/layout-panel/package.json +1 -1
- package/link/package.json +1 -1
- package/list/esm2020/list-item/list-item.component.mjs +6 -2
- package/list/fesm2015/fundamental-ngx-core-list.mjs +5 -1
- package/list/fesm2015/fundamental-ngx-core-list.mjs.map +1 -1
- package/list/fesm2020/fundamental-ngx-core-list.mjs +5 -1
- package/list/fesm2020/fundamental-ngx-core-list.mjs.map +1 -1
- package/list/package.json +1 -1
- package/menu/package.json +1 -1
- package/message-box/esm2020/message-box-body/message-box-body.component.mjs +12 -10
- package/message-box/esm2020/message-box-footer/message-box-footer.component.mjs +12 -9
- package/message-box/esm2020/message-box-header/message-box-header.component.mjs +30 -16
- package/message-box/esm2020/message-box-semantic-icon/message-box-semantic-icon.component.mjs +12 -14
- package/message-box/esm2020/message-box.component.mjs +5 -15
- package/message-box/esm2020/utils/message-box-config.class.mjs +3 -2
- package/message-box/fesm2015/fundamental-ngx-core-message-box.mjs +67 -56
- package/message-box/fesm2015/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/message-box/fesm2020/fundamental-ngx-core-message-box.mjs +62 -55
- package/message-box/fesm2020/fundamental-ngx-core-message-box.mjs.map +1 -1
- package/message-box/message-box-body/message-box-body.component.d.ts +6 -4
- package/message-box/message-box-footer/message-box-footer.component.d.ts +6 -4
- package/message-box/message-box-header/message-box-header.component.d.ts +16 -8
- package/message-box/message-box-semantic-icon/message-box-semantic-icon.component.d.ts +6 -4
- package/message-box/message-box.component.d.ts +4 -9
- package/message-box/package.json +1 -1
- package/message-box/utils/message-box-config.class.d.ts +2 -4
- package/message-strip/package.json +1 -1
- package/message-toast/package.json +1 -1
- package/micro-process-flow/package.json +1 -1
- package/mobile-mode/package.json +1 -1
- package/multi-input/esm2020/multi-input.component.mjs +38 -11
- package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs +40 -11
- package/multi-input/fesm2015/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs +38 -11
- package/multi-input/fesm2020/fundamental-ngx-core-multi-input.mjs.map +1 -1
- package/multi-input/multi-input.component.d.ts +8 -1
- package/multi-input/package.json +1 -1
- package/nested-list/package.json +1 -1
- package/notification/package.json +1 -1
- package/object-identifier/package.json +1 -1
- package/object-marker/package.json +1 -1
- package/object-number/package.json +1 -1
- package/object-status/package.json +1 -1
- package/package.json +1 -1
- package/pagination/package.json +1 -1
- package/panel/package.json +1 -1
- package/popover/package.json +1 -1
- package/product-switch/package.json +1 -1
- package/progress-indicator/package.json +1 -1
- package/quick-view/package.json +1 -1
- package/radio/package.json +1 -1
- package/rating-indicator/package.json +1 -1
- package/resizable-card-layout/package.json +1 -1
- package/scroll-spy/package.json +1 -1
- package/scrollbar/package.json +1 -1
- package/segmented-button/package.json +1 -1
- package/select/package.json +1 -1
- package/shared/package.json +1 -1
- package/shellbar/package.json +1 -1
- package/side-navigation/package.json +1 -1
- package/slider/package.json +1 -1
- package/split-button/package.json +1 -1
- package/splitter/package.json +1 -1
- package/status-indicator/package.json +1 -1
- package/step-input/package.json +1 -1
- package/switch/package.json +1 -1
- package/table/package.json +1 -1
- package/tabs/package.json +1 -1
- package/text/package.json +1 -1
- package/tile/package.json +1 -1
- package/time/package.json +1 -1
- package/time-picker/package.json +1 -1
- package/timeline/package.json +1 -1
- package/title/package.json +1 -1
- package/token/package.json +1 -1
- package/toolbar/package.json +1 -1
- package/tree/package.json +1 -1
- package/upload-collection/package.json +1 -1
- package/utils/esm2020/helpers/range-selector.mjs +113 -0
- package/utils/esm2020/public_api.mjs +2 -1
- package/utils/fesm2015/fundamental-ngx-core-utils.mjs +114 -1
- package/utils/fesm2015/fundamental-ngx-core-utils.mjs.map +1 -1
- package/utils/fesm2020/fundamental-ngx-core-utils.mjs +114 -1
- package/utils/fesm2020/fundamental-ngx-core-utils.mjs.map +1 -1
- package/utils/helpers/range-selector.d.ts +84 -0
- package/utils/package.json +1 -1
- package/utils/public_api.d.ts +1 -0
- package/vertical-navigation/package.json +1 -1
- package/wizard/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# @Fundamental-NGX/Core
|
|
2
2
|
|
|
3
3
|
[](//www.npmjs.com/package/@fundamental-ngx/core)
|
|
4
|
-
|
|
5
|
-
[](https://bundlephobia.com/result?p=%40fundamental-ngx%2Fcore)
|
|
6
|
-
[](https://travis-ci.org/SAP/fundamental-ngx)
|
|
4
|
+

|
|
7
5
|
[](https://coveralls.io/github/SAP/fundamental-ngx?branch=main)
|
|
8
6
|
[](https://ui-fundamentals.slack.com)
|
|
9
7
|
[](https://api.reuse.software/info/github.com/SAP/fundamental-ngx)
|
package/action-bar/package.json
CHANGED
package/alert/package.json
CHANGED
package/avatar/package.json
CHANGED
package/bar/package.json
CHANGED
package/breadcrumb/package.json
CHANGED
package/button/package.json
CHANGED
package/calendar/package.json
CHANGED
package/card/package.json
CHANGED
package/carousel/package.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { FdCheckboxValues } from './fd-checkbox-values.interface';
|
|
4
|
-
import { Platform } from '@angular/cdk/platform';
|
|
5
4
|
import { ListItemInterface, ContentDensityService } from '@fundamental-ngx/core/utils';
|
|
6
5
|
import { FormStates } from '@fundamental-ngx/core/shared';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare type
|
|
7
|
+
export declare type FdCheckboxTypes = 'checked' | 'unchecked' | 'indeterminate' | 'force-checked';
|
|
9
8
|
export declare class CheckboxComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
10
|
-
elementRef: ElementRef
|
|
9
|
+
elementRef: ElementRef<Element>;
|
|
11
10
|
tabIndexValue: number;
|
|
12
|
-
private _platform;
|
|
13
11
|
private _changeDetectorRef;
|
|
12
|
+
private renderer;
|
|
14
13
|
private _contentDensityService;
|
|
15
14
|
private _listItemComponent;
|
|
16
15
|
/** @hidden */
|
|
17
|
-
|
|
16
|
+
inputElement: ElementRef<HTMLInputElement>;
|
|
18
17
|
/** @hidden */
|
|
19
18
|
labelElement: ElementRef;
|
|
20
19
|
/** Sets the `aria-label` attribute to the element. */
|
|
21
20
|
ariaLabel: string;
|
|
21
|
+
/** Current selection state of the checkbox component */
|
|
22
|
+
set value(value: any);
|
|
23
|
+
get value(): any;
|
|
22
24
|
/** Sets the `aria-labelledby` attribute to the element. */
|
|
23
25
|
ariaLabelledBy: any;
|
|
24
26
|
/** Sets the `aria-describedby` attribute to the element. */
|
|
@@ -60,60 +62,53 @@ export declare class CheckboxComponent implements ControlValueAccessor, OnInit,
|
|
|
60
62
|
/** Stores current checkbox value. */
|
|
61
63
|
checkboxValue: any;
|
|
62
64
|
/** Stores current checkbox state. */
|
|
63
|
-
checkboxState:
|
|
64
|
-
/** @hidden */
|
|
65
|
-
private _previousState;
|
|
65
|
+
checkboxState: FdCheckboxTypes;
|
|
66
66
|
/** @hidden Reference to callback provided by FormControl.*/
|
|
67
67
|
onTouched: () => void;
|
|
68
68
|
/** @hidden Reference to callback provided by FormControl.*/
|
|
69
69
|
onValueChange: (value: any) => void;
|
|
70
|
+
/** @hidden Used to define if control is in 'indeterminate' state.*/
|
|
71
|
+
get isIndeterminate(): boolean;
|
|
72
|
+
/** @hidden Used to define if control is in 'checked' / 'unchecked' state. */
|
|
73
|
+
get isChecked(): boolean;
|
|
70
74
|
/** @hidden */
|
|
71
|
-
constructor(elementRef: ElementRef
|
|
75
|
+
constructor(elementRef: ElementRef<Element>, tabIndexValue: number, _changeDetectorRef: ChangeDetectorRef, renderer: Renderer2, _contentDensityService: ContentDensityService, _listItemComponent: ListItemInterface);
|
|
72
76
|
/** @hidden */
|
|
73
77
|
ngOnInit(): void;
|
|
74
78
|
/** @hidden */
|
|
75
79
|
ngOnDestroy(): void;
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
/** @hidden Used to define if control is in 'checked' / 'unchecked' state. */
|
|
79
|
-
get isChecked(): boolean;
|
|
80
|
-
/** @hidden ControlValueAccessor interface
|
|
80
|
+
/**
|
|
81
|
+
* @hidden ControlValueAccessor interface
|
|
81
82
|
* - sets new control value
|
|
82
83
|
* - updates control state
|
|
83
|
-
|
|
84
|
+
*/
|
|
84
85
|
writeValue(value: any): void;
|
|
85
86
|
/** @hidden ControlValueAccessor interface method - sets onValueChange callback.*/
|
|
86
87
|
registerOnChange(fn: any): void;
|
|
87
|
-
/** @hidden prevent event from propagating */
|
|
88
|
-
muteKey(event: KeyboardEvent | MouseEvent): void;
|
|
89
88
|
/** @hidden ControlValueAccessor interface method - sets onTouched callback.*/
|
|
90
89
|
registerOnTouched(fn: any): void;
|
|
91
90
|
/** @hidden Called by FormControl - used to disable / enable control.*/
|
|
92
91
|
setDisabledState(disabled: boolean): void;
|
|
93
|
-
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
checkByKey(event: KeyboardEvent): void;
|
|
97
|
-
/** @hidden Based on current control state:
|
|
92
|
+
/**
|
|
93
|
+
* @hidden
|
|
94
|
+
* Based on current control state:
|
|
98
95
|
* - sets next control value
|
|
99
96
|
* - emits new control value
|
|
100
97
|
* - updates control state based on new control value
|
|
101
98
|
* */
|
|
102
|
-
nextValue(previousValue?:
|
|
103
|
-
/**
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
|
|
99
|
+
nextValue(previousValue?: FdCheckboxTypes): void;
|
|
100
|
+
/** @hidden handles blur event */
|
|
101
|
+
_onBlur(): void;
|
|
102
|
+
/** @hidden handles focus event */
|
|
103
|
+
_onFocus(): void;
|
|
104
|
+
/** @hidden handles click on the label associated with native checkbox input */
|
|
105
|
+
_onLabelClick(event: Event): void;
|
|
106
|
+
/** @hidden handles click on the native checkbox input */
|
|
107
|
+
_onInputClick(event: PointerEvent): void;
|
|
109
108
|
/** @hidden Based on current control value sets new control state. */
|
|
110
109
|
private _setState;
|
|
111
|
-
/** @hidden */
|
|
112
|
-
private _nextValueEvent;
|
|
113
|
-
/** @hidden Determines event source based on key code */
|
|
114
|
-
private _isSpaceBarEvent;
|
|
115
110
|
/** Method to trigger change detection in component */
|
|
116
111
|
private _detectChanges;
|
|
117
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [null, { attribute: "tabIndexValue"; }, null, null, { optional: true; }, { optional: true; }]>;
|
|
118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "fd-checkbox", never, { "ariaLabel": "ariaLabel"; "ariaLabelledBy": "ariaLabelledBy"; "ariaDescribedBy": "ariaDescribedBy"; "title": "title"; "inputId": "inputId"; "state": "state"; "name": "name"; "label": "label"; "disabled": "disabled"; "compact": "compact"; "tristate": "tristate"; "tristateSelectable": "tristateSelectable"; "labelClass": "labelClass"; "required": "required"; "_values": "values"; }, { "focusChange": "focusChange"; }, never, ["*"]>;
|
|
113
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "fd-checkbox", never, { "ariaLabel": "ariaLabel"; "value": "value"; "ariaLabelledBy": "ariaLabelledBy"; "ariaDescribedBy": "ariaDescribedBy"; "title": "title"; "inputId": "inputId"; "state": "state"; "name": "name"; "label": "label"; "disabled": "disabled"; "compact": "compact"; "tristate": "tristate"; "tristateSelectable": "tristateSelectable"; "labelClass": "labelClass"; "required": "required"; "_values": "values"; }, { "focusChange": "focusChange"; }, never, ["*"]>;
|
|
119
114
|
}
|