@vonage/vivid 4.27.0 → 4.29.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 (79) hide show
  1. package/custom-elements.json +357 -80
  2. package/lib/audio-player/audio-player.d.ts +4 -3
  3. package/lib/data-grid/data-grid.d.ts +2 -0
  4. package/lib/data-grid/locale.d.ts +1 -0
  5. package/lib/date-picker/date-picker.d.ts +4 -2
  6. package/lib/date-time-picker/date-time-picker.d.ts +6 -3
  7. package/lib/divider/definition.d.ts +1 -0
  8. package/lib/divider/divider.d.ts +5 -1
  9. package/lib/option/option.d.ts +4 -7
  10. package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +2 -1
  11. package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +2 -2
  12. package/lib/rich-text-editor/image-placeholder/definition.d.ts +2 -0
  13. package/lib/rich-text-editor/image-placeholder/image-placeholder.d.ts +7 -0
  14. package/lib/rich-text-editor/image-placeholder/image-placeholder.template.d.ts +4 -0
  15. package/lib/rich-text-editor/menubar/consts.d.ts +2 -2
  16. package/lib/rich-text-editor/menubar/definition.d.ts +2 -2
  17. package/lib/rich-text-editor/menubar/menubar.d.ts +2 -2
  18. package/lib/rich-text-editor/menubar/menubar.template.d.ts +2 -2
  19. package/lib/rich-text-editor/rich-text-editor.d.ts +1 -0
  20. package/lib/time-picker/time-picker.d.ts +4 -2
  21. package/locales/de-DE.cjs +2 -1
  22. package/locales/de-DE.js +2 -1
  23. package/locales/en-GB.cjs +2 -1
  24. package/locales/en-GB.js +2 -1
  25. package/locales/en-US.cjs +2 -1
  26. package/locales/en-US.js +2 -1
  27. package/locales/ja-JP.cjs +2 -1
  28. package/locales/ja-JP.js +2 -1
  29. package/locales/zh-CN.cjs +2 -1
  30. package/locales/zh-CN.js +2 -1
  31. package/package.json +2 -1
  32. package/shared/calendar-picker.template.cjs +8 -9
  33. package/shared/calendar-picker.template.js +8 -9
  34. package/shared/definition16.cjs +33 -30
  35. package/shared/definition16.js +33 -30
  36. package/shared/definition17.cjs +137 -1
  37. package/shared/definition17.js +138 -2
  38. package/shared/definition23.cjs +12 -7
  39. package/shared/definition23.js +12 -7
  40. package/shared/definition30.cjs +2 -1
  41. package/shared/definition30.js +2 -1
  42. package/shared/definition31.cjs +5 -1
  43. package/shared/definition31.js +5 -1
  44. package/shared/definition36.cjs +1 -1
  45. package/shared/definition36.js +1 -1
  46. package/shared/definition44.cjs +184 -55
  47. package/shared/definition44.js +184 -55
  48. package/shared/definition45.cjs +12 -5
  49. package/shared/definition45.js +12 -5
  50. package/shared/definition5.cjs +86 -30
  51. package/shared/definition5.js +86 -30
  52. package/shared/definition61.cjs +11 -0
  53. package/shared/definition61.js +11 -0
  54. package/shared/definition64.cjs +1 -1
  55. package/shared/definition64.js +1 -1
  56. package/shared/divider.cjs +7 -2
  57. package/shared/divider.js +7 -2
  58. package/shared/option.cjs +36 -38
  59. package/shared/option.js +37 -39
  60. package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -0
  61. package/shared/picker-field/mixins/single-date-picker.d.ts +4 -2
  62. package/shared/picker-field/mixins/single-value-picker.d.ts +2 -1
  63. package/shared/picker-field/mixins/time-selection-picker.d.ts +4 -2
  64. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -2
  65. package/shared/single-value-picker.cjs +40 -6
  66. package/shared/single-value-picker.js +40 -6
  67. package/shared/text-field.cjs +1 -1
  68. package/shared/text-field.js +1 -1
  69. package/shared/time-selection-picker.template.cjs +71 -22
  70. package/shared/time-selection-picker.template.js +71 -22
  71. package/shared/vivid-element.cjs +1 -1
  72. package/shared/vivid-element.js +1 -1
  73. package/styles/core/all.css +1 -1
  74. package/styles/core/theme.css +1 -1
  75. package/styles/core/typography.css +1 -1
  76. package/styles/tokens/theme-dark.css +4 -4
  77. package/styles/tokens/theme-light.css +4 -4
  78. package/styles/tokens/vivid-2-compat.css +1 -1
  79. package/vivid.api.json +211 -126
@@ -1371,14 +1371,14 @@
1371
1371
  "description": "Indicates the audio-player's src.",
1372
1372
  "privacy": "public"
1373
1373
  },
1374
- {
1375
- "kind": "field",
1376
- "name": "playbackRate"
1377
- },
1378
1374
  {
1379
1375
  "kind": "method",
1380
1376
  "name": "srcChanged"
1381
1377
  },
1378
+ {
1379
+ "kind": "field",
1380
+ "name": "playbackRate"
1381
+ },
1382
1382
  {
1383
1383
  "kind": "field",
1384
1384
  "name": "disabled",
@@ -1425,6 +1425,27 @@
1425
1425
  "text": "boolean"
1426
1426
  }
1427
1427
  },
1428
+ {
1429
+ "kind": "field",
1430
+ "name": "#audioBuffer",
1431
+ "privacy": "private",
1432
+ "type": {
1433
+ "text": "AudioBuffer | undefined"
1434
+ }
1435
+ },
1436
+ {
1437
+ "kind": "field",
1438
+ "name": "#fetchAbortController",
1439
+ "privacy": "private",
1440
+ "type": {
1441
+ "text": "AbortController | undefined"
1442
+ }
1443
+ },
1444
+ {
1445
+ "kind": "method",
1446
+ "name": "#fetchAndCacheAudioBuffer",
1447
+ "async": true
1448
+ },
1428
1449
  {
1429
1450
  "kind": "field",
1430
1451
  "name": "duration"
@@ -1448,6 +1469,25 @@
1448
1469
  "privacy": "private",
1449
1470
  "default": "new Audio()"
1450
1471
  },
1472
+ {
1473
+ "kind": "field",
1474
+ "name": "#isProgrammaticSliderUpdate",
1475
+ "privacy": "private",
1476
+ "type": {
1477
+ "text": "boolean"
1478
+ },
1479
+ "default": "false"
1480
+ },
1481
+ {
1482
+ "kind": "field",
1483
+ "name": "durationFallback",
1484
+ "type": {
1485
+ "text": "boolean"
1486
+ },
1487
+ "default": "false",
1488
+ "description": "Enables fallback logic to fetch and decode audio buffer for duration when metadata is missing.",
1489
+ "privacy": "public"
1490
+ },
1451
1491
  {
1452
1492
  "kind": "method",
1453
1493
  "name": "play"
@@ -1471,15 +1511,6 @@
1471
1511
  "name": "#pausedChanged",
1472
1512
  "privacy": "private"
1473
1513
  },
1474
- {
1475
- "kind": "field",
1476
- "name": "#currentTimeChanged",
1477
- "privacy": "private",
1478
- "type": {
1479
- "text": "boolean"
1480
- },
1481
- "default": "false"
1482
- },
1483
1514
  {
1484
1515
  "kind": "field",
1485
1516
  "name": "#updateProgress",
@@ -1626,6 +1657,15 @@
1626
1657
  "default": "null",
1627
1658
  "description": "Sets the available playback rates. When an empty string, no choices will be available",
1628
1659
  "fieldName": "playbackRates"
1660
+ },
1661
+ {
1662
+ "name": "duration-fallback",
1663
+ "type": {
1664
+ "text": "boolean"
1665
+ },
1666
+ "default": "false",
1667
+ "description": "Enables fallback logic to fetch and decode audio buffer for duration when metadata is missing.",
1668
+ "fieldName": "durationFallback"
1629
1669
  }
1630
1670
  ],
1631
1671
  "mixins": [
@@ -8871,6 +8911,15 @@
8871
8911
  "description": "The index of the column that will receive focus the next time the\ngrid is focused. This value changes as focus moves to different rows\nwithin the grid. Changing this value when focus is already within\nthe grid moves focus to the specified column.",
8872
8912
  "privacy": "public"
8873
8913
  },
8914
+ {
8915
+ "kind": "field",
8916
+ "name": "fixedColumns",
8917
+ "type": {
8918
+ "text": "number | undefined"
8919
+ },
8920
+ "description": "Number of columns to be fixed when scrolling horizontally",
8921
+ "privacy": "public"
8922
+ },
8874
8923
  {
8875
8924
  "kind": "field",
8876
8925
  "name": "rowElementTag",
@@ -8924,6 +8973,14 @@
8924
8973
  "privacy": "private",
8925
8974
  "default": "false"
8926
8975
  },
8976
+ {
8977
+ "kind": "field",
8978
+ "name": "resizeObserver",
8979
+ "type": {
8980
+ "text": "ResizeObserver | undefined"
8981
+ },
8982
+ "privacy": "private"
8983
+ },
8927
8984
  {
8928
8985
  "kind": "field",
8929
8986
  "name": "observer",
@@ -9153,6 +9210,14 @@
9153
9210
  "description": "String that gets applied to the css gridTemplateColumns attribute of child rows",
9154
9211
  "fieldName": "gridTemplateColumns"
9155
9212
  },
9213
+ {
9214
+ "name": "fixed-columns",
9215
+ "type": {
9216
+ "text": "number | undefined"
9217
+ },
9218
+ "description": "Number of columns to be fixed when scrolling horizontally",
9219
+ "fieldName": "fixedColumns"
9220
+ },
9156
9221
  {
9157
9222
  "name": "selection-mode",
9158
9223
  "type": {
@@ -12656,6 +12721,14 @@
12656
12721
  }
12657
12722
  ],
12658
12723
  "exports": [
12724
+ {
12725
+ "kind": "js",
12726
+ "name": "DividerAppearance",
12727
+ "declaration": {
12728
+ "name": "DividerAppearance",
12729
+ "module": "./divider"
12730
+ }
12731
+ },
12659
12732
  {
12660
12733
  "kind": "js",
12661
12734
  "name": "registerDivider",
@@ -12691,6 +12764,16 @@
12691
12764
  "kind": "class",
12692
12765
  "description": "",
12693
12766
  "name": "Divider",
12767
+ "cssProperties": [
12768
+ {
12769
+ "name": "--vvd-divider-accent-soft",
12770
+ "default": "var(--vvd-color-neutral-100)"
12771
+ },
12772
+ {
12773
+ "name": "--vvd-divider-accent-dim",
12774
+ "default": "var(--vvd-color-neutral-200)"
12775
+ }
12776
+ ],
12694
12777
  "members": [
12695
12778
  {
12696
12779
  "kind": "field",
@@ -12710,16 +12793,25 @@
12710
12793
  "description": "The orientation of the divider.",
12711
12794
  "privacy": "public"
12712
12795
  },
12796
+ {
12797
+ "kind": "field",
12798
+ "name": "appearance",
12799
+ "type": {
12800
+ "text": "DividerAppearance | undefined"
12801
+ },
12802
+ "description": "The appearance of the divider.",
12803
+ "privacy": "public"
12804
+ },
12713
12805
  {
12714
12806
  "kind": "field",
12715
12807
  "name": "_vividAriaBehaviour",
12716
- "default": "'delegate'",
12808
+ "default": "'host'",
12717
12809
  "type": {
12718
- "text": "'delegate'"
12810
+ "text": "'host'"
12719
12811
  },
12720
12812
  "inheritedFrom": {
12721
- "name": "DelegatesAria",
12722
- "module": "src/shared/aria/delegates-aria.ts"
12813
+ "name": "HostSemantics",
12814
+ "module": "src/shared/aria/host-semantics.ts"
12723
12815
  }
12724
12816
  },
12725
12817
  {
@@ -12766,12 +12858,20 @@
12766
12858
  },
12767
12859
  "description": "The orientation of the divider.",
12768
12860
  "fieldName": "orientation"
12861
+ },
12862
+ {
12863
+ "name": "appearance",
12864
+ "type": {
12865
+ "text": "DividerAppearance | undefined"
12866
+ },
12867
+ "description": "The appearance of the divider.",
12868
+ "fieldName": "appearance"
12769
12869
  }
12770
12870
  ],
12771
12871
  "mixins": [
12772
12872
  {
12773
- "name": "DelegatesAria",
12774
- "module": "/src/shared/aria/delegates-aria"
12873
+ "name": "HostSemantics",
12874
+ "module": "/src/shared/aria/host-semantics"
12775
12875
  }
12776
12876
  ],
12777
12877
  "superclass": {
@@ -18947,6 +19047,14 @@
18947
19047
  "input"
18948
19048
  ],
18949
19049
  "valueMapping": "event.currentTarget.value"
19050
+ },
19051
+ {
19052
+ "name": "valueAsNumber",
19053
+ "propName": "valueAsNumber",
19054
+ "eventNames": [
19055
+ "input"
19056
+ ],
19057
+ "valueMapping": "event.currentTarget.valueAsNumber"
18950
19058
  }
18951
19059
  ]
18952
19060
  }
@@ -19120,22 +19228,7 @@
19120
19228
  },
19121
19229
  {
19122
19230
  "kind": "field",
19123
- "name": "selectedAttribute",
19124
- "type": {
19125
- "text": "boolean"
19126
- },
19127
- "description": "The selected attribute value. This sets the initial selected value.",
19128
- "privacy": "public"
19129
- },
19130
- {
19131
- "kind": "method",
19132
- "name": "selectedAttributeChanged",
19133
- "privacy": "protected",
19134
- "return": {
19135
- "type": {
19136
- "text": "void"
19137
- }
19138
- }
19231
+ "name": "selectedAttribute"
19139
19232
  },
19140
19233
  {
19141
19234
  "kind": "field",
@@ -19158,30 +19251,18 @@
19158
19251
  },
19159
19252
  {
19160
19253
  "kind": "field",
19161
- "name": "dirtyValue",
19162
- "type": {
19163
- "text": "boolean"
19164
- },
19165
- "default": "false",
19166
- "description": "Track whether the value has been changed from the initial value"
19167
- },
19168
- {
19169
- "kind": "field",
19170
- "name": "initialValue",
19254
+ "name": "value",
19171
19255
  "type": {
19172
19256
  "text": "string"
19173
19257
  },
19174
- "privacy": "protected",
19175
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set."
19258
+ "default": "''",
19259
+ "description": "The value of the option.",
19260
+ "privacy": "public"
19176
19261
  },
19177
19262
  {
19178
19263
  "kind": "method",
19179
- "name": "initialValueChanged",
19180
- "return": {
19181
- "type": {
19182
- "text": "void"
19183
- }
19184
- }
19264
+ "name": "valueChanged",
19265
+ "privacy": "protected"
19185
19266
  },
19186
19267
  {
19187
19268
  "kind": "field",
@@ -19212,13 +19293,6 @@
19212
19293
  "kind": "field",
19213
19294
  "name": "text"
19214
19295
  },
19215
- {
19216
- "kind": "field",
19217
- "name": "value",
19218
- "type": {
19219
- "text": "string"
19220
- }
19221
- },
19222
19296
  {
19223
19297
  "kind": "field",
19224
19298
  "name": "form",
@@ -19252,7 +19326,7 @@
19252
19326
  {
19253
19327
  "kind": "field",
19254
19328
  "name": "proxy",
19255
- "default": "new Option(\n\t\t\tthis.text,\n\t\t\t// @ts-expect-error Propery is used before it is assigned\n\t\t\tthis.initialValue,\n\t\t\tthis.defaultSelected,\n\t\t\tthis.selected\n\t\t)",
19329
+ "default": "new Option(\n\t\t\tthis.text,\n\t\t\tthis.value,\n\t\t\tthis.defaultSelected,\n\t\t\tthis.selected\n\t\t)",
19256
19330
  "description": ""
19257
19331
  },
19258
19332
  {
@@ -19323,6 +19397,15 @@
19323
19397
  }
19324
19398
  ],
19325
19399
  "attributes": [
19400
+ {
19401
+ "name": "selected",
19402
+ "type": {
19403
+ "text": "boolean"
19404
+ },
19405
+ "default": "false",
19406
+ "description": "The defaultSelected state of the option.",
19407
+ "fieldName": "defaultSelected"
19408
+ },
19326
19409
  {
19327
19410
  "name": "disabled",
19328
19411
  "type": {
@@ -19332,20 +19415,21 @@
19332
19415
  "fieldName": "disabled"
19333
19416
  },
19334
19417
  {
19335
- "name": "selected",
19418
+ "name": "current-selected",
19336
19419
  "type": {
19337
19420
  "text": "boolean"
19338
19421
  },
19339
- "description": "The selected attribute value. This sets the initial selected value.",
19340
- "fieldName": "selectedAttribute"
19422
+ "description": "The checked state of the control.",
19423
+ "fieldName": "selected"
19341
19424
  },
19342
19425
  {
19343
19426
  "name": "value",
19344
19427
  "type": {
19345
19428
  "text": "string"
19346
19429
  },
19347
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
19348
- "fieldName": "initialValue"
19430
+ "default": "''",
19431
+ "description": "The value of the option.",
19432
+ "fieldName": "value"
19349
19433
  },
19350
19434
  {
19351
19435
  "name": "label",
@@ -32436,6 +32520,10 @@
32436
32520
  "name": "#hide",
32437
32521
  "privacy": "private"
32438
32522
  },
32523
+ {
32524
+ "kind": "method",
32525
+ "name": "#updateAnchorExpanded"
32526
+ },
32439
32527
  {
32440
32528
  "kind": "method",
32441
32529
  "name": "#updateListeners"
@@ -33763,13 +33851,30 @@
33763
33851
  "kind": "javascript-module",
33764
33852
  "path": "src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts",
33765
33853
  "declarations": [
33854
+ {
33855
+ "kind": "function",
33856
+ "name": "dynamicSchema",
33857
+ "parameters": [
33858
+ {
33859
+ "name": "prefix",
33860
+ "default": "'vwc'"
33861
+ }
33862
+ ]
33863
+ },
33766
33864
  {
33767
33865
  "kind": "variable",
33768
- "name": "extendedSchema",
33769
- "default": "new Schema({\n\tnodes: basicSchema.spec.nodes,\n\tmarks: {\n\t\t...basicSchema.spec.marks.toObject(),\n\t\t...customMarks,\n\t},\n})"
33866
+ "name": "extendedSchema"
33770
33867
  }
33771
33868
  ],
33772
33869
  "exports": [
33870
+ {
33871
+ "kind": "js",
33872
+ "name": "dynamicSchema",
33873
+ "declaration": {
33874
+ "name": "dynamicSchema",
33875
+ "module": "src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts"
33876
+ }
33877
+ },
33773
33878
  {
33774
33879
  "kind": "js",
33775
33880
  "name": "default",
@@ -33840,6 +33945,15 @@
33840
33945
  "name": "#handleChangeEvent",
33841
33946
  "privacy": "private"
33842
33947
  },
33948
+ {
33949
+ "kind": "field",
33950
+ "name": "#vwcPrefix",
33951
+ "privacy": "private",
33952
+ "type": {
33953
+ "text": "string"
33954
+ },
33955
+ "default": "'vwc'"
33956
+ },
33843
33957
  {
33844
33958
  "kind": "method",
33845
33959
  "name": "init",
@@ -33849,6 +33963,10 @@
33849
33963
  "type": {
33850
33964
  "text": "HTMLElement"
33851
33965
  }
33966
+ },
33967
+ {
33968
+ "name": "vwcPrefix",
33969
+ "default": "'vwc'"
33852
33970
  }
33853
33971
  ]
33854
33972
  },
@@ -34000,7 +34118,7 @@
34000
34118
  },
34001
34119
  "parameters": [
34002
34120
  {
34003
- "name": "{\n\t\tfile,\n\t\tposition,\n\t\talt,\n\t}",
34121
+ "name": "{\n\t\tfile,\n\t\tposition,\n\t\talt,\n\t\terror,\n\t}",
34004
34122
  "type": {
34005
34123
  "text": "RichTextEditorInlineImageProps"
34006
34124
  }
@@ -34038,6 +34156,157 @@
34038
34156
  }
34039
34157
  ]
34040
34158
  },
34159
+ {
34160
+ "kind": "javascript-module",
34161
+ "path": "src/lib/rich-text-editor/image-placeholder/definition.ts",
34162
+ "declarations": [
34163
+ {
34164
+ "kind": "variable",
34165
+ "name": "imagePlaceholderDefinition"
34166
+ },
34167
+ {
34168
+ "kind": "variable",
34169
+ "name": "registerImagePlaceholder",
34170
+ "description": "Registers the menubar element with the design system.",
34171
+ "parameters": [
34172
+ {
34173
+ "description": "the prefix to use for the component name",
34174
+ "name": "prefix"
34175
+ }
34176
+ ]
34177
+ }
34178
+ ],
34179
+ "exports": [
34180
+ {
34181
+ "kind": "js",
34182
+ "name": "imagePlaceholderDefinition",
34183
+ "declaration": {
34184
+ "name": "imagePlaceholderDefinition",
34185
+ "module": "src/lib/rich-text-editor/image-placeholder/definition.ts"
34186
+ }
34187
+ },
34188
+ {
34189
+ "kind": "js",
34190
+ "name": "registerImagePlaceholder",
34191
+ "declaration": {
34192
+ "name": "registerImagePlaceholder",
34193
+ "module": "src/lib/rich-text-editor/image-placeholder/definition.ts"
34194
+ }
34195
+ }
34196
+ ]
34197
+ },
34198
+ {
34199
+ "kind": "javascript-module",
34200
+ "path": "src/lib/rich-text-editor/image-placeholder/image-placeholder.ts",
34201
+ "declarations": [
34202
+ {
34203
+ "kind": "class",
34204
+ "description": "",
34205
+ "name": "ImagePlaceholder",
34206
+ "members": [
34207
+ {
34208
+ "kind": "field",
34209
+ "name": "fileName",
34210
+ "type": {
34211
+ "text": "string | undefined"
34212
+ }
34213
+ },
34214
+ {
34215
+ "kind": "field",
34216
+ "name": "size",
34217
+ "type": {
34218
+ "text": "string | undefined"
34219
+ }
34220
+ },
34221
+ {
34222
+ "kind": "field",
34223
+ "name": "errorMessage",
34224
+ "type": {
34225
+ "text": "string | undefined"
34226
+ }
34227
+ },
34228
+ {
34229
+ "kind": "field",
34230
+ "name": "icon",
34231
+ "type": {
34232
+ "text": "string | undefined"
34233
+ }
34234
+ },
34235
+ {
34236
+ "kind": "field",
34237
+ "name": "VIVID_VERSION",
34238
+ "static": true,
34239
+ "default": "__PACKAGE_VERSION__",
34240
+ "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`.",
34241
+ "type": {
34242
+ "text": "string"
34243
+ },
34244
+ "inheritedFrom": {
34245
+ "name": "VividElement",
34246
+ "module": "src/shared/foundation/vivid-element/vivid-element.ts"
34247
+ }
34248
+ },
34249
+ {
34250
+ "kind": "field",
34251
+ "name": "componentName",
34252
+ "type": {
34253
+ "text": "string"
34254
+ },
34255
+ "static": true,
34256
+ "description": "Core component name, without prefix",
34257
+ "inheritedFrom": {
34258
+ "name": "VividElement",
34259
+ "module": "src/shared/foundation/vivid-element/vivid-element.ts"
34260
+ }
34261
+ }
34262
+ ],
34263
+ "attributes": [
34264
+ {
34265
+ "name": "file-name",
34266
+ "type": {
34267
+ "text": "string | undefined"
34268
+ },
34269
+ "fieldName": "fileName"
34270
+ },
34271
+ {
34272
+ "name": "size",
34273
+ "type": {
34274
+ "text": "string | undefined"
34275
+ },
34276
+ "fieldName": "size"
34277
+ },
34278
+ {
34279
+ "name": "error-message",
34280
+ "type": {
34281
+ "text": "string | undefined"
34282
+ },
34283
+ "fieldName": "errorMessage"
34284
+ },
34285
+ {
34286
+ "name": "icon",
34287
+ "type": {
34288
+ "text": "string | undefined"
34289
+ },
34290
+ "fieldName": "icon"
34291
+ }
34292
+ ],
34293
+ "superclass": {
34294
+ "name": "VividElement",
34295
+ "module": "/src/shared/foundation/vivid-element/vivid-element"
34296
+ }
34297
+ }
34298
+ ],
34299
+ "exports": [
34300
+ {
34301
+ "kind": "js",
34302
+ "name": "ImagePlaceholder",
34303
+ "declaration": {
34304
+ "name": "ImagePlaceholder",
34305
+ "module": "src/lib/rich-text-editor/image-placeholder/image-placeholder.ts"
34306
+ }
34307
+ }
34308
+ ]
34309
+ },
34041
34310
  {
34042
34311
  "kind": "javascript-module",
34043
34312
  "path": "src/lib/rich-text-editor/menubar/consts.ts",
@@ -34062,9 +34331,9 @@
34062
34331
  "kind": "variable",
34063
34332
  "name": "MENU_BAR_ITEMS",
34064
34333
  "type": {
34065
- "text": "{\n\t[key: string]: {\n\t\tregisterStateProperty?: (menuBar: MenuBar) => void;\n\t\trender: (context: VividElementDefinitionContext) => ViewTemplate<any, any>;\n\t};\n}"
34334
+ "text": "{\n\t[key: string]: {\n\t\tregisterStateProperty?: (menubar: Menubar) => void;\n\t\trender: (context: VividElementDefinitionContext) => ViewTemplate<any, any>;\n\t};\n}"
34066
34335
  },
34067
- "default": "{\n\ttextBlock: {\n\t\tregisterStateProperty: function (menuBar: MenuBar) {\n\t\t\tmenuBar.addEventListener('text-styles-changed', textBlockEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst selectTag = context.tagFor(Select);\n\t\t\tconst optionTag = context.tagFor(ListboxOption);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\n\t\t\treturn html`\n\t\t<${tooltipTag} text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textBlockType}\" placement=\"top\">\n\t\t\t<${selectTag}\n scale=\"condensed\"\n shape=\"rounded\"\n appearance=\"ghost\"\n\t\t\t\tslot=\"anchor\"\n\t\t\t\ttrigger=\"auto\"\n\t\t\t\tid=\"text-block\"\n\t\t\t\taria-label=\"Text Block\"\n\t\t\t\tplacement=\"bottom-end\"\n\t\t\t\tvalue=\"${(_, { parent }) => parent.textBlockType}\"\n\t\t\t\t@change=\"${(_, { parent, event }) =>\n\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\t'text-block-selected',\n\t\t\t\t\t\t(event.target as HTMLSelectElement).value\n\t\t\t\t\t)}\"\n\t\t\t>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Title\"\n\t\t\t\t\tvalue=\"title\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"title\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Subtitle\"\n\t\t\t\t\tvalue=\"subtitle\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"subtitle\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Body\"\n\t\t\t\t\tvalue=\"body\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"body\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t</${selectTag}>\n\t\t</${tooltipTag}>\n\t\t`;\n\t\t},\n\t},\n\ttextDecoration: {\n\t\tregisterStateProperty: function (menuBar) {\n\t\t\tmenuBar.addEventListener(\n\t\t\t\t'text-styles-changed',\n\t\t\t\ttextDecorationEventHandler\n\t\t\t);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\treturn html`\n\t\t\t\t<span id=\"text-decoration\">\n\t\t\t\t\t${repeat(\n\t\t\t\t\t\t(_) => TEXT_DECORATION_ITEMS,\n\t\t\t\t\t\thtml`\n <${tooltipTag} text=\"${(\n\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\" placement=\"top\">\n <${buttonTag}\n class=\"selection-button\"\n slot=\"anchor\"\n aria-label=\"${(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"rounded\"\n icon=\"${(x) => x.icon}\"\n @click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'text-decoration-selected',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\"')}\"\n ></${buttonTag}>\n </${tooltipTag}>\n\t\t\t\t`\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t`;\n\t\t},\n\t},\n\ttextSize: {\n\t\tregisterStateProperty: function (menuBar) {\n\t\t\tmenuBar.addEventListener('text-styles-changed', textSizeEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst menuTag = context.tagFor(Menu);\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\tconst menuItemTag = context.tagFor(MenuItem);\n\t\t\treturn html`\n <${menuTag}\n\t\t\t\t\t\tauto-dismiss\n trigger=\"auto\"\n id=\"text-size\"\n aria-label=\"Text Size\"\n placement=\"bottom-end\"\n >\n\t\t\t\t\t\t<${tooltipTag} slot=\"anchor\" text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textSize}\" placement=\"top\">\n <${buttonTag}\n slot=\"anchor\"\n aria-label=\"Open text size menu\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"pill\"\n icon=\"text-size-line\"\n ></${buttonTag}>\n\t\t\t\t\t\t</${tooltipTag}>\n\t\t\t\t\t\t${repeat(\n\t\t\t\t\t\t\t(_) => TEXT_SIZES,\n\t\t\t\t\t\t\thtml`\n\t\t\t\t\t\t\t<${menuItemTag}\n\t\t\t\t\t\t\t\tcheck-appearance=\"tick-only\"\n\t\t\t\t\t\t\t\tcontrol-type=\"checkbox\"\n\t\t\t\t\t\t\t\ttext=\"${(x) => x.text}\"\n\t\t\t\t\t\t\t\tvalue=\"${(x) => x.value}\"\n\t\t\t\t\t\t\t\tinternal-part\n\t\t\t\t\t\t\t\tclass=\"menubar-selector-menuitem\"\n\t\t\t\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t\t\t\t\t@click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\tnotifyMenuBarChange(\n\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t'text-size-selected',\n\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t)}\"\n ></${menuItemTag}>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t)}\n </${menuTag}>\n `;\n\t\t},\n\t},\n\tdivider: {\n\t\trender: function (context) {\n\t\t\tconst dividerTag = context.tagFor(Divider);\n\t\t\treturn html`\n\t\t\t\t<${dividerTag} class=\"divider\" orientation=\"vertical\"></${dividerTag}>\n\t\t\t`;\n\t\t},\n\t},\n}"
34336
+ "default": "{\n\ttextBlock: {\n\t\tregisterStateProperty: function (menubar: Menubar) {\n\t\t\tmenubar.addEventListener('text-styles-changed', textBlockEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst selectTag = context.tagFor(Select);\n\t\t\tconst optionTag = context.tagFor(ListboxOption);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\n\t\t\treturn html`\n\t\t<${tooltipTag} text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textBlockType}\" placement=\"top\">\n\t\t\t<${selectTag}\n scale=\"condensed\"\n shape=\"rounded\"\n appearance=\"ghost\"\n\t\t\t\tslot=\"anchor\"\n\t\t\t\ttrigger=\"auto\"\n\t\t\t\tid=\"text-block\"\n\t\t\t\taria-label=\"Text Block\"\n\t\t\t\tplacement=\"bottom-end\"\n\t\t\t\tvalue=\"${(_, { parent }) => parent.textBlockType}\"\n\t\t\t\t@change=\"${(_, { parent, event }) =>\n\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\tparent,\n\t\t\t\t\t\t'text-block-selected',\n\t\t\t\t\t\t(event.target as HTMLSelectElement).value\n\t\t\t\t\t)}\"\n\t\t\t>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Title\"\n\t\t\t\t\tvalue=\"title\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"title\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Subtitle\"\n\t\t\t\t\tvalue=\"subtitle\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"subtitle\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t\t<${optionTag}\n\t\t\t\t\ttext=\"Body\"\n\t\t\t\t\tvalue=\"body\"\n\t\t\t\t\tinternal-part\n\t\t\t\t\tclass=\"body\"\n\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t></${optionTag}>\n\t\t\t</${selectTag}>\n\t\t</${tooltipTag}>\n\t\t`;\n\t\t},\n\t},\n\ttextDecoration: {\n\t\tregisterStateProperty: function (menubar) {\n\t\t\tmenubar.addEventListener(\n\t\t\t\t'text-styles-changed',\n\t\t\t\ttextDecorationEventHandler\n\t\t\t);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\treturn html`\n\t\t\t\t<span id=\"text-decoration\">\n\t\t\t\t\t${repeat(\n\t\t\t\t\t\t(_) => TEXT_DECORATION_ITEMS,\n\t\t\t\t\t\thtml`\n <${tooltipTag} text=\"${(\n\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\" placement=\"top\">\n <${buttonTag}\n class=\"selection-button\"\n slot=\"anchor\"\n aria-label=\"${(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ parentContext: { parent } }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) => parent.locale.richTextEditor[x.value]}\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"rounded\"\n icon=\"${(x) => x.icon}\"\n @click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'text-decoration-selected',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\"')}\"\n ></${buttonTag}>\n </${tooltipTag}>\n\t\t\t\t`\n\t\t\t\t\t)}\n\t\t\t\t</span>\n\t\t\t`;\n\t\t},\n\t},\n\ttextSize: {\n\t\tregisterStateProperty: function (menubar) {\n\t\t\tmenubar.addEventListener('text-styles-changed', textSizeEventHandler);\n\t\t},\n\t\trender: function (context) {\n\t\t\tconst menuTag = context.tagFor(Menu);\n\t\t\tconst buttonTag = context.tagFor(Button);\n\t\t\tconst tooltipTag = context.tagFor(Tooltip);\n\t\t\tconst menuItemTag = context.tagFor(MenuItem);\n\t\t\treturn html`\n <${menuTag}\n\t\t\t\t\t\tauto-dismiss\n trigger=\"auto\"\n id=\"text-size\"\n aria-label=\"Text Size\"\n placement=\"bottom-end\"\n >\n\t\t\t\t\t\t<${tooltipTag} slot=\"anchor\" text=\"${(_, { parent }) =>\n\t\t\t\tparent.locale.richTextEditor.textSize}\" placement=\"top\">\n <${buttonTag}\n slot=\"anchor\"\n aria-label=\"Open text size menu\"\n size=\"super-condensed\"\n appearance=\"ghost-light\"\n shape=\"pill\"\n icon=\"text-size-line\"\n ></${buttonTag}>\n\t\t\t\t\t\t</${tooltipTag}>\n\t\t\t\t\t\t${repeat(\n\t\t\t\t\t\t\t(_) => TEXT_SIZES,\n\t\t\t\t\t\t\thtml`\n\t\t\t\t\t\t\t<${menuItemTag}\n\t\t\t\t\t\t\t\tcheck-appearance=\"tick-only\"\n\t\t\t\t\t\t\t\tcontrol-type=\"checkbox\"\n\t\t\t\t\t\t\t\ttext=\"${(x) => x.text}\"\n\t\t\t\t\t\t\t\tvalue=\"${(x) => x.value}\"\n\t\t\t\t\t\t\t\tinternal-part\n\t\t\t\t\t\t\t\tclass=\"menubar-selector-menuitem\"\n\t\t\t\t\t\t\t\tconnotation=\"cta\"\n\t\t\t\t\t\t\t\t@click=\"${(x, c) =>\n\t\t\t\t\t\t\t\t\tnotifyMenubarChange(\n\t\t\t\t\t\t\t\t\t\tc.parentContext.parent,\n\t\t\t\t\t\t\t\t\t\t'text-size-selected',\n\t\t\t\t\t\t\t\t\t\tx.value\n\t\t\t\t\t\t\t\t\t)}\"\n ></${menuItemTag}>\n\t\t\t\t\t\t\t`\n\t\t\t\t\t\t)}\n </${menuTag}>\n `;\n\t\t},\n\t},\n\tdivider: {\n\t\trender: function (context) {\n\t\t\tconst dividerTag = context.tagFor(Divider);\n\t\t\treturn html`\n\t\t\t\t<${dividerTag} class=\"divider\" orientation=\"vertical\"></${dividerTag}>\n\t\t\t`;\n\t\t},\n\t},\n}"
34068
34337
  }
34069
34338
  ],
34070
34339
  "exports": [
@@ -34100,11 +34369,11 @@
34100
34369
  "declarations": [
34101
34370
  {
34102
34371
  "kind": "variable",
34103
- "name": "menuBarDefinition"
34372
+ "name": "menubarDefinition"
34104
34373
  },
34105
34374
  {
34106
34375
  "kind": "variable",
34107
- "name": "registerMenuBar",
34376
+ "name": "registerMenubar",
34108
34377
  "description": "Registers the menubar element with the design system.",
34109
34378
  "parameters": [
34110
34379
  {
@@ -34117,17 +34386,17 @@
34117
34386
  "exports": [
34118
34387
  {
34119
34388
  "kind": "js",
34120
- "name": "menuBarDefinition",
34389
+ "name": "menubarDefinition",
34121
34390
  "declaration": {
34122
- "name": "menuBarDefinition",
34391
+ "name": "menubarDefinition",
34123
34392
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34124
34393
  }
34125
34394
  },
34126
34395
  {
34127
34396
  "kind": "js",
34128
- "name": "registerMenuBar",
34397
+ "name": "registerMenubar",
34129
34398
  "declaration": {
34130
- "name": "registerMenuBar",
34399
+ "name": "registerMenubar",
34131
34400
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34132
34401
  }
34133
34402
  }
@@ -34140,7 +34409,7 @@
34140
34409
  {
34141
34410
  "kind": "class",
34142
34411
  "description": "",
34143
- "name": "MenuBar",
34412
+ "name": "Menubar",
34144
34413
  "members": [
34145
34414
  {
34146
34415
  "kind": "field",
@@ -34216,9 +34485,9 @@
34216
34485
  "exports": [
34217
34486
  {
34218
34487
  "kind": "js",
34219
- "name": "MenuBar",
34488
+ "name": "Menubar",
34220
34489
  "declaration": {
34221
- "name": "MenuBar",
34490
+ "name": "Menubar",
34222
34491
  "module": "src/lib/rich-text-editor/menubar/menubar.ts"
34223
34492
  }
34224
34493
  }
@@ -38633,6 +38902,14 @@
38633
38902
  "text": "string | undefined"
38634
38903
  }
38635
38904
  },
38905
+ {
38906
+ "kind": "field",
38907
+ "name": "focusedPickerClass",
38908
+ "type": {
38909
+ "text": "string"
38910
+ },
38911
+ "default": "'focused'"
38912
+ },
38636
38913
  {
38637
38914
  "kind": "method",
38638
38915
  "name": "scrollSelectedOptionsToTop"