@kubex/zinc 1.1.63 → 1.1.64
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 +928 -3
- package/dist/vscode.html-custom-data.json +47 -0
- package/dist/web-types.json +109 -1
- package/dist/zn.d.ts +152 -0
- package/dist/zn.min.js +523 -418
- package/docs/pages/components/remarkd-editor.md +103 -0
- package/package.json +3 -2
- package/src/components/file/file.component.ts +16 -1
- package/src/components/query-builder/query-builder.component.ts +14 -6
- package/src/components/remarkd-editor/index.ts +12 -0
- package/src/components/remarkd-editor/remarkd-editor.component.ts +752 -0
- package/src/components/remarkd-editor/remarkd-editor.scss +241 -0
- package/src/components/remarkd-editor/remarkd-editor.test.ts +147 -0
- package/src/components/tabs/tabs.component.ts +9 -4
- package/src/components/tabs/tabs.test.ts +42 -1
- package/src/zinc.ts +1 -0
|
@@ -12949,7 +12949,17 @@
|
|
|
12949
12949
|
"name": "formControlController",
|
|
12950
12950
|
"privacy": "private",
|
|
12951
12951
|
"readonly": true,
|
|
12952
|
-
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-change'], value: (el: ZnFile) => el.files })"
|
|
12952
|
+
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-change'], // An explicitly cleared control submits an empty value so the server can // remove the stored upload; an untouched empty control submits nothing. value: (el: ZnFile) => { if (el.files?.length) return el.files; return el.clearedByUser ? '' : undefined; } })"
|
|
12953
|
+
},
|
|
12954
|
+
{
|
|
12955
|
+
"kind": "field",
|
|
12956
|
+
"name": "clearedByUser",
|
|
12957
|
+
"type": {
|
|
12958
|
+
"text": "boolean"
|
|
12959
|
+
},
|
|
12960
|
+
"privacy": "private",
|
|
12961
|
+
"default": "false",
|
|
12962
|
+
"description": "Set when the user clears the control; reset when a file is chosen."
|
|
12953
12963
|
},
|
|
12954
12964
|
{
|
|
12955
12965
|
"kind": "field",
|
|
@@ -29615,6 +29625,15 @@
|
|
|
29615
29625
|
"default": "[]",
|
|
29616
29626
|
"attribute": "show-values"
|
|
29617
29627
|
},
|
|
29628
|
+
{
|
|
29629
|
+
"kind": "field",
|
|
29630
|
+
"name": "_usedFilterIds",
|
|
29631
|
+
"type": {
|
|
29632
|
+
"text": "Set<string>"
|
|
29633
|
+
},
|
|
29634
|
+
"privacy": "private",
|
|
29635
|
+
"readonly": true
|
|
29636
|
+
},
|
|
29618
29637
|
{
|
|
29619
29638
|
"kind": "field",
|
|
29620
29639
|
"name": "validationMessage",
|
|
@@ -29860,7 +29879,7 @@
|
|
|
29860
29879
|
{
|
|
29861
29880
|
"name": "event",
|
|
29862
29881
|
"type": {
|
|
29863
|
-
"text": "Event | {
|
|
29882
|
+
"text": "Event | {\n target: ZnDatepicker | HTMLDivElement\n }"
|
|
29864
29883
|
}
|
|
29865
29884
|
},
|
|
29866
29885
|
{
|
|
@@ -31531,6 +31550,912 @@
|
|
|
31531
31550
|
}
|
|
31532
31551
|
]
|
|
31533
31552
|
},
|
|
31553
|
+
{
|
|
31554
|
+
"kind": "javascript-module",
|
|
31555
|
+
"path": "components/remarkd-editor/remarkd-editor.js",
|
|
31556
|
+
"declarations": [
|
|
31557
|
+
{
|
|
31558
|
+
"kind": "class",
|
|
31559
|
+
"description": "",
|
|
31560
|
+
"name": "ZnRemarkdEditor",
|
|
31561
|
+
"cssParts": [
|
|
31562
|
+
{
|
|
31563
|
+
"description": "The component's base wrapper.",
|
|
31564
|
+
"name": "base"
|
|
31565
|
+
},
|
|
31566
|
+
{
|
|
31567
|
+
"description": "The always-visible block-insert toolbar.",
|
|
31568
|
+
"name": "toolbar"
|
|
31569
|
+
},
|
|
31570
|
+
{
|
|
31571
|
+
"description": "A rendered block wrapper.",
|
|
31572
|
+
"name": "block"
|
|
31573
|
+
},
|
|
31574
|
+
{
|
|
31575
|
+
"description": "The rendered remarkd output of a block.",
|
|
31576
|
+
"name": "rendered"
|
|
31577
|
+
},
|
|
31578
|
+
{
|
|
31579
|
+
"description": "The textarea shown while editing a block.",
|
|
31580
|
+
"name": "input"
|
|
31581
|
+
},
|
|
31582
|
+
{
|
|
31583
|
+
"description": "The context menu opened by typing \"/\" in a block.",
|
|
31584
|
+
"name": "slash-menu"
|
|
31585
|
+
}
|
|
31586
|
+
],
|
|
31587
|
+
"members": [
|
|
31588
|
+
{
|
|
31589
|
+
"kind": "field",
|
|
31590
|
+
"name": "formControlController",
|
|
31591
|
+
"privacy": "private",
|
|
31592
|
+
"readonly": true,
|
|
31593
|
+
"default": "new FormControlController(this, { assumeInteractionOn: ['zn-input', 'zn-change'], })"
|
|
31594
|
+
},
|
|
31595
|
+
{
|
|
31596
|
+
"kind": "field",
|
|
31597
|
+
"name": "editingDraft",
|
|
31598
|
+
"type": {
|
|
31599
|
+
"text": "string"
|
|
31600
|
+
},
|
|
31601
|
+
"privacy": "private",
|
|
31602
|
+
"default": "''"
|
|
31603
|
+
},
|
|
31604
|
+
{
|
|
31605
|
+
"kind": "field",
|
|
31606
|
+
"name": "suppressValueSync",
|
|
31607
|
+
"type": {
|
|
31608
|
+
"text": "boolean"
|
|
31609
|
+
},
|
|
31610
|
+
"privacy": "private",
|
|
31611
|
+
"default": "false"
|
|
31612
|
+
},
|
|
31613
|
+
{
|
|
31614
|
+
"kind": "field",
|
|
31615
|
+
"name": "suppressBlurCommit",
|
|
31616
|
+
"type": {
|
|
31617
|
+
"text": "boolean"
|
|
31618
|
+
},
|
|
31619
|
+
"privacy": "private",
|
|
31620
|
+
"default": "false"
|
|
31621
|
+
},
|
|
31622
|
+
{
|
|
31623
|
+
"kind": "field",
|
|
31624
|
+
"name": "validationInput",
|
|
31625
|
+
"type": {
|
|
31626
|
+
"text": "HTMLTextAreaElement"
|
|
31627
|
+
},
|
|
31628
|
+
"privacy": "private"
|
|
31629
|
+
},
|
|
31630
|
+
{
|
|
31631
|
+
"kind": "field",
|
|
31632
|
+
"name": "blocks",
|
|
31633
|
+
"type": {
|
|
31634
|
+
"text": "string[]"
|
|
31635
|
+
},
|
|
31636
|
+
"privacy": "private",
|
|
31637
|
+
"default": "[]"
|
|
31638
|
+
},
|
|
31639
|
+
{
|
|
31640
|
+
"kind": "field",
|
|
31641
|
+
"name": "editingIndex",
|
|
31642
|
+
"type": {
|
|
31643
|
+
"text": "number | null"
|
|
31644
|
+
},
|
|
31645
|
+
"privacy": "private",
|
|
31646
|
+
"default": "null"
|
|
31647
|
+
},
|
|
31648
|
+
{
|
|
31649
|
+
"kind": "field",
|
|
31650
|
+
"name": "slashMenuOpen",
|
|
31651
|
+
"type": {
|
|
31652
|
+
"text": "boolean"
|
|
31653
|
+
},
|
|
31654
|
+
"privacy": "private",
|
|
31655
|
+
"default": "false"
|
|
31656
|
+
},
|
|
31657
|
+
{
|
|
31658
|
+
"kind": "field",
|
|
31659
|
+
"name": "slashQuery",
|
|
31660
|
+
"type": {
|
|
31661
|
+
"text": "string"
|
|
31662
|
+
},
|
|
31663
|
+
"privacy": "private",
|
|
31664
|
+
"default": "''"
|
|
31665
|
+
},
|
|
31666
|
+
{
|
|
31667
|
+
"kind": "field",
|
|
31668
|
+
"name": "slashActiveIndex",
|
|
31669
|
+
"type": {
|
|
31670
|
+
"text": "number"
|
|
31671
|
+
},
|
|
31672
|
+
"privacy": "private",
|
|
31673
|
+
"default": "0"
|
|
31674
|
+
},
|
|
31675
|
+
{
|
|
31676
|
+
"kind": "field",
|
|
31677
|
+
"name": "imageDialogOpen",
|
|
31678
|
+
"type": {
|
|
31679
|
+
"text": "boolean"
|
|
31680
|
+
},
|
|
31681
|
+
"privacy": "private",
|
|
31682
|
+
"default": "false"
|
|
31683
|
+
},
|
|
31684
|
+
{
|
|
31685
|
+
"kind": "field",
|
|
31686
|
+
"name": "dropIndicator",
|
|
31687
|
+
"type": {
|
|
31688
|
+
"text": "number | null"
|
|
31689
|
+
},
|
|
31690
|
+
"privacy": "private",
|
|
31691
|
+
"default": "null"
|
|
31692
|
+
},
|
|
31693
|
+
{
|
|
31694
|
+
"kind": "field",
|
|
31695
|
+
"name": "dragIndex",
|
|
31696
|
+
"type": {
|
|
31697
|
+
"text": "number | null"
|
|
31698
|
+
},
|
|
31699
|
+
"privacy": "private",
|
|
31700
|
+
"default": "null"
|
|
31701
|
+
},
|
|
31702
|
+
{
|
|
31703
|
+
"kind": "field",
|
|
31704
|
+
"name": "editShell",
|
|
31705
|
+
"type": {
|
|
31706
|
+
"text": "string"
|
|
31707
|
+
},
|
|
31708
|
+
"privacy": "private",
|
|
31709
|
+
"default": "''"
|
|
31710
|
+
},
|
|
31711
|
+
{
|
|
31712
|
+
"kind": "field",
|
|
31713
|
+
"name": "imageInsertIndex",
|
|
31714
|
+
"type": {
|
|
31715
|
+
"text": "number"
|
|
31716
|
+
},
|
|
31717
|
+
"privacy": "private",
|
|
31718
|
+
"default": "0"
|
|
31719
|
+
},
|
|
31720
|
+
{
|
|
31721
|
+
"kind": "field",
|
|
31722
|
+
"name": "pendingDragHandle",
|
|
31723
|
+
"type": {
|
|
31724
|
+
"text": "HTMLElement | null"
|
|
31725
|
+
},
|
|
31726
|
+
"privacy": "private",
|
|
31727
|
+
"default": "null"
|
|
31728
|
+
},
|
|
31729
|
+
{
|
|
31730
|
+
"kind": "field",
|
|
31731
|
+
"name": "dragStartX",
|
|
31732
|
+
"type": {
|
|
31733
|
+
"text": "number"
|
|
31734
|
+
},
|
|
31735
|
+
"privacy": "private",
|
|
31736
|
+
"default": "0"
|
|
31737
|
+
},
|
|
31738
|
+
{
|
|
31739
|
+
"kind": "field",
|
|
31740
|
+
"name": "dragStartY",
|
|
31741
|
+
"type": {
|
|
31742
|
+
"text": "number"
|
|
31743
|
+
},
|
|
31744
|
+
"privacy": "private",
|
|
31745
|
+
"default": "0"
|
|
31746
|
+
},
|
|
31747
|
+
{
|
|
31748
|
+
"kind": "field",
|
|
31749
|
+
"name": "dragGhost",
|
|
31750
|
+
"type": {
|
|
31751
|
+
"text": "HTMLElement | null"
|
|
31752
|
+
},
|
|
31753
|
+
"privacy": "private",
|
|
31754
|
+
"default": "null"
|
|
31755
|
+
},
|
|
31756
|
+
{
|
|
31757
|
+
"kind": "field",
|
|
31758
|
+
"name": "name",
|
|
31759
|
+
"type": {
|
|
31760
|
+
"text": "string"
|
|
31761
|
+
},
|
|
31762
|
+
"default": "''",
|
|
31763
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
31764
|
+
"attribute": "name"
|
|
31765
|
+
},
|
|
31766
|
+
{
|
|
31767
|
+
"kind": "field",
|
|
31768
|
+
"name": "value",
|
|
31769
|
+
"type": {
|
|
31770
|
+
"text": "string"
|
|
31771
|
+
},
|
|
31772
|
+
"default": "''",
|
|
31773
|
+
"description": "The current remarkd source.",
|
|
31774
|
+
"attribute": "value"
|
|
31775
|
+
},
|
|
31776
|
+
{
|
|
31777
|
+
"kind": "field",
|
|
31778
|
+
"name": "defaultValue",
|
|
31779
|
+
"type": {
|
|
31780
|
+
"text": "string"
|
|
31781
|
+
},
|
|
31782
|
+
"default": "''",
|
|
31783
|
+
"description": "The default value — used when resetting the form."
|
|
31784
|
+
},
|
|
31785
|
+
{
|
|
31786
|
+
"kind": "field",
|
|
31787
|
+
"name": "placeholder",
|
|
31788
|
+
"type": {
|
|
31789
|
+
"text": "string"
|
|
31790
|
+
},
|
|
31791
|
+
"default": "'Type something…'",
|
|
31792
|
+
"description": "Placeholder shown when the document is empty.",
|
|
31793
|
+
"attribute": "placeholder"
|
|
31794
|
+
},
|
|
31795
|
+
{
|
|
31796
|
+
"kind": "field",
|
|
31797
|
+
"name": "attachmentUrl",
|
|
31798
|
+
"type": {
|
|
31799
|
+
"text": "string"
|
|
31800
|
+
},
|
|
31801
|
+
"default": "''",
|
|
31802
|
+
"description": "Endpoint for image uploads. Posting the file metadata here must return\n`{uploadPath, uploadUrl}`; the file is then PUT to `uploadUrl` and\n`uploadPath` is inserted into the document. When unset, adding an image\nprompts for a URL instead.",
|
|
31803
|
+
"attribute": "attachment-url"
|
|
31804
|
+
},
|
|
31805
|
+
{
|
|
31806
|
+
"kind": "field",
|
|
31807
|
+
"name": "required",
|
|
31808
|
+
"type": {
|
|
31809
|
+
"text": "boolean"
|
|
31810
|
+
},
|
|
31811
|
+
"default": "false",
|
|
31812
|
+
"description": "Makes the editor required for form submission.",
|
|
31813
|
+
"attribute": "required",
|
|
31814
|
+
"reflects": true
|
|
31815
|
+
},
|
|
31816
|
+
{
|
|
31817
|
+
"kind": "field",
|
|
31818
|
+
"name": "readonly",
|
|
31819
|
+
"type": {
|
|
31820
|
+
"text": "boolean"
|
|
31821
|
+
},
|
|
31822
|
+
"default": "false",
|
|
31823
|
+
"description": "Makes the editor read-only.",
|
|
31824
|
+
"attribute": "readonly",
|
|
31825
|
+
"reflects": true
|
|
31826
|
+
},
|
|
31827
|
+
{
|
|
31828
|
+
"kind": "field",
|
|
31829
|
+
"name": "disabled",
|
|
31830
|
+
"type": {
|
|
31831
|
+
"text": "boolean"
|
|
31832
|
+
},
|
|
31833
|
+
"default": "false",
|
|
31834
|
+
"description": "Disables the editor.",
|
|
31835
|
+
"attribute": "disabled",
|
|
31836
|
+
"reflects": true
|
|
31837
|
+
},
|
|
31838
|
+
{
|
|
31839
|
+
"kind": "field",
|
|
31840
|
+
"name": "validity",
|
|
31841
|
+
"type": {
|
|
31842
|
+
"text": "ValidityState"
|
|
31843
|
+
},
|
|
31844
|
+
"readonly": true
|
|
31845
|
+
},
|
|
31846
|
+
{
|
|
31847
|
+
"kind": "field",
|
|
31848
|
+
"name": "validationMessage",
|
|
31849
|
+
"type": {
|
|
31850
|
+
"text": "string"
|
|
31851
|
+
},
|
|
31852
|
+
"readonly": true
|
|
31853
|
+
},
|
|
31854
|
+
{
|
|
31855
|
+
"kind": "method",
|
|
31856
|
+
"name": "checkValidity",
|
|
31857
|
+
"return": {
|
|
31858
|
+
"type": {
|
|
31859
|
+
"text": "boolean"
|
|
31860
|
+
}
|
|
31861
|
+
}
|
|
31862
|
+
},
|
|
31863
|
+
{
|
|
31864
|
+
"kind": "method",
|
|
31865
|
+
"name": "getForm",
|
|
31866
|
+
"return": {
|
|
31867
|
+
"type": {
|
|
31868
|
+
"text": "HTMLFormElement | null"
|
|
31869
|
+
}
|
|
31870
|
+
}
|
|
31871
|
+
},
|
|
31872
|
+
{
|
|
31873
|
+
"kind": "method",
|
|
31874
|
+
"name": "reportValidity",
|
|
31875
|
+
"return": {
|
|
31876
|
+
"type": {
|
|
31877
|
+
"text": "boolean"
|
|
31878
|
+
}
|
|
31879
|
+
}
|
|
31880
|
+
},
|
|
31881
|
+
{
|
|
31882
|
+
"kind": "method",
|
|
31883
|
+
"name": "setCustomValidity",
|
|
31884
|
+
"return": {
|
|
31885
|
+
"type": {
|
|
31886
|
+
"text": "void"
|
|
31887
|
+
}
|
|
31888
|
+
},
|
|
31889
|
+
"parameters": [
|
|
31890
|
+
{
|
|
31891
|
+
"name": "message",
|
|
31892
|
+
"type": {
|
|
31893
|
+
"text": "string"
|
|
31894
|
+
}
|
|
31895
|
+
}
|
|
31896
|
+
]
|
|
31897
|
+
},
|
|
31898
|
+
{
|
|
31899
|
+
"kind": "method",
|
|
31900
|
+
"name": "focus",
|
|
31901
|
+
"description": "Starts editing the first block, or a new block if the document is empty."
|
|
31902
|
+
},
|
|
31903
|
+
{
|
|
31904
|
+
"kind": "method",
|
|
31905
|
+
"name": "blur",
|
|
31906
|
+
"description": "Commits any in-progress block edit."
|
|
31907
|
+
},
|
|
31908
|
+
{
|
|
31909
|
+
"kind": "method",
|
|
31910
|
+
"name": "handleValueChange"
|
|
31911
|
+
},
|
|
31912
|
+
{
|
|
31913
|
+
"kind": "method",
|
|
31914
|
+
"name": "splitBlocks",
|
|
31915
|
+
"privacy": "private",
|
|
31916
|
+
"return": {
|
|
31917
|
+
"type": {
|
|
31918
|
+
"text": "string[]"
|
|
31919
|
+
}
|
|
31920
|
+
},
|
|
31921
|
+
"parameters": [
|
|
31922
|
+
{
|
|
31923
|
+
"name": "source",
|
|
31924
|
+
"type": {
|
|
31925
|
+
"text": "string"
|
|
31926
|
+
}
|
|
31927
|
+
}
|
|
31928
|
+
],
|
|
31929
|
+
"description": "Splits remarkd source into blocks on blank lines, keeping fenced /\ndelimited containers (``` ==== !!!! .... ----) as single blocks."
|
|
31930
|
+
},
|
|
31931
|
+
{
|
|
31932
|
+
"kind": "method",
|
|
31933
|
+
"name": "fenceMarker",
|
|
31934
|
+
"privacy": "private",
|
|
31935
|
+
"return": {
|
|
31936
|
+
"type": {
|
|
31937
|
+
"text": "string | null"
|
|
31938
|
+
}
|
|
31939
|
+
},
|
|
31940
|
+
"parameters": [
|
|
31941
|
+
{
|
|
31942
|
+
"name": "line",
|
|
31943
|
+
"type": {
|
|
31944
|
+
"text": "string"
|
|
31945
|
+
}
|
|
31946
|
+
}
|
|
31947
|
+
]
|
|
31948
|
+
},
|
|
31949
|
+
{
|
|
31950
|
+
"kind": "method",
|
|
31951
|
+
"name": "closesFence",
|
|
31952
|
+
"privacy": "private",
|
|
31953
|
+
"return": {
|
|
31954
|
+
"type": {
|
|
31955
|
+
"text": "boolean"
|
|
31956
|
+
}
|
|
31957
|
+
},
|
|
31958
|
+
"parameters": [
|
|
31959
|
+
{
|
|
31960
|
+
"name": "line",
|
|
31961
|
+
"type": {
|
|
31962
|
+
"text": "string"
|
|
31963
|
+
}
|
|
31964
|
+
},
|
|
31965
|
+
{
|
|
31966
|
+
"name": "fence",
|
|
31967
|
+
"type": {
|
|
31968
|
+
"text": "string"
|
|
31969
|
+
}
|
|
31970
|
+
}
|
|
31971
|
+
]
|
|
31972
|
+
},
|
|
31973
|
+
{
|
|
31974
|
+
"kind": "method",
|
|
31975
|
+
"name": "updateBlocks",
|
|
31976
|
+
"privacy": "private",
|
|
31977
|
+
"parameters": [
|
|
31978
|
+
{
|
|
31979
|
+
"name": "blocks",
|
|
31980
|
+
"type": {
|
|
31981
|
+
"text": "string[]"
|
|
31982
|
+
}
|
|
31983
|
+
}
|
|
31984
|
+
]
|
|
31985
|
+
},
|
|
31986
|
+
{
|
|
31987
|
+
"kind": "method",
|
|
31988
|
+
"name": "handleRenderedClick",
|
|
31989
|
+
"privacy": "private",
|
|
31990
|
+
"parameters": [
|
|
31991
|
+
{
|
|
31992
|
+
"name": "e",
|
|
31993
|
+
"type": {
|
|
31994
|
+
"text": "MouseEvent"
|
|
31995
|
+
}
|
|
31996
|
+
},
|
|
31997
|
+
{
|
|
31998
|
+
"name": "index",
|
|
31999
|
+
"type": {
|
|
32000
|
+
"text": "number"
|
|
32001
|
+
}
|
|
32002
|
+
}
|
|
32003
|
+
]
|
|
32004
|
+
},
|
|
32005
|
+
{
|
|
32006
|
+
"kind": "method",
|
|
32007
|
+
"name": "toggleCheckbox",
|
|
32008
|
+
"privacy": "private",
|
|
32009
|
+
"parameters": [
|
|
32010
|
+
{
|
|
32011
|
+
"name": "index",
|
|
32012
|
+
"type": {
|
|
32013
|
+
"text": "number"
|
|
32014
|
+
}
|
|
32015
|
+
},
|
|
32016
|
+
{
|
|
32017
|
+
"name": "checkbox",
|
|
32018
|
+
"type": {
|
|
32019
|
+
"text": "HTMLInputElement"
|
|
32020
|
+
}
|
|
32021
|
+
}
|
|
32022
|
+
]
|
|
32023
|
+
},
|
|
32024
|
+
{
|
|
32025
|
+
"kind": "method",
|
|
32026
|
+
"name": "startEdit",
|
|
32027
|
+
"privacy": "private",
|
|
32028
|
+
"parameters": [
|
|
32029
|
+
{
|
|
32030
|
+
"name": "index",
|
|
32031
|
+
"type": {
|
|
32032
|
+
"text": "number"
|
|
32033
|
+
}
|
|
32034
|
+
},
|
|
32035
|
+
{
|
|
32036
|
+
"name": "draft",
|
|
32037
|
+
"optional": true,
|
|
32038
|
+
"type": {
|
|
32039
|
+
"text": "string"
|
|
32040
|
+
}
|
|
32041
|
+
}
|
|
32042
|
+
]
|
|
32043
|
+
},
|
|
32044
|
+
{
|
|
32045
|
+
"kind": "method",
|
|
32046
|
+
"name": "computeEditShell",
|
|
32047
|
+
"privacy": "private",
|
|
32048
|
+
"return": {
|
|
32049
|
+
"type": {
|
|
32050
|
+
"text": "string"
|
|
32051
|
+
}
|
|
32052
|
+
},
|
|
32053
|
+
"parameters": [
|
|
32054
|
+
{
|
|
32055
|
+
"name": "draft",
|
|
32056
|
+
"type": {
|
|
32057
|
+
"text": "string"
|
|
32058
|
+
}
|
|
32059
|
+
}
|
|
32060
|
+
],
|
|
32061
|
+
"description": "The remarkd chrome the editing block should keep, derived from its first\nline — so a NOTE still looks like a note while its source is edited."
|
|
32062
|
+
},
|
|
32063
|
+
{
|
|
32064
|
+
"kind": "method",
|
|
32065
|
+
"name": "focusInput",
|
|
32066
|
+
"privacy": "private"
|
|
32067
|
+
},
|
|
32068
|
+
{
|
|
32069
|
+
"kind": "method",
|
|
32070
|
+
"name": "addBlockAt",
|
|
32071
|
+
"privacy": "private",
|
|
32072
|
+
"parameters": [
|
|
32073
|
+
{
|
|
32074
|
+
"name": "index",
|
|
32075
|
+
"type": {
|
|
32076
|
+
"text": "number"
|
|
32077
|
+
}
|
|
32078
|
+
},
|
|
32079
|
+
{
|
|
32080
|
+
"name": "content",
|
|
32081
|
+
"type": {
|
|
32082
|
+
"text": "string"
|
|
32083
|
+
}
|
|
32084
|
+
}
|
|
32085
|
+
]
|
|
32086
|
+
},
|
|
32087
|
+
{
|
|
32088
|
+
"kind": "method",
|
|
32089
|
+
"name": "insertDraftBlock",
|
|
32090
|
+
"privacy": "private",
|
|
32091
|
+
"parameters": [
|
|
32092
|
+
{
|
|
32093
|
+
"name": "index",
|
|
32094
|
+
"type": {
|
|
32095
|
+
"text": "number"
|
|
32096
|
+
}
|
|
32097
|
+
},
|
|
32098
|
+
{
|
|
32099
|
+
"name": "prefill",
|
|
32100
|
+
"default": "''"
|
|
32101
|
+
}
|
|
32102
|
+
],
|
|
32103
|
+
"description": "Inserts a draft block — committed (or dropped, if left empty) on blur."
|
|
32104
|
+
},
|
|
32105
|
+
{
|
|
32106
|
+
"kind": "field",
|
|
32107
|
+
"name": "handleEditBlur",
|
|
32108
|
+
"privacy": "private",
|
|
32109
|
+
"description": "Blur handler for the editing textarea. Re-renders that replace the\nfocused textarea (e.g. Shift+Enter committing and opening the next\nblock) fire blur mid-transition — `suppressBlurCommit` masks those."
|
|
32110
|
+
},
|
|
32111
|
+
{
|
|
32112
|
+
"kind": "field",
|
|
32113
|
+
"name": "commitEdit",
|
|
32114
|
+
"privacy": "private",
|
|
32115
|
+
"description": "Commits the in-progress edit; returns the index after the committed parts."
|
|
32116
|
+
},
|
|
32117
|
+
{
|
|
32118
|
+
"kind": "field",
|
|
32119
|
+
"name": "filteredSlashItems",
|
|
32120
|
+
"type": {
|
|
32121
|
+
"text": "BlockType[]"
|
|
32122
|
+
},
|
|
32123
|
+
"privacy": "private",
|
|
32124
|
+
"readonly": true
|
|
32125
|
+
},
|
|
32126
|
+
{
|
|
32127
|
+
"kind": "field",
|
|
32128
|
+
"name": "handleDraftInput",
|
|
32129
|
+
"privacy": "private"
|
|
32130
|
+
},
|
|
32131
|
+
{
|
|
32132
|
+
"kind": "field",
|
|
32133
|
+
"name": "handleEditKeydown",
|
|
32134
|
+
"privacy": "private"
|
|
32135
|
+
},
|
|
32136
|
+
{
|
|
32137
|
+
"kind": "method",
|
|
32138
|
+
"name": "applySlashItem",
|
|
32139
|
+
"privacy": "private",
|
|
32140
|
+
"parameters": [
|
|
32141
|
+
{
|
|
32142
|
+
"name": "item",
|
|
32143
|
+
"type": {
|
|
32144
|
+
"text": "BlockType"
|
|
32145
|
+
}
|
|
32146
|
+
}
|
|
32147
|
+
]
|
|
32148
|
+
},
|
|
32149
|
+
{
|
|
32150
|
+
"kind": "field",
|
|
32151
|
+
"name": "handleEditPaste",
|
|
32152
|
+
"privacy": "private"
|
|
32153
|
+
},
|
|
32154
|
+
{
|
|
32155
|
+
"kind": "field",
|
|
32156
|
+
"name": "handleDragOver",
|
|
32157
|
+
"privacy": "private"
|
|
32158
|
+
},
|
|
32159
|
+
{
|
|
32160
|
+
"kind": "field",
|
|
32161
|
+
"name": "handleDrop",
|
|
32162
|
+
"privacy": "private"
|
|
32163
|
+
},
|
|
32164
|
+
{
|
|
32165
|
+
"kind": "method",
|
|
32166
|
+
"name": "insertionIndexFromY",
|
|
32167
|
+
"privacy": "private",
|
|
32168
|
+
"return": {
|
|
32169
|
+
"type": {
|
|
32170
|
+
"text": "number"
|
|
32171
|
+
}
|
|
32172
|
+
},
|
|
32173
|
+
"parameters": [
|
|
32174
|
+
{
|
|
32175
|
+
"name": "y",
|
|
32176
|
+
"type": {
|
|
32177
|
+
"text": "number"
|
|
32178
|
+
}
|
|
32179
|
+
}
|
|
32180
|
+
],
|
|
32181
|
+
"description": "The insertion index a drop at `y` maps to, from the rendered block positions."
|
|
32182
|
+
},
|
|
32183
|
+
{
|
|
32184
|
+
"kind": "field",
|
|
32185
|
+
"name": "handleHandlePointerDown",
|
|
32186
|
+
"privacy": "private"
|
|
32187
|
+
},
|
|
32188
|
+
{
|
|
32189
|
+
"kind": "field",
|
|
32190
|
+
"name": "handleDragPointerMove",
|
|
32191
|
+
"privacy": "private"
|
|
32192
|
+
},
|
|
32193
|
+
{
|
|
32194
|
+
"kind": "field",
|
|
32195
|
+
"name": "handleDragPointerUp",
|
|
32196
|
+
"privacy": "private"
|
|
32197
|
+
},
|
|
32198
|
+
{
|
|
32199
|
+
"kind": "field",
|
|
32200
|
+
"name": "cancelDrag",
|
|
32201
|
+
"privacy": "private"
|
|
32202
|
+
},
|
|
32203
|
+
{
|
|
32204
|
+
"kind": "method",
|
|
32205
|
+
"name": "createDragGhost",
|
|
32206
|
+
"privacy": "private",
|
|
32207
|
+
"parameters": [
|
|
32208
|
+
{
|
|
32209
|
+
"name": "index",
|
|
32210
|
+
"type": {
|
|
32211
|
+
"text": "number"
|
|
32212
|
+
}
|
|
32213
|
+
}
|
|
32214
|
+
]
|
|
32215
|
+
},
|
|
32216
|
+
{
|
|
32217
|
+
"kind": "method",
|
|
32218
|
+
"name": "moveDragGhost",
|
|
32219
|
+
"privacy": "private",
|
|
32220
|
+
"parameters": [
|
|
32221
|
+
{
|
|
32222
|
+
"name": "x",
|
|
32223
|
+
"type": {
|
|
32224
|
+
"text": "number"
|
|
32225
|
+
}
|
|
32226
|
+
},
|
|
32227
|
+
{
|
|
32228
|
+
"name": "y",
|
|
32229
|
+
"type": {
|
|
32230
|
+
"text": "number"
|
|
32231
|
+
}
|
|
32232
|
+
}
|
|
32233
|
+
]
|
|
32234
|
+
},
|
|
32235
|
+
{
|
|
32236
|
+
"kind": "method",
|
|
32237
|
+
"name": "pickImage",
|
|
32238
|
+
"privacy": "private",
|
|
32239
|
+
"parameters": [
|
|
32240
|
+
{
|
|
32241
|
+
"name": "index",
|
|
32242
|
+
"type": {
|
|
32243
|
+
"text": "number"
|
|
32244
|
+
}
|
|
32245
|
+
}
|
|
32246
|
+
]
|
|
32247
|
+
},
|
|
32248
|
+
{
|
|
32249
|
+
"kind": "field",
|
|
32250
|
+
"name": "handleImageDialogClose",
|
|
32251
|
+
"privacy": "private"
|
|
32252
|
+
},
|
|
32253
|
+
{
|
|
32254
|
+
"kind": "field",
|
|
32255
|
+
"name": "handleImageInsert",
|
|
32256
|
+
"privacy": "private"
|
|
32257
|
+
},
|
|
32258
|
+
{
|
|
32259
|
+
"kind": "method",
|
|
32260
|
+
"name": "insertImage",
|
|
32261
|
+
"privacy": "private",
|
|
32262
|
+
"parameters": [
|
|
32263
|
+
{
|
|
32264
|
+
"name": "file",
|
|
32265
|
+
"type": {
|
|
32266
|
+
"text": "File"
|
|
32267
|
+
}
|
|
32268
|
+
},
|
|
32269
|
+
{
|
|
32270
|
+
"name": "index",
|
|
32271
|
+
"type": {
|
|
32272
|
+
"text": "number"
|
|
32273
|
+
}
|
|
32274
|
+
}
|
|
32275
|
+
]
|
|
32276
|
+
},
|
|
32277
|
+
{
|
|
32278
|
+
"kind": "method",
|
|
32279
|
+
"name": "uploadImage",
|
|
32280
|
+
"privacy": "private",
|
|
32281
|
+
"return": {
|
|
32282
|
+
"type": {
|
|
32283
|
+
"text": "Promise<string>"
|
|
32284
|
+
}
|
|
32285
|
+
},
|
|
32286
|
+
"parameters": [
|
|
32287
|
+
{
|
|
32288
|
+
"name": "file",
|
|
32289
|
+
"type": {
|
|
32290
|
+
"text": "File"
|
|
32291
|
+
}
|
|
32292
|
+
}
|
|
32293
|
+
]
|
|
32294
|
+
},
|
|
32295
|
+
{
|
|
32296
|
+
"kind": "method",
|
|
32297
|
+
"name": "autosize",
|
|
32298
|
+
"privacy": "private",
|
|
32299
|
+
"parameters": [
|
|
32300
|
+
{
|
|
32301
|
+
"name": "input",
|
|
32302
|
+
"type": {
|
|
32303
|
+
"text": "HTMLTextAreaElement"
|
|
32304
|
+
}
|
|
32305
|
+
}
|
|
32306
|
+
]
|
|
32307
|
+
},
|
|
32308
|
+
{
|
|
32309
|
+
"kind": "method",
|
|
32310
|
+
"name": "handleToolbarInsert",
|
|
32311
|
+
"privacy": "private",
|
|
32312
|
+
"parameters": [
|
|
32313
|
+
{
|
|
32314
|
+
"name": "item",
|
|
32315
|
+
"type": {
|
|
32316
|
+
"text": "BlockType"
|
|
32317
|
+
}
|
|
32318
|
+
}
|
|
32319
|
+
]
|
|
32320
|
+
},
|
|
32321
|
+
{
|
|
32322
|
+
"kind": "method",
|
|
32323
|
+
"name": "renderSlashMenu",
|
|
32324
|
+
"privacy": "private"
|
|
32325
|
+
},
|
|
32326
|
+
{
|
|
32327
|
+
"kind": "method",
|
|
32328
|
+
"name": "renderBlock",
|
|
32329
|
+
"privacy": "private",
|
|
32330
|
+
"parameters": [
|
|
32331
|
+
{
|
|
32332
|
+
"name": "block",
|
|
32333
|
+
"type": {
|
|
32334
|
+
"text": "string"
|
|
32335
|
+
}
|
|
32336
|
+
},
|
|
32337
|
+
{
|
|
32338
|
+
"name": "index",
|
|
32339
|
+
"type": {
|
|
32340
|
+
"text": "number"
|
|
32341
|
+
}
|
|
32342
|
+
}
|
|
32343
|
+
]
|
|
32344
|
+
},
|
|
32345
|
+
{
|
|
32346
|
+
"kind": "method",
|
|
32347
|
+
"name": "renderImageDialog",
|
|
32348
|
+
"privacy": "private"
|
|
32349
|
+
}
|
|
32350
|
+
],
|
|
32351
|
+
"events": [
|
|
32352
|
+
{
|
|
32353
|
+
"description": "Emitted on each keystroke while editing a block.",
|
|
32354
|
+
"name": "zn-input"
|
|
32355
|
+
},
|
|
32356
|
+
{
|
|
32357
|
+
"description": "Emitted when a block edit is committed and the value changes.",
|
|
32358
|
+
"name": "zn-change"
|
|
32359
|
+
}
|
|
32360
|
+
],
|
|
32361
|
+
"attributes": [
|
|
32362
|
+
{
|
|
32363
|
+
"name": "name",
|
|
32364
|
+
"type": {
|
|
32365
|
+
"text": "string"
|
|
32366
|
+
},
|
|
32367
|
+
"default": "''",
|
|
32368
|
+
"description": "The name of the control, submitted as part of form data.",
|
|
32369
|
+
"fieldName": "name"
|
|
32370
|
+
},
|
|
32371
|
+
{
|
|
32372
|
+
"name": "value",
|
|
32373
|
+
"type": {
|
|
32374
|
+
"text": "string"
|
|
32375
|
+
},
|
|
32376
|
+
"default": "''",
|
|
32377
|
+
"description": "The current remarkd source.",
|
|
32378
|
+
"fieldName": "value"
|
|
32379
|
+
},
|
|
32380
|
+
{
|
|
32381
|
+
"name": "placeholder",
|
|
32382
|
+
"type": {
|
|
32383
|
+
"text": "string"
|
|
32384
|
+
},
|
|
32385
|
+
"default": "'Type something…'",
|
|
32386
|
+
"description": "Placeholder shown when the document is empty.",
|
|
32387
|
+
"fieldName": "placeholder"
|
|
32388
|
+
},
|
|
32389
|
+
{
|
|
32390
|
+
"name": "attachment-url",
|
|
32391
|
+
"type": {
|
|
32392
|
+
"text": "string"
|
|
32393
|
+
},
|
|
32394
|
+
"default": "''",
|
|
32395
|
+
"description": "Endpoint for image uploads. Posting the file metadata here must return\n`{uploadPath, uploadUrl}`; the file is then PUT to `uploadUrl` and\n`uploadPath` is inserted into the document. When unset, adding an image\nprompts for a URL instead.",
|
|
32396
|
+
"fieldName": "attachmentUrl"
|
|
32397
|
+
},
|
|
32398
|
+
{
|
|
32399
|
+
"name": "required",
|
|
32400
|
+
"type": {
|
|
32401
|
+
"text": "boolean"
|
|
32402
|
+
},
|
|
32403
|
+
"default": "false",
|
|
32404
|
+
"description": "Makes the editor required for form submission.",
|
|
32405
|
+
"fieldName": "required"
|
|
32406
|
+
},
|
|
32407
|
+
{
|
|
32408
|
+
"name": "readonly",
|
|
32409
|
+
"type": {
|
|
32410
|
+
"text": "boolean"
|
|
32411
|
+
},
|
|
32412
|
+
"default": "false",
|
|
32413
|
+
"description": "Makes the editor read-only.",
|
|
32414
|
+
"fieldName": "readonly"
|
|
32415
|
+
},
|
|
32416
|
+
{
|
|
32417
|
+
"name": "disabled",
|
|
32418
|
+
"type": {
|
|
32419
|
+
"text": "boolean"
|
|
32420
|
+
},
|
|
32421
|
+
"default": "false",
|
|
32422
|
+
"description": "Disables the editor.",
|
|
32423
|
+
"fieldName": "disabled"
|
|
32424
|
+
}
|
|
32425
|
+
],
|
|
32426
|
+
"superclass": {
|
|
32427
|
+
"name": "ZincElement",
|
|
32428
|
+
"module": "/src/internal/zinc-element"
|
|
32429
|
+
},
|
|
32430
|
+
"summary": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.",
|
|
32431
|
+
"tagNameWithoutPrefix": "remarkd-editor",
|
|
32432
|
+
"tagName": "zn-remarkd-editor",
|
|
32433
|
+
"customElement": true,
|
|
32434
|
+
"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-dialog\n * @dependency zn-file\n * @dependency zn-input\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 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 slash-menu - The context menu opened by typing \"/\" in a block.\n */",
|
|
32435
|
+
"documentation": "https://zinc.style/components/remarkd-editor",
|
|
32436
|
+
"status": "experimental",
|
|
32437
|
+
"since": "1.0",
|
|
32438
|
+
"dependencies": [
|
|
32439
|
+
"zn-button",
|
|
32440
|
+
"zn-button-group",
|
|
32441
|
+
"zn-icon",
|
|
32442
|
+
"zn-dialog",
|
|
32443
|
+
"zn-file",
|
|
32444
|
+
"zn-input"
|
|
32445
|
+
]
|
|
32446
|
+
}
|
|
32447
|
+
],
|
|
32448
|
+
"exports": [
|
|
32449
|
+
{
|
|
32450
|
+
"kind": "js",
|
|
32451
|
+
"name": "default",
|
|
32452
|
+
"declaration": {
|
|
32453
|
+
"name": "ZnRemarkdEditor",
|
|
32454
|
+
"module": "components/remarkd-editor/remarkd-editor.js"
|
|
32455
|
+
}
|
|
32456
|
+
}
|
|
32457
|
+
]
|
|
32458
|
+
},
|
|
31534
32459
|
{
|
|
31535
32460
|
"kind": "javascript-module",
|
|
31536
32461
|
"path": "components/reveal/reveal.js",
|
|
@@ -41157,7 +42082,7 @@
|
|
|
41157
42082
|
"package": {
|
|
41158
42083
|
"name": "@kubex/zinc",
|
|
41159
42084
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
41160
|
-
"version": "1.1.
|
|
42085
|
+
"version": "1.1.64",
|
|
41161
42086
|
"author": "",
|
|
41162
42087
|
"license": "MIT"
|
|
41163
42088
|
}
|