luxen-ui 0.9.0 → 0.9.1
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/cdn/custom-elements.json +49 -49
- package/cdn/elements/prose-editor/prose-editor.d.ts +24 -2
- package/cdn/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/cdn/elements/prose-editor/prose-editor.js +40 -39
- package/cdn/elements/prose-editor/prose-editor.js.map +1 -1
- package/cdn/elements/tree/tree.js +1 -1
- package/cdn/elements/tree/tree.js.map +1 -1
- package/cdn/elements/tree-item/tree-item.js +1 -1
- package/cdn/elements/tree-item/tree-item.js.map +1 -1
- package/cdn/standalone.css +4 -0
- package/cdn/standalone.js +35 -34
- package/cdn/standalone.js.map +1 -1
- package/cdn/styles/elements/button.css +4 -0
- package/dist/css/elements/button.css +4 -0
- package/dist/custom-elements.json +49 -49
- package/dist/elements/prose-editor/prose-editor.d.ts +24 -2
- package/dist/elements/prose-editor/prose-editor.d.ts.map +1 -1
- package/dist/elements/prose-editor/prose-editor.js +81 -48
- package/dist/elements/tree/tree.css +1 -1
- package/dist/elements/tree-item/tree-item.css +5 -1
- package/dist/metadata/index.json +1 -1
- package/package.json +1 -1
- package/postcss-plugin-prefix.js +43 -1
package/cdn/custom-elements.json
CHANGED
|
@@ -1144,6 +1144,55 @@
|
|
|
1144
1144
|
}
|
|
1145
1145
|
]
|
|
1146
1146
|
},
|
|
1147
|
+
{
|
|
1148
|
+
"kind": "javascript-module",
|
|
1149
|
+
"path": "src/html/elements/carousel-item/carousel-item.ts",
|
|
1150
|
+
"declarations": [
|
|
1151
|
+
{
|
|
1152
|
+
"kind": "class",
|
|
1153
|
+
"description": "A single slide inside an `<l-carousel>`.",
|
|
1154
|
+
"name": "CarouselItem",
|
|
1155
|
+
"cssProperties": [
|
|
1156
|
+
{
|
|
1157
|
+
"description": "Aspect ratio of the slide.",
|
|
1158
|
+
"name": "--aspect-ratio"
|
|
1159
|
+
}
|
|
1160
|
+
],
|
|
1161
|
+
"members": [],
|
|
1162
|
+
"superclass": {
|
|
1163
|
+
"name": "LuxenElement",
|
|
1164
|
+
"module": "/src/html/shared/luxen-element.js"
|
|
1165
|
+
},
|
|
1166
|
+
"tagName": "l-carousel-item",
|
|
1167
|
+
"customElement": true
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
"exports": [
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "js",
|
|
1173
|
+
"name": "CarouselItem",
|
|
1174
|
+
"declaration": {
|
|
1175
|
+
"name": "CarouselItem",
|
|
1176
|
+
"module": "src/html/elements/carousel-item/carousel-item.ts"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "javascript-module",
|
|
1183
|
+
"path": "src/html/elements/carousel-item/index.ts",
|
|
1184
|
+
"declarations": [],
|
|
1185
|
+
"exports": [
|
|
1186
|
+
{
|
|
1187
|
+
"kind": "js",
|
|
1188
|
+
"name": "*",
|
|
1189
|
+
"declaration": {
|
|
1190
|
+
"name": "*",
|
|
1191
|
+
"module": "src/html/elements/carousel-item/carousel-item.js"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
]
|
|
1195
|
+
},
|
|
1147
1196
|
{
|
|
1148
1197
|
"kind": "javascript-module",
|
|
1149
1198
|
"path": "src/html/elements/checkbox/checkbox.meta.ts",
|
|
@@ -1248,55 +1297,6 @@
|
|
|
1248
1297
|
}
|
|
1249
1298
|
]
|
|
1250
1299
|
},
|
|
1251
|
-
{
|
|
1252
|
-
"kind": "javascript-module",
|
|
1253
|
-
"path": "src/html/elements/carousel-item/carousel-item.ts",
|
|
1254
|
-
"declarations": [
|
|
1255
|
-
{
|
|
1256
|
-
"kind": "class",
|
|
1257
|
-
"description": "A single slide inside an `<l-carousel>`.",
|
|
1258
|
-
"name": "CarouselItem",
|
|
1259
|
-
"cssProperties": [
|
|
1260
|
-
{
|
|
1261
|
-
"description": "Aspect ratio of the slide.",
|
|
1262
|
-
"name": "--aspect-ratio"
|
|
1263
|
-
}
|
|
1264
|
-
],
|
|
1265
|
-
"members": [],
|
|
1266
|
-
"superclass": {
|
|
1267
|
-
"name": "LuxenElement",
|
|
1268
|
-
"module": "/src/html/shared/luxen-element.js"
|
|
1269
|
-
},
|
|
1270
|
-
"tagName": "l-carousel-item",
|
|
1271
|
-
"customElement": true
|
|
1272
|
-
}
|
|
1273
|
-
],
|
|
1274
|
-
"exports": [
|
|
1275
|
-
{
|
|
1276
|
-
"kind": "js",
|
|
1277
|
-
"name": "CarouselItem",
|
|
1278
|
-
"declaration": {
|
|
1279
|
-
"name": "CarouselItem",
|
|
1280
|
-
"module": "src/html/elements/carousel-item/carousel-item.ts"
|
|
1281
|
-
}
|
|
1282
|
-
}
|
|
1283
|
-
]
|
|
1284
|
-
},
|
|
1285
|
-
{
|
|
1286
|
-
"kind": "javascript-module",
|
|
1287
|
-
"path": "src/html/elements/carousel-item/index.ts",
|
|
1288
|
-
"declarations": [],
|
|
1289
|
-
"exports": [
|
|
1290
|
-
{
|
|
1291
|
-
"kind": "js",
|
|
1292
|
-
"name": "*",
|
|
1293
|
-
"declaration": {
|
|
1294
|
-
"name": "*",
|
|
1295
|
-
"module": "src/html/elements/carousel-item/carousel-item.js"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
]
|
|
1299
|
-
},
|
|
1300
1300
|
{
|
|
1301
1301
|
"kind": "javascript-module",
|
|
1302
1302
|
"path": "src/html/elements/close-button/close-button.meta.ts",
|
|
@@ -57,9 +57,10 @@ export declare class ProseEditor extends LuxenFormAssociatedElement {
|
|
|
57
57
|
accessor autofocus: boolean;
|
|
58
58
|
/** Placeholder shown when the editor is empty. */
|
|
59
59
|
accessor placeholder: string;
|
|
60
|
-
accessor _emojiPickerActive: boolean;
|
|
61
60
|
private _editorRoot?;
|
|
62
61
|
private _emojiPicker?;
|
|
62
|
+
private _emojiPickerPromise?;
|
|
63
|
+
private _emojiOpenAtPointerDown;
|
|
63
64
|
get validationTarget(): HTMLElement | undefined;
|
|
64
65
|
private get _toolbar();
|
|
65
66
|
firstUpdated(): void;
|
|
@@ -102,7 +103,28 @@ export declare class ProseEditor extends LuxenFormAssociatedElement {
|
|
|
102
103
|
private _createEditorRoot;
|
|
103
104
|
private _onFocus;
|
|
104
105
|
private _onKeyDown;
|
|
105
|
-
|
|
106
|
+
/**
|
|
107
|
+
* The picker is a `popover="auto"`, so the platform owns outside-click
|
|
108
|
+
* dismissal: native light-dismiss in the top layer, which survives
|
|
109
|
+
* `stopPropagation()` from an ancestor (modal `<l-dialog>`, ProseMirror, Vue
|
|
110
|
+
* delegation), unlike emoji-mart's `document` click listener. (`Escape` is
|
|
111
|
+
* handled by `_onKeyDown` instead — ProseMirror `preventDefault()`s it, which
|
|
112
|
+
* would cancel the native close.)
|
|
113
|
+
*
|
|
114
|
+
* We can't wire the button as a native popover invoker (`popoverTargetElement`
|
|
115
|
+
* / `popovertarget`) because the picker is parented into another shadow tree
|
|
116
|
+
* (the open `<dialog>` — see `_topLayerContainer`) while the button lives in
|
|
117
|
+
* this element's shadow root; a cross-tree invoker reference doesn't resolve.
|
|
118
|
+
* So the toggle is hand-rolled here. The catch: a pointer click on the button
|
|
119
|
+
* is "outside" the popover, so native light-dismiss has already closed an open
|
|
120
|
+
* picker by the time this `click` fires (light-dismiss runs on `pointerup`).
|
|
121
|
+
* We therefore read the open state captured at `pointerdown` to know whether
|
|
122
|
+
* this click should re-open or stay closed. Keyboard activation (`detail === 0`)
|
|
123
|
+
* has no pointer light-dismiss, so it reads the live state and toggles directly.
|
|
124
|
+
*/
|
|
125
|
+
private _onEmojiButtonPointerDown;
|
|
126
|
+
private _onEmojiButtonClick;
|
|
127
|
+
private _ensureEmojiPicker;
|
|
106
128
|
/**
|
|
107
129
|
* The element the emoji picker is appended to. Inside a modal `<l-dialog>` the
|
|
108
130
|
* picker must live within the dialog's flat-tree subtree, otherwise the modal's
|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