@kubex/zinc 1.1.78 → 1.1.80
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.
- package/dist/custom-elements.json +1149 -130
- package/dist/vscode.html-custom-data.json +175 -1
- package/dist/web-types.json +396 -2
- package/dist/zn.d.ts +384 -0
- package/dist/zn.min.js +350 -295
- package/docs/pages/components/inline-edit.md +21 -0
- package/docs/pages/components/rating.md +2 -1
- package/docs/pages/components/slash-item.md +126 -0
- package/docs/pages/components/slash-menu.md +168 -0
- package/docs/pages/components/textarea.md +148 -0
- package/docs/pages/components/translations.md +34 -0
- package/package.json +1 -1
- package/src/components/inline-edit/inline-edit.component.ts +31 -0
- package/src/components/inline-edit/inline-edit.test.ts +83 -1
- package/src/components/rating/rating.component.ts +10 -1
- package/src/components/rating/rating.scss +6 -9
- package/src/components/slash-item/index.ts +12 -0
- package/src/components/slash-item/slash-item.component.ts +76 -0
- package/src/components/slash-item/slash-item.scss +5 -0
- package/src/components/slash-menu/index.ts +14 -0
- package/src/components/slash-menu/slash-menu-controller.ts +361 -0
- package/src/components/slash-menu/slash-menu-items.ts +122 -0
- package/src/components/slash-menu/slash-menu.component.ts +305 -0
- package/src/components/slash-menu/slash-menu.scss +120 -0
- package/src/components/slash-menu/slash-menu.test.ts +154 -0
- package/src/components/textarea/textarea.component.ts +143 -0
- package/src/components/textarea/textarea.test.ts +310 -2
- package/src/components/translations/translations.component.ts +31 -0
- package/src/components/translations/translations.test.ts +89 -1
- package/src/events/events.ts +2 -0
- package/src/events/zn-slash-insert.ts +9 -0
- package/src/events/zn-slash-select.ts +9 -0
- package/src/utilities/caret-position.ts +118 -0
- package/src/zinc.ts +3 -0
|
@@ -17571,6 +17571,54 @@
|
|
|
17571
17571
|
},
|
|
17572
17572
|
"attribute": "textarea-rows"
|
|
17573
17573
|
},
|
|
17574
|
+
{
|
|
17575
|
+
"kind": "field",
|
|
17576
|
+
"name": "slashItems",
|
|
17577
|
+
"type": {
|
|
17578
|
+
"text": "SlashMenuItem[]"
|
|
17579
|
+
},
|
|
17580
|
+
"default": "[]",
|
|
17581
|
+
"description": "Quick insertions offered by the slash menu of a `textarea` input. Accepts a JSON array of items, or the\nshorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Forwarded to the inner `zn-textarea`.",
|
|
17582
|
+
"attribute": "slash-items"
|
|
17583
|
+
},
|
|
17584
|
+
{
|
|
17585
|
+
"kind": "field",
|
|
17586
|
+
"name": "slashPreset",
|
|
17587
|
+
"type": {
|
|
17588
|
+
"text": "string"
|
|
17589
|
+
},
|
|
17590
|
+
"default": "''",
|
|
17591
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
17592
|
+
"attribute": "slash-preset"
|
|
17593
|
+
},
|
|
17594
|
+
{
|
|
17595
|
+
"kind": "field",
|
|
17596
|
+
"name": "slashTrigger",
|
|
17597
|
+
"type": {
|
|
17598
|
+
"text": "string"
|
|
17599
|
+
},
|
|
17600
|
+
"default": "'/'",
|
|
17601
|
+
"description": "The characters that open the slash menu.",
|
|
17602
|
+
"attribute": "slash-trigger"
|
|
17603
|
+
},
|
|
17604
|
+
{
|
|
17605
|
+
"kind": "field",
|
|
17606
|
+
"name": "slashHeading",
|
|
17607
|
+
"type": {
|
|
17608
|
+
"text": "string"
|
|
17609
|
+
},
|
|
17610
|
+
"default": "'Insert'",
|
|
17611
|
+
"description": "The heading shown above the slash menu's items.",
|
|
17612
|
+
"attribute": "slash-heading"
|
|
17613
|
+
},
|
|
17614
|
+
{
|
|
17615
|
+
"kind": "field",
|
|
17616
|
+
"name": "slashItemsProvider",
|
|
17617
|
+
"type": {
|
|
17618
|
+
"text": "(query: string) => SlashMenuItem[] | Promise<SlashMenuItem[]> | undefined"
|
|
17619
|
+
},
|
|
17620
|
+
"description": "Resolves additional slash menu items each time the menu opens. JavaScript only."
|
|
17621
|
+
},
|
|
17574
17622
|
{
|
|
17575
17623
|
"kind": "field",
|
|
17576
17624
|
"name": "options",
|
|
@@ -18031,6 +18079,42 @@
|
|
|
18031
18079
|
},
|
|
18032
18080
|
"fieldName": "textareaRows"
|
|
18033
18081
|
},
|
|
18082
|
+
{
|
|
18083
|
+
"name": "slash-items",
|
|
18084
|
+
"type": {
|
|
18085
|
+
"text": "SlashMenuItem[]"
|
|
18086
|
+
},
|
|
18087
|
+
"default": "[]",
|
|
18088
|
+
"description": "Quick insertions offered by the slash menu of a `textarea` input. Accepts a JSON array of items, or the\nshorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Forwarded to the inner `zn-textarea`.",
|
|
18089
|
+
"fieldName": "slashItems"
|
|
18090
|
+
},
|
|
18091
|
+
{
|
|
18092
|
+
"name": "slash-preset",
|
|
18093
|
+
"type": {
|
|
18094
|
+
"text": "string"
|
|
18095
|
+
},
|
|
18096
|
+
"default": "''",
|
|
18097
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
18098
|
+
"fieldName": "slashPreset"
|
|
18099
|
+
},
|
|
18100
|
+
{
|
|
18101
|
+
"name": "slash-trigger",
|
|
18102
|
+
"type": {
|
|
18103
|
+
"text": "string"
|
|
18104
|
+
},
|
|
18105
|
+
"default": "'/'",
|
|
18106
|
+
"description": "The characters that open the slash menu.",
|
|
18107
|
+
"fieldName": "slashTrigger"
|
|
18108
|
+
},
|
|
18109
|
+
{
|
|
18110
|
+
"name": "slash-heading",
|
|
18111
|
+
"type": {
|
|
18112
|
+
"text": "string"
|
|
18113
|
+
},
|
|
18114
|
+
"default": "'Insert'",
|
|
18115
|
+
"description": "The heading shown above the slash menu's items.",
|
|
18116
|
+
"fieldName": "slashHeading"
|
|
18117
|
+
},
|
|
18034
18118
|
{
|
|
18035
18119
|
"name": "options",
|
|
18036
18120
|
"type": {
|
|
@@ -36220,215 +36304,879 @@
|
|
|
36220
36304
|
},
|
|
36221
36305
|
{
|
|
36222
36306
|
"kind": "javascript-module",
|
|
36223
|
-
"path": "components/
|
|
36307
|
+
"path": "components/slash-item/slash-item.js",
|
|
36224
36308
|
"declarations": [
|
|
36225
36309
|
{
|
|
36226
36310
|
"kind": "class",
|
|
36227
36311
|
"description": "",
|
|
36228
|
-
"name": "
|
|
36229
|
-
"cssProperties": [
|
|
36230
|
-
{
|
|
36231
|
-
"description": "The preferred width of the slideout. Note the slideout will shrink to accommodate smaller screens.",
|
|
36232
|
-
"name": "--width"
|
|
36233
|
-
},
|
|
36234
|
-
{
|
|
36235
|
-
"description": "The amount of padding to use for the header.",
|
|
36236
|
-
"name": "--header-spacing"
|
|
36237
|
-
},
|
|
36238
|
-
{
|
|
36239
|
-
"description": "The amount of padding to use for the body.",
|
|
36240
|
-
"name": "--body-spacing"
|
|
36241
|
-
}
|
|
36242
|
-
],
|
|
36243
|
-
"cssParts": [
|
|
36244
|
-
{
|
|
36245
|
-
"description": "The component's base wrapper.",
|
|
36246
|
-
"name": "base"
|
|
36247
|
-
},
|
|
36248
|
-
{
|
|
36249
|
-
"description": "The slideout's header. This element wraps the title and header actions.",
|
|
36250
|
-
"name": "header"
|
|
36251
|
-
},
|
|
36252
|
-
{
|
|
36253
|
-
"description": "The slideout's close button.",
|
|
36254
|
-
"name": "close-button"
|
|
36255
|
-
},
|
|
36256
|
-
{
|
|
36257
|
-
"description": "The close buttons exported `base` part.",
|
|
36258
|
-
"name": "close-button__base"
|
|
36259
|
-
},
|
|
36260
|
-
{
|
|
36261
|
-
"description": "The slideout's body.",
|
|
36262
|
-
"name": "body"
|
|
36263
|
-
}
|
|
36264
|
-
],
|
|
36312
|
+
"name": "ZnSlashItem",
|
|
36265
36313
|
"slots": [
|
|
36266
36314
|
{
|
|
36267
|
-
"description": "The
|
|
36315
|
+
"description": "The text to insert, for values that are long or span multiple lines. Ignored when the `value` attribute is set.",
|
|
36268
36316
|
"name": ""
|
|
36269
|
-
},
|
|
36270
|
-
{
|
|
36271
|
-
"description": "The slideout's label. Alternatively you can use the `label` attribute.",
|
|
36272
|
-
"name": "label"
|
|
36273
36317
|
}
|
|
36274
36318
|
],
|
|
36275
36319
|
"members": [
|
|
36276
36320
|
{
|
|
36277
36321
|
"kind": "field",
|
|
36278
|
-
"name": "
|
|
36322
|
+
"name": "label",
|
|
36279
36323
|
"type": {
|
|
36280
|
-
"text": "
|
|
36324
|
+
"text": "string"
|
|
36281
36325
|
},
|
|
36282
|
-
"
|
|
36283
|
-
"
|
|
36326
|
+
"default": "''",
|
|
36327
|
+
"description": "The text shown in the menu.",
|
|
36328
|
+
"attribute": "label"
|
|
36284
36329
|
},
|
|
36285
36330
|
{
|
|
36286
36331
|
"kind": "field",
|
|
36287
|
-
"name": "
|
|
36288
|
-
"
|
|
36289
|
-
|
|
36290
|
-
|
|
36332
|
+
"name": "value",
|
|
36333
|
+
"type": {
|
|
36334
|
+
"text": "string"
|
|
36335
|
+
},
|
|
36336
|
+
"description": "The text inserted into the field. Falls back to this element's text content.",
|
|
36337
|
+
"attribute": "value"
|
|
36291
36338
|
},
|
|
36292
36339
|
{
|
|
36293
36340
|
"kind": "field",
|
|
36294
|
-
"name": "
|
|
36341
|
+
"name": "icon",
|
|
36295
36342
|
"type": {
|
|
36296
|
-
"text": "
|
|
36343
|
+
"text": "string"
|
|
36297
36344
|
},
|
|
36298
|
-
"
|
|
36345
|
+
"description": "Icon shown against the item, e.g. `tag@lu`.",
|
|
36346
|
+
"attribute": "icon"
|
|
36299
36347
|
},
|
|
36300
36348
|
{
|
|
36301
36349
|
"kind": "field",
|
|
36302
|
-
"name": "
|
|
36350
|
+
"name": "description",
|
|
36303
36351
|
"type": {
|
|
36304
|
-
"text": "
|
|
36305
|
-
}
|
|
36352
|
+
"text": "string"
|
|
36353
|
+
},
|
|
36354
|
+
"description": "Supporting text shown under the label.",
|
|
36355
|
+
"attribute": "description"
|
|
36306
36356
|
},
|
|
36307
36357
|
{
|
|
36308
36358
|
"kind": "field",
|
|
36309
|
-
"name": "
|
|
36359
|
+
"name": "keywords",
|
|
36310
36360
|
"type": {
|
|
36311
|
-
"text": "
|
|
36312
|
-
}
|
|
36361
|
+
"text": "string"
|
|
36362
|
+
},
|
|
36363
|
+
"description": "Extra terms the item can be found by, comma separated.",
|
|
36364
|
+
"attribute": "keywords"
|
|
36313
36365
|
},
|
|
36314
36366
|
{
|
|
36315
36367
|
"kind": "field",
|
|
36316
|
-
"name": "
|
|
36368
|
+
"name": "group",
|
|
36317
36369
|
"type": {
|
|
36318
|
-
"text": "
|
|
36319
|
-
}
|
|
36370
|
+
"text": "string"
|
|
36371
|
+
},
|
|
36372
|
+
"description": "Heading the item is listed under.",
|
|
36373
|
+
"attribute": "group"
|
|
36320
36374
|
},
|
|
36321
36375
|
{
|
|
36322
36376
|
"kind": "field",
|
|
36323
|
-
"name": "
|
|
36377
|
+
"name": "order",
|
|
36324
36378
|
"type": {
|
|
36325
|
-
"text": "
|
|
36379
|
+
"text": "number"
|
|
36326
36380
|
},
|
|
36327
|
-
"
|
|
36328
|
-
"
|
|
36329
|
-
"attribute": "open",
|
|
36330
|
-
"reflects": true
|
|
36381
|
+
"description": "Overrides the item's position in the menu. Lower sorts first.",
|
|
36382
|
+
"attribute": "order"
|
|
36331
36383
|
},
|
|
36332
36384
|
{
|
|
36333
36385
|
"kind": "field",
|
|
36334
|
-
"name": "
|
|
36386
|
+
"name": "caretOffset",
|
|
36335
36387
|
"type": {
|
|
36336
|
-
"text": "
|
|
36388
|
+
"text": "number"
|
|
36337
36389
|
},
|
|
36338
|
-
"description": "
|
|
36339
|
-
"attribute": "
|
|
36340
|
-
"reflects": true
|
|
36390
|
+
"description": "Where the caret lands after insertion, as an offset into the inserted value.",
|
|
36391
|
+
"attribute": "caret-offset"
|
|
36341
36392
|
},
|
|
36342
36393
|
{
|
|
36343
36394
|
"kind": "field",
|
|
36344
|
-
"name": "
|
|
36395
|
+
"name": "action",
|
|
36345
36396
|
"type": {
|
|
36346
36397
|
"text": "string"
|
|
36347
36398
|
},
|
|
36348
|
-
"description": "
|
|
36349
|
-
"attribute": "
|
|
36399
|
+
"description": "Identifier passed through on `zn-slash-select`, for items that do something other than insert.",
|
|
36400
|
+
"attribute": "action"
|
|
36401
|
+
},
|
|
36402
|
+
{
|
|
36403
|
+
"kind": "field",
|
|
36404
|
+
"name": "disabled",
|
|
36405
|
+
"type": {
|
|
36406
|
+
"text": "boolean"
|
|
36407
|
+
},
|
|
36408
|
+
"default": "false",
|
|
36409
|
+
"description": "Listed, but not selectable.",
|
|
36410
|
+
"attribute": "disabled",
|
|
36350
36411
|
"reflects": true
|
|
36351
36412
|
},
|
|
36352
36413
|
{
|
|
36353
36414
|
"kind": "method",
|
|
36354
|
-
"name": "
|
|
36355
|
-
"
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
"name": "source",
|
|
36359
|
-
"type": {
|
|
36360
|
-
"text": "'close-button' | 'keyboard' | 'overlay'"
|
|
36361
|
-
}
|
|
36415
|
+
"name": "toSlashMenuItem",
|
|
36416
|
+
"return": {
|
|
36417
|
+
"type": {
|
|
36418
|
+
"text": "SlashMenuItem"
|
|
36362
36419
|
}
|
|
36363
|
-
|
|
36420
|
+
},
|
|
36421
|
+
"description": "The item as the slash menu consumes it."
|
|
36364
36422
|
},
|
|
36365
36423
|
{
|
|
36366
|
-
"kind": "
|
|
36367
|
-
"name": "
|
|
36368
|
-
"
|
|
36369
|
-
|
|
36424
|
+
"kind": "field",
|
|
36425
|
+
"name": "insertValue",
|
|
36426
|
+
"type": {
|
|
36427
|
+
"text": "string"
|
|
36428
|
+
},
|
|
36429
|
+
"privacy": "private",
|
|
36430
|
+
"readonly": true
|
|
36431
|
+
}
|
|
36432
|
+
],
|
|
36433
|
+
"attributes": [
|
|
36370
36434
|
{
|
|
36371
|
-
"
|
|
36372
|
-
"
|
|
36373
|
-
|
|
36435
|
+
"name": "label",
|
|
36436
|
+
"type": {
|
|
36437
|
+
"text": "string"
|
|
36438
|
+
},
|
|
36439
|
+
"default": "''",
|
|
36440
|
+
"description": "The text shown in the menu.",
|
|
36441
|
+
"fieldName": "label"
|
|
36374
36442
|
},
|
|
36375
36443
|
{
|
|
36376
|
-
"
|
|
36377
|
-
"
|
|
36378
|
-
|
|
36444
|
+
"name": "value",
|
|
36445
|
+
"type": {
|
|
36446
|
+
"text": "string"
|
|
36447
|
+
},
|
|
36448
|
+
"description": "The text inserted into the field. Falls back to this element's text content.",
|
|
36449
|
+
"fieldName": "value"
|
|
36379
36450
|
},
|
|
36380
36451
|
{
|
|
36381
|
-
"
|
|
36382
|
-
"
|
|
36383
|
-
|
|
36452
|
+
"name": "icon",
|
|
36453
|
+
"type": {
|
|
36454
|
+
"text": "string"
|
|
36455
|
+
},
|
|
36456
|
+
"description": "Icon shown against the item, e.g. `tag@lu`.",
|
|
36457
|
+
"fieldName": "icon"
|
|
36384
36458
|
},
|
|
36385
36459
|
{
|
|
36386
|
-
"
|
|
36387
|
-
"
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
{
|
|
36393
|
-
"description": "Emitted when the slideout is opens.",
|
|
36394
|
-
"name": "zn-show"
|
|
36460
|
+
"name": "description",
|
|
36461
|
+
"type": {
|
|
36462
|
+
"text": "string"
|
|
36463
|
+
},
|
|
36464
|
+
"description": "Supporting text shown under the label.",
|
|
36465
|
+
"fieldName": "description"
|
|
36395
36466
|
},
|
|
36396
36467
|
{
|
|
36397
|
-
"
|
|
36398
|
-
"
|
|
36468
|
+
"name": "keywords",
|
|
36469
|
+
"type": {
|
|
36470
|
+
"text": "string"
|
|
36471
|
+
},
|
|
36472
|
+
"description": "Extra terms the item can be found by, comma separated.",
|
|
36473
|
+
"fieldName": "keywords"
|
|
36399
36474
|
},
|
|
36400
36475
|
{
|
|
36476
|
+
"name": "group",
|
|
36401
36477
|
"type": {
|
|
36402
|
-
"text": "
|
|
36478
|
+
"text": "string"
|
|
36403
36479
|
},
|
|
36404
|
-
"description": "
|
|
36405
|
-
"
|
|
36406
|
-
}
|
|
36407
|
-
],
|
|
36408
|
-
"attributes": [
|
|
36480
|
+
"description": "Heading the item is listed under.",
|
|
36481
|
+
"fieldName": "group"
|
|
36482
|
+
},
|
|
36409
36483
|
{
|
|
36410
|
-
"name": "
|
|
36484
|
+
"name": "order",
|
|
36411
36485
|
"type": {
|
|
36412
|
-
"text": "
|
|
36486
|
+
"text": "number"
|
|
36413
36487
|
},
|
|
36414
|
-
"
|
|
36415
|
-
"
|
|
36416
|
-
"fieldName": "open"
|
|
36488
|
+
"description": "Overrides the item's position in the menu. Lower sorts first.",
|
|
36489
|
+
"fieldName": "order"
|
|
36417
36490
|
},
|
|
36418
36491
|
{
|
|
36419
|
-
"name": "
|
|
36492
|
+
"name": "caret-offset",
|
|
36420
36493
|
"type": {
|
|
36421
|
-
"text": "
|
|
36494
|
+
"text": "number"
|
|
36422
36495
|
},
|
|
36423
|
-
"description": "
|
|
36424
|
-
"fieldName": "
|
|
36496
|
+
"description": "Where the caret lands after insertion, as an offset into the inserted value.",
|
|
36497
|
+
"fieldName": "caretOffset"
|
|
36425
36498
|
},
|
|
36426
36499
|
{
|
|
36427
|
-
"name": "
|
|
36500
|
+
"name": "action",
|
|
36428
36501
|
"type": {
|
|
36429
36502
|
"text": "string"
|
|
36430
36503
|
},
|
|
36431
|
-
"description": "
|
|
36504
|
+
"description": "Identifier passed through on `zn-slash-select`, for items that do something other than insert.",
|
|
36505
|
+
"fieldName": "action"
|
|
36506
|
+
},
|
|
36507
|
+
{
|
|
36508
|
+
"name": "disabled",
|
|
36509
|
+
"type": {
|
|
36510
|
+
"text": "boolean"
|
|
36511
|
+
},
|
|
36512
|
+
"default": "false",
|
|
36513
|
+
"description": "Listed, but not selectable.",
|
|
36514
|
+
"fieldName": "disabled"
|
|
36515
|
+
}
|
|
36516
|
+
],
|
|
36517
|
+
"superclass": {
|
|
36518
|
+
"name": "ZincElement",
|
|
36519
|
+
"module": "/src/internal/zinc-element"
|
|
36520
|
+
},
|
|
36521
|
+
"summary": "Declares a single insertion for a slash menu. Renders nothing itself — it describes an\nentry for the component it is slotted into, e.g. `<zn-textarea>`'s `slash-items` slot.",
|
|
36522
|
+
"tagNameWithoutPrefix": "slash-item",
|
|
36523
|
+
"tagName": "zn-slash-item",
|
|
36524
|
+
"customElement": true,
|
|
36525
|
+
"jsDoc": "/**\n * @summary Declares a single insertion for a slash menu. Renders nothing itself — it describes an\n * entry for the component it is slotted into, e.g. `<zn-textarea>`'s `slash-items` slot.\n * @documentation https://zinc.style/components/slash-item\n * @status experimental\n * @since 1.1\n *\n * @slot - The text to insert, for values that are long or span multiple lines. Ignored when the\n * `value` attribute is set.\n */",
|
|
36526
|
+
"documentation": "https://zinc.style/components/slash-item",
|
|
36527
|
+
"status": "experimental",
|
|
36528
|
+
"since": "1.1"
|
|
36529
|
+
}
|
|
36530
|
+
],
|
|
36531
|
+
"exports": [
|
|
36532
|
+
{
|
|
36533
|
+
"kind": "js",
|
|
36534
|
+
"name": "default",
|
|
36535
|
+
"declaration": {
|
|
36536
|
+
"name": "ZnSlashItem",
|
|
36537
|
+
"module": "components/slash-item/slash-item.js"
|
|
36538
|
+
}
|
|
36539
|
+
}
|
|
36540
|
+
]
|
|
36541
|
+
},
|
|
36542
|
+
{
|
|
36543
|
+
"kind": "javascript-module",
|
|
36544
|
+
"path": "components/slash-menu/slash-menu.js",
|
|
36545
|
+
"declarations": [
|
|
36546
|
+
{
|
|
36547
|
+
"kind": "variable",
|
|
36548
|
+
"name": "SLASH_ITEM_SELECT",
|
|
36549
|
+
"type": {
|
|
36550
|
+
"text": "string"
|
|
36551
|
+
},
|
|
36552
|
+
"default": "'zn-slash-item-select'"
|
|
36553
|
+
},
|
|
36554
|
+
{
|
|
36555
|
+
"kind": "class",
|
|
36556
|
+
"description": "",
|
|
36557
|
+
"name": "ZnSlashMenu",
|
|
36558
|
+
"cssProperties": [
|
|
36559
|
+
{
|
|
36560
|
+
"description": "The width of the panel.",
|
|
36561
|
+
"name": "--slash-menu-width"
|
|
36562
|
+
},
|
|
36563
|
+
{
|
|
36564
|
+
"description": "The maximum height of the panel before it scrolls.",
|
|
36565
|
+
"name": "--slash-menu-max-height"
|
|
36566
|
+
}
|
|
36567
|
+
],
|
|
36568
|
+
"cssParts": [
|
|
36569
|
+
{
|
|
36570
|
+
"description": "The floating panel that holds the list.",
|
|
36571
|
+
"name": "panel"
|
|
36572
|
+
},
|
|
36573
|
+
{
|
|
36574
|
+
"description": "The panel's heading.",
|
|
36575
|
+
"name": "heading"
|
|
36576
|
+
},
|
|
36577
|
+
{
|
|
36578
|
+
"description": "An item in the list.",
|
|
36579
|
+
"name": "item"
|
|
36580
|
+
},
|
|
36581
|
+
{
|
|
36582
|
+
"description": "A group heading between items.",
|
|
36583
|
+
"name": "group-heading"
|
|
36584
|
+
},
|
|
36585
|
+
{
|
|
36586
|
+
"description": "The truncation footer, shown when not every match fits.",
|
|
36587
|
+
"name": "footer"
|
|
36588
|
+
}
|
|
36589
|
+
],
|
|
36590
|
+
"members": [
|
|
36591
|
+
{
|
|
36592
|
+
"kind": "field",
|
|
36593
|
+
"name": "dependencies",
|
|
36594
|
+
"type": {
|
|
36595
|
+
"text": "object"
|
|
36596
|
+
},
|
|
36597
|
+
"static": true,
|
|
36598
|
+
"default": "{ 'zn-icon': ZnIcon }"
|
|
36599
|
+
},
|
|
36600
|
+
{
|
|
36601
|
+
"kind": "field",
|
|
36602
|
+
"name": "panel",
|
|
36603
|
+
"type": {
|
|
36604
|
+
"text": "HTMLElement"
|
|
36605
|
+
},
|
|
36606
|
+
"privacy": "private"
|
|
36607
|
+
},
|
|
36608
|
+
{
|
|
36609
|
+
"kind": "field",
|
|
36610
|
+
"name": "stopAutoUpdate",
|
|
36611
|
+
"type": {
|
|
36612
|
+
"text": "() => void | undefined"
|
|
36613
|
+
},
|
|
36614
|
+
"privacy": "private"
|
|
36615
|
+
},
|
|
36616
|
+
{
|
|
36617
|
+
"kind": "field",
|
|
36618
|
+
"name": "open",
|
|
36619
|
+
"type": {
|
|
36620
|
+
"text": "boolean"
|
|
36621
|
+
},
|
|
36622
|
+
"default": "false",
|
|
36623
|
+
"description": "Whether the menu is showing.",
|
|
36624
|
+
"attribute": "open",
|
|
36625
|
+
"reflects": true
|
|
36626
|
+
},
|
|
36627
|
+
{
|
|
36628
|
+
"kind": "field",
|
|
36629
|
+
"name": "items",
|
|
36630
|
+
"type": {
|
|
36631
|
+
"text": "SlashMenuItem[]"
|
|
36632
|
+
},
|
|
36633
|
+
"default": "[]",
|
|
36634
|
+
"description": "The items to list. Already filtered — the menu displays what it is given.",
|
|
36635
|
+
"attribute": "items"
|
|
36636
|
+
},
|
|
36637
|
+
{
|
|
36638
|
+
"kind": "field",
|
|
36639
|
+
"name": "query",
|
|
36640
|
+
"type": {
|
|
36641
|
+
"text": "string"
|
|
36642
|
+
},
|
|
36643
|
+
"default": "''",
|
|
36644
|
+
"description": "The query the items were matched against, shown in the heading.",
|
|
36645
|
+
"attribute": "query"
|
|
36646
|
+
},
|
|
36647
|
+
{
|
|
36648
|
+
"kind": "field",
|
|
36649
|
+
"name": "heading",
|
|
36650
|
+
"type": {
|
|
36651
|
+
"text": "string"
|
|
36652
|
+
},
|
|
36653
|
+
"default": "'Insert'",
|
|
36654
|
+
"description": "The heading shown when there is no query.",
|
|
36655
|
+
"attribute": "heading"
|
|
36656
|
+
},
|
|
36657
|
+
{
|
|
36658
|
+
"kind": "field",
|
|
36659
|
+
"name": "emptyText",
|
|
36660
|
+
"type": {
|
|
36661
|
+
"text": "string"
|
|
36662
|
+
},
|
|
36663
|
+
"default": "'No matches'",
|
|
36664
|
+
"description": "Shown in place of the list when there are no items.",
|
|
36665
|
+
"attribute": "empty-text"
|
|
36666
|
+
},
|
|
36667
|
+
{
|
|
36668
|
+
"kind": "field",
|
|
36669
|
+
"name": "maxItems",
|
|
36670
|
+
"type": {
|
|
36671
|
+
"text": "number"
|
|
36672
|
+
},
|
|
36673
|
+
"default": "25",
|
|
36674
|
+
"description": "The most items to render at once. Remaining matches are reported in the footer.",
|
|
36675
|
+
"attribute": "max-items"
|
|
36676
|
+
},
|
|
36677
|
+
{
|
|
36678
|
+
"kind": "field",
|
|
36679
|
+
"name": "anchor",
|
|
36680
|
+
"type": {
|
|
36681
|
+
"text": "Element | VirtualElement | null"
|
|
36682
|
+
},
|
|
36683
|
+
"default": "null",
|
|
36684
|
+
"description": "The element or caret rect the panel is positioned against."
|
|
36685
|
+
},
|
|
36686
|
+
{
|
|
36687
|
+
"kind": "field",
|
|
36688
|
+
"name": "placement",
|
|
36689
|
+
"type": {
|
|
36690
|
+
"text": "Placement"
|
|
36691
|
+
},
|
|
36692
|
+
"default": "'bottom-start'",
|
|
36693
|
+
"description": "The preferred placement of the panel.",
|
|
36694
|
+
"attribute": "placement"
|
|
36695
|
+
},
|
|
36696
|
+
{
|
|
36697
|
+
"kind": "field",
|
|
36698
|
+
"name": "distance",
|
|
36699
|
+
"type": {
|
|
36700
|
+
"text": "number"
|
|
36701
|
+
},
|
|
36702
|
+
"default": "4",
|
|
36703
|
+
"description": "The gap between the caret and the panel.",
|
|
36704
|
+
"attribute": "distance"
|
|
36705
|
+
},
|
|
36706
|
+
{
|
|
36707
|
+
"kind": "field",
|
|
36708
|
+
"name": "activeIndex",
|
|
36709
|
+
"type": {
|
|
36710
|
+
"text": "number"
|
|
36711
|
+
},
|
|
36712
|
+
"privacy": "private",
|
|
36713
|
+
"default": "0"
|
|
36714
|
+
},
|
|
36715
|
+
{
|
|
36716
|
+
"kind": "field",
|
|
36717
|
+
"name": "visibleItems",
|
|
36718
|
+
"type": {
|
|
36719
|
+
"text": "SlashMenuItem[]"
|
|
36720
|
+
},
|
|
36721
|
+
"privacy": "private",
|
|
36722
|
+
"readonly": true
|
|
36723
|
+
},
|
|
36724
|
+
{
|
|
36725
|
+
"kind": "field",
|
|
36726
|
+
"name": "activeItem",
|
|
36727
|
+
"type": {
|
|
36728
|
+
"text": "SlashMenuItem | undefined"
|
|
36729
|
+
},
|
|
36730
|
+
"description": "The item that Enter would insert.",
|
|
36731
|
+
"readonly": true
|
|
36732
|
+
},
|
|
36733
|
+
{
|
|
36734
|
+
"kind": "method",
|
|
36735
|
+
"name": "show"
|
|
36736
|
+
},
|
|
36737
|
+
{
|
|
36738
|
+
"kind": "method",
|
|
36739
|
+
"name": "hide"
|
|
36740
|
+
},
|
|
36741
|
+
{
|
|
36742
|
+
"kind": "method",
|
|
36743
|
+
"name": "setActiveIndex",
|
|
36744
|
+
"parameters": [
|
|
36745
|
+
{
|
|
36746
|
+
"name": "index",
|
|
36747
|
+
"type": {
|
|
36748
|
+
"text": "number"
|
|
36749
|
+
}
|
|
36750
|
+
}
|
|
36751
|
+
],
|
|
36752
|
+
"description": "Sets the active item by index, wrapping at both ends and skipping disabled items."
|
|
36753
|
+
},
|
|
36754
|
+
{
|
|
36755
|
+
"kind": "method",
|
|
36756
|
+
"name": "moveActive",
|
|
36757
|
+
"parameters": [
|
|
36758
|
+
{
|
|
36759
|
+
"name": "delta",
|
|
36760
|
+
"type": {
|
|
36761
|
+
"text": "number"
|
|
36762
|
+
}
|
|
36763
|
+
}
|
|
36764
|
+
],
|
|
36765
|
+
"description": "Moves the active item by `delta` places."
|
|
36766
|
+
},
|
|
36767
|
+
{
|
|
36768
|
+
"kind": "method",
|
|
36769
|
+
"name": "selectActive",
|
|
36770
|
+
"description": "Chooses the active item, as pressing Enter would."
|
|
36771
|
+
},
|
|
36772
|
+
{
|
|
36773
|
+
"kind": "method",
|
|
36774
|
+
"name": "reposition",
|
|
36775
|
+
"description": "Recalculates the panel's position against its anchor."
|
|
36776
|
+
},
|
|
36777
|
+
{
|
|
36778
|
+
"kind": "method",
|
|
36779
|
+
"name": "startPositioner",
|
|
36780
|
+
"privacy": "private"
|
|
36781
|
+
},
|
|
36782
|
+
{
|
|
36783
|
+
"kind": "method",
|
|
36784
|
+
"name": "stopPositioner",
|
|
36785
|
+
"privacy": "private"
|
|
36786
|
+
},
|
|
36787
|
+
{
|
|
36788
|
+
"kind": "method",
|
|
36789
|
+
"name": "position",
|
|
36790
|
+
"privacy": "private"
|
|
36791
|
+
},
|
|
36792
|
+
{
|
|
36793
|
+
"kind": "method",
|
|
36794
|
+
"name": "selectItem",
|
|
36795
|
+
"privacy": "private",
|
|
36796
|
+
"parameters": [
|
|
36797
|
+
{
|
|
36798
|
+
"name": "item",
|
|
36799
|
+
"type": {
|
|
36800
|
+
"text": "SlashMenuItem"
|
|
36801
|
+
}
|
|
36802
|
+
}
|
|
36803
|
+
]
|
|
36804
|
+
},
|
|
36805
|
+
{
|
|
36806
|
+
"kind": "method",
|
|
36807
|
+
"name": "scrollActiveIntoView",
|
|
36808
|
+
"privacy": "private"
|
|
36809
|
+
},
|
|
36810
|
+
{
|
|
36811
|
+
"kind": "field",
|
|
36812
|
+
"name": "handleItemMouseDown",
|
|
36813
|
+
"privacy": "private",
|
|
36814
|
+
"readonly": true
|
|
36815
|
+
},
|
|
36816
|
+
{
|
|
36817
|
+
"kind": "method",
|
|
36818
|
+
"name": "renderItem",
|
|
36819
|
+
"privacy": "private",
|
|
36820
|
+
"parameters": [
|
|
36821
|
+
{
|
|
36822
|
+
"name": "item",
|
|
36823
|
+
"type": {
|
|
36824
|
+
"text": "SlashMenuItem"
|
|
36825
|
+
}
|
|
36826
|
+
},
|
|
36827
|
+
{
|
|
36828
|
+
"name": "index",
|
|
36829
|
+
"type": {
|
|
36830
|
+
"text": "number"
|
|
36831
|
+
}
|
|
36832
|
+
},
|
|
36833
|
+
{
|
|
36834
|
+
"name": "showIcons",
|
|
36835
|
+
"type": {
|
|
36836
|
+
"text": "boolean"
|
|
36837
|
+
}
|
|
36838
|
+
}
|
|
36839
|
+
]
|
|
36840
|
+
},
|
|
36841
|
+
{
|
|
36842
|
+
"kind": "method",
|
|
36843
|
+
"name": "renderItems",
|
|
36844
|
+
"privacy": "private"
|
|
36845
|
+
}
|
|
36846
|
+
],
|
|
36847
|
+
"events": [
|
|
36848
|
+
{
|
|
36849
|
+
"name": "SLASH_ITEM_SELECT",
|
|
36850
|
+
"type": {
|
|
36851
|
+
"text": "CustomEvent"
|
|
36852
|
+
}
|
|
36853
|
+
},
|
|
36854
|
+
{
|
|
36855
|
+
"description": "Emitted when an item is chosen. Does not cross shadow boundaries; the component driving the menu (e.g. `zn-textarea`) re-emits it as `zn-slash-select`.",
|
|
36856
|
+
"name": "zn-slash-item-select"
|
|
36857
|
+
}
|
|
36858
|
+
],
|
|
36859
|
+
"attributes": [
|
|
36860
|
+
{
|
|
36861
|
+
"name": "open",
|
|
36862
|
+
"type": {
|
|
36863
|
+
"text": "boolean"
|
|
36864
|
+
},
|
|
36865
|
+
"default": "false",
|
|
36866
|
+
"description": "Whether the menu is showing.",
|
|
36867
|
+
"fieldName": "open"
|
|
36868
|
+
},
|
|
36869
|
+
{
|
|
36870
|
+
"name": "items",
|
|
36871
|
+
"type": {
|
|
36872
|
+
"text": "SlashMenuItem[]"
|
|
36873
|
+
},
|
|
36874
|
+
"default": "[]",
|
|
36875
|
+
"description": "The items to list. Already filtered — the menu displays what it is given.",
|
|
36876
|
+
"fieldName": "items"
|
|
36877
|
+
},
|
|
36878
|
+
{
|
|
36879
|
+
"name": "query",
|
|
36880
|
+
"type": {
|
|
36881
|
+
"text": "string"
|
|
36882
|
+
},
|
|
36883
|
+
"default": "''",
|
|
36884
|
+
"description": "The query the items were matched against, shown in the heading.",
|
|
36885
|
+
"fieldName": "query"
|
|
36886
|
+
},
|
|
36887
|
+
{
|
|
36888
|
+
"name": "heading",
|
|
36889
|
+
"type": {
|
|
36890
|
+
"text": "string"
|
|
36891
|
+
},
|
|
36892
|
+
"default": "'Insert'",
|
|
36893
|
+
"description": "The heading shown when there is no query.",
|
|
36894
|
+
"fieldName": "heading"
|
|
36895
|
+
},
|
|
36896
|
+
{
|
|
36897
|
+
"name": "empty-text",
|
|
36898
|
+
"type": {
|
|
36899
|
+
"text": "string"
|
|
36900
|
+
},
|
|
36901
|
+
"default": "'No matches'",
|
|
36902
|
+
"description": "Shown in place of the list when there are no items.",
|
|
36903
|
+
"fieldName": "emptyText"
|
|
36904
|
+
},
|
|
36905
|
+
{
|
|
36906
|
+
"name": "max-items",
|
|
36907
|
+
"type": {
|
|
36908
|
+
"text": "number"
|
|
36909
|
+
},
|
|
36910
|
+
"default": "25",
|
|
36911
|
+
"description": "The most items to render at once. Remaining matches are reported in the footer.",
|
|
36912
|
+
"fieldName": "maxItems"
|
|
36913
|
+
},
|
|
36914
|
+
{
|
|
36915
|
+
"name": "placement",
|
|
36916
|
+
"type": {
|
|
36917
|
+
"text": "Placement"
|
|
36918
|
+
},
|
|
36919
|
+
"default": "'bottom-start'",
|
|
36920
|
+
"description": "The preferred placement of the panel.",
|
|
36921
|
+
"fieldName": "placement"
|
|
36922
|
+
},
|
|
36923
|
+
{
|
|
36924
|
+
"name": "distance",
|
|
36925
|
+
"type": {
|
|
36926
|
+
"text": "number"
|
|
36927
|
+
},
|
|
36928
|
+
"default": "4",
|
|
36929
|
+
"description": "The gap between the caret and the panel.",
|
|
36930
|
+
"fieldName": "distance"
|
|
36931
|
+
}
|
|
36932
|
+
],
|
|
36933
|
+
"superclass": {
|
|
36934
|
+
"name": "ZincElement",
|
|
36935
|
+
"module": "/src/internal/zinc-element"
|
|
36936
|
+
},
|
|
36937
|
+
"summary": "A keyboard-driven list of insertions, anchored to the caret of the field that opened it.",
|
|
36938
|
+
"tagNameWithoutPrefix": "slash-menu",
|
|
36939
|
+
"tagName": "zn-slash-menu",
|
|
36940
|
+
"customElement": true,
|
|
36941
|
+
"jsDoc": "/**\n * @summary A keyboard-driven list of insertions, anchored to the caret of the field that opened it.\n * @documentation https://zinc.style/components/slash-menu\n * @status experimental\n * @since 1.1\n *\n * @dependency zn-icon\n *\n * @event zn-slash-item-select - Emitted when an item is chosen. Does not cross shadow boundaries; the\n * component driving the menu (e.g. `zn-textarea`) re-emits it as `zn-slash-select`.\n *\n * @csspart panel - The floating panel that holds the list.\n * @csspart heading - The panel's heading.\n * @csspart item - An item in the list.\n * @csspart group-heading - A group heading between items.\n * @csspart footer - The truncation footer, shown when not every match fits.\n *\n * @cssproperty --slash-menu-width - The width of the panel.\n * @cssproperty --slash-menu-max-height - The maximum height of the panel before it scrolls.\n */",
|
|
36942
|
+
"documentation": "https://zinc.style/components/slash-menu",
|
|
36943
|
+
"status": "experimental",
|
|
36944
|
+
"since": "1.1",
|
|
36945
|
+
"dependencies": [
|
|
36946
|
+
"zn-icon"
|
|
36947
|
+
]
|
|
36948
|
+
}
|
|
36949
|
+
],
|
|
36950
|
+
"exports": [
|
|
36951
|
+
{
|
|
36952
|
+
"kind": "js",
|
|
36953
|
+
"name": "SLASH_ITEM_SELECT",
|
|
36954
|
+
"declaration": {
|
|
36955
|
+
"name": "SLASH_ITEM_SELECT",
|
|
36956
|
+
"module": "components/slash-menu/slash-menu.js"
|
|
36957
|
+
}
|
|
36958
|
+
},
|
|
36959
|
+
{
|
|
36960
|
+
"kind": "js",
|
|
36961
|
+
"name": "default",
|
|
36962
|
+
"declaration": {
|
|
36963
|
+
"name": "ZnSlashMenu",
|
|
36964
|
+
"module": "components/slash-menu/slash-menu.js"
|
|
36965
|
+
}
|
|
36966
|
+
}
|
|
36967
|
+
]
|
|
36968
|
+
},
|
|
36969
|
+
{
|
|
36970
|
+
"kind": "javascript-module",
|
|
36971
|
+
"path": "components/slideout/slideout.js",
|
|
36972
|
+
"declarations": [
|
|
36973
|
+
{
|
|
36974
|
+
"kind": "class",
|
|
36975
|
+
"description": "",
|
|
36976
|
+
"name": "ZnSlideout",
|
|
36977
|
+
"cssProperties": [
|
|
36978
|
+
{
|
|
36979
|
+
"description": "The preferred width of the slideout. Note the slideout will shrink to accommodate smaller screens.",
|
|
36980
|
+
"name": "--width"
|
|
36981
|
+
},
|
|
36982
|
+
{
|
|
36983
|
+
"description": "The amount of padding to use for the header.",
|
|
36984
|
+
"name": "--header-spacing"
|
|
36985
|
+
},
|
|
36986
|
+
{
|
|
36987
|
+
"description": "The amount of padding to use for the body.",
|
|
36988
|
+
"name": "--body-spacing"
|
|
36989
|
+
}
|
|
36990
|
+
],
|
|
36991
|
+
"cssParts": [
|
|
36992
|
+
{
|
|
36993
|
+
"description": "The component's base wrapper.",
|
|
36994
|
+
"name": "base"
|
|
36995
|
+
},
|
|
36996
|
+
{
|
|
36997
|
+
"description": "The slideout's header. This element wraps the title and header actions.",
|
|
36998
|
+
"name": "header"
|
|
36999
|
+
},
|
|
37000
|
+
{
|
|
37001
|
+
"description": "The slideout's close button.",
|
|
37002
|
+
"name": "close-button"
|
|
37003
|
+
},
|
|
37004
|
+
{
|
|
37005
|
+
"description": "The close buttons exported `base` part.",
|
|
37006
|
+
"name": "close-button__base"
|
|
37007
|
+
},
|
|
37008
|
+
{
|
|
37009
|
+
"description": "The slideout's body.",
|
|
37010
|
+
"name": "body"
|
|
37011
|
+
}
|
|
37012
|
+
],
|
|
37013
|
+
"slots": [
|
|
37014
|
+
{
|
|
37015
|
+
"description": "The default slot.",
|
|
37016
|
+
"name": ""
|
|
37017
|
+
},
|
|
37018
|
+
{
|
|
37019
|
+
"description": "The slideout's label. Alternatively you can use the `label` attribute.",
|
|
37020
|
+
"name": "label"
|
|
37021
|
+
}
|
|
37022
|
+
],
|
|
37023
|
+
"members": [
|
|
37024
|
+
{
|
|
37025
|
+
"kind": "field",
|
|
37026
|
+
"name": "dependencies",
|
|
37027
|
+
"type": {
|
|
37028
|
+
"text": "object"
|
|
37029
|
+
},
|
|
37030
|
+
"static": true,
|
|
37031
|
+
"default": "{ 'zn-button': ZnButton }"
|
|
37032
|
+
},
|
|
37033
|
+
{
|
|
37034
|
+
"kind": "field",
|
|
37035
|
+
"name": "localize",
|
|
37036
|
+
"privacy": "private",
|
|
37037
|
+
"readonly": true,
|
|
37038
|
+
"default": "new LocalizeController(this)"
|
|
37039
|
+
},
|
|
37040
|
+
{
|
|
37041
|
+
"kind": "field",
|
|
37042
|
+
"name": "closeWatcher",
|
|
37043
|
+
"type": {
|
|
37044
|
+
"text": "CloseWatcher | null"
|
|
37045
|
+
},
|
|
37046
|
+
"privacy": "private"
|
|
37047
|
+
},
|
|
37048
|
+
{
|
|
37049
|
+
"kind": "field",
|
|
37050
|
+
"name": "slideout",
|
|
37051
|
+
"type": {
|
|
37052
|
+
"text": "HTMLDialogElement"
|
|
37053
|
+
}
|
|
37054
|
+
},
|
|
37055
|
+
{
|
|
37056
|
+
"kind": "field",
|
|
37057
|
+
"name": "panel",
|
|
37058
|
+
"type": {
|
|
37059
|
+
"text": "HTMLElement"
|
|
37060
|
+
}
|
|
37061
|
+
},
|
|
37062
|
+
{
|
|
37063
|
+
"kind": "field",
|
|
37064
|
+
"name": "overlay",
|
|
37065
|
+
"type": {
|
|
37066
|
+
"text": "HTMLElement"
|
|
37067
|
+
}
|
|
37068
|
+
},
|
|
37069
|
+
{
|
|
37070
|
+
"kind": "field",
|
|
37071
|
+
"name": "open",
|
|
37072
|
+
"type": {
|
|
37073
|
+
"text": "boolean"
|
|
37074
|
+
},
|
|
37075
|
+
"default": "false",
|
|
37076
|
+
"description": "Indicated whether of not the slideout is open. You can toggle this attribute to show and hide the slideout, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the slideout's state.",
|
|
37077
|
+
"attribute": "open",
|
|
37078
|
+
"reflects": true
|
|
37079
|
+
},
|
|
37080
|
+
{
|
|
37081
|
+
"kind": "field",
|
|
37082
|
+
"name": "label",
|
|
37083
|
+
"type": {
|
|
37084
|
+
"text": "string"
|
|
37085
|
+
},
|
|
37086
|
+
"description": "The slideout's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
37087
|
+
"attribute": "label",
|
|
37088
|
+
"reflects": true
|
|
37089
|
+
},
|
|
37090
|
+
{
|
|
37091
|
+
"kind": "field",
|
|
37092
|
+
"name": "trigger",
|
|
37093
|
+
"type": {
|
|
37094
|
+
"text": "string"
|
|
37095
|
+
},
|
|
37096
|
+
"description": "The slideout's trigger element. This is used to open the slideout when clicked. If you do not provide a trigger, you\nwill need to manually open the slideout using the `show()` method.",
|
|
37097
|
+
"attribute": "trigger",
|
|
37098
|
+
"reflects": true
|
|
37099
|
+
},
|
|
37100
|
+
{
|
|
37101
|
+
"kind": "method",
|
|
37102
|
+
"name": "requestClose",
|
|
37103
|
+
"privacy": "private",
|
|
37104
|
+
"parameters": [
|
|
37105
|
+
{
|
|
37106
|
+
"name": "source",
|
|
37107
|
+
"type": {
|
|
37108
|
+
"text": "'close-button' | 'keyboard' | 'overlay'"
|
|
37109
|
+
}
|
|
37110
|
+
}
|
|
37111
|
+
]
|
|
37112
|
+
},
|
|
37113
|
+
{
|
|
37114
|
+
"kind": "method",
|
|
37115
|
+
"name": "addOpenListeners",
|
|
37116
|
+
"privacy": "private"
|
|
37117
|
+
},
|
|
37118
|
+
{
|
|
37119
|
+
"kind": "method",
|
|
37120
|
+
"name": "removeOpenListeners",
|
|
37121
|
+
"privacy": "private"
|
|
37122
|
+
},
|
|
37123
|
+
{
|
|
37124
|
+
"kind": "method",
|
|
37125
|
+
"name": "show",
|
|
37126
|
+
"description": "Shows the slideout."
|
|
37127
|
+
},
|
|
37128
|
+
{
|
|
37129
|
+
"kind": "method",
|
|
37130
|
+
"name": "hide",
|
|
37131
|
+
"description": "Hides the slideout."
|
|
37132
|
+
},
|
|
37133
|
+
{
|
|
37134
|
+
"kind": "field",
|
|
37135
|
+
"name": "closeClickHandler",
|
|
37136
|
+
"privacy": "private"
|
|
37137
|
+
}
|
|
37138
|
+
],
|
|
37139
|
+
"events": [
|
|
37140
|
+
{
|
|
37141
|
+
"description": "Emitted when the slideout is opens.",
|
|
37142
|
+
"name": "zn-show"
|
|
37143
|
+
},
|
|
37144
|
+
{
|
|
37145
|
+
"description": "Emitted when the slideout is closed.",
|
|
37146
|
+
"name": "zn-close"
|
|
37147
|
+
},
|
|
37148
|
+
{
|
|
37149
|
+
"type": {
|
|
37150
|
+
"text": "{ source: 'close-button' | 'keyboard' | 'overlay' }"
|
|
37151
|
+
},
|
|
37152
|
+
"description": "Emitted when the user attempts to close the slideout by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the slideout open. Avoid using this unless closing the slideout will result in destructive behavior such as data loss.",
|
|
37153
|
+
"name": "zn-request-close"
|
|
37154
|
+
}
|
|
37155
|
+
],
|
|
37156
|
+
"attributes": [
|
|
37157
|
+
{
|
|
37158
|
+
"name": "open",
|
|
37159
|
+
"type": {
|
|
37160
|
+
"text": "boolean"
|
|
37161
|
+
},
|
|
37162
|
+
"default": "false",
|
|
37163
|
+
"description": "Indicated whether of not the slideout is open. You can toggle this attribute to show and hide the slideout, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the slideout's state.",
|
|
37164
|
+
"fieldName": "open"
|
|
37165
|
+
},
|
|
37166
|
+
{
|
|
37167
|
+
"name": "label",
|
|
37168
|
+
"type": {
|
|
37169
|
+
"text": "string"
|
|
37170
|
+
},
|
|
37171
|
+
"description": "The slideout's label as displayed in the header. You should always include a relevant label even when using\n`no-header`, as it is required for proper accessibility. If you need to display HTML, use the `label` slot instead.",
|
|
37172
|
+
"fieldName": "label"
|
|
37173
|
+
},
|
|
37174
|
+
{
|
|
37175
|
+
"name": "trigger",
|
|
37176
|
+
"type": {
|
|
37177
|
+
"text": "string"
|
|
37178
|
+
},
|
|
37179
|
+
"description": "The slideout's trigger element. This is used to open the slideout when clicked. If you do not provide a trigger, you\nwill need to manually open the slideout using the `show()` method.",
|
|
36432
37180
|
"fieldName": "trigger"
|
|
36433
37181
|
}
|
|
36434
37182
|
],
|
|
@@ -39882,6 +40630,10 @@
|
|
|
39882
40630
|
{
|
|
39883
40631
|
"description": "The internal `<textarea>` control.",
|
|
39884
40632
|
"name": "textarea"
|
|
40633
|
+
},
|
|
40634
|
+
{
|
|
40635
|
+
"description": "The slash menu shown at the caret.",
|
|
40636
|
+
"name": "slash-menu"
|
|
39885
40637
|
}
|
|
39886
40638
|
],
|
|
39887
40639
|
"slots": [
|
|
@@ -39900,9 +40652,26 @@
|
|
|
39900
40652
|
{
|
|
39901
40653
|
"description": "Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.",
|
|
39902
40654
|
"name": "help-text"
|
|
40655
|
+
},
|
|
40656
|
+
{
|
|
40657
|
+
"description": "`<zn-slash-item>` elements describing the insertions offered by the slash menu. Items are picked up wherever they sit inside the textarea, so this slot name is optional.",
|
|
40658
|
+
"name": "slash-items"
|
|
40659
|
+
},
|
|
40660
|
+
{
|
|
40661
|
+
"description": "A `<zn-slash-menu>` to use instead of the built-in one, so its heading, sizing and styling can be set in markup. Any `<zn-slash-item>` children of it become the menu's items.",
|
|
40662
|
+
"name": "slash-menu"
|
|
39903
40663
|
}
|
|
39904
40664
|
],
|
|
39905
40665
|
"members": [
|
|
40666
|
+
{
|
|
40667
|
+
"kind": "field",
|
|
40668
|
+
"name": "dependencies",
|
|
40669
|
+
"type": {
|
|
40670
|
+
"text": "object"
|
|
40671
|
+
},
|
|
40672
|
+
"static": true,
|
|
40673
|
+
"default": "{ 'zn-slash-item': ZnSlashItem, 'zn-slash-menu': ZnSlashMenu }"
|
|
40674
|
+
},
|
|
39906
40675
|
{
|
|
39907
40676
|
"kind": "field",
|
|
39908
40677
|
"name": "formControlController",
|
|
@@ -39934,6 +40703,13 @@
|
|
|
39934
40703
|
"default": "false",
|
|
39935
40704
|
"description": "Ensures we only attempt to derive the initial value from light DOM content once"
|
|
39936
40705
|
},
|
|
40706
|
+
{
|
|
40707
|
+
"kind": "field",
|
|
40708
|
+
"name": "slashController",
|
|
40709
|
+
"privacy": "private",
|
|
40710
|
+
"readonly": true,
|
|
40711
|
+
"default": "new SlashMenuController(this, { menu: () => this.mountSlashMenu(), items: search => this.resolveSlashItems(search), trigger: () => this.slashTrigger, onSelect: (item, search) => !this.emit('zn-slash-select', { detail: {item, query: search} }).defaultPrevented, // The field's own input event has already synced `value` by this point onInsert: (item, value) => this.emit('zn-slash-insert', {detail: {item, value}}) })"
|
|
40712
|
+
},
|
|
39937
40713
|
{
|
|
39938
40714
|
"kind": "field",
|
|
39939
40715
|
"name": "formControl",
|
|
@@ -39948,6 +40724,13 @@
|
|
|
39948
40724
|
"text": "HTMLTextAreaElement"
|
|
39949
40725
|
}
|
|
39950
40726
|
},
|
|
40727
|
+
{
|
|
40728
|
+
"kind": "field",
|
|
40729
|
+
"name": "slashMenuElement",
|
|
40730
|
+
"type": {
|
|
40731
|
+
"text": "ZnSlashMenu | null"
|
|
40732
|
+
}
|
|
40733
|
+
},
|
|
39951
40734
|
{
|
|
39952
40735
|
"kind": "field",
|
|
39953
40736
|
"name": "hasFocus",
|
|
@@ -39956,6 +40739,16 @@
|
|
|
39956
40739
|
},
|
|
39957
40740
|
"default": "false"
|
|
39958
40741
|
},
|
|
40742
|
+
{
|
|
40743
|
+
"kind": "field",
|
|
40744
|
+
"name": "hasSlashMenu",
|
|
40745
|
+
"type": {
|
|
40746
|
+
"text": "boolean"
|
|
40747
|
+
},
|
|
40748
|
+
"privacy": "private",
|
|
40749
|
+
"default": "false",
|
|
40750
|
+
"description": "Renders the slash menu only once it has been needed, keeping unused textareas cheap."
|
|
40751
|
+
},
|
|
39959
40752
|
{
|
|
39960
40753
|
"kind": "field",
|
|
39961
40754
|
"name": "title",
|
|
@@ -40202,6 +40995,54 @@
|
|
|
40202
40995
|
"description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
|
|
40203
40996
|
"attribute": "inputmode"
|
|
40204
40997
|
},
|
|
40998
|
+
{
|
|
40999
|
+
"kind": "field",
|
|
41000
|
+
"name": "slashItems",
|
|
41001
|
+
"type": {
|
|
41002
|
+
"text": "SlashMenuItem[]"
|
|
41003
|
+
},
|
|
41004
|
+
"default": "[]",
|
|
41005
|
+
"description": "Quick insertions offered by the slash menu. Accepts a JSON array of items, or the shorthand\n`Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Can also be set as an array of\n`SlashMenuItem` objects in JavaScript.",
|
|
41006
|
+
"attribute": "slash-items"
|
|
41007
|
+
},
|
|
41008
|
+
{
|
|
41009
|
+
"kind": "field",
|
|
41010
|
+
"name": "slashPreset",
|
|
41011
|
+
"type": {
|
|
41012
|
+
"text": "string"
|
|
41013
|
+
},
|
|
41014
|
+
"default": "''",
|
|
41015
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
41016
|
+
"attribute": "slash-preset"
|
|
41017
|
+
},
|
|
41018
|
+
{
|
|
41019
|
+
"kind": "field",
|
|
41020
|
+
"name": "slashTrigger",
|
|
41021
|
+
"type": {
|
|
41022
|
+
"text": "string"
|
|
41023
|
+
},
|
|
41024
|
+
"default": "'/'",
|
|
41025
|
+
"description": "The characters that open the slash menu.",
|
|
41026
|
+
"attribute": "slash-trigger"
|
|
41027
|
+
},
|
|
41028
|
+
{
|
|
41029
|
+
"kind": "field",
|
|
41030
|
+
"name": "slashHeading",
|
|
41031
|
+
"type": {
|
|
41032
|
+
"text": "string"
|
|
41033
|
+
},
|
|
41034
|
+
"default": "'Insert'",
|
|
41035
|
+
"description": "The heading shown above the slash menu's items.",
|
|
41036
|
+
"attribute": "slash-heading"
|
|
41037
|
+
},
|
|
41038
|
+
{
|
|
41039
|
+
"kind": "field",
|
|
41040
|
+
"name": "slashItemsProvider",
|
|
41041
|
+
"type": {
|
|
41042
|
+
"text": "(query: string) => SlashMenuItem[] | Promise<SlashMenuItem[]> | undefined"
|
|
41043
|
+
},
|
|
41044
|
+
"description": "Resolves additional items each time the menu opens, for lists that come from elsewhere (e.g. an\nAPI). Receives the current query and may return a promise. JavaScript only."
|
|
41045
|
+
},
|
|
40205
41046
|
{
|
|
40206
41047
|
"kind": "field",
|
|
40207
41048
|
"name": "defaultValue",
|
|
@@ -40232,6 +41073,52 @@
|
|
|
40232
41073
|
"description": "Gets the validation message",
|
|
40233
41074
|
"readonly": true
|
|
40234
41075
|
},
|
|
41076
|
+
{
|
|
41077
|
+
"kind": "method",
|
|
41078
|
+
"name": "resolveSlashItems",
|
|
41079
|
+
"return": {
|
|
41080
|
+
"type": {
|
|
41081
|
+
"text": "Promise<SlashMenuItem[]>"
|
|
41082
|
+
}
|
|
41083
|
+
},
|
|
41084
|
+
"parameters": [
|
|
41085
|
+
{
|
|
41086
|
+
"name": "search",
|
|
41087
|
+
"default": "''"
|
|
41088
|
+
}
|
|
41089
|
+
],
|
|
41090
|
+
"description": "The insertions the slash menu offers, gathered from every source, in the order they were declared."
|
|
41091
|
+
},
|
|
41092
|
+
{
|
|
41093
|
+
"kind": "method",
|
|
41094
|
+
"name": "showSlashMenu",
|
|
41095
|
+
"description": "Opens the slash menu at the caret, inserting the trigger if it isn't already there."
|
|
41096
|
+
},
|
|
41097
|
+
{
|
|
41098
|
+
"kind": "method",
|
|
41099
|
+
"name": "hideSlashMenu",
|
|
41100
|
+
"description": "Closes the slash menu."
|
|
41101
|
+
},
|
|
41102
|
+
{
|
|
41103
|
+
"kind": "method",
|
|
41104
|
+
"name": "slottedSlashItems",
|
|
41105
|
+
"privacy": "private",
|
|
41106
|
+
"return": {
|
|
41107
|
+
"type": {
|
|
41108
|
+
"text": "SlashMenuItem[]"
|
|
41109
|
+
}
|
|
41110
|
+
}
|
|
41111
|
+
},
|
|
41112
|
+
{
|
|
41113
|
+
"kind": "method",
|
|
41114
|
+
"name": "mountSlashMenu",
|
|
41115
|
+
"privacy": "private",
|
|
41116
|
+
"return": {
|
|
41117
|
+
"type": {
|
|
41118
|
+
"text": "Promise<ZnSlashMenu | null>"
|
|
41119
|
+
}
|
|
41120
|
+
}
|
|
41121
|
+
},
|
|
40235
41122
|
{
|
|
40236
41123
|
"kind": "method",
|
|
40237
41124
|
"name": "handleBlur",
|
|
@@ -40452,6 +41339,14 @@
|
|
|
40452
41339
|
{
|
|
40453
41340
|
"description": "Emitted when the form control has been checked for validity and its constraints aren't satisfied.",
|
|
40454
41341
|
"name": "zn-invalid"
|
|
41342
|
+
},
|
|
41343
|
+
{
|
|
41344
|
+
"description": "Emitted when a slash menu item is chosen. Cancelable — call `preventDefault()` to suppress the insertion and handle the item yourself.",
|
|
41345
|
+
"name": "zn-slash-select"
|
|
41346
|
+
},
|
|
41347
|
+
{
|
|
41348
|
+
"description": "Emitted after a slash menu item's value has been inserted.",
|
|
41349
|
+
"name": "zn-slash-insert"
|
|
40455
41350
|
}
|
|
40456
41351
|
],
|
|
40457
41352
|
"attributes": [
|
|
@@ -40670,6 +41565,42 @@
|
|
|
40670
41565
|
"description": "Tells the browser what type of data will be entered by the user, allowing it to display the appropriate virtual\nkeyboard on supportive devices.",
|
|
40671
41566
|
"fieldName": "inputmode"
|
|
40672
41567
|
},
|
|
41568
|
+
{
|
|
41569
|
+
"name": "slash-items",
|
|
41570
|
+
"type": {
|
|
41571
|
+
"text": "SlashMenuItem[]"
|
|
41572
|
+
},
|
|
41573
|
+
"default": "[]",
|
|
41574
|
+
"description": "Quick insertions offered by the slash menu. Accepts a JSON array of items, or the shorthand\n`Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Can also be set as an array of\n`SlashMenuItem` objects in JavaScript.",
|
|
41575
|
+
"fieldName": "slashItems"
|
|
41576
|
+
},
|
|
41577
|
+
{
|
|
41578
|
+
"name": "slash-preset",
|
|
41579
|
+
"type": {
|
|
41580
|
+
"text": "string"
|
|
41581
|
+
},
|
|
41582
|
+
"default": "''",
|
|
41583
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
41584
|
+
"fieldName": "slashPreset"
|
|
41585
|
+
},
|
|
41586
|
+
{
|
|
41587
|
+
"name": "slash-trigger",
|
|
41588
|
+
"type": {
|
|
41589
|
+
"text": "string"
|
|
41590
|
+
},
|
|
41591
|
+
"default": "'/'",
|
|
41592
|
+
"description": "The characters that open the slash menu.",
|
|
41593
|
+
"fieldName": "slashTrigger"
|
|
41594
|
+
},
|
|
41595
|
+
{
|
|
41596
|
+
"name": "slash-heading",
|
|
41597
|
+
"type": {
|
|
41598
|
+
"text": "string"
|
|
41599
|
+
},
|
|
41600
|
+
"default": "'Insert'",
|
|
41601
|
+
"description": "The heading shown above the slash menu's items.",
|
|
41602
|
+
"fieldName": "slashHeading"
|
|
41603
|
+
},
|
|
40673
41604
|
{
|
|
40674
41605
|
"name": "transparent",
|
|
40675
41606
|
"type": {
|
|
@@ -40687,10 +41618,14 @@
|
|
|
40687
41618
|
"tagNameWithoutPrefix": "textarea",
|
|
40688
41619
|
"tagName": "zn-textarea",
|
|
40689
41620
|
"customElement": true,
|
|
40690
|
-
"jsDoc": "/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://zinc.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textareas label. Alternatively, you can use the `label` attribute.\n * @slot label-tooltip - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n * @slot context-note - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n *\n * @event zn-blur - Emitted when the control loses focus.\n * @event zn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event zn-focus - Emitted when the control gains focus.\n * @event zn-input - Emitted when the control receives input.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n */",
|
|
41621
|
+
"jsDoc": "/**\n * @summary Textareas collect data from the user and allow multiple lines of text.\n * @documentation https://zinc.style/components/textarea\n * @status stable\n * @since 2.0\n *\n * @slot label - The textareas label. Alternatively, you can use the `label` attribute.\n * @slot label-tooltip - Used to add text that is displayed in a tooltip next to the label. Alternatively, you can use the `label-tooltip` attribute.\n * @slot context-note - Used to add contextual text that is displayed above the textarea, on the right. Alternatively, you can use the `context-note` attribute.\n * @slot help-text - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n * @slot slash-items - `<zn-slash-item>` elements describing the insertions offered by the slash menu. Items are\n * picked up wherever they sit inside the textarea, so this slot name is optional.\n * @slot slash-menu - A `<zn-slash-menu>` to use instead of the built-in one, so its heading, sizing and styling can\n * be set in markup. Any `<zn-slash-item>` children of it become the menu's items.\n *\n * @dependency zn-slash-item\n * @dependency zn-slash-menu\n *\n * @event zn-blur - Emitted when the control loses focus.\n * @event zn-change - Emitted when an alteration to the control's value is committed by the user.\n * @event zn-focus - Emitted when the control gains focus.\n * @event zn-input - Emitted when the control receives input.\n * @event zn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n * @event zn-slash-select - Emitted when a slash menu item is chosen. Cancelable — call `preventDefault()` to\n * suppress the insertion and handle the item yourself.\n * @event zn-slash-insert - Emitted after a slash menu item's value has been inserted.\n *\n * @csspart form-control - The form control that wraps the label, input, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The input's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart base - The component's base wrapper.\n * @csspart textarea - The internal `<textarea>` control.\n * @csspart slash-menu - The slash menu shown at the caret.\n */",
|
|
40691
41622
|
"documentation": "https://zinc.style/components/textarea",
|
|
40692
41623
|
"status": "stable",
|
|
40693
|
-
"since": "2.0"
|
|
41624
|
+
"since": "2.0",
|
|
41625
|
+
"dependencies": [
|
|
41626
|
+
"zn-slash-item",
|
|
41627
|
+
"zn-slash-menu"
|
|
41628
|
+
]
|
|
40694
41629
|
}
|
|
40695
41630
|
],
|
|
40696
41631
|
"exports": [
|
|
@@ -43894,6 +44829,54 @@
|
|
|
43894
44829
|
},
|
|
43895
44830
|
"attribute": "textarea-rows"
|
|
43896
44831
|
},
|
|
44832
|
+
{
|
|
44833
|
+
"kind": "field",
|
|
44834
|
+
"name": "slashItems",
|
|
44835
|
+
"type": {
|
|
44836
|
+
"text": "SlashMenuItem[]"
|
|
44837
|
+
},
|
|
44838
|
+
"default": "[]",
|
|
44839
|
+
"description": "Quick insertions offered by the slash menu when `input-type` is `textarea`. Accepts a JSON array of items, or\nthe shorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Every language shares the list.",
|
|
44840
|
+
"attribute": "slash-items"
|
|
44841
|
+
},
|
|
44842
|
+
{
|
|
44843
|
+
"kind": "field",
|
|
44844
|
+
"name": "slashPreset",
|
|
44845
|
+
"type": {
|
|
44846
|
+
"text": "string"
|
|
44847
|
+
},
|
|
44848
|
+
"default": "''",
|
|
44849
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
44850
|
+
"attribute": "slash-preset"
|
|
44851
|
+
},
|
|
44852
|
+
{
|
|
44853
|
+
"kind": "field",
|
|
44854
|
+
"name": "slashTrigger",
|
|
44855
|
+
"type": {
|
|
44856
|
+
"text": "string"
|
|
44857
|
+
},
|
|
44858
|
+
"default": "'/'",
|
|
44859
|
+
"description": "The characters that open the slash menu.",
|
|
44860
|
+
"attribute": "slash-trigger"
|
|
44861
|
+
},
|
|
44862
|
+
{
|
|
44863
|
+
"kind": "field",
|
|
44864
|
+
"name": "slashHeading",
|
|
44865
|
+
"type": {
|
|
44866
|
+
"text": "string"
|
|
44867
|
+
},
|
|
44868
|
+
"default": "'Insert'",
|
|
44869
|
+
"description": "The heading shown above the slash menu's items.",
|
|
44870
|
+
"attribute": "slash-heading"
|
|
44871
|
+
},
|
|
44872
|
+
{
|
|
44873
|
+
"kind": "field",
|
|
44874
|
+
"name": "slashItemsProvider",
|
|
44875
|
+
"type": {
|
|
44876
|
+
"text": "(query: string) => SlashMenuItem[] | Promise<SlashMenuItem[]> | undefined"
|
|
44877
|
+
},
|
|
44878
|
+
"description": "Resolves additional slash menu items each time the menu opens. JavaScript only."
|
|
44879
|
+
},
|
|
43897
44880
|
{
|
|
43898
44881
|
"kind": "field",
|
|
43899
44882
|
"name": "grouped",
|
|
@@ -44166,6 +45149,42 @@
|
|
|
44166
45149
|
},
|
|
44167
45150
|
"fieldName": "textareaRows"
|
|
44168
45151
|
},
|
|
45152
|
+
{
|
|
45153
|
+
"name": "slash-items",
|
|
45154
|
+
"type": {
|
|
45155
|
+
"text": "SlashMenuItem[]"
|
|
45156
|
+
},
|
|
45157
|
+
"default": "[]",
|
|
45158
|
+
"description": "Quick insertions offered by the slash menu when `input-type` is `textarea`. Accepts a JSON array of items, or\nthe shorthand `Brand name={{BRAND_NAME}}, Support email={{SUPPORT_EMAIL}}`. Every language shares the list.",
|
|
45159
|
+
"fieldName": "slashItems"
|
|
45160
|
+
},
|
|
45161
|
+
{
|
|
45162
|
+
"name": "slash-preset",
|
|
45163
|
+
"type": {
|
|
45164
|
+
"text": "string"
|
|
45165
|
+
},
|
|
45166
|
+
"default": "''",
|
|
45167
|
+
"description": "Names of item sets registered with `registerSlashMenuPreset`, comma separated.",
|
|
45168
|
+
"fieldName": "slashPreset"
|
|
45169
|
+
},
|
|
45170
|
+
{
|
|
45171
|
+
"name": "slash-trigger",
|
|
45172
|
+
"type": {
|
|
45173
|
+
"text": "string"
|
|
45174
|
+
},
|
|
45175
|
+
"default": "'/'",
|
|
45176
|
+
"description": "The characters that open the slash menu.",
|
|
45177
|
+
"fieldName": "slashTrigger"
|
|
45178
|
+
},
|
|
45179
|
+
{
|
|
45180
|
+
"name": "slash-heading",
|
|
45181
|
+
"type": {
|
|
45182
|
+
"text": "string"
|
|
45183
|
+
},
|
|
45184
|
+
"default": "'Insert'",
|
|
45185
|
+
"description": "The heading shown above the slash menu's items.",
|
|
45186
|
+
"fieldName": "slashHeading"
|
|
45187
|
+
},
|
|
44169
45188
|
{
|
|
44170
45189
|
"name": "grouped",
|
|
44171
45190
|
"type": {
|
|
@@ -44468,7 +45487,7 @@
|
|
|
44468
45487
|
"package": {
|
|
44469
45488
|
"name": "@kubex/zinc",
|
|
44470
45489
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
44471
|
-
"version": "1.1.
|
|
45490
|
+
"version": "1.1.80",
|
|
44472
45491
|
"author": "",
|
|
44473
45492
|
"license": "MIT"
|
|
44474
45493
|
}
|