@ni/spright-components 6.6.5 → 6.7.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/dist/all-components-bundle.js +24 -16
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +10 -9
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/input/index.d.ts +1 -0
- package/dist/esm/chat/input/index.js +4 -0
- package/dist/esm/chat/input/index.js.map +1 -1
- package/dist/esm/chat/input/template.js +1 -0
- package/dist/esm/chat/input/template.js.map +1 -1
- package/dist/esm/chat/input/testing/chat-input.pageobject.d.ts +1 -0
- package/dist/esm/chat/input/testing/chat-input.pageobject.js +3 -0
- package/dist/esm/chat/input/testing/chat-input.pageobject.js.map +1 -1
- package/package.json +2 -2
|
@@ -39924,7 +39924,17 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39924
39924
|
}
|
|
39925
39925
|
}
|
|
39926
39926
|
}
|
|
39927
|
-
if (
|
|
39927
|
+
if (added.some(n => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
39928
|
+
// Browsers sometimes insert a bogus break node if you
|
|
39929
|
+
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
39930
|
+
for (let node of added)
|
|
39931
|
+
if (node.nodeName == "BR" && node.parentNode) {
|
|
39932
|
+
let after = node.nextSibling;
|
|
39933
|
+
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
39934
|
+
node.parentNode.removeChild(node);
|
|
39935
|
+
}
|
|
39936
|
+
}
|
|
39937
|
+
else if (gecko && added.length) {
|
|
39928
39938
|
let brs = added.filter(n => n.nodeName == "BR");
|
|
39929
39939
|
if (brs.length == 2) {
|
|
39930
39940
|
let [a, b] = brs;
|
|
@@ -39942,17 +39952,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39942
39952
|
}
|
|
39943
39953
|
}
|
|
39944
39954
|
}
|
|
39945
|
-
else if ((chrome || safari) && added.some(n => n.nodeName == "BR") &&
|
|
39946
|
-
(view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
39947
|
-
// Chrome/Safari sometimes insert a bogus break node if you
|
|
39948
|
-
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
39949
|
-
for (let node of added)
|
|
39950
|
-
if (node.nodeName == "BR" && node.parentNode) {
|
|
39951
|
-
let after = node.nextSibling;
|
|
39952
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
39953
|
-
node.parentNode.removeChild(node);
|
|
39954
|
-
}
|
|
39955
|
-
}
|
|
39956
39955
|
let readSel = null;
|
|
39957
39956
|
// If it looks like the browser has reset the selection to the
|
|
39958
39957
|
// start of the document after focus, restore the selection from
|
|
@@ -56746,7 +56745,7 @@ ${renderedContent}
|
|
|
56746
56745
|
*/
|
|
56747
56746
|
isMarkAhead(parent, index, mark) {
|
|
56748
56747
|
for (;; index++) {
|
|
56749
|
-
if (index
|
|
56748
|
+
if (index >= parent.childCount)
|
|
56750
56749
|
return false;
|
|
56751
56750
|
let next = parent.child(index);
|
|
56752
56751
|
if (next.type.name != this.options.hardBreakNodeName)
|
|
@@ -59608,6 +59607,9 @@ ${renderedContent}
|
|
|
59608
59607
|
},
|
|
59609
59608
|
class: {
|
|
59610
59609
|
default: this.options.HTMLAttributes.class
|
|
59610
|
+
},
|
|
59611
|
+
title: {
|
|
59612
|
+
default: null
|
|
59611
59613
|
}
|
|
59612
59614
|
};
|
|
59613
59615
|
},
|
|
@@ -59647,10 +59649,11 @@ ${renderedContent}
|
|
|
59647
59649
|
});
|
|
59648
59650
|
},
|
|
59649
59651
|
renderMarkdown: (node, h) => {
|
|
59650
|
-
var _a;
|
|
59651
|
-
const href = ((_a = node.attrs) == null ? void 0 : _a.href)
|
|
59652
|
+
var _a, _b, _c, _d;
|
|
59653
|
+
const href = (_b = (_a = node.attrs) == null ? void 0 : _a.href) != null ? _b : "";
|
|
59654
|
+
const title = (_d = (_c = node.attrs) == null ? void 0 : _c.title) != null ? _d : "";
|
|
59652
59655
|
const text = h.renderChildren(node);
|
|
59653
|
-
return `[${text}](${href})`;
|
|
59656
|
+
return title ? `[${text}](${href} "${title}")` : `[${text}](${href})`;
|
|
59654
59657
|
},
|
|
59655
59658
|
addCommands() {
|
|
59656
59659
|
return {
|
|
@@ -96950,6 +96953,7 @@ focus outline in that case.
|
|
|
96950
96953
|
placeholder="${x => x.placeholder}"
|
|
96951
96954
|
rows="1"
|
|
96952
96955
|
tabindex="${x => x.tabIndex}"
|
|
96956
|
+
maxlength="${x => x.maxLength}"
|
|
96953
96957
|
@keydown="${(x, c) => x.textAreaKeydownHandler(c.event)}"
|
|
96954
96958
|
@input="${x => x.textAreaInputHandler()}"
|
|
96955
96959
|
></textarea>
|
|
@@ -96975,6 +96979,7 @@ focus outline in that case.
|
|
|
96975
96979
|
constructor() {
|
|
96976
96980
|
super(...arguments);
|
|
96977
96981
|
this.value = '';
|
|
96982
|
+
this.maxLength = -1;
|
|
96978
96983
|
/**
|
|
96979
96984
|
* @internal
|
|
96980
96985
|
*/
|
|
@@ -97051,6 +97056,9 @@ focus outline in that case.
|
|
|
97051
97056
|
__decorate([
|
|
97052
97057
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
97053
97058
|
], ChatInput.prototype, "tabIndex", void 0);
|
|
97059
|
+
__decorate([
|
|
97060
|
+
attr({ attribute: 'maxlength', converter: nullableNumberConverter })
|
|
97061
|
+
], ChatInput.prototype, "maxLength", void 0);
|
|
97054
97062
|
__decorate([
|
|
97055
97063
|
observable
|
|
97056
97064
|
], ChatInput.prototype, "textArea", void 0);
|