@sap-ux/ui-components 1.26.4 → 1.26.5
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/components/UIComboBox/UIComboBox.d.ts +59 -4
- package/dist/components/UIComboBox/UIComboBox.d.ts.map +1 -1
- package/dist/components/UIComboBox/UIComboBox.js +80 -23
- package/dist/components/UIComboBox/UIComboBox.js.map +1 -1
- package/dist/components/UIComboBox/UIComboBox.scss +9 -1
- package/dist/utilities/Debounce.d.ts +9 -0
- package/dist/utilities/Debounce.d.ts.map +1 -0
- package/dist/utilities/Debounce.js +20 -0
- package/dist/utilities/Debounce.js.map +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/index.js +1 -0
- package/dist/utilities/index.js.map +1 -1
- package/package.json +1 -1
- package/storybook/{481.44d47df6.iframe.bundle.js → 481.98b562c0.iframe.bundle.js} +1 -1
- package/storybook/{536.df88f467.iframe.bundle.js → 536.289052c3.iframe.bundle.js} +2 -2
- package/storybook/871.d5e1328b.iframe.bundle.js +1 -0
- package/storybook/{UIActionCallout-story.afc4d06b.iframe.bundle.js → UIActionCallout-story.1fc5bc8a.iframe.bundle.js} +2 -2
- package/storybook/UICombobox-story.9f22d3f6.iframe.bundle.js +1 -0
- package/storybook/{UIToggleGroup-story.b63e0b6f.iframe.bundle.js → UIToggleGroup-story.c3841840.iframe.bundle.js} +2 -2
- package/storybook/iframe.html +4 -4
- package/storybook/index.json +1 -1
- package/storybook/{main.c3773849.iframe.bundle.js → main.094cc80c.iframe.bundle.js} +1 -1
- package/storybook/project.json +1 -1
- package/storybook/{runtime~main.ad2717c9.iframe.bundle.js → runtime~main.d4cd715d.iframe.bundle.js} +2 -2
- package/storybook/871.a6eceb25.iframe.bundle.js +0 -1
- package/storybook/UICombobox-story.15a5db8f.iframe.bundle.js +0 -1
|
@@ -15,6 +15,28 @@ export declare enum UIComboBoxLoaderType {
|
|
|
15
15
|
*/
|
|
16
16
|
Input = "Input"
|
|
17
17
|
}
|
|
18
|
+
export interface UIComboBoxExternalSearchProps {
|
|
19
|
+
/**
|
|
20
|
+
* Label displayed in the dropdown when there are no available options.
|
|
21
|
+
*/
|
|
22
|
+
noDataLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Callback triggered immediately when the user types in the input field.
|
|
25
|
+
* Useful to clear data and show loader indicator.
|
|
26
|
+
*/
|
|
27
|
+
onInputChange?: (query: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Callback triggered after the user stops typing for the specified debounce duration.
|
|
30
|
+
* This is where the external search should be performed.
|
|
31
|
+
*/
|
|
32
|
+
onExternalSearch: (query: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Delay in milliseconds between the last user input and triggering the external search.
|
|
35
|
+
*
|
|
36
|
+
* @default 500
|
|
37
|
+
*/
|
|
38
|
+
debounceTime?: number;
|
|
39
|
+
}
|
|
18
40
|
export interface UIComboBoxProps extends IComboBoxProps, UIMessagesExtendedProps {
|
|
19
41
|
wrapperRef?: React.RefObject<HTMLDivElement>;
|
|
20
42
|
highlight?: boolean;
|
|
@@ -52,6 +74,10 @@ export interface UIComboBoxProps extends IComboBoxProps, UIMessagesExtendedProps
|
|
|
52
74
|
* `false` to hide it, or `undefined` to apply the default search filtering behavior.
|
|
53
75
|
*/
|
|
54
76
|
customSearchFilter?: (searchTerm: string, option: IComboBoxOption) => boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Properties to support external (backend) search behavior in the ComboBox.
|
|
79
|
+
*/
|
|
80
|
+
externalSearchProps?: UIComboBoxExternalSearchProps;
|
|
55
81
|
}
|
|
56
82
|
export interface UIComboBoxState {
|
|
57
83
|
minWidth?: number;
|
|
@@ -76,6 +102,7 @@ export declare class UIComboBox extends React.Component<UIComboBoxProps, UICombo
|
|
|
76
102
|
private ignoreOpenKeys;
|
|
77
103
|
private isListHidden;
|
|
78
104
|
private calloutCollisionTransform;
|
|
105
|
+
private readonly onExternalSearchDebounce;
|
|
79
106
|
/**
|
|
80
107
|
* Initializes component properties.
|
|
81
108
|
*
|
|
@@ -83,15 +110,25 @@ export declare class UIComboBox extends React.Component<UIComboBoxProps, UICombo
|
|
|
83
110
|
*/
|
|
84
111
|
constructor(props: UIComboBoxProps);
|
|
85
112
|
/**
|
|
113
|
+
* Method checks if the options or loading state have changed and a query exists, it updates the hidden options.
|
|
86
114
|
*
|
|
87
|
-
* @param
|
|
88
|
-
* @returns
|
|
115
|
+
* @param nextProps - The incoming props to compare with current props.
|
|
116
|
+
* @returns Always returns true to allow the component to re-render.
|
|
89
117
|
*/
|
|
90
118
|
shouldComponentUpdate(nextProps: UIComboBoxProps): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Checks if the loading state has changed between the previous and new loader values.
|
|
121
|
+
*
|
|
122
|
+
* @param prevLoader The previous loading state.
|
|
123
|
+
* @param newLoader The new loading state.
|
|
124
|
+
* @returns True if the loading state has changed.
|
|
125
|
+
*/
|
|
126
|
+
private isLoaderChanged;
|
|
91
127
|
/**
|
|
92
128
|
* Updates hidden options.
|
|
93
129
|
*
|
|
94
|
-
* @param
|
|
130
|
+
* @param opts Current combobox options
|
|
131
|
+
* @param isLoading Current combobox loading state
|
|
95
132
|
*/
|
|
96
133
|
private updateHiddenOptions;
|
|
97
134
|
/**
|
|
@@ -234,7 +271,18 @@ export declare class UIComboBox extends React.Component<UIComboBoxProps, UICombo
|
|
|
234
271
|
*/
|
|
235
272
|
private handleRefreshButton;
|
|
236
273
|
handleChange: IComboBoxProps['onChange'];
|
|
237
|
-
|
|
274
|
+
/**
|
|
275
|
+
* Custom render function for the combo box dropdown list.
|
|
276
|
+
*
|
|
277
|
+
* This method handles following cases:
|
|
278
|
+
* 1. If a loading state is active (as determined by `isLoaderApplied`), it renders a loading indicator.
|
|
279
|
+
* 2. If no options are available and a `noDataLabel` is provided via `externalSearchProps`, it shows a "no data" message.
|
|
280
|
+
*
|
|
281
|
+
* @param props The rendering props for the selectable, droppable list.
|
|
282
|
+
* @param defaultRender The default rendering function provided by the ComboBox component.
|
|
283
|
+
* @returns A JSX element representing the rendered list.
|
|
284
|
+
*/
|
|
285
|
+
private readonly onRenderList;
|
|
238
286
|
/**
|
|
239
287
|
* Handle multiselect change by avoiding 'blur' event.
|
|
240
288
|
* Problem is that blur event uses suggested value and toggles selection for it.
|
|
@@ -268,6 +316,7 @@ export declare class UIComboBox extends React.Component<UIComboBoxProps, UICombo
|
|
|
268
316
|
* Method returns if loader should be displayed for passed type.
|
|
269
317
|
*
|
|
270
318
|
* @param type Loader's place
|
|
319
|
+
* @param isLoading Current combobox loading state
|
|
271
320
|
* @returns True if loader should be displayed for passed type.
|
|
272
321
|
*/
|
|
273
322
|
private isLoaderApplied;
|
|
@@ -280,6 +329,12 @@ export declare class UIComboBox extends React.Component<UIComboBoxProps, UICombo
|
|
|
280
329
|
* @returns React element to render.
|
|
281
330
|
*/
|
|
282
331
|
private onRenderIcon;
|
|
332
|
+
/**
|
|
333
|
+
* Called when the user types in to the input of the combo box.
|
|
334
|
+
*
|
|
335
|
+
* @param text The current input value typed by the user.
|
|
336
|
+
*/
|
|
337
|
+
private onInputValueChange;
|
|
283
338
|
/**
|
|
284
339
|
* @returns {JSX.Element}
|
|
285
340
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UIComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/UIComboBox/UIComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"UIComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/UIComboBox/UIComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACR,cAAc,EAKjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEH,SAAS,EACT,eAAe,EACf,iBAAiB,EAGjB,2BAA2B,EA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_1.default.Component {
|
|
|
160
160
|
this.props.onHandleChange(option.key);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Custom render function for the combo box dropdown list.
|
|
165
|
+
*
|
|
166
|
+
* This method handles following cases:
|
|
167
|
+
* 1. If a loading state is active (as determined by `isLoaderApplied`), it renders a loading indicator.
|
|
168
|
+
* 2. If no options are available and a `noDataLabel` is provided via `externalSearchProps`, it shows a "no data" message.
|
|
169
|
+
*
|
|
170
|
+
* @param props The rendering props for the selectable, droppable list.
|
|
171
|
+
* @param defaultRender The default rendering function provided by the ComboBox component.
|
|
172
|
+
* @returns A JSX element representing the rendered list.
|
|
173
|
+
*/
|
|
174
|
+
this.onRenderList = (props, defaultRender) => {
|
|
175
|
+
const { onRenderList, externalSearchProps, options } = this.props;
|
|
176
|
+
if (onRenderList) {
|
|
177
|
+
return onRenderList(props, defaultRender);
|
|
178
|
+
}
|
|
179
|
+
const isLoading = this.isLoaderApplied(UIComboBoxLoaderType.List);
|
|
180
|
+
if (isLoading) {
|
|
181
|
+
const styles = {
|
|
182
|
+
label: {
|
|
183
|
+
fontSize: '11px',
|
|
184
|
+
fontWeight: 'normal'
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
return (react_1.default.createElement("div", { className: "option-loading" },
|
|
188
|
+
react_1.default.createElement(UILoader_1.UILoader, { label: "Loading", className: "uiLoaderXSmall", labelPosition: "right", styles: styles })));
|
|
189
|
+
}
|
|
190
|
+
else if (externalSearchProps?.noDataLabel && (!options.length || this.isListHidden)) {
|
|
191
|
+
return react_1.default.createElement("div", { className: "option-no-data" }, externalSearchProps.noDataLabel);
|
|
192
|
+
}
|
|
193
|
+
return defaultRender?.(props);
|
|
172
194
|
};
|
|
173
195
|
this.onInput = this.onInput.bind(this);
|
|
174
196
|
this.reserQuery = this.reserQuery.bind(this);
|
|
@@ -183,27 +205,44 @@ class UIComboBox extends react_1.default.Component {
|
|
|
183
205
|
this.onScrollToItem = this.onScrollToItem.bind(this);
|
|
184
206
|
this.setFocus = this.setFocus.bind(this);
|
|
185
207
|
this.onRenderIcon = this.onRenderIcon.bind(this);
|
|
208
|
+
this.onRenderList = this.onRenderList.bind(this);
|
|
209
|
+
this.onInputValueChange = this.onInputValueChange.bind(this);
|
|
210
|
+
this.onExternalSearchDebounce = (0, utilities_1.debounce)((query) => this.props.externalSearchProps?.onExternalSearch?.(query), props.externalSearchProps?.debounceTime ?? 500);
|
|
186
211
|
(0, react_2.initializeComponentRef)(this);
|
|
187
212
|
this.state = {};
|
|
188
213
|
}
|
|
189
214
|
/**
|
|
215
|
+
* Method checks if the options or loading state have changed and a query exists, it updates the hidden options.
|
|
190
216
|
*
|
|
191
|
-
* @param
|
|
192
|
-
* @returns
|
|
217
|
+
* @param nextProps - The incoming props to compare with current props.
|
|
218
|
+
* @returns Always returns true to allow the component to re-render.
|
|
193
219
|
*/
|
|
194
220
|
shouldComponentUpdate(nextProps) {
|
|
195
|
-
if (nextProps.options !== this.props.options
|
|
221
|
+
if ((nextProps.options !== this.props.options ||
|
|
222
|
+
this.isLoaderChanged(this.props.isLoading, nextProps.isLoading)) &&
|
|
223
|
+
this.query) {
|
|
196
224
|
// Filter options
|
|
197
|
-
this.updateHiddenOptions(nextProps.options);
|
|
225
|
+
this.updateHiddenOptions(nextProps.options, nextProps.isLoading);
|
|
198
226
|
}
|
|
199
227
|
return true;
|
|
200
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* Checks if the loading state has changed between the previous and new loader values.
|
|
231
|
+
*
|
|
232
|
+
* @param prevLoader The previous loading state.
|
|
233
|
+
* @param newLoader The new loading state.
|
|
234
|
+
* @returns True if the loading state has changed.
|
|
235
|
+
*/
|
|
236
|
+
isLoaderChanged(prevLoader, newLoader) {
|
|
237
|
+
return !!prevLoader !== !!newLoader;
|
|
238
|
+
}
|
|
201
239
|
/**
|
|
202
240
|
* Updates hidden options.
|
|
203
241
|
*
|
|
204
|
-
* @param
|
|
242
|
+
* @param opts Current combobox options
|
|
243
|
+
* @param isLoading Current combobox loading state
|
|
205
244
|
*/
|
|
206
|
-
updateHiddenOptions(opts) {
|
|
245
|
+
updateHiddenOptions(opts, isLoading) {
|
|
207
246
|
this.isListHidden = true;
|
|
208
247
|
let currentGroup;
|
|
209
248
|
let isGroupVisible = false;
|
|
@@ -222,7 +261,8 @@ class UIComboBox extends react_1.default.Component {
|
|
|
222
261
|
}
|
|
223
262
|
else {
|
|
224
263
|
// Handle selectable item
|
|
225
|
-
const isVisible = this.
|
|
264
|
+
const isVisible = this.isLoaderApplied(UIComboBoxLoaderType.List, isLoading) ||
|
|
265
|
+
this.isOptionVisibleByQuery(option, this.query);
|
|
226
266
|
option.hidden = !isVisible;
|
|
227
267
|
if (this.isListHidden && !option.hidden) {
|
|
228
268
|
this.isListHidden = false;
|
|
@@ -560,10 +600,10 @@ class UIComboBox extends react_1.default.Component {
|
|
|
560
600
|
* Method returns if loader should be displayed for passed type.
|
|
561
601
|
*
|
|
562
602
|
* @param type Loader's place
|
|
603
|
+
* @param isLoading Current combobox loading state
|
|
563
604
|
* @returns True if loader should be displayed for passed type.
|
|
564
605
|
*/
|
|
565
|
-
isLoaderApplied(type) {
|
|
566
|
-
const { isLoading } = this.props;
|
|
606
|
+
isLoaderApplied(type, isLoading = this.props.isLoading) {
|
|
567
607
|
if (Array.isArray(isLoading)) {
|
|
568
608
|
return isLoading.includes(type);
|
|
569
609
|
}
|
|
@@ -590,6 +630,23 @@ class UIComboBox extends react_1.default.Component {
|
|
|
590
630
|
}
|
|
591
631
|
return defaultRender?.(props) ?? null;
|
|
592
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Called when the user types in to the input of the combo box.
|
|
635
|
+
*
|
|
636
|
+
* @param text The current input value typed by the user.
|
|
637
|
+
*/
|
|
638
|
+
onInputValueChange(text) {
|
|
639
|
+
const { onInputValueChange, externalSearchProps } = this.props;
|
|
640
|
+
// Call external cb from props
|
|
641
|
+
onInputValueChange?.(text);
|
|
642
|
+
if (externalSearchProps) {
|
|
643
|
+
const { onExternalSearch, onInputChange } = externalSearchProps;
|
|
644
|
+
onInputChange?.(text);
|
|
645
|
+
if (onExternalSearch) {
|
|
646
|
+
this.onExternalSearchDebounce(text);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
593
650
|
/**
|
|
594
651
|
* @returns {JSX.Element}
|
|
595
652
|
*/
|
|
@@ -632,7 +689,9 @@ class UIComboBox extends react_1.default.Component {
|
|
|
632
689
|
...(this.props.useComboBoxAsMenuMinWidth && {
|
|
633
690
|
calloutMain: {
|
|
634
691
|
minWidth: this.state.minWidth,
|
|
635
|
-
display: this.state.isListHidden
|
|
692
|
+
display: this.state.isListHidden && !this.props.externalSearchProps?.noDataLabel
|
|
693
|
+
? 'none'
|
|
694
|
+
: undefined
|
|
636
695
|
}
|
|
637
696
|
})
|
|
638
697
|
},
|
|
@@ -654,14 +713,12 @@ class UIComboBox extends react_1.default.Component {
|
|
|
654
713
|
}), ...(this.props.onRefresh && {
|
|
655
714
|
onMenuOpen: this.handleRefreshButton,
|
|
656
715
|
onChange: this.handleChange
|
|
657
|
-
}), ...(this.
|
|
658
|
-
onRenderList: this.onRenderListLoading
|
|
659
|
-
}), ...(this.props.multiSelect && {
|
|
716
|
+
}), onRenderList: this.onRenderList, ...(this.props.multiSelect && {
|
|
660
717
|
onScrollToItem: this.onScrollToItem,
|
|
661
718
|
...(this.props.onChange && {
|
|
662
719
|
onChange: this.onMultiSelectChange
|
|
663
720
|
})
|
|
664
|
-
}), errorMessage: messageInfo.message })));
|
|
721
|
+
}), errorMessage: messageInfo.message, onInputValueChange: this.onInputValueChange })));
|
|
665
722
|
}
|
|
666
723
|
}
|
|
667
724
|
exports.UIComboBox = UIComboBox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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EACF,YAAY,EAAE,WAAW,CAAC,OAAO,EACjC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,GAC7C,CACA,CACT,CAAC;IACN,CAAC;;AA1xBL,gCA2xBC;AA1xBG,iDAAiD;AAC1C,uBAAY,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,AAA5B,CAA6B"}
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
.ms-ComboBox-header,
|
|
209
209
|
.ms-Dropdown-header {
|
|
210
210
|
border-top: none;
|
|
211
|
-
}
|
|
211
|
+
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
// Separator
|
|
@@ -270,6 +270,14 @@
|
|
|
270
270
|
padding: 0;
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
+
|
|
274
|
+
.option-no-data {
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
font-weight: normal;
|
|
277
|
+
height: 26px;
|
|
278
|
+
line-height: 26px;
|
|
279
|
+
padding-left: 8px;
|
|
280
|
+
}
|
|
273
281
|
}
|
|
274
282
|
|
|
275
283
|
// Multi select dropdown only
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a function which calls the callback function only after the specified idle time.
|
|
3
|
+
*
|
|
4
|
+
* @param callback Function to execute
|
|
5
|
+
* @param delay Idle period in milliseconds after which the callback will be executed
|
|
6
|
+
* @returns A wrapper function that should be called to invoke the callback function after delay
|
|
7
|
+
*/
|
|
8
|
+
export declare function debounce<T extends unknown[]>(callback: (...args: T) => void, delay: number): (...args: T) => void;
|
|
9
|
+
//# sourceMappingURL=Debounce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Debounce.d.ts","sourceRoot":"","sources":["../../src/utilities/Debounce.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CASjH"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.debounce = debounce;
|
|
4
|
+
/**
|
|
5
|
+
* Returns a function which calls the callback function only after the specified idle time.
|
|
6
|
+
*
|
|
7
|
+
* @param callback Function to execute
|
|
8
|
+
* @param delay Idle period in milliseconds after which the callback will be executed
|
|
9
|
+
* @returns A wrapper function that should be called to invoke the callback function after delay
|
|
10
|
+
*/
|
|
11
|
+
function debounce(callback, delay) {
|
|
12
|
+
let timerId;
|
|
13
|
+
return (...args) => {
|
|
14
|
+
clearTimeout(timerId);
|
|
15
|
+
timerId = window.setTimeout(() => {
|
|
16
|
+
callback(...args);
|
|
17
|
+
}, delay);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Debounce.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Debounce.js","sourceRoot":"","sources":["../../src/utilities/Debounce.ts"],"names":[],"mappings":";;AAOA,4BASC;AAhBD;;;;;;GAMG;AACH,SAAgB,QAAQ,CAAsB,QAA8B,EAAE,KAAa;IACvF,IAAI,OAAe,CAAC;IACpB,OAAO,CAAC,GAAG,IAAO,EAAQ,EAAE;QACxB,YAAY,CAAC,OAAO,CAAC,CAAC;QAEtB,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;YAC7B,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;QACtB,CAAC,EAAE,KAAK,CAAC,CAAC;IACd,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC"}
|
package/dist/utilities/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Debounce"), exports);
|
|
17
18
|
__exportStar(require("./Dom"), exports);
|
|
18
19
|
__exportStar(require("./Focus"), exports);
|
|
19
20
|
__exportStar(require("./Id"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB;AACxB,uCAAqB;AACrB,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,uCAAqB;AACrB,yCAAuB"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(()=>{var E=Object.defineProperty,y=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var p=(v,o,e)=>o in v?E(v,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):v[o]=e,f=(v,o)=>{for(var e in o||(o={}))k.call(o,e)&&p(v,e,o[e]);if(C)for(var e of C(o))A.call(o,e)&&p(v,e,o[e]);return v},m=(v,o)=>y(v,I(o));(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[481],{"./src/components/UIButton/UIActionButton.tsx":function(v,o,e){var l=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIActionButton=void 0;const a=l(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),S=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),s=e("./src/components/UIContextualMenu/index.tsx");class t extends a.default.Component{constructor(n){super(n),this.setStyle=()=>({root:{minWidth:"initial",height:22,fontSize:"13px",fontWeight:400,color:"var(--vscode-foreground)",borderRadius:0,whiteSpace:"nowrap",backgroundColor:"transparent",textDecoration:"underline",selectors:{"&:active":{textDecoration:"none"},".ms-Fabric--isFocusVisible &:focus:after":{outline:"1px solid var(--vscode-focusBorder)"}}},label:{marginLeft:0,marginRight:0,fontSize:"13px",fontWeight:400},rootDisabled:{backgroundColor:"transparent",color:"var(--vscode-foreground)",opacity:"0.4",pointerEvents:"none"},rootHovered:{color:"var(--vscode-foreground)",backgroundColor:"var(--vscode-menubar-selectionBackground)",outline:"1px solid var(--vscode-contrastActiveBorder)",borderRadius:3,textDecoration:"none",selectors:{color:"var(--vscode-foreground)"}},icon:{height:16,lineHeight:16,marginLeft:0,position:"relative",top:1},menuIcon:{position:"relative",top:1}})}render(){return a.default.createElement(S.ActionButton,m(f({},this.props),{styles:this.setStyle(),menuAs:s.UIContextualMenu}))}}o.UIActionButton=t},"./src/components/UIButton/UIDefaultButton.tsx":function(v,o,e){var l=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIDefaultButton=o.BASE_STYLES=void 0;const a=l(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),S=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),s=e("./src/components/UIContextualMenu/index.tsx"),t=e("./src/components/UIInput/index.tsx"),r=e("./src/components/Icons.tsx"),n="var(--vscode-button-border, transparent)";o.BASE_STYLES={color:"var(--vscode-button-foreground)",checkedBorderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-border, transparent))",primary:{backgroundColor:"var(--vscode-button-background)",disabledBorderColor:n,borderColor:n,hoverBackgroundColor:"var(--vscode-button-hoverBackground)",hoverBorderColor:n},secondary:{backgroundColor:"var(--vscode-button-secondaryBackground)",disabledBorderColor:n,borderColor:n,hoverBackgroundColor:"var(--vscode-button-secondaryHoverBackground)",hoverBorderColor:n,color:"var(--vscode-button-secondaryForeground)"},transparent:{backgroundColor:"transparent",disabledBorderColor:"transparent",borderColor:"transparent",hoverBackgroundColor:"var(--vscode-toolbar-hoverBackground, var(--vscode-menubar-selectionBackground))",hoverBorderColor:"var(--vscode-contrastActiveBorder, transparent)",hoverBorderStyle:"dashed",color:"var(--vscode-foreground)",checkedBackgroundColor:"var(--vscode-button-background)",checkedColor:"var(--vscode-button-foreground)",checkedBorderStyle:"solid"}};const b="svg > path, svg > rect";class B extends a.default.Component{constructor(c){super(c),this.setStyle=i=>{const{primary:u,transparent:d}=i,_={position:"absolute",width:1,right:21,top:0,bottom:0,backgroundColor:"var(--vscode-editor-background)"},h={root:this.getInteractionStyle(!1,u,d),checked:this.getInteractionStyle(!0,u,d)};return{root:m(f(f({minWidth:"initial",height:22,fontSize:"13px",fontWeight:400,borderRadius:t.COMMON_INPUT_STYLES.borderRadius,paddingLeft:13,paddingRight:13,backgroundColor:o.BASE_STYLES.secondary.backgroundColor,borderColor:o.BASE_STYLES.secondary.borderColor,color:o.BASE_STYLES.secondary.color},u&&{backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,color:o.BASE_STYLES.color}),d&&{backgroundColor:o.BASE_STYLES.transparent.backgroundColor,borderColor:o.BASE_STYLES.transparent.borderColor,color:o.BASE_STYLES.transparent.color}),{selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outlineColor:"var(--vscode-focusBorder)",inset:-3}}}),flexContainer:{height:18},label:{marginLeft:0,marginRight:0,fontWeight:400,lineHeight:20,whiteSpace:"nowrap"},rootDisabled:f(f({opacity:"0.5 !important",backgroundColor:o.BASE_STYLES.secondary.backgroundColor,borderColor:o.BASE_STYLES.secondary.disabledBorderColor,color:o.BASE_STYLES.secondary.color},u&&{opacity:"0.5 !important",color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.disabledBorderColor}),d&&{color:o.BASE_STYLES.transparent.color,backgroundColor:o.BASE_STYLES.transparent.backgroundColor,borderColor:o.BASE_STYLES.transparent.disabledBorderColor}),rootPressed:h.root,rootHovered:h.root,icon:f(f({height:16,lineHeight:16,marginLeft:-3,color:o.BASE_STYLES.secondary.color,selectors:{[b]:{fill:o.BASE_STYLES.secondary.color}}},u&&{color:o.BASE_STYLES.color,selectors:{[b]:{fill:o.BASE_STYLES.color}}}),d&&{color:o.BASE_STYLES.transparent.color,selectors:{[b]:{fill:o.BASE_STYLES.transparent.color}}}),menuIcon:{selectors:f({"svg > path":{fill:o.BASE_STYLES.secondary.color}},u&&{"svg > path":{fill:o.BASE_STYLES.color}})},rootChecked:f(f({backgroundColor:o.BASE_STYLES.secondary.backgroundColor,color:o.BASE_STYLES.secondary.color,borderColor:o.BASE_STYLES.checkedBorderColor},u&&{backgroundColor:o.BASE_STYLES.primary.backgroundColor,color:o.BASE_STYLES.color}),d&&{backgroundColor:o.BASE_STYLES.transparent.checkedBackgroundColor,color:o.BASE_STYLES.transparent.checkedColor,borderStyle:o.BASE_STYLES.transparent.checkedBorderStyle}),rootCheckedHovered:h.checked,rootCheckedPressed:h.checked,splitButtonMenuButton:{padding:6,height:22,boxSizing:"border-box",borderRadius:`0 ${t.COMMON_INPUT_STYLES.borderRadius}px ${t.COMMON_INPUT_STYLES.borderRadius}px 0 !important`,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:22,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,color:o.BASE_STYLES.color,selectors:{"&:hover":{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[b]:{fill:o.BASE_STYLES.color}}}}},splitButtonMenuButtonDisabled:f({opacity:"0.5 !important",backgroundColor:"var(--vscode-button-secondaryBackground,#5f6a79)",borderColor:o.BASE_STYLES.secondary.backgroundColor,color:o.BASE_STYLES.secondary.color},u&&{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:"var(--vscode-button-background)"}),splitButtonMenuFocused:{selectors:{"&:focus":{color:"red"}}},splitButtonMenuButtonExpanded:{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[b]:{fill:o.BASE_STYLES.color},"&:hover":{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[b]:{fill:o.BASE_STYLES.color}}}}},splitButtonDivider:_,splitButtonDividerDisabled:_,splitButtonContainerFocused:{".ms-Fabric--isFocusVisible &:focus:after":{border:"none",outlineColor:"var(--vscode-focusBorder)",inset:-2}}}}}getInteractionStyle(c,i,u){let d=f(f({color:o.BASE_STYLES.secondary.color,backgroundColor:o.BASE_STYLES.secondary.hoverBackgroundColor,borderColor:o.BASE_STYLES.secondary.hoverBorderColor,selectors:{[b]:{fill:o.BASE_STYLES.secondary.color}}},i&&{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.hoverBackgroundColor,borderColor:o.BASE_STYLES.primary.hoverBorderColor,selectors:{[b]:{fill:o.BASE_STYLES.color}}}),c&&{borderColor:o.BASE_STYLES.checkedBorderColor});return u&&(c?d=m(f({},d),{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,selectors:{[b]:{fill:o.BASE_STYLES.color}}}):d=m(f({},d),{color:o.BASE_STYLES.transparent.color,backgroundColor:o.BASE_STYLES.transparent.hoverBackgroundColor,borderColor:o.BASE_STYLES.transparent.hoverBorderColor,borderStyle:o.BASE_STYLES.transparent.hoverBorderStyle,selectors:{[b]:{fill:o.BASE_STYLES.transparent.color}}})),c&&(d=m(f({},d),{borderColor:o.BASE_STYLES.checkedBorderColor})),d}render(){var i;const c=(i=this.props.menuProps)!=null&&i.items?{iconName:r.UiIcons.ArrowDown}:void 0;return a.default.createElement(S.DefaultButton,m(f({menuIconProps:c},this.props),{styles:this.setStyle(this.props),menuAs:s.UIContextualMenu}))}}o.UIDefaultButton=B},"./src/components/UIButton/UIIconButton.tsx":function(v,o,e){var l=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIIconButton=o.UIIconButtonSizes=void 0;const a=l(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),S=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),s=e("./src/components/UIContextualMenu/index.tsx");var t;(function(n){n.Default="Default",n.Wide="Wide"})(t||(o.UIIconButtonSizes=t={}));class r extends a.default.Component{constructor(b){super(b),this.setStyle=B=>{var i;const c=((i=B.sizeType)!=null?i:t.Default)===t.Default?16:26;return{root:{minWidth:"initial",height:16,width:c,boxSizing:"content-box",padding:3,backgroundColor:"transparent",borderRadius:4,selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outline:"1px solid var(--vscode-focusBorder)"}}},rootDisabled:{backgroundColor:"transparent",opacity:"0.4"},rootHasMenu:{width:c},rootHovered:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-hoverBackground"),outline:"1px dashed var(--vscode-contrastActiveBorder)"},rootPressed:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-activeBackground")},rootExpanded:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-hoverBackground"),width:c},rootExpandedHovered:{backgroundColor:"transparent"},flexContainer:{width:"100%",height:"100%"},icon:{height:16,width:c,lineHeight:16,display:"flex",alignItems:"center",justifyContent:"center"},iconHovered:{backgroundColor:"transparent"},menuIconExpanded:{display:"none"},menuIcon:{display:"none"},rootChecked:{backgroundColor:"var(--vscode-button-background)",color:"var(--vscode-button-foreground)",outline:"1px solid var(--vscode-contrastActiveBorder)",selectors:{".ms-Fabric--isFocusVisible &:focus:after":{inset:"-1px"}}},rootCheckedHovered:{backgroundColor:"var(--vscode-button-background)",outline:"1px dashed var(--vscode-contrastActiveBorder)"},iconChecked:{color:"var(--vscode-button-foreground)",selectors:{"> svg *":{fill:"currentColor"}}}}}}getButtonInteractionBackgroundColor(b){return`var(${b}, var(--vscode-menubar-selectionBackground))`}render(){return a.default.createElement(S.IconButton,m(f({},this.props),{styles:this.setStyle(this.props),menuAs:s.UIContextualMenu}))}}o.UIIconButton=r},"./src/components/UIButton/UISmallButton.tsx":function(v,o,e){var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(o,"__esModule",{value:!0}),o.UISmallButton=void 0;const a=l(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),S=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");class s extends a.default.Component{constructor(r){super(r),this.buttonSecondaryForeground="--vscode-button-secondaryForeground",this.setStyle=n=>({root:m(f({minWidth:"initial",height:16,fontSize:"11px",fontWeight:400,borderRadius:20,paddingLeft:13,paddingRight:13,backgroundColor:"var(--vscode-button-secondaryBackground, #5f6a79)",borderColor:"var(--vscode-contrastBorder, var(--vscode-button-secondaryBackground, #5f6a79))",color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")},n.primary&&{backgroundColor:this.getColor("--vscode-button-background"),borderColor:"var(--vscode-contrastBorder, var(--vscode-button-background))",color:this.getColor("--vscode-button-foreground")}),{selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outlineColor:"var(--vscode-focusBorder)",inset:-3}}}),label:{marginLeft:0,marginRight:0,fontWeight:400,lineHeight:11,whiteSpace:"nowrap"},rootDisabled:f({opacity:"0.5 !important",backgroundColor:"var(--vscode-button-secondaryBackground,#5f6a79)",borderColor:"var(--vscode-button-secondaryBackground, #5f6a79)",color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")},n.primary&&{opacity:"0.5 !important",color:this.getColor("--vscode-button-foreground"),backgroundColor:"var(--vscode-button-background)",borderColor:"var(--vscode-button-background)"}),rootHovered:f({color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff"),backgroundColor:"var(--vscode-button-secondaryHoverBackground, #4c5561)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-secondaryHoverBackground, #4c5561))",selectors:{"svg > path, svg > rect":{fill:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")}}},n.primary&&{color:"var(--vscode-button-foreground)",backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{"svg > path, svg > rect":{fill:"var(--vscode-button-foreground)"}}})})}getColor(r){return`var(${r})`}getColorwithFallback(r,n){return`var(${r}, ${n})`}render(){return a.default.createElement(S.DefaultButton,m(f({},this.props),{styles:this.setStyle(this.props)}))}}o.UISmallButton=s},"./src/components/UIButton/UISplitButton.tsx":function(v,o,e){var l=this&&this.__createBinding||(Object.create?function(g,c,i,u){u===void 0&&(u=i);var d=Object.getOwnPropertyDescriptor(c,i);(!d||("get"in d?!c.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return c[i]}}),Object.defineProperty(g,u,d)}:function(g,c,i,u){u===void 0&&(u=i),g[u]=c[i]}),a=this&&this.__setModuleDefault||(Object.create?function(g,c){Object.defineProperty(g,"default",{enumerable:!0,value:c})}:function(g,c){g.default=c}),S=this&&this.__importStar||function(){var g=function(c){return g=Object.getOwnPropertyNames||function(i){var u=[];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(u[u.length]=d);return u},g(c)};return function(c){if(c&&c.__esModule)return c;var i={};if(c!=null)for(var u=g(c),d=0;d<u.length;d++)u[d]!=="default"&&l(i,c,u[d]);return a(i,c),i}}();Object.defineProperty(o,"__esModule",{value:!0}),o.UISplitButton=void 0;const s=S(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),t=e("./src/components/UIButton/UIDefaultButton.tsx"),r=e("./src/components/UIContextualMenu/index.tsx"),n=e("./src/components/Icons.tsx"),b=e("./src/utilities/index.ts");class B extends s.Component{constructor(c){super(c),this.id=this.props.id?this.props.id:(0,b.getUIId)("ui-split-button-"),this.onClick=()=>{this.props.callback(this.props.button.key)},this.onMenuItemClick=(i,u)=>{u!=null&&u.key&&this.props.callback(u.key)},this.state={menu:{items:c.menuItems,onItemClick:this.onMenuItemClick}},this.onClick=this.onClick.bind(this)}static getDerivedStateFromProps(c,i){return{menu:{items:c.menuItems,onItemClick:i.menu.onItemClick}}}render(){return s.createElement(t.UIDefaultButton,{ariaLabel:this.props.ariaLabel,ariaDescription:this.props.ariaDescription,id:this.id,className:"ui-split-button",primary:!0,split:!0,onClick:this.onClick.bind(this),menuProps:this.state.menu,menuIconProps:{iconName:n.UiIcons.ArrowDown},menuAs:r.UIContextualMenu,disabled:this.props.disabled},this.props.button.text)}}o.UISplitButton=B},"./src/components/UIButton/index.tsx":function(v,o,e){var l=this&&this.__createBinding||(Object.create?function(s,t,r,n){n===void 0&&(n=r);var b=Object.getOwnPropertyDescriptor(t,r);(!b||("get"in b?!t.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(s,n,b)}:function(s,t,r,n){n===void 0&&(n=r),s[n]=t[r]}),a=this&&this.__exportStar||function(s,t){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&l(t,s,r)};Object.defineProperty(o,"__esModule",{value:!0}),o.UIButtonInterface=void 0;const S=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"UIButtonInterface",{enumerable:!0,get:function(){return S.IButton}}),a(e("./src/components/UIButton/UIActionButton.tsx"),o),a(e("./src/components/UIButton/UIDefaultButton.tsx"),o),a(e("./src/components/UIButton/UIIconButton.tsx"),o),a(e("./src/components/UIButton/UISplitButton.tsx"),o),a(e("./src/components/UIButton/UISmallButton.tsx"),o)},"./src/utilities/Dom.ts":(v,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isHTMLElement=e,o.isHTMLInputElement=l;function e(a){return"title"in a}function l(a){return"value"in a&&"tagName"in a&&a.tagName==="INPUT"}},"./src/utilities/Focus.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isElementTabbable=o.getPreviousElement=o.getNextElement=o.setUIFocusVisibility=o.getUILastFocusable=o.getUIFirstFocusable=void 0,o.focusToSibling=a;const l=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"getUIFirstFocusable",{enumerable:!0,get:function(){return l.getFirstFocusable}}),Object.defineProperty(o,"getUILastFocusable",{enumerable:!0,get:function(){return l.getLastFocusable}}),Object.defineProperty(o,"setUIFocusVisibility",{enumerable:!0,get:function(){return l.setFocusVisibility}}),Object.defineProperty(o,"getNextElement",{enumerable:!0,get:function(){return l.getNextElement}}),Object.defineProperty(o,"getPreviousElement",{enumerable:!0,get:function(){return l.getPreviousElement}}),Object.defineProperty(o,"isElementTabbable",{enumerable:!0,get:function(){return l.isElementTabbable}});function a(S,s){const t=(0,l.getDocument)();if(t){let r=null;if(s?r=(0,l.getNextElement)(t.body,S,!1,!1,!0,!0):r=(0,l.getPreviousElement)(t.body,S,!1,!1,!0,!0),r)return r.focus(),r}return null}},"./src/utilities/Id.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.getUIId=void 0;const l=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"getUIId",{enumerable:!0,get:function(){return l.getId}})},"./src/utilities/Keys.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.UIKeyCodes=void 0;const l=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"UIKeyCodes",{enumerable:!0,get:function(){return l.KeyCodes}})},"./src/utilities/index.ts":function(v,o,e){var l=this&&this.__createBinding||(Object.create?function(S,s,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(s,t);(!n||("get"in n?!s.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return s[t]}}),Object.defineProperty(S,r,n)}:function(S,s,t,r){r===void 0&&(r=t),S[r]=s[t]}),a=this&&this.__exportStar||function(S,s){for(var t in S)t!=="default"&&!Object.prototype.hasOwnProperty.call(s,t)&&l(s,S,t)};Object.defineProperty(o,"__esModule",{value:!0}),a(e("./src/utilities/Dom.ts"),o),a(e("./src/utilities/Focus.ts"),o),a(e("./src/utilities/Id.ts"),o),a(e("./src/utilities/Keys.ts"),o)}}]);})();
|
|
1
|
+
"use strict";(()=>{var E=Object.defineProperty,y=Object.defineProperties;var I=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var p=(v,o,e)=>o in v?E(v,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):v[o]=e,S=(v,o)=>{for(var e in o||(o={}))k.call(o,e)&&p(v,e,o[e]);if(C)for(var e of C(o))A.call(o,e)&&p(v,e,o[e]);return v},m=(v,o)=>y(v,I(o));(self.webpackChunk_sap_ux_ui_components=self.webpackChunk_sap_ux_ui_components||[]).push([[481],{"./src/components/UIButton/UIActionButton.tsx":function(v,o,e){var u=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIActionButton=void 0;const a=u(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),b=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),l=e("./src/components/UIContextualMenu/index.tsx");class t extends a.default.Component{constructor(n){super(n),this.setStyle=()=>({root:{minWidth:"initial",height:22,fontSize:"13px",fontWeight:400,color:"var(--vscode-foreground)",borderRadius:0,whiteSpace:"nowrap",backgroundColor:"transparent",textDecoration:"underline",selectors:{"&:active":{textDecoration:"none"},".ms-Fabric--isFocusVisible &:focus:after":{outline:"1px solid var(--vscode-focusBorder)"}}},label:{marginLeft:0,marginRight:0,fontSize:"13px",fontWeight:400},rootDisabled:{backgroundColor:"transparent",color:"var(--vscode-foreground)",opacity:"0.4",pointerEvents:"none"},rootHovered:{color:"var(--vscode-foreground)",backgroundColor:"var(--vscode-menubar-selectionBackground)",outline:"1px solid var(--vscode-contrastActiveBorder)",borderRadius:3,textDecoration:"none",selectors:{color:"var(--vscode-foreground)"}},icon:{height:16,lineHeight:16,marginLeft:0,position:"relative",top:1},menuIcon:{position:"relative",top:1}})}render(){return a.default.createElement(b.ActionButton,m(S({},this.props),{styles:this.setStyle(),menuAs:l.UIContextualMenu}))}}o.UIActionButton=t},"./src/components/UIButton/UIDefaultButton.tsx":function(v,o,e){var u=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIDefaultButton=o.BASE_STYLES=void 0;const a=u(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),b=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),l=e("./src/components/UIContextualMenu/index.tsx"),t=e("./src/components/UIInput/index.tsx"),r=e("./src/components/Icons.tsx"),n="var(--vscode-button-border, transparent)";o.BASE_STYLES={color:"var(--vscode-button-foreground)",checkedBorderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-border, transparent))",primary:{backgroundColor:"var(--vscode-button-background)",disabledBorderColor:n,borderColor:n,hoverBackgroundColor:"var(--vscode-button-hoverBackground)",hoverBorderColor:n},secondary:{backgroundColor:"var(--vscode-button-secondaryBackground)",disabledBorderColor:n,borderColor:n,hoverBackgroundColor:"var(--vscode-button-secondaryHoverBackground)",hoverBorderColor:n,color:"var(--vscode-button-secondaryForeground)"},transparent:{backgroundColor:"transparent",disabledBorderColor:"transparent",borderColor:"transparent",hoverBackgroundColor:"var(--vscode-toolbar-hoverBackground, var(--vscode-menubar-selectionBackground))",hoverBorderColor:"var(--vscode-contrastActiveBorder, transparent)",hoverBorderStyle:"dashed",color:"var(--vscode-foreground)",checkedBackgroundColor:"var(--vscode-button-background)",checkedColor:"var(--vscode-button-foreground)",checkedBorderStyle:"solid"}};const f="svg > path, svg > rect";class B extends a.default.Component{constructor(c){super(c),this.setStyle=s=>{const{primary:d,transparent:i}=s,_={position:"absolute",width:1,right:21,top:0,bottom:0,backgroundColor:"var(--vscode-editor-background)"},h={root:this.getInteractionStyle(!1,d,i),checked:this.getInteractionStyle(!0,d,i)};return{root:m(S(S({minWidth:"initial",height:22,fontSize:"13px",fontWeight:400,borderRadius:t.COMMON_INPUT_STYLES.borderRadius,paddingLeft:13,paddingRight:13,backgroundColor:o.BASE_STYLES.secondary.backgroundColor,borderColor:o.BASE_STYLES.secondary.borderColor,color:o.BASE_STYLES.secondary.color},d&&{backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,color:o.BASE_STYLES.color}),i&&{backgroundColor:o.BASE_STYLES.transparent.backgroundColor,borderColor:o.BASE_STYLES.transparent.borderColor,color:o.BASE_STYLES.transparent.color}),{selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outlineColor:"var(--vscode-focusBorder)",inset:-3}}}),flexContainer:{height:18},label:{marginLeft:0,marginRight:0,fontWeight:400,lineHeight:20,whiteSpace:"nowrap"},rootDisabled:S(S({opacity:"0.5 !important",backgroundColor:o.BASE_STYLES.secondary.backgroundColor,borderColor:o.BASE_STYLES.secondary.disabledBorderColor,color:o.BASE_STYLES.secondary.color},d&&{opacity:"0.5 !important",color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.disabledBorderColor}),i&&{color:o.BASE_STYLES.transparent.color,backgroundColor:o.BASE_STYLES.transparent.backgroundColor,borderColor:o.BASE_STYLES.transparent.disabledBorderColor}),rootPressed:h.root,rootHovered:h.root,icon:S(S({height:16,lineHeight:16,marginLeft:-3,color:o.BASE_STYLES.secondary.color,selectors:{[f]:{fill:o.BASE_STYLES.secondary.color}}},d&&{color:o.BASE_STYLES.color,selectors:{[f]:{fill:o.BASE_STYLES.color}}}),i&&{color:o.BASE_STYLES.transparent.color,selectors:{[f]:{fill:o.BASE_STYLES.transparent.color}}}),menuIcon:{selectors:S({"svg > path":{fill:o.BASE_STYLES.secondary.color}},d&&{"svg > path":{fill:o.BASE_STYLES.color}})},rootChecked:S(S({backgroundColor:o.BASE_STYLES.secondary.backgroundColor,color:o.BASE_STYLES.secondary.color,borderColor:o.BASE_STYLES.checkedBorderColor},d&&{backgroundColor:o.BASE_STYLES.primary.backgroundColor,color:o.BASE_STYLES.color}),i&&{backgroundColor:o.BASE_STYLES.transparent.checkedBackgroundColor,color:o.BASE_STYLES.transparent.checkedColor,borderStyle:o.BASE_STYLES.transparent.checkedBorderStyle}),rootCheckedHovered:h.checked,rootCheckedPressed:h.checked,splitButtonMenuButton:{padding:6,height:22,boxSizing:"border-box",borderRadius:`0 ${t.COMMON_INPUT_STYLES.borderRadius}px ${t.COMMON_INPUT_STYLES.borderRadius}px 0 !important`,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:22,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,color:o.BASE_STYLES.color,selectors:{"&:hover":{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[f]:{fill:o.BASE_STYLES.color}}}}},splitButtonMenuButtonDisabled:S({opacity:"0.5 !important",backgroundColor:"var(--vscode-button-secondaryBackground,#5f6a79)",borderColor:o.BASE_STYLES.secondary.backgroundColor,color:o.BASE_STYLES.secondary.color},d&&{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:"var(--vscode-button-background)"}),splitButtonMenuFocused:{selectors:{"&:focus":{color:"red"}}},splitButtonMenuButtonExpanded:{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[f]:{fill:o.BASE_STYLES.color},"&:hover":{color:o.BASE_STYLES.color,backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{[f]:{fill:o.BASE_STYLES.color}}}}},splitButtonDivider:_,splitButtonDividerDisabled:_,splitButtonContainerFocused:{".ms-Fabric--isFocusVisible &:focus:after":{border:"none",outlineColor:"var(--vscode-focusBorder)",inset:-2}}}}}getInteractionStyle(c,s,d){let i=S(S({color:o.BASE_STYLES.secondary.color,backgroundColor:o.BASE_STYLES.secondary.hoverBackgroundColor,borderColor:o.BASE_STYLES.secondary.hoverBorderColor,selectors:{[f]:{fill:o.BASE_STYLES.secondary.color}}},s&&{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.hoverBackgroundColor,borderColor:o.BASE_STYLES.primary.hoverBorderColor,selectors:{[f]:{fill:o.BASE_STYLES.color}}}),c&&{borderColor:o.BASE_STYLES.checkedBorderColor});return d&&(c?i=m(S({},i),{color:o.BASE_STYLES.color,backgroundColor:o.BASE_STYLES.primary.backgroundColor,borderColor:o.BASE_STYLES.primary.borderColor,selectors:{[f]:{fill:o.BASE_STYLES.color}}}):i=m(S({},i),{color:o.BASE_STYLES.transparent.color,backgroundColor:o.BASE_STYLES.transparent.hoverBackgroundColor,borderColor:o.BASE_STYLES.transparent.hoverBorderColor,borderStyle:o.BASE_STYLES.transparent.hoverBorderStyle,selectors:{[f]:{fill:o.BASE_STYLES.transparent.color}}})),c&&(i=m(S({},i),{borderColor:o.BASE_STYLES.checkedBorderColor})),i}render(){var s;const c=(s=this.props.menuProps)!=null&&s.items?{iconName:r.UiIcons.ArrowDown}:void 0;return a.default.createElement(b.DefaultButton,m(S({menuIconProps:c},this.props),{styles:this.setStyle(this.props),menuAs:l.UIContextualMenu}))}}o.UIDefaultButton=B},"./src/components/UIButton/UIIconButton.tsx":function(v,o,e){var u=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(o,"__esModule",{value:!0}),o.UIIconButton=o.UIIconButtonSizes=void 0;const a=u(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),b=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js"),l=e("./src/components/UIContextualMenu/index.tsx");var t;(function(n){n.Default="Default",n.Wide="Wide"})(t||(o.UIIconButtonSizes=t={}));class r extends a.default.Component{constructor(f){super(f),this.setStyle=B=>{var s;const c=((s=B.sizeType)!=null?s:t.Default)===t.Default?16:26;return{root:{minWidth:"initial",height:16,width:c,boxSizing:"content-box",padding:3,backgroundColor:"transparent",borderRadius:4,selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outline:"1px solid var(--vscode-focusBorder)"}}},rootDisabled:{backgroundColor:"transparent",opacity:"0.4"},rootHasMenu:{width:c},rootHovered:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-hoverBackground"),outline:"1px dashed var(--vscode-contrastActiveBorder)"},rootPressed:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-activeBackground")},rootExpanded:{backgroundColor:this.getButtonInteractionBackgroundColor("--vscode-toolbar-hoverBackground"),width:c},rootExpandedHovered:{backgroundColor:"transparent"},flexContainer:{width:"100%",height:"100%"},icon:{height:16,width:c,lineHeight:16,display:"flex",alignItems:"center",justifyContent:"center"},iconHovered:{backgroundColor:"transparent"},menuIconExpanded:{display:"none"},menuIcon:{display:"none"},rootChecked:{backgroundColor:"var(--vscode-button-background)",color:"var(--vscode-button-foreground)",outline:"1px solid var(--vscode-contrastActiveBorder)",selectors:{".ms-Fabric--isFocusVisible &:focus:after":{inset:"-1px"}}},rootCheckedHovered:{backgroundColor:"var(--vscode-button-background)",outline:"1px dashed var(--vscode-contrastActiveBorder)"},iconChecked:{color:"var(--vscode-button-foreground)",selectors:{"> svg *":{fill:"currentColor"}}}}}}getButtonInteractionBackgroundColor(f){return`var(${f}, var(--vscode-menubar-selectionBackground))`}render(){return a.default.createElement(b.IconButton,m(S({},this.props),{styles:this.setStyle(this.props),menuAs:l.UIContextualMenu}))}}o.UIIconButton=r},"./src/components/UIButton/UISmallButton.tsx":function(v,o,e){var u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(o,"__esModule",{value:!0}),o.UISmallButton=void 0;const a=u(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),b=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");class l extends a.default.Component{constructor(r){super(r),this.buttonSecondaryForeground="--vscode-button-secondaryForeground",this.setStyle=n=>({root:m(S({minWidth:"initial",height:16,fontSize:"11px",fontWeight:400,borderRadius:20,paddingLeft:13,paddingRight:13,backgroundColor:"var(--vscode-button-secondaryBackground, #5f6a79)",borderColor:"var(--vscode-contrastBorder, var(--vscode-button-secondaryBackground, #5f6a79))",color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")},n.primary&&{backgroundColor:this.getColor("--vscode-button-background"),borderColor:"var(--vscode-contrastBorder, var(--vscode-button-background))",color:this.getColor("--vscode-button-foreground")}),{selectors:{".ms-Fabric--isFocusVisible &:focus:after":{outlineColor:"var(--vscode-focusBorder)",inset:-3}}}),label:{marginLeft:0,marginRight:0,fontWeight:400,lineHeight:11,whiteSpace:"nowrap"},rootDisabled:S({opacity:"0.5 !important",backgroundColor:"var(--vscode-button-secondaryBackground,#5f6a79)",borderColor:"var(--vscode-button-secondaryBackground, #5f6a79)",color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")},n.primary&&{opacity:"0.5 !important",color:this.getColor("--vscode-button-foreground"),backgroundColor:"var(--vscode-button-background)",borderColor:"var(--vscode-button-background)"}),rootHovered:S({color:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff"),backgroundColor:"var(--vscode-button-secondaryHoverBackground, #4c5561)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-secondaryHoverBackground, #4c5561))",selectors:{"svg > path, svg > rect":{fill:this.getColorwithFallback(this.buttonSecondaryForeground,"#ffffff")}}},n.primary&&{color:"var(--vscode-button-foreground)",backgroundColor:"var(--vscode-button-hoverBackground)",borderColor:"var(--vscode-contrastActiveBorder, var(--vscode-button-hoverBackground))",selectors:{"svg > path, svg > rect":{fill:"var(--vscode-button-foreground)"}}})})}getColor(r){return`var(${r})`}getColorwithFallback(r,n){return`var(${r}, ${n})`}render(){return a.default.createElement(b.DefaultButton,m(S({},this.props),{styles:this.setStyle(this.props)}))}}o.UISmallButton=l},"./src/components/UIButton/UISplitButton.tsx":function(v,o,e){var u=this&&this.__createBinding||(Object.create?function(g,c,s,d){d===void 0&&(d=s);var i=Object.getOwnPropertyDescriptor(c,s);(!i||("get"in i?!c.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return c[s]}}),Object.defineProperty(g,d,i)}:function(g,c,s,d){d===void 0&&(d=s),g[d]=c[s]}),a=this&&this.__setModuleDefault||(Object.create?function(g,c){Object.defineProperty(g,"default",{enumerable:!0,value:c})}:function(g,c){g.default=c}),b=this&&this.__importStar||function(){var g=function(c){return g=Object.getOwnPropertyNames||function(s){var d=[];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(d[d.length]=i);return d},g(c)};return function(c){if(c&&c.__esModule)return c;var s={};if(c!=null)for(var d=g(c),i=0;i<d.length;i++)d[i]!=="default"&&u(s,c,d[i]);return a(s,c),s}}();Object.defineProperty(o,"__esModule",{value:!0}),o.UISplitButton=void 0;const l=b(e("../../node_modules/.pnpm/react@16.14.0/node_modules/react/index.js")),t=e("./src/components/UIButton/UIDefaultButton.tsx"),r=e("./src/components/UIContextualMenu/index.tsx"),n=e("./src/components/Icons.tsx"),f=e("./src/utilities/index.ts");class B extends l.Component{constructor(c){super(c),this.id=this.props.id?this.props.id:(0,f.getUIId)("ui-split-button-"),this.onClick=()=>{this.props.callback(this.props.button.key)},this.onMenuItemClick=(s,d)=>{d!=null&&d.key&&this.props.callback(d.key)},this.state={menu:{items:c.menuItems,onItemClick:this.onMenuItemClick}},this.onClick=this.onClick.bind(this)}static getDerivedStateFromProps(c,s){return{menu:{items:c.menuItems,onItemClick:s.menu.onItemClick}}}render(){return l.createElement(t.UIDefaultButton,{ariaLabel:this.props.ariaLabel,ariaDescription:this.props.ariaDescription,id:this.id,className:"ui-split-button",primary:!0,split:!0,onClick:this.onClick.bind(this),menuProps:this.state.menu,menuIconProps:{iconName:n.UiIcons.ArrowDown},menuAs:r.UIContextualMenu,disabled:this.props.disabled},this.props.button.text)}}o.UISplitButton=B},"./src/components/UIButton/index.tsx":function(v,o,e){var u=this&&this.__createBinding||(Object.create?function(l,t,r,n){n===void 0&&(n=r);var f=Object.getOwnPropertyDescriptor(t,r);(!f||("get"in f?!t.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(l,n,f)}:function(l,t,r,n){n===void 0&&(n=r),l[n]=t[r]}),a=this&&this.__exportStar||function(l,t){for(var r in l)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&u(t,l,r)};Object.defineProperty(o,"__esModule",{value:!0}),o.UIButtonInterface=void 0;const b=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"UIButtonInterface",{enumerable:!0,get:function(){return b.IButton}}),a(e("./src/components/UIButton/UIActionButton.tsx"),o),a(e("./src/components/UIButton/UIDefaultButton.tsx"),o),a(e("./src/components/UIButton/UIIconButton.tsx"),o),a(e("./src/components/UIButton/UISplitButton.tsx"),o),a(e("./src/components/UIButton/UISmallButton.tsx"),o)},"./src/utilities/Debounce.ts":(v,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.debounce=e;function e(u,a){let b;return(...l)=>{clearTimeout(b),b=window.setTimeout(()=>{u(...l)},a)}}},"./src/utilities/Dom.ts":(v,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isHTMLElement=e,o.isHTMLInputElement=u;function e(a){return"title"in a}function u(a){return"value"in a&&"tagName"in a&&a.tagName==="INPUT"}},"./src/utilities/Focus.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isElementTabbable=o.getPreviousElement=o.getNextElement=o.setUIFocusVisibility=o.getUILastFocusable=o.getUIFirstFocusable=void 0,o.focusToSibling=a;const u=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"getUIFirstFocusable",{enumerable:!0,get:function(){return u.getFirstFocusable}}),Object.defineProperty(o,"getUILastFocusable",{enumerable:!0,get:function(){return u.getLastFocusable}}),Object.defineProperty(o,"setUIFocusVisibility",{enumerable:!0,get:function(){return u.setFocusVisibility}}),Object.defineProperty(o,"getNextElement",{enumerable:!0,get:function(){return u.getNextElement}}),Object.defineProperty(o,"getPreviousElement",{enumerable:!0,get:function(){return u.getPreviousElement}}),Object.defineProperty(o,"isElementTabbable",{enumerable:!0,get:function(){return u.isElementTabbable}});function a(b,l){const t=(0,u.getDocument)();if(t){let r=null;if(l?r=(0,u.getNextElement)(t.body,b,!1,!1,!0,!0):r=(0,u.getPreviousElement)(t.body,b,!1,!1,!0,!0),r)return r.focus(),r}return null}},"./src/utilities/Id.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.getUIId=void 0;const u=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"getUIId",{enumerable:!0,get:function(){return u.getId}})},"./src/utilities/Keys.ts":(v,o,e)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.UIKeyCodes=void 0;const u=e("../../node_modules/.pnpm/@fluentui+react@8.120.5_@types+react-dom@16.9.24_@types+react@16.14.55_react-dom@16.14.0_react@16.14.0/node_modules/@fluentui/react/lib-commonjs/index.js");Object.defineProperty(o,"UIKeyCodes",{enumerable:!0,get:function(){return u.KeyCodes}})},"./src/utilities/index.ts":function(v,o,e){var u=this&&this.__createBinding||(Object.create?function(b,l,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(l,t);(!n||("get"in n?!l.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return l[t]}}),Object.defineProperty(b,r,n)}:function(b,l,t,r){r===void 0&&(r=t),b[r]=l[t]}),a=this&&this.__exportStar||function(b,l){for(var t in b)t!=="default"&&!Object.prototype.hasOwnProperty.call(l,t)&&u(l,b,t)};Object.defineProperty(o,"__esModule",{value:!0}),a(e("./src/utilities/Debounce.ts"),o),a(e("./src/utilities/Dom.ts"),o),a(e("./src/utilities/Focus.ts"),o),a(e("./src/utilities/Id.ts"),o),a(e("./src/utilities/Keys.ts"),o)}}]);})();
|