@tylertech/forge 3.2.0 → 3.3.1

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.
Files changed (69) hide show
  1. package/custom-elements.json +117 -28
  2. package/dist/button/forge-button.css +6 -1
  3. package/dist/chips/forge-chips.css +1 -0
  4. package/dist/dialog/forge-dialog.css +483 -0
  5. package/dist/field/forge-field.css +2 -0
  6. package/dist/inline-message/forge-inline-message.css +2 -0
  7. package/dist/lib.js +1 -1
  8. package/dist/lib.js.map +4 -4
  9. package/dist/vscode.css-custom-data.json +20 -0
  10. package/dist/vscode.html-custom-data.json +12 -2
  11. package/esm/app-bar/app-bar/app-bar.d.ts +2 -0
  12. package/esm/app-bar/app-bar/app-bar.js +2 -0
  13. package/esm/app-bar/search/app-bar-search-adapter.js +0 -3
  14. package/esm/app-bar/search/app-bar-search.js +1 -1
  15. package/esm/autocomplete/autocomplete-adapter.d.ts +1 -1
  16. package/esm/autocomplete/autocomplete-adapter.js +8 -14
  17. package/esm/autocomplete/autocomplete-core.js +4 -1
  18. package/esm/bottom-sheet/bottom-sheet.js +1 -1
  19. package/esm/button/base/base-button-adapter.js +1 -1
  20. package/esm/button/button.d.ts +3 -0
  21. package/esm/button/button.js +4 -1
  22. package/esm/chip-field/chip-field.js +1 -1
  23. package/esm/chips/chip/chip.d.ts +1 -0
  24. package/esm/chips/chip/chip.js +2 -1
  25. package/esm/circular-progress/circular-progress.js +1 -1
  26. package/esm/deprecated/button/deprecated-button.js +1 -1
  27. package/esm/dialog/dialog.js +1 -1
  28. package/esm/field/field-adapter.d.ts +2 -0
  29. package/esm/field/field-adapter.js +4 -0
  30. package/esm/field/field-core.js +1 -0
  31. package/esm/field/field.js +1 -1
  32. package/esm/inline-message/inline-message.js +1 -1
  33. package/esm/list-dropdown/list-dropdown-utils.js +1 -0
  34. package/esm/paginator/paginator.js +1 -1
  35. package/esm/popover/popover-core.js +1 -1
  36. package/esm/select/select/select.js +1 -1
  37. package/esm/skip-link/skip-link-constants.d.ts +2 -0
  38. package/esm/skip-link/skip-link-constants.js +2 -1
  39. package/esm/skip-link/skip-link.d.ts +36 -12
  40. package/esm/skip-link/skip-link.js +55 -12
  41. package/esm/tabs/tab/tab-constants.d.ts +1 -3
  42. package/esm/tabs/tab/tab-constants.js +1 -3
  43. package/esm/tabs/tab/tab.d.ts +1 -1
  44. package/esm/tabs/tab/tab.js +1 -1
  45. package/esm/tabs/tab-bar/tab-bar-core.js +2 -1
  46. package/esm/tabs/tab-bar/tab-bar.d.ts +1 -1
  47. package/esm/tabs/tab-bar/tab-bar.js +1 -1
  48. package/esm/text-field/text-field-adapter.d.ts +8 -4
  49. package/esm/text-field/text-field-adapter.js +9 -4
  50. package/esm/text-field/text-field-constants.d.ts +2 -0
  51. package/esm/text-field/text-field-constants.js +2 -0
  52. package/esm/text-field/text-field-core.d.ts +2 -0
  53. package/esm/text-field/text-field-core.js +10 -3
  54. package/package.json +1 -1
  55. package/sass/button/_core.scss +5 -0
  56. package/sass/button/button.scss +6 -0
  57. package/sass/button/forge-button.scss +5 -0
  58. package/sass/chip-field/chip-field.scss +2 -1
  59. package/sass/chips/chip/chip.scss +1 -1
  60. package/sass/circular-progress/_core.scss +2 -2
  61. package/sass/core/styles/tokens/button/_tokens.scss +3 -1
  62. package/sass/core/styles/tokens/chips/chip/_tokens.scss +1 -0
  63. package/sass/dialog/_animations.scss +6 -6
  64. package/sass/dialog/dialog.scss +10 -10
  65. package/sass/field/_core.scss +1 -0
  66. package/sass/field/_core.theme.scss +4 -0
  67. package/sass/field/field.scss +5 -1
  68. package/sass/field/forge-field.scss +3 -1
  69. package/sass/inline-message/_core.scss +2 -0
@@ -1659,6 +1659,18 @@
1659
1659
  "description": "The cursor type of the button.",
1660
1660
  "name": "--forge-button-cursor"
1661
1661
  },
1662
+ {
1663
+ "description": "The transition duration of the button.",
1664
+ "name": "--forge-button-transition-duration"
1665
+ },
1666
+ {
1667
+ "description": "The transition timing of the button.",
1668
+ "name": "--forge-button-transition-timing"
1669
+ },
1670
+ {
1671
+ "description": "The inline padding of the button when using the text variant.",
1672
+ "name": "--forge-button-text-padding-inline"
1673
+ },
1662
1674
  {
1663
1675
  "description": "The background color of the filled button.",
1664
1676
  "name": "--forge-button-filled-background"
@@ -14768,6 +14780,15 @@
14768
14780
  "privacy": "private",
14769
14781
  "default": "false"
14770
14782
  },
14783
+ {
14784
+ "kind": "field",
14785
+ "name": "_skipUrlChange",
14786
+ "type": {
14787
+ "text": "boolean"
14788
+ },
14789
+ "privacy": "private",
14790
+ "default": "false"
14791
+ },
14771
14792
  {
14772
14793
  "kind": "field",
14773
14794
  "name": "_anchorElement",
@@ -14777,6 +14798,14 @@
14777
14798
  "privacy": "private",
14778
14799
  "default": "getShadowElement(this, SKIP_LINK_CONSTANTS.selectors.ANCHOR)"
14779
14800
  },
14801
+ {
14802
+ "kind": "field",
14803
+ "name": "_clickListener",
14804
+ "type": {
14805
+ "text": "EventListener"
14806
+ },
14807
+ "privacy": "private"
14808
+ },
14780
14809
  {
14781
14810
  "kind": "field",
14782
14811
  "name": "target",
@@ -14785,7 +14814,8 @@
14785
14814
  },
14786
14815
  "privacy": "public",
14787
14816
  "description": "The IDREF of the element to which the skip link should navigate.",
14788
- "default": "''"
14817
+ "default": "''",
14818
+ "attribute": "target"
14789
14819
  },
14790
14820
  {
14791
14821
  "kind": "field",
@@ -14795,7 +14825,8 @@
14795
14825
  },
14796
14826
  "privacy": "public",
14797
14827
  "description": "The theme applied to the skip link.",
14798
- "default": "'default'"
14828
+ "default": "'default'",
14829
+ "attribute": "theme"
14799
14830
  },
14800
14831
  {
14801
14832
  "kind": "field",
@@ -14805,7 +14836,8 @@
14805
14836
  },
14806
14837
  "privacy": "public",
14807
14838
  "description": "Whether or not the skip link uses a muted color scheme.",
14808
- "default": "false"
14839
+ "default": "false",
14840
+ "attribute": "muted"
14809
14841
  },
14810
14842
  {
14811
14843
  "kind": "field",
@@ -14815,7 +14847,8 @@
14815
14847
  },
14816
14848
  "privacy": "public",
14817
14849
  "description": "Whether or not the skip link should remain visible when not focused.",
14818
- "default": "false"
14850
+ "default": "false",
14851
+ "attribute": "persistent"
14819
14852
  },
14820
14853
  {
14821
14854
  "kind": "field",
@@ -14825,49 +14858,93 @@
14825
14858
  },
14826
14859
  "privacy": "public",
14827
14860
  "description": "Whether or not the skip link renders within its container.",
14828
- "default": "false"
14861
+ "default": "false",
14862
+ "attribute": "inline"
14863
+ },
14864
+ {
14865
+ "kind": "field",
14866
+ "name": "skipUrlChange",
14867
+ "type": {
14868
+ "text": "boolean"
14869
+ },
14870
+ "privacy": "public",
14871
+ "description": "Sets the skip link to skip browser navigation and scroll to the target element.",
14872
+ "default": "false",
14873
+ "attribute": "skipUrlChange"
14874
+ },
14875
+ {
14876
+ "kind": "method",
14877
+ "name": "_handleClick",
14878
+ "privacy": "private",
14879
+ "return": {
14880
+ "type": {
14881
+ "text": "void"
14882
+ }
14883
+ },
14884
+ "parameters": [
14885
+ {
14886
+ "name": "evt",
14887
+ "type": {
14888
+ "text": "Event"
14889
+ }
14890
+ }
14891
+ ]
14829
14892
  }
14830
14893
  ],
14831
14894
  "attributes": [
14832
14895
  {
14896
+ "name": "target",
14833
14897
  "type": {
14834
14898
  "text": "string"
14835
14899
  },
14836
14900
  "description": "The IDREF of the element to which the skip link should navigate.",
14837
- "name": "target",
14838
- "default": "''"
14901
+ "default": "''",
14902
+ "fieldName": "target"
14839
14903
  },
14840
14904
  {
14905
+ "name": "theme",
14841
14906
  "type": {
14842
14907
  "text": "SkipLinkTheme"
14843
14908
  },
14844
14909
  "description": "The theme applied to the skip link.",
14845
- "name": "theme",
14846
- "default": "'default'"
14910
+ "default": "'default'",
14911
+ "fieldName": "theme"
14847
14912
  },
14848
14913
  {
14914
+ "name": "muted",
14849
14915
  "type": {
14850
14916
  "text": "boolean"
14851
14917
  },
14852
14918
  "description": "Whether or not the skip link uses a muted color scheme.",
14853
- "name": "muted",
14854
- "default": "false"
14919
+ "default": "false",
14920
+ "fieldName": "muted"
14855
14921
  },
14856
14922
  {
14923
+ "name": "persistent",
14857
14924
  "type": {
14858
14925
  "text": "boolean"
14859
14926
  },
14860
14927
  "description": "Whether or not the skip link should remain visible when not focused.",
14861
- "name": "persistent",
14862
- "default": "false"
14928
+ "default": "false",
14929
+ "fieldName": "persistent"
14863
14930
  },
14864
14931
  {
14932
+ "name": "inline",
14865
14933
  "type": {
14866
14934
  "text": "boolean"
14867
14935
  },
14868
14936
  "description": "Whether or not the skip link renders within its container.",
14869
- "name": "inline",
14870
- "default": "false"
14937
+ "default": "false",
14938
+ "fieldName": "inline"
14939
+ },
14940
+ {
14941
+ "name": "skipUrlChange",
14942
+ "type": {
14943
+ "text": "boolean"
14944
+ },
14945
+ "description": "Sets the skip link to skip browser navigation and scroll to the target element.",
14946
+ "default": "false",
14947
+ "fieldName": "skipUrlChange"
14871
14948
  }
14872
14949
  ],
14873
14950
  "superclass": {
@@ -20126,7 +20203,8 @@
20126
20203
  "type": {
20127
20204
  "text": "string"
20128
20205
  },
20129
- "privacy": "public"
20206
+ "privacy": "public",
20207
+ "description": "The `<a>` target of the logo + title area link when `href` is set."
20130
20208
  }
20131
20209
  ],
20132
20210
  "events": [
@@ -20167,6 +20245,13 @@
20167
20245
  },
20168
20246
  "description": "The href that will be used to make the logo and title area a clickable link",
20169
20247
  "name": "href"
20248
+ },
20249
+ {
20250
+ "type": {
20251
+ "text": "string"
20252
+ },
20253
+ "description": "The `<a>` target of the logo + title area link when `href` is set.",
20254
+ "name": "target"
20170
20255
  }
20171
20256
  ],
20172
20257
  "superclass": {
@@ -22182,6 +22267,10 @@
22182
22267
  "description": "The font size of the chip icon.",
22183
22268
  "name": "--forge-chip-icon-font-size"
22184
22269
  },
22270
+ {
22271
+ "description": "The color of the focus indicator.",
22272
+ "name": "--forge-chip-focus-indicator-color"
22273
+ },
22185
22274
  {
22186
22275
  "description": "The opacity of the disabled chip.",
22187
22276
  "name": "--forge-chip-disabled-opacity"
@@ -30355,7 +30444,7 @@
30355
30444
  "text": "boolean"
30356
30445
  },
30357
30446
  "privacy": "public",
30358
- "description": "The disabled state of the tab.",
30447
+ "description": "The disabled state of the tab. Should not be set if using the disabled property on `forge-tab-bar`.",
30359
30448
  "default": "false"
30360
30449
  },
30361
30450
  {
@@ -30523,7 +30612,7 @@
30523
30612
  "text": "boolean"
30524
30613
  },
30525
30614
  "privacy": "public",
30526
- "description": "The disabled state of the tab bar.",
30615
+ "description": "Sets the disabled state of all child tabs. If true, any new tabs added to the DOM will be disabled by default. This can be used instead of setting individual tab disabled properties, mixing the two methods of disabling is not supported.",
30527
30616
  "default": "false"
30528
30617
  },
30529
30618
  {
@@ -31063,7 +31152,7 @@
31063
31152
  },
31064
31153
  "ButtonComponent": {
31065
31154
  "path": "src/lib/button/button.ts",
31066
- "lineNumber": 155
31155
+ "lineNumber": 158
31067
31156
  },
31068
31157
  "IButtonAreaAdapter": {
31069
31158
  "path": "src/lib/button-area/button-area-adapter.ts",
@@ -31627,7 +31716,7 @@
31627
31716
  },
31628
31717
  "FieldAdapter": {
31629
31718
  "path": "src/lib/field/field-adapter.ts",
31630
- "lineNumber": 18
31719
+ "lineNumber": 19
31631
31720
  },
31632
31721
  "IFieldCore": {
31633
31722
  "path": "src/lib/field/field-core.ts",
@@ -32415,7 +32504,7 @@
32415
32504
  },
32416
32505
  "SkipLinkTheme": {
32417
32506
  "path": "src/lib/skip-link/skip-link-constants.ts",
32418
- "lineNumber": 28
32507
+ "lineNumber": 29
32419
32508
  },
32420
32509
  "ISkipLinkComponent": {
32421
32510
  "path": "src/lib/skip-link/skip-link.ts",
@@ -32423,7 +32512,7 @@
32423
32512
  },
32424
32513
  "SkipLinkComponent": {
32425
32514
  "path": "src/lib/skip-link/skip-link.ts",
32426
- "lineNumber": 62
32515
+ "lineNumber": 51
32427
32516
  },
32428
32517
  "ISliderState": {
32429
32518
  "path": "src/lib/slider/slider-adapter.ts",
@@ -32799,7 +32888,7 @@
32799
32888
  },
32800
32889
  "TextFieldAdapter": {
32801
32890
  "path": "src/lib/text-field/text-field-adapter.ts",
32802
- "lineNumber": 24
32891
+ "lineNumber": 25
32803
32892
  },
32804
32893
  "TextFieldComponentDelegateProps": {
32805
32894
  "path": "src/lib/text-field/text-field-component-delegate.ts",
@@ -32819,15 +32908,15 @@
32819
32908
  },
32820
32909
  "TextFieldObservedInputAttributes": {
32821
32910
  "path": "src/lib/text-field/text-field-constants.ts",
32822
- "lineNumber": 43
32911
+ "lineNumber": 45
32823
32912
  },
32824
32913
  "TextFieldInputAttributeObserver": {
32825
32914
  "path": "src/lib/text-field/text-field-constants.ts",
32826
- "lineNumber": 44
32915
+ "lineNumber": 46
32827
32916
  },
32828
32917
  "TextFieldValueChangeListener": {
32829
32918
  "path": "src/lib/text-field/text-field-constants.ts",
32830
- "lineNumber": 45
32919
+ "lineNumber": 47
32831
32920
  },
32832
32921
  "ITextFieldCore": {
32833
32922
  "path": "src/lib/text-field/text-field-core.ts",
@@ -33071,7 +33160,7 @@
33071
33160
  },
33072
33161
  "AppBarComponent": {
33073
33162
  "path": "src/lib/app-bar/app-bar/app-bar.ts",
33074
- "lineNumber": 75
33163
+ "lineNumber": 77
33075
33164
  },
33076
33165
  "IAppBarHelpButtonAdapter": {
33077
33166
  "path": "src/lib/app-bar/help-button/app-bar-help-button-adapter.ts",
@@ -33391,7 +33480,7 @@
33391
33480
  },
33392
33481
  "ChipComponent": {
33393
33482
  "path": "src/lib/chips/chip/chip.ts",
33394
- "lineNumber": 134
33483
+ "lineNumber": 135
33395
33484
  },
33396
33485
  "IChipSetComponent": {
33397
33486
  "path": "src/lib/chips/chip-set/chip-set.ts",
@@ -8,7 +8,7 @@
8
8
  --_button-primary-color: var(--forge-button-primary-color, var(--forge-theme-primary, #3f51b5));
9
9
  --_button-text-color: var(--forge-button-text-color, var(--_button-primary-color));
10
10
  --_button-disabled-color: var(--forge-button-disabled-color, var(--forge-theme-surface-container, #e0e0e0));
11
- --_button-padding: var(--forge-button-padding, 8px);
11
+ --_button-padding: var(--forge-button-padding, var(--forge-spacing-medium, 16px));
12
12
  --_button-display: var(--forge-button-display, inline-flex);
13
13
  --_button-justify: var(--forge-button-justify, center);
14
14
  --_button-shape: var(--forge-button-shape, calc(var(--forge-shape-medium, 4px) * var(--forge-shape-factor, 1)));
@@ -35,6 +35,7 @@
35
35
  --_button-cursor: var(--forge-button-cursor, pointer);
36
36
  --_button-transition-duration: var(--forge-button-transition-duration, var(--forge-animation-duration-short3, 150ms));
37
37
  --_button-transition-timing: var(--forge-button-transition-timing, var(--forge-animation-easing-standard, cubic-bezier(0.2, 0, 0, 1)));
38
+ --_button-text-padding-inline: var(--forge-button-text-padding-inline, var(--forge-spacing-xsmall, 8px));
38
39
  --_button-outlined-background: var(--forge-button-outlined-background, transparent);
39
40
  --_button-outlined-color: var(--forge-button-outlined-color, var(--_button-primary-color));
40
41
  --_button-outlined-border-width: var(--forge-button-outlined-border-width, var(--forge-border-thin, 1px));
@@ -86,6 +87,7 @@
86
87
  display: var(--_button-display);
87
88
  position: relative;
88
89
  outline: none;
90
+ vertical-align: middle;
89
91
  -webkit-tap-highlight-color: transparent;
90
92
  -moz-osx-font-smoothing: grayscale;
91
93
  -webkit-font-smoothing: antialiased;
@@ -251,6 +253,9 @@
251
253
  pointer-events: none;
252
254
  pointer-events: initial;
253
255
  }
256
+ .forge-button:where(:not(.forge-button--outlined, .forge-button--tonal, .forge-button--filled, .forge-button--raised, .forge-button--link)), .forge-button--text {
257
+ --_button-padding-inline: var(--_button-text-padding-inline);
258
+ }
254
259
  .forge-button--outlined {
255
260
  --_button-background: var(--_button-outlined-background);
256
261
  --_button-color: var(--_button-outlined-color);
@@ -27,6 +27,7 @@
27
27
  --_chip-padding-block: var(--forge-chip-padding-block, 0);
28
28
  --_chip-cursor: var(--forge-chip-cursor, pointer);
29
29
  --_chip-icon-font-size: var(--forge-chip-icon-font-size, 1.5rem);
30
+ --_chip-focus-indicator-color: var(--forge-chip-focus-indicator-color, var(--_chip-color));
30
31
  --_chip-disabled-opacity: var(--forge-chip-disabled-opacity, 0.38);
31
32
  --_chip-disabled-cursor: var(--forge-chip-disabled-cursor, not-allowed);
32
33
  --_chip-dense-height: var(--forge-chip-dense-height, 24px);