@carbon/web-components 2.60.0-rc.0 → 2.61.0-rc.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/custom-elements.json +1455 -362
- package/es/components/date-picker/date-picker-input.d.ts +13 -1
- package/es/components/date-picker/date-picker-input.d.ts.map +1 -1
- package/es/components/date-picker/date-picker-input.js +36 -16
- package/es/components/date-picker/date-picker-input.js.map +1 -1
- package/es/components/date-picker/date-picker.d.ts +6 -0
- package/es/components/date-picker/date-picker.d.ts.map +1 -1
- package/es/components/date-picker/date-picker.js +10 -2
- package/es/components/date-picker/date-picker.js.map +1 -1
- package/es/components/date-picker/date-picker.scss.js +1 -1
- package/es/components/date-picker/date-picker.scss.js.map +1 -1
- package/es/components/date-picker/defs.d.ts +18 -1
- package/es/components/date-picker/defs.d.ts.map +1 -1
- package/es/components/date-picker/defs.js +19 -1
- package/es/components/date-picker/defs.js.map +1 -1
- package/es/components/date-picker/next/adapters/web-component-adapter.d.ts +143 -0
- package/es/components/date-picker/next/adapters/web-component-adapter.d.ts.map +1 -0
- package/es/components/date-picker/next/adapters/web-component-adapter.js +215 -0
- package/es/components/date-picker/next/adapters/web-component-adapter.js.map +1 -0
- package/es/components/date-picker/next/components/calendar-renderer.d.ts +136 -0
- package/es/components/date-picker/next/components/calendar-renderer.d.ts.map +1 -0
- package/es/components/date-picker/next/components/calendar-renderer.js +278 -0
- package/es/components/date-picker/next/components/calendar-renderer.js.map +1 -0
- package/es/components/date-picker/next/components/date-picker-input-skeleton.d.ts +35 -0
- package/es/components/date-picker/next/components/date-picker-input-skeleton.d.ts.map +1 -0
- package/es/components/date-picker/next/components/date-picker-input-skeleton.js +73 -0
- package/es/components/date-picker/next/components/date-picker-input-skeleton.js.map +1 -0
- package/es/components/date-picker/next/components/date-picker-input.d.ts +196 -0
- package/es/components/date-picker/next/components/date-picker-input.d.ts.map +1 -0
- package/es/components/date-picker/next/components/date-picker-input.js +334 -0
- package/es/components/date-picker/next/components/date-picker-input.js.map +1 -0
- package/es/components/date-picker/next/components/date-picker.d.ts +329 -0
- package/es/components/date-picker/next/components/date-picker.d.ts.map +1 -0
- package/es/components/date-picker/next/components/date-picker.js +621 -0
- package/es/components/date-picker/next/components/date-picker.js.map +1 -0
- package/es/components/date-picker/next/components/date-picker.scss.js +14 -0
- package/es/components/date-picker/next/components/date-picker.scss.js.map +1 -0
- package/es/components/date-picker/next/index.d.ts +11 -0
- package/es/components/date-picker/next/index.d.ts.map +1 -0
- package/es/components/date-picker/next/index.js +11 -0
- package/es/components/dropdown/dropdown.d.ts +8 -0
- package/es/components/dropdown/dropdown.d.ts.map +1 -1
- package/es/components/dropdown/dropdown.js +4 -2
- package/es/components/dropdown/dropdown.js.map +1 -1
- package/es/components/feature-flags/index.d.ts +39 -4
- package/es/components/feature-flags/index.d.ts.map +1 -1
- package/es/components/feature-flags/index.js +43 -6
- package/es/components/feature-flags/index.js.map +1 -1
- package/es/components/fluid-date-picker/fluid-date-picker-input.d.ts +39 -0
- package/es/components/fluid-date-picker/fluid-date-picker-input.d.ts.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker-input.js +59 -0
- package/es/components/fluid-date-picker/fluid-date-picker-input.js.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts +20 -0
- package/es/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker-skeleton.js +74 -0
- package/es/components/fluid-date-picker/fluid-date-picker-skeleton.js.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker.d.ts +24 -0
- package/es/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker.js +51 -0
- package/es/components/fluid-date-picker/fluid-date-picker.js.map +1 -0
- package/es/components/fluid-date-picker/fluid-date-picker.scss.js +14 -0
- package/es/components/fluid-date-picker/fluid-date-picker.scss.js.map +1 -0
- package/es/components/fluid-date-picker/index.d.ts +10 -0
- package/es/components/fluid-date-picker/index.d.ts.map +1 -0
- package/es/components/fluid-date-picker/index.js +10 -0
- package/es/components/pagination/pagination.scss.js +1 -1
- package/es/components/password-input/password-input.d.ts.map +1 -1
- package/es/components/password-input/password-input.js +3 -2
- package/es/components/password-input/password-input.js.map +1 -1
- package/es/components/radio-button/radio-button.js +1 -1
- package/es/components/radio-button/radio-button.js.map +1 -1
- package/es/components/select/select.d.ts +8 -0
- package/es/components/select/select.d.ts.map +1 -1
- package/es/components/select/select.js +4 -2
- package/es/components/select/select.js.map +1 -1
- package/es/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es/components/text-input/text-input.d.ts +17 -0
- package/es/components/text-input/text-input.d.ts.map +1 -1
- package/es/components/text-input/text-input.js +28 -6
- package/es/components/text-input/text-input.js.map +1 -1
- package/es/components/textarea/textarea.d.ts.map +1 -1
- package/es/components/textarea/textarea.js +2 -1
- package/es/components/textarea/textarea.js.map +1 -1
- package/es/components/ui-shell/header.scss.js +1 -1
- package/es/components/ui-shell/header.scss.js.map +1 -1
- package/es/index.js +1 -1
- package/es/packages/feature-flags/es/index.js +42 -2
- package/es/packages/feature-flags/es/index.js.map +1 -1
- package/es-custom/components/date-picker/date-picker-input.d.ts +13 -1
- package/es-custom/components/date-picker/date-picker-input.d.ts.map +1 -1
- package/es-custom/components/date-picker/date-picker-input.js +36 -16
- package/es-custom/components/date-picker/date-picker-input.js.map +1 -1
- package/es-custom/components/date-picker/date-picker.d.ts +6 -0
- package/es-custom/components/date-picker/date-picker.d.ts.map +1 -1
- package/es-custom/components/date-picker/date-picker.js +10 -2
- package/es-custom/components/date-picker/date-picker.js.map +1 -1
- package/es-custom/components/date-picker/date-picker.scss.js +1 -1
- package/es-custom/components/date-picker/date-picker.scss.js.map +1 -1
- package/es-custom/components/date-picker/defs.d.ts +18 -1
- package/es-custom/components/date-picker/defs.d.ts.map +1 -1
- package/es-custom/components/date-picker/defs.js +19 -1
- package/es-custom/components/date-picker/defs.js.map +1 -1
- package/es-custom/components/date-picker/next/adapters/web-component-adapter.d.ts +143 -0
- package/es-custom/components/date-picker/next/adapters/web-component-adapter.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/adapters/web-component-adapter.js +215 -0
- package/es-custom/components/date-picker/next/adapters/web-component-adapter.js.map +1 -0
- package/es-custom/components/date-picker/next/components/calendar-renderer.d.ts +136 -0
- package/es-custom/components/date-picker/next/components/calendar-renderer.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/components/calendar-renderer.js +278 -0
- package/es-custom/components/date-picker/next/components/calendar-renderer.js.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker-input-skeleton.d.ts +35 -0
- package/es-custom/components/date-picker/next/components/date-picker-input-skeleton.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker-input-skeleton.js +73 -0
- package/es-custom/components/date-picker/next/components/date-picker-input-skeleton.js.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker-input.d.ts +196 -0
- package/es-custom/components/date-picker/next/components/date-picker-input.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker-input.js +334 -0
- package/es-custom/components/date-picker/next/components/date-picker-input.js.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker.d.ts +329 -0
- package/es-custom/components/date-picker/next/components/date-picker.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker.js +621 -0
- package/es-custom/components/date-picker/next/components/date-picker.js.map +1 -0
- package/es-custom/components/date-picker/next/components/date-picker.scss.js +14 -0
- package/es-custom/components/date-picker/next/components/date-picker.scss.js.map +1 -0
- package/es-custom/components/date-picker/next/index.d.ts +11 -0
- package/es-custom/components/date-picker/next/index.d.ts.map +1 -0
- package/es-custom/components/date-picker/next/index.js +11 -0
- package/es-custom/components/dropdown/dropdown.d.ts +8 -0
- package/es-custom/components/dropdown/dropdown.d.ts.map +1 -1
- package/es-custom/components/dropdown/dropdown.js +4 -2
- package/es-custom/components/dropdown/dropdown.js.map +1 -1
- package/es-custom/components/feature-flags/index.d.ts +39 -4
- package/es-custom/components/feature-flags/index.d.ts.map +1 -1
- package/es-custom/components/feature-flags/index.js +43 -6
- package/es-custom/components/feature-flags/index.js.map +1 -1
- package/es-custom/components/fluid-date-picker/fluid-date-picker-input.d.ts +39 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-input.d.ts.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-input.js +59 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-input.js.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts +20 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-skeleton.js +74 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker-skeleton.js.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.d.ts +24 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.js +51 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.js.map +1 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.scss.js +14 -0
- package/es-custom/components/fluid-date-picker/fluid-date-picker.scss.js.map +1 -0
- package/es-custom/components/fluid-date-picker/index.d.ts +10 -0
- package/es-custom/components/fluid-date-picker/index.d.ts.map +1 -0
- package/es-custom/components/fluid-date-picker/index.js +10 -0
- package/es-custom/components/pagination/pagination.scss.js +1 -1
- package/es-custom/components/password-input/password-input.d.ts.map +1 -1
- package/es-custom/components/password-input/password-input.js +3 -2
- package/es-custom/components/password-input/password-input.js.map +1 -1
- package/es-custom/components/radio-button/radio-button.js +1 -1
- package/es-custom/components/radio-button/radio-button.js.map +1 -1
- package/es-custom/components/select/select.d.ts +8 -0
- package/es-custom/components/select/select.d.ts.map +1 -1
- package/es-custom/components/select/select.js +4 -2
- package/es-custom/components/select/select.js.map +1 -1
- package/es-custom/components/skip-to-content/skip-to-content.scss.js +1 -1
- package/es-custom/components/text-input/text-input.d.ts +17 -0
- package/es-custom/components/text-input/text-input.d.ts.map +1 -1
- package/es-custom/components/text-input/text-input.js +28 -6
- package/es-custom/components/text-input/text-input.js.map +1 -1
- package/es-custom/components/textarea/textarea.d.ts.map +1 -1
- package/es-custom/components/textarea/textarea.js +2 -1
- package/es-custom/components/textarea/textarea.js.map +1 -1
- package/es-custom/components/ui-shell/header.scss.js +1 -1
- package/es-custom/components/ui-shell/header.scss.js.map +1 -1
- package/es-custom/index.js +1 -1
- package/es-custom/packages/feature-flags/es/index.js +42 -2
- package/es-custom/packages/feature-flags/es/index.js.map +1 -1
- package/lib/components/date-picker/date-picker-input.d.ts +13 -1
- package/lib/components/date-picker/date-picker-input.d.ts.map +1 -1
- package/lib/components/date-picker/date-picker.d.ts +6 -0
- package/lib/components/date-picker/date-picker.d.ts.map +1 -1
- package/lib/components/date-picker/defs.d.ts +18 -1
- package/lib/components/date-picker/defs.d.ts.map +1 -1
- package/lib/components/date-picker/defs.js +19 -0
- package/lib/components/date-picker/defs.js.map +1 -1
- package/lib/components/date-picker/next/adapters/web-component-adapter.d.ts +143 -0
- package/lib/components/date-picker/next/adapters/web-component-adapter.d.ts.map +1 -0
- package/lib/components/date-picker/next/components/calendar-renderer.d.ts +136 -0
- package/lib/components/date-picker/next/components/calendar-renderer.d.ts.map +1 -0
- package/lib/components/date-picker/next/components/date-picker-input-skeleton.d.ts +35 -0
- package/lib/components/date-picker/next/components/date-picker-input-skeleton.d.ts.map +1 -0
- package/lib/components/date-picker/next/components/date-picker-input.d.ts +196 -0
- package/lib/components/date-picker/next/components/date-picker-input.d.ts.map +1 -0
- package/lib/components/date-picker/next/components/date-picker.d.ts +329 -0
- package/lib/components/date-picker/next/components/date-picker.d.ts.map +1 -0
- package/lib/components/date-picker/next/index.d.ts +11 -0
- package/lib/components/date-picker/next/index.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.d.ts +8 -0
- package/lib/components/dropdown/dropdown.d.ts.map +1 -1
- package/lib/components/feature-flags/index.d.ts +39 -4
- package/lib/components/feature-flags/index.d.ts.map +1 -1
- package/lib/components/fluid-date-picker/fluid-date-picker-input.d.ts +39 -0
- package/lib/components/fluid-date-picker/fluid-date-picker-input.d.ts.map +1 -0
- package/lib/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts +20 -0
- package/lib/components/fluid-date-picker/fluid-date-picker-skeleton.d.ts.map +1 -0
- package/lib/components/fluid-date-picker/fluid-date-picker.d.ts +24 -0
- package/lib/components/fluid-date-picker/fluid-date-picker.d.ts.map +1 -0
- package/lib/components/fluid-date-picker/index.d.ts +10 -0
- package/lib/components/fluid-date-picker/index.d.ts.map +1 -0
- package/lib/components/password-input/password-input.d.ts.map +1 -1
- package/lib/components/select/select.d.ts +8 -0
- package/lib/components/select/select.d.ts.map +1 -1
- package/lib/components/text-input/text-input.d.ts +17 -0
- package/lib/components/text-input/text-input.d.ts.map +1 -1
- package/lib/components/textarea/textarea.d.ts.map +1 -1
- package/package.json +10 -10
- package/scss/components/date-picker/date-picker.scss +6 -0
- package/scss/components/date-picker/next/components/date-picker.scss +124 -0
- package/scss/components/fluid-date-picker/fluid-date-picker.scss +282 -0
- package/scss/components/ui-shell/header.scss +14 -8
- package/telemetry.yml +39 -12
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
|
+
import { INPUT_SIZE, DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND } from '../../defs';
|
|
9
|
+
export { DATE_PICKER_INPUT_COLOR_SCHEME, DATE_PICKER_INPUT_KIND };
|
|
10
|
+
declare const CDSDatePickerInput_base: (new (...args: any[]) => {
|
|
11
|
+
focus(): void;
|
|
12
|
+
}) & typeof LitElement;
|
|
13
|
+
/**
|
|
14
|
+
* The input box for date picker.
|
|
15
|
+
*
|
|
16
|
+
* @element cds-preview-date-picker-input
|
|
17
|
+
*/
|
|
18
|
+
declare class CDSDatePickerInput extends CDSDatePickerInput_base {
|
|
19
|
+
/**
|
|
20
|
+
* `true` if there is an AI Label.
|
|
21
|
+
*/
|
|
22
|
+
private _hasAILabel;
|
|
23
|
+
/**
|
|
24
|
+
* Handles `slotchange` event.
|
|
25
|
+
*
|
|
26
|
+
* @param {object} root0 - Event object
|
|
27
|
+
* @param {EventTarget} root0.target - The event target
|
|
28
|
+
*/
|
|
29
|
+
protected _handleAILabelSlotChange({ target }: Event): void;
|
|
30
|
+
/**
|
|
31
|
+
* Handles `click` event on the calendar icon button.
|
|
32
|
+
* Dispatches a custom event and does NOT move focus to the text input,
|
|
33
|
+
* matching the React implementation where the icon is a separate button.
|
|
34
|
+
*
|
|
35
|
+
* @param {MouseEvent} event - The click event.
|
|
36
|
+
*/
|
|
37
|
+
private _handleIconButtonClick;
|
|
38
|
+
/**
|
|
39
|
+
* Handles `click` event on `<input>` in the shadow DOM.
|
|
40
|
+
* Dispatches a custom event so the parent date picker can reopen the calendar
|
|
41
|
+
* when the input already has focus (clicking a focused input does not fire
|
|
42
|
+
* a new `focus` event, so a dedicated click event is required).
|
|
43
|
+
*/
|
|
44
|
+
private _handleInputClick;
|
|
45
|
+
/**
|
|
46
|
+
* Handles `input` event on `<input>` in the shadow DOM.
|
|
47
|
+
*
|
|
48
|
+
* @param {Event} event - The event.
|
|
49
|
+
* @param {HTMLInputElement} event.target - The event target.
|
|
50
|
+
*/
|
|
51
|
+
private _handleInput;
|
|
52
|
+
/**
|
|
53
|
+
* Handles `focus` event on `<input>` in the shadow DOM.
|
|
54
|
+
*/
|
|
55
|
+
private _handleFocus;
|
|
56
|
+
/**
|
|
57
|
+
* Handles `blur` event on `<input>` in the shadow DOM.
|
|
58
|
+
*/
|
|
59
|
+
private _handleBlur;
|
|
60
|
+
/**
|
|
61
|
+
* @returns The template for the calendar icon button.
|
|
62
|
+
* Rendered as a focusable-false button (tabindex="-1") so clicking it does
|
|
63
|
+
* not move focus to the text input — matching the React implementation.
|
|
64
|
+
*/
|
|
65
|
+
private _renderIcon;
|
|
66
|
+
/**
|
|
67
|
+
* `true` if there is helper text content.
|
|
68
|
+
*/
|
|
69
|
+
protected _hasHelperText: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Handles `slotchange` event on the default `<slot>`.
|
|
72
|
+
*
|
|
73
|
+
* @param {object} root0 - Event object
|
|
74
|
+
* @param {EventTarget} root0.target - The event target
|
|
75
|
+
*/
|
|
76
|
+
protected _handleSlotChange({ target }: Event): void;
|
|
77
|
+
/**
|
|
78
|
+
* The `<input>`, used for Flatpickr to grab.
|
|
79
|
+
*/
|
|
80
|
+
input: HTMLInputElement;
|
|
81
|
+
/**
|
|
82
|
+
* The color scheme.
|
|
83
|
+
*/
|
|
84
|
+
colorScheme: DATE_PICKER_INPUT_COLOR_SCHEME;
|
|
85
|
+
/**
|
|
86
|
+
* `true` if the check box should be disabled.
|
|
87
|
+
*/
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* `true` if the label should be hidden.
|
|
91
|
+
*/
|
|
92
|
+
hideLabel: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Controls the invalid state and visibility of the `validityMessage`.
|
|
95
|
+
*/
|
|
96
|
+
invalid: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Message which is displayed if the value is invalid.
|
|
99
|
+
*/
|
|
100
|
+
invalidText: string;
|
|
101
|
+
/**
|
|
102
|
+
* Date picker input kind.
|
|
103
|
+
*/
|
|
104
|
+
kind: DATE_PICKER_INPUT_KIND;
|
|
105
|
+
/**
|
|
106
|
+
* The label text.
|
|
107
|
+
*/
|
|
108
|
+
labelText: string;
|
|
109
|
+
/**
|
|
110
|
+
* The `pattern` attribute for the `<input>` in the shadow DOM.
|
|
111
|
+
*/
|
|
112
|
+
pattern: string;
|
|
113
|
+
/**
|
|
114
|
+
* The placeholder text.
|
|
115
|
+
*/
|
|
116
|
+
placeholder: string;
|
|
117
|
+
/**
|
|
118
|
+
* Specify if the component should be read-only
|
|
119
|
+
*/
|
|
120
|
+
readonly: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* `true` if the value is required.
|
|
123
|
+
*/
|
|
124
|
+
required: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* true to use the short version.
|
|
127
|
+
*/
|
|
128
|
+
short: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Vertical size of this date picker input.
|
|
131
|
+
*/
|
|
132
|
+
size: INPUT_SIZE;
|
|
133
|
+
/**
|
|
134
|
+
* The `type` attribute for the `<input>` in the shadow DOM.
|
|
135
|
+
*/
|
|
136
|
+
type: string;
|
|
137
|
+
/**
|
|
138
|
+
* The value.
|
|
139
|
+
*/
|
|
140
|
+
value: string;
|
|
141
|
+
/**
|
|
142
|
+
* Specify whether the control is currently in warning state
|
|
143
|
+
*/
|
|
144
|
+
warn: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Provide the text that is displayed when the control is in warning state
|
|
147
|
+
*/
|
|
148
|
+
warnText: string;
|
|
149
|
+
/**
|
|
150
|
+
* Renders the component template.
|
|
151
|
+
*
|
|
152
|
+
* @returns {TemplateResult} The template result
|
|
153
|
+
*/
|
|
154
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
155
|
+
/**
|
|
156
|
+
* Lifecycle method called after component updates.
|
|
157
|
+
*/
|
|
158
|
+
updated(): void;
|
|
159
|
+
/**
|
|
160
|
+
* The default value for `pattern` property.
|
|
161
|
+
*/
|
|
162
|
+
static defaultPattern: string;
|
|
163
|
+
/**
|
|
164
|
+
* The default value for `type` property.
|
|
165
|
+
*/
|
|
166
|
+
static defaultType: string;
|
|
167
|
+
/**
|
|
168
|
+
* A selector that will return the parent date picker.
|
|
169
|
+
*/
|
|
170
|
+
static get selectorParent(): string;
|
|
171
|
+
/**
|
|
172
|
+
* A selector that will return the slug item.
|
|
173
|
+
*
|
|
174
|
+
* remove in v12
|
|
175
|
+
*/
|
|
176
|
+
static get slugItem(): string;
|
|
177
|
+
/**
|
|
178
|
+
* A selector that will return the AI Label item.
|
|
179
|
+
*/
|
|
180
|
+
static get aiLabelItem(): string;
|
|
181
|
+
/**
|
|
182
|
+
* The name of the custom event fired when the input is clicked.
|
|
183
|
+
*/
|
|
184
|
+
static get inputClickEventName(): string;
|
|
185
|
+
static shadowRootOptions: {
|
|
186
|
+
delegatesFocus: boolean;
|
|
187
|
+
clonable?: boolean;
|
|
188
|
+
customElementRegistry?: CustomElementRegistry | null;
|
|
189
|
+
mode: ShadowRootMode;
|
|
190
|
+
serializable?: boolean;
|
|
191
|
+
slotAssignment?: SlotAssignmentMode;
|
|
192
|
+
};
|
|
193
|
+
static styles: any;
|
|
194
|
+
}
|
|
195
|
+
export default CDSDatePickerInput;
|
|
196
|
+
//# sourceMappingURL=date-picker-input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker-input.d.ts","sourceRoot":"","sources":["../../../../../src/components/date-picker/next/components/date-picker-input.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAKvC,OAAO,EACL,UAAU,EACV,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAQpB,OAAO,EAAE,8BAA8B,EAAE,sBAAsB,EAAE,CAAC;;;;AAElE;;;;GAIG;AACH,cACM,kBAAmB,SAAQ,uBAAsB;IACrD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAS;IAE5B;;;;;OAKG;IACH,SAAS,CAAC,wBAAwB,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK;IAoBpD;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAU9B;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB,CAUvB;IAEF;;;;;OAKG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BAAmB,WAE7B;IAED,MAAM,CAAC,iBAAiB;;;;;;;MAGtB;IACF,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { LitElement } from 'lit';
|
|
8
|
+
declare const CDSDatePicker_base: {
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
_handles: Set<import("../../../../globals/internal/handle").default>;
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
disconnectedCallback(): void;
|
|
13
|
+
};
|
|
14
|
+
_hostListeners: {
|
|
15
|
+
[listenerName: string]: {
|
|
16
|
+
[type: string]: {
|
|
17
|
+
options?: boolean | AddEventListenerOptions;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} & (new (...args: any[]) => {
|
|
22
|
+
_hFormdata: import("../../../../globals/internal/handle").default | null;
|
|
23
|
+
_handleFormdata(event: Event): void;
|
|
24
|
+
connectedCallback(): void;
|
|
25
|
+
disconnectedCallback(): void;
|
|
26
|
+
}) & typeof LitElement;
|
|
27
|
+
/**
|
|
28
|
+
* Date picker.
|
|
29
|
+
*
|
|
30
|
+
* @element cds-preview-date-picker
|
|
31
|
+
* @fires cds-preview-date-picker-changed - The custom event fired when the date selection changes.
|
|
32
|
+
* @fires cds-preview-date-picker-error - The custom event fired when an error occurs.
|
|
33
|
+
*/
|
|
34
|
+
declare class CDSDatePicker extends CDSDatePicker_base {
|
|
35
|
+
/**
|
|
36
|
+
* The slotted `<cds-date-input kind="from">`.
|
|
37
|
+
*/
|
|
38
|
+
private _dateInteractNode;
|
|
39
|
+
/**
|
|
40
|
+
* The internal placeholder for the `value` property.
|
|
41
|
+
*/
|
|
42
|
+
private _value;
|
|
43
|
+
/**
|
|
44
|
+
* The adapter for Web Component integration.
|
|
45
|
+
*/
|
|
46
|
+
private _adapter;
|
|
47
|
+
/**
|
|
48
|
+
* Click outside handler for closing calendar
|
|
49
|
+
*/
|
|
50
|
+
private _clickOutsideHandler;
|
|
51
|
+
/**
|
|
52
|
+
* Pending input target for post-render focus restoration
|
|
53
|
+
*/
|
|
54
|
+
private _pendingRestoreFocusTo;
|
|
55
|
+
/**
|
|
56
|
+
* Timestamp of when calendar was last closed via Tab key
|
|
57
|
+
*/
|
|
58
|
+
private _lastTabCloseTime;
|
|
59
|
+
/**
|
|
60
|
+
* True while programmatic focus restoration is in progress after date
|
|
61
|
+
* selection. Prevents the INPUT_FOCUS handler from auto-reopening the calendar.
|
|
62
|
+
*/
|
|
63
|
+
private _restoringFocus;
|
|
64
|
+
/**
|
|
65
|
+
* @returns The effective date picker mode, determined by the child `<cds-preview-date-picker-input>`.
|
|
66
|
+
*/
|
|
67
|
+
private get _mode();
|
|
68
|
+
/**
|
|
69
|
+
* Handles `${prefix}-preview-date-picker-changed` event on this element.
|
|
70
|
+
*
|
|
71
|
+
* @param {CustomEvent} root0 - The event object
|
|
72
|
+
* @param {object} root0.detail - The event detail
|
|
73
|
+
*/
|
|
74
|
+
private _handleChange;
|
|
75
|
+
/**
|
|
76
|
+
* Handles calendar icon click event from date-picker-input
|
|
77
|
+
*/
|
|
78
|
+
private _handleIconClick;
|
|
79
|
+
/**
|
|
80
|
+
* Handles input focus event from date-picker-input
|
|
81
|
+
*
|
|
82
|
+
* @param {CustomEvent} event - The focus event
|
|
83
|
+
*/
|
|
84
|
+
private _handleInputFocus;
|
|
85
|
+
/**
|
|
86
|
+
* Handles input click event from date-picker-input.
|
|
87
|
+
* When the input already has focus, clicking it does not fire a new focus
|
|
88
|
+
* event. This handler ensures the calendar reopens on click even when focus
|
|
89
|
+
* is already on the input.
|
|
90
|
+
*
|
|
91
|
+
* @param {CustomEvent} event - The click event
|
|
92
|
+
*/
|
|
93
|
+
private _handleInputClick;
|
|
94
|
+
/**
|
|
95
|
+
* Handles input blur event from date-picker-input
|
|
96
|
+
*
|
|
97
|
+
* @param {CustomEvent} event - The blur event
|
|
98
|
+
*/
|
|
99
|
+
private _handleInputBlur;
|
|
100
|
+
/**
|
|
101
|
+
* Handles form data event
|
|
102
|
+
*
|
|
103
|
+
* @param {FormDataEvent} event - The form data event
|
|
104
|
+
*/
|
|
105
|
+
_handleFormdata(event: FormDataEvent): void;
|
|
106
|
+
/**
|
|
107
|
+
* Handles `slotchange` event in the `<slot>`.
|
|
108
|
+
*
|
|
109
|
+
* @param {Event} root0 - The event object
|
|
110
|
+
* @param {EventTarget} root0.target - The event target
|
|
111
|
+
*/
|
|
112
|
+
private _handleSlotChange;
|
|
113
|
+
/**
|
|
114
|
+
* Handles state machine state changes
|
|
115
|
+
*
|
|
116
|
+
* @param {StateTransition} transition - The state transition
|
|
117
|
+
* @param {DatePickerState} transition.from - Previous state
|
|
118
|
+
* @param {DatePickerState} transition.to - New state
|
|
119
|
+
* @param {DatePickerContext} transition.context - Current context
|
|
120
|
+
*/
|
|
121
|
+
private _handleStateChange;
|
|
122
|
+
/**
|
|
123
|
+
* Handles calendar date selection
|
|
124
|
+
*
|
|
125
|
+
* @param {CustomEvent} event - The date select event
|
|
126
|
+
*/
|
|
127
|
+
private _handleCalendarDateSelect;
|
|
128
|
+
/**
|
|
129
|
+
* Handles calendar month change
|
|
130
|
+
*
|
|
131
|
+
* @param {CustomEvent} event - The month change event
|
|
132
|
+
*/
|
|
133
|
+
private _handleCalendarMonthChange;
|
|
134
|
+
/**
|
|
135
|
+
* Show the calendar popover using Popover API
|
|
136
|
+
*/
|
|
137
|
+
private _showCalendarPopover;
|
|
138
|
+
/**
|
|
139
|
+
* Hide the calendar popover using Popover API
|
|
140
|
+
*/
|
|
141
|
+
private _hideCalendarPopover;
|
|
142
|
+
/**
|
|
143
|
+
* Initializes the date picker with a state machine.
|
|
144
|
+
*/
|
|
145
|
+
private _initializeDatePicker;
|
|
146
|
+
/**
|
|
147
|
+
* Releases the date picker state machine.
|
|
148
|
+
*/
|
|
149
|
+
private _releaseDatePicker;
|
|
150
|
+
/**
|
|
151
|
+
* Allows the user to enter a date directly into the input field
|
|
152
|
+
*/
|
|
153
|
+
allowInput: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Controls whether the calendar dropdown closes upon selection.
|
|
156
|
+
*/
|
|
157
|
+
closeOnSelect: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* The date format.
|
|
160
|
+
*/
|
|
161
|
+
dateFormat: string;
|
|
162
|
+
/**
|
|
163
|
+
* BCP 47 locale tag used to localize the calendar's month and weekday labels.
|
|
164
|
+
*/
|
|
165
|
+
locale: string;
|
|
166
|
+
/**
|
|
167
|
+
* Controls the disabled state of the input
|
|
168
|
+
*/
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* The maximum date that a user can start picking from.
|
|
172
|
+
*/
|
|
173
|
+
maxDate: string;
|
|
174
|
+
/**
|
|
175
|
+
* The minimum date that a user can start picking from.
|
|
176
|
+
*/
|
|
177
|
+
minDate: string;
|
|
178
|
+
/**
|
|
179
|
+
* Name for the input in the `FormData`
|
|
180
|
+
*/
|
|
181
|
+
name: string;
|
|
182
|
+
/**
|
|
183
|
+
* `true` if the date picker should be open.
|
|
184
|
+
*/
|
|
185
|
+
open: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Specify if the component should be read-only
|
|
188
|
+
*/
|
|
189
|
+
readonly: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* The date(s) in ISO8601 format (date portion only), for range mode, '/' is used for separate start/end dates.
|
|
192
|
+
*/
|
|
193
|
+
get value(): string;
|
|
194
|
+
/**
|
|
195
|
+
* Sets the value
|
|
196
|
+
*
|
|
197
|
+
* @param {string} value - The new value
|
|
198
|
+
*/
|
|
199
|
+
set value(value: string);
|
|
200
|
+
/**
|
|
201
|
+
* Handle clicks outside the date picker to close the calendar
|
|
202
|
+
*
|
|
203
|
+
* @param {MouseEvent} event - The click event
|
|
204
|
+
*/
|
|
205
|
+
/**
|
|
206
|
+
* Handle keyboard events for calendar navigation
|
|
207
|
+
*
|
|
208
|
+
* @param {KeyboardEvent} event - The keyboard event
|
|
209
|
+
*/
|
|
210
|
+
private _handleKeyDown;
|
|
211
|
+
/**
|
|
212
|
+
* A ref to the exit sentinel element rendered at the bottom of the shadow root.
|
|
213
|
+
* It sits just after the calendar container in DOM order. Normally it has
|
|
214
|
+
* tabindex="-1" so it is invisible to Tab. When the user presses Tab from
|
|
215
|
+
* inside the calendar, _activateExitSentinel() sets it to tabindex="0" so
|
|
216
|
+
* the browser delivers the Tab keystroke to it naturally — no DOM scan needed.
|
|
217
|
+
* The focus handler then closes the calendar and restores tabindex="-1".
|
|
218
|
+
*
|
|
219
|
+
* Uses a CSS class rather than an id to avoid any document-level id concerns
|
|
220
|
+
* (shadow-DOM ids are already scoped, but a class is more conventional for
|
|
221
|
+
* internal Lit @query targets and matches the cds-- naming pattern used
|
|
222
|
+
* throughout this file).
|
|
223
|
+
*
|
|
224
|
+
* TODO (carbon monorepo migration): replace this hand-rolled sentinel with the
|
|
225
|
+
* upstream Carbon wrapFocus utility, which implements the same start/end sentinel
|
|
226
|
+
* pattern for focus trapping and exit.
|
|
227
|
+
* Upstream location: packages/react/src/internal/wrapFocus.ts (wrapFocus /
|
|
228
|
+
* wrapFocusWithoutSentinels exports). Note that wrapFocus is designed to trap
|
|
229
|
+
* focus inside a container (modal pattern) rather than release it; the exit-only
|
|
230
|
+
* direction we need maps to the endTrapNode path in that utility.
|
|
231
|
+
*/
|
|
232
|
+
private _exitSentinelNode;
|
|
233
|
+
/**
|
|
234
|
+
* Temporarily make the exit sentinel tabbable so the browser's native Tab
|
|
235
|
+
* handling delivers focus to it after the calendar.
|
|
236
|
+
*/
|
|
237
|
+
private _activateExitSentinel;
|
|
238
|
+
/**
|
|
239
|
+
* Handle focus arriving on the exit sentinel.
|
|
240
|
+
* Close the calendar, then immediately remove the sentinel from the tab order
|
|
241
|
+
* so that a subsequent Tab from outside the date picker skips it entirely.
|
|
242
|
+
*/
|
|
243
|
+
private _handleExitSentinelFocus;
|
|
244
|
+
/**
|
|
245
|
+
* Lifecycle callback when element is connected
|
|
246
|
+
*/
|
|
247
|
+
connectedCallback(): void;
|
|
248
|
+
/**
|
|
249
|
+
* Lifecycle callback when element is disconnected
|
|
250
|
+
*/
|
|
251
|
+
disconnectedCallback(): void;
|
|
252
|
+
/**
|
|
253
|
+
* Lifecycle callback when properties change
|
|
254
|
+
*
|
|
255
|
+
* @param {Map<string, unknown>} changedProperties - Map of changed properties
|
|
256
|
+
*/
|
|
257
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
258
|
+
/**
|
|
259
|
+
* Renders the component
|
|
260
|
+
*/
|
|
261
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
262
|
+
/**
|
|
263
|
+
* The CSS class for the calendar dropdown.
|
|
264
|
+
*/
|
|
265
|
+
static get classCalendarContainer(): string;
|
|
266
|
+
/**
|
|
267
|
+
* The CSS class for the month navigator.
|
|
268
|
+
*/
|
|
269
|
+
static get classMonth(): string;
|
|
270
|
+
/**
|
|
271
|
+
* The CSS class for the container of the weekdays.
|
|
272
|
+
*/
|
|
273
|
+
static get classWeekdays(): string;
|
|
274
|
+
/**
|
|
275
|
+
* The CSS class for the container of the days.
|
|
276
|
+
*/
|
|
277
|
+
static get classDays(): string;
|
|
278
|
+
/**
|
|
279
|
+
* The CSS class applied to each weekdays.
|
|
280
|
+
*/
|
|
281
|
+
static get classWeekday(): string;
|
|
282
|
+
/**
|
|
283
|
+
* The CSS class applied to each days.
|
|
284
|
+
*/
|
|
285
|
+
static get classDay(): string;
|
|
286
|
+
/**
|
|
287
|
+
* The CSS class applied to the "today" highlight if there are any dates selected.
|
|
288
|
+
*/
|
|
289
|
+
static classNoBorder: string;
|
|
290
|
+
/**
|
|
291
|
+
* The default date format.
|
|
292
|
+
*/
|
|
293
|
+
static defaultDateFormat: string;
|
|
294
|
+
/**
|
|
295
|
+
* A selector that will return the `<input>` to enter starting date.
|
|
296
|
+
*/
|
|
297
|
+
static get selectorInputFrom(): string;
|
|
298
|
+
/**
|
|
299
|
+
* A selector that will return the `<input>` to enter end date.
|
|
300
|
+
*/
|
|
301
|
+
static get selectorInputTo(): string;
|
|
302
|
+
/**
|
|
303
|
+
* The name of the custom event when an error occurs.
|
|
304
|
+
*/
|
|
305
|
+
static get eventError(): string;
|
|
306
|
+
/**
|
|
307
|
+
* The name of the custom event fired when the date selection changes.
|
|
308
|
+
*/
|
|
309
|
+
static get eventChange(): string;
|
|
310
|
+
/**
|
|
311
|
+
* The name of the custom event fired when the calendar icon is clicked.
|
|
312
|
+
*/
|
|
313
|
+
static get eventIconClick(): string;
|
|
314
|
+
/**
|
|
315
|
+
* The name of the custom event fired when an input receives focus.
|
|
316
|
+
*/
|
|
317
|
+
static get eventInputFocus(): string;
|
|
318
|
+
/**
|
|
319
|
+
* The name of the custom event fired when an input loses focus.
|
|
320
|
+
*/
|
|
321
|
+
static get eventInputBlur(): string;
|
|
322
|
+
/**
|
|
323
|
+
* The name of the custom event fired when an input is clicked.
|
|
324
|
+
*/
|
|
325
|
+
static get eventInputClick(): string;
|
|
326
|
+
static styles: any;
|
|
327
|
+
}
|
|
328
|
+
export default CDSDatePicker;
|
|
329
|
+
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../src/components/date-picker/next/components/date-picker.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;;;;;;;;;;uBAiBvB,CAAC;;;;;;;;;;AA0BjB;;;;;;GAMG;AACH,cACM,aAAc,SAAQ,kBAAwC;IAClE;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAmC;IAE5D;;OAEG;IACH,OAAO,CAAC,MAAM,CAA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AED,MAAM,CAAC,MAAM,MAAU;CACxB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2026
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import './components/date-picker';
|
|
8
|
+
import './components/date-picker-input';
|
|
9
|
+
import './components/date-picker-input-skeleton';
|
|
10
|
+
import './components/calendar-renderer';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/date-picker/next/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;AACxC,OAAO,yCAAyC,CAAC;AACjD,OAAO,gCAAgC,CAAC"}
|
|
@@ -105,6 +105,14 @@ declare class CDSDropdown extends CDSDropdown_base {
|
|
|
105
105
|
* The `<slot>` element for the title text in the shadow DOM.
|
|
106
106
|
*/
|
|
107
107
|
protected _slotTitleTextNode: HTMLSlotElement;
|
|
108
|
+
/**
|
|
109
|
+
* The `<slot>` element for the AI label in the shadow DOM.
|
|
110
|
+
*/
|
|
111
|
+
private _slotAILabelNode;
|
|
112
|
+
/**
|
|
113
|
+
* The `<slot>` element for the slug in the shadow DOM.
|
|
114
|
+
*/
|
|
115
|
+
private _slotSlugNode;
|
|
108
116
|
/**
|
|
109
117
|
* @param itemToSelect A dropdown item. Absense of this argument means clearing selection.
|
|
110
118
|
* @returns `true` if the selection of this dropdown should change if the given item is selected upon user interaction.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,UA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OAEG;IACH,OAAO,CAAC,oBAAoB;IAc5B;;OAEG;IACH,OAAO,CAAC,yBAAyB;IA0BjC;;OAEG;IACH,SAAS,KAAK,gBAAgB;;;;MAO7B;IAED;;OAEG;IAEH,SAAS,KAAK,QAAQ,IAAI,GAAG,CAwB5B;IAED,MAAM;IAgJN;;OAEG;IACH,MAAM,CAAC,YAAY,cAA2B;IAE9C;;OAEG;IACH,MAAM,KAAK,uBAAuB,WAEjC;IAED;;OAEG;IACH,MAAM,KAAK,YAAY,WAEtB;IAED;;OAEG;IACH,MAAM,KAAK,oBAAoB,WAE9B;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;;OAGG;IACH,MAAM,KAAK,iBAAiB,WAE3B;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED;;;;OAIG;IACH,MAAM,KAAK,QAAQ,WAElB;IAED;;OAEG;IACH,MAAM,KAAK,WAAW,WAErB;IAED,MAAM,CAAC,iBAAiB;;;;;;;MAGtB;IAEF,MAAM,CAAC,MAAM,MAAU;IAEvB;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE,MAAM;CAY7B;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -13,10 +13,8 @@
|
|
|
13
13
|
* <component></component>
|
|
14
14
|
* </feature-flags>
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* - enable-treeview-controllable
|
|
19
|
-
* - ... (and others listed in observedAttributes)
|
|
16
|
+
* The supported flags are documented as `@attr` tags on `FeatureFlagsElement`
|
|
17
|
+
* below, which is also what surfaces them in `custom-elements.json`.
|
|
20
18
|
*
|
|
21
19
|
* How to check a Flag in your component:
|
|
22
20
|
* import { isFeatureFlagEnabled } from './feature-flags';
|
|
@@ -24,6 +22,43 @@
|
|
|
24
22
|
* Returns true if the flag is enabled in the nearest <feature-flags> ancestor
|
|
25
23
|
*/
|
|
26
24
|
import { LitElement } from 'lit';
|
|
25
|
+
/**
|
|
26
|
+
* Feature Flags
|
|
27
|
+
*
|
|
28
|
+
* Provides scoped feature flags to child components. Flags are read from the
|
|
29
|
+
* nearest `<feature-flags>` ancestor, and nested elements inherit any flag they
|
|
30
|
+
* do not set themselves.
|
|
31
|
+
*
|
|
32
|
+
* Attributes are declared below rather than inferred, because the flag list is
|
|
33
|
+
* built at runtime from `observedAttributes` and cannot be read statically.
|
|
34
|
+
*
|
|
35
|
+
* @element feature-flags
|
|
36
|
+
*
|
|
37
|
+
* @attr {boolean} enable-v12-release - Enable the features and functionality
|
|
38
|
+
* for the v12 Release. Enabling this turns on every `enable-v12-*` flag at
|
|
39
|
+
* once, as well as `enable-focus-wrap-without-sentinels`.
|
|
40
|
+
* @attr {boolean} enable-v12-tile-default-icons - Enable rendering of default
|
|
41
|
+
* icons in the tile components. Becomes the default behavior in v12.
|
|
42
|
+
* @attr {boolean} enable-v12-tile-radio-icons - Enable rendering of radio icons
|
|
43
|
+
* in the `cds-radio-tile` component. Becomes the default behavior in v12.
|
|
44
|
+
* @attr {boolean} enable-v12-overflowmenu - Enable the use of the v12
|
|
45
|
+
* `cds-overflow-menu` leveraging the menu subcomponents. Becomes the default
|
|
46
|
+
* behavior in v12.
|
|
47
|
+
* @attr {boolean} enable-v12-dynamic-floating-styles - Enable dynamic setting
|
|
48
|
+
* of floating styles for components like `cds-popover`, `cds-tooltip`, etc.
|
|
49
|
+
* Becomes the default behavior in v12.
|
|
50
|
+
* @attr {boolean} enable-v12-toggle-reduced-label-spacing - Enable a reduced
|
|
51
|
+
* spacing between the toggle control and its label. Becomes the default
|
|
52
|
+
* behavior in v12.
|
|
53
|
+
* @attr {boolean} enable-treeview-controllable - Enable the new `cds-treeview`
|
|
54
|
+
* controllable API.
|
|
55
|
+
* @attr {boolean} enable-dialog-element - Enable components to utilize the
|
|
56
|
+
* native `dialog` element.
|
|
57
|
+
* @attr {boolean} enable-focus-wrap-without-sentinels - Enable the new focus
|
|
58
|
+
* wrap behavior that doesn't use sentinel nodes.
|
|
59
|
+
* @attr {boolean} enable-experimental-focus-wrap-without-sentinels - Deprecated,
|
|
60
|
+
* use `enable-focus-wrap-without-sentinels` instead.
|
|
61
|
+
*/
|
|
27
62
|
declare class FeatureFlagsElement extends LitElement {
|
|
28
63
|
private scope;
|
|
29
64
|
private flags;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/feature-flags/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/feature-flags/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH;;;;;;;;;;;;;;;;GAgBG;AAQH,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAOvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,cACM,mBAAoB,SAAQ,UAAU;IAC1C,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,KAAK,CAAoB;IAEjC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAW7B;IAEX,MAAM,KAAK,kBAAkB,aAE5B;;IAOD,iBAAiB;IAKjB,wBAAwB,CACtB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,IAAI,EACtB,MAAM,EAAE,MAAM,GAAG,IAAI;IAmBvB,OAAO,CAAC,yBAAyB;IA+BjC,OAAO,CAAC,4BAA4B;IAepC,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,0BAA0B;IAWlC,OAAO,CAAC,WAAW;IAWnB,MAAM;IAIC,oBAAoB,CAAC,IAAI,EAAE,MAAM;IAIxC,OAAO,CAAC,QAAQ;CAGjB;AAED,eAAe,mBAAmB,CAAC;AAKnC,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,WAAW,GACd,mBAAmB,GAAG,IAAI,CAa5B;AAGD,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,WAAW,GACnB,OAAO,CAST"}
|