mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-08 03:57:31 +00:00
Compare commits
44 Commits
defect2392
...
2276933
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
902199d9ce | ||
|
|
fa0a508973 | ||
|
|
985aa2e9ac | ||
|
|
2283aa8d94 | ||
|
|
32373a0ead | ||
|
|
36777b5a16 | ||
|
|
1d481d1740 | ||
|
|
f87cdac062 | ||
|
|
dc16ff2dfc | ||
|
|
9edb5a6bb5 | ||
|
|
0fcb2f9669 | ||
|
|
fdfdc4a3de | ||
|
|
39c55c1607 | ||
|
|
db2caf9a81 | ||
|
|
c858c1042d | ||
|
|
e243d87310 | ||
|
|
e0123656d7 | ||
|
|
6068194d26 | ||
|
|
c6ef6ba02d | ||
|
|
9095e39f94 | ||
|
|
437a9835f8 | ||
|
|
75176550f0 | ||
|
|
bbf89eaed8 | ||
|
|
4cb7c3eb26 | ||
|
|
21e2ecefc1 | ||
|
|
b48c3d7735 | ||
|
|
45b9f6b244 | ||
|
|
fe40e77ef8 | ||
|
|
8c062cd5de | ||
|
|
2bbd63f0b6 | ||
|
|
c8310021bc | ||
|
|
93392c8795 | ||
|
|
f98cdf39d6 | ||
|
|
ba66aa939b | ||
|
|
f9af595eee | ||
|
|
7ce8c7a5a1 | ||
|
|
9ad3f589cc | ||
|
|
9267b2cc18 | ||
|
|
c7d1b2dcdb | ||
|
|
a526410e44 | ||
|
|
58cb85156c | ||
|
|
dd5ccade2b | ||
|
|
38ebef6c02 | ||
|
|
7ad5862e8f |
@@ -36,7 +36,7 @@ export const CollapsedResourceTree: FunctionComponent<CollapsedResourceTreeProps
|
|||||||
id="collapseToggleLeftPaneButton"
|
id="collapseToggleLeftPaneButton"
|
||||||
role="button"
|
role="button"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
aria-label="Expand Tree"
|
aria-label={getApiShortDisplayName() + `Expand tree`}
|
||||||
onClick={toggleLeftPaneExpanded}
|
onClick={toggleLeftPaneExpanded}
|
||||||
onKeyPress={onKeyPressToggleLeftPaneExpanded}
|
onKeyPress={onKeyPressToggleLeftPaneExpanded}
|
||||||
ref={focusButton}
|
ref={focusButton}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { DatePicker, TextField } from "@fluentui/react";
|
import { DatePicker, TextField } from "@fluentui/react";
|
||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
|
import { attributeValueLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper";
|
||||||
|
|
||||||
export interface TableEntityProps {
|
export interface TableEntityProps {
|
||||||
entityValueLabel?: string;
|
entityValueLabel?: string;
|
||||||
@@ -61,6 +62,7 @@ export const EntityValue: FunctionComponent<TableEntityProps> = ({
|
|||||||
placeholder={entityValuePlaceholder}
|
placeholder={entityValuePlaceholder}
|
||||||
value={typeof entityValue === "string" ? entityValue : ""}
|
value={typeof entityValue === "string" ? entityValue : ""}
|
||||||
onChange={onEntityValueChange}
|
onChange={onEntityValueChange}
|
||||||
|
ariaLabel={attributeValueLabel}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export const ResourceTreeContainer: FunctionComponent<ResourceTreeContainerProps
|
|||||||
role="button"
|
role="button"
|
||||||
data-bind="click: onRefreshResourcesClick, clickBubble: false, event: { keypress: onRefreshDatabasesKeyPress }"
|
data-bind="click: onRefreshResourcesClick, clickBubble: false, event: { keypress: onRefreshDatabasesKeyPress }"
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
aria-label="Refresh tree"
|
aria-label={getApiShortDisplayName() + `Refresh tree`}
|
||||||
title="Refresh tree"
|
title="Refresh tree"
|
||||||
>
|
>
|
||||||
<img className="refreshcol" src={refreshImg} alt="Refresh Tree" />
|
<img className="refreshcol" src={refreshImg} alt="Refresh Tree" />
|
||||||
@@ -63,7 +63,7 @@ export const ResourceTreeContainer: FunctionComponent<ResourceTreeContainerProps
|
|||||||
onClick={toggleLeftPaneExpanded}
|
onClick={toggleLeftPaneExpanded}
|
||||||
onKeyPress={onKeyPressToggleLeftPaneExpanded}
|
onKeyPress={onKeyPressToggleLeftPaneExpanded}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
aria-label="Collapse Tree"
|
aria-label={getApiShortDisplayName() + `Collapse Tree`}
|
||||||
title="Collapse Tree"
|
title="Collapse Tree"
|
||||||
ref={focusButton}
|
ref={focusButton}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import {
|
|||||||
import React, { FunctionComponent } from "react";
|
import React, { FunctionComponent } from "react";
|
||||||
import DeleteIcon from "../../images/delete.svg";
|
import DeleteIcon from "../../images/delete.svg";
|
||||||
import EditIcon from "../../images/Edit_entity.svg";
|
import EditIcon from "../../images/Edit_entity.svg";
|
||||||
|
import { attributeNameLabel, dataTypeLabel } from "../Explorer/Panes/Tables/Validators/EntityTableHelper";
|
||||||
import { CassandraType, TableType } from "../Explorer/Tables/Constants";
|
import { CassandraType, TableType } from "../Explorer/Tables/Constants";
|
||||||
import { userContext } from "../UserContext";
|
import { userContext } from "../UserContext";
|
||||||
import { EntityValue } from "./EntityValue";
|
import { EntityValue } from "./EntityValue";
|
||||||
@@ -36,7 +37,7 @@ export interface TableEntityProps {
|
|||||||
onDeleteEntity?: () => void;
|
onDeleteEntity?: () => void;
|
||||||
onEditEntity?: () => void;
|
onEditEntity?: () => void;
|
||||||
onEntityPropertyChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
onEntityPropertyChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
||||||
onEntityTypeChange: (event: React.FormEvent<HTMLElement>, selectedParam: IDropdownOption) => void;
|
onEntityTypeChange: (event: React.FormEvent<HTMLElement>, selectedParam: IDropdownOption) => void
|
||||||
onEntityValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
onEntityValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
||||||
onSelectDate: (date: Date | null | undefined) => void;
|
onSelectDate: (date: Date | null | undefined) => void;
|
||||||
onEntityTimeValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
onEntityTimeValueChange: (event: React.FormEvent<HTMLElement>, newInput?: string) => void;
|
||||||
@@ -113,6 +114,7 @@ export const TableEntity: FunctionComponent<TableEntityProps> = ({
|
|||||||
value={entityProperty}
|
value={entityProperty}
|
||||||
onChange={onEntityPropertyChange}
|
onChange={onEntityPropertyChange}
|
||||||
required
|
required
|
||||||
|
ariaLabel={attributeNameLabel}
|
||||||
/>
|
/>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
label={entityTypeLabel && entityTypeLabel}
|
label={entityTypeLabel && entityTypeLabel}
|
||||||
@@ -122,6 +124,7 @@ export const TableEntity: FunctionComponent<TableEntityProps> = ({
|
|||||||
disabled={isPropertyTypeDisable}
|
disabled={isPropertyTypeDisable}
|
||||||
id="entityTypeId"
|
id="entityTypeId"
|
||||||
styles={dropdownStyles}
|
styles={dropdownStyles}
|
||||||
|
ariaLabel={dataTypeLabel}
|
||||||
/>
|
/>
|
||||||
<EntityValue
|
<EntityValue
|
||||||
entityValueLabel={entityValueLabel}
|
entityValueLabel={entityValueLabel}
|
||||||
@@ -142,7 +145,6 @@ export const TableEntity: FunctionComponent<TableEntityProps> = ({
|
|||||||
{...imageProps}
|
{...imageProps}
|
||||||
src={EditIcon}
|
src={EditIcon}
|
||||||
alt="editEntity"
|
alt="editEntity"
|
||||||
id="editEntity"
|
|
||||||
onClick={onEditEntity}
|
onClick={onEditEntity}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onKeyPress={handleKeyPress}
|
onKeyPress={handleKeyPress}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export class AccordionItemComponent extends React.Component<AccordionItemCompone
|
|||||||
<img
|
<img
|
||||||
className="expandCollapseIcon"
|
className="expandCollapseIcon"
|
||||||
src={this.state.isExpanded ? TriangleDownIcon : TriangleRightIcon}
|
src={this.state.isExpanded ? TriangleDownIcon : TriangleRightIcon}
|
||||||
alt="Hide"
|
alt={this.state.isExpanded ? `${this.props.title} hide` : `${this.props.title} expand`}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
role="button"
|
role="button"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ import {
|
|||||||
import {
|
import {
|
||||||
ChangeFeedPolicyState,
|
ChangeFeedPolicyState,
|
||||||
GeospatialConfigType,
|
GeospatialConfigType,
|
||||||
|
getSanitizedInputValue,
|
||||||
IsComponentDirtyResult,
|
IsComponentDirtyResult,
|
||||||
|
isDirty,
|
||||||
TtlOff,
|
TtlOff,
|
||||||
TtlOn,
|
TtlOn,
|
||||||
TtlOnNoDefault,
|
TtlOnNoDefault,
|
||||||
TtlType,
|
TtlType,
|
||||||
getSanitizedInputValue,
|
|
||||||
isDirty,
|
|
||||||
} from "../SettingsUtils";
|
} from "../SettingsUtils";
|
||||||
import { ToolTipLabelComponent } from "./ToolTipLabelComponent";
|
import { ToolTipLabelComponent } from "./ToolTipLabelComponent";
|
||||||
|
|
||||||
@@ -55,18 +55,6 @@ export interface SubSettingsComponentProps {
|
|||||||
onSubSettingsSaveableChange: (isSubSettingsSaveable: boolean) => void;
|
onSubSettingsSaveableChange: (isSubSettingsSaveable: boolean) => void;
|
||||||
onSubSettingsDiscardableChange: (isSubSettingsDiscardable: boolean) => void;
|
onSubSettingsDiscardableChange: (isSubSettingsDiscardable: boolean) => void;
|
||||||
}
|
}
|
||||||
const stylingforvisuallyhiddenspan = {
|
|
||||||
position: "absolute",
|
|
||||||
|
|
||||||
width: "1px",
|
|
||||||
height: "1px",
|
|
||||||
margin: "-1px",
|
|
||||||
border: 0,
|
|
||||||
padding: 0,
|
|
||||||
|
|
||||||
clip: "rect(0 0 0 0)",
|
|
||||||
overflow: "hidden",
|
|
||||||
};
|
|
||||||
|
|
||||||
export class SubSettingsComponent extends React.Component<SubSettingsComponentProps> {
|
export class SubSettingsComponent extends React.Component<SubSettingsComponentProps> {
|
||||||
private shouldCheckComponentIsDirty = true;
|
private shouldCheckComponentIsDirty = true;
|
||||||
@@ -209,26 +197,17 @@ export class SubSettingsComponent extends React.Component<SubSettingsComponentPr
|
|||||||
</MessageBar>
|
</MessageBar>
|
||||||
)}
|
)}
|
||||||
{this.props.timeToLive === TtlType.On && (
|
{this.props.timeToLive === TtlType.On && (
|
||||||
<div>
|
<TextField
|
||||||
<span id="timetoliveon" style={stylingforvisuallyhiddenspan}>
|
id="timeToLiveSeconds"
|
||||||
Time to live on
|
styles={getTextFieldStyles(this.props.timeToLiveSeconds, this.props.timeToLiveSecondsBaseline)}
|
||||||
</span>
|
type="number"
|
||||||
<TextField
|
required
|
||||||
id="timeToLiveSeconds"
|
min={1}
|
||||||
styles={getTextFieldStyles(this.props.timeToLiveSeconds, this.props.timeToLiveSecondsBaseline)}
|
max={Int32.Max}
|
||||||
type="number"
|
value={this.props.timeToLiveSeconds?.toString()}
|
||||||
required
|
onChange={this.onTimeToLiveSecondsChange}
|
||||||
min={1}
|
suffix="second(s)"
|
||||||
max={Int32.Max}
|
/>
|
||||||
value={this.props.timeToLiveSeconds?.toString()}
|
|
||||||
onChange={this.onTimeToLiveSecondsChange}
|
|
||||||
suffix="second(s)"
|
|
||||||
aria-labelledby="timetoliveon secondssuffixforscreenreader"
|
|
||||||
/>
|
|
||||||
<span id="secondssuffixforscreenreader" style={stylingforvisuallyhiddenspan}>
|
|
||||||
Second(s)
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -59,68 +59,31 @@ exports[`SubSettingsComponent analyticalTimeToLive hidden 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div>
|
<StyledTextFieldBase
|
||||||
<span
|
id="timeToLiveSeconds"
|
||||||
id="timetoliveon"
|
max={2147483647}
|
||||||
style={
|
min={1}
|
||||||
Object {
|
onChange={[Function]}
|
||||||
"border": 0,
|
required={true}
|
||||||
"clip": "rect(0 0 0 0)",
|
styles={
|
||||||
"height": "1px",
|
Object {
|
||||||
"margin": "-1px",
|
"fieldGroup": Object {
|
||||||
"overflow": "hidden",
|
"borderColor": "",
|
||||||
"padding": 0,
|
"height": 25,
|
||||||
"position": "absolute",
|
"selectors": Object {
|
||||||
"width": "1px",
|
":disabled": Object {
|
||||||
}
|
"backgroundColor": undefined,
|
||||||
}
|
"borderColor": undefined,
|
||||||
>
|
|
||||||
Time to live on
|
|
||||||
</span>
|
|
||||||
<StyledTextFieldBase
|
|
||||||
aria-labelledby="timetoliveon secondssuffixforscreenreader"
|
|
||||||
id="timeToLiveSeconds"
|
|
||||||
max={2147483647}
|
|
||||||
min={1}
|
|
||||||
onChange={[Function]}
|
|
||||||
required={true}
|
|
||||||
styles={
|
|
||||||
Object {
|
|
||||||
"fieldGroup": Object {
|
|
||||||
"borderColor": "",
|
|
||||||
"height": 25,
|
|
||||||
"selectors": Object {
|
|
||||||
":disabled": Object {
|
|
||||||
"backgroundColor": undefined,
|
|
||||||
"borderColor": undefined,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"width": 300,
|
|
||||||
},
|
},
|
||||||
}
|
"width": 300,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
suffix="second(s)"
|
}
|
||||||
type="number"
|
suffix="second(s)"
|
||||||
value="1000"
|
type="number"
|
||||||
/>
|
value="1000"
|
||||||
<span
|
/>
|
||||||
id="secondssuffixforscreenreader"
|
|
||||||
style={
|
|
||||||
Object {
|
|
||||||
"border": 0,
|
|
||||||
"clip": "rect(0 0 0 0)",
|
|
||||||
"height": "1px",
|
|
||||||
"margin": "-1px",
|
|
||||||
"overflow": "hidden",
|
|
||||||
"padding": 0,
|
|
||||||
"position": "absolute",
|
|
||||||
"width": "1px",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Second(s)
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<StyledChoiceGroup
|
<StyledChoiceGroup
|
||||||
id="geoSpatialConfig"
|
id="geoSpatialConfig"
|
||||||
@@ -320,68 +283,31 @@ exports[`SubSettingsComponent analyticalTimeToLiveSeconds hidden 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div>
|
<StyledTextFieldBase
|
||||||
<span
|
id="timeToLiveSeconds"
|
||||||
id="timetoliveon"
|
max={2147483647}
|
||||||
style={
|
min={1}
|
||||||
Object {
|
onChange={[Function]}
|
||||||
"border": 0,
|
required={true}
|
||||||
"clip": "rect(0 0 0 0)",
|
styles={
|
||||||
"height": "1px",
|
Object {
|
||||||
"margin": "-1px",
|
"fieldGroup": Object {
|
||||||
"overflow": "hidden",
|
"borderColor": "",
|
||||||
"padding": 0,
|
"height": 25,
|
||||||
"position": "absolute",
|
"selectors": Object {
|
||||||
"width": "1px",
|
":disabled": Object {
|
||||||
}
|
"backgroundColor": undefined,
|
||||||
}
|
"borderColor": undefined,
|
||||||
>
|
|
||||||
Time to live on
|
|
||||||
</span>
|
|
||||||
<StyledTextFieldBase
|
|
||||||
aria-labelledby="timetoliveon secondssuffixforscreenreader"
|
|
||||||
id="timeToLiveSeconds"
|
|
||||||
max={2147483647}
|
|
||||||
min={1}
|
|
||||||
onChange={[Function]}
|
|
||||||
required={true}
|
|
||||||
styles={
|
|
||||||
Object {
|
|
||||||
"fieldGroup": Object {
|
|
||||||
"borderColor": "",
|
|
||||||
"height": 25,
|
|
||||||
"selectors": Object {
|
|
||||||
":disabled": Object {
|
|
||||||
"backgroundColor": undefined,
|
|
||||||
"borderColor": undefined,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"width": 300,
|
|
||||||
},
|
},
|
||||||
}
|
"width": 300,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
suffix="second(s)"
|
}
|
||||||
type="number"
|
suffix="second(s)"
|
||||||
value="1000"
|
type="number"
|
||||||
/>
|
value="1000"
|
||||||
<span
|
/>
|
||||||
id="secondssuffixforscreenreader"
|
|
||||||
style={
|
|
||||||
Object {
|
|
||||||
"border": 0,
|
|
||||||
"clip": "rect(0 0 0 0)",
|
|
||||||
"height": "1px",
|
|
||||||
"margin": "-1px",
|
|
||||||
"overflow": "hidden",
|
|
||||||
"padding": 0,
|
|
||||||
"position": "absolute",
|
|
||||||
"width": "1px",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Second(s)
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<StyledChoiceGroup
|
<StyledChoiceGroup
|
||||||
id="geoSpatialConfig"
|
id="geoSpatialConfig"
|
||||||
@@ -634,68 +560,31 @@ exports[`SubSettingsComponent changeFeedPolicy hidden 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div>
|
<StyledTextFieldBase
|
||||||
<span
|
id="timeToLiveSeconds"
|
||||||
id="timetoliveon"
|
max={2147483647}
|
||||||
style={
|
min={1}
|
||||||
Object {
|
onChange={[Function]}
|
||||||
"border": 0,
|
required={true}
|
||||||
"clip": "rect(0 0 0 0)",
|
styles={
|
||||||
"height": "1px",
|
Object {
|
||||||
"margin": "-1px",
|
"fieldGroup": Object {
|
||||||
"overflow": "hidden",
|
"borderColor": "",
|
||||||
"padding": 0,
|
"height": 25,
|
||||||
"position": "absolute",
|
"selectors": Object {
|
||||||
"width": "1px",
|
":disabled": Object {
|
||||||
}
|
"backgroundColor": undefined,
|
||||||
}
|
"borderColor": undefined,
|
||||||
>
|
|
||||||
Time to live on
|
|
||||||
</span>
|
|
||||||
<StyledTextFieldBase
|
|
||||||
aria-labelledby="timetoliveon secondssuffixforscreenreader"
|
|
||||||
id="timeToLiveSeconds"
|
|
||||||
max={2147483647}
|
|
||||||
min={1}
|
|
||||||
onChange={[Function]}
|
|
||||||
required={true}
|
|
||||||
styles={
|
|
||||||
Object {
|
|
||||||
"fieldGroup": Object {
|
|
||||||
"borderColor": "",
|
|
||||||
"height": 25,
|
|
||||||
"selectors": Object {
|
|
||||||
":disabled": Object {
|
|
||||||
"backgroundColor": undefined,
|
|
||||||
"borderColor": undefined,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"width": 300,
|
|
||||||
},
|
},
|
||||||
}
|
"width": 300,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
suffix="second(s)"
|
}
|
||||||
type="number"
|
suffix="second(s)"
|
||||||
value="1000"
|
type="number"
|
||||||
/>
|
value="1000"
|
||||||
<span
|
/>
|
||||||
id="secondssuffixforscreenreader"
|
|
||||||
style={
|
|
||||||
Object {
|
|
||||||
"border": 0,
|
|
||||||
"clip": "rect(0 0 0 0)",
|
|
||||||
"height": "1px",
|
|
||||||
"margin": "-1px",
|
|
||||||
"overflow": "hidden",
|
|
||||||
"padding": 0,
|
|
||||||
"position": "absolute",
|
|
||||||
"width": "1px",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Second(s)
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<StyledChoiceGroup
|
<StyledChoiceGroup
|
||||||
id="geoSpatialConfig"
|
id="geoSpatialConfig"
|
||||||
@@ -910,68 +799,31 @@ exports[`SubSettingsComponent renders 1`] = `
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div>
|
<StyledTextFieldBase
|
||||||
<span
|
id="timeToLiveSeconds"
|
||||||
id="timetoliveon"
|
max={2147483647}
|
||||||
style={
|
min={1}
|
||||||
Object {
|
onChange={[Function]}
|
||||||
"border": 0,
|
required={true}
|
||||||
"clip": "rect(0 0 0 0)",
|
styles={
|
||||||
"height": "1px",
|
Object {
|
||||||
"margin": "-1px",
|
"fieldGroup": Object {
|
||||||
"overflow": "hidden",
|
"borderColor": "",
|
||||||
"padding": 0,
|
"height": 25,
|
||||||
"position": "absolute",
|
"selectors": Object {
|
||||||
"width": "1px",
|
":disabled": Object {
|
||||||
}
|
"backgroundColor": undefined,
|
||||||
}
|
"borderColor": undefined,
|
||||||
>
|
|
||||||
Time to live on
|
|
||||||
</span>
|
|
||||||
<StyledTextFieldBase
|
|
||||||
aria-labelledby="timetoliveon secondssuffixforscreenreader"
|
|
||||||
id="timeToLiveSeconds"
|
|
||||||
max={2147483647}
|
|
||||||
min={1}
|
|
||||||
onChange={[Function]}
|
|
||||||
required={true}
|
|
||||||
styles={
|
|
||||||
Object {
|
|
||||||
"fieldGroup": Object {
|
|
||||||
"borderColor": "",
|
|
||||||
"height": 25,
|
|
||||||
"selectors": Object {
|
|
||||||
":disabled": Object {
|
|
||||||
"backgroundColor": undefined,
|
|
||||||
"borderColor": undefined,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"width": 300,
|
|
||||||
},
|
},
|
||||||
}
|
"width": 300,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
suffix="second(s)"
|
}
|
||||||
type="number"
|
suffix="second(s)"
|
||||||
value="1000"
|
type="number"
|
||||||
/>
|
value="1000"
|
||||||
<span
|
/>
|
||||||
id="secondssuffixforscreenreader"
|
|
||||||
style={
|
|
||||||
Object {
|
|
||||||
"border": 0,
|
|
||||||
"clip": "rect(0 0 0 0)",
|
|
||||||
"height": "1px",
|
|
||||||
"margin": "-1px",
|
|
||||||
"overflow": "hidden",
|
|
||||||
"padding": 0,
|
|
||||||
"position": "absolute",
|
|
||||||
"width": "1px",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
>
|
|
||||||
Second(s)
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</Stack>
|
</Stack>
|
||||||
<StyledChoiceGroup
|
<StyledChoiceGroup
|
||||||
id="geoSpatialConfig"
|
id="geoSpatialConfig"
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ export const ThroughputInput: FunctionComponent<ThroughputInputProps> = ({
|
|||||||
step={AutoPilotUtils.autoPilotIncrementStep}
|
step={AutoPilotUtils.autoPilotIncrementStep}
|
||||||
min={AutoPilotUtils.autoPilotThroughput1K}
|
min={AutoPilotUtils.autoPilotThroughput1K}
|
||||||
value={throughput.toString()}
|
value={throughput.toString()}
|
||||||
aria-label="Max request units per second"
|
ariaLabel={`${isDatabase ? "Database" : getCollectionName()} max RU/s`}
|
||||||
required={true}
|
required={true}
|
||||||
errorMessage={throughputError}
|
errorMessage={throughputError}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1640,7 +1640,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</Stack>
|
</Stack>
|
||||||
<StyledTextFieldBase
|
<StyledTextFieldBase
|
||||||
aria-label="Max request units per second"
|
ariaLabel="Container max RU/s"
|
||||||
errorMessage=""
|
errorMessage=""
|
||||||
id="autoscaleRUValueField"
|
id="autoscaleRUValueField"
|
||||||
key=".0:$.2"
|
key=".0:$.2"
|
||||||
@@ -1663,7 +1663,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
|
|||||||
value="4000"
|
value="4000"
|
||||||
>
|
>
|
||||||
<TextFieldBase
|
<TextFieldBase
|
||||||
aria-label="Max request units per second"
|
ariaLabel="Container max RU/s"
|
||||||
deferredValidationTime={200}
|
deferredValidationTime={200}
|
||||||
errorMessage=""
|
errorMessage=""
|
||||||
id="autoscaleRUValueField"
|
id="autoscaleRUValueField"
|
||||||
@@ -1961,6 +1961,7 @@ exports[`ThroughputInput Pane should render Default properly 1`] = `
|
|||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
aria-invalid={false}
|
aria-invalid={false}
|
||||||
|
aria-label="Container max RU/s"
|
||||||
className="ms-TextField-field field-64"
|
className="ms-TextField-field field-64"
|
||||||
id="autoscaleRUValueField"
|
id="autoscaleRUValueField"
|
||||||
min={1000}
|
min={1000}
|
||||||
|
|||||||
@@ -729,6 +729,7 @@ export class D3ForceGraph implements GraphRenderer {
|
|||||||
var iconGroup = newNodes
|
var iconGroup = newNodes
|
||||||
.append("g")
|
.append("g")
|
||||||
.attr("class", "iconContainer")
|
.attr("class", "iconContainer")
|
||||||
|
.attr("role", "group")
|
||||||
.attr("tabindex", 0)
|
.attr("tabindex", 0)
|
||||||
.attr("aria-label", (d: D3Node) => {
|
.attr("aria-label", (d: D3Node) => {
|
||||||
return this.retrieveNodeCaption(d);
|
return this.retrieveNodeCaption(d);
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ export class MiddlePaneComponent extends React.Component<MiddlePaneComponentProp
|
|||||||
onClick={this.props.toggleExpandGraph}
|
onClick={this.props.toggleExpandGraph}
|
||||||
role="button"
|
role="button"
|
||||||
aria-expanded={this.props.isTabsContentExpanded}
|
aria-expanded={this.props.isTabsContentExpanded}
|
||||||
aria-name="View graph in full screen"
|
aria-label={
|
||||||
|
this.props.isTabsContentExpanded ? "Collapse graph to minimized view" : "View graph in full screen"
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={this.props.isTabsContentExpanded ? CollapseArrowIcon : ExpandIcon}
|
src={this.props.isTabsContentExpanded ? CollapseArrowIcon : ExpandIcon}
|
||||||
|
|||||||
@@ -107,11 +107,11 @@ describe("New Vertex Component", () => {
|
|||||||
it("should call onTypeChange method on type dropdown change", () => {
|
it("should call onTypeChange method on type dropdown change", () => {
|
||||||
const DOWN_ARROW = { keyCode: 40 };
|
const DOWN_ARROW = { keyCode: 40 };
|
||||||
const onTypeChange = jest.fn();
|
const onTypeChange = jest.fn();
|
||||||
const dropdown = screen.getByRole("listbox");
|
const dropdown = screen.getByRole("combobox");
|
||||||
dropdown.onclick = onTypeChange();
|
dropdown.onclick = onTypeChange();
|
||||||
dropdown.onkeydown = onTypeChange();
|
dropdown.onkeydown = onTypeChange();
|
||||||
|
|
||||||
fireEvent.keyDown(screen.getByRole("listbox"), DOWN_ARROW);
|
fireEvent.keyDown(screen.getByRole("combobox"), DOWN_ARROW);
|
||||||
fireEvent.click(screen.getByText(/number/));
|
fireEvent.click(screen.getByText(/number/));
|
||||||
expect(onTypeChange).toHaveBeenCalled();
|
expect(onTypeChange).toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
|||||||
type="text"
|
type="text"
|
||||||
id="propertyKeyNewVertexPane"
|
id="propertyKeyNewVertexPane"
|
||||||
componentRef={input}
|
componentRef={input}
|
||||||
|
aria-required="true"
|
||||||
placeholder="Key"
|
placeholder="Key"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
aria-label={`Enter value for propery ${index + 1}`}
|
aria-label={`Enter value for propery ${index + 1}`}
|
||||||
@@ -152,6 +153,8 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
|||||||
onChange={(event: React.ChangeEvent<HTMLInputElement>) => onKeyChange(event, index)}
|
onChange={(event: React.ChangeEvent<HTMLInputElement>) => onKeyChange(event, index)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<span className="mandatoryStar">* </span>
|
||||||
|
|
||||||
<div className="valueCol">
|
<div className="valueCol">
|
||||||
<TextField
|
<TextField
|
||||||
className="edgeInput"
|
className="edgeInput"
|
||||||
@@ -165,7 +168,7 @@ export const NewVertexComponent: FunctionComponent<INewVertexComponentProps> = (
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<Dropdown
|
<Dropdown
|
||||||
role="listbox"
|
role="combobox"
|
||||||
placeholder="Select an option"
|
placeholder="Select an option"
|
||||||
defaultSelectedKey={data.values[0].type}
|
defaultSelectedKey={data.values[0].type}
|
||||||
style={{ width: 100 }}
|
style={{ width: 100 }}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export const PanelInfoErrorComponent: React.FunctionComponent<PanelInfoErrorProp
|
|||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
{showErrorDetails && (
|
{showErrorDetails && (
|
||||||
<a className="paneErrorLink" role="link" onClick={expandConsole} tabIndex={0} onKeyPress={expandConsole}>
|
<a className="paneErrorLink" role="button" onClick={expandConsole} tabIndex={0} onKeyPress={expandConsole}>
|
||||||
More details
|
More details
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { DefaultButton, IconButton, Image, Modal, PrimaryButton, Stack, Text } from "@fluentui/react";
|
import { DefaultButton, IconButton, Image, Modal, PrimaryButton, Stack, Text } from "@fluentui/react";
|
||||||
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
|
||||||
import { traceSuccess } from "Shared/Telemetry/TelemetryProcessor";
|
|
||||||
import { userContext } from "UserContext";
|
|
||||||
import { useCarousel } from "hooks/useCarousel";
|
import { useCarousel } from "hooks/useCarousel";
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
import Youtube from "react-youtube";
|
import Youtube from "react-youtube";
|
||||||
|
import { Action } from "Shared/Telemetry/TelemetryConstants";
|
||||||
|
import { traceSuccess } from "Shared/Telemetry/TelemetryProcessor";
|
||||||
|
import { userContext } from "UserContext";
|
||||||
import Image1 from "../../../images/CarouselImage1.svg";
|
import Image1 from "../../../images/CarouselImage1.svg";
|
||||||
import Image2 from "../../../images/CarouselImage2.svg";
|
import Image2 from "../../../images/CarouselImage2.svg";
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ export const QuickstartCarousel: React.FC<QuickstartCarouselProps> = ({
|
|||||||
<Stack>
|
<Stack>
|
||||||
<Stack horizontal horizontalAlign="space-between" style={{ padding: 16 }}>
|
<Stack horizontal horizontalAlign="space-between" style={{ padding: 16 }}>
|
||||||
<Text variant="xLarge">{getHeaderText(page)}</Text>
|
<Text variant="xLarge">{getHeaderText(page)}</Text>
|
||||||
<IconButton iconProps={{ iconName: "Cancel" }} onClick={() => setPage(4)} ariaLabel="Close"/>
|
<IconButton iconProps={{ iconName: "Cancel" }} onClick={() => setPage(4)} />
|
||||||
</Stack>
|
</Stack>
|
||||||
{getContent(page)}
|
{getContent(page)}
|
||||||
<Text variant="medium" style={{ padding: "0 16px" }}>
|
<Text variant="medium" style={{ padding: "0 16px" }}>
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import { SplashScreen } from "Explorer/SplashScreen/SplashScreen";
|
|||||||
import { ConnectTab } from "Explorer/Tabs/ConnectTab";
|
import { ConnectTab } from "Explorer/Tabs/ConnectTab";
|
||||||
import { PostgresConnectTab } from "Explorer/Tabs/PostgresConnectTab";
|
import { PostgresConnectTab } from "Explorer/Tabs/PostgresConnectTab";
|
||||||
import { QuickstartTab } from "Explorer/Tabs/QuickstartTab";
|
import { QuickstartTab } from "Explorer/Tabs/QuickstartTab";
|
||||||
|
import { userContext } from "UserContext";
|
||||||
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
import { useTeachingBubble } from "hooks/useTeachingBubble";
|
||||||
import ko from "knockout";
|
import ko from "knockout";
|
||||||
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
import React, { MutableRefObject, useEffect, useRef, useState } from "react";
|
||||||
import { userContext } from "UserContext";
|
|
||||||
import loadingIcon from "../../../images/circular_loader_black_16x16.gif";
|
import loadingIcon from "../../../images/circular_loader_black_16x16.gif";
|
||||||
import errorIcon from "../../../images/close-black.svg";
|
import errorIcon from "../../../images/close-black.svg";
|
||||||
import { useObservable } from "../../hooks/useObservable";
|
import { useObservable } from "../../hooks/useObservable";
|
||||||
@@ -102,22 +102,20 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
|
|||||||
ref={focusTab}
|
ref={focusTab}
|
||||||
>
|
>
|
||||||
<span className="tabNavContentContainer">
|
<span className="tabNavContentContainer">
|
||||||
<a data-toggle="tab" href={"#" + tabId} tabIndex={-1}>
|
<div className="tab_Content">
|
||||||
<div className="tab_Content">
|
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
|
||||||
<span className="statusIconContainer" style={{ width: tabKind === ReactTabKind.Home ? 0 : 18 }}>
|
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
|
||||||
{useObservable(tab?.isExecutionError || ko.observable(false)) && <ErrorIcon tab={tab} active={active} />}
|
{useObservable(tab?.isExecuting || ko.observable(false)) && (
|
||||||
{useObservable(tab?.isExecuting || ko.observable(false)) && (
|
<img className="loadingIcon" title="Loading" src={loadingIcon} alt="Loading" />
|
||||||
<img className="loadingIcon" title="Loading" src={loadingIcon} alt="Loading" />
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
<span className="tabNavText">{useObservable(tab?.tabTitle || ko.observable(ReactTabKind[tabKind]))}</span>
|
|
||||||
{tabKind !== ReactTabKind.Home && (
|
|
||||||
<span className="tabIconSection">
|
|
||||||
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
|
|
||||||
</span>
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</span>
|
||||||
</a>
|
<span className="tabNavText">{useObservable(tab?.tabTitle || ko.observable(ReactTabKind[tabKind]))}</span>
|
||||||
|
{tabKind !== ReactTabKind.Home && (
|
||||||
|
<span className="tabIconSection">
|
||||||
|
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -135,7 +135,6 @@
|
|||||||
"./src/quickstart.ts",
|
"./src/quickstart.ts",
|
||||||
"./src/setupTests.ts",
|
"./src/setupTests.ts",
|
||||||
"./src/userContext.test.ts",
|
"./src/userContext.test.ts",
|
||||||
"src/Common/EntityValue.tsx",
|
|
||||||
"./src/Platform/Hosted/Components/SwitchAccount.tsx",
|
"./src/Platform/Hosted/Components/SwitchAccount.tsx",
|
||||||
"./src/Platform/Hosted/Components/SwitchSubscription.tsx"
|
"./src/Platform/Hosted/Components/SwitchSubscription.tsx"
|
||||||
],
|
],
|
||||||
@@ -163,4 +162,4 @@
|
|||||||
"src/Terminal/**/*",
|
"src/Terminal/**/*",
|
||||||
"src/Utils/arm/**/*"
|
"src/Utils/arm/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user