@ni/ok-components 0.0.3 → 0.0.4
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.
|
@@ -358,9 +358,12 @@
|
|
|
358
358
|
* If the value is true, the attribute is added; otherwise it is removed.
|
|
359
359
|
*/
|
|
360
360
|
setBooleanAttribute(element, attributeName, value) {
|
|
361
|
-
value
|
|
362
|
-
|
|
363
|
-
|
|
361
|
+
if (value) {
|
|
362
|
+
element.setAttribute(attributeName, "");
|
|
363
|
+
}
|
|
364
|
+
else {
|
|
365
|
+
element.removeAttribute(attributeName);
|
|
366
|
+
}
|
|
364
367
|
},
|
|
365
368
|
/**
|
|
366
369
|
* Removes all the child nodes of the provided parent node.
|
|
@@ -1809,7 +1812,7 @@
|
|
|
1809
1812
|
}
|
|
1810
1813
|
};
|
|
1811
1814
|
}
|
|
1812
|
-
catch (
|
|
1815
|
+
catch (_a) {
|
|
1813
1816
|
// Do nothing if an error is thrown, the default
|
|
1814
1817
|
// case handles FrozenArray.
|
|
1815
1818
|
}
|
|
@@ -2395,9 +2398,14 @@
|
|
|
2395
2398
|
const behavior = behaviors[i];
|
|
2396
2399
|
if (targetBehaviors.has(behavior)) {
|
|
2397
2400
|
const count = targetBehaviors.get(behavior) - 1;
|
|
2398
|
-
count === 0 || force
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
+
if (count === 0 || force) {
|
|
2402
|
+
if (targetBehaviors.delete(behavior)) {
|
|
2403
|
+
behaviorsToUnbind.push(behavior);
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
else {
|
|
2407
|
+
targetBehaviors.set(behavior, count);
|
|
2408
|
+
}
|
|
2401
2409
|
}
|
|
2402
2410
|
}
|
|
2403
2411
|
if (this._isConnected) {
|
|
@@ -5311,7 +5319,7 @@
|
|
|
5311
5319
|
styleElement.sheet.insertRule("foo:focus-visible {color:inherit}", 0);
|
|
5312
5320
|
_canUseFocusVisible = true;
|
|
5313
5321
|
}
|
|
5314
|
-
catch (
|
|
5322
|
+
catch (_a) {
|
|
5315
5323
|
_canUseFocusVisible = false;
|
|
5316
5324
|
}
|
|
5317
5325
|
finally {
|
|
@@ -6833,14 +6841,20 @@
|
|
|
6833
6841
|
if (childNodeWithHref === null &&
|
|
6834
6842
|
item.hasAttribute("href") &&
|
|
6835
6843
|
item instanceof BreadcrumbItem$1) {
|
|
6836
|
-
isLastNode
|
|
6837
|
-
|
|
6838
|
-
|
|
6844
|
+
if (isLastNode) {
|
|
6845
|
+
item.setAttribute("aria-current", "page");
|
|
6846
|
+
}
|
|
6847
|
+
else {
|
|
6848
|
+
item.removeAttribute("aria-current");
|
|
6849
|
+
}
|
|
6839
6850
|
}
|
|
6840
6851
|
else if (childNodeWithHref !== null) {
|
|
6841
|
-
isLastNode
|
|
6842
|
-
|
|
6843
|
-
|
|
6852
|
+
if (isLastNode) {
|
|
6853
|
+
childNodeWithHref.setAttribute("aria-current", "page");
|
|
6854
|
+
}
|
|
6855
|
+
else {
|
|
6856
|
+
childNodeWithHref.removeAttribute("aria-current");
|
|
6857
|
+
}
|
|
6844
6858
|
}
|
|
6845
6859
|
}
|
|
6846
6860
|
};
|
|
@@ -7413,9 +7427,12 @@
|
|
|
7413
7427
|
}
|
|
7414
7428
|
// Browser support for requestSubmit is not comprehensive
|
|
7415
7429
|
// so click the proxy if it isn't supported
|
|
7416
|
-
typeof this.form.requestSubmit === "function"
|
|
7417
|
-
|
|
7418
|
-
|
|
7430
|
+
if (typeof this.form.requestSubmit === "function") {
|
|
7431
|
+
this.form.requestSubmit(this.proxy);
|
|
7432
|
+
}
|
|
7433
|
+
else {
|
|
7434
|
+
this.proxy.click();
|
|
7435
|
+
}
|
|
7419
7436
|
if (!attached) {
|
|
7420
7437
|
this.detachProxy();
|
|
7421
7438
|
}
|
|
@@ -7473,10 +7490,14 @@
|
|
|
7473
7490
|
if (this.proxy instanceof HTMLInputElement) {
|
|
7474
7491
|
this.proxy.type = this.type;
|
|
7475
7492
|
}
|
|
7476
|
-
next === "submit"
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7493
|
+
if (next === "submit")
|
|
7494
|
+
this.addEventListener("click", this.handleSubmission);
|
|
7495
|
+
if (previous === "submit")
|
|
7496
|
+
this.removeEventListener("click", this.handleSubmission);
|
|
7497
|
+
if (next === "reset")
|
|
7498
|
+
this.addEventListener("click", this.handleFormReset);
|
|
7499
|
+
if (previous === "reset")
|
|
7500
|
+
this.removeEventListener("click", this.handleFormReset);
|
|
7480
7501
|
}
|
|
7481
7502
|
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
7482
7503
|
validate() {
|
|
@@ -12749,9 +12770,12 @@
|
|
|
12749
12770
|
if (this.proxy instanceof HTMLInputElement) {
|
|
12750
12771
|
this.proxy.readOnly = this.readOnly;
|
|
12751
12772
|
}
|
|
12752
|
-
this.readOnly
|
|
12753
|
-
|
|
12754
|
-
|
|
12773
|
+
if (this.readOnly) {
|
|
12774
|
+
this.classList.add("readonly");
|
|
12775
|
+
}
|
|
12776
|
+
else {
|
|
12777
|
+
this.classList.remove("readonly");
|
|
12778
|
+
}
|
|
12755
12779
|
}
|
|
12756
12780
|
constructor() {
|
|
12757
12781
|
super();
|
|
@@ -12794,7 +12818,12 @@
|
|
|
12794
12818
|
/**
|
|
12795
12819
|
* @deprecated - this behavior already exists in the template and should not exist in the class.
|
|
12796
12820
|
*/
|
|
12797
|
-
|
|
12821
|
+
if (this.checked) {
|
|
12822
|
+
this.classList.add("checked");
|
|
12823
|
+
}
|
|
12824
|
+
else {
|
|
12825
|
+
this.classList.remove("checked");
|
|
12826
|
+
}
|
|
12798
12827
|
}
|
|
12799
12828
|
};
|
|
12800
12829
|
__decorate([
|
|
@@ -12938,9 +12967,12 @@
|
|
|
12938
12967
|
tab.style[gridHorizontalProperty] = "";
|
|
12939
12968
|
tab.style[gridVerticalProperty] = "";
|
|
12940
12969
|
tab.style[gridProperty] = `${index + 1}`;
|
|
12941
|
-
!this.isHorizontal()
|
|
12942
|
-
|
|
12943
|
-
|
|
12970
|
+
if (!this.isHorizontal()) {
|
|
12971
|
+
tab.classList.add("vertical");
|
|
12972
|
+
}
|
|
12973
|
+
else {
|
|
12974
|
+
tab.classList.remove("vertical");
|
|
12975
|
+
}
|
|
12944
12976
|
});
|
|
12945
12977
|
};
|
|
12946
12978
|
this.setTabPanels = () => {
|
|
@@ -12949,9 +12981,12 @@
|
|
|
12949
12981
|
const tabpanelId = this.tabpanelIds[index];
|
|
12950
12982
|
tabpanel.setAttribute("id", tabpanelId);
|
|
12951
12983
|
tabpanel.setAttribute("aria-labelledby", tabId);
|
|
12952
|
-
this.activeTabIndex !== index
|
|
12953
|
-
|
|
12954
|
-
|
|
12984
|
+
if (this.activeTabIndex !== index) {
|
|
12985
|
+
tabpanel.setAttribute("hidden", "");
|
|
12986
|
+
}
|
|
12987
|
+
else {
|
|
12988
|
+
tabpanel.removeAttribute("hidden");
|
|
12989
|
+
}
|
|
12955
12990
|
});
|
|
12956
12991
|
};
|
|
12957
12992
|
this.handleTabClick = (event) => {
|
|
@@ -16357,25 +16392,25 @@
|
|
|
16357
16392
|
createFontTokens(tokenNames.headlineFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Headline1Family, Headline1Weight, Headline1Size, Headline1LineHeight);
|
|
16358
16393
|
createFontTokens(tokenNames.headlinePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Headline2Family, Headline2Weight, Headline2Size, Headline2LineHeight);
|
|
16359
16394
|
createFontTokens(tokenNames.titlePlus2Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title3Family, Title3Weight, Title3Size, Title3LineHeight);
|
|
16360
|
-
const [titlePlus1Font, titlePlus1FontColor
|
|
16395
|
+
const [titlePlus1Font, titlePlus1FontColor] = createFontTokens(tokenNames.titlePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title2Family, Title2Weight, Title2Size, Title2LineHeight);
|
|
16361
16396
|
createFontTokens(tokenNames.titleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Title1Family, Title1Weight, Title1Size, Title1LineHeight);
|
|
16362
|
-
const [subtitlePlus1Font
|
|
16363
|
-
const [subtitleFont, subtitleFontColor
|
|
16364
|
-
const [linkFont, linkFontColor, linkDisabledFontColor
|
|
16365
|
-
const [linkActiveFont, linkActiveFontColor
|
|
16366
|
-
const [linkProminentFont, linkProminentFontColor
|
|
16367
|
-
const [linkActiveProminentFont, linkActiveProminentFontColor
|
|
16368
|
-
const [placeholderFont, placeholderFontColor
|
|
16397
|
+
const [subtitlePlus1Font] = createFontTokens(tokenNames.subtitlePlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle2Family, Subtitle2Weight, Subtitle2Size, Subtitle2LineHeight);
|
|
16398
|
+
const [subtitleFont, subtitleFontColor] = createFontTokens(tokenNames.subtitleFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Subtitle1Family, Subtitle1Weight, Subtitle1Size, Subtitle1LineHeight);
|
|
16399
|
+
const [linkFont, linkFontColor, linkDisabledFontColor] = createFontTokens(tokenNames.linkFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
|
|
16400
|
+
const [linkActiveFont, linkActiveFontColor] = createFontTokens(tokenNames.linkActiveFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
|
|
16401
|
+
const [linkProminentFont, linkProminentFontColor] = createFontTokens(tokenNames.linkProminentFont, (element) => getColorForTheme(element, DigitalGreenDark105, PowerGreen, White), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
|
|
16402
|
+
const [linkActiveProminentFont, linkActiveProminentFontColor] = createFontTokens(tokenNames.linkActiveProminentFont, (element) => getColorForTheme(element, DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight);
|
|
16403
|
+
const [placeholderFont, placeholderFontColor] = createFontTokens(tokenNames.placeholderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), PlaceholderFamily, PlaceholderWeight, PlaceholderSize, PlaceholderLineHeight);
|
|
16369
16404
|
const [bodyFont, bodyFontColor, bodyDisabledFontColor, bodyFontFamily, bodyFontWeight, bodyFontSize, bodyFontLineHeight] = createFontTokens(tokenNames.bodyFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyFamily, BodyWeight, BodySize, BodyLineHeight);
|
|
16370
|
-
const [bodyEmphasizedFont, bodyEmphasizedFontColor, bodyEmphasizedDisabledFontColor, bodyEmphasizedFontFamily, bodyEmphasizedFontWeight
|
|
16405
|
+
const [bodyEmphasizedFont, bodyEmphasizedFontColor, bodyEmphasizedDisabledFontColor, bodyEmphasizedFontFamily, bodyEmphasizedFontWeight] = createFontTokens(tokenNames.bodyEmphasizedFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyEmphasizedFamily, BodyEmphasizedWeight, BodyEmphasizedSize, BodyEmphasizedLineHeight);
|
|
16371
16406
|
createFontTokens(tokenNames.bodyPlus1Font, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), Body2Family, Body2Weight, Body2Size, Body2LineHeight);
|
|
16372
16407
|
createFontTokens(tokenNames.bodyPlus1EmphasizedFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyEmphasized2Family, BodyEmphasized2Weight, BodyEmphasized2Size, BodyEmphasized2LineHeight);
|
|
16373
|
-
const [groupHeaderFont, groupHeaderFontColor
|
|
16408
|
+
const [groupHeaderFont, groupHeaderFontColor] = createFontTokens(tokenNames.groupHeaderFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), GroupLabel1Family, GroupLabel1Weight, GroupLabel1Size, GroupLabel1LineHeight);
|
|
16374
16409
|
const [controlLabelFont, controlLabelFontColor, controlLabelDisabledFontColor, controlLabelFontFamily, controlLabelFontWeight, controlLabelFontSize, controlLabelFontLineHeight] = createFontTokens(tokenNames.controlLabelFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), ControlLabel1Family, ControlLabel1Weight, ControlLabel1Size, ControlLabel1LineHeight);
|
|
16375
|
-
const [buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor
|
|
16376
|
-
const [tooltipCaptionFont, tooltipCaptionFontColor
|
|
16410
|
+
const [buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor] = createFontTokens(tokenNames.buttonLabelFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), ButtonLabel1Family, ButtonLabel1Weight, ButtonLabel1Size, ButtonLabel1LineHeight);
|
|
16411
|
+
const [tooltipCaptionFont, tooltipCaptionFontColor] = createFontTokens(tokenNames.tooltipCaptionFont, (element) => getDefaultFontColorForTheme(element), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), TooltipCaptionFamily, TooltipCaptionWeight, TooltipCaptionSize, TooltipCaptionLineHeight);
|
|
16377
16412
|
const [errorTextFont, errorTextFontColor, errorTextDisabledFontColor, errorTextFontFamily, errorTextFontWeight, errorTextFontSize, errorTextFontLineHeight] = createFontTokens(tokenNames.errorTextFont, (element) => getFailColorForTheme(element), (element) => hexToRgbaCssColor(getFailColorForTheme(element), 0.3), ErrorLightUiFamily, ErrorLightUiWeight, ErrorLightUiSize, TooltipCaptionLineHeight);
|
|
16378
|
-
const [tableHeaderFont, tableHeaderFontColor
|
|
16413
|
+
const [tableHeaderFont, tableHeaderFontColor] = createFontTokens(tokenNames.tableHeaderFont, (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.6), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), GridHeaderFamily, GridHeaderWeight, GridHeaderSize, TooltipCaptionLineHeight);
|
|
16379
16414
|
createFontTokens(tokenNames.mentionFont, (element) => getColorForTheme(element, DigitalGreenDark, PowerGreen, PowerGreen), (element) => hexToRgbaCssColor(getDefaultFontColorForTheme(element), 0.3), BodyFamily, BodyEmphasizedWeight, BodySize, BodyLineHeight);
|
|
16380
16415
|
// Font Transform Tokens
|
|
16381
16416
|
const groupHeaderTextTransform = DesignToken.create(styleNameFromTokenName(tokenNames.groupHeaderTextTransform)).withDefault('uppercase');
|
|
@@ -16549,7 +16584,6 @@
|
|
|
16549
16584
|
}
|
|
16550
16585
|
`;
|
|
16551
16586
|
|
|
16552
|
-
// prettier-ignore
|
|
16553
16587
|
const template$S = (_context, definition) => html `${
|
|
16554
16588
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16555
16589
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
@@ -18754,7 +18788,6 @@
|
|
|
18754
18788
|
cssCustomPropertyName: null
|
|
18755
18789
|
}).withDefault(coreLabelDefaults.scrollForwardLabel);
|
|
18756
18790
|
|
|
18757
|
-
// prettier-ignore
|
|
18758
18791
|
const template$M = (context, definition) => html `
|
|
18759
18792
|
<div
|
|
18760
18793
|
class="tab-bar"
|
|
@@ -19611,7 +19644,6 @@
|
|
|
19611
19644
|
information: 'information'
|
|
19612
19645
|
};
|
|
19613
19646
|
|
|
19614
|
-
// prettier-ignore
|
|
19615
19647
|
const template$K = html `
|
|
19616
19648
|
<${themeProviderTag} theme="${Theme.color}">
|
|
19617
19649
|
<div class="container"
|
|
@@ -19739,7 +19771,6 @@
|
|
|
19739
19771
|
* The template for the {@link @ni/fast-foundation#Breadcrumb} component.
|
|
19740
19772
|
* @public
|
|
19741
19773
|
*/
|
|
19742
|
-
// prettier-ignore
|
|
19743
19774
|
const breadcrumbTemplate = (_context, _definition) => html `
|
|
19744
19775
|
<template role="navigation">
|
|
19745
19776
|
${when(x => x.showScrollButtons, html `
|
|
@@ -20565,8 +20596,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20565
20596
|
}
|
|
20566
20597
|
`));
|
|
20567
20598
|
|
|
20568
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
20569
|
-
// prettier-ignore
|
|
20570
20599
|
const template$H = (context, definition) => html `
|
|
20571
20600
|
<div
|
|
20572
20601
|
role="button"
|
|
@@ -20619,7 +20648,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20619
20648
|
${endSlotTemplate(context, definition)}
|
|
20620
20649
|
</div>
|
|
20621
20650
|
`;
|
|
20622
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
20623
20651
|
|
|
20624
20652
|
/**
|
|
20625
20653
|
* A nimble-styled toggle button control.
|
|
@@ -21120,7 +21148,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21120
21148
|
*
|
|
21121
21149
|
* This function is intended to be used with components leveraging `mixinRequiredVisiblePattern`.
|
|
21122
21150
|
*/
|
|
21123
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
21124
21151
|
function createRequiredVisibleLabelTemplate(labelTemplate) {
|
|
21125
21152
|
return html `
|
|
21126
21153
|
<div class="annotated-label">
|
|
@@ -21137,8 +21164,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21137
21164
|
<slot></slot>
|
|
21138
21165
|
</label>
|
|
21139
21166
|
`);
|
|
21140
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
21141
|
-
// prettier-ignore
|
|
21142
21167
|
const template$G = (context, definition) => html `
|
|
21143
21168
|
<template
|
|
21144
21169
|
aria-disabled="${x => x.ariaDisabled}"
|
|
@@ -25524,7 +25549,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25524
25549
|
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25525
25550
|
* @public
|
|
25526
25551
|
*/
|
|
25527
|
-
// prettier-ignore
|
|
25528
25552
|
const template$D = (context, definition) => html `
|
|
25529
25553
|
<template
|
|
25530
25554
|
aria-checked="${x => x.ariaChecked}"
|
|
@@ -25706,7 +25730,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25706
25730
|
const isListOption$1 = (n) => {
|
|
25707
25731
|
return n instanceof ListOption;
|
|
25708
25732
|
};
|
|
25709
|
-
// prettier-ignore
|
|
25710
25733
|
const template$C = html `
|
|
25711
25734
|
<template
|
|
25712
25735
|
role="group"
|
|
@@ -26298,8 +26321,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26298
26321
|
observable
|
|
26299
26322
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
26300
26323
|
|
|
26301
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
26302
|
-
// prettier-ignore
|
|
26303
26324
|
const template$A = () => html `
|
|
26304
26325
|
<template
|
|
26305
26326
|
slot="${x => {
|
|
@@ -26316,7 +26337,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26316
26337
|
<slot ${slotted('items')}></slot>
|
|
26317
26338
|
</template>
|
|
26318
26339
|
`;
|
|
26319
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
26320
26340
|
|
|
26321
26341
|
const styles$G = css `
|
|
26322
26342
|
${display$2('grid')}
|
|
@@ -26423,7 +26443,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26423
26443
|
}
|
|
26424
26444
|
`;
|
|
26425
26445
|
|
|
26426
|
-
// prettier-ignore
|
|
26427
26446
|
const template$z = html `
|
|
26428
26447
|
<template
|
|
26429
26448
|
?open="${x => x.open}"
|
|
@@ -27366,7 +27385,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27366
27385
|
`;
|
|
27367
27386
|
|
|
27368
27387
|
const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
|
|
27369
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
27370
27388
|
const template$x = html `
|
|
27371
27389
|
<template
|
|
27372
27390
|
role="radiogroup"
|
|
@@ -34565,7 +34583,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
34565
34583
|
if (desc.dom.nodeType == 1 && (desc.node.isBlock && desc.parent || !desc.contentDOM) &&
|
|
34566
34584
|
// Ignore elements with zero-size bounding rectangles
|
|
34567
34585
|
((rect = desc.dom.getBoundingClientRect()).width || rect.height)) {
|
|
34568
|
-
if (desc.node.isBlock && desc.parent) {
|
|
34586
|
+
if (desc.node.isBlock && desc.parent && !/^T(R|BODY|HEAD|FOOT)$/.test(desc.dom.nodeName)) {
|
|
34569
34587
|
// Only apply the horizontal test to the innermost block. Vertical for any parent.
|
|
34570
34588
|
if (!sawBlock && rect.left > coords.left || rect.top > coords.top)
|
|
34571
34589
|
outsideBlock = desc.posBefore;
|
|
@@ -35223,7 +35241,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
35223
35241
|
// (one where the focus is before the anchor), but not all
|
|
35224
35242
|
// browsers support it yet.
|
|
35225
35243
|
let domSelExtended = false;
|
|
35226
|
-
if ((domSel.extend || anchor == head) && !brKludge) {
|
|
35244
|
+
if ((domSel.extend || anchor == head) && !(brKludge && gecko)) {
|
|
35227
35245
|
domSel.collapse(anchorDOM.node, anchorDOM.offset);
|
|
35228
35246
|
try {
|
|
35229
35247
|
if (anchor != head)
|
|
@@ -35635,17 +35653,18 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
35635
35653
|
}
|
|
35636
35654
|
// Mark this node as being the selected node.
|
|
35637
35655
|
selectNode() {
|
|
35638
|
-
if (this.nodeDOM.nodeType == 1)
|
|
35656
|
+
if (this.nodeDOM.nodeType == 1) {
|
|
35639
35657
|
this.nodeDOM.classList.add("ProseMirror-selectednode");
|
|
35640
|
-
|
|
35641
|
-
|
|
35658
|
+
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
35659
|
+
this.nodeDOM.draggable = true;
|
|
35660
|
+
}
|
|
35642
35661
|
}
|
|
35643
35662
|
// Remove selected node marking from this node.
|
|
35644
35663
|
deselectNode() {
|
|
35645
35664
|
if (this.nodeDOM.nodeType == 1) {
|
|
35646
35665
|
this.nodeDOM.classList.remove("ProseMirror-selectednode");
|
|
35647
35666
|
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
35648
|
-
this.
|
|
35667
|
+
this.nodeDOM.removeAttribute("draggable");
|
|
35649
35668
|
}
|
|
35650
35669
|
}
|
|
35651
35670
|
get domAtom() { return this.node.isAtom; }
|
|
@@ -36484,17 +36503,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
36484
36503
|
});
|
|
36485
36504
|
}
|
|
36486
36505
|
function selectCursorWrapper(view) {
|
|
36487
|
-
let domSel = view.domSelection()
|
|
36506
|
+
let domSel = view.domSelection();
|
|
36488
36507
|
if (!domSel)
|
|
36489
36508
|
return;
|
|
36490
36509
|
let node = view.cursorWrapper.dom, img = node.nodeName == "IMG";
|
|
36491
36510
|
if (img)
|
|
36492
|
-
|
|
36511
|
+
domSel.collapse(node.parentNode, domIndex(node) + 1);
|
|
36493
36512
|
else
|
|
36494
|
-
|
|
36495
|
-
range.collapse(true);
|
|
36496
|
-
domSel.removeAllRanges();
|
|
36497
|
-
domSel.addRange(range);
|
|
36513
|
+
domSel.collapse(node, 0);
|
|
36498
36514
|
// Kludge to kill 'control selection' in IE11 when selecting an
|
|
36499
36515
|
// invisible cursor wrapper, since that would result in those weird
|
|
36500
36516
|
// resize handles and a selection that considers the absolutely
|
|
@@ -36972,11 +36988,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
36972
36988
|
let dom, slice;
|
|
36973
36989
|
if (!html && !text)
|
|
36974
36990
|
return null;
|
|
36975
|
-
let asText = text && (plainText || inCode || !html);
|
|
36991
|
+
let asText = !!text && (plainText || inCode || !html);
|
|
36976
36992
|
if (asText) {
|
|
36977
36993
|
view.someProp("transformPastedText", f => { text = f(text, inCode || plainText, view); });
|
|
36978
|
-
if (inCode)
|
|
36979
|
-
|
|
36994
|
+
if (inCode) {
|
|
36995
|
+
slice = new Slice(Fragment.from(view.state.schema.text(text.replace(/\r\n?/g, "\n"))), 0, 0);
|
|
36996
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, true); });
|
|
36997
|
+
return slice;
|
|
36998
|
+
}
|
|
36980
36999
|
let parsed = view.someProp("clipboardTextParser", f => f(text, $context, plainText, view));
|
|
36981
37000
|
if (parsed) {
|
|
36982
37001
|
slice = parsed;
|
|
@@ -37034,7 +37053,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37034
37053
|
slice = closeSlice(slice, openStart, openEnd);
|
|
37035
37054
|
}
|
|
37036
37055
|
}
|
|
37037
|
-
view.someProp("transformPasted", f => { slice = f(slice, view); });
|
|
37056
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, asText); });
|
|
37038
37057
|
return slice;
|
|
37039
37058
|
}
|
|
37040
37059
|
const inlineParents = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
|
|
@@ -37496,7 +37515,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37496
37515
|
}
|
|
37497
37516
|
const target = flushed ? null : event.target;
|
|
37498
37517
|
const targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
37499
|
-
this.target = targetDesc && targetDesc.
|
|
37518
|
+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
37500
37519
|
let { selection } = view.state;
|
|
37501
37520
|
if (event.button == 0 &&
|
|
37502
37521
|
targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false ||
|
|
@@ -37893,7 +37912,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37893
37912
|
let $mouse = view.state.doc.resolve(eventPos.pos);
|
|
37894
37913
|
let slice = dragging && dragging.slice;
|
|
37895
37914
|
if (slice) {
|
|
37896
|
-
view.someProp("transformPasted", f => { slice = f(slice, view); });
|
|
37915
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, false); });
|
|
37897
37916
|
}
|
|
37898
37917
|
else {
|
|
37899
37918
|
slice = parseFromClipboard(view, getText$1(event.dataTransfer), brokenClipboardAPI ? null : event.dataTransfer.getData("text/html"), false, $mouse);
|
|
@@ -39079,7 +39098,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39079
39098
|
}
|
|
39080
39099
|
return null;
|
|
39081
39100
|
}
|
|
39082
|
-
const isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
39101
|
+
const isInline = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
|
|
39083
39102
|
function readDOMChange(view, from, to, typeOver, addedNodes) {
|
|
39084
39103
|
let compositionID = view.input.compositionPendingChanges || (view.composing ? view.input.compositionID : 0);
|
|
39085
39104
|
view.input.compositionPendingChanges = 0;
|
|
@@ -39178,16 +39197,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39178
39197
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
39179
39198
|
let $fromA = doc.resolve(change.start);
|
|
39180
39199
|
let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
|
|
39181
|
-
let nextSel;
|
|
39182
39200
|
// If this looks like the effect of pressing Enter (or was recorded
|
|
39183
39201
|
// as being an iOS enter press), just dispatch an Enter key instead.
|
|
39184
39202
|
if (((ios && view.input.lastIOSEnter > Date.now() - 225 &&
|
|
39185
39203
|
(!inlineChange || addedNodes.some(n => n.nodeName == "DIV" || n.nodeName == "P"))) ||
|
|
39186
39204
|
(!inlineChange && $from.pos < parse.doc.content.size &&
|
|
39187
39205
|
(!$from.sameParent($to) || !$from.parent.inlineContent) &&
|
|
39188
|
-
!/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")) &&
|
|
39189
|
-
(nextSel = Selection$2.findFrom(parse.doc.resolve($from.pos + 1), 1, true)) &&
|
|
39190
|
-
nextSel.head > $from.pos)) &&
|
|
39206
|
+
$from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")))) &&
|
|
39191
39207
|
view.someProp("handleKeyDown", f => f(view, keyEvent(13, "Enter")))) {
|
|
39192
39208
|
view.input.lastIOSEnter = 0;
|
|
39193
39209
|
return;
|
|
@@ -45935,8 +45951,6 @@ img.ProseMirror-separator {
|
|
|
45935
45951
|
}
|
|
45936
45952
|
`;
|
|
45937
45953
|
|
|
45938
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
45939
|
-
// prettier-ignore
|
|
45940
45954
|
const template$w = html `
|
|
45941
45955
|
<template>
|
|
45942
45956
|
<${anchoredRegionTag}
|
|
@@ -46233,7 +46247,6 @@ img.ProseMirror-separator {
|
|
|
46233
46247
|
.register(nimbleRichTextMentionListbox());
|
|
46234
46248
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
46235
46249
|
|
|
46236
|
-
// prettier-ignore
|
|
46237
46250
|
const template$v = html `
|
|
46238
46251
|
<template
|
|
46239
46252
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
@@ -47723,7 +47736,7 @@ img.ProseMirror-separator {
|
|
|
47723
47736
|
|
|
47724
47737
|
// Merge objects
|
|
47725
47738
|
//
|
|
47726
|
-
function assign$
|
|
47739
|
+
function assign$1 (obj /* from1, from2, from3, ... */) {
|
|
47727
47740
|
const sources = Array.prototype.slice.call(arguments, 1);
|
|
47728
47741
|
|
|
47729
47742
|
sources.forEach(function (source) {
|
|
@@ -47993,7 +48006,7 @@ img.ProseMirror-separator {
|
|
|
47993
48006
|
var utils = /*#__PURE__*/Object.freeze({
|
|
47994
48007
|
__proto__: null,
|
|
47995
48008
|
arrayReplaceAt: arrayReplaceAt,
|
|
47996
|
-
assign: assign$
|
|
48009
|
+
assign: assign$1,
|
|
47997
48010
|
escapeHtml: escapeHtml,
|
|
47998
48011
|
escapeRE: escapeRE$1,
|
|
47999
48012
|
fromCodePoint: fromCodePoint,
|
|
@@ -48353,7 +48366,7 @@ img.ProseMirror-separator {
|
|
|
48353
48366
|
* See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs)
|
|
48354
48367
|
* for more details and examples.
|
|
48355
48368
|
**/
|
|
48356
|
-
this.rules = assign$
|
|
48369
|
+
this.rules = assign$1({}, default_rules);
|
|
48357
48370
|
}
|
|
48358
48371
|
|
|
48359
48372
|
/**
|
|
@@ -53135,7 +53148,7 @@ img.ProseMirror-separator {
|
|
|
53135
53148
|
|
|
53136
53149
|
// Merge objects
|
|
53137
53150
|
//
|
|
53138
|
-
function assign
|
|
53151
|
+
function assign (obj /* from1, from2, from3, ... */) {
|
|
53139
53152
|
const sources = Array.prototype.slice.call(arguments, 1);
|
|
53140
53153
|
|
|
53141
53154
|
sources.forEach(function (source) {
|
|
@@ -53496,7 +53509,7 @@ img.ProseMirror-separator {
|
|
|
53496
53509
|
}
|
|
53497
53510
|
}
|
|
53498
53511
|
|
|
53499
|
-
this.__opts__ = assign
|
|
53512
|
+
this.__opts__ = assign({}, defaultOptions, options);
|
|
53500
53513
|
|
|
53501
53514
|
// Cache last tested result. Used to skip repeating steps on next `match` call.
|
|
53502
53515
|
this.__index__ = -1;
|
|
@@ -53504,7 +53517,7 @@ img.ProseMirror-separator {
|
|
|
53504
53517
|
this.__schema__ = '';
|
|
53505
53518
|
this.__text_cache__ = '';
|
|
53506
53519
|
|
|
53507
|
-
this.__schemas__ = assign
|
|
53520
|
+
this.__schemas__ = assign({}, defaultSchemas, schemas);
|
|
53508
53521
|
this.__compiled__ = {};
|
|
53509
53522
|
|
|
53510
53523
|
this.__tlds__ = tlds_default;
|
|
@@ -53535,7 +53548,7 @@ img.ProseMirror-separator {
|
|
|
53535
53548
|
* Set recognition options for links without schema.
|
|
53536
53549
|
**/
|
|
53537
53550
|
LinkifyIt.prototype.set = function set (options) {
|
|
53538
|
-
this.__opts__ = assign
|
|
53551
|
+
this.__opts__ = assign(this.__opts__, options);
|
|
53539
53552
|
return this
|
|
53540
53553
|
};
|
|
53541
53554
|
|
|
@@ -54738,7 +54751,7 @@ img.ProseMirror-separator {
|
|
|
54738
54751
|
* Link components parser functions, useful to write plugins. See details
|
|
54739
54752
|
* [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).
|
|
54740
54753
|
**/
|
|
54741
|
-
this.helpers = assign$
|
|
54754
|
+
this.helpers = assign$1({}, helpers);
|
|
54742
54755
|
|
|
54743
54756
|
this.options = {};
|
|
54744
54757
|
this.configure(presetName);
|
|
@@ -54766,7 +54779,7 @@ img.ProseMirror-separator {
|
|
|
54766
54779
|
* config.
|
|
54767
54780
|
**/
|
|
54768
54781
|
MarkdownIt.prototype.set = function (options) {
|
|
54769
|
-
assign$
|
|
54782
|
+
assign$1(this.options, options);
|
|
54770
54783
|
return this
|
|
54771
54784
|
};
|
|
54772
54785
|
|
|
@@ -57399,24 +57412,10 @@ img.ProseMirror-separator {
|
|
|
57399
57412
|
// THIS FILE IS AUTOMATICALLY GENERATED DO NOT EDIT DIRECTLY
|
|
57400
57413
|
// See update-tlds.js for encoding/decoding format
|
|
57401
57414
|
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
57402
|
-
const encodedTlds = '
|
|
57415
|
+
const encodedTlds = 'aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2';
|
|
57403
57416
|
// Internationalized domain names containing non-ASCII
|
|
57404
57417
|
const encodedUtlds = 'ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2';
|
|
57405
57418
|
|
|
57406
|
-
/**
|
|
57407
|
-
* @template A
|
|
57408
|
-
* @template B
|
|
57409
|
-
* @param {A} target
|
|
57410
|
-
* @param {B} properties
|
|
57411
|
-
* @return {A & B}
|
|
57412
|
-
*/
|
|
57413
|
-
const assign = (target, properties) => {
|
|
57414
|
-
for (const key in properties) {
|
|
57415
|
-
target[key] = properties[key];
|
|
57416
|
-
}
|
|
57417
|
-
return target;
|
|
57418
|
-
};
|
|
57419
|
-
|
|
57420
57419
|
/**
|
|
57421
57420
|
* Finite State Machine generation utilities
|
|
57422
57421
|
*/
|
|
@@ -57679,7 +57678,7 @@ img.ProseMirror-separator {
|
|
|
57679
57678
|
templateState = state.go(input);
|
|
57680
57679
|
if (templateState) {
|
|
57681
57680
|
nextState = new State();
|
|
57682
|
-
assign(nextState.j, templateState.j);
|
|
57681
|
+
Object.assign(nextState.j, templateState.j);
|
|
57683
57682
|
nextState.jr.push.apply(nextState.jr, templateState.jr);
|
|
57684
57683
|
nextState.jd = templateState.jd;
|
|
57685
57684
|
nextState.t = templateState.t;
|
|
@@ -57690,7 +57689,7 @@ img.ProseMirror-separator {
|
|
|
57690
57689
|
// Ensure newly token is in the same groups as the old token
|
|
57691
57690
|
if (groups) {
|
|
57692
57691
|
if (nextState.t && typeof nextState.t === 'string') {
|
|
57693
|
-
const allFlags = assign(flagsForToken(nextState.t, groups), flags);
|
|
57692
|
+
const allFlags = Object.assign(flagsForToken(nextState.t, groups), flags);
|
|
57694
57693
|
addToGroups(t, allFlags, groups);
|
|
57695
57694
|
} else if (flags) {
|
|
57696
57695
|
addToGroups(t, flags, groups);
|
|
@@ -58129,7 +58128,7 @@ img.ProseMirror-separator {
|
|
|
58129
58128
|
Start.jd = new State(SYM);
|
|
58130
58129
|
return {
|
|
58131
58130
|
start: Start,
|
|
58132
|
-
tokens: assign({
|
|
58131
|
+
tokens: Object.assign({
|
|
58133
58132
|
groups
|
|
58134
58133
|
}, tk)
|
|
58135
58134
|
};
|
|
@@ -58398,9 +58397,9 @@ img.ProseMirror-separator {
|
|
|
58398
58397
|
* Similar to render option
|
|
58399
58398
|
*/
|
|
58400
58399
|
function Options(opts, defaultRender = null) {
|
|
58401
|
-
let o = assign({}, defaults);
|
|
58400
|
+
let o = Object.assign({}, defaults);
|
|
58402
58401
|
if (opts) {
|
|
58403
|
-
o = assign(o, opts instanceof Options ? opts.o : opts);
|
|
58402
|
+
o = Object.assign(o, opts instanceof Options ? opts.o : opts);
|
|
58404
58403
|
}
|
|
58405
58404
|
|
|
58406
58405
|
// Ensure all ignored tags are uppercase
|
|
@@ -58645,7 +58644,7 @@ img.ProseMirror-separator {
|
|
|
58645
58644
|
attributes.rel = rel;
|
|
58646
58645
|
}
|
|
58647
58646
|
if (attrs) {
|
|
58648
|
-
assign(attributes, attrs);
|
|
58647
|
+
Object.assign(attributes, attrs);
|
|
58649
58648
|
}
|
|
58650
58649
|
return {
|
|
58651
58650
|
tagName,
|
|
@@ -61591,8 +61590,6 @@ img.ProseMirror-separator {
|
|
|
61591
61590
|
}
|
|
61592
61591
|
`));
|
|
61593
61592
|
|
|
61594
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
61595
|
-
// prettier-ignore
|
|
61596
61593
|
const template$t = html `
|
|
61597
61594
|
<template role="progressbar">
|
|
61598
61595
|
${''
|
|
@@ -61610,7 +61607,6 @@ img.ProseMirror-separator {
|
|
|
61610
61607
|
</div>
|
|
61611
61608
|
</template>
|
|
61612
61609
|
`;
|
|
61613
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
61614
61610
|
|
|
61615
61611
|
/**
|
|
61616
61612
|
* Types of spinner appearance.
|
|
@@ -61658,8 +61654,6 @@ img.ProseMirror-separator {
|
|
|
61658
61654
|
<slot ${ref('labelSlot')}></slot>
|
|
61659
61655
|
</label>
|
|
61660
61656
|
`);
|
|
61661
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
61662
|
-
// prettier-ignore
|
|
61663
61657
|
const template$s = (context, definition) => html `
|
|
61664
61658
|
<template
|
|
61665
61659
|
class="${x => [
|
|
@@ -61790,7 +61784,6 @@ img.ProseMirror-separator {
|
|
|
61790
61784
|
</${anchoredRegionTag}>
|
|
61791
61785
|
</template>
|
|
61792
61786
|
`;
|
|
61793
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
61794
61787
|
|
|
61795
61788
|
// Based on: https://github.com/microsoft/fast/blob/%40microsoft/fast-foundation_v2.49.5/packages/web-components/fast-foundation/src/select/select.form-associated.ts
|
|
61796
61789
|
/* eslint-disable max-classes-per-file */
|
|
@@ -63053,7 +63046,6 @@ img.ProseMirror-separator {
|
|
|
63053
63046
|
}
|
|
63054
63047
|
`));
|
|
63055
63048
|
|
|
63056
|
-
// prettier-ignore
|
|
63057
63049
|
const template$r = html `
|
|
63058
63050
|
<template
|
|
63059
63051
|
role="switch"
|
|
@@ -66632,7 +66624,6 @@ img.ProseMirror-separator {
|
|
|
66632
66624
|
throw new Error(`Cell view tag name (${cellViewTag}) must evaluate to an element extending TableCellView`);
|
|
66633
66625
|
}
|
|
66634
66626
|
};
|
|
66635
|
-
// prettier-ignore
|
|
66636
66627
|
const createCellViewTemplate = (cellViewTag) => {
|
|
66637
66628
|
validateCellViewTemplate(cellViewTag);
|
|
66638
66629
|
return html `
|
|
@@ -67217,7 +67208,6 @@ focus outline in that case.
|
|
|
67217
67208
|
}
|
|
67218
67209
|
`;
|
|
67219
67210
|
|
|
67220
|
-
// prettier-ignore
|
|
67221
67211
|
const template$q = html `
|
|
67222
67212
|
<template role="columnheader"
|
|
67223
67213
|
class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
|
|
@@ -67552,7 +67542,6 @@ focus outline in that case.
|
|
|
67552
67542
|
}
|
|
67553
67543
|
`;
|
|
67554
67544
|
|
|
67555
|
-
// prettier-ignore
|
|
67556
67545
|
const template$p = html `
|
|
67557
67546
|
<template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
|
|
67558
67547
|
@focusin="${x => x.onCellFocusIn()}"
|
|
@@ -67656,7 +67645,6 @@ focus outline in that case.
|
|
|
67656
67645
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
|
|
67657
67646
|
const tableCellTag = 'nimble-table-cell';
|
|
67658
67647
|
|
|
67659
|
-
// prettier-ignore
|
|
67660
67648
|
const template$o = html `
|
|
67661
67649
|
<template
|
|
67662
67650
|
role="row"
|
|
@@ -68147,8 +68135,6 @@ focus outline in that case.
|
|
|
68147
68135
|
}
|
|
68148
68136
|
`));
|
|
68149
68137
|
|
|
68150
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
68151
|
-
// prettier-ignore
|
|
68152
68138
|
const template$n = html `
|
|
68153
68139
|
<template
|
|
68154
68140
|
role="row"
|
|
@@ -68189,7 +68175,6 @@ focus outline in that case.
|
|
|
68189
68175
|
</div>
|
|
68190
68176
|
</template>
|
|
68191
68177
|
`;
|
|
68192
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
68193
68178
|
|
|
68194
68179
|
/**
|
|
68195
68180
|
* A styled cell that is used within the nimble-table-row.
|
|
@@ -68313,7 +68298,6 @@ focus outline in that case.
|
|
|
68313
68298
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
|
|
68314
68299
|
const tableGroupRowTag = 'nimble-table-group-row';
|
|
68315
68300
|
|
|
68316
|
-
// prettier-ignore
|
|
68317
68301
|
const template$m = html `
|
|
68318
68302
|
<template
|
|
68319
68303
|
role="treegrid"
|
|
@@ -71293,8 +71277,7 @@ focus outline in that case.
|
|
|
71293
71277
|
return { headerActions, columnHeaders };
|
|
71294
71278
|
}
|
|
71295
71279
|
canFocusColumnHeaders() {
|
|
71296
|
-
return (this.table.columns.find(c => !c.columnInternals.sortingDisabled)
|
|
71297
|
-
!== undefined);
|
|
71280
|
+
return (this.table.columns.find(c => !c.columnInternals.sortingDisabled) !== undefined);
|
|
71298
71281
|
}
|
|
71299
71282
|
getCurrentRow() {
|
|
71300
71283
|
return this.table.rowElements[this.getCurrentRowVisibleIndex()];
|
|
@@ -72449,7 +72432,6 @@ focus outline in that case.
|
|
|
72449
72432
|
|
|
72450
72433
|
// Avoiding a wrapping <template> and be careful about starting and ending whitspace
|
|
72451
72434
|
// so the template can be composed into other column header templates
|
|
72452
|
-
// prettier-ignore
|
|
72453
72435
|
const template$l = html `<span
|
|
72454
72436
|
${overflow('hasOverflow')}
|
|
72455
72437
|
class="header-content"
|
|
@@ -72556,8 +72538,6 @@ focus outline in that case.
|
|
|
72556
72538
|
}
|
|
72557
72539
|
`;
|
|
72558
72540
|
|
|
72559
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
72560
|
-
// prettier-ignore
|
|
72561
72541
|
const template$k = html `
|
|
72562
72542
|
<template
|
|
72563
72543
|
@click="${(x, c) => {
|
|
@@ -72597,7 +72577,6 @@ focus outline in that case.
|
|
|
72597
72577
|
</span>`)}
|
|
72598
72578
|
</template>
|
|
72599
72579
|
`;
|
|
72600
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
72601
72580
|
|
|
72602
72581
|
/**
|
|
72603
72582
|
* A cell view for displaying links
|
|
@@ -73076,7 +73055,6 @@ focus outline in that case.
|
|
|
73076
73055
|
.register(tableColumnDateTextGroupHeaderView());
|
|
73077
73056
|
const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
|
|
73078
73057
|
|
|
73079
|
-
// prettier-ignore
|
|
73080
73058
|
const template$i = html `
|
|
73081
73059
|
<template
|
|
73082
73060
|
class="
|
|
@@ -73853,7 +73831,6 @@ focus outline in that case.
|
|
|
73853
73831
|
}
|
|
73854
73832
|
`;
|
|
73855
73833
|
|
|
73856
|
-
// prettier-ignore
|
|
73857
73834
|
const template$g = html `
|
|
73858
73835
|
${when(x => x.visualizationTemplate, html `
|
|
73859
73836
|
<span class="reserve-icon-size">
|
|
@@ -74030,7 +74007,6 @@ focus outline in that case.
|
|
|
74030
74007
|
}
|
|
74031
74008
|
`;
|
|
74032
74009
|
|
|
74033
|
-
// prettier-ignore
|
|
74034
74010
|
const template$f = html `
|
|
74035
74011
|
${when(x => x.visualizationTemplate, html `
|
|
74036
74012
|
<span class="reserve-icon-size">
|
|
@@ -74378,7 +74354,6 @@ focus outline in that case.
|
|
|
74378
74354
|
|
|
74379
74355
|
// Avoiding a wrapping <template> and be careful about starting and ending whitespace
|
|
74380
74356
|
// so the template can be composed into other column header templates
|
|
74381
|
-
// prettier-ignore
|
|
74382
74357
|
const template$c = html `<span
|
|
74383
74358
|
${overflow('hasOverflow')}
|
|
74384
74359
|
class="header-content"
|
|
@@ -75161,8 +75136,6 @@ focus outline in that case.
|
|
|
75161
75136
|
}
|
|
75162
75137
|
`;
|
|
75163
75138
|
|
|
75164
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
75165
|
-
// prettier-ignore
|
|
75166
75139
|
const template$b = (context, definition) => html `
|
|
75167
75140
|
<template slot="end">
|
|
75168
75141
|
${when(x => x.defaultSlottedElements.length > 0, html `
|
|
@@ -76034,7 +76007,6 @@ focus outline in that case.
|
|
|
76034
76007
|
}
|
|
76035
76008
|
`));
|
|
76036
76009
|
|
|
76037
|
-
// prettier-ignore
|
|
76038
76010
|
const template$8 = html `
|
|
76039
76011
|
${when(x => x.tooltipVisible, html `
|
|
76040
76012
|
<${anchoredRegionTag}
|
|
@@ -76412,7 +76384,6 @@ focus outline in that case.
|
|
|
76412
76384
|
}
|
|
76413
76385
|
`;
|
|
76414
76386
|
|
|
76415
|
-
// prettier-ignore
|
|
76416
76387
|
const template$7 = html `
|
|
76417
76388
|
<template
|
|
76418
76389
|
role="tree"
|
|
@@ -93909,8 +93880,6 @@ focus outline in that case.
|
|
|
93909
93880
|
}
|
|
93910
93881
|
`;
|
|
93911
93882
|
|
|
93912
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
93913
|
-
// prettier-ignore
|
|
93914
93883
|
const template$4 = html `
|
|
93915
93884
|
<div class="messages"><slot></slot></div>
|
|
93916
93885
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
@@ -93918,7 +93887,6 @@ focus outline in that case.
|
|
|
93918
93887
|
</slot>
|
|
93919
93888
|
</div>
|
|
93920
93889
|
`;
|
|
93921
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
93922
93890
|
|
|
93923
93891
|
/**
|
|
93924
93892
|
* Appearances of chat conversation.
|
|
@@ -94035,8 +94003,6 @@ focus outline in that case.
|
|
|
94035
94003
|
}
|
|
94036
94004
|
`;
|
|
94037
94005
|
|
|
94038
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
94039
|
-
// prettier-ignore
|
|
94040
94006
|
const template$3 = html `
|
|
94041
94007
|
<div class="container">
|
|
94042
94008
|
<textarea
|
|
@@ -94061,7 +94027,6 @@ focus outline in that case.
|
|
|
94061
94027
|
<${iconPaperPlaneTag} slot="start"><${iconPaperPlaneTag}/>
|
|
94062
94028
|
</${buttonTag}>
|
|
94063
94029
|
</div>`;
|
|
94064
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
94065
94030
|
|
|
94066
94031
|
/**
|
|
94067
94032
|
* A Spright component for composing and sending a chat message
|
|
@@ -94246,8 +94211,6 @@ focus outline in that case.
|
|
|
94246
94211
|
}
|
|
94247
94212
|
`;
|
|
94248
94213
|
|
|
94249
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
94250
|
-
// prettier-ignore
|
|
94251
94214
|
const template$2 = (context, definition) => html `
|
|
94252
94215
|
<div class="container">
|
|
94253
94216
|
${startSlotTemplate(context, definition)}
|
|
@@ -94263,7 +94226,6 @@ focus outline in that case.
|
|
|
94263
94226
|
${endSlotTemplate(context, definition)}
|
|
94264
94227
|
</div>
|
|
94265
94228
|
`;
|
|
94266
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
94267
94229
|
|
|
94268
94230
|
/**
|
|
94269
94231
|
* A Spright component for displaying a chat message
|