@kubex/zinc 1.1.94 → 1.1.96
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 +653 -89
- package/dist/vscode.html-custom-data.json +73 -18
- package/dist/web-types.json +145 -35
- package/dist/zn.d.ts +204 -39
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +374 -308
- package/docs/pages/components/flow-builder.md +17 -1
- package/docs/pages/components/page-builder.md +31 -0
- package/docs/pages/components/slash-menu.md +132 -6
- package/docs/pages/components/textarea.md +16 -0
- package/package.json +1 -1
- package/scss/_root.scss +7 -1
- package/src/components/button/button.scss +5 -2
- package/src/components/flow-builder/flow-builder.component.ts +16 -1
- package/src/components/flow-builder/flow-builder.test.ts +206 -1
- package/src/components/flow-builder/flow-geometry.test.ts +102 -0
- package/src/components/flow-builder/flow.types.ts +82 -15
- package/src/components/flow-builder/modules/flow-canvas/flow-canvas.component.ts +163 -108
- package/src/components/flow-builder/modules/flow-step/flow-step.component.ts +2 -0
- package/src/components/inline-edit/inline-edit.component.ts +6 -1
- package/src/components/input/input.component.ts +12 -2
- package/src/components/page/page.scss +7 -2
- package/src/components/page-builder/modules/page-section-card/page-section-card.component.ts +16 -9
- package/src/components/page-builder/modules/page-section-card/page-section-card.scss +13 -0
- package/src/components/page-builder/modules/page-section-card/page-section-card.test.ts +9 -0
- package/src/components/page-builder/page-builder.component.ts +62 -4
- package/src/components/page-builder/page-builder.test.ts +94 -0
- package/src/components/remarkd-editor/remarkd-editor.component.ts +227 -12
- package/src/components/remarkd-editor/remarkd-editor.scss +81 -0
- package/src/components/remarkd-editor/remarkd-editor.test.ts +258 -0
- package/src/components/settings-container/settings-container.scss +2 -1
- package/src/components/slash-item/slash-item.component.ts +1 -1
- package/src/components/slash-menu/slash-menu-items.ts +48 -0
- package/src/components/slash-menu/slash-menu.component.ts +134 -27
- package/src/components/slash-menu/slash-menu.scss +90 -12
- package/src/components/slash-menu/slash-menu.test.ts +107 -0
- package/src/components/textarea/textarea.component.ts +12 -2
- package/src/components/textarea/textarea.test.ts +2 -2
- package/src/components/translations/translations.component.ts +5 -1
|
@@ -56,79 +56,6 @@
|
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
{
|
|
60
|
-
"kind": "javascript-module",
|
|
61
|
-
"path": "components/action-bar/action-bar.js",
|
|
62
|
-
"declarations": [
|
|
63
|
-
{
|
|
64
|
-
"kind": "class",
|
|
65
|
-
"description": "",
|
|
66
|
-
"name": "ZnActionBar",
|
|
67
|
-
"cssProperties": [
|
|
68
|
-
{
|
|
69
|
-
"description": "An example CSS custom property.",
|
|
70
|
-
"name": "--example"
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"cssParts": [
|
|
74
|
-
{
|
|
75
|
-
"description": "The component's base wrapper.",
|
|
76
|
-
"name": "base"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"slots": [
|
|
80
|
-
{
|
|
81
|
-
"description": "The default slot.",
|
|
82
|
-
"name": ""
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"description": "An example slot.",
|
|
86
|
-
"name": "example"
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"members": [
|
|
90
|
-
{
|
|
91
|
-
"kind": "field",
|
|
92
|
-
"name": "localize",
|
|
93
|
-
"privacy": "private",
|
|
94
|
-
"readonly": true,
|
|
95
|
-
"default": "new LocalizeController(this)"
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
"events": [
|
|
99
|
-
{
|
|
100
|
-
"description": "Emitted as an example.",
|
|
101
|
-
"name": "zn-event-name"
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"superclass": {
|
|
105
|
-
"name": "ZincElement",
|
|
106
|
-
"module": "/src/internal/zinc-element"
|
|
107
|
-
},
|
|
108
|
-
"summary": "Short summary of the component's intended use.",
|
|
109
|
-
"tagNameWithoutPrefix": "action-bar",
|
|
110
|
-
"tagName": "zn-action-bar",
|
|
111
|
-
"customElement": true,
|
|
112
|
-
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
113
|
-
"documentation": "https://zinc.style/components/action-bar",
|
|
114
|
-
"status": "experimental",
|
|
115
|
-
"since": "1.0",
|
|
116
|
-
"dependencies": [
|
|
117
|
-
"zn-example"
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"exports": [
|
|
122
|
-
{
|
|
123
|
-
"kind": "js",
|
|
124
|
-
"name": "default",
|
|
125
|
-
"declaration": {
|
|
126
|
-
"name": "ZnActionBar",
|
|
127
|
-
"module": "components/action-bar/action-bar.js"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
59
|
{
|
|
133
60
|
"kind": "javascript-module",
|
|
134
61
|
"path": "components/alert/alert.js",
|
|
@@ -323,6 +250,79 @@
|
|
|
323
250
|
}
|
|
324
251
|
]
|
|
325
252
|
},
|
|
253
|
+
{
|
|
254
|
+
"kind": "javascript-module",
|
|
255
|
+
"path": "components/action-bar/action-bar.js",
|
|
256
|
+
"declarations": [
|
|
257
|
+
{
|
|
258
|
+
"kind": "class",
|
|
259
|
+
"description": "",
|
|
260
|
+
"name": "ZnActionBar",
|
|
261
|
+
"cssProperties": [
|
|
262
|
+
{
|
|
263
|
+
"description": "An example CSS custom property.",
|
|
264
|
+
"name": "--example"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"cssParts": [
|
|
268
|
+
{
|
|
269
|
+
"description": "The component's base wrapper.",
|
|
270
|
+
"name": "base"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"slots": [
|
|
274
|
+
{
|
|
275
|
+
"description": "The default slot.",
|
|
276
|
+
"name": ""
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"description": "An example slot.",
|
|
280
|
+
"name": "example"
|
|
281
|
+
}
|
|
282
|
+
],
|
|
283
|
+
"members": [
|
|
284
|
+
{
|
|
285
|
+
"kind": "field",
|
|
286
|
+
"name": "localize",
|
|
287
|
+
"privacy": "private",
|
|
288
|
+
"readonly": true,
|
|
289
|
+
"default": "new LocalizeController(this)"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"events": [
|
|
293
|
+
{
|
|
294
|
+
"description": "Emitted as an example.",
|
|
295
|
+
"name": "zn-event-name"
|
|
296
|
+
}
|
|
297
|
+
],
|
|
298
|
+
"superclass": {
|
|
299
|
+
"name": "ZincElement",
|
|
300
|
+
"module": "/src/internal/zinc-element"
|
|
301
|
+
},
|
|
302
|
+
"summary": "Short summary of the component's intended use.",
|
|
303
|
+
"tagNameWithoutPrefix": "action-bar",
|
|
304
|
+
"tagName": "zn-action-bar",
|
|
305
|
+
"customElement": true,
|
|
306
|
+
"jsDoc": "/**\n * @summary Short summary of the component's intended use.\n * @documentation https://zinc.style/components/action-bar\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-example\n *\n * @event zn-event-name - Emitted as an example.\n *\n * @slot - The default slot.\n * @slot example - An example slot.\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --example - An example CSS custom property.\n */",
|
|
307
|
+
"documentation": "https://zinc.style/components/action-bar",
|
|
308
|
+
"status": "experimental",
|
|
309
|
+
"since": "1.0",
|
|
310
|
+
"dependencies": [
|
|
311
|
+
"zn-example"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"exports": [
|
|
316
|
+
{
|
|
317
|
+
"kind": "js",
|
|
318
|
+
"name": "default",
|
|
319
|
+
"declaration": {
|
|
320
|
+
"name": "ZnActionBar",
|
|
321
|
+
"module": "components/action-bar/action-bar.js"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
326
|
{
|
|
327
327
|
"kind": "javascript-module",
|
|
328
328
|
"path": "components/animated-button/animated-button.js",
|
|
@@ -14969,6 +14969,31 @@
|
|
|
14969
14969
|
],
|
|
14970
14970
|
"description": "Canvas position for a node newly placed off a source node's output."
|
|
14971
14971
|
},
|
|
14972
|
+
{
|
|
14973
|
+
"kind": "method",
|
|
14974
|
+
"name": "_refusesBranch",
|
|
14975
|
+
"privacy": "private",
|
|
14976
|
+
"return": {
|
|
14977
|
+
"type": {
|
|
14978
|
+
"text": "boolean"
|
|
14979
|
+
}
|
|
14980
|
+
},
|
|
14981
|
+
"parameters": [
|
|
14982
|
+
{
|
|
14983
|
+
"name": "node",
|
|
14984
|
+
"type": {
|
|
14985
|
+
"text": "FlowNodeInstance"
|
|
14986
|
+
}
|
|
14987
|
+
},
|
|
14988
|
+
{
|
|
14989
|
+
"name": "port",
|
|
14990
|
+
"type": {
|
|
14991
|
+
"text": "string"
|
|
14992
|
+
}
|
|
14993
|
+
}
|
|
14994
|
+
],
|
|
14995
|
+
"description": "Whether a node refuses the branch being asked of it: a fixed-output type\nhas only the branches it declares, so the \"new branch\" sentinel has nowhere\nto go. Checked before the history push, so a refused gesture is a no-op\nrather than an empty undo step."
|
|
14996
|
+
},
|
|
14972
14997
|
{
|
|
14973
14998
|
"kind": "method",
|
|
14974
14999
|
"name": "_ensureOutput",
|
|
@@ -17691,7 +17716,7 @@
|
|
|
17691
17716
|
"text": "string"
|
|
17692
17717
|
},
|
|
17693
17718
|
"default": "'Insert'",
|
|
17694
|
-
"description": "The
|
|
17719
|
+
"description": "The name the slash menu's list is announced by.",
|
|
17695
17720
|
"attribute": "slash-heading"
|
|
17696
17721
|
},
|
|
17697
17722
|
{
|
|
@@ -17704,6 +17729,16 @@
|
|
|
17704
17729
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
17705
17730
|
"attribute": "slash-hide-keys"
|
|
17706
17731
|
},
|
|
17732
|
+
{
|
|
17733
|
+
"kind": "field",
|
|
17734
|
+
"name": "slashRecentKey",
|
|
17735
|
+
"type": {
|
|
17736
|
+
"text": "string"
|
|
17737
|
+
},
|
|
17738
|
+
"default": "''",
|
|
17739
|
+
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
17740
|
+
"attribute": "slash-recent-key"
|
|
17741
|
+
},
|
|
17707
17742
|
{
|
|
17708
17743
|
"kind": "field",
|
|
17709
17744
|
"name": "slashItemsProvider",
|
|
@@ -18205,7 +18240,7 @@
|
|
|
18205
18240
|
"text": "string"
|
|
18206
18241
|
},
|
|
18207
18242
|
"default": "'Insert'",
|
|
18208
|
-
"description": "The
|
|
18243
|
+
"description": "The name the slash menu's list is announced by.",
|
|
18209
18244
|
"fieldName": "slashHeading"
|
|
18210
18245
|
},
|
|
18211
18246
|
{
|
|
@@ -18217,6 +18252,15 @@
|
|
|
18217
18252
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
18218
18253
|
"fieldName": "slashHideKeys"
|
|
18219
18254
|
},
|
|
18255
|
+
{
|
|
18256
|
+
"name": "slash-recent-key",
|
|
18257
|
+
"type": {
|
|
18258
|
+
"text": "string"
|
|
18259
|
+
},
|
|
18260
|
+
"default": "''",
|
|
18261
|
+
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
18262
|
+
"fieldName": "slashRecentKey"
|
|
18263
|
+
},
|
|
18220
18264
|
{
|
|
18221
18265
|
"name": "options",
|
|
18222
18266
|
"type": {
|
|
@@ -18947,7 +18991,7 @@
|
|
|
18947
18991
|
"text": "string"
|
|
18948
18992
|
},
|
|
18949
18993
|
"default": "'Insert'",
|
|
18950
|
-
"description": "The
|
|
18994
|
+
"description": "The name the slash menu's list is announced by.",
|
|
18951
18995
|
"attribute": "slash-heading"
|
|
18952
18996
|
},
|
|
18953
18997
|
{
|
|
@@ -18960,6 +19004,16 @@
|
|
|
18960
19004
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
18961
19005
|
"attribute": "slash-hide-keys"
|
|
18962
19006
|
},
|
|
19007
|
+
{
|
|
19008
|
+
"kind": "field",
|
|
19009
|
+
"name": "slashRecentKey",
|
|
19010
|
+
"type": {
|
|
19011
|
+
"text": "string"
|
|
19012
|
+
},
|
|
19013
|
+
"default": "''",
|
|
19014
|
+
"description": "Lists the items most recently chosen here above the rest, remembered in `localStorage` under this\nkey. Share a key between the fields that should share a history; leave unset to offer no such list.",
|
|
19015
|
+
"attribute": "slash-recent-key"
|
|
19016
|
+
},
|
|
18963
19017
|
{
|
|
18964
19018
|
"kind": "field",
|
|
18965
19019
|
"name": "slashItemsProvider",
|
|
@@ -19819,7 +19873,7 @@
|
|
|
19819
19873
|
"text": "string"
|
|
19820
19874
|
},
|
|
19821
19875
|
"default": "'Insert'",
|
|
19822
|
-
"description": "The
|
|
19876
|
+
"description": "The name the slash menu's list is announced by.",
|
|
19823
19877
|
"fieldName": "slashHeading"
|
|
19824
19878
|
},
|
|
19825
19879
|
{
|
|
@@ -19831,6 +19885,15 @@
|
|
|
19831
19885
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
19832
19886
|
"fieldName": "slashHideKeys"
|
|
19833
19887
|
},
|
|
19888
|
+
{
|
|
19889
|
+
"name": "slash-recent-key",
|
|
19890
|
+
"type": {
|
|
19891
|
+
"text": "string"
|
|
19892
|
+
},
|
|
19893
|
+
"default": "''",
|
|
19894
|
+
"description": "Lists the items most recently chosen here above the rest, remembered in `localStorage` under this\nkey. Share a key between the fields that should share a history; leave unset to offer no such list.",
|
|
19895
|
+
"fieldName": "slashRecentKey"
|
|
19896
|
+
},
|
|
19834
19897
|
{
|
|
19835
19898
|
"name": "trigger-submit",
|
|
19836
19899
|
"type": {
|
|
@@ -25851,6 +25914,17 @@
|
|
|
25851
25914
|
"attribute": "subheading",
|
|
25852
25915
|
"reflects": true
|
|
25853
25916
|
},
|
|
25917
|
+
{
|
|
25918
|
+
"kind": "field",
|
|
25919
|
+
"name": "requiredFirst",
|
|
25920
|
+
"type": {
|
|
25921
|
+
"text": "string"
|
|
25922
|
+
},
|
|
25923
|
+
"default": "''",
|
|
25924
|
+
"description": "Section type key that must lead the page. The builder hoists an existing section of\nthat type to the top, or inserts an empty one, and pins it there: it can't be\nremoved, reordered or dragged into a slot, and nothing can be dropped above it.\nIts content stays fully editable in the inspector.",
|
|
25925
|
+
"attribute": "required-first",
|
|
25926
|
+
"reflects": true
|
|
25927
|
+
},
|
|
25854
25928
|
{
|
|
25855
25929
|
"kind": "field",
|
|
25856
25930
|
"name": "sectionTypes",
|
|
@@ -26082,6 +26156,10 @@
|
|
|
26082
26156
|
"kind": "method",
|
|
26083
26157
|
"name": "handleConfigChange"
|
|
26084
26158
|
},
|
|
26159
|
+
{
|
|
26160
|
+
"kind": "method",
|
|
26161
|
+
"name": "handleRequiredFirstChange"
|
|
26162
|
+
},
|
|
26085
26163
|
{
|
|
26086
26164
|
"kind": "method",
|
|
26087
26165
|
"name": "handleSectionTypesChange"
|
|
@@ -26294,6 +26372,63 @@
|
|
|
26294
26372
|
],
|
|
26295
26373
|
"description": "Normalises and installs an externally provided state; resets selection."
|
|
26296
26374
|
},
|
|
26375
|
+
{
|
|
26376
|
+
"kind": "field",
|
|
26377
|
+
"name": "_pinnedId",
|
|
26378
|
+
"type": {
|
|
26379
|
+
"text": "string | null"
|
|
26380
|
+
},
|
|
26381
|
+
"privacy": "private",
|
|
26382
|
+
"description": "Id of the section pinned to the top of the page, or null when `required-first`\nis unset. Derived from the state rather than stored on it, so nothing about the\nlock leaks into the persisted config.",
|
|
26383
|
+
"readonly": true
|
|
26384
|
+
},
|
|
26385
|
+
{
|
|
26386
|
+
"kind": "method",
|
|
26387
|
+
"name": "_isPinned",
|
|
26388
|
+
"privacy": "private",
|
|
26389
|
+
"return": {
|
|
26390
|
+
"type": {
|
|
26391
|
+
"text": "boolean"
|
|
26392
|
+
}
|
|
26393
|
+
},
|
|
26394
|
+
"parameters": [
|
|
26395
|
+
{
|
|
26396
|
+
"name": "id",
|
|
26397
|
+
"type": {
|
|
26398
|
+
"text": "string"
|
|
26399
|
+
}
|
|
26400
|
+
}
|
|
26401
|
+
]
|
|
26402
|
+
},
|
|
26403
|
+
{
|
|
26404
|
+
"kind": "field",
|
|
26405
|
+
"name": "_firstFreeIndex",
|
|
26406
|
+
"type": {
|
|
26407
|
+
"text": "number"
|
|
26408
|
+
},
|
|
26409
|
+
"privacy": "private",
|
|
26410
|
+
"description": "Lowest top-level index a section may be added or moved to.",
|
|
26411
|
+
"readonly": true
|
|
26412
|
+
},
|
|
26413
|
+
{
|
|
26414
|
+
"kind": "method",
|
|
26415
|
+
"name": "_requireFirst",
|
|
26416
|
+
"privacy": "private",
|
|
26417
|
+
"return": {
|
|
26418
|
+
"type": {
|
|
26419
|
+
"text": "PageSection[]"
|
|
26420
|
+
}
|
|
26421
|
+
},
|
|
26422
|
+
"parameters": [
|
|
26423
|
+
{
|
|
26424
|
+
"name": "sections",
|
|
26425
|
+
"type": {
|
|
26426
|
+
"text": "PageSection[]"
|
|
26427
|
+
}
|
|
26428
|
+
}
|
|
26429
|
+
],
|
|
26430
|
+
"description": "Sections reordered so `required-first` leads the page: an existing section of that\ntype is hoisted to the front, otherwise an empty one is prepended. Returns the\nargument unchanged when there is nothing to do, so callers can compare by identity."
|
|
26431
|
+
},
|
|
26297
26432
|
{
|
|
26298
26433
|
"kind": "method",
|
|
26299
26434
|
"name": "_findSection",
|
|
@@ -26976,6 +27111,15 @@
|
|
|
26976
27111
|
"default": "''",
|
|
26977
27112
|
"fieldName": "subheading"
|
|
26978
27113
|
},
|
|
27114
|
+
{
|
|
27115
|
+
"name": "required-first",
|
|
27116
|
+
"type": {
|
|
27117
|
+
"text": "string"
|
|
27118
|
+
},
|
|
27119
|
+
"default": "''",
|
|
27120
|
+
"description": "Section type key that must lead the page. The builder hoists an existing section of\nthat type to the top, or inserts an empty one, and pins it there: it can't be\nremoved, reordered or dragged into a slot, and nothing can be dropped above it.\nIts content stays fully editable in the inspector.",
|
|
27121
|
+
"fieldName": "requiredFirst"
|
|
27122
|
+
},
|
|
26979
27123
|
{
|
|
26980
27124
|
"name": "palette-collapsed",
|
|
26981
27125
|
"type": {
|
|
@@ -33094,6 +33238,14 @@
|
|
|
33094
33238
|
{
|
|
33095
33239
|
"description": "The caption / alignment / size panel shown when an image block is clicked.",
|
|
33096
33240
|
"name": "image-controls"
|
|
33241
|
+
},
|
|
33242
|
+
{
|
|
33243
|
+
"description": "The chip rendered in place of an `include::` directive.",
|
|
33244
|
+
"name": "include"
|
|
33245
|
+
},
|
|
33246
|
+
{
|
|
33247
|
+
"description": "The inline Include picker opened from the toolbar or \"/include\".",
|
|
33248
|
+
"name": "include-picker"
|
|
33097
33249
|
}
|
|
33098
33250
|
],
|
|
33099
33251
|
"members": [
|
|
@@ -33118,7 +33270,7 @@
|
|
|
33118
33270
|
"name": "slashController",
|
|
33119
33271
|
"privacy": "private",
|
|
33120
33272
|
"readonly": true,
|
|
33121
|
-
"default": "new SlashMenuController(this, { menu: () => this.mountSlashMenu(), // The menu only belongs in a block that is nothing but the slash command — a // block prefix like \"## \" is not valid remarkd part-way through a line. items: () => this.isSlashBlock() ? SLASH_ITEMS : [], onSelect: item => this.handleSlashSelect(item) })"
|
|
33273
|
+
"default": "new SlashMenuController(this, { menu: () => this.mountSlashMenu(), // The menu only belongs in a block that is nothing but the slash command — a // block prefix like \"## \" is not valid remarkd part-way through a line. items: () => this.isSlashBlock() ? SLASH_ITEMS.filter(item => item.action !== 'include' || !!this.includeUrl) : [], onSelect: item => this.handleSlashSelect(item) })"
|
|
33122
33274
|
},
|
|
33123
33275
|
{
|
|
33124
33276
|
"kind": "field",
|
|
@@ -33129,6 +33281,15 @@
|
|
|
33129
33281
|
"privacy": "private",
|
|
33130
33282
|
"default": "''"
|
|
33131
33283
|
},
|
|
33284
|
+
{
|
|
33285
|
+
"kind": "field",
|
|
33286
|
+
"name": "includeRequest",
|
|
33287
|
+
"type": {
|
|
33288
|
+
"text": "Promise<IncludeOption[]> | null"
|
|
33289
|
+
},
|
|
33290
|
+
"privacy": "private",
|
|
33291
|
+
"default": "null"
|
|
33292
|
+
},
|
|
33132
33293
|
{
|
|
33133
33294
|
"kind": "field",
|
|
33134
33295
|
"name": "rawEntryValue",
|
|
@@ -33190,6 +33351,16 @@
|
|
|
33190
33351
|
"privacy": "private",
|
|
33191
33352
|
"default": "null"
|
|
33192
33353
|
},
|
|
33354
|
+
{
|
|
33355
|
+
"kind": "field",
|
|
33356
|
+
"name": "slashRecentKey",
|
|
33357
|
+
"type": {
|
|
33358
|
+
"text": "string"
|
|
33359
|
+
},
|
|
33360
|
+
"default": "''",
|
|
33361
|
+
"description": "Lists the blocks most recently inserted here above the rest of the slash menu, remembered in\n`localStorage` under this key. Leave unset to offer no recently used section.",
|
|
33362
|
+
"attribute": "slash-recent-key"
|
|
33363
|
+
},
|
|
33193
33364
|
{
|
|
33194
33365
|
"kind": "field",
|
|
33195
33366
|
"name": "hasSlashMenu",
|
|
@@ -33254,6 +33425,42 @@
|
|
|
33254
33425
|
"privacy": "private",
|
|
33255
33426
|
"default": "false"
|
|
33256
33427
|
},
|
|
33428
|
+
{
|
|
33429
|
+
"kind": "field",
|
|
33430
|
+
"name": "includeOptions",
|
|
33431
|
+
"type": {
|
|
33432
|
+
"text": "IncludeOption[] | null"
|
|
33433
|
+
},
|
|
33434
|
+
"privacy": "private",
|
|
33435
|
+
"default": "null"
|
|
33436
|
+
},
|
|
33437
|
+
{
|
|
33438
|
+
"kind": "field",
|
|
33439
|
+
"name": "includeLoadFailed",
|
|
33440
|
+
"type": {
|
|
33441
|
+
"text": "boolean"
|
|
33442
|
+
},
|
|
33443
|
+
"privacy": "private",
|
|
33444
|
+
"default": "false"
|
|
33445
|
+
},
|
|
33446
|
+
{
|
|
33447
|
+
"kind": "field",
|
|
33448
|
+
"name": "includePickerIndex",
|
|
33449
|
+
"type": {
|
|
33450
|
+
"text": "number | null"
|
|
33451
|
+
},
|
|
33452
|
+
"privacy": "private",
|
|
33453
|
+
"default": "null"
|
|
33454
|
+
},
|
|
33455
|
+
{
|
|
33456
|
+
"kind": "field",
|
|
33457
|
+
"name": "includeQuery",
|
|
33458
|
+
"type": {
|
|
33459
|
+
"text": "string"
|
|
33460
|
+
},
|
|
33461
|
+
"privacy": "private",
|
|
33462
|
+
"default": "''"
|
|
33463
|
+
},
|
|
33257
33464
|
{
|
|
33258
33465
|
"kind": "field",
|
|
33259
33466
|
"name": "pendingDragHandle",
|
|
@@ -33339,6 +33546,16 @@
|
|
|
33339
33546
|
"description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
|
|
33340
33547
|
"attribute": "attachment-url"
|
|
33341
33548
|
},
|
|
33549
|
+
{
|
|
33550
|
+
"kind": "field",
|
|
33551
|
+
"name": "includeUrl",
|
|
33552
|
+
"type": {
|
|
33553
|
+
"text": "string"
|
|
33554
|
+
},
|
|
33555
|
+
"default": "''",
|
|
33556
|
+
"description": "Endpoint listing the Includes this document may embed, as\n`{\"items\":[{id,title,description,scope,keywords,languages,url}]}`. Labels the\nchips rendered for `include::` directives and feeds the include picker.",
|
|
33557
|
+
"attribute": "include-url"
|
|
33558
|
+
},
|
|
33342
33559
|
{
|
|
33343
33560
|
"kind": "field",
|
|
33344
33561
|
"name": "allowRaw",
|
|
@@ -33457,6 +33674,10 @@
|
|
|
33457
33674
|
"kind": "method",
|
|
33458
33675
|
"name": "handleValueChange"
|
|
33459
33676
|
},
|
|
33677
|
+
{
|
|
33678
|
+
"kind": "method",
|
|
33679
|
+
"name": "handleIncludeUrlChange"
|
|
33680
|
+
},
|
|
33460
33681
|
{
|
|
33461
33682
|
"kind": "method",
|
|
33462
33683
|
"name": "splitBlocks",
|
|
@@ -33569,6 +33790,25 @@
|
|
|
33569
33790
|
],
|
|
33570
33791
|
"description": "Parses a block that is purely an image (with optional caption/align lines)."
|
|
33571
33792
|
},
|
|
33793
|
+
{
|
|
33794
|
+
"kind": "method",
|
|
33795
|
+
"name": "parseIncludeBlock",
|
|
33796
|
+
"privacy": "private",
|
|
33797
|
+
"return": {
|
|
33798
|
+
"type": {
|
|
33799
|
+
"text": "IncludeBlockData | null"
|
|
33800
|
+
}
|
|
33801
|
+
},
|
|
33802
|
+
"parameters": [
|
|
33803
|
+
{
|
|
33804
|
+
"name": "block",
|
|
33805
|
+
"type": {
|
|
33806
|
+
"text": "string"
|
|
33807
|
+
}
|
|
33808
|
+
}
|
|
33809
|
+
],
|
|
33810
|
+
"description": "Parses a block that is nothing but an include directive."
|
|
33811
|
+
},
|
|
33572
33812
|
{
|
|
33573
33813
|
"kind": "method",
|
|
33574
33814
|
"name": "serializeImageBlock",
|
|
@@ -33899,6 +34139,37 @@
|
|
|
33899
34139
|
}
|
|
33900
34140
|
]
|
|
33901
34141
|
},
|
|
34142
|
+
{
|
|
34143
|
+
"kind": "method",
|
|
34144
|
+
"name": "pickInclude",
|
|
34145
|
+
"privacy": "private",
|
|
34146
|
+
"parameters": [
|
|
34147
|
+
{
|
|
34148
|
+
"name": "index",
|
|
34149
|
+
"type": {
|
|
34150
|
+
"text": "number"
|
|
34151
|
+
}
|
|
34152
|
+
}
|
|
34153
|
+
]
|
|
34154
|
+
},
|
|
34155
|
+
{
|
|
34156
|
+
"kind": "field",
|
|
34157
|
+
"name": "closeIncludePicker",
|
|
34158
|
+
"privacy": "private"
|
|
34159
|
+
},
|
|
34160
|
+
{
|
|
34161
|
+
"kind": "method",
|
|
34162
|
+
"name": "insertInclude",
|
|
34163
|
+
"privacy": "private",
|
|
34164
|
+
"parameters": [
|
|
34165
|
+
{
|
|
34166
|
+
"name": "item",
|
|
34167
|
+
"type": {
|
|
34168
|
+
"text": "IncludeOption"
|
|
34169
|
+
}
|
|
34170
|
+
}
|
|
34171
|
+
]
|
|
34172
|
+
},
|
|
33902
34173
|
{
|
|
33903
34174
|
"kind": "field",
|
|
33904
34175
|
"name": "closeImagePicker",
|
|
@@ -33946,6 +34217,46 @@
|
|
|
33946
34217
|
}
|
|
33947
34218
|
]
|
|
33948
34219
|
},
|
|
34220
|
+
{
|
|
34221
|
+
"kind": "method",
|
|
34222
|
+
"name": "appPath",
|
|
34223
|
+
"privacy": "private",
|
|
34224
|
+
"return": {
|
|
34225
|
+
"type": {
|
|
34226
|
+
"text": "string"
|
|
34227
|
+
}
|
|
34228
|
+
},
|
|
34229
|
+
"parameters": [
|
|
34230
|
+
{
|
|
34231
|
+
"name": "path",
|
|
34232
|
+
"type": {
|
|
34233
|
+
"text": "string"
|
|
34234
|
+
}
|
|
34235
|
+
}
|
|
34236
|
+
],
|
|
34237
|
+
"description": "Resolves an app-relative path the way the console's pagelet handler does:\nan app fragment's URLs sit under the app base, and the console puts the app's\n`gaid` on the host element. Links rendered here live in the shadow root,\nwhere a click retargets to the host, so that handler never sees them — the\nhref has to carry the base itself."
|
|
34238
|
+
},
|
|
34239
|
+
{
|
|
34240
|
+
"kind": "method",
|
|
34241
|
+
"name": "hasIncludeBlock",
|
|
34242
|
+
"privacy": "private",
|
|
34243
|
+
"return": {
|
|
34244
|
+
"type": {
|
|
34245
|
+
"text": "boolean"
|
|
34246
|
+
}
|
|
34247
|
+
}
|
|
34248
|
+
},
|
|
34249
|
+
{
|
|
34250
|
+
"kind": "method",
|
|
34251
|
+
"name": "loadIncludeOptions",
|
|
34252
|
+
"privacy": "private",
|
|
34253
|
+
"return": {
|
|
34254
|
+
"type": {
|
|
34255
|
+
"text": "Promise<IncludeOption[]>"
|
|
34256
|
+
}
|
|
34257
|
+
},
|
|
34258
|
+
"description": "Fetches the include list once; every later caller shares the same promise."
|
|
34259
|
+
},
|
|
33949
34260
|
{
|
|
33950
34261
|
"kind": "method",
|
|
33951
34262
|
"name": "autosize",
|
|
@@ -33999,6 +34310,19 @@
|
|
|
33999
34310
|
"name": "renderImageControls",
|
|
34000
34311
|
"privacy": "private"
|
|
34001
34312
|
},
|
|
34313
|
+
{
|
|
34314
|
+
"kind": "method",
|
|
34315
|
+
"name": "renderIncludeChip",
|
|
34316
|
+
"privacy": "private",
|
|
34317
|
+
"parameters": [
|
|
34318
|
+
{
|
|
34319
|
+
"name": "data",
|
|
34320
|
+
"type": {
|
|
34321
|
+
"text": "IncludeBlockData"
|
|
34322
|
+
}
|
|
34323
|
+
}
|
|
34324
|
+
]
|
|
34325
|
+
},
|
|
34002
34326
|
{
|
|
34003
34327
|
"kind": "method",
|
|
34004
34328
|
"name": "renderBlock",
|
|
@@ -34029,6 +34353,11 @@
|
|
|
34029
34353
|
"privacy": "private",
|
|
34030
34354
|
"description": "The block views, with the inline image picker spliced in when active."
|
|
34031
34355
|
},
|
|
34356
|
+
{
|
|
34357
|
+
"kind": "method",
|
|
34358
|
+
"name": "renderIncludePicker",
|
|
34359
|
+
"privacy": "private"
|
|
34360
|
+
},
|
|
34032
34361
|
{
|
|
34033
34362
|
"kind": "method",
|
|
34034
34363
|
"name": "renderImagePicker",
|
|
@@ -34046,6 +34375,15 @@
|
|
|
34046
34375
|
}
|
|
34047
34376
|
],
|
|
34048
34377
|
"attributes": [
|
|
34378
|
+
{
|
|
34379
|
+
"name": "slash-recent-key",
|
|
34380
|
+
"type": {
|
|
34381
|
+
"text": "string"
|
|
34382
|
+
},
|
|
34383
|
+
"default": "''",
|
|
34384
|
+
"description": "Lists the blocks most recently inserted here above the rest of the slash menu, remembered in\n`localStorage` under this key. Leave unset to offer no recently used section.",
|
|
34385
|
+
"fieldName": "slashRecentKey"
|
|
34386
|
+
},
|
|
34049
34387
|
{
|
|
34050
34388
|
"name": "name",
|
|
34051
34389
|
"type": {
|
|
@@ -34082,6 +34420,15 @@
|
|
|
34082
34420
|
"description": "Endpoint for image uploads — required for image support. Posting the file\nmetadata here must return `{uploadPath, uploadUrl}`; the file is then PUT\nto `uploadUrl` and the returned `uploadPath` is embedded as the image URL.",
|
|
34083
34421
|
"fieldName": "attachmentUrl"
|
|
34084
34422
|
},
|
|
34423
|
+
{
|
|
34424
|
+
"name": "include-url",
|
|
34425
|
+
"type": {
|
|
34426
|
+
"text": "string"
|
|
34427
|
+
},
|
|
34428
|
+
"default": "''",
|
|
34429
|
+
"description": "Endpoint listing the Includes this document may embed, as\n`{\"items\":[{id,title,description,scope,keywords,languages,url}]}`. Labels the\nchips rendered for `include::` directives and feeds the include picker.",
|
|
34430
|
+
"fieldName": "includeUrl"
|
|
34431
|
+
},
|
|
34085
34432
|
{
|
|
34086
34433
|
"name": "allow-raw",
|
|
34087
34434
|
"type": {
|
|
@@ -34127,7 +34474,7 @@
|
|
|
34127
34474
|
"tagNameWithoutPrefix": "remarkd-editor",
|
|
34128
34475
|
"tagName": "zn-remarkd-editor",
|
|
34129
34476
|
"customElement": true,
|
|
34130
|
-
"jsDoc": "/**\n * @summary A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n * @documentation https://zinc.style/components/remarkd-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-button-group\n * @dependency zn-icon\n * @dependency zn-file\n * @dependency zn-slash-menu\n *\n * @event zn-input - Emitted on each keystroke while editing a block.\n * @event zn-change - Emitted when a block edit is committed and the value changes.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The always-visible block-insert toolbar.\n * @csspart raw-toggle - The button that switches between the block view and the raw source view.\n * @csspart block - A rendered block wrapper.\n * @csspart rendered - The rendered remarkd output of a block.\n * @csspart input - The textarea shown while editing a block.\n * @csspart raw - The full-document textarea shown in raw source mode.\n * @csspart slash-menu - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n * @csspart image-controls - The caption / alignment / size panel shown when an image block is clicked.\n */",
|
|
34477
|
+
"jsDoc": "/**\n * @summary A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n * @documentation https://zinc.style/components/remarkd-editor\n * @status experimental\n * @since 1.0\n *\n * @dependency zn-button\n * @dependency zn-button-group\n * @dependency zn-icon\n * @dependency zn-file\n * @dependency zn-slash-menu\n *\n * @event zn-input - Emitted on each keystroke while editing a block.\n * @event zn-change - Emitted when a block edit is committed and the value changes.\n *\n * @csspart base - The component's base wrapper.\n * @csspart toolbar - The always-visible block-insert toolbar.\n * @csspart raw-toggle - The button that switches between the block view and the raw source view.\n * @csspart block - A rendered block wrapper.\n * @csspart rendered - The rendered remarkd output of a block.\n * @csspart input - The textarea shown while editing a block.\n * @csspart raw - The full-document textarea shown in raw source mode.\n * @csspart slash-menu - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n * @csspart image-controls - The caption / alignment / size panel shown when an image block is clicked.\n * @csspart include - The chip rendered in place of an `include::` directive.\n * @csspart include-picker - The inline Include picker opened from the toolbar or \"/include\".\n */",
|
|
34131
34478
|
"documentation": "https://zinc.style/components/remarkd-editor",
|
|
34132
34479
|
"status": "experimental",
|
|
34133
34480
|
"since": "1.0",
|
|
@@ -38608,6 +38955,14 @@
|
|
|
38608
38955
|
"description": "The width of the panel.",
|
|
38609
38956
|
"name": "--slash-menu-width"
|
|
38610
38957
|
},
|
|
38958
|
+
{
|
|
38959
|
+
"description": "The corner radius of the panel.",
|
|
38960
|
+
"name": "--slash-menu-border-radius"
|
|
38961
|
+
},
|
|
38962
|
+
{
|
|
38963
|
+
"description": "The corner radius of the items and their icon chips.",
|
|
38964
|
+
"name": "--slash-menu-item-border-radius"
|
|
38965
|
+
},
|
|
38611
38966
|
{
|
|
38612
38967
|
"description": "The maximum height of the panel before it scrolls.",
|
|
38613
38968
|
"name": "--slash-menu-max-height"
|
|
@@ -38619,20 +38974,40 @@
|
|
|
38619
38974
|
"name": "panel"
|
|
38620
38975
|
},
|
|
38621
38976
|
{
|
|
38622
|
-
"description": "The
|
|
38623
|
-
"name": "
|
|
38977
|
+
"description": "The scrolling list of items.",
|
|
38978
|
+
"name": "list"
|
|
38624
38979
|
},
|
|
38625
38980
|
{
|
|
38626
38981
|
"description": "An item in the list.",
|
|
38627
38982
|
"name": "item"
|
|
38628
38983
|
},
|
|
38984
|
+
{
|
|
38985
|
+
"description": "The chip holding an item's icon.",
|
|
38986
|
+
"name": "icon"
|
|
38987
|
+
},
|
|
38629
38988
|
{
|
|
38630
38989
|
"description": "A group heading between items.",
|
|
38631
38990
|
"name": "group-heading"
|
|
38632
38991
|
},
|
|
38992
|
+
{
|
|
38993
|
+
"description": "The rule closing the recently used section, when the items below it have no heading of their own.",
|
|
38994
|
+
"name": "divider"
|
|
38995
|
+
},
|
|
38633
38996
|
{
|
|
38634
38997
|
"description": "The truncation footer, shown when not every match fits.",
|
|
38635
38998
|
"name": "footer"
|
|
38999
|
+
},
|
|
39000
|
+
{
|
|
39001
|
+
"description": "The pinned footer of keyboard hints.",
|
|
39002
|
+
"name": "hints"
|
|
39003
|
+
},
|
|
39004
|
+
{
|
|
39005
|
+
"description": "A single keyboard hint within the footer.",
|
|
39006
|
+
"name": "hint"
|
|
39007
|
+
},
|
|
39008
|
+
{
|
|
39009
|
+
"description": "The key shown against a hint.",
|
|
39010
|
+
"name": "hint-key"
|
|
38636
39011
|
}
|
|
38637
39012
|
],
|
|
38638
39013
|
"members": [
|
|
@@ -38653,6 +39028,14 @@
|
|
|
38653
39028
|
},
|
|
38654
39029
|
"privacy": "private"
|
|
38655
39030
|
},
|
|
39031
|
+
{
|
|
39032
|
+
"kind": "field",
|
|
39033
|
+
"name": "list",
|
|
39034
|
+
"type": {
|
|
39035
|
+
"text": "HTMLElement"
|
|
39036
|
+
},
|
|
39037
|
+
"privacy": "private"
|
|
39038
|
+
},
|
|
38656
39039
|
{
|
|
38657
39040
|
"kind": "field",
|
|
38658
39041
|
"name": "stopAutoUpdate",
|
|
@@ -38699,7 +39082,7 @@
|
|
|
38699
39082
|
"text": "string"
|
|
38700
39083
|
},
|
|
38701
39084
|
"default": "'Insert'",
|
|
38702
|
-
"description": "The
|
|
39085
|
+
"description": "The name the list is announced by when there is no query.",
|
|
38703
39086
|
"attribute": "heading"
|
|
38704
39087
|
},
|
|
38705
39088
|
{
|
|
@@ -38732,6 +39115,46 @@
|
|
|
38732
39115
|
"description": "Hides the insertion key (the item's value) normally shown against each item.",
|
|
38733
39116
|
"attribute": "hide-keys"
|
|
38734
39117
|
},
|
|
39118
|
+
{
|
|
39119
|
+
"kind": "field",
|
|
39120
|
+
"name": "hideHints",
|
|
39121
|
+
"type": {
|
|
39122
|
+
"text": "boolean"
|
|
39123
|
+
},
|
|
39124
|
+
"default": "false",
|
|
39125
|
+
"description": "Hides the pinned footer of keyboard hints.",
|
|
39126
|
+
"attribute": "hide-hints"
|
|
39127
|
+
},
|
|
39128
|
+
{
|
|
39129
|
+
"kind": "field",
|
|
39130
|
+
"name": "recentKey",
|
|
39131
|
+
"type": {
|
|
39132
|
+
"text": "string"
|
|
39133
|
+
},
|
|
39134
|
+
"default": "''",
|
|
39135
|
+
"description": "Remembers the items chosen here and lists the most recent of them first, under their own heading.\nThe key scopes the list to where the menu is used, so each place keeps its own history in\n`localStorage`. Leave unset to offer no recently used section.",
|
|
39136
|
+
"attribute": "recent-key"
|
|
39137
|
+
},
|
|
39138
|
+
{
|
|
39139
|
+
"kind": "field",
|
|
39140
|
+
"name": "maxRecent",
|
|
39141
|
+
"type": {
|
|
39142
|
+
"text": "number"
|
|
39143
|
+
},
|
|
39144
|
+
"default": "3",
|
|
39145
|
+
"description": "The most recently used items to list.",
|
|
39146
|
+
"attribute": "max-recent"
|
|
39147
|
+
},
|
|
39148
|
+
{
|
|
39149
|
+
"kind": "field",
|
|
39150
|
+
"name": "recentHeading",
|
|
39151
|
+
"type": {
|
|
39152
|
+
"text": "string"
|
|
39153
|
+
},
|
|
39154
|
+
"default": "'Recently used'",
|
|
39155
|
+
"description": "The heading shown above the recently used items.",
|
|
39156
|
+
"attribute": "recent-heading"
|
|
39157
|
+
},
|
|
38735
39158
|
{
|
|
38736
39159
|
"kind": "field",
|
|
38737
39160
|
"name": "anchor",
|
|
@@ -38770,6 +39193,44 @@
|
|
|
38770
39193
|
"privacy": "private",
|
|
38771
39194
|
"default": "0"
|
|
38772
39195
|
},
|
|
39196
|
+
{
|
|
39197
|
+
"kind": "field",
|
|
39198
|
+
"name": "recentKeys",
|
|
39199
|
+
"type": {
|
|
39200
|
+
"text": "string[]"
|
|
39201
|
+
},
|
|
39202
|
+
"privacy": "private",
|
|
39203
|
+
"default": "[]"
|
|
39204
|
+
},
|
|
39205
|
+
{
|
|
39206
|
+
"kind": "field",
|
|
39207
|
+
"name": "recentCount",
|
|
39208
|
+
"type": {
|
|
39209
|
+
"text": "number"
|
|
39210
|
+
},
|
|
39211
|
+
"privacy": "private",
|
|
39212
|
+
"default": "0",
|
|
39213
|
+
"description": "How many recently used items the last update listed, to spot the list appearing or reordering."
|
|
39214
|
+
},
|
|
39215
|
+
{
|
|
39216
|
+
"kind": "field",
|
|
39217
|
+
"name": "listItems",
|
|
39218
|
+
"type": {
|
|
39219
|
+
"text": "SlashMenuItem[]"
|
|
39220
|
+
},
|
|
39221
|
+
"privacy": "private",
|
|
39222
|
+
"readonly": true
|
|
39223
|
+
},
|
|
39224
|
+
{
|
|
39225
|
+
"kind": "field",
|
|
39226
|
+
"name": "recentItems",
|
|
39227
|
+
"type": {
|
|
39228
|
+
"text": "SlashMenuItem[]"
|
|
39229
|
+
},
|
|
39230
|
+
"privacy": "private",
|
|
39231
|
+
"description": "The remembered items that are in the current list, newest first. Only offered without a query —\nonce the user is searching, the ranked matches are the better answer.",
|
|
39232
|
+
"readonly": true
|
|
39233
|
+
},
|
|
38773
39234
|
{
|
|
38774
39235
|
"kind": "field",
|
|
38775
39236
|
"name": "visibleItems",
|
|
@@ -38796,6 +39257,11 @@
|
|
|
38796
39257
|
"kind": "method",
|
|
38797
39258
|
"name": "hide"
|
|
38798
39259
|
},
|
|
39260
|
+
{
|
|
39261
|
+
"kind": "method",
|
|
39262
|
+
"name": "clearRecent",
|
|
39263
|
+
"description": "Forgets the items remembered under `recent-key`."
|
|
39264
|
+
},
|
|
38799
39265
|
{
|
|
38800
39266
|
"kind": "method",
|
|
38801
39267
|
"name": "setActiveIndex",
|
|
@@ -38910,6 +39376,30 @@
|
|
|
38910
39376
|
"kind": "method",
|
|
38911
39377
|
"name": "renderItems",
|
|
38912
39378
|
"privacy": "private"
|
|
39379
|
+
},
|
|
39380
|
+
{
|
|
39381
|
+
"kind": "method",
|
|
39382
|
+
"name": "renderHint",
|
|
39383
|
+
"privacy": "private",
|
|
39384
|
+
"parameters": [
|
|
39385
|
+
{
|
|
39386
|
+
"name": "keys",
|
|
39387
|
+
"type": {
|
|
39388
|
+
"text": "(TemplateResult | string)[]"
|
|
39389
|
+
}
|
|
39390
|
+
},
|
|
39391
|
+
{
|
|
39392
|
+
"name": "label",
|
|
39393
|
+
"type": {
|
|
39394
|
+
"text": "string"
|
|
39395
|
+
}
|
|
39396
|
+
}
|
|
39397
|
+
]
|
|
39398
|
+
},
|
|
39399
|
+
{
|
|
39400
|
+
"kind": "method",
|
|
39401
|
+
"name": "renderHints",
|
|
39402
|
+
"privacy": "private"
|
|
38913
39403
|
}
|
|
38914
39404
|
],
|
|
38915
39405
|
"events": [
|
|
@@ -38958,7 +39448,7 @@
|
|
|
38958
39448
|
"text": "string"
|
|
38959
39449
|
},
|
|
38960
39450
|
"default": "'Insert'",
|
|
38961
|
-
"description": "The
|
|
39451
|
+
"description": "The name the list is announced by when there is no query.",
|
|
38962
39452
|
"fieldName": "heading"
|
|
38963
39453
|
},
|
|
38964
39454
|
{
|
|
@@ -38988,6 +39478,42 @@
|
|
|
38988
39478
|
"description": "Hides the insertion key (the item's value) normally shown against each item.",
|
|
38989
39479
|
"fieldName": "hideKeys"
|
|
38990
39480
|
},
|
|
39481
|
+
{
|
|
39482
|
+
"name": "hide-hints",
|
|
39483
|
+
"type": {
|
|
39484
|
+
"text": "boolean"
|
|
39485
|
+
},
|
|
39486
|
+
"default": "false",
|
|
39487
|
+
"description": "Hides the pinned footer of keyboard hints.",
|
|
39488
|
+
"fieldName": "hideHints"
|
|
39489
|
+
},
|
|
39490
|
+
{
|
|
39491
|
+
"name": "recent-key",
|
|
39492
|
+
"type": {
|
|
39493
|
+
"text": "string"
|
|
39494
|
+
},
|
|
39495
|
+
"default": "''",
|
|
39496
|
+
"description": "Remembers the items chosen here and lists the most recent of them first, under their own heading.\nThe key scopes the list to where the menu is used, so each place keeps its own history in\n`localStorage`. Leave unset to offer no recently used section.",
|
|
39497
|
+
"fieldName": "recentKey"
|
|
39498
|
+
},
|
|
39499
|
+
{
|
|
39500
|
+
"name": "max-recent",
|
|
39501
|
+
"type": {
|
|
39502
|
+
"text": "number"
|
|
39503
|
+
},
|
|
39504
|
+
"default": "3",
|
|
39505
|
+
"description": "The most recently used items to list.",
|
|
39506
|
+
"fieldName": "maxRecent"
|
|
39507
|
+
},
|
|
39508
|
+
{
|
|
39509
|
+
"name": "recent-heading",
|
|
39510
|
+
"type": {
|
|
39511
|
+
"text": "string"
|
|
39512
|
+
},
|
|
39513
|
+
"default": "'Recently used'",
|
|
39514
|
+
"description": "The heading shown above the recently used items.",
|
|
39515
|
+
"fieldName": "recentHeading"
|
|
39516
|
+
},
|
|
38991
39517
|
{
|
|
38992
39518
|
"name": "placement",
|
|
38993
39519
|
"type": {
|
|
@@ -39015,7 +39541,7 @@
|
|
|
39015
39541
|
"tagNameWithoutPrefix": "slash-menu",
|
|
39016
39542
|
"tagName": "zn-slash-menu",
|
|
39017
39543
|
"customElement": true,
|
|
39018
|
-
"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
|
|
39544
|
+
"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 list - The scrolling list of items.\n * @csspart item - An item in the list.\n * @csspart icon - The chip holding an item's icon.\n * @csspart group-heading - A group heading between items.\n * @csspart divider - The rule closing the recently used section, when the items below it have no heading of their own.\n * @csspart footer - The truncation footer, shown when not every match fits.\n * @csspart hints - The pinned footer of keyboard hints.\n * @csspart hint - A single keyboard hint within the footer.\n * @csspart hint-key - The key shown against a hint.\n *\n * @cssproperty --slash-menu-width - The width of the panel.\n * @cssproperty --slash-menu-border-radius - The corner radius of the panel.\n * @cssproperty --slash-menu-item-border-radius - The corner radius of the items and their icon chips.\n * @cssproperty --slash-menu-max-height - The maximum height of the panel before it scrolls.\n */",
|
|
39019
39545
|
"documentation": "https://zinc.style/components/slash-menu",
|
|
39020
39546
|
"status": "experimental",
|
|
39021
39547
|
"since": "1.1",
|
|
@@ -43109,7 +43635,7 @@
|
|
|
43109
43635
|
"text": "string"
|
|
43110
43636
|
},
|
|
43111
43637
|
"default": "'Insert'",
|
|
43112
|
-
"description": "The
|
|
43638
|
+
"description": "The name the slash menu's list is announced by.",
|
|
43113
43639
|
"attribute": "slash-heading"
|
|
43114
43640
|
},
|
|
43115
43641
|
{
|
|
@@ -43122,6 +43648,16 @@
|
|
|
43122
43648
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
43123
43649
|
"attribute": "slash-hide-keys"
|
|
43124
43650
|
},
|
|
43651
|
+
{
|
|
43652
|
+
"kind": "field",
|
|
43653
|
+
"name": "slashRecentKey",
|
|
43654
|
+
"type": {
|
|
43655
|
+
"text": "string"
|
|
43656
|
+
},
|
|
43657
|
+
"default": "''",
|
|
43658
|
+
"description": "Lists the items most recently chosen here above the rest, remembered in `localStorage` under this\nkey. Share a key between the fields that should share a history; leave unset to offer no such list.",
|
|
43659
|
+
"attribute": "slash-recent-key"
|
|
43660
|
+
},
|
|
43125
43661
|
{
|
|
43126
43662
|
"kind": "field",
|
|
43127
43663
|
"name": "slashItemsProvider",
|
|
@@ -43685,7 +44221,7 @@
|
|
|
43685
44221
|
"text": "string"
|
|
43686
44222
|
},
|
|
43687
44223
|
"default": "'Insert'",
|
|
43688
|
-
"description": "The
|
|
44224
|
+
"description": "The name the slash menu's list is announced by.",
|
|
43689
44225
|
"fieldName": "slashHeading"
|
|
43690
44226
|
},
|
|
43691
44227
|
{
|
|
@@ -43697,6 +44233,15 @@
|
|
|
43697
44233
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
43698
44234
|
"fieldName": "slashHideKeys"
|
|
43699
44235
|
},
|
|
44236
|
+
{
|
|
44237
|
+
"name": "slash-recent-key",
|
|
44238
|
+
"type": {
|
|
44239
|
+
"text": "string"
|
|
44240
|
+
},
|
|
44241
|
+
"default": "''",
|
|
44242
|
+
"description": "Lists the items most recently chosen here above the rest, remembered in `localStorage` under this\nkey. Share a key between the fields that should share a history; leave unset to offer no such list.",
|
|
44243
|
+
"fieldName": "slashRecentKey"
|
|
44244
|
+
},
|
|
43700
44245
|
{
|
|
43701
44246
|
"name": "transparent",
|
|
43702
44247
|
"type": {
|
|
@@ -46977,7 +47522,7 @@
|
|
|
46977
47522
|
"text": "string"
|
|
46978
47523
|
},
|
|
46979
47524
|
"default": "'Insert'",
|
|
46980
|
-
"description": "The
|
|
47525
|
+
"description": "The name the slash menu's list is announced by.",
|
|
46981
47526
|
"attribute": "slash-heading"
|
|
46982
47527
|
},
|
|
46983
47528
|
{
|
|
@@ -46990,6 +47535,16 @@
|
|
|
46990
47535
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
46991
47536
|
"attribute": "slash-hide-keys"
|
|
46992
47537
|
},
|
|
47538
|
+
{
|
|
47539
|
+
"kind": "field",
|
|
47540
|
+
"name": "slashRecentKey",
|
|
47541
|
+
"type": {
|
|
47542
|
+
"text": "string"
|
|
47543
|
+
},
|
|
47544
|
+
"default": "''",
|
|
47545
|
+
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
47546
|
+
"attribute": "slash-recent-key"
|
|
47547
|
+
},
|
|
46993
47548
|
{
|
|
46994
47549
|
"kind": "field",
|
|
46995
47550
|
"name": "slashItemsProvider",
|
|
@@ -47312,7 +47867,7 @@
|
|
|
47312
47867
|
"text": "string"
|
|
47313
47868
|
},
|
|
47314
47869
|
"default": "'Insert'",
|
|
47315
|
-
"description": "The
|
|
47870
|
+
"description": "The name the slash menu's list is announced by.",
|
|
47316
47871
|
"fieldName": "slashHeading"
|
|
47317
47872
|
},
|
|
47318
47873
|
{
|
|
@@ -47324,6 +47879,15 @@
|
|
|
47324
47879
|
"description": "Hides the insertion keys normally shown against the slash menu's items.",
|
|
47325
47880
|
"fieldName": "slashHideKeys"
|
|
47326
47881
|
},
|
|
47882
|
+
{
|
|
47883
|
+
"name": "slash-recent-key",
|
|
47884
|
+
"type": {
|
|
47885
|
+
"text": "string"
|
|
47886
|
+
},
|
|
47887
|
+
"default": "''",
|
|
47888
|
+
"description": "Lists the slash menu items most recently chosen here above the rest, remembered under this key.",
|
|
47889
|
+
"fieldName": "slashRecentKey"
|
|
47890
|
+
},
|
|
47327
47891
|
{
|
|
47328
47892
|
"name": "grouped",
|
|
47329
47893
|
"type": {
|
|
@@ -47626,7 +48190,7 @@
|
|
|
47626
48190
|
"package": {
|
|
47627
48191
|
"name": "@kubex/zinc",
|
|
47628
48192
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
47629
|
-
"version": "1.1.
|
|
48193
|
+
"version": "1.1.96",
|
|
47630
48194
|
"author": "",
|
|
47631
48195
|
"license": "MIT"
|
|
47632
48196
|
}
|