@vonage/vivid 4.18.0 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/custom-elements.json +724 -488
  2. package/index.cjs +5 -0
  3. package/index.d.ts +1 -0
  4. package/index.js +2 -2
  5. package/lib/action-group/action-group.d.ts +0 -118
  6. package/lib/banner/banner.d.ts +0 -118
  7. package/lib/breadcrumb-item/breadcrumb-item.d.ts +0 -118
  8. package/lib/checkbox/checkbox.d.ts +0 -118
  9. package/lib/date-picker/date-picker.d.ts +0 -472
  10. package/lib/date-range-picker/date-range-picker.d.ts +0 -236
  11. package/lib/date-time-picker/date-time-picker.d.ts +0 -472
  12. package/lib/date-time-picker/definition.d.ts +2 -0
  13. package/lib/dialog/dialog.d.ts +0 -118
  14. package/lib/divider/divider.d.ts +0 -118
  15. package/lib/menu/menu.d.ts +0 -236
  16. package/lib/nav-disclosure/nav-disclosure.d.ts +0 -118
  17. package/lib/number-field/number-field.d.ts +0 -118
  18. package/lib/option/option.d.ts +2 -0
  19. package/lib/pagination/pagination.d.ts +1 -0
  20. package/lib/progress/progress.d.ts +0 -118
  21. package/lib/progress-ring/progress-ring.d.ts +0 -118
  22. package/lib/rich-text-editor/definition.d.ts +2 -0
  23. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +1 -0
  24. package/lib/rich-text-editor/menubar/definition.d.ts +2 -0
  25. package/lib/rich-text-editor/menubar/menubar.d.ts +4 -0
  26. package/lib/rich-text-editor/menubar/menubar.template.d.ts +4 -0
  27. package/lib/rich-text-editor/rich-text-editor.d.ts +7 -0
  28. package/lib/searchable-select/locale.d.ts +1 -0
  29. package/lib/searchable-select/searchable-select.d.ts +3 -0
  30. package/lib/selectable-box/selectable-box.d.ts +0 -118
  31. package/lib/slider/slider.d.ts +0 -118
  32. package/lib/split-button/split-button.d.ts +0 -118
  33. package/lib/switch/switch.d.ts +0 -118
  34. package/lib/tag-group/tag-group.d.ts +0 -118
  35. package/lib/tag-name-map.d.ts +73 -0
  36. package/lib/text-anchor/text-anchor.d.ts +0 -118
  37. package/lib/text-area/text-area.d.ts +0 -118
  38. package/lib/text-field/text-field.d.ts +0 -118
  39. package/lib/time-picker/time-picker.d.ts +0 -236
  40. package/lib/toggletip/toggletip.d.ts +0 -118
  41. package/lib/tooltip/tooltip.d.ts +0 -118
  42. package/locales/de-DE.cjs +1 -0
  43. package/locales/de-DE.js +1 -0
  44. package/locales/en-GB.cjs +1 -0
  45. package/locales/en-GB.js +1 -0
  46. package/locales/en-US.cjs +1 -0
  47. package/locales/en-US.js +1 -0
  48. package/locales/ja-JP.cjs +1 -0
  49. package/locales/ja-JP.js +1 -0
  50. package/locales/zh-CN.cjs +1 -0
  51. package/locales/zh-CN.js +1 -0
  52. package/package.json +1 -1
  53. package/shared/aria/delegates-aria.d.ts +0 -118
  54. package/shared/definition20.cjs +10 -10
  55. package/shared/definition20.js +1 -1
  56. package/shared/definition30.cjs +1 -1
  57. package/shared/definition30.js +1 -1
  58. package/shared/definition36.cjs +7 -6
  59. package/shared/definition36.js +7 -6
  60. package/shared/definition37.cjs +15 -1
  61. package/shared/definition37.js +15 -1
  62. package/shared/definition4.cjs +13 -12
  63. package/shared/definition4.js +13 -12
  64. package/shared/definition43.cjs +221 -12
  65. package/shared/definition43.js +222 -14
  66. package/shared/definition44.cjs +83 -53
  67. package/shared/definition44.js +80 -50
  68. package/shared/definition63.cjs +232 -157
  69. package/shared/definition63.js +232 -157
  70. package/shared/foundation/button/button.d.ts +0 -118
  71. package/shared/option.cjs +42 -20
  72. package/shared/option.js +43 -21
  73. package/shared/patterns/anchored.d.ts +0 -236
  74. package/shared/picker-field/mixins/calendar-picker.d.ts +0 -118
  75. package/shared/picker-field/mixins/calendar-picker.template.d.ts +0 -118
  76. package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +0 -236
  77. package/shared/picker-field/mixins/single-date-picker.d.ts +0 -354
  78. package/shared/picker-field/mixins/single-value-picker.d.ts +0 -118
  79. package/shared/picker-field/mixins/time-selection-picker.d.ts +0 -236
  80. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +0 -236
  81. package/shared/picker-field.template.js +1 -1
  82. package/shared/vivid-element.cjs +1 -1
  83. package/shared/vivid-element.js +1 -1
  84. package/styles/core/all.css +1 -1
  85. package/styles/core/theme.css +1 -1
  86. package/styles/core/typography.css +1 -1
  87. package/styles/tokens/theme-dark.css +4 -4
  88. package/styles/tokens/theme-light.css +4 -4
  89. package/styles/tokens/vivid-2-compat.css +1 -1
  90. package/vivid.api.json +1339 -446
@@ -2,6 +2,12 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "libs/components/src/lib/tag-name-map.ts",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
5
11
  {
6
12
  "kind": "javascript-module",
7
13
  "path": "libs/components/src/lib/accordion/accordion.ts",
@@ -4814,7 +4820,7 @@
4814
4820
  "eventNames": [
4815
4821
  "change"
4816
4822
  ],
4817
- "valueMapping": "(event.target as HTMLInputElement).checked"
4823
+ "valueMapping": "event.currentTarget.checked"
4818
4824
  }
4819
4825
  ]
4820
4826
  }
@@ -5319,7 +5325,7 @@
5319
5325
  "eventNames": [
5320
5326
  "change"
5321
5327
  ],
5322
- "valueMapping": "(event.target as HTMLInputElement).value"
5328
+ "valueMapping": "event.currentTarget.value"
5323
5329
  }
5324
5330
  ]
5325
5331
  }
@@ -6969,7 +6975,7 @@
6969
6975
  "eventNames": [
6970
6976
  "input"
6971
6977
  ],
6972
- "valueMapping": "(event.target as HTMLInputElement).value"
6978
+ "valueMapping": "event.currentTarget.value"
6973
6979
  }
6974
6980
  ]
6975
6981
  },
@@ -7527,7 +7533,7 @@
7527
7533
  "eventNames": [
7528
7534
  "input:start"
7529
7535
  ],
7530
- "valueMapping": "(event.target as any).start"
7536
+ "valueMapping": "event.currentTarget.start"
7531
7537
  },
7532
7538
  {
7533
7539
  "name": "end",
@@ -7535,7 +7541,7 @@
7535
7541
  "eventNames": [
7536
7542
  "input:end"
7537
7543
  ],
7538
- "valueMapping": "(event.target as any).end"
7544
+ "valueMapping": "event.currentTarget.end"
7539
7545
  }
7540
7546
  ]
7541
7547
  }
@@ -8140,7 +8146,7 @@
8140
8146
  "eventNames": [
8141
8147
  "input"
8142
8148
  ],
8143
- "valueMapping": "(event.target as HTMLInputElement).value"
8149
+ "valueMapping": "event.currentTarget.value"
8144
8150
  }
8145
8151
  ]
8146
8152
  }
@@ -8181,6 +8187,14 @@
8181
8187
  "name": "registerDateTimePicker",
8182
8188
  "module": "libs/components/src/lib/date-time-picker/definition.ts"
8183
8189
  }
8190
+ },
8191
+ {
8192
+ "kind": "js",
8193
+ "name": "VwcDateTimePickerElement",
8194
+ "declaration": {
8195
+ "name": "DateTimePicker",
8196
+ "module": "libs/components/src/lib/date-time-picker/definition.ts"
8197
+ }
8184
8198
  }
8185
8199
  ]
8186
8200
  },
@@ -8567,7 +8581,7 @@
8567
8581
  "eventNames": [
8568
8582
  "input"
8569
8583
  ],
8570
- "valueMapping": "(event.target as any).value"
8584
+ "valueMapping": "event.currentTarget.value"
8571
8585
  }
8572
8586
  ]
8573
8587
  }
@@ -8988,7 +9002,7 @@
8988
9002
  "open",
8989
9003
  "close"
8990
9004
  ],
8991
- "valueMapping": "(event.target as any).open"
9005
+ "valueMapping": "event.currentTarget.open"
8992
9006
  }
8993
9007
  ]
8994
9008
  }
@@ -12206,7 +12220,7 @@
12206
12220
  "eventNames": [
12207
12221
  "change"
12208
12222
  ],
12209
- "valueMapping": "(event.target as HTMLInputElement).checked"
12223
+ "valueMapping": "event.currentTarget.checked"
12210
12224
  }
12211
12225
  ]
12212
12226
  }
@@ -13603,7 +13617,7 @@
13603
13617
  "eventNames": [
13604
13618
  "input"
13605
13619
  ],
13606
- "valueMapping": "(event.target as HTMLInputElement).value"
13620
+ "valueMapping": "event.currentTarget.value"
13607
13621
  }
13608
13622
  ]
13609
13623
  }
@@ -13884,6 +13898,19 @@
13884
13898
  },
13885
13899
  "readonly": true
13886
13900
  },
13901
+ {
13902
+ "kind": "field",
13903
+ "name": "matchedText",
13904
+ "type": {
13905
+ "text": "string | undefined"
13906
+ },
13907
+ "description": "Text to highlighted as matching a search query."
13908
+ },
13909
+ {
13910
+ "kind": "field",
13911
+ "name": "_hasMatchedText",
13912
+ "readonly": true
13913
+ },
13887
13914
  {
13888
13915
  "kind": "field",
13889
13916
  "name": "proxy",
@@ -13942,6 +13969,14 @@
13942
13969
  "text": "string | undefined"
13943
13970
  },
13944
13971
  "fieldName": "_text"
13972
+ },
13973
+ {
13974
+ "name": "matched-text",
13975
+ "type": {
13976
+ "text": "string | undefined"
13977
+ },
13978
+ "description": "Text to highlighted as matching a search query.",
13979
+ "fieldName": "matchedText"
13945
13980
  }
13946
13981
  ],
13947
13982
  "superclass": {
@@ -14155,6 +14190,16 @@
14155
14190
  }
14156
14191
  ]
14157
14192
  },
14193
+ {
14194
+ "kind": "field",
14195
+ "name": "#constrainedSelectedIndex",
14196
+ "privacy": "private",
14197
+ "readonly": true
14198
+ },
14199
+ {
14200
+ "kind": "method",
14201
+ "name": "#constrainSelectedIndex"
14202
+ },
14158
14203
  {
14159
14204
  "kind": "field",
14160
14205
  "name": "VIVID_VERSION",
@@ -15755,7 +15800,7 @@
15755
15800
  "eventNames": [
15756
15801
  "change"
15757
15802
  ],
15758
- "valueMapping": "(event.target as HTMLInputElement).value"
15803
+ "valueMapping": "event.currentTarget.value"
15759
15804
  }
15760
15805
  ]
15761
15806
  }
@@ -16440,7 +16485,7 @@
16440
16485
  "eventNames": [
16441
16486
  "input:start"
16442
16487
  ],
16443
- "valueMapping": "(event.target as any).start"
16488
+ "valueMapping": "event.currentTarget.start"
16444
16489
  },
16445
16490
  {
16446
16491
  "name": "end",
@@ -16448,7 +16493,7 @@
16448
16493
  "eventNames": [
16449
16494
  "input:end"
16450
16495
  ],
16451
- "valueMapping": "(event.target as any).end"
16496
+ "valueMapping": "event.currentTarget.end"
16452
16497
  }
16453
16498
  ]
16454
16499
  }
@@ -16501,6 +16546,14 @@
16501
16546
  "name": "registerRichTextEditor",
16502
16547
  "module": "libs/components/src/lib/rich-text-editor/definition.ts"
16503
16548
  }
16549
+ },
16550
+ {
16551
+ "kind": "js",
16552
+ "name": "VwcRichTextEditorElement",
16553
+ "declaration": {
16554
+ "name": "RichTextEditor",
16555
+ "module": "libs/components/src/lib/rich-text-editor/definition.ts"
16556
+ }
16504
16557
  }
16505
16558
  ]
16506
16559
  },
@@ -16508,6 +16561,14 @@
16508
16561
  "kind": "javascript-module",
16509
16562
  "path": "libs/components/src/lib/rich-text-editor/rich-text-editor.ts",
16510
16563
  "declarations": [
16564
+ {
16565
+ "kind": "variable",
16566
+ "name": "RichTextEditorTextSizes",
16567
+ "type": {
16568
+ "text": "{\n\ttitle: 'h2',\n\tsubtitle: 'h3',\n\tbody: 'p',\n}"
16569
+ },
16570
+ "default": "{\n\ttitle: 'h2',\n\tsubtitle: 'h3',\n\tbody: 'p',\n}"
16571
+ },
16511
16572
  {
16512
16573
  "kind": "class",
16513
16574
  "description": "",
@@ -16568,6 +16629,15 @@
16568
16629
  "kind": "method",
16569
16630
  "name": "selectionEndChanged"
16570
16631
  },
16632
+ {
16633
+ "kind": "field",
16634
+ "name": "#selectionChangedByUser",
16635
+ "privacy": "private",
16636
+ "type": {
16637
+ "text": "boolean"
16638
+ },
16639
+ "default": "false"
16640
+ },
16571
16641
  {
16572
16642
  "kind": "field",
16573
16643
  "name": "#handleSelectionChange",
@@ -16578,6 +16648,23 @@
16578
16648
  "name": "#handleChange",
16579
16649
  "privacy": "private"
16580
16650
  },
16651
+ {
16652
+ "kind": "field",
16653
+ "name": "#handleInput",
16654
+ "privacy": "private"
16655
+ },
16656
+ {
16657
+ "kind": "method",
16658
+ "name": "setTextSize",
16659
+ "parameters": [
16660
+ {
16661
+ "name": "size",
16662
+ "type": {
16663
+ "text": "'title' | 'subtitle' | 'body'"
16664
+ }
16665
+ }
16666
+ ]
16667
+ },
16581
16668
  {
16582
16669
  "kind": "field",
16583
16670
  "name": "VIVID_VERSION",
@@ -16622,6 +16709,14 @@
16622
16709
  }
16623
16710
  ],
16624
16711
  "exports": [
16712
+ {
16713
+ "kind": "js",
16714
+ "name": "RichTextEditorTextSizes",
16715
+ "declaration": {
16716
+ "name": "RichTextEditorTextSizes",
16717
+ "module": "libs/components/src/lib/rich-text-editor/rich-text-editor.ts"
16718
+ }
16719
+ },
16625
16720
  {
16626
16721
  "kind": "js",
16627
16722
  "name": "RichTextEditor",
@@ -16909,6 +17004,10 @@
16909
17004
  {
16910
17005
  "description": "Message that appears when no options match the search query.",
16911
17006
  "name": "no-matches"
17007
+ },
17008
+ {
17009
+ "description": "Message that appears there are no options to display and the component is in a loading state.",
17010
+ "name": "loading-options"
16912
17011
  }
16913
17012
  ],
16914
17013
  "members": [
@@ -17057,6 +17156,12 @@
17057
17156
  "name": "selectedOptions",
17058
17157
  "readonly": true
17059
17158
  },
17159
+ {
17160
+ "kind": "field",
17161
+ "name": "searchText",
17162
+ "description": "The current search text of the component.",
17163
+ "readonly": true
17164
+ },
17060
17165
  {
17061
17166
  "kind": "field",
17062
17167
  "name": "#slottedOptionsChangeHandler",
@@ -17114,12 +17219,20 @@
17114
17219
  },
17115
17220
  {
17116
17221
  "kind": "field",
17117
- "name": "#suppressFilter",
17118
- "privacy": "private",
17222
+ "name": "optionFilter",
17223
+ "type": {
17224
+ "text": "(\n\t\toption: ListboxOption,\n\t\tsearchText: string\n\t) => boolean | undefined"
17225
+ },
17226
+ "description": "Function to filter the options to display."
17227
+ },
17228
+ {
17229
+ "kind": "field",
17230
+ "name": "loading",
17119
17231
  "type": {
17120
17232
  "text": "boolean"
17121
17233
  },
17122
- "default": "false"
17234
+ "default": "false",
17235
+ "description": "Whether the component is in a loading state."
17123
17236
  },
17124
17237
  {
17125
17238
  "kind": "method",
@@ -17288,6 +17401,13 @@
17288
17401
  "description": "Fired when the selected options change",
17289
17402
  "name": "input"
17290
17403
  },
17404
+ {
17405
+ "type": {
17406
+ "text": "CustomEvent<undefined>"
17407
+ },
17408
+ "description": "Fired when the search text changes",
17409
+ "name": "search-text-change"
17410
+ },
17291
17411
  {
17292
17412
  "type": {
17293
17413
  "text": "CustomEvent<undefined>"
@@ -17356,6 +17476,14 @@
17356
17476
  "default": "null",
17357
17477
  "fieldName": "maxLines"
17358
17478
  },
17479
+ {
17480
+ "type": {
17481
+ "text": "boolean"
17482
+ },
17483
+ "default": "false",
17484
+ "description": "Whether the component is in a loading state.",
17485
+ "fieldName": "loading"
17486
+ },
17359
17487
  {
17360
17488
  "type": {
17361
17489
  "text": "boolean"
@@ -17379,7 +17507,7 @@
17379
17507
  "eventNames": [
17380
17508
  "input"
17381
17509
  ],
17382
- "valueMapping": "(event.target as HTMLInputElement).value"
17510
+ "valueMapping": "event.currentTarget.value"
17383
17511
  },
17384
17512
  {
17385
17513
  "name": "values",
@@ -17387,7 +17515,7 @@
17387
17515
  "eventNames": [
17388
17516
  "input"
17389
17517
  ],
17390
- "valueMapping": "(event.target as any).values"
17518
+ "valueMapping": "event.currentTarget.values"
17391
17519
  }
17392
17520
  ]
17393
17521
  }
@@ -18030,7 +18158,7 @@
18030
18158
  "eventNames": [
18031
18159
  "input"
18032
18160
  ],
18033
- "valueMapping": "(event.target as HTMLInputElement).value"
18161
+ "valueMapping": "event.currentTarget.value"
18034
18162
  }
18035
18163
  ]
18036
18164
  }
@@ -19045,7 +19173,7 @@
19045
19173
  "eventNames": [
19046
19174
  "change"
19047
19175
  ],
19048
- "valueMapping": "(event.target as HTMLInputElement).value"
19176
+ "valueMapping": "event.currentTarget.value"
19049
19177
  }
19050
19178
  ]
19051
19179
  }
@@ -19072,12 +19200,12 @@
19072
19200
  },
19073
19201
  {
19074
19202
  "kind": "javascript-module",
19075
- "path": "libs/components/src/lib/split-button/definition.ts",
19203
+ "path": "libs/components/src/lib/switch/definition.ts",
19076
19204
  "declarations": [
19077
19205
  {
19078
19206
  "kind": "variable",
19079
- "name": "registerSplitButton",
19080
- "description": "Registers the button elements with the design system.",
19207
+ "name": "registerSwitch",
19208
+ "description": "Registers the switch elements with the design system.",
19081
19209
  "parameters": [
19082
19210
  {
19083
19211
  "description": "the prefix to use for the component name",
@@ -19089,358 +19217,268 @@
19089
19217
  "exports": [
19090
19218
  {
19091
19219
  "kind": "js",
19092
- "name": "SplitButtonAppearance",
19093
- "declaration": {
19094
- "name": "SplitButtonAppearance",
19095
- "module": "./split-button"
19096
- }
19097
- },
19098
- {
19099
- "kind": "js",
19100
- "name": "SplitButtonConnotation",
19220
+ "name": "SwitchConnotation",
19101
19221
  "declaration": {
19102
- "name": "SplitButtonConnotation",
19103
- "module": "./split-button"
19222
+ "name": "SwitchConnotation",
19223
+ "module": "./switch"
19104
19224
  }
19105
19225
  },
19106
19226
  {
19107
19227
  "kind": "js",
19108
- "name": "SplitButtonShape",
19228
+ "name": "registerSwitch",
19109
19229
  "declaration": {
19110
- "name": "SplitButtonShape",
19111
- "module": "./split-button"
19230
+ "name": "registerSwitch",
19231
+ "module": "libs/components/src/lib/switch/definition.ts"
19112
19232
  }
19113
19233
  },
19114
19234
  {
19115
19235
  "kind": "js",
19116
- "name": "SplitButtonSize",
19236
+ "name": "VwcSwitchElement",
19117
19237
  "declaration": {
19118
- "name": "SplitButtonSize",
19119
- "module": "./split-button"
19238
+ "name": "Switch",
19239
+ "module": "libs/components/src/lib/switch/definition.ts"
19120
19240
  }
19121
- },
19241
+ }
19242
+ ]
19243
+ },
19244
+ {
19245
+ "kind": "javascript-module",
19246
+ "path": "libs/components/src/lib/switch/switch.form-associated.ts",
19247
+ "declarations": [
19122
19248
  {
19123
- "kind": "js",
19124
- "name": "registerSplitButton",
19125
- "declaration": {
19126
- "name": "registerSplitButton",
19127
- "module": "libs/components/src/lib/split-button/definition.ts"
19249
+ "kind": "class",
19250
+ "description": "",
19251
+ "name": "FormAssociatedSwitch",
19252
+ "members": [
19253
+ {
19254
+ "kind": "field",
19255
+ "name": "proxy"
19256
+ },
19257
+ {
19258
+ "kind": "field",
19259
+ "name": "VIVID_VERSION",
19260
+ "static": true,
19261
+ "default": "__PACKAGE_VERSION__",
19262
+ "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
19263
+ "type": {
19264
+ "text": "string"
19265
+ },
19266
+ "inheritedFrom": {
19267
+ "name": "VividElement",
19268
+ "module": "libs/components/src/shared/foundation/vivid-element/vivid-element.ts"
19269
+ }
19270
+ }
19271
+ ],
19272
+ "mixins": [
19273
+ {
19274
+ "name": "CheckableFormAssociated",
19275
+ "module": "/libs/components/src/shared/foundation/form-associated/form-associated"
19276
+ }
19277
+ ],
19278
+ "superclass": {
19279
+ "name": "_Switch",
19280
+ "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19128
19281
  }
19129
- },
19282
+ }
19283
+ ],
19284
+ "exports": [
19130
19285
  {
19131
19286
  "kind": "js",
19132
- "name": "VwcSplitButtonElement",
19287
+ "name": "FormAssociatedSwitch",
19133
19288
  "declaration": {
19134
- "name": "SplitButton",
19135
- "module": "libs/components/src/lib/split-button/definition.ts"
19289
+ "name": "FormAssociatedSwitch",
19290
+ "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19136
19291
  }
19137
19292
  }
19138
19293
  ]
19139
19294
  },
19140
19295
  {
19141
19296
  "kind": "javascript-module",
19142
- "path": "libs/components/src/lib/split-button/locale.ts",
19143
- "declarations": [],
19144
- "exports": []
19145
- },
19146
- {
19147
- "kind": "javascript-module",
19148
- "path": "libs/components/src/lib/split-button/split-button.ts",
19297
+ "path": "libs/components/src/lib/switch/switch.ts",
19149
19298
  "declarations": [
19150
19299
  {
19151
19300
  "kind": "class",
19152
19301
  "description": "",
19153
- "name": "SplitButton",
19302
+ "name": "Switch",
19154
19303
  "cssProperties": [
19155
19304
  {
19156
- "name": "--vvd-split-button-cta-primary",
19305
+ "name": "--vvd-switch-cta-primary-text",
19306
+ "default": "var(--vvd-color-canvas)"
19307
+ },
19308
+ {
19309
+ "name": "--vvd-switch-cta-primary",
19157
19310
  "default": "var(--vvd-color-cta-500)"
19158
19311
  },
19159
19312
  {
19160
- "name": "--vvd-split-button-cta-primary-text",
19161
- "default": "var(--vvd-color-canvas)"
19313
+ "name": "--vvd-switch-cta-primary-increment",
19314
+ "default": "var(--vvd-color-cta-600)"
19162
19315
  },
19163
19316
  {
19164
- "name": "--vvd-split-button-cta-primary-increment",
19317
+ "name": "--vvd-switch-cta-firm",
19165
19318
  "default": "var(--vvd-color-cta-600)"
19166
19319
  },
19167
19320
  {
19168
- "name": "--vvd-split-button-cta-contrast",
19169
- "default": "var(--vvd-color-cta-800)"
19321
+ "name": "--vvd-switch-cta-intermediate",
19322
+ "default": "var(--vvd-color-cta-500)"
19170
19323
  },
19171
19324
  {
19172
- "name": "--vvd-split-button-cta-fierce",
19325
+ "name": "--vvd-switch-cta-fierce",
19173
19326
  "default": "var(--vvd-color-cta-700)"
19174
19327
  },
19175
19328
  {
19176
- "name": "--vvd-split-button-cta-firm",
19177
- "default": "var(--vvd-color-cta-600)"
19329
+ "name": "--vvd-switch-alert-primary-text",
19330
+ "default": "var(--vvd-color-canvas)"
19178
19331
  },
19179
19332
  {
19180
- "name": "--vvd-split-button-cta-soft",
19181
- "default": "var(--vvd-color-cta-100)"
19333
+ "name": "--vvd-switch-alert-primary",
19334
+ "default": "var(--vvd-color-alert-500)"
19182
19335
  },
19183
19336
  {
19184
- "name": "--vvd-split-button-cta-faint",
19185
- "default": "var(--vvd-color-cta-50)"
19337
+ "name": "--vvd-switch-alert-primary-increment",
19338
+ "default": "var(--vvd-color-alert-600)"
19186
19339
  },
19187
19340
  {
19188
- "name": "--vvd-split-button-success-primary",
19189
- "default": "var(--vvd-color-success-500)"
19341
+ "name": "--vvd-switch-alert-firm",
19342
+ "default": "var(--vvd-color-alert-600)"
19190
19343
  },
19191
19344
  {
19192
- "name": "--vvd-split-button-success-primary-text",
19193
- "default": "var(--vvd-color-canvas)"
19345
+ "name": "--vvd-switch-alert-intermediate",
19346
+ "default": "var(--vvd-color-alert-500)"
19194
19347
  },
19195
19348
  {
19196
- "name": "--vvd-split-button-success-primary-increment",
19197
- "default": "var(--vvd-color-success-600)"
19349
+ "name": "--vvd-switch-alert-fierce",
19350
+ "default": "var(--vvd-color-alert-700)"
19198
19351
  },
19199
19352
  {
19200
- "name": "--vvd-split-button-success-contrast",
19201
- "default": "var(--vvd-color-success-800)"
19353
+ "name": "--vvd-switch-success-primary-text",
19354
+ "default": "var(--vvd-color-canvas)"
19202
19355
  },
19203
19356
  {
19204
- "name": "--vvd-split-button-success-fierce",
19205
- "default": "var(--vvd-color-success-700)"
19357
+ "name": "--vvd-switch-success-primary",
19358
+ "default": "var(--vvd-color-success-500)"
19206
19359
  },
19207
19360
  {
19208
- "name": "--vvd-split-button-success-firm",
19361
+ "name": "--vvd-switch-success-primary-increment",
19209
19362
  "default": "var(--vvd-color-success-600)"
19210
19363
  },
19211
19364
  {
19212
- "name": "--vvd-split-button-success-soft",
19213
- "default": "var(--vvd-color-success-100)"
19365
+ "name": "--vvd-switch-success-firm",
19366
+ "default": "var(--vvd-color-success-600)"
19214
19367
  },
19215
19368
  {
19216
- "name": "--vvd-split-button-success-faint",
19217
- "default": "var(--vvd-color-success-50)"
19369
+ "name": "--vvd-switch-success-intermediate",
19370
+ "default": "var(--vvd-color-success-500)"
19218
19371
  },
19219
19372
  {
19220
- "name": "--vvd-split-button-alert-primary",
19221
- "default": "var(--vvd-color-alert-500)"
19373
+ "name": "--vvd-switch-success-fierce",
19374
+ "default": "var(--vvd-color-success-700)"
19222
19375
  },
19223
19376
  {
19224
- "name": "--vvd-split-button-alert-primary-text",
19377
+ "name": "--vvd-switch-announcement-primary-text",
19225
19378
  "default": "var(--vvd-color-canvas)"
19226
19379
  },
19227
19380
  {
19228
- "name": "--vvd-split-button-alert-primary-increment",
19229
- "default": "var(--vvd-color-alert-600)"
19230
- },
19231
- {
19232
- "name": "--vvd-split-button-alert-contrast",
19233
- "default": "var(--vvd-color-alert-800)"
19234
- },
19235
- {
19236
- "name": "--vvd-split-button-alert-fierce",
19237
- "default": "var(--vvd-color-alert-700)"
19238
- },
19239
- {
19240
- "name": "--vvd-split-button-alert-firm",
19241
- "default": "var(--vvd-color-alert-600)"
19242
- },
19243
- {
19244
- "name": "--vvd-split-button-alert-soft",
19245
- "default": "var(--vvd-color-alert-100)"
19246
- },
19247
- {
19248
- "name": "--vvd-split-button-alert-faint",
19249
- "default": "var(--vvd-color-alert-50)"
19250
- },
19251
- {
19252
- "name": "--vvd-split-button-announcement-primary",
19381
+ "name": "--vvd-switch-announcement-primary",
19253
19382
  "default": "var(--vvd-color-announcement-500)"
19254
19383
  },
19255
19384
  {
19256
- "name": "--vvd-split-button-announcement-primary-text",
19257
- "default": "var(--vvd-color-canvas)"
19258
- },
19259
- {
19260
- "name": "--vvd-split-button-announcement-primary-increment",
19385
+ "name": "--vvd-switch-announcement-primary-increment",
19261
19386
  "default": "var(--vvd-color-announcement-600)"
19262
19387
  },
19263
19388
  {
19264
- "name": "--vvd-split-button-announcement-contrast",
19265
- "default": "var(--vvd-color-announcement-800)"
19266
- },
19267
- {
19268
- "name": "--vvd-split-button-announcement-fierce",
19269
- "default": "var(--vvd-color-announcement-700)"
19270
- },
19271
- {
19272
- "name": "--vvd-split-button-announcement-firm",
19389
+ "name": "--vvd-switch-announcement-firm",
19273
19390
  "default": "var(--vvd-color-announcement-600)"
19274
19391
  },
19275
19392
  {
19276
- "name": "--vvd-split-button-announcement-soft",
19277
- "default": "var(--vvd-color-announcement-100)"
19278
- },
19279
- {
19280
- "name": "--vvd-split-button-announcement-faint",
19281
- "default": "var(--vvd-color-announcement-50)"
19393
+ "name": "--vvd-switch-announcement-intermediate",
19394
+ "default": "var(--vvd-color-announcement-500)"
19282
19395
  },
19283
19396
  {
19284
- "name": "--vvd-split-button-accent-primary",
19285
- "default": "var(--vvd-color-canvas-text)"
19397
+ "name": "--vvd-switch-announcement-fierce",
19398
+ "default": "var(--vvd-color-announcement-700)"
19286
19399
  },
19287
19400
  {
19288
- "name": "--vvd-split-button-accent-primary-text",
19401
+ "name": "--vvd-switch-accent-primary-text",
19289
19402
  "default": "var(--vvd-color-canvas)"
19290
19403
  },
19291
19404
  {
19292
- "name": "--vvd-split-button-accent-primary-increment",
19293
- "default": "var(--vvd-color-neutral-800)"
19405
+ "name": "--vvd-switch-accent-primary",
19406
+ "default": "var(--vvd-color-canvas-text)"
19294
19407
  },
19295
19408
  {
19296
- "name": "--vvd-split-button-accent-contrast",
19409
+ "name": "--vvd-switch-accent-primary-increment",
19297
19410
  "default": "var(--vvd-color-neutral-800)"
19298
19411
  },
19299
19412
  {
19300
- "name": "--vvd-split-button-accent-fierce",
19301
- "default": "var(--vvd-color-neutral-700)"
19302
- },
19303
- {
19304
- "name": "--vvd-split-button-accent-firm",
19413
+ "name": "--vvd-switch-accent-firm",
19305
19414
  "default": "var(--vvd-color-canvas-text)"
19306
19415
  },
19307
19416
  {
19308
- "name": "--vvd-split-button-accent-soft",
19309
- "default": "var(--vvd-color-neutral-100)"
19310
- },
19311
- {
19312
- "name": "--vvd-split-button-accent-faint",
19313
- "default": "var(--vvd-color-neutral-50)"
19314
- }
19315
- ],
19316
- "slots": [
19317
- {
19318
- "description": "Default slot.",
19319
- "name": ""
19417
+ "name": "--vvd-switch-accent-intermediate",
19418
+ "default": "var(--vvd-color-neutral-500)"
19320
19419
  },
19321
19420
  {
19322
- "description": "Add an icon to the component.",
19323
- "name": "icon"
19421
+ "name": "--vvd-switch-accent-fierce",
19422
+ "default": "var(--vvd-color-neutral-700)"
19324
19423
  }
19325
19424
  ],
19326
19425
  "members": [
19327
19426
  {
19328
19427
  "kind": "field",
19329
- "name": "_action",
19330
- "type": {
19331
- "text": "HTMLButtonElement"
19332
- },
19333
- "description": "Action HTML button element",
19334
- "privacy": "public"
19335
- },
19336
- {
19337
- "kind": "field",
19338
- "name": "action",
19339
- "type": {
19340
- "text": "HTMLButtonElement"
19341
- },
19342
- "readonly": true
19343
- },
19344
- {
19345
- "kind": "field",
19346
- "name": "_indicator",
19428
+ "name": "label",
19347
19429
  "type": {
19348
- "text": "HTMLButtonElement"
19430
+ "text": "string | undefined"
19349
19431
  },
19350
- "description": "Indicator HTML button element",
19432
+ "description": "Indicates the switch's label.",
19351
19433
  "privacy": "public"
19352
19434
  },
19353
- {
19354
- "kind": "field",
19355
- "name": "indicator",
19356
- "type": {
19357
- "text": "HTMLButtonElement"
19358
- },
19359
- "readonly": true
19360
- },
19361
19435
  {
19362
19436
  "kind": "field",
19363
19437
  "name": "connotation",
19364
19438
  "type": {
19365
- "text": "SplitButtonConnotation | undefined"
19366
- },
19367
- "description": "The connotation the split button should have.",
19368
- "privacy": "public"
19369
- },
19370
- {
19371
- "kind": "field",
19372
- "name": "shape",
19373
- "type": {
19374
- "text": "SplitButtonShape | undefined"
19375
- },
19376
- "description": "The shape the split button should have.",
19377
- "privacy": "public"
19378
- },
19379
- {
19380
- "kind": "field",
19381
- "name": "appearance",
19382
- "type": {
19383
- "text": "SplitButtonAppearance | undefined"
19384
- },
19385
- "description": "The appearance the split button should have.",
19386
- "privacy": "public"
19387
- },
19388
- {
19389
- "kind": "field",
19390
- "name": "size",
19391
- "type": {
19392
- "text": "SplitButtonSize | undefined"
19439
+ "text": "SwitchConnotation | undefined"
19393
19440
  },
19394
- "description": "The size the split button should have.",
19441
+ "description": "Indicates the switch's connotation.",
19395
19442
  "privacy": "public"
19396
19443
  },
19397
19444
  {
19398
19445
  "kind": "field",
19399
- "name": "label",
19446
+ "name": "readOnly",
19400
19447
  "type": {
19401
- "text": "string | undefined"
19448
+ "text": "boolean"
19402
19449
  },
19403
- "description": "Indicates the split button's label.",
19450
+ "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
19404
19451
  "privacy": "public"
19405
19452
  },
19406
19453
  {
19407
- "kind": "field",
19408
- "name": "icon",
19409
- "type": {
19410
- "text": "string | undefined"
19411
- },
19412
- "description": "Indicates the split button's icon.",
19413
- "privacy": "public"
19454
+ "kind": "method",
19455
+ "name": "updateForm",
19456
+ "privacy": "private",
19457
+ "return": {
19458
+ "type": {
19459
+ "text": "void"
19460
+ }
19461
+ }
19414
19462
  },
19415
19463
  {
19416
19464
  "kind": "field",
19417
- "name": "splitIndicator",
19465
+ "name": "defaultChecked",
19418
19466
  "type": {
19419
- "text": "string"
19467
+ "text": "boolean"
19420
19468
  },
19421
- "default": "'chevron-down-line'",
19422
- "description": "Indicates the split button's icon indicator.",
19423
- "privacy": "public"
19469
+ "default": "!!this.checkedAttribute"
19424
19470
  },
19425
19471
  {
19426
19472
  "kind": "field",
19427
- "name": "disabled",
19428
- "type": {
19429
- "text": "boolean"
19430
- },
19431
- "default": "false",
19432
- "description": "Indicates if the button is disabled.",
19433
- "privacy": "public"
19473
+ "name": "checked"
19434
19474
  },
19435
19475
  {
19436
19476
  "kind": "field",
19437
- "name": "indicatorAriaLabel",
19438
- "type": {
19439
- "text": "| string\n\t\t| null"
19440
- },
19441
- "default": "null",
19442
- "description": "Defines a string value that labels the indicator element.\n\nhttps://www.w3.org/TR/wai-aria-1.1/#aria-label",
19443
- "privacy": "public"
19477
+ "name": "proxy",
19478
+ "inheritedFrom": {
19479
+ "name": "FormAssociatedSwitch",
19480
+ "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19481
+ }
19444
19482
  },
19445
19483
  {
19446
19484
  "kind": "field",
@@ -19462,92 +19500,34 @@
19462
19500
  "type": {
19463
19501
  "text": "CustomEvent<undefined>"
19464
19502
  },
19465
- "description": "Event emitted when the action button is clicked",
19466
- "name": "action-click"
19467
- },
19468
- {
19469
- "type": {
19470
- "text": "CustomEvent<undefined>"
19471
- },
19472
- "description": "Event emitted when the indicator button is clicked",
19473
- "name": "indicator-click"
19503
+ "description": "Emits a custom change event when the checked state changes",
19504
+ "name": "change"
19474
19505
  }
19475
19506
  ],
19476
19507
  "attributes": [
19477
- {
19478
- "name": "connotation",
19479
- "type": {
19480
- "text": "SplitButtonConnotation | undefined"
19481
- },
19482
- "description": "The connotation the split button should have.",
19483
- "fieldName": "connotation"
19484
- },
19485
- {
19486
- "name": "shape",
19487
- "type": {
19488
- "text": "SplitButtonShape | undefined"
19489
- },
19490
- "description": "The shape the split button should have.",
19491
- "fieldName": "shape"
19492
- },
19493
- {
19494
- "name": "appearance",
19495
- "type": {
19496
- "text": "SplitButtonAppearance | undefined"
19497
- },
19498
- "description": "The appearance the split button should have.",
19499
- "fieldName": "appearance"
19500
- },
19501
- {
19502
- "name": "size",
19503
- "type": {
19504
- "text": "SplitButtonSize | undefined"
19505
- },
19506
- "description": "The size the split button should have.",
19507
- "fieldName": "size"
19508
- },
19509
19508
  {
19510
19509
  "name": "label",
19511
19510
  "type": {
19512
19511
  "text": "string | undefined"
19513
19512
  },
19514
- "description": "Indicates the split button's label.",
19513
+ "description": "Indicates the switch's label.",
19515
19514
  "fieldName": "label"
19516
19515
  },
19517
19516
  {
19518
- "name": "icon",
19517
+ "name": "connotation",
19519
19518
  "type": {
19520
- "text": "string | undefined"
19519
+ "text": "SwitchConnotation | undefined"
19521
19520
  },
19522
- "description": "Indicates the split button's icon.",
19523
- "fieldName": "icon"
19521
+ "description": "Indicates the switch's connotation.",
19522
+ "fieldName": "connotation"
19524
19523
  },
19525
19524
  {
19526
- "name": "split-indicator",
19527
- "type": {
19528
- "text": "string"
19529
- },
19530
- "default": "'chevron-down-line'",
19531
- "description": "Indicates the split button's icon indicator.",
19532
- "fieldName": "splitIndicator"
19533
- },
19534
- {
19535
- "name": "disabled",
19525
+ "name": "readonly",
19536
19526
  "type": {
19537
19527
  "text": "boolean"
19538
19528
  },
19539
- "default": "false",
19540
- "description": "Indicates if the button is disabled.",
19541
- "fieldName": "disabled"
19542
- },
19543
- {
19544
- "name": "indicator-aria-label",
19545
- "type": {
19546
- "text": "| string\n\t\t| null"
19547
- },
19548
- "default": "null",
19549
- "description": "Defines a string value that labels the indicator element.\n\nhttps://www.w3.org/TR/wai-aria-1.1/#aria-label",
19550
- "fieldName": "indicatorAriaLabel"
19529
+ "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
19530
+ "fieldName": "readOnly"
19551
19531
  }
19552
19532
  ],
19553
19533
  "mixins": [
@@ -19557,34 +19537,44 @@
19557
19537
  }
19558
19538
  ],
19559
19539
  "superclass": {
19560
- "name": "VividElement",
19561
- "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
19540
+ "name": "FormAssociatedSwitch",
19541
+ "module": "/libs/components/src/lib/switch/switch.form-associated"
19562
19542
  },
19563
19543
  "vividComponent": {
19564
19544
  "public": true,
19565
- "name": "split-button"
19545
+ "name": "switch",
19546
+ "vueModels": [
19547
+ {
19548
+ "name": "modelValue",
19549
+ "propName": "checked",
19550
+ "eventNames": [
19551
+ "change"
19552
+ ],
19553
+ "valueMapping": "event.currentTarget.checked"
19554
+ }
19555
+ ]
19566
19556
  }
19567
19557
  }
19568
19558
  ],
19569
19559
  "exports": [
19570
19560
  {
19571
19561
  "kind": "js",
19572
- "name": "SplitButton",
19562
+ "name": "Switch",
19573
19563
  "declaration": {
19574
- "name": "SplitButton",
19575
- "module": "libs/components/src/lib/split-button/split-button.ts"
19564
+ "name": "Switch",
19565
+ "module": "libs/components/src/lib/switch/switch.ts"
19576
19566
  }
19577
19567
  }
19578
19568
  ]
19579
19569
  },
19580
19570
  {
19581
19571
  "kind": "javascript-module",
19582
- "path": "libs/components/src/lib/switch/definition.ts",
19572
+ "path": "libs/components/src/lib/split-button/definition.ts",
19583
19573
  "declarations": [
19584
19574
  {
19585
19575
  "kind": "variable",
19586
- "name": "registerSwitch",
19587
- "description": "Registers the switch elements with the design system.",
19576
+ "name": "registerSplitButton",
19577
+ "description": "Registers the button elements with the design system.",
19588
19578
  "parameters": [
19589
19579
  {
19590
19580
  "description": "the prefix to use for the component name",
@@ -19596,268 +19586,358 @@
19596
19586
  "exports": [
19597
19587
  {
19598
19588
  "kind": "js",
19599
- "name": "SwitchConnotation",
19589
+ "name": "SplitButtonAppearance",
19600
19590
  "declaration": {
19601
- "name": "SwitchConnotation",
19602
- "module": "./switch"
19591
+ "name": "SplitButtonAppearance",
19592
+ "module": "./split-button"
19603
19593
  }
19604
19594
  },
19605
19595
  {
19606
19596
  "kind": "js",
19607
- "name": "registerSwitch",
19597
+ "name": "SplitButtonConnotation",
19608
19598
  "declaration": {
19609
- "name": "registerSwitch",
19610
- "module": "libs/components/src/lib/switch/definition.ts"
19599
+ "name": "SplitButtonConnotation",
19600
+ "module": "./split-button"
19611
19601
  }
19612
19602
  },
19613
19603
  {
19614
19604
  "kind": "js",
19615
- "name": "VwcSwitchElement",
19605
+ "name": "SplitButtonShape",
19616
19606
  "declaration": {
19617
- "name": "Switch",
19618
- "module": "libs/components/src/lib/switch/definition.ts"
19607
+ "name": "SplitButtonShape",
19608
+ "module": "./split-button"
19619
19609
  }
19620
- }
19621
- ]
19622
- },
19623
- {
19624
- "kind": "javascript-module",
19625
- "path": "libs/components/src/lib/switch/switch.form-associated.ts",
19626
- "declarations": [
19610
+ },
19627
19611
  {
19628
- "kind": "class",
19629
- "description": "",
19630
- "name": "FormAssociatedSwitch",
19631
- "members": [
19632
- {
19633
- "kind": "field",
19634
- "name": "proxy"
19635
- },
19636
- {
19637
- "kind": "field",
19638
- "name": "VIVID_VERSION",
19639
- "static": true,
19640
- "default": "__PACKAGE_VERSION__",
19641
- "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
19642
- "type": {
19643
- "text": "string"
19644
- },
19645
- "inheritedFrom": {
19646
- "name": "VividElement",
19647
- "module": "libs/components/src/shared/foundation/vivid-element/vivid-element.ts"
19648
- }
19649
- }
19650
- ],
19651
- "mixins": [
19652
- {
19653
- "name": "CheckableFormAssociated",
19654
- "module": "/libs/components/src/shared/foundation/form-associated/form-associated"
19655
- }
19656
- ],
19657
- "superclass": {
19658
- "name": "_Switch",
19659
- "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19612
+ "kind": "js",
19613
+ "name": "SplitButtonSize",
19614
+ "declaration": {
19615
+ "name": "SplitButtonSize",
19616
+ "module": "./split-button"
19660
19617
  }
19661
- }
19662
- ],
19663
- "exports": [
19618
+ },
19664
19619
  {
19665
19620
  "kind": "js",
19666
- "name": "FormAssociatedSwitch",
19621
+ "name": "registerSplitButton",
19667
19622
  "declaration": {
19668
- "name": "FormAssociatedSwitch",
19669
- "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19623
+ "name": "registerSplitButton",
19624
+ "module": "libs/components/src/lib/split-button/definition.ts"
19625
+ }
19626
+ },
19627
+ {
19628
+ "kind": "js",
19629
+ "name": "VwcSplitButtonElement",
19630
+ "declaration": {
19631
+ "name": "SplitButton",
19632
+ "module": "libs/components/src/lib/split-button/definition.ts"
19670
19633
  }
19671
19634
  }
19672
19635
  ]
19673
19636
  },
19674
19637
  {
19675
19638
  "kind": "javascript-module",
19676
- "path": "libs/components/src/lib/switch/switch.ts",
19639
+ "path": "libs/components/src/lib/split-button/locale.ts",
19640
+ "declarations": [],
19641
+ "exports": []
19642
+ },
19643
+ {
19644
+ "kind": "javascript-module",
19645
+ "path": "libs/components/src/lib/split-button/split-button.ts",
19677
19646
  "declarations": [
19678
19647
  {
19679
19648
  "kind": "class",
19680
19649
  "description": "",
19681
- "name": "Switch",
19650
+ "name": "SplitButton",
19682
19651
  "cssProperties": [
19683
19652
  {
19684
- "name": "--vvd-switch-cta-primary-text",
19685
- "default": "var(--vvd-color-canvas)"
19653
+ "name": "--vvd-split-button-cta-primary",
19654
+ "default": "var(--vvd-color-cta-500)"
19686
19655
  },
19687
19656
  {
19688
- "name": "--vvd-switch-cta-primary",
19689
- "default": "var(--vvd-color-cta-500)"
19657
+ "name": "--vvd-split-button-cta-primary-text",
19658
+ "default": "var(--vvd-color-canvas)"
19690
19659
  },
19691
19660
  {
19692
- "name": "--vvd-switch-cta-primary-increment",
19661
+ "name": "--vvd-split-button-cta-primary-increment",
19693
19662
  "default": "var(--vvd-color-cta-600)"
19694
19663
  },
19695
19664
  {
19696
- "name": "--vvd-switch-cta-firm",
19665
+ "name": "--vvd-split-button-cta-contrast",
19666
+ "default": "var(--vvd-color-cta-800)"
19667
+ },
19668
+ {
19669
+ "name": "--vvd-split-button-cta-fierce",
19670
+ "default": "var(--vvd-color-cta-700)"
19671
+ },
19672
+ {
19673
+ "name": "--vvd-split-button-cta-firm",
19697
19674
  "default": "var(--vvd-color-cta-600)"
19698
19675
  },
19699
19676
  {
19700
- "name": "--vvd-switch-cta-intermediate",
19701
- "default": "var(--vvd-color-cta-500)"
19677
+ "name": "--vvd-split-button-cta-soft",
19678
+ "default": "var(--vvd-color-cta-100)"
19702
19679
  },
19703
19680
  {
19704
- "name": "--vvd-switch-cta-fierce",
19705
- "default": "var(--vvd-color-cta-700)"
19681
+ "name": "--vvd-split-button-cta-faint",
19682
+ "default": "var(--vvd-color-cta-50)"
19706
19683
  },
19707
19684
  {
19708
- "name": "--vvd-switch-alert-primary-text",
19685
+ "name": "--vvd-split-button-success-primary",
19686
+ "default": "var(--vvd-color-success-500)"
19687
+ },
19688
+ {
19689
+ "name": "--vvd-split-button-success-primary-text",
19709
19690
  "default": "var(--vvd-color-canvas)"
19710
19691
  },
19711
19692
  {
19712
- "name": "--vvd-switch-alert-primary",
19713
- "default": "var(--vvd-color-alert-500)"
19693
+ "name": "--vvd-split-button-success-primary-increment",
19694
+ "default": "var(--vvd-color-success-600)"
19714
19695
  },
19715
19696
  {
19716
- "name": "--vvd-switch-alert-primary-increment",
19717
- "default": "var(--vvd-color-alert-600)"
19697
+ "name": "--vvd-split-button-success-contrast",
19698
+ "default": "var(--vvd-color-success-800)"
19718
19699
  },
19719
19700
  {
19720
- "name": "--vvd-switch-alert-firm",
19721
- "default": "var(--vvd-color-alert-600)"
19701
+ "name": "--vvd-split-button-success-fierce",
19702
+ "default": "var(--vvd-color-success-700)"
19722
19703
  },
19723
19704
  {
19724
- "name": "--vvd-switch-alert-intermediate",
19725
- "default": "var(--vvd-color-alert-500)"
19705
+ "name": "--vvd-split-button-success-firm",
19706
+ "default": "var(--vvd-color-success-600)"
19726
19707
  },
19727
19708
  {
19728
- "name": "--vvd-switch-alert-fierce",
19729
- "default": "var(--vvd-color-alert-700)"
19709
+ "name": "--vvd-split-button-success-soft",
19710
+ "default": "var(--vvd-color-success-100)"
19730
19711
  },
19731
19712
  {
19732
- "name": "--vvd-switch-success-primary-text",
19713
+ "name": "--vvd-split-button-success-faint",
19714
+ "default": "var(--vvd-color-success-50)"
19715
+ },
19716
+ {
19717
+ "name": "--vvd-split-button-alert-primary",
19718
+ "default": "var(--vvd-color-alert-500)"
19719
+ },
19720
+ {
19721
+ "name": "--vvd-split-button-alert-primary-text",
19733
19722
  "default": "var(--vvd-color-canvas)"
19734
19723
  },
19735
19724
  {
19736
- "name": "--vvd-switch-success-primary",
19737
- "default": "var(--vvd-color-success-500)"
19725
+ "name": "--vvd-split-button-alert-primary-increment",
19726
+ "default": "var(--vvd-color-alert-600)"
19738
19727
  },
19739
19728
  {
19740
- "name": "--vvd-switch-success-primary-increment",
19741
- "default": "var(--vvd-color-success-600)"
19729
+ "name": "--vvd-split-button-alert-contrast",
19730
+ "default": "var(--vvd-color-alert-800)"
19742
19731
  },
19743
19732
  {
19744
- "name": "--vvd-switch-success-firm",
19745
- "default": "var(--vvd-color-success-600)"
19733
+ "name": "--vvd-split-button-alert-fierce",
19734
+ "default": "var(--vvd-color-alert-700)"
19746
19735
  },
19747
19736
  {
19748
- "name": "--vvd-switch-success-intermediate",
19749
- "default": "var(--vvd-color-success-500)"
19737
+ "name": "--vvd-split-button-alert-firm",
19738
+ "default": "var(--vvd-color-alert-600)"
19750
19739
  },
19751
19740
  {
19752
- "name": "--vvd-switch-success-fierce",
19753
- "default": "var(--vvd-color-success-700)"
19741
+ "name": "--vvd-split-button-alert-soft",
19742
+ "default": "var(--vvd-color-alert-100)"
19754
19743
  },
19755
19744
  {
19756
- "name": "--vvd-switch-announcement-primary-text",
19757
- "default": "var(--vvd-color-canvas)"
19745
+ "name": "--vvd-split-button-alert-faint",
19746
+ "default": "var(--vvd-color-alert-50)"
19758
19747
  },
19759
19748
  {
19760
- "name": "--vvd-switch-announcement-primary",
19749
+ "name": "--vvd-split-button-announcement-primary",
19761
19750
  "default": "var(--vvd-color-announcement-500)"
19762
19751
  },
19763
19752
  {
19764
- "name": "--vvd-switch-announcement-primary-increment",
19765
- "default": "var(--vvd-color-announcement-600)"
19753
+ "name": "--vvd-split-button-announcement-primary-text",
19754
+ "default": "var(--vvd-color-canvas)"
19766
19755
  },
19767
19756
  {
19768
- "name": "--vvd-switch-announcement-firm",
19757
+ "name": "--vvd-split-button-announcement-primary-increment",
19769
19758
  "default": "var(--vvd-color-announcement-600)"
19770
19759
  },
19771
19760
  {
19772
- "name": "--vvd-switch-announcement-intermediate",
19773
- "default": "var(--vvd-color-announcement-500)"
19761
+ "name": "--vvd-split-button-announcement-contrast",
19762
+ "default": "var(--vvd-color-announcement-800)"
19774
19763
  },
19775
19764
  {
19776
- "name": "--vvd-switch-announcement-fierce",
19765
+ "name": "--vvd-split-button-announcement-fierce",
19777
19766
  "default": "var(--vvd-color-announcement-700)"
19778
19767
  },
19779
19768
  {
19780
- "name": "--vvd-switch-accent-primary-text",
19781
- "default": "var(--vvd-color-canvas)"
19769
+ "name": "--vvd-split-button-announcement-firm",
19770
+ "default": "var(--vvd-color-announcement-600)"
19782
19771
  },
19783
19772
  {
19784
- "name": "--vvd-switch-accent-primary",
19773
+ "name": "--vvd-split-button-announcement-soft",
19774
+ "default": "var(--vvd-color-announcement-100)"
19775
+ },
19776
+ {
19777
+ "name": "--vvd-split-button-announcement-faint",
19778
+ "default": "var(--vvd-color-announcement-50)"
19779
+ },
19780
+ {
19781
+ "name": "--vvd-split-button-accent-primary",
19785
19782
  "default": "var(--vvd-color-canvas-text)"
19786
19783
  },
19787
19784
  {
19788
- "name": "--vvd-switch-accent-primary-increment",
19785
+ "name": "--vvd-split-button-accent-primary-text",
19786
+ "default": "var(--vvd-color-canvas)"
19787
+ },
19788
+ {
19789
+ "name": "--vvd-split-button-accent-primary-increment",
19789
19790
  "default": "var(--vvd-color-neutral-800)"
19790
19791
  },
19791
19792
  {
19792
- "name": "--vvd-switch-accent-firm",
19793
+ "name": "--vvd-split-button-accent-contrast",
19794
+ "default": "var(--vvd-color-neutral-800)"
19795
+ },
19796
+ {
19797
+ "name": "--vvd-split-button-accent-fierce",
19798
+ "default": "var(--vvd-color-neutral-700)"
19799
+ },
19800
+ {
19801
+ "name": "--vvd-split-button-accent-firm",
19793
19802
  "default": "var(--vvd-color-canvas-text)"
19794
19803
  },
19795
19804
  {
19796
- "name": "--vvd-switch-accent-intermediate",
19797
- "default": "var(--vvd-color-neutral-500)"
19805
+ "name": "--vvd-split-button-accent-soft",
19806
+ "default": "var(--vvd-color-neutral-100)"
19807
+ },
19808
+ {
19809
+ "name": "--vvd-split-button-accent-faint",
19810
+ "default": "var(--vvd-color-neutral-50)"
19811
+ }
19812
+ ],
19813
+ "slots": [
19814
+ {
19815
+ "description": "Default slot.",
19816
+ "name": ""
19817
+ },
19818
+ {
19819
+ "description": "Add an icon to the component.",
19820
+ "name": "icon"
19821
+ }
19822
+ ],
19823
+ "members": [
19824
+ {
19825
+ "kind": "field",
19826
+ "name": "_action",
19827
+ "type": {
19828
+ "text": "HTMLButtonElement"
19829
+ },
19830
+ "description": "Action HTML button element",
19831
+ "privacy": "public"
19832
+ },
19833
+ {
19834
+ "kind": "field",
19835
+ "name": "action",
19836
+ "type": {
19837
+ "text": "HTMLButtonElement"
19838
+ },
19839
+ "readonly": true
19840
+ },
19841
+ {
19842
+ "kind": "field",
19843
+ "name": "_indicator",
19844
+ "type": {
19845
+ "text": "HTMLButtonElement"
19846
+ },
19847
+ "description": "Indicator HTML button element",
19848
+ "privacy": "public"
19849
+ },
19850
+ {
19851
+ "kind": "field",
19852
+ "name": "indicator",
19853
+ "type": {
19854
+ "text": "HTMLButtonElement"
19855
+ },
19856
+ "readonly": true
19857
+ },
19858
+ {
19859
+ "kind": "field",
19860
+ "name": "connotation",
19861
+ "type": {
19862
+ "text": "SplitButtonConnotation | undefined"
19863
+ },
19864
+ "description": "The connotation the split button should have.",
19865
+ "privacy": "public"
19866
+ },
19867
+ {
19868
+ "kind": "field",
19869
+ "name": "shape",
19870
+ "type": {
19871
+ "text": "SplitButtonShape | undefined"
19872
+ },
19873
+ "description": "The shape the split button should have.",
19874
+ "privacy": "public"
19798
19875
  },
19799
- {
19800
- "name": "--vvd-switch-accent-fierce",
19801
- "default": "var(--vvd-color-neutral-700)"
19802
- }
19803
- ],
19804
- "members": [
19805
19876
  {
19806
19877
  "kind": "field",
19807
- "name": "label",
19878
+ "name": "appearance",
19808
19879
  "type": {
19809
- "text": "string | undefined"
19880
+ "text": "SplitButtonAppearance | undefined"
19810
19881
  },
19811
- "description": "Indicates the switch's label.",
19882
+ "description": "The appearance the split button should have.",
19812
19883
  "privacy": "public"
19813
19884
  },
19814
19885
  {
19815
19886
  "kind": "field",
19816
- "name": "connotation",
19887
+ "name": "size",
19817
19888
  "type": {
19818
- "text": "SwitchConnotation | undefined"
19889
+ "text": "SplitButtonSize | undefined"
19819
19890
  },
19820
- "description": "Indicates the switch's connotation.",
19891
+ "description": "The size the split button should have.",
19821
19892
  "privacy": "public"
19822
19893
  },
19823
19894
  {
19824
19895
  "kind": "field",
19825
- "name": "readOnly",
19896
+ "name": "label",
19826
19897
  "type": {
19827
- "text": "boolean"
19898
+ "text": "string | undefined"
19828
19899
  },
19829
- "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
19900
+ "description": "Indicates the split button's label.",
19830
19901
  "privacy": "public"
19831
19902
  },
19832
19903
  {
19833
- "kind": "method",
19834
- "name": "updateForm",
19835
- "privacy": "private",
19836
- "return": {
19837
- "type": {
19838
- "text": "void"
19839
- }
19840
- }
19904
+ "kind": "field",
19905
+ "name": "icon",
19906
+ "type": {
19907
+ "text": "string | undefined"
19908
+ },
19909
+ "description": "Indicates the split button's icon.",
19910
+ "privacy": "public"
19841
19911
  },
19842
19912
  {
19843
19913
  "kind": "field",
19844
- "name": "defaultChecked",
19914
+ "name": "splitIndicator",
19845
19915
  "type": {
19846
- "text": "boolean"
19916
+ "text": "string"
19847
19917
  },
19848
- "default": "!!this.checkedAttribute"
19918
+ "default": "'chevron-down-line'",
19919
+ "description": "Indicates the split button's icon indicator.",
19920
+ "privacy": "public"
19849
19921
  },
19850
19922
  {
19851
19923
  "kind": "field",
19852
- "name": "checked"
19924
+ "name": "disabled",
19925
+ "type": {
19926
+ "text": "boolean"
19927
+ },
19928
+ "default": "false",
19929
+ "description": "Indicates if the button is disabled.",
19930
+ "privacy": "public"
19853
19931
  },
19854
19932
  {
19855
19933
  "kind": "field",
19856
- "name": "proxy",
19857
- "inheritedFrom": {
19858
- "name": "FormAssociatedSwitch",
19859
- "module": "libs/components/src/lib/switch/switch.form-associated.ts"
19860
- }
19934
+ "name": "indicatorAriaLabel",
19935
+ "type": {
19936
+ "text": "| string\n\t\t| null"
19937
+ },
19938
+ "default": "null",
19939
+ "description": "Defines a string value that labels the indicator element.\n\nhttps://www.w3.org/TR/wai-aria-1.1/#aria-label",
19940
+ "privacy": "public"
19861
19941
  },
19862
19942
  {
19863
19943
  "kind": "field",
@@ -19879,34 +19959,92 @@
19879
19959
  "type": {
19880
19960
  "text": "CustomEvent<undefined>"
19881
19961
  },
19882
- "description": "Emits a custom change event when the checked state changes",
19883
- "name": "change"
19962
+ "description": "Event emitted when the action button is clicked",
19963
+ "name": "action-click"
19964
+ },
19965
+ {
19966
+ "type": {
19967
+ "text": "CustomEvent<undefined>"
19968
+ },
19969
+ "description": "Event emitted when the indicator button is clicked",
19970
+ "name": "indicator-click"
19884
19971
  }
19885
19972
  ],
19886
19973
  "attributes": [
19974
+ {
19975
+ "name": "connotation",
19976
+ "type": {
19977
+ "text": "SplitButtonConnotation | undefined"
19978
+ },
19979
+ "description": "The connotation the split button should have.",
19980
+ "fieldName": "connotation"
19981
+ },
19982
+ {
19983
+ "name": "shape",
19984
+ "type": {
19985
+ "text": "SplitButtonShape | undefined"
19986
+ },
19987
+ "description": "The shape the split button should have.",
19988
+ "fieldName": "shape"
19989
+ },
19990
+ {
19991
+ "name": "appearance",
19992
+ "type": {
19993
+ "text": "SplitButtonAppearance | undefined"
19994
+ },
19995
+ "description": "The appearance the split button should have.",
19996
+ "fieldName": "appearance"
19997
+ },
19998
+ {
19999
+ "name": "size",
20000
+ "type": {
20001
+ "text": "SplitButtonSize | undefined"
20002
+ },
20003
+ "description": "The size the split button should have.",
20004
+ "fieldName": "size"
20005
+ },
19887
20006
  {
19888
20007
  "name": "label",
19889
20008
  "type": {
19890
20009
  "text": "string | undefined"
19891
20010
  },
19892
- "description": "Indicates the switch's label.",
20011
+ "description": "Indicates the split button's label.",
19893
20012
  "fieldName": "label"
19894
20013
  },
19895
20014
  {
19896
- "name": "connotation",
20015
+ "name": "icon",
19897
20016
  "type": {
19898
- "text": "SwitchConnotation | undefined"
20017
+ "text": "string | undefined"
19899
20018
  },
19900
- "description": "Indicates the switch's connotation.",
19901
- "fieldName": "connotation"
20019
+ "description": "Indicates the split button's icon.",
20020
+ "fieldName": "icon"
19902
20021
  },
19903
20022
  {
19904
- "name": "readonly",
20023
+ "name": "split-indicator",
20024
+ "type": {
20025
+ "text": "string"
20026
+ },
20027
+ "default": "'chevron-down-line'",
20028
+ "description": "Indicates the split button's icon indicator.",
20029
+ "fieldName": "splitIndicator"
20030
+ },
20031
+ {
20032
+ "name": "disabled",
19905
20033
  "type": {
19906
20034
  "text": "boolean"
19907
20035
  },
19908
- "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
19909
- "fieldName": "readOnly"
20036
+ "default": "false",
20037
+ "description": "Indicates if the button is disabled.",
20038
+ "fieldName": "disabled"
20039
+ },
20040
+ {
20041
+ "name": "indicator-aria-label",
20042
+ "type": {
20043
+ "text": "| string\n\t\t| null"
20044
+ },
20045
+ "default": "null",
20046
+ "description": "Defines a string value that labels the indicator element.\n\nhttps://www.w3.org/TR/wai-aria-1.1/#aria-label",
20047
+ "fieldName": "indicatorAriaLabel"
19910
20048
  }
19911
20049
  ],
19912
20050
  "mixins": [
@@ -19916,32 +20054,22 @@
19916
20054
  }
19917
20055
  ],
19918
20056
  "superclass": {
19919
- "name": "FormAssociatedSwitch",
19920
- "module": "/libs/components/src/lib/switch/switch.form-associated"
20057
+ "name": "VividElement",
20058
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
19921
20059
  },
19922
20060
  "vividComponent": {
19923
20061
  "public": true,
19924
- "name": "switch",
19925
- "vueModels": [
19926
- {
19927
- "name": "modelValue",
19928
- "propName": "checked",
19929
- "eventNames": [
19930
- "change"
19931
- ],
19932
- "valueMapping": "(event.target as HTMLInputElement).checked"
19933
- }
19934
- ]
20062
+ "name": "split-button"
19935
20063
  }
19936
20064
  }
19937
20065
  ],
19938
20066
  "exports": [
19939
20067
  {
19940
20068
  "kind": "js",
19941
- "name": "Switch",
20069
+ "name": "SplitButton",
19942
20070
  "declaration": {
19943
- "name": "Switch",
19944
- "module": "libs/components/src/lib/switch/switch.ts"
20071
+ "name": "SplitButton",
20072
+ "module": "libs/components/src/lib/split-button/split-button.ts"
19945
20073
  }
19946
20074
  }
19947
20075
  ]
@@ -21997,7 +22125,7 @@
21997
22125
  "eventNames": [
21998
22126
  "input"
21999
22127
  ],
22000
- "valueMapping": "(event.target as HTMLInputElement).value"
22128
+ "valueMapping": "event.currentTarget.value"
22001
22129
  }
22002
22130
  ]
22003
22131
  }
@@ -22552,7 +22680,7 @@
22552
22680
  "eventNames": [
22553
22681
  "input"
22554
22682
  ],
22555
- "valueMapping": "(event.target as HTMLInputElement).value"
22683
+ "valueMapping": "event.currentTarget.value"
22556
22684
  }
22557
22685
  ]
22558
22686
  }
@@ -23043,7 +23171,7 @@
23043
23171
  "eventNames": [
23044
23172
  "input"
23045
23173
  ],
23046
- "valueMapping": "(event.target as HTMLInputElement).value"
23174
+ "valueMapping": "event.currentTarget.value"
23047
23175
  }
23048
23176
  ]
23049
23177
  }
@@ -24642,7 +24770,7 @@
24642
24770
  },
24643
24771
  {
24644
24772
  "kind": "field",
24645
- "name": "#handleBlueEvent",
24773
+ "name": "#handleChangeEvent",
24646
24774
  "privacy": "private"
24647
24775
  },
24648
24776
  {
@@ -24714,6 +24842,18 @@
24714
24842
  "kind": "field",
24715
24843
  "name": "#dispatchEvent",
24716
24844
  "privacy": "private"
24845
+ },
24846
+ {
24847
+ "kind": "method",
24848
+ "name": "setSelectionTag",
24849
+ "parameters": [
24850
+ {
24851
+ "name": "tag",
24852
+ "type": {
24853
+ "text": "string"
24854
+ }
24855
+ }
24856
+ ]
24717
24857
  }
24718
24858
  ]
24719
24859
  }
@@ -24729,6 +24869,102 @@
24729
24869
  }
24730
24870
  ]
24731
24871
  },
24872
+ {
24873
+ "kind": "javascript-module",
24874
+ "path": "libs/components/src/lib/rich-text-editor/menubar/definition.ts",
24875
+ "declarations": [
24876
+ {
24877
+ "kind": "variable",
24878
+ "name": "menuBarDefinition"
24879
+ },
24880
+ {
24881
+ "kind": "variable",
24882
+ "name": "registerMenuBar",
24883
+ "description": "Registers the menubar element with the design system.",
24884
+ "parameters": [
24885
+ {
24886
+ "description": "the prefix to use for the component name",
24887
+ "name": "prefix"
24888
+ }
24889
+ ]
24890
+ }
24891
+ ],
24892
+ "exports": [
24893
+ {
24894
+ "kind": "js",
24895
+ "name": "menuBarDefinition",
24896
+ "declaration": {
24897
+ "name": "menuBarDefinition",
24898
+ "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
24899
+ }
24900
+ },
24901
+ {
24902
+ "kind": "js",
24903
+ "name": "registerMenuBar",
24904
+ "declaration": {
24905
+ "name": "registerMenuBar",
24906
+ "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
24907
+ }
24908
+ }
24909
+ ]
24910
+ },
24911
+ {
24912
+ "kind": "javascript-module",
24913
+ "path": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts",
24914
+ "declarations": [
24915
+ {
24916
+ "kind": "class",
24917
+ "description": "",
24918
+ "name": "MenuBar",
24919
+ "members": [
24920
+ {
24921
+ "kind": "field",
24922
+ "name": "menuItems",
24923
+ "type": {
24924
+ "text": "string | undefined"
24925
+ }
24926
+ },
24927
+ {
24928
+ "kind": "field",
24929
+ "name": "VIVID_VERSION",
24930
+ "static": true,
24931
+ "default": "__PACKAGE_VERSION__",
24932
+ "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
24933
+ "type": {
24934
+ "text": "string"
24935
+ },
24936
+ "inheritedFrom": {
24937
+ "name": "VividElement",
24938
+ "module": "libs/components/src/shared/foundation/vivid-element/vivid-element.ts"
24939
+ }
24940
+ }
24941
+ ],
24942
+ "attributes": [
24943
+ {
24944
+ "name": "menu-items",
24945
+ "type": {
24946
+ "text": "string | undefined"
24947
+ },
24948
+ "fieldName": "menuItems"
24949
+ }
24950
+ ],
24951
+ "superclass": {
24952
+ "name": "VividElement",
24953
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
24954
+ }
24955
+ }
24956
+ ],
24957
+ "exports": [
24958
+ {
24959
+ "kind": "js",
24960
+ "name": "MenuBar",
24961
+ "declaration": {
24962
+ "name": "MenuBar",
24963
+ "module": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts"
24964
+ }
24965
+ }
24966
+ ]
24967
+ },
24732
24968
  {
24733
24969
  "kind": "javascript-module",
24734
24970
  "path": "libs/components/src/shared/foundation/anchor/anchor.ts",