@vonage/vivid 4.28.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 (72) hide show
  1. package/custom-elements.json +341 -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 +1 -1
  33. package/shared/calendar-picker.template.js +1 -1
  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/definition36.cjs +1 -1
  41. package/shared/definition36.js +1 -1
  42. package/shared/definition44.cjs +184 -55
  43. package/shared/definition44.js +184 -55
  44. package/shared/definition45.cjs +12 -5
  45. package/shared/definition45.js +12 -5
  46. package/shared/definition5.cjs +86 -30
  47. package/shared/definition5.js +86 -30
  48. package/shared/definition61.cjs +11 -0
  49. package/shared/definition61.js +11 -0
  50. package/shared/definition64.cjs +1 -1
  51. package/shared/definition64.js +1 -1
  52. package/shared/divider.cjs +7 -2
  53. package/shared/divider.js +7 -2
  54. package/shared/option.cjs +36 -38
  55. package/shared/option.js +37 -39
  56. package/shared/picker-field/mixins/single-date-picker.d.ts +4 -2
  57. package/shared/picker-field/mixins/single-value-picker.d.ts +2 -1
  58. package/shared/picker-field/mixins/time-selection-picker.d.ts +4 -2
  59. package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -2
  60. package/shared/single-value-picker.cjs +40 -6
  61. package/shared/single-value-picker.js +40 -6
  62. package/shared/text-field.cjs +1 -1
  63. package/shared/text-field.js +1 -1
  64. package/shared/vivid-element.cjs +1 -1
  65. package/shared/vivid-element.js +1 -1
  66. package/styles/core/all.css +1 -1
  67. package/styles/core/theme.css +1 -1
  68. package/styles/core/typography.css +1 -1
  69. package/styles/tokens/theme-dark.css +4 -4
  70. package/styles/tokens/theme-light.css +4 -4
  71. package/styles/tokens/vivid-2-compat.css +1 -1
  72. 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": {
@@ -19128,22 +19228,7 @@
19128
19228
  },
19129
19229
  {
19130
19230
  "kind": "field",
19131
- "name": "selectedAttribute",
19132
- "type": {
19133
- "text": "boolean"
19134
- },
19135
- "description": "The selected attribute value. This sets the initial selected value.",
19136
- "privacy": "public"
19137
- },
19138
- {
19139
- "kind": "method",
19140
- "name": "selectedAttributeChanged",
19141
- "privacy": "protected",
19142
- "return": {
19143
- "type": {
19144
- "text": "void"
19145
- }
19146
- }
19231
+ "name": "selectedAttribute"
19147
19232
  },
19148
19233
  {
19149
19234
  "kind": "field",
@@ -19166,30 +19251,18 @@
19166
19251
  },
19167
19252
  {
19168
19253
  "kind": "field",
19169
- "name": "dirtyValue",
19170
- "type": {
19171
- "text": "boolean"
19172
- },
19173
- "default": "false",
19174
- "description": "Track whether the value has been changed from the initial value"
19175
- },
19176
- {
19177
- "kind": "field",
19178
- "name": "initialValue",
19254
+ "name": "value",
19179
19255
  "type": {
19180
19256
  "text": "string"
19181
19257
  },
19182
- "privacy": "protected",
19183
- "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"
19184
19261
  },
19185
19262
  {
19186
19263
  "kind": "method",
19187
- "name": "initialValueChanged",
19188
- "return": {
19189
- "type": {
19190
- "text": "void"
19191
- }
19192
- }
19264
+ "name": "valueChanged",
19265
+ "privacy": "protected"
19193
19266
  },
19194
19267
  {
19195
19268
  "kind": "field",
@@ -19220,13 +19293,6 @@
19220
19293
  "kind": "field",
19221
19294
  "name": "text"
19222
19295
  },
19223
- {
19224
- "kind": "field",
19225
- "name": "value",
19226
- "type": {
19227
- "text": "string"
19228
- }
19229
- },
19230
19296
  {
19231
19297
  "kind": "field",
19232
19298
  "name": "form",
@@ -19260,7 +19326,7 @@
19260
19326
  {
19261
19327
  "kind": "field",
19262
19328
  "name": "proxy",
19263
- "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)",
19264
19330
  "description": ""
19265
19331
  },
19266
19332
  {
@@ -19331,6 +19397,15 @@
19331
19397
  }
19332
19398
  ],
19333
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
+ },
19334
19409
  {
19335
19410
  "name": "disabled",
19336
19411
  "type": {
@@ -19340,20 +19415,21 @@
19340
19415
  "fieldName": "disabled"
19341
19416
  },
19342
19417
  {
19343
- "name": "selected",
19418
+ "name": "current-selected",
19344
19419
  "type": {
19345
19420
  "text": "boolean"
19346
19421
  },
19347
- "description": "The selected attribute value. This sets the initial selected value.",
19348
- "fieldName": "selectedAttribute"
19422
+ "description": "The checked state of the control.",
19423
+ "fieldName": "selected"
19349
19424
  },
19350
19425
  {
19351
19426
  "name": "value",
19352
19427
  "type": {
19353
19428
  "text": "string"
19354
19429
  },
19355
- "description": "The initial value of the option. This value sets the `value` property\nonly when the `value` property has not been explicitly set.",
19356
- "fieldName": "initialValue"
19430
+ "default": "''",
19431
+ "description": "The value of the option.",
19432
+ "fieldName": "value"
19357
19433
  },
19358
19434
  {
19359
19435
  "name": "label",
@@ -32444,6 +32520,10 @@
32444
32520
  "name": "#hide",
32445
32521
  "privacy": "private"
32446
32522
  },
32523
+ {
32524
+ "kind": "method",
32525
+ "name": "#updateAnchorExpanded"
32526
+ },
32447
32527
  {
32448
32528
  "kind": "method",
32449
32529
  "name": "#updateListeners"
@@ -33771,13 +33851,30 @@
33771
33851
  "kind": "javascript-module",
33772
33852
  "path": "src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts",
33773
33853
  "declarations": [
33854
+ {
33855
+ "kind": "function",
33856
+ "name": "dynamicSchema",
33857
+ "parameters": [
33858
+ {
33859
+ "name": "prefix",
33860
+ "default": "'vwc'"
33861
+ }
33862
+ ]
33863
+ },
33774
33864
  {
33775
33865
  "kind": "variable",
33776
- "name": "extendedSchema",
33777
- "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"
33778
33867
  }
33779
33868
  ],
33780
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
+ },
33781
33878
  {
33782
33879
  "kind": "js",
33783
33880
  "name": "default",
@@ -33848,6 +33945,15 @@
33848
33945
  "name": "#handleChangeEvent",
33849
33946
  "privacy": "private"
33850
33947
  },
33948
+ {
33949
+ "kind": "field",
33950
+ "name": "#vwcPrefix",
33951
+ "privacy": "private",
33952
+ "type": {
33953
+ "text": "string"
33954
+ },
33955
+ "default": "'vwc'"
33956
+ },
33851
33957
  {
33852
33958
  "kind": "method",
33853
33959
  "name": "init",
@@ -33857,6 +33963,10 @@
33857
33963
  "type": {
33858
33964
  "text": "HTMLElement"
33859
33965
  }
33966
+ },
33967
+ {
33968
+ "name": "vwcPrefix",
33969
+ "default": "'vwc'"
33860
33970
  }
33861
33971
  ]
33862
33972
  },
@@ -34008,7 +34118,7 @@
34008
34118
  },
34009
34119
  "parameters": [
34010
34120
  {
34011
- "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}",
34012
34122
  "type": {
34013
34123
  "text": "RichTextEditorInlineImageProps"
34014
34124
  }
@@ -34046,6 +34156,157 @@
34046
34156
  }
34047
34157
  ]
34048
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
+ },
34049
34310
  {
34050
34311
  "kind": "javascript-module",
34051
34312
  "path": "src/lib/rich-text-editor/menubar/consts.ts",
@@ -34070,9 +34331,9 @@
34070
34331
  "kind": "variable",
34071
34332
  "name": "MENU_BAR_ITEMS",
34072
34333
  "type": {
34073
- "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}"
34074
34335
  },
34075
- "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}"
34076
34337
  }
34077
34338
  ],
34078
34339
  "exports": [
@@ -34108,11 +34369,11 @@
34108
34369
  "declarations": [
34109
34370
  {
34110
34371
  "kind": "variable",
34111
- "name": "menuBarDefinition"
34372
+ "name": "menubarDefinition"
34112
34373
  },
34113
34374
  {
34114
34375
  "kind": "variable",
34115
- "name": "registerMenuBar",
34376
+ "name": "registerMenubar",
34116
34377
  "description": "Registers the menubar element with the design system.",
34117
34378
  "parameters": [
34118
34379
  {
@@ -34125,17 +34386,17 @@
34125
34386
  "exports": [
34126
34387
  {
34127
34388
  "kind": "js",
34128
- "name": "menuBarDefinition",
34389
+ "name": "menubarDefinition",
34129
34390
  "declaration": {
34130
- "name": "menuBarDefinition",
34391
+ "name": "menubarDefinition",
34131
34392
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34132
34393
  }
34133
34394
  },
34134
34395
  {
34135
34396
  "kind": "js",
34136
- "name": "registerMenuBar",
34397
+ "name": "registerMenubar",
34137
34398
  "declaration": {
34138
- "name": "registerMenuBar",
34399
+ "name": "registerMenubar",
34139
34400
  "module": "src/lib/rich-text-editor/menubar/definition.ts"
34140
34401
  }
34141
34402
  }
@@ -34148,7 +34409,7 @@
34148
34409
  {
34149
34410
  "kind": "class",
34150
34411
  "description": "",
34151
- "name": "MenuBar",
34412
+ "name": "Menubar",
34152
34413
  "members": [
34153
34414
  {
34154
34415
  "kind": "field",
@@ -34224,9 +34485,9 @@
34224
34485
  "exports": [
34225
34486
  {
34226
34487
  "kind": "js",
34227
- "name": "MenuBar",
34488
+ "name": "Menubar",
34228
34489
  "declaration": {
34229
- "name": "MenuBar",
34490
+ "name": "Menubar",
34230
34491
  "module": "src/lib/rich-text-editor/menubar/menubar.ts"
34231
34492
  }
34232
34493
  }