@kubex/zinc 1.0.104 → 1.0.105
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 +366 -7
- package/dist/vscode.html-custom-data.json +20 -2
- package/dist/web-types.json +44 -4
- package/dist/zn.d.ts +3 -3
- package/dist/zn.min.js +123 -103
- package/package.json +1 -1
- package/src/components/markdown-editor/markdown-editor.component.ts +107 -64
- package/src/components/markdown-editor/markdown-editor.scss +23 -24
|
@@ -16340,7 +16340,11 @@
|
|
|
16340
16340
|
"cssParts": [
|
|
16341
16341
|
{
|
|
16342
16342
|
"description": "The component's base wrapper.",
|
|
16343
|
-
"name": "base"
|
|
16343
|
+
"name": "base",
|
|
16344
|
+
"inheritedFrom": {
|
|
16345
|
+
"name": "ZnPanel",
|
|
16346
|
+
"module": "src/components/panel/panel.component.ts"
|
|
16347
|
+
}
|
|
16344
16348
|
},
|
|
16345
16349
|
{
|
|
16346
16350
|
"description": "The toolbar containing the view-mode and fullscreen controls.",
|
|
@@ -16363,6 +16367,30 @@
|
|
|
16363
16367
|
{
|
|
16364
16368
|
"description": "Help text shown below the editor. Alternatively, use the `help-text` attribute.",
|
|
16365
16369
|
"name": "help-text"
|
|
16370
|
+
},
|
|
16371
|
+
{
|
|
16372
|
+
"description": "The panel's main content.",
|
|
16373
|
+
"name": "",
|
|
16374
|
+
"inheritedFrom": {
|
|
16375
|
+
"name": "ZnPanel",
|
|
16376
|
+
"module": "src/components/panel/panel.component.ts"
|
|
16377
|
+
}
|
|
16378
|
+
},
|
|
16379
|
+
{
|
|
16380
|
+
"description": "Actions displayed in the panel header (buttons, chips, etc).",
|
|
16381
|
+
"name": "actions",
|
|
16382
|
+
"inheritedFrom": {
|
|
16383
|
+
"name": "ZnPanel",
|
|
16384
|
+
"module": "src/components/panel/panel.component.ts"
|
|
16385
|
+
}
|
|
16386
|
+
},
|
|
16387
|
+
{
|
|
16388
|
+
"description": "Content displayed in the panel footer.",
|
|
16389
|
+
"name": "footer",
|
|
16390
|
+
"inheritedFrom": {
|
|
16391
|
+
"name": "ZnPanel",
|
|
16392
|
+
"module": "src/components/panel/panel.component.ts"
|
|
16393
|
+
}
|
|
16366
16394
|
}
|
|
16367
16395
|
],
|
|
16368
16396
|
"members": [
|
|
@@ -16375,10 +16403,10 @@
|
|
|
16375
16403
|
},
|
|
16376
16404
|
{
|
|
16377
16405
|
"kind": "field",
|
|
16378
|
-
"name": "
|
|
16406
|
+
"name": "markdownSlotController",
|
|
16379
16407
|
"privacy": "private",
|
|
16380
16408
|
"readonly": true,
|
|
16381
|
-
"default": "new HasSlotController(this, 'label', 'help-text')"
|
|
16409
|
+
"default": "new HasSlotController(this, 'label', 'help-text', 'actions', 'footer')"
|
|
16382
16410
|
},
|
|
16383
16411
|
{
|
|
16384
16412
|
"kind": "field",
|
|
@@ -16533,7 +16561,9 @@
|
|
|
16533
16561
|
"text": "boolean"
|
|
16534
16562
|
},
|
|
16535
16563
|
"default": "false",
|
|
16536
|
-
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor."
|
|
16564
|
+
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor.",
|
|
16565
|
+
"attribute": "expanded",
|
|
16566
|
+
"reflects": true
|
|
16537
16567
|
},
|
|
16538
16568
|
{
|
|
16539
16569
|
"kind": "field",
|
|
@@ -16698,6 +16728,173 @@
|
|
|
16698
16728
|
}
|
|
16699
16729
|
}
|
|
16700
16730
|
]
|
|
16731
|
+
},
|
|
16732
|
+
{
|
|
16733
|
+
"kind": "field",
|
|
16734
|
+
"name": "hasSlotController",
|
|
16735
|
+
"privacy": "private",
|
|
16736
|
+
"readonly": true,
|
|
16737
|
+
"default": "new HasSlotController(this, '[default]', 'actions', 'footer')",
|
|
16738
|
+
"inheritedFrom": {
|
|
16739
|
+
"name": "ZnPanel",
|
|
16740
|
+
"module": "components/panel/panel.js"
|
|
16741
|
+
}
|
|
16742
|
+
},
|
|
16743
|
+
{
|
|
16744
|
+
"kind": "field",
|
|
16745
|
+
"name": "basis",
|
|
16746
|
+
"type": {
|
|
16747
|
+
"text": "number"
|
|
16748
|
+
},
|
|
16749
|
+
"attribute": "basis-px",
|
|
16750
|
+
"inheritedFrom": {
|
|
16751
|
+
"name": "ZnPanel",
|
|
16752
|
+
"module": "components/panel/panel.js"
|
|
16753
|
+
}
|
|
16754
|
+
},
|
|
16755
|
+
{
|
|
16756
|
+
"kind": "field",
|
|
16757
|
+
"name": "caption",
|
|
16758
|
+
"type": {
|
|
16759
|
+
"text": "string"
|
|
16760
|
+
},
|
|
16761
|
+
"attribute": "caption",
|
|
16762
|
+
"inheritedFrom": {
|
|
16763
|
+
"name": "ZnPanel",
|
|
16764
|
+
"module": "components/panel/panel.js"
|
|
16765
|
+
}
|
|
16766
|
+
},
|
|
16767
|
+
{
|
|
16768
|
+
"kind": "field",
|
|
16769
|
+
"name": "icon",
|
|
16770
|
+
"type": {
|
|
16771
|
+
"text": "string"
|
|
16772
|
+
},
|
|
16773
|
+
"attribute": "icon",
|
|
16774
|
+
"inheritedFrom": {
|
|
16775
|
+
"name": "ZnPanel",
|
|
16776
|
+
"module": "components/panel/panel.js"
|
|
16777
|
+
}
|
|
16778
|
+
},
|
|
16779
|
+
{
|
|
16780
|
+
"kind": "field",
|
|
16781
|
+
"name": "description",
|
|
16782
|
+
"type": {
|
|
16783
|
+
"text": "string"
|
|
16784
|
+
},
|
|
16785
|
+
"attribute": "description",
|
|
16786
|
+
"inheritedFrom": {
|
|
16787
|
+
"name": "ZnPanel",
|
|
16788
|
+
"module": "components/panel/panel.js"
|
|
16789
|
+
}
|
|
16790
|
+
},
|
|
16791
|
+
{
|
|
16792
|
+
"kind": "field",
|
|
16793
|
+
"name": "tabbed",
|
|
16794
|
+
"type": {
|
|
16795
|
+
"text": "boolean"
|
|
16796
|
+
},
|
|
16797
|
+
"attribute": "tabbed",
|
|
16798
|
+
"inheritedFrom": {
|
|
16799
|
+
"name": "ZnPanel",
|
|
16800
|
+
"module": "components/panel/panel.js"
|
|
16801
|
+
}
|
|
16802
|
+
},
|
|
16803
|
+
{
|
|
16804
|
+
"kind": "field",
|
|
16805
|
+
"name": "underlineHeader",
|
|
16806
|
+
"type": {
|
|
16807
|
+
"text": "boolean"
|
|
16808
|
+
},
|
|
16809
|
+
"attribute": "header-underline",
|
|
16810
|
+
"inheritedFrom": {
|
|
16811
|
+
"name": "ZnPanel",
|
|
16812
|
+
"module": "components/panel/panel.js"
|
|
16813
|
+
}
|
|
16814
|
+
},
|
|
16815
|
+
{
|
|
16816
|
+
"kind": "field",
|
|
16817
|
+
"name": "cosmic",
|
|
16818
|
+
"type": {
|
|
16819
|
+
"text": "boolean"
|
|
16820
|
+
},
|
|
16821
|
+
"attribute": "cosmic",
|
|
16822
|
+
"inheritedFrom": {
|
|
16823
|
+
"name": "ZnPanel",
|
|
16824
|
+
"module": "components/panel/panel.js"
|
|
16825
|
+
}
|
|
16826
|
+
},
|
|
16827
|
+
{
|
|
16828
|
+
"kind": "field",
|
|
16829
|
+
"name": "flush",
|
|
16830
|
+
"type": {
|
|
16831
|
+
"text": "boolean"
|
|
16832
|
+
},
|
|
16833
|
+
"attribute": "flush",
|
|
16834
|
+
"inheritedFrom": {
|
|
16835
|
+
"name": "ZnPanel",
|
|
16836
|
+
"module": "components/panel/panel.js"
|
|
16837
|
+
}
|
|
16838
|
+
},
|
|
16839
|
+
{
|
|
16840
|
+
"kind": "field",
|
|
16841
|
+
"name": "flushX",
|
|
16842
|
+
"type": {
|
|
16843
|
+
"text": "boolean"
|
|
16844
|
+
},
|
|
16845
|
+
"attribute": "flush-x",
|
|
16846
|
+
"inheritedFrom": {
|
|
16847
|
+
"name": "ZnPanel",
|
|
16848
|
+
"module": "components/panel/panel.js"
|
|
16849
|
+
}
|
|
16850
|
+
},
|
|
16851
|
+
{
|
|
16852
|
+
"kind": "field",
|
|
16853
|
+
"name": "flushY",
|
|
16854
|
+
"type": {
|
|
16855
|
+
"text": "boolean"
|
|
16856
|
+
},
|
|
16857
|
+
"attribute": "flush-y",
|
|
16858
|
+
"inheritedFrom": {
|
|
16859
|
+
"name": "ZnPanel",
|
|
16860
|
+
"module": "components/panel/panel.js"
|
|
16861
|
+
}
|
|
16862
|
+
},
|
|
16863
|
+
{
|
|
16864
|
+
"kind": "field",
|
|
16865
|
+
"name": "flushFooter",
|
|
16866
|
+
"type": {
|
|
16867
|
+
"text": "boolean"
|
|
16868
|
+
},
|
|
16869
|
+
"attribute": "flush-footer",
|
|
16870
|
+
"inheritedFrom": {
|
|
16871
|
+
"name": "ZnPanel",
|
|
16872
|
+
"module": "components/panel/panel.js"
|
|
16873
|
+
}
|
|
16874
|
+
},
|
|
16875
|
+
{
|
|
16876
|
+
"kind": "field",
|
|
16877
|
+
"name": "transparent",
|
|
16878
|
+
"type": {
|
|
16879
|
+
"text": "boolean"
|
|
16880
|
+
},
|
|
16881
|
+
"attribute": "transparent",
|
|
16882
|
+
"inheritedFrom": {
|
|
16883
|
+
"name": "ZnPanel",
|
|
16884
|
+
"module": "components/panel/panel.js"
|
|
16885
|
+
}
|
|
16886
|
+
},
|
|
16887
|
+
{
|
|
16888
|
+
"kind": "field",
|
|
16889
|
+
"name": "shadow",
|
|
16890
|
+
"type": {
|
|
16891
|
+
"text": "boolean"
|
|
16892
|
+
},
|
|
16893
|
+
"attribute": "shadow",
|
|
16894
|
+
"inheritedFrom": {
|
|
16895
|
+
"name": "ZnPanel",
|
|
16896
|
+
"module": "components/panel/panel.js"
|
|
16897
|
+
}
|
|
16701
16898
|
}
|
|
16702
16899
|
],
|
|
16703
16900
|
"events": [
|
|
@@ -16816,11 +17013,163 @@
|
|
|
16816
17013
|
"default": "false",
|
|
16817
17014
|
"description": "Disables the editor.",
|
|
16818
17015
|
"fieldName": "disabled"
|
|
17016
|
+
},
|
|
17017
|
+
{
|
|
17018
|
+
"name": "expanded",
|
|
17019
|
+
"type": {
|
|
17020
|
+
"text": "boolean"
|
|
17021
|
+
},
|
|
17022
|
+
"default": "false",
|
|
17023
|
+
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor.",
|
|
17024
|
+
"fieldName": "expanded"
|
|
17025
|
+
},
|
|
17026
|
+
{
|
|
17027
|
+
"name": "basis-px",
|
|
17028
|
+
"type": {
|
|
17029
|
+
"text": "number"
|
|
17030
|
+
},
|
|
17031
|
+
"fieldName": "basis",
|
|
17032
|
+
"inheritedFrom": {
|
|
17033
|
+
"name": "ZnPanel",
|
|
17034
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17035
|
+
}
|
|
17036
|
+
},
|
|
17037
|
+
{
|
|
17038
|
+
"name": "caption",
|
|
17039
|
+
"type": {
|
|
17040
|
+
"text": "string"
|
|
17041
|
+
},
|
|
17042
|
+
"fieldName": "caption",
|
|
17043
|
+
"inheritedFrom": {
|
|
17044
|
+
"name": "ZnPanel",
|
|
17045
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17046
|
+
}
|
|
17047
|
+
},
|
|
17048
|
+
{
|
|
17049
|
+
"name": "icon",
|
|
17050
|
+
"type": {
|
|
17051
|
+
"text": "string"
|
|
17052
|
+
},
|
|
17053
|
+
"fieldName": "icon",
|
|
17054
|
+
"inheritedFrom": {
|
|
17055
|
+
"name": "ZnPanel",
|
|
17056
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17057
|
+
}
|
|
17058
|
+
},
|
|
17059
|
+
{
|
|
17060
|
+
"name": "description",
|
|
17061
|
+
"type": {
|
|
17062
|
+
"text": "string"
|
|
17063
|
+
},
|
|
17064
|
+
"fieldName": "description",
|
|
17065
|
+
"inheritedFrom": {
|
|
17066
|
+
"name": "ZnPanel",
|
|
17067
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17068
|
+
}
|
|
17069
|
+
},
|
|
17070
|
+
{
|
|
17071
|
+
"name": "tabbed",
|
|
17072
|
+
"type": {
|
|
17073
|
+
"text": "boolean"
|
|
17074
|
+
},
|
|
17075
|
+
"fieldName": "tabbed",
|
|
17076
|
+
"inheritedFrom": {
|
|
17077
|
+
"name": "ZnPanel",
|
|
17078
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17079
|
+
}
|
|
17080
|
+
},
|
|
17081
|
+
{
|
|
17082
|
+
"name": "header-underline",
|
|
17083
|
+
"type": {
|
|
17084
|
+
"text": "boolean"
|
|
17085
|
+
},
|
|
17086
|
+
"fieldName": "underlineHeader",
|
|
17087
|
+
"inheritedFrom": {
|
|
17088
|
+
"name": "ZnPanel",
|
|
17089
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17090
|
+
}
|
|
17091
|
+
},
|
|
17092
|
+
{
|
|
17093
|
+
"name": "cosmic",
|
|
17094
|
+
"type": {
|
|
17095
|
+
"text": "boolean"
|
|
17096
|
+
},
|
|
17097
|
+
"fieldName": "cosmic",
|
|
17098
|
+
"inheritedFrom": {
|
|
17099
|
+
"name": "ZnPanel",
|
|
17100
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17101
|
+
}
|
|
17102
|
+
},
|
|
17103
|
+
{
|
|
17104
|
+
"name": "flush",
|
|
17105
|
+
"type": {
|
|
17106
|
+
"text": "boolean"
|
|
17107
|
+
},
|
|
17108
|
+
"fieldName": "flush",
|
|
17109
|
+
"inheritedFrom": {
|
|
17110
|
+
"name": "ZnPanel",
|
|
17111
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17112
|
+
}
|
|
17113
|
+
},
|
|
17114
|
+
{
|
|
17115
|
+
"name": "flush-x",
|
|
17116
|
+
"type": {
|
|
17117
|
+
"text": "boolean"
|
|
17118
|
+
},
|
|
17119
|
+
"fieldName": "flushX",
|
|
17120
|
+
"inheritedFrom": {
|
|
17121
|
+
"name": "ZnPanel",
|
|
17122
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17123
|
+
}
|
|
17124
|
+
},
|
|
17125
|
+
{
|
|
17126
|
+
"name": "flush-y",
|
|
17127
|
+
"type": {
|
|
17128
|
+
"text": "boolean"
|
|
17129
|
+
},
|
|
17130
|
+
"fieldName": "flushY",
|
|
17131
|
+
"inheritedFrom": {
|
|
17132
|
+
"name": "ZnPanel",
|
|
17133
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17134
|
+
}
|
|
17135
|
+
},
|
|
17136
|
+
{
|
|
17137
|
+
"name": "flush-footer",
|
|
17138
|
+
"type": {
|
|
17139
|
+
"text": "boolean"
|
|
17140
|
+
},
|
|
17141
|
+
"fieldName": "flushFooter",
|
|
17142
|
+
"inheritedFrom": {
|
|
17143
|
+
"name": "ZnPanel",
|
|
17144
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17145
|
+
}
|
|
17146
|
+
},
|
|
17147
|
+
{
|
|
17148
|
+
"name": "transparent",
|
|
17149
|
+
"type": {
|
|
17150
|
+
"text": "boolean"
|
|
17151
|
+
},
|
|
17152
|
+
"fieldName": "transparent",
|
|
17153
|
+
"inheritedFrom": {
|
|
17154
|
+
"name": "ZnPanel",
|
|
17155
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17156
|
+
}
|
|
17157
|
+
},
|
|
17158
|
+
{
|
|
17159
|
+
"name": "shadow",
|
|
17160
|
+
"type": {
|
|
17161
|
+
"text": "boolean"
|
|
17162
|
+
},
|
|
17163
|
+
"fieldName": "shadow",
|
|
17164
|
+
"inheritedFrom": {
|
|
17165
|
+
"name": "ZnPanel",
|
|
17166
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17167
|
+
}
|
|
16819
17168
|
}
|
|
16820
17169
|
],
|
|
16821
17170
|
"superclass": {
|
|
16822
|
-
"name": "
|
|
16823
|
-
"module": "/src/
|
|
17171
|
+
"name": "ZnPanel",
|
|
17172
|
+
"module": "/src/components/panel/panel.component"
|
|
16824
17173
|
},
|
|
16825
17174
|
"summary": "A markdown editor with live preview, split view, and a fullscreen mode.",
|
|
16826
17175
|
"tagNameWithoutPrefix": "markdown-editor",
|
|
@@ -16834,6 +17183,16 @@
|
|
|
16834
17183
|
"zn-textarea",
|
|
16835
17184
|
"zn-button-group",
|
|
16836
17185
|
"zn-icon"
|
|
17186
|
+
],
|
|
17187
|
+
"cssProperties": [
|
|
17188
|
+
{
|
|
17189
|
+
"description": "The flex-basis of the panel. Can be set using the basis-px attribute.",
|
|
17190
|
+
"name": "--zn-panel-basis",
|
|
17191
|
+
"inheritedFrom": {
|
|
17192
|
+
"name": "ZnPanel",
|
|
17193
|
+
"module": "src/components/panel/panel.component.ts"
|
|
17194
|
+
}
|
|
17195
|
+
}
|
|
16837
17196
|
]
|
|
16838
17197
|
}
|
|
16839
17198
|
],
|
|
@@ -32562,7 +32921,7 @@
|
|
|
32562
32921
|
"package": {
|
|
32563
32922
|
"name": "@kubex/zinc",
|
|
32564
32923
|
"description": "A collection of web components for building web applications based off of @shoelace-style/Shoelace",
|
|
32565
|
-
"version": "1.0.
|
|
32924
|
+
"version": "1.0.105",
|
|
32566
32925
|
"author": "",
|
|
32567
32926
|
"license": "MIT"
|
|
32568
32927
|
}
|
|
@@ -1956,7 +1956,7 @@
|
|
|
1956
1956
|
},
|
|
1957
1957
|
{
|
|
1958
1958
|
"name": "zn-markdown-editor",
|
|
1959
|
-
"description": "A markdown editor with live preview, split view, and a fullscreen mode.\n---\n\n\n### **Events:**\n - **zn-view-mode-change** - Emitted when the user switches between editor / split / preview.\n- **zn-change** - Emitted when the markdown content changes.\n- **zn-input** - Emitted on each keystroke in the editor.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the editor.\n- **blur()** - Removes focus from the editor.\n\n### **Slots:**\n - **label** - The editor label. Alternatively, use the `label` attribute.\n- **help-text** - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The toolbar containing the view-mode and fullscreen controls.\n- **editor** - The textarea wrapper.\n- **preview** - The rendered markdown preview.",
|
|
1959
|
+
"description": "A markdown editor with live preview, split view, and a fullscreen mode.\n---\n\n\n### **Events:**\n - **zn-view-mode-change** - Emitted when the user switches between editor / split / preview.\n- **zn-change** - Emitted when the markdown content changes.\n- **zn-input** - Emitted on each keystroke in the editor.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the editor.\n- **blur()** - Removes focus from the editor.\n\n### **Slots:**\n - **label** - The editor label. Alternatively, use the `label` attribute.\n- **help-text** - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n- _default_ - The panel's main content.\n- **actions** - Actions displayed in the panel header (buttons, chips, etc).\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The toolbar containing the view-mode and fullscreen controls.\n- **editor** - The textarea wrapper.\n- **preview** - The rendered markdown preview.",
|
|
1960
1960
|
"attributes": [
|
|
1961
1961
|
{
|
|
1962
1962
|
"name": "name",
|
|
@@ -2012,7 +2012,25 @@
|
|
|
2012
2012
|
"name": "disabled",
|
|
2013
2013
|
"description": "Disables the editor.",
|
|
2014
2014
|
"values": []
|
|
2015
|
-
}
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
"name": "expanded",
|
|
2018
|
+
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor.",
|
|
2019
|
+
"values": []
|
|
2020
|
+
},
|
|
2021
|
+
{ "name": "basis-px", "values": [] },
|
|
2022
|
+
{ "name": "caption", "values": [] },
|
|
2023
|
+
{ "name": "icon", "values": [] },
|
|
2024
|
+
{ "name": "description", "values": [] },
|
|
2025
|
+
{ "name": "tabbed", "values": [] },
|
|
2026
|
+
{ "name": "header-underline", "values": [] },
|
|
2027
|
+
{ "name": "cosmic", "values": [] },
|
|
2028
|
+
{ "name": "flush", "values": [] },
|
|
2029
|
+
{ "name": "flush-x", "values": [] },
|
|
2030
|
+
{ "name": "flush-y", "values": [] },
|
|
2031
|
+
{ "name": "flush-footer", "values": [] },
|
|
2032
|
+
{ "name": "transparent", "values": [] },
|
|
2033
|
+
{ "name": "shadow", "values": [] }
|
|
2016
2034
|
],
|
|
2017
2035
|
"references": [
|
|
2018
2036
|
{
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.105",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -4481,7 +4481,7 @@
|
|
|
4481
4481
|
},
|
|
4482
4482
|
{
|
|
4483
4483
|
"name": "zn-markdown-editor",
|
|
4484
|
-
"description": "A markdown editor with live preview, split view, and a fullscreen mode.\n---\n\n\n### **Events:**\n - **zn-view-mode-change** - Emitted when the user switches between editor / split / preview.\n- **zn-change** - Emitted when the markdown content changes.\n- **zn-input** - Emitted on each keystroke in the editor.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the editor.\n- **blur()** - Removes focus from the editor.\n\n### **Slots:**\n - **label** - The editor label. Alternatively, use the `label` attribute.\n- **help-text** - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The toolbar containing the view-mode and fullscreen controls.\n- **editor** - The textarea wrapper.\n- **preview** - The rendered markdown preview.",
|
|
4484
|
+
"description": "A markdown editor with live preview, split view, and a fullscreen mode.\n---\n\n\n### **Events:**\n - **zn-view-mode-change** - Emitted when the user switches between editor / split / preview.\n- **zn-change** - Emitted when the markdown content changes.\n- **zn-input** - Emitted on each keystroke in the editor.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the editor.\n- **blur()** - Removes focus from the editor.\n\n### **Slots:**\n - **label** - The editor label. Alternatively, use the `label` attribute.\n- **help-text** - Help text shown below the editor. Alternatively, use the `help-text` attribute.\n- _default_ - The panel's main content.\n- **actions** - Actions displayed in the panel header (buttons, chips, etc).\n- **footer** - Content displayed in the panel footer.\n\n### **CSS Properties:**\n - **--zn-panel-basis** - The flex-basis of the panel. Can be set using the basis-px attribute. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The toolbar containing the view-mode and fullscreen controls.\n- **editor** - The textarea wrapper.\n- **preview** - The rendered markdown preview.",
|
|
4485
4485
|
"doc-url": "",
|
|
4486
4486
|
"attributes": [
|
|
4487
4487
|
{
|
|
@@ -4544,7 +4544,25 @@
|
|
|
4544
4544
|
"name": "disabled",
|
|
4545
4545
|
"description": "Disables the editor.",
|
|
4546
4546
|
"value": { "type": "boolean", "default": "false" }
|
|
4547
|
-
}
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"name": "expanded",
|
|
4550
|
+
"description": "Whether the editor is currently expanded to cover its containing positioned ancestor.",
|
|
4551
|
+
"value": { "type": "boolean", "default": "false" }
|
|
4552
|
+
},
|
|
4553
|
+
{ "name": "basis-px", "value": { "type": "number" } },
|
|
4554
|
+
{ "name": "caption", "value": { "type": "string" } },
|
|
4555
|
+
{ "name": "icon", "value": { "type": "string" } },
|
|
4556
|
+
{ "name": "description", "value": { "type": "string" } },
|
|
4557
|
+
{ "name": "tabbed", "value": { "type": "boolean" } },
|
|
4558
|
+
{ "name": "header-underline", "value": { "type": "boolean" } },
|
|
4559
|
+
{ "name": "cosmic", "value": { "type": "boolean" } },
|
|
4560
|
+
{ "name": "flush", "value": { "type": "boolean" } },
|
|
4561
|
+
{ "name": "flush-x", "value": { "type": "boolean" } },
|
|
4562
|
+
{ "name": "flush-y", "value": { "type": "boolean" } },
|
|
4563
|
+
{ "name": "flush-footer", "value": { "type": "boolean" } },
|
|
4564
|
+
{ "name": "transparent", "value": { "type": "boolean" } },
|
|
4565
|
+
{ "name": "shadow", "value": { "type": "boolean" } }
|
|
4548
4566
|
],
|
|
4549
4567
|
"slots": [
|
|
4550
4568
|
{
|
|
@@ -4554,6 +4572,15 @@
|
|
|
4554
4572
|
{
|
|
4555
4573
|
"name": "help-text",
|
|
4556
4574
|
"description": "Help text shown below the editor. Alternatively, use the `help-text` attribute."
|
|
4575
|
+
},
|
|
4576
|
+
{ "name": "", "description": "The panel's main content." },
|
|
4577
|
+
{
|
|
4578
|
+
"name": "actions",
|
|
4579
|
+
"description": "Actions displayed in the panel header (buttons, chips, etc)."
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
"name": "footer",
|
|
4583
|
+
"description": "Content displayed in the panel footer."
|
|
4557
4584
|
}
|
|
4558
4585
|
],
|
|
4559
4586
|
"events": [
|
|
@@ -4641,7 +4668,20 @@
|
|
|
4641
4668
|
"type": "boolean"
|
|
4642
4669
|
},
|
|
4643
4670
|
{ "name": "validity", "type": "ValidityState" },
|
|
4644
|
-
{ "name": "validationMessage", "type": "string" }
|
|
4671
|
+
{ "name": "validationMessage", "type": "string" },
|
|
4672
|
+
{ "name": "basis", "type": "number" },
|
|
4673
|
+
{ "name": "caption", "type": "string" },
|
|
4674
|
+
{ "name": "icon", "type": "string" },
|
|
4675
|
+
{ "name": "description", "type": "string" },
|
|
4676
|
+
{ "name": "tabbed", "type": "boolean" },
|
|
4677
|
+
{ "name": "underlineHeader", "type": "boolean" },
|
|
4678
|
+
{ "name": "cosmic", "type": "boolean" },
|
|
4679
|
+
{ "name": "flush", "type": "boolean" },
|
|
4680
|
+
{ "name": "flushX", "type": "boolean" },
|
|
4681
|
+
{ "name": "flushY", "type": "boolean" },
|
|
4682
|
+
{ "name": "flushFooter", "type": "boolean" },
|
|
4683
|
+
{ "name": "transparent", "type": "boolean" },
|
|
4684
|
+
{ "name": "shadow", "type": "boolean" }
|
|
4645
4685
|
],
|
|
4646
4686
|
"events": [
|
|
4647
4687
|
{
|
package/dist/zn.d.ts
CHANGED
|
@@ -7677,9 +7677,9 @@ declare module "components/priority-list/index" {
|
|
|
7677
7677
|
}
|
|
7678
7678
|
declare module "components/markdown-editor/markdown-editor.component" {
|
|
7679
7679
|
import { type CSSResultGroup, type PropertyValues } from 'lit';
|
|
7680
|
-
import ZincElement from "internal/zinc-element";
|
|
7681
7680
|
import type { ZincFormControl } from "internal/zinc-element";
|
|
7682
7681
|
import type ZnTextarea from "components/textarea/index";
|
|
7682
|
+
import ZnPanel from "components/panel/panel.component";
|
|
7683
7683
|
type ViewMode = 'editor' | 'split' | 'preview';
|
|
7684
7684
|
/**
|
|
7685
7685
|
* @summary A markdown editor with live preview, split view, and a fullscreen mode.
|
|
@@ -7703,10 +7703,10 @@ declare module "components/markdown-editor/markdown-editor.component" {
|
|
|
7703
7703
|
* @csspart editor - The textarea wrapper.
|
|
7704
7704
|
* @csspart preview - The rendered markdown preview.
|
|
7705
7705
|
*/
|
|
7706
|
-
export default class ZnMarkdownEditor extends
|
|
7706
|
+
export default class ZnMarkdownEditor extends ZnPanel implements ZincFormControl {
|
|
7707
7707
|
static styles: CSSResultGroup;
|
|
7708
7708
|
private readonly formControlController;
|
|
7709
|
-
private readonly
|
|
7709
|
+
private readonly markdownSlotController;
|
|
7710
7710
|
private debounceTimer;
|
|
7711
7711
|
textarea: ZnTextarea;
|
|
7712
7712
|
previewEl: HTMLDivElement;
|