chrome-devtools-frontend 1.0.924680 → 1.0.925026

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.
@@ -4928,8 +4928,8 @@
4928
4928
  "panels/issues/HiddenIssuesRow.ts | hiddenIssues": {
4929
4929
  "message": "Hidden issues"
4930
4930
  },
4931
- "panels/issues/HiddenIssuesRow.ts | unhideIssues": {
4932
- "message": "Unhide all issues"
4931
+ "panels/issues/HiddenIssuesRow.ts | unhideAll": {
4932
+ "message": "Unhide all"
4933
4933
  },
4934
4934
  "panels/issues/issues-meta.ts | cspViolations": {
4935
4935
  "message": "CSP Violations"
@@ -4928,8 +4928,8 @@
4928
4928
  "panels/issues/HiddenIssuesRow.ts | hiddenIssues": {
4929
4929
  "message": "Ĥíd̂d́êń îśŝúêś"
4930
4930
  },
4931
- "panels/issues/HiddenIssuesRow.ts | unhideIssues": {
4932
- "message": "Ûńĥíd̂é âĺl̂ íŝśûéŝ"
4931
+ "panels/issues/HiddenIssuesRow.ts | unhideAll": {
4932
+ "message": "Ûńĥíd̂é âĺl̂"
4933
4933
  },
4934
4934
  "panels/issues/issues-meta.ts | cspViolations": {
4935
4935
  "message": "ĈŚP̂ V́îól̂át̂íôńŝ"
@@ -535,7 +535,7 @@ export class DeviceOrientation {
535
535
  valid: boolean,
536
536
  errorMessage: (string|undefined),
537
537
  } {
538
- return DeviceOrientation.angleRangeValidator(value, {minimum: 0, maximum: 360});
538
+ return DeviceOrientation.angleRangeValidator(value, {minimum: -180, maximum: 180});
539
539
  }
540
540
 
541
541
  static betaAngleValidator(value: string): {
@@ -5,7 +5,6 @@
5
5
  import * as i18n from '../../core/i18n/i18n.js';
6
6
  import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
7
7
  import * as Adorners from '../../ui/components/adorners/adorners.js';
8
- import * as IconButton from '../../ui/components/icon_button/icon_button.js';
9
8
  import * as UI from '../../ui/legacy/legacy.js';
10
9
 
11
10
  const UIStrings = {
@@ -14,9 +13,9 @@ const UIStrings = {
14
13
  */
15
14
  hiddenIssues: 'Hidden issues',
16
15
  /**
17
- * @description Title for the Unhide all issues button
16
+ * @description Label for the button to unhide all hidden issues
18
17
  */
19
- unhideIssues: 'Unhide all issues',
18
+ unhideAll: 'Unhide all',
20
19
  };
21
20
 
22
21
  const str_ = i18n.i18n.registerUIStrings('panels/issues/HiddenIssuesRow.ts', UIStrings);
@@ -35,15 +34,11 @@ export class HiddenIssuesRow extends UI.TreeOutline.TreeElement {
35
34
  }
36
35
 
37
36
  private appendHeader(): void {
38
- const unhideAllIssuesBtn = new IconButton.IconButton.IconButton();
39
- unhideAllIssuesBtn.classList.add('unhide-all-issues-button');
40
- unhideAllIssuesBtn.title = i18nString(UIStrings.unhideIssues);
41
- unhideAllIssuesBtn.data = {
42
- groups: [{iconName: 'refresh_12x12_icon', iconHeight: '12px', iconWidth: '12px', text: ''}],
43
- clickHandler: (): void => IssuesManager.IssuesManager.IssuesManager.instance().unhideAllIssues(),
44
- accessibleName: i18nString(UIStrings.unhideIssues),
45
- compact: true,
46
- };
37
+ const unhideAllIssuesBtn = UI.UIUtils.createTextButton(
38
+ i18nString(UIStrings.unhideAll),
39
+ (): void => IssuesManager.IssuesManager.IssuesManager.instance().unhideAllIssues(),
40
+ 'unhide-all-issues-button',
41
+ );
47
42
  const countAdorner = new Adorners.Adorner.Adorner();
48
43
  countAdorner.data = {
49
44
  name: 'countWrapper',
@@ -160,6 +160,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
160
160
  super(dom);
161
161
  this.beforePrint = null;
162
162
  this.afterPrint = null;
163
+ this._topbar._print = this._print.bind(this);
163
164
  }
164
165
 
165
166
  setBeforePrint(beforePrint: (() => void)|null): void {
@@ -451,7 +451,7 @@ export class SensorsView extends UI.Widget.VBox {
451
451
  title: i18nString(UIStrings.presets),
452
452
  value: [
453
453
  {title: i18nString(UIStrings.portrait), orientation: '[0, 90, 0]'},
454
- {title: i18nString(UIStrings.portraitUpsideDown), orientation: '[180, -90, 0]'},
454
+ {title: i18nString(UIStrings.portraitUpsideDown), orientation: '[-180, -90, 0]'},
455
455
  {title: i18nString(UIStrings.landscapeLeft), orientation: '[90, 0, -90]'},
456
456
  {title: i18nString(UIStrings.landscapeRight), orientation: '[90, -180, -90]'},
457
457
  {title: i18nString(UIStrings.displayUp), orientation: '[0, 0, 0]'},
@@ -518,6 +518,7 @@ export class SensorsView extends UI.Widget.VBox {
518
518
  this.enableOrientationFields(true);
519
519
  } else if (value === NonPresetOptions.Custom) {
520
520
  this.deviceOrientationOverrideEnabled = true;
521
+ this.resetDeviceOrientation();
521
522
  this.alphaElement.focus();
522
523
  } else {
523
524
  const parsedValue = JSON.parse(value);
@@ -777,7 +778,7 @@ export class PresetOrientations {
777
778
  title: i18nString(UIStrings.presets),
778
779
  value: [
779
780
  {title: i18nString(UIStrings.portrait), orientation: '[0, 90, 0]'},
780
- {title: i18nString(UIStrings.portraitUpsideDown), orientation: '[180, -90, 0]'},
781
+ {title: i18nString(UIStrings.portraitUpsideDown), orientation: '[-180, -90, 0]'},
781
782
  {title: i18nString(UIStrings.landscapeLeft), orientation: '[90, 0, -90]'},
782
783
  {title: i18nString(UIStrings.landscapeRight), orientation: '[90, -180, -90]'},
783
784
  {title: i18nString(UIStrings.displayUp), orientation: '[0, 0, 0]'},
@@ -222,16 +222,19 @@ export class UserAgentClientHintsForm extends HTMLElement {
222
222
  }
223
223
 
224
224
  private handleTreeExpand = (event: KeyboardEvent): void => {
225
- if (event.code === 'Space' || event.code === 'Enter') {
225
+ if (event.code === 'Space' || event.code === 'Enter' || event.code === 'ArrowLeft' || event.code === 'ArrowRight') {
226
226
  event.stopPropagation();
227
- this.handleTreeClick();
227
+ this.handleTreeClick(event.code);
228
228
  }
229
229
  };
230
230
 
231
- private handleTreeClick = (): void => {
231
+ private handleTreeClick = (key: string): void => {
232
232
  if (this.isFormDisabled) {
233
233
  return;
234
234
  }
235
+ if ((key === 'ArrowLeft' && !this.isFormOpened) || (key === 'ArrowRight' && this.isFormOpened)) {
236
+ return;
237
+ }
235
238
  this.isFormOpened = !this.isFormOpened;
236
239
  this.render();
237
240
  };
package/package.json CHANGED
@@ -55,5 +55,5 @@
55
55
  "unittest": "scripts/test/run_unittests.py --no-text-coverage",
56
56
  "watch": "third_party/node/node.py --output scripts/watch_build.js"
57
57
  },
58
- "version": "1.0.924680"
58
+ "version": "1.0.925026"
59
59
  }