@ni/ok-components 0.0.3 → 0.0.5
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) => {
|
|
@@ -14768,6 +14803,258 @@
|
|
|
14768
14803
|
*/
|
|
14769
14804
|
const focusVisible = `:${focusVisible$1}`;
|
|
14770
14805
|
|
|
14806
|
+
const Theme = {
|
|
14807
|
+
light: 'light',
|
|
14808
|
+
dark: 'dark',
|
|
14809
|
+
color: 'color'
|
|
14810
|
+
};
|
|
14811
|
+
|
|
14812
|
+
/**
|
|
14813
|
+
* Design token names should follow the token naming convention:
|
|
14814
|
+
* See: https://github.com/ni/nimble/blob/main/packages/nimble-components/CONTRIBUTING.md#token-naming
|
|
14815
|
+
*/
|
|
14816
|
+
const tokenNames = {
|
|
14817
|
+
actionRgbPartialColor: 'action-rgb-partial-color',
|
|
14818
|
+
applicationBackgroundColor: 'application-background-color',
|
|
14819
|
+
dividerBackgroundColor: 'divider-background-color',
|
|
14820
|
+
headerBackgroundColor: 'header-background-color',
|
|
14821
|
+
sectionBackgroundColor: 'section-background-color',
|
|
14822
|
+
sectionBackgroundImage: 'section-background-image',
|
|
14823
|
+
buttonFillPrimaryColor: 'button-fill-primary-color',
|
|
14824
|
+
buttonPrimaryFontColor: 'button-primary-font-color',
|
|
14825
|
+
buttonFillAccentColor: 'button-fill-accent-color',
|
|
14826
|
+
buttonAccentBlockFontColor: 'button-accent-block-font-color',
|
|
14827
|
+
buttonAccentOutlineFontColor: 'button-accent-outline-font-color',
|
|
14828
|
+
buttonBorderAccentOutlineColor: 'button-border-accent-outline-color',
|
|
14829
|
+
fillSelectedColor: 'fill-selected-color',
|
|
14830
|
+
fillSelectedRgbPartialColor: 'fill-selected-rgb-partial-color',
|
|
14831
|
+
fillHoverSelectedColor: 'fill-hover-selected-color',
|
|
14832
|
+
fillHoverColor: 'fill-hover-color',
|
|
14833
|
+
fillHoverRgbPartialColor: 'fill-hover-rgb-partial-color',
|
|
14834
|
+
fillDownColor: 'fill-down-color',
|
|
14835
|
+
borderColor: 'border-color',
|
|
14836
|
+
borderRgbPartialColor: 'border-rgb-partial-color',
|
|
14837
|
+
failColor: 'fail-color',
|
|
14838
|
+
warningColor: 'warning-color',
|
|
14839
|
+
passColor: 'pass-color',
|
|
14840
|
+
informationColor: 'information-color',
|
|
14841
|
+
borderHoverColor: 'border-hover-color',
|
|
14842
|
+
iconColor: 'icon-color',
|
|
14843
|
+
modalBackdropColor: 'modal-backdrop-color',
|
|
14844
|
+
popupBorderColor: 'popup-border-color',
|
|
14845
|
+
cardBorderColor: 'card-border-color',
|
|
14846
|
+
tagFillColor: 'tag-fill-color',
|
|
14847
|
+
controlHeight: 'control-height',
|
|
14848
|
+
controlSlimHeight: 'control-slim-height',
|
|
14849
|
+
smallPadding: 'small-padding',
|
|
14850
|
+
mediumPadding: 'medium-padding',
|
|
14851
|
+
standardPadding: 'standard-padding',
|
|
14852
|
+
largePadding: 'large-padding',
|
|
14853
|
+
labelHeight: 'label-height',
|
|
14854
|
+
borderWidth: 'border-width',
|
|
14855
|
+
dividerWidth: 'divider-width',
|
|
14856
|
+
iconSize: 'icon-size',
|
|
14857
|
+
groupHeaderTextTransform: 'group-header-text-transform',
|
|
14858
|
+
drawerWidth: 'drawer-width',
|
|
14859
|
+
dialogSmallWidth: 'dialog-small-width',
|
|
14860
|
+
dialogSmallHeight: 'dialog-small-height',
|
|
14861
|
+
dialogSmallMaxHeight: 'dialog-small-max-height',
|
|
14862
|
+
dialogLargeWidth: 'dialog-large-width',
|
|
14863
|
+
dialogLargeHeight: 'dialog-large-height',
|
|
14864
|
+
dialogLargeMaxHeight: 'dialog-large-max-height',
|
|
14865
|
+
menuMinWidth: 'menu-min-width',
|
|
14866
|
+
bannerGapSize: 'banner-gap-size',
|
|
14867
|
+
spinnerSmallHeight: 'spinner-small-height',
|
|
14868
|
+
spinnerMediumHeight: 'spinner-medium-height',
|
|
14869
|
+
spinnerLargeHeight: 'spinner-large-height',
|
|
14870
|
+
tableFitRowsHeight: 'table-fit-rows-height',
|
|
14871
|
+
smallDelay: 'small-delay',
|
|
14872
|
+
mediumDelay: 'medium-delay',
|
|
14873
|
+
largeDelay: 'large-delay',
|
|
14874
|
+
headlinePlus1Font: 'headline-plus-1-font',
|
|
14875
|
+
headlineFont: 'headline-font',
|
|
14876
|
+
tableHeaderFont: 'table-header-font',
|
|
14877
|
+
titlePlus2Font: 'title-plus-2-font',
|
|
14878
|
+
titlePlus1Font: 'title-plus-1-font',
|
|
14879
|
+
titleFont: 'title-font',
|
|
14880
|
+
subtitlePlus1Font: 'subtitle-plus-1-font',
|
|
14881
|
+
subtitleFont: 'subtitle-font',
|
|
14882
|
+
linkFont: 'link-font',
|
|
14883
|
+
linkActiveFont: 'link-active-font',
|
|
14884
|
+
linkProminentFont: 'link-prominent-font',
|
|
14885
|
+
linkActiveProminentFont: 'link-active-prominent-font',
|
|
14886
|
+
placeholderFont: 'placeholder-font',
|
|
14887
|
+
bodyFont: 'body-font',
|
|
14888
|
+
bodyEmphasizedFont: 'body-emphasized-font',
|
|
14889
|
+
bodyPlus1Font: 'body-plus-1-font',
|
|
14890
|
+
bodyPlus1EmphasizedFont: 'body-plus-1-emphasized-font',
|
|
14891
|
+
groupHeaderFont: 'group-header-font',
|
|
14892
|
+
controlLabelFont: 'control-label-font',
|
|
14893
|
+
buttonLabelFont: 'button-label-font',
|
|
14894
|
+
tooltipCaptionFont: 'tooltip-caption-font',
|
|
14895
|
+
tooltipBackgroundColor: 'tooltip-background-color',
|
|
14896
|
+
errorTextFont: 'error-text-font',
|
|
14897
|
+
tableRowBorderColor: 'table-row-border-color',
|
|
14898
|
+
elevation1BoxShadow: 'elevation-1-box-shadow',
|
|
14899
|
+
elevation2BoxShadow: 'elevation-2-box-shadow',
|
|
14900
|
+
elevation3BoxShadow: 'elevation-3-box-shadow',
|
|
14901
|
+
graphGridlineColor: 'graph-gridline-color',
|
|
14902
|
+
graphTrace1Color: 'graph-trace-1-color',
|
|
14903
|
+
graphTrace2Color: 'graph-trace-2-color',
|
|
14904
|
+
graphTrace3Color: 'graph-trace-3-color',
|
|
14905
|
+
graphTrace4Color: 'graph-trace-4-color',
|
|
14906
|
+
graphTrace5Color: 'graph-trace-5-color',
|
|
14907
|
+
graphTrace6Color: 'graph-trace-6-color',
|
|
14908
|
+
graphTrace7Color: 'graph-trace-7-color',
|
|
14909
|
+
graphTrace8Color: 'graph-trace-8-color',
|
|
14910
|
+
mentionFont: 'mention-font',
|
|
14911
|
+
calendarEventBackgroundStaticColor: 'calendar-event-background-static-color',
|
|
14912
|
+
calendarEventBackgroundDynamicColor: 'calendar-event-background-dynamic-color',
|
|
14913
|
+
calendarEventBackgroundTransientColor: 'calendar-event-background-transient-color',
|
|
14914
|
+
calendarEventBorderStaticColor: 'calendar-event-border-static-color',
|
|
14915
|
+
calendarEventBorderTransientColor: 'calendar-event-border-transient-color',
|
|
14916
|
+
calendarEventStaticFontColor: 'calendar-event-static-font-color',
|
|
14917
|
+
calendarEventDynamicFontColor: 'calendar-event-dynamic-font-color',
|
|
14918
|
+
calendarEventTransientFontColor: 'calendar-event-transient-font-color',
|
|
14919
|
+
calendarEventBackgroundHoverStaticColor: 'calendar-event-background-hover-static-color',
|
|
14920
|
+
calendarEventBackgroundHoverDynamicColor: 'calendar-event-background-hover-dynamic-color',
|
|
14921
|
+
calendarEventBackgroundHoverTransientColor: 'calendar-event-background-hover-transient-color',
|
|
14922
|
+
calendarEventOuterBorderHighlightedColor: 'calendar-event-outer-border-highlighted-color',
|
|
14923
|
+
calendarRowBackgroundSelectedColor: 'calendar-row-background-selected-color',
|
|
14924
|
+
calendarRowBackgroundConflictColor: 'calendar-row-background-conflict-color',
|
|
14925
|
+
calendarEventFillBlockedColor: 'calendar-event-fill-blocked-color',
|
|
14926
|
+
calendarGrabHandleBackgroundColor: 'calendar-grab-handle-background-color',
|
|
14927
|
+
calendarGridBorderColor: 'calendar-grid-border-color',
|
|
14928
|
+
calendarGroupHeaderBackgroundColor: 'calendar-group-header-background-color'
|
|
14929
|
+
};
|
|
14930
|
+
const prefix = 'ni-nimble';
|
|
14931
|
+
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
14932
|
+
|
|
14933
|
+
const template$T = html `<slot></slot>`;
|
|
14934
|
+
|
|
14935
|
+
const styles$16 = css `
|
|
14936
|
+
${display$2('contents')}
|
|
14937
|
+
`;
|
|
14938
|
+
|
|
14939
|
+
/**
|
|
14940
|
+
* Observable class to subscribe to changes in the page's lang attribute
|
|
14941
|
+
*/
|
|
14942
|
+
class DocumentElementLang {
|
|
14943
|
+
constructor() {
|
|
14944
|
+
this.lang = document.documentElement.lang;
|
|
14945
|
+
const observer = new MutationObserver(mutations => {
|
|
14946
|
+
for (const mutation of mutations) {
|
|
14947
|
+
if (mutation.type === 'attributes'
|
|
14948
|
+
&& mutation.attributeName === 'lang') {
|
|
14949
|
+
this.lang = mutation.target.lang;
|
|
14950
|
+
}
|
|
14951
|
+
}
|
|
14952
|
+
});
|
|
14953
|
+
observer.observe(document.documentElement, {
|
|
14954
|
+
attributeFilter: ['lang']
|
|
14955
|
+
});
|
|
14956
|
+
}
|
|
14957
|
+
}
|
|
14958
|
+
__decorate([
|
|
14959
|
+
observable
|
|
14960
|
+
], DocumentElementLang.prototype, "lang", void 0);
|
|
14961
|
+
const documentElementLang = new DocumentElementLang();
|
|
14962
|
+
|
|
14963
|
+
function isValidLang(value) {
|
|
14964
|
+
try {
|
|
14965
|
+
// We are relying on the Locale constructor to validate the value
|
|
14966
|
+
// eslint-disable-next-line no-new
|
|
14967
|
+
new Intl.Locale(value);
|
|
14968
|
+
return true;
|
|
14969
|
+
}
|
|
14970
|
+
catch (e) {
|
|
14971
|
+
return false;
|
|
14972
|
+
}
|
|
14973
|
+
}
|
|
14974
|
+
const lang = DesignToken.create({
|
|
14975
|
+
name: 'lang',
|
|
14976
|
+
cssCustomPropertyName: null
|
|
14977
|
+
}).withDefault(() => (isValidLang(documentElementLang.lang) ? documentElementLang.lang : 'en-US'));
|
|
14978
|
+
// Not represented as a CSS Custom Property, instead available
|
|
14979
|
+
// as an attribute of theme provider.
|
|
14980
|
+
const direction = DesignToken.create({
|
|
14981
|
+
name: 'direction',
|
|
14982
|
+
cssCustomPropertyName: null
|
|
14983
|
+
}).withDefault(Direction.ltr);
|
|
14984
|
+
const theme = DesignToken.create({
|
|
14985
|
+
name: 'theme',
|
|
14986
|
+
cssCustomPropertyName: null
|
|
14987
|
+
}).withDefault(Theme.light);
|
|
14988
|
+
/**
|
|
14989
|
+
* The ThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
14990
|
+
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
14991
|
+
* @internal
|
|
14992
|
+
*/
|
|
14993
|
+
class ThemeProvider extends FoundationElement {
|
|
14994
|
+
constructor() {
|
|
14995
|
+
super(...arguments);
|
|
14996
|
+
this.theme = Theme.light;
|
|
14997
|
+
this.langIsInvalid = false;
|
|
14998
|
+
}
|
|
14999
|
+
get validity() {
|
|
15000
|
+
return {
|
|
15001
|
+
invalidLang: this.langIsInvalid
|
|
15002
|
+
};
|
|
15003
|
+
}
|
|
15004
|
+
checkValidity() {
|
|
15005
|
+
return !this.langIsInvalid;
|
|
15006
|
+
}
|
|
15007
|
+
langChanged(_prev, next) {
|
|
15008
|
+
if (next === null || next === undefined) {
|
|
15009
|
+
lang.deleteValueFor(this);
|
|
15010
|
+
this.langIsInvalid = false;
|
|
15011
|
+
return;
|
|
15012
|
+
}
|
|
15013
|
+
if (isValidLang(next)) {
|
|
15014
|
+
lang.setValueFor(this, next);
|
|
15015
|
+
this.langIsInvalid = false;
|
|
15016
|
+
}
|
|
15017
|
+
else {
|
|
15018
|
+
lang.deleteValueFor(this);
|
|
15019
|
+
this.langIsInvalid = true;
|
|
15020
|
+
}
|
|
15021
|
+
}
|
|
15022
|
+
directionChanged(_prev, next) {
|
|
15023
|
+
if (next !== undefined && next !== null) {
|
|
15024
|
+
direction.setValueFor(this, next);
|
|
15025
|
+
}
|
|
15026
|
+
else {
|
|
15027
|
+
direction.deleteValueFor(this);
|
|
15028
|
+
}
|
|
15029
|
+
}
|
|
15030
|
+
themeChanged(_prev, next) {
|
|
15031
|
+
if (next !== undefined && next !== null) {
|
|
15032
|
+
theme.setValueFor(this, next);
|
|
15033
|
+
}
|
|
15034
|
+
else {
|
|
15035
|
+
theme.deleteValueFor(this);
|
|
15036
|
+
}
|
|
15037
|
+
}
|
|
15038
|
+
}
|
|
15039
|
+
__decorate([
|
|
15040
|
+
attr()
|
|
15041
|
+
], ThemeProvider.prototype, "lang", void 0);
|
|
15042
|
+
__decorate([
|
|
15043
|
+
attr()
|
|
15044
|
+
], ThemeProvider.prototype, "direction", void 0);
|
|
15045
|
+
__decorate([
|
|
15046
|
+
attr()
|
|
15047
|
+
], ThemeProvider.prototype, "theme", void 0);
|
|
15048
|
+
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
15049
|
+
baseName: 'theme-provider',
|
|
15050
|
+
styles: styles$16,
|
|
15051
|
+
template: template$T
|
|
15052
|
+
});
|
|
15053
|
+
DesignSystem.getOrCreate()
|
|
15054
|
+
.withPrefix('nimble')
|
|
15055
|
+
.register(nimbleDesignSystemProvider());
|
|
15056
|
+
const themeProviderTag = 'nimble-theme-provider';
|
|
15057
|
+
|
|
14771
15058
|
/**
|
|
14772
15059
|
* Ensures that an input number does not exceed a max value and is not less than a min value.
|
|
14773
15060
|
* @param i - the number to clamp
|
|
@@ -15994,258 +16281,6 @@
|
|
|
15994
16281
|
const MediumDelay = "0.15s"; // Medium animation delay for control state change animation
|
|
15995
16282
|
const LargeDelay = "0.25s"; // Long animation delay used for control state change animation
|
|
15996
16283
|
|
|
15997
|
-
const Theme = {
|
|
15998
|
-
light: 'light',
|
|
15999
|
-
dark: 'dark',
|
|
16000
|
-
color: 'color'
|
|
16001
|
-
};
|
|
16002
|
-
|
|
16003
|
-
/**
|
|
16004
|
-
* Design token names should follow the token naming convention:
|
|
16005
|
-
* See: https://github.com/ni/nimble/blob/main/packages/nimble-components/CONTRIBUTING.md#token-naming
|
|
16006
|
-
*/
|
|
16007
|
-
const tokenNames = {
|
|
16008
|
-
actionRgbPartialColor: 'action-rgb-partial-color',
|
|
16009
|
-
applicationBackgroundColor: 'application-background-color',
|
|
16010
|
-
dividerBackgroundColor: 'divider-background-color',
|
|
16011
|
-
headerBackgroundColor: 'header-background-color',
|
|
16012
|
-
sectionBackgroundColor: 'section-background-color',
|
|
16013
|
-
sectionBackgroundImage: 'section-background-image',
|
|
16014
|
-
buttonFillPrimaryColor: 'button-fill-primary-color',
|
|
16015
|
-
buttonPrimaryFontColor: 'button-primary-font-color',
|
|
16016
|
-
buttonFillAccentColor: 'button-fill-accent-color',
|
|
16017
|
-
buttonAccentBlockFontColor: 'button-accent-block-font-color',
|
|
16018
|
-
buttonAccentOutlineFontColor: 'button-accent-outline-font-color',
|
|
16019
|
-
buttonBorderAccentOutlineColor: 'button-border-accent-outline-color',
|
|
16020
|
-
fillSelectedColor: 'fill-selected-color',
|
|
16021
|
-
fillSelectedRgbPartialColor: 'fill-selected-rgb-partial-color',
|
|
16022
|
-
fillHoverSelectedColor: 'fill-hover-selected-color',
|
|
16023
|
-
fillHoverColor: 'fill-hover-color',
|
|
16024
|
-
fillHoverRgbPartialColor: 'fill-hover-rgb-partial-color',
|
|
16025
|
-
fillDownColor: 'fill-down-color',
|
|
16026
|
-
borderColor: 'border-color',
|
|
16027
|
-
borderRgbPartialColor: 'border-rgb-partial-color',
|
|
16028
|
-
failColor: 'fail-color',
|
|
16029
|
-
warningColor: 'warning-color',
|
|
16030
|
-
passColor: 'pass-color',
|
|
16031
|
-
informationColor: 'information-color',
|
|
16032
|
-
borderHoverColor: 'border-hover-color',
|
|
16033
|
-
iconColor: 'icon-color',
|
|
16034
|
-
modalBackdropColor: 'modal-backdrop-color',
|
|
16035
|
-
popupBorderColor: 'popup-border-color',
|
|
16036
|
-
cardBorderColor: 'card-border-color',
|
|
16037
|
-
tagFillColor: 'tag-fill-color',
|
|
16038
|
-
controlHeight: 'control-height',
|
|
16039
|
-
controlSlimHeight: 'control-slim-height',
|
|
16040
|
-
smallPadding: 'small-padding',
|
|
16041
|
-
mediumPadding: 'medium-padding',
|
|
16042
|
-
standardPadding: 'standard-padding',
|
|
16043
|
-
largePadding: 'large-padding',
|
|
16044
|
-
labelHeight: 'label-height',
|
|
16045
|
-
borderWidth: 'border-width',
|
|
16046
|
-
dividerWidth: 'divider-width',
|
|
16047
|
-
iconSize: 'icon-size',
|
|
16048
|
-
groupHeaderTextTransform: 'group-header-text-transform',
|
|
16049
|
-
drawerWidth: 'drawer-width',
|
|
16050
|
-
dialogSmallWidth: 'dialog-small-width',
|
|
16051
|
-
dialogSmallHeight: 'dialog-small-height',
|
|
16052
|
-
dialogSmallMaxHeight: 'dialog-small-max-height',
|
|
16053
|
-
dialogLargeWidth: 'dialog-large-width',
|
|
16054
|
-
dialogLargeHeight: 'dialog-large-height',
|
|
16055
|
-
dialogLargeMaxHeight: 'dialog-large-max-height',
|
|
16056
|
-
menuMinWidth: 'menu-min-width',
|
|
16057
|
-
bannerGapSize: 'banner-gap-size',
|
|
16058
|
-
spinnerSmallHeight: 'spinner-small-height',
|
|
16059
|
-
spinnerMediumHeight: 'spinner-medium-height',
|
|
16060
|
-
spinnerLargeHeight: 'spinner-large-height',
|
|
16061
|
-
tableFitRowsHeight: 'table-fit-rows-height',
|
|
16062
|
-
smallDelay: 'small-delay',
|
|
16063
|
-
mediumDelay: 'medium-delay',
|
|
16064
|
-
largeDelay: 'large-delay',
|
|
16065
|
-
headlinePlus1Font: 'headline-plus-1-font',
|
|
16066
|
-
headlineFont: 'headline-font',
|
|
16067
|
-
tableHeaderFont: 'table-header-font',
|
|
16068
|
-
titlePlus2Font: 'title-plus-2-font',
|
|
16069
|
-
titlePlus1Font: 'title-plus-1-font',
|
|
16070
|
-
titleFont: 'title-font',
|
|
16071
|
-
subtitlePlus1Font: 'subtitle-plus-1-font',
|
|
16072
|
-
subtitleFont: 'subtitle-font',
|
|
16073
|
-
linkFont: 'link-font',
|
|
16074
|
-
linkActiveFont: 'link-active-font',
|
|
16075
|
-
linkProminentFont: 'link-prominent-font',
|
|
16076
|
-
linkActiveProminentFont: 'link-active-prominent-font',
|
|
16077
|
-
placeholderFont: 'placeholder-font',
|
|
16078
|
-
bodyFont: 'body-font',
|
|
16079
|
-
bodyEmphasizedFont: 'body-emphasized-font',
|
|
16080
|
-
bodyPlus1Font: 'body-plus-1-font',
|
|
16081
|
-
bodyPlus1EmphasizedFont: 'body-plus-1-emphasized-font',
|
|
16082
|
-
groupHeaderFont: 'group-header-font',
|
|
16083
|
-
controlLabelFont: 'control-label-font',
|
|
16084
|
-
buttonLabelFont: 'button-label-font',
|
|
16085
|
-
tooltipCaptionFont: 'tooltip-caption-font',
|
|
16086
|
-
tooltipBackgroundColor: 'tooltip-background-color',
|
|
16087
|
-
errorTextFont: 'error-text-font',
|
|
16088
|
-
tableRowBorderColor: 'table-row-border-color',
|
|
16089
|
-
elevation1BoxShadow: 'elevation-1-box-shadow',
|
|
16090
|
-
elevation2BoxShadow: 'elevation-2-box-shadow',
|
|
16091
|
-
elevation3BoxShadow: 'elevation-3-box-shadow',
|
|
16092
|
-
graphGridlineColor: 'graph-gridline-color',
|
|
16093
|
-
graphTrace1Color: 'graph-trace-1-color',
|
|
16094
|
-
graphTrace2Color: 'graph-trace-2-color',
|
|
16095
|
-
graphTrace3Color: 'graph-trace-3-color',
|
|
16096
|
-
graphTrace4Color: 'graph-trace-4-color',
|
|
16097
|
-
graphTrace5Color: 'graph-trace-5-color',
|
|
16098
|
-
graphTrace6Color: 'graph-trace-6-color',
|
|
16099
|
-
graphTrace7Color: 'graph-trace-7-color',
|
|
16100
|
-
graphTrace8Color: 'graph-trace-8-color',
|
|
16101
|
-
mentionFont: 'mention-font',
|
|
16102
|
-
calendarEventBackgroundStaticColor: 'calendar-event-background-static-color',
|
|
16103
|
-
calendarEventBackgroundDynamicColor: 'calendar-event-background-dynamic-color',
|
|
16104
|
-
calendarEventBackgroundTransientColor: 'calendar-event-background-transient-color',
|
|
16105
|
-
calendarEventBorderStaticColor: 'calendar-event-border-static-color',
|
|
16106
|
-
calendarEventBorderTransientColor: 'calendar-event-border-transient-color',
|
|
16107
|
-
calendarEventStaticFontColor: 'calendar-event-static-font-color',
|
|
16108
|
-
calendarEventDynamicFontColor: 'calendar-event-dynamic-font-color',
|
|
16109
|
-
calendarEventTransientFontColor: 'calendar-event-transient-font-color',
|
|
16110
|
-
calendarEventBackgroundHoverStaticColor: 'calendar-event-background-hover-static-color',
|
|
16111
|
-
calendarEventBackgroundHoverDynamicColor: 'calendar-event-background-hover-dynamic-color',
|
|
16112
|
-
calendarEventBackgroundHoverTransientColor: 'calendar-event-background-hover-transient-color',
|
|
16113
|
-
calendarEventOuterBorderHighlightedColor: 'calendar-event-outer-border-highlighted-color',
|
|
16114
|
-
calendarRowBackgroundSelectedColor: 'calendar-row-background-selected-color',
|
|
16115
|
-
calendarRowBackgroundConflictColor: 'calendar-row-background-conflict-color',
|
|
16116
|
-
calendarEventFillBlockedColor: 'calendar-event-fill-blocked-color',
|
|
16117
|
-
calendarGrabHandleBackgroundColor: 'calendar-grab-handle-background-color',
|
|
16118
|
-
calendarGridBorderColor: 'calendar-grid-border-color',
|
|
16119
|
-
calendarGroupHeaderBackgroundColor: 'calendar-group-header-background-color'
|
|
16120
|
-
};
|
|
16121
|
-
const prefix = 'ni-nimble';
|
|
16122
|
-
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
16123
|
-
|
|
16124
|
-
const template$T = html `<slot></slot>`;
|
|
16125
|
-
|
|
16126
|
-
const styles$16 = css `
|
|
16127
|
-
${display$2('contents')}
|
|
16128
|
-
`;
|
|
16129
|
-
|
|
16130
|
-
/**
|
|
16131
|
-
* Observable class to subscribe to changes in the page's lang attribute
|
|
16132
|
-
*/
|
|
16133
|
-
class DocumentElementLang {
|
|
16134
|
-
constructor() {
|
|
16135
|
-
this.lang = document.documentElement.lang;
|
|
16136
|
-
const observer = new MutationObserver(mutations => {
|
|
16137
|
-
for (const mutation of mutations) {
|
|
16138
|
-
if (mutation.type === 'attributes'
|
|
16139
|
-
&& mutation.attributeName === 'lang') {
|
|
16140
|
-
this.lang = mutation.target.lang;
|
|
16141
|
-
}
|
|
16142
|
-
}
|
|
16143
|
-
});
|
|
16144
|
-
observer.observe(document.documentElement, {
|
|
16145
|
-
attributeFilter: ['lang']
|
|
16146
|
-
});
|
|
16147
|
-
}
|
|
16148
|
-
}
|
|
16149
|
-
__decorate([
|
|
16150
|
-
observable
|
|
16151
|
-
], DocumentElementLang.prototype, "lang", void 0);
|
|
16152
|
-
const documentElementLang = new DocumentElementLang();
|
|
16153
|
-
|
|
16154
|
-
function isValidLang(value) {
|
|
16155
|
-
try {
|
|
16156
|
-
// We are relying on the Locale constructor to validate the value
|
|
16157
|
-
// eslint-disable-next-line no-new
|
|
16158
|
-
new Intl.Locale(value);
|
|
16159
|
-
return true;
|
|
16160
|
-
}
|
|
16161
|
-
catch (e) {
|
|
16162
|
-
return false;
|
|
16163
|
-
}
|
|
16164
|
-
}
|
|
16165
|
-
const lang = DesignToken.create({
|
|
16166
|
-
name: 'lang',
|
|
16167
|
-
cssCustomPropertyName: null
|
|
16168
|
-
}).withDefault(() => (isValidLang(documentElementLang.lang) ? documentElementLang.lang : 'en-US'));
|
|
16169
|
-
// Not represented as a CSS Custom Property, instead available
|
|
16170
|
-
// as an attribute of theme provider.
|
|
16171
|
-
const direction = DesignToken.create({
|
|
16172
|
-
name: 'direction',
|
|
16173
|
-
cssCustomPropertyName: null
|
|
16174
|
-
}).withDefault(Direction.ltr);
|
|
16175
|
-
const theme = DesignToken.create({
|
|
16176
|
-
name: 'theme',
|
|
16177
|
-
cssCustomPropertyName: null
|
|
16178
|
-
}).withDefault(Theme.light);
|
|
16179
|
-
/**
|
|
16180
|
-
* The ThemeProvider implementation. Add this component to the page and set its `theme` attribute to control
|
|
16181
|
-
* the values of design tokens that provide colors and fonts as CSS custom properties to any descendant components.
|
|
16182
|
-
* @internal
|
|
16183
|
-
*/
|
|
16184
|
-
class ThemeProvider extends FoundationElement {
|
|
16185
|
-
constructor() {
|
|
16186
|
-
super(...arguments);
|
|
16187
|
-
this.theme = Theme.light;
|
|
16188
|
-
this.langIsInvalid = false;
|
|
16189
|
-
}
|
|
16190
|
-
get validity() {
|
|
16191
|
-
return {
|
|
16192
|
-
invalidLang: this.langIsInvalid
|
|
16193
|
-
};
|
|
16194
|
-
}
|
|
16195
|
-
checkValidity() {
|
|
16196
|
-
return !this.langIsInvalid;
|
|
16197
|
-
}
|
|
16198
|
-
langChanged(_prev, next) {
|
|
16199
|
-
if (next === null || next === undefined) {
|
|
16200
|
-
lang.deleteValueFor(this);
|
|
16201
|
-
this.langIsInvalid = false;
|
|
16202
|
-
return;
|
|
16203
|
-
}
|
|
16204
|
-
if (isValidLang(next)) {
|
|
16205
|
-
lang.setValueFor(this, next);
|
|
16206
|
-
this.langIsInvalid = false;
|
|
16207
|
-
}
|
|
16208
|
-
else {
|
|
16209
|
-
lang.deleteValueFor(this);
|
|
16210
|
-
this.langIsInvalid = true;
|
|
16211
|
-
}
|
|
16212
|
-
}
|
|
16213
|
-
directionChanged(_prev, next) {
|
|
16214
|
-
if (next !== undefined && next !== null) {
|
|
16215
|
-
direction.setValueFor(this, next);
|
|
16216
|
-
}
|
|
16217
|
-
else {
|
|
16218
|
-
direction.deleteValueFor(this);
|
|
16219
|
-
}
|
|
16220
|
-
}
|
|
16221
|
-
themeChanged(_prev, next) {
|
|
16222
|
-
if (next !== undefined && next !== null) {
|
|
16223
|
-
theme.setValueFor(this, next);
|
|
16224
|
-
}
|
|
16225
|
-
else {
|
|
16226
|
-
theme.deleteValueFor(this);
|
|
16227
|
-
}
|
|
16228
|
-
}
|
|
16229
|
-
}
|
|
16230
|
-
__decorate([
|
|
16231
|
-
attr()
|
|
16232
|
-
], ThemeProvider.prototype, "lang", void 0);
|
|
16233
|
-
__decorate([
|
|
16234
|
-
attr()
|
|
16235
|
-
], ThemeProvider.prototype, "direction", void 0);
|
|
16236
|
-
__decorate([
|
|
16237
|
-
attr()
|
|
16238
|
-
], ThemeProvider.prototype, "theme", void 0);
|
|
16239
|
-
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
16240
|
-
baseName: 'theme-provider',
|
|
16241
|
-
styles: styles$16,
|
|
16242
|
-
template: template$T
|
|
16243
|
-
});
|
|
16244
|
-
DesignSystem.getOrCreate()
|
|
16245
|
-
.withPrefix('nimble')
|
|
16246
|
-
.register(nimbleDesignSystemProvider());
|
|
16247
|
-
const themeProviderTag = 'nimble-theme-provider';
|
|
16248
|
-
|
|
16249
16284
|
/**
|
|
16250
16285
|
* Convert a hexadecimal color string to an RGBA CSS color string
|
|
16251
16286
|
* Example: '#ff0102' to 'rgba(255, 1, 2, 1)'
|
|
@@ -16258,157 +16293,305 @@
|
|
|
16258
16293
|
return `rgba(${r * 255}, ${g * 255}, ${b * 255}, ${alpha})`;
|
|
16259
16294
|
}
|
|
16260
16295
|
|
|
16261
|
-
//
|
|
16262
|
-
const
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16274
|
-
|
|
16275
|
-
|
|
16276
|
-
|
|
16277
|
-
|
|
16278
|
-
|
|
16279
|
-
|
|
16280
|
-
|
|
16281
|
-
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16285
|
-
|
|
16286
|
-
|
|
16287
|
-
|
|
16288
|
-
|
|
16289
|
-
|
|
16290
|
-
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
|
|
16294
|
-
|
|
16295
|
-
|
|
16296
|
-
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
|
|
16300
|
-
|
|
16301
|
-
|
|
16302
|
-
|
|
16303
|
-
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
|
|
16310
|
-
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
|
|
16314
|
-
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
|
|
16341
|
-
|
|
16342
|
-
|
|
16343
|
-
|
|
16344
|
-
|
|
16345
|
-
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16296
|
+
// #region token values
|
|
16297
|
+
const alias = {
|
|
16298
|
+
failColor: createThemeColor(Fail100LightUi, Fail100DarkUi, White),
|
|
16299
|
+
lineColor: createThemeColor(Black91, Black15, White),
|
|
16300
|
+
fillSelectedColor: createThemeColor(DigitalGreenLight, PowerGreen, White),
|
|
16301
|
+
fillHoverColor: createThemeColor(Black91, Black15, White),
|
|
16302
|
+
defaultFontColor: createThemeColor(Black91, Black15, White)
|
|
16303
|
+
};
|
|
16304
|
+
const tokenValues = {
|
|
16305
|
+
actionRgbPartialColor: hexToRgbPartialThemeColor(createThemeColor(Black91, Black15, White)),
|
|
16306
|
+
applicationBackgroundColor: createThemeColor(White, Black85, ForestGreen),
|
|
16307
|
+
headerBackgroundColor: createThemeColor(Black7, Black88, ForestGreen),
|
|
16308
|
+
sectionBackgroundColor: createThemeColor(Black15, Black80, ForestGreen),
|
|
16309
|
+
sectionBackgroundImage: createThemeColor(`linear-gradient(${Black15}, ${hexToRgbaCssColor(Black15, 0)})`, `linear-gradient(${Black82}, ${hexToRgbaCssColor(Black82, 0)})`, `linear-gradient(${ForestGreen}, ${hexToRgbaCssColor(ForestGreen, 0)})`),
|
|
16310
|
+
dividerBackgroundColor: createThemeColor(Black15, Black80, ForestGreen),
|
|
16311
|
+
fillSelectedColor: hexToRgbaCssThemeColor(alias.fillSelectedColor, 0.2, 0.2, 0.2),
|
|
16312
|
+
fillSelectedRgbPartialColor: hexToRgbPartialThemeColor(alias.fillSelectedColor),
|
|
16313
|
+
fillHoverSelectedColor: hexToRgbaCssThemeColor(alias.fillSelectedColor, 0.15, 0.15, 0.15),
|
|
16314
|
+
fillHoverColor: hexToRgbaCssThemeColor(alias.fillHoverColor, 0.1, 0.1, 0.1),
|
|
16315
|
+
fillHoverRgbPartialColor: hexToRgbPartialThemeColor(alias.fillHoverColor),
|
|
16316
|
+
fillDownColor: hexToRgbaCssThemeColor(alias.fillHoverColor, 0.15, 0.15, 0.15),
|
|
16317
|
+
borderColor: alias.lineColor,
|
|
16318
|
+
borderRgbPartialColor: hexToRgbPartialThemeColor(alias.lineColor),
|
|
16319
|
+
failColor: alias.failColor,
|
|
16320
|
+
warningColor: createThemeColor(Warning100LightUi, Warning100DarkUi, White),
|
|
16321
|
+
passColor: createThemeColor(Pass100LightUi, Pass100DarkUi, White),
|
|
16322
|
+
informationColor: createThemeColor(Information100LightUi, Information100DarkUi, White),
|
|
16323
|
+
borderHoverColor: createThemeColor(DigitalGreenLight, PowerGreen, White),
|
|
16324
|
+
iconColor: createThemeColor(Black91, Black15, White),
|
|
16325
|
+
modalBackdropColor: hexToRgbaCssThemeColor(createThemeColor(Black, Black, Black), 0.3, 0.6, 0.6),
|
|
16326
|
+
popupBorderColor: hexToRgbaCssThemeColor(alias.lineColor, 0.3, 0.3, 0.3),
|
|
16327
|
+
cardBorderColor: hexToRgbaCssThemeColor(alias.lineColor, 0.1, 0.1, 0.1),
|
|
16328
|
+
graphGridlineColor: hexToRgbaCssThemeColor(alias.lineColor, 0.2, 0.2, 0.2),
|
|
16329
|
+
graphTrace1Color: createThemeColor(NiIndigoDark2, NiSky, White),
|
|
16330
|
+
graphTrace2Color: createThemeColor(NiScarletDark1, NiScarlet, hexToRgbaCssColor(White, 0.7)),
|
|
16331
|
+
graphTrace3Color: createThemeColor(NiFernDark1, NiFern, hexToRgbaCssColor(White, 0.4)),
|
|
16332
|
+
graphTrace4Color: createThemeColor(NiPlumDark1, NiSeaLight, hexToRgbaCssColor(White, 0.25)),
|
|
16333
|
+
graphTrace5Color: createThemeColor(NiSeaDark2, NiSea, hexToRgbaCssColor(White, 0.55)),
|
|
16334
|
+
graphTrace6Color: createThemeColor(NiTulip, NiTulip, hexToRgbaCssColor(White, 0.85)),
|
|
16335
|
+
graphTrace7Color: createThemeColor(NiScarletDark3, NiHoneyLight, hexToRgbaCssColor(White, 0.325)),
|
|
16336
|
+
graphTrace8Color: createThemeColor(NiIndigo, NiIndigo, hexToRgbaCssColor(White, 0.625)),
|
|
16337
|
+
tooltipBackgroundColor: createThemeColor(Black15, Black85, ForestGreen),
|
|
16338
|
+
tableRowBorderColor: createThemeColor(Black15, Black80, ForestGreen),
|
|
16339
|
+
tagFillColor: hexToRgbaCssThemeColor(alias.lineColor, 0.1, 0.1, 0.1),
|
|
16340
|
+
buttonFillPrimaryColor: hexToRgbaCssThemeColor(createThemeColor(Black91, Black15, White), 0.75, 0.3, 0.3),
|
|
16341
|
+
buttonPrimaryFontColor: createThemeColor(Black15, Black15, White),
|
|
16342
|
+
buttonFillAccentColor: createThemeColor(DigitalGreenDark, DigitalGreenLight, hexToRgbaCssColor(White, 0.1)),
|
|
16343
|
+
buttonAccentBlockFontColor: createThemeColor(White, Black15, White),
|
|
16344
|
+
buttonAccentOutlineFontColor: createThemeColor(DigitalGreenDark105, PowerGreen, White),
|
|
16345
|
+
buttonBorderAccentOutlineColor: createThemeColor(DigitalGreenLight, PowerGreen, hexToRgbaCssColor(White, 0.3)),
|
|
16346
|
+
calendarEventBackgroundStaticColor: createThemeColor(DigitalGreenLight10, PowerGreen10, PowerGreen10),
|
|
16347
|
+
calendarEventBackgroundDynamicColor: createThemeColor(DigitalGreenDark105, DigitalGreenDark, DigitalGreenDark),
|
|
16348
|
+
calendarEventBackgroundTransientColor: createThemeColor(DigitalGreenDark105, DigitalGreenDark, DigitalGreenDark),
|
|
16349
|
+
calendarEventBorderStaticColor: createThemeColor(DigitalGreenLight, DigitalGreenLight, DigitalGreenLight),
|
|
16350
|
+
calendarEventBorderTransientColor: createThemeColor(DigitalGreenLight, hexToRgbaCssColor(PowerGreen, 0.85), hexToRgbaCssColor(PowerGreen, 0.85)),
|
|
16351
|
+
calendarEventStaticFontColor: createThemeColor(DigitalGreenDark110, PowerGreenDark50, PowerGreenDark50),
|
|
16352
|
+
calendarEventDynamicFontColor: createThemeColor(White, White, White),
|
|
16353
|
+
calendarEventTransientFontColor: createThemeColor(White, White, White),
|
|
16354
|
+
calendarEventBackgroundHoverStaticColor: createThemeColor(DigitalGreenLight30, PowerGreen30, PowerGreen30),
|
|
16355
|
+
calendarEventBackgroundHoverDynamicColor: createThemeColor(DigitalGreenDark110, DigitalGreenDark105, DigitalGreenDark105),
|
|
16356
|
+
calendarEventBackgroundHoverTransientColor: createThemeColor(DigitalGreenDark110, DigitalGreenDark105, DigitalGreenDark105),
|
|
16357
|
+
calendarEventOuterBorderHighlightedColor: createThemeColor(Black88, hexToRgbaCssColor(White, 0.85), hexToRgbaCssColor(White, 0.85)),
|
|
16358
|
+
calendarRowBackgroundSelectedColor: hexToRgbaCssThemeColor(createThemeColor(DigitalGreenLight, PowerGreen, PowerGreen), 0.2, 0.2, 0.2),
|
|
16359
|
+
calendarRowBackgroundConflictColor: hexToRgbaCssThemeColor(createThemeColor(Fail100LightUi, Fail100DarkUi, Fail100DarkUi), 0.2, 0.2, 0.2),
|
|
16360
|
+
calendarEventFillBlockedColor: createThemeColor(hexToRgbaCssColor(Black91, 0.07), Black82, Black82),
|
|
16361
|
+
calendarGrabHandleBackgroundColor: createThemeColor(DigitalGreenLight, PowerGreen, PowerGreen),
|
|
16362
|
+
calendarGridBorderColor: createThemeColor(Black22, Black80, Black80),
|
|
16363
|
+
calendarGroupHeaderBackgroundColor: createThemeColor(Black7, hexToRgbaCssColor(Black91, 0.1), hexToRgbaCssColor(Black91, 0.1)),
|
|
16364
|
+
controlHeight: '32px',
|
|
16365
|
+
controlSlimHeight: '24px',
|
|
16366
|
+
smallPadding: '4px',
|
|
16367
|
+
mediumPadding: '8px',
|
|
16368
|
+
standardPadding: '16px',
|
|
16369
|
+
largePadding: '24px',
|
|
16370
|
+
labelHeight: '16px',
|
|
16371
|
+
borderWidth: '1px',
|
|
16372
|
+
dividerWidth: '2px',
|
|
16373
|
+
iconSize: '16px',
|
|
16374
|
+
drawerWidth: '784px',
|
|
16375
|
+
dialogSmallWidth: '400px',
|
|
16376
|
+
dialogSmallHeight: 'fit-content',
|
|
16377
|
+
dialogSmallMaxHeight: '600px',
|
|
16378
|
+
dialogLargeWidth: '1024px',
|
|
16379
|
+
dialogLargeHeight: '680px',
|
|
16380
|
+
dialogLargeMaxHeight: '680px',
|
|
16381
|
+
menuMinWidth: '176px',
|
|
16382
|
+
bannerGapSize: '1px',
|
|
16383
|
+
spinnerSmallHeight: '16px',
|
|
16384
|
+
spinnerMediumHeight: '32px',
|
|
16385
|
+
spinnerLargeHeight: '64px',
|
|
16386
|
+
tableFitRowsHeight: '480px',
|
|
16387
|
+
elevation1BoxShadow: createThemeColor(`0px 1px 4px ${hexToRgbaCssColor(Black, 0.16)}`, `0px 1px 4px ${hexToRgbaCssColor(Black, 0.16)}`, `0px 1px 4px ${hexToRgbaCssColor(Black, 0.16)}`),
|
|
16388
|
+
elevation2BoxShadow: createThemeColor(`0px 2px 4px ${hexToRgbaCssColor(Black, 0.16)}`, `0px 2px 4px ${hexToRgbaCssColor(Black, 0.16)}`, `0px 2px 4px ${hexToRgbaCssColor(Black, 0.16)}`),
|
|
16389
|
+
elevation3BoxShadow: createThemeColor(`0px 4px 8px ${hexToRgbaCssColor(Black, 0.3)}`, `0px 4px 8px ${hexToRgbaCssColor(Black, 0.3)}`, `0px 4px 8px ${hexToRgbaCssColor(Black, 0.3)}`),
|
|
16390
|
+
...createFont('headline', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Headline1Family, Headline1Weight, Headline1Size, Headline1LineHeight),
|
|
16391
|
+
...createFont('headlinePlus1', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Headline2Family, Headline2Weight, Headline2Size, Headline2LineHeight),
|
|
16392
|
+
...createFont('titlePlus2', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Title3Family, Title3Weight, Title3Size, Title3LineHeight),
|
|
16393
|
+
...createFont('titlePlus1', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Title2Family, Title2Weight, Title2Size, Title2LineHeight),
|
|
16394
|
+
...createFont('title', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Title1Family, Title1Weight, Title1Size, Title1LineHeight),
|
|
16395
|
+
...createFont('subtitlePlus1', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Subtitle2Family, Subtitle2Weight, Subtitle2Size, Subtitle2LineHeight),
|
|
16396
|
+
...createFont('subtitle', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Subtitle1Family, Subtitle1Weight, Subtitle1Size, Subtitle1LineHeight),
|
|
16397
|
+
...createFont('link', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight),
|
|
16398
|
+
...createFont('linkActive', createThemeColor(DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight),
|
|
16399
|
+
...createFont('linkProminent', createThemeColor(DigitalGreenDark105, PowerGreen, White), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight),
|
|
16400
|
+
...createFont('linkActiveProminent', createThemeColor(DigitalGreenLight, DigitalGreenLight, hexToRgbaCssColor(White, 0.75)), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), LinkLightUiFamily, LinkLightUiWeight, LinkLightUiSize, LinkLineHeight),
|
|
16401
|
+
...createFont('placeholder', hexToRgbaCssThemeColor(alias.defaultFontColor, 0.6, 0.6, 0.6), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), PlaceholderFamily, PlaceholderWeight, PlaceholderSize, PlaceholderLineHeight),
|
|
16402
|
+
...createFont('body', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyFamily, BodyWeight, BodySize, BodyLineHeight),
|
|
16403
|
+
...createFont('bodyEmphasized', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyEmphasizedFamily, BodyEmphasizedWeight, BodyEmphasizedSize, BodyEmphasizedLineHeight),
|
|
16404
|
+
...createFont('bodyPlus1', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), Body2Family, Body2Weight, Body2Size, Body2LineHeight),
|
|
16405
|
+
...createFont('bodyPlus1Emphasized', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyEmphasized2Family, BodyEmphasized2Weight, BodyEmphasized2Size, BodyEmphasized2LineHeight),
|
|
16406
|
+
...createFont('groupHeader', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), GroupLabel1Family, GroupLabel1Weight, GroupLabel1Size, GroupLabel1LineHeight),
|
|
16407
|
+
...createFont('controlLabel', hexToRgbaCssThemeColor(alias.defaultFontColor, 0.6, 0.6, 0.6), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), ControlLabel1Family, ControlLabel1Weight, ControlLabel1Size, ControlLabel1LineHeight),
|
|
16408
|
+
...createFont('buttonLabel', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), ButtonLabel1Family, ButtonLabel1Weight, ButtonLabel1Size, ButtonLabel1LineHeight),
|
|
16409
|
+
...createFont('tooltipCaption', alias.defaultFontColor, hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), TooltipCaptionFamily, TooltipCaptionWeight, TooltipCaptionSize, TooltipCaptionLineHeight),
|
|
16410
|
+
...createFont('errorText', alias.failColor, hexToRgbaCssThemeColor(alias.failColor, 0.3, 0.3, 0.3), ErrorLightUiFamily, ErrorLightUiWeight, ErrorLightUiSize, TooltipCaptionLineHeight),
|
|
16411
|
+
...createFont('tableHeader', hexToRgbaCssThemeColor(alias.defaultFontColor, 0.6, 0.6, 0.6), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), GridHeaderFamily, GridHeaderWeight, GridHeaderSize, TooltipCaptionLineHeight),
|
|
16412
|
+
...createFont('mention', createThemeColor(DigitalGreenDark, PowerGreen, PowerGreen), hexToRgbaCssThemeColor(alias.defaultFontColor, 0.3, 0.3, 0.3), BodyFamily, BodyEmphasizedWeight, BodySize, BodyLineHeight),
|
|
16413
|
+
groupHeaderTextTransform: 'uppercase',
|
|
16414
|
+
smallDelay: SmallDelay,
|
|
16415
|
+
mediumDelay: MediumDelay,
|
|
16416
|
+
largeDelay: LargeDelay
|
|
16417
|
+
};
|
|
16418
|
+
// #endregion
|
|
16419
|
+
function hexToRgbaCssThemeColor(themeColor, lightAlpha, darkAlpha, colorAlpha) {
|
|
16420
|
+
return {
|
|
16421
|
+
light: hexToRgbaCssColor(themeColor.light, lightAlpha),
|
|
16422
|
+
dark: hexToRgbaCssColor(themeColor.dark, darkAlpha),
|
|
16423
|
+
color: hexToRgbaCssColor(themeColor.color, colorAlpha),
|
|
16424
|
+
};
|
|
16425
|
+
}
|
|
16387
16426
|
function hexToRgbPartial(hexValue) {
|
|
16388
16427
|
const { r, g, b } = parseColorHexRGB(hexValue);
|
|
16389
16428
|
return `${r * 255}, ${g * 255}, ${b * 255}`;
|
|
16390
16429
|
}
|
|
16391
|
-
function
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16430
|
+
function hexToRgbPartialThemeColor(themeColor) {
|
|
16431
|
+
return {
|
|
16432
|
+
light: hexToRgbPartial(themeColor.light),
|
|
16433
|
+
dark: hexToRgbPartial(themeColor.dark),
|
|
16434
|
+
color: hexToRgbPartial(themeColor.color),
|
|
16435
|
+
};
|
|
16436
|
+
}
|
|
16437
|
+
function createThemeColor(light, dark, color) {
|
|
16438
|
+
return {
|
|
16439
|
+
light,
|
|
16440
|
+
dark,
|
|
16441
|
+
color
|
|
16442
|
+
};
|
|
16443
|
+
}
|
|
16444
|
+
function createFont(token, color, disabledColor, family, weight, size, lineHeight) {
|
|
16399
16445
|
const familyWithFallback = `${family}, ${family} Fallback`;
|
|
16400
|
-
|
|
16446
|
+
return {
|
|
16447
|
+
[`${token}Font`]: `${weight} ${size}/${lineHeight} ${familyWithFallback}`,
|
|
16448
|
+
[`${token}FontColor`]: color,
|
|
16449
|
+
[`${token}DisabledFontColor`]: disabledColor,
|
|
16450
|
+
[`${token}FontFamily`]: family,
|
|
16451
|
+
[`${token}FontWeight`]: weight,
|
|
16452
|
+
[`${token}FontSize`]: size,
|
|
16453
|
+
[`${token}FontLineHeight`]: lineHeight,
|
|
16454
|
+
};
|
|
16455
|
+
}
|
|
16456
|
+
|
|
16457
|
+
// #region color tokens
|
|
16458
|
+
const actionRgbPartialColor = createThemeColorToken(tokenNames.actionRgbPartialColor, tokenValues.actionRgbPartialColor);
|
|
16459
|
+
const applicationBackgroundColor = createThemeColorToken(tokenNames.applicationBackgroundColor, tokenValues.applicationBackgroundColor);
|
|
16460
|
+
createThemeColorToken(tokenNames.headerBackgroundColor, tokenValues.headerBackgroundColor);
|
|
16461
|
+
createThemeColorToken(tokenNames.sectionBackgroundColor, tokenValues.sectionBackgroundColor);
|
|
16462
|
+
const sectionBackgroundImage = createThemeColorToken(tokenNames.sectionBackgroundImage, tokenValues.sectionBackgroundImage);
|
|
16463
|
+
createThemeColorToken(tokenNames.dividerBackgroundColor, tokenValues.dividerBackgroundColor);
|
|
16464
|
+
const fillSelectedColor = createThemeColorToken(tokenNames.fillSelectedColor, tokenValues.fillSelectedColor);
|
|
16465
|
+
const fillSelectedRgbPartialColor = createThemeColorToken(tokenNames.fillSelectedRgbPartialColor, tokenValues.fillSelectedRgbPartialColor);
|
|
16466
|
+
const fillHoverSelectedColor = createThemeColorToken(tokenNames.fillHoverSelectedColor, tokenValues.fillHoverSelectedColor);
|
|
16467
|
+
const fillHoverColor = createThemeColorToken(tokenNames.fillHoverColor, tokenValues.fillHoverColor);
|
|
16468
|
+
createThemeColorToken(tokenNames.fillHoverRgbPartialColor, tokenValues.fillHoverRgbPartialColor);
|
|
16469
|
+
createThemeColorToken(tokenNames.fillDownColor, tokenValues.fillDownColor);
|
|
16470
|
+
const borderColor = createThemeColorToken(tokenNames.borderColor, tokenValues.borderColor);
|
|
16471
|
+
const borderRgbPartialColor = createThemeColorToken(tokenNames.borderRgbPartialColor, tokenValues.borderRgbPartialColor);
|
|
16472
|
+
const failColor = createThemeColorToken(tokenNames.failColor, tokenValues.failColor);
|
|
16473
|
+
const warningColor = createThemeColorToken(tokenNames.warningColor, tokenValues.warningColor);
|
|
16474
|
+
const passColor = createThemeColorToken(tokenNames.passColor, tokenValues.passColor);
|
|
16475
|
+
const informationColor = createThemeColorToken(tokenNames.informationColor, tokenValues.informationColor);
|
|
16476
|
+
const borderHoverColor = createThemeColorToken(tokenNames.borderHoverColor, tokenValues.borderHoverColor);
|
|
16477
|
+
// #endregion
|
|
16478
|
+
// #region component color tokens
|
|
16479
|
+
const iconColor = createThemeColorToken(tokenNames.iconColor, tokenValues.iconColor);
|
|
16480
|
+
const modalBackdropColor = createThemeColorToken(tokenNames.modalBackdropColor, tokenValues.modalBackdropColor);
|
|
16481
|
+
const popupBorderColor = createThemeColorToken(tokenNames.popupBorderColor, tokenValues.popupBorderColor);
|
|
16482
|
+
const cardBorderColor = createThemeColorToken(tokenNames.cardBorderColor, tokenValues.cardBorderColor);
|
|
16483
|
+
createThemeColorToken(tokenNames.graphGridlineColor, tokenValues.graphGridlineColor);
|
|
16484
|
+
createThemeColorToken(tokenNames.graphTrace1Color, tokenValues.graphTrace1Color);
|
|
16485
|
+
createThemeColorToken(tokenNames.graphTrace2Color, tokenValues.graphTrace2Color);
|
|
16486
|
+
createThemeColorToken(tokenNames.graphTrace3Color, tokenValues.graphTrace3Color);
|
|
16487
|
+
createThemeColorToken(tokenNames.graphTrace4Color, tokenValues.graphTrace4Color);
|
|
16488
|
+
createThemeColorToken(tokenNames.graphTrace5Color, tokenValues.graphTrace5Color);
|
|
16489
|
+
createThemeColorToken(tokenNames.graphTrace6Color, tokenValues.graphTrace6Color);
|
|
16490
|
+
createThemeColorToken(tokenNames.graphTrace7Color, tokenValues.graphTrace7Color);
|
|
16491
|
+
createThemeColorToken(tokenNames.graphTrace8Color, tokenValues.graphTrace8Color);
|
|
16492
|
+
createThemeColorToken(tokenNames.tooltipBackgroundColor, tokenValues.tooltipBackgroundColor);
|
|
16493
|
+
const tableRowBorderColor = createThemeColorToken(tokenNames.tableRowBorderColor, tokenValues.tableRowBorderColor);
|
|
16494
|
+
createThemeColorToken(tokenNames.tagFillColor, tokenValues.tagFillColor);
|
|
16495
|
+
const buttonFillPrimaryColor = createThemeColorToken(tokenNames.buttonFillPrimaryColor, tokenValues.buttonFillPrimaryColor);
|
|
16496
|
+
const buttonPrimaryFontColor = createThemeColorToken(tokenNames.buttonPrimaryFontColor, tokenValues.buttonPrimaryFontColor);
|
|
16497
|
+
const buttonFillAccentColor = createThemeColorToken(tokenNames.buttonFillAccentColor, tokenValues.buttonFillAccentColor);
|
|
16498
|
+
const buttonAccentBlockFontColor = createThemeColorToken(tokenNames.buttonAccentBlockFontColor, tokenValues.buttonAccentBlockFontColor);
|
|
16499
|
+
const buttonAccentOutlineFontColor = createThemeColorToken(tokenNames.buttonAccentOutlineFontColor, tokenValues.buttonAccentOutlineFontColor);
|
|
16500
|
+
const buttonBorderAccentOutlineColor = createThemeColorToken(tokenNames.buttonBorderAccentOutlineColor, tokenValues.buttonBorderAccentOutlineColor);
|
|
16501
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundStaticColor, tokenValues.calendarEventBackgroundStaticColor);
|
|
16502
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundDynamicColor, tokenValues.calendarEventBackgroundDynamicColor);
|
|
16503
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundTransientColor, tokenValues.calendarEventBackgroundTransientColor);
|
|
16504
|
+
createThemeColorToken(tokenNames.calendarEventBorderStaticColor, tokenValues.calendarEventBorderStaticColor);
|
|
16505
|
+
createThemeColorToken(tokenNames.calendarEventBorderTransientColor, tokenValues.calendarEventBorderTransientColor);
|
|
16506
|
+
createThemeColorToken(tokenNames.calendarEventStaticFontColor, tokenValues.calendarEventStaticFontColor);
|
|
16507
|
+
createThemeColorToken(tokenNames.calendarEventDynamicFontColor, tokenValues.calendarEventDynamicFontColor);
|
|
16508
|
+
createThemeColorToken(tokenNames.calendarEventTransientFontColor, tokenValues.calendarEventTransientFontColor);
|
|
16509
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverStaticColor, tokenValues.calendarEventBackgroundHoverStaticColor);
|
|
16510
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverDynamicColor, tokenValues.calendarEventBackgroundHoverDynamicColor);
|
|
16511
|
+
createThemeColorToken(tokenNames.calendarEventBackgroundHoverTransientColor, tokenValues.calendarEventBackgroundHoverTransientColor);
|
|
16512
|
+
createThemeColorToken(tokenNames.calendarEventOuterBorderHighlightedColor, tokenValues.calendarEventOuterBorderHighlightedColor);
|
|
16513
|
+
createThemeColorToken(tokenNames.calendarRowBackgroundSelectedColor, tokenValues.calendarRowBackgroundSelectedColor);
|
|
16514
|
+
createThemeColorToken(tokenNames.calendarRowBackgroundConflictColor, tokenValues.calendarRowBackgroundConflictColor);
|
|
16515
|
+
createThemeColorToken(tokenNames.calendarEventFillBlockedColor, tokenValues.calendarEventFillBlockedColor);
|
|
16516
|
+
createThemeColorToken(tokenNames.calendarGrabHandleBackgroundColor, tokenValues.calendarGrabHandleBackgroundColor);
|
|
16517
|
+
createThemeColorToken(tokenNames.calendarGridBorderColor, tokenValues.calendarGridBorderColor);
|
|
16518
|
+
createThemeColorToken(tokenNames.calendarGroupHeaderBackgroundColor, tokenValues.calendarGroupHeaderBackgroundColor);
|
|
16519
|
+
// #endregion
|
|
16520
|
+
// #region size tokens
|
|
16521
|
+
const controlHeight = createStringToken(tokenNames.controlHeight, tokenValues.controlHeight);
|
|
16522
|
+
const controlSlimHeight = createStringToken(tokenNames.controlSlimHeight, tokenValues.controlSlimHeight);
|
|
16523
|
+
const smallPadding = createStringToken(tokenNames.smallPadding, tokenValues.smallPadding);
|
|
16524
|
+
const mediumPadding = createStringToken(tokenNames.mediumPadding, tokenValues.mediumPadding);
|
|
16525
|
+
const standardPadding = createStringToken(tokenNames.standardPadding, tokenValues.standardPadding);
|
|
16526
|
+
const largePadding = createStringToken(tokenNames.largePadding, tokenValues.largePadding);
|
|
16527
|
+
createStringToken(tokenNames.labelHeight, tokenValues.labelHeight);
|
|
16528
|
+
const borderWidth = createStringToken(tokenNames.borderWidth, tokenValues.borderWidth);
|
|
16529
|
+
createStringToken(tokenNames.dividerWidth, tokenValues.dividerWidth);
|
|
16530
|
+
const iconSize = createStringToken(tokenNames.iconSize, tokenValues.iconSize);
|
|
16531
|
+
const drawerWidth = createStringToken(tokenNames.drawerWidth, tokenValues.drawerWidth);
|
|
16532
|
+
const dialogSmallWidth = createStringToken(tokenNames.dialogSmallWidth, tokenValues.dialogSmallWidth);
|
|
16533
|
+
const dialogSmallHeight = createStringToken(tokenNames.dialogSmallHeight, tokenValues.dialogSmallHeight);
|
|
16534
|
+
const dialogSmallMaxHeight = createStringToken(tokenNames.dialogSmallMaxHeight, tokenValues.dialogSmallMaxHeight);
|
|
16535
|
+
createStringToken(tokenNames.dialogLargeWidth, tokenValues.dialogLargeWidth);
|
|
16536
|
+
createStringToken(tokenNames.dialogLargeHeight, tokenValues.dialogLargeHeight);
|
|
16537
|
+
createStringToken(tokenNames.dialogLargeMaxHeight, tokenValues.dialogLargeMaxHeight);
|
|
16538
|
+
const menuMinWidth = createStringToken(tokenNames.menuMinWidth, tokenValues.menuMinWidth);
|
|
16539
|
+
createStringToken(tokenNames.bannerGapSize, tokenValues.bannerGapSize);
|
|
16540
|
+
const spinnerSmallHeight = createStringToken(tokenNames.spinnerSmallHeight, tokenValues.spinnerSmallHeight);
|
|
16541
|
+
createStringToken(tokenNames.spinnerMediumHeight, tokenValues.spinnerMediumHeight);
|
|
16542
|
+
createStringToken(tokenNames.spinnerLargeHeight, tokenValues.spinnerLargeHeight);
|
|
16543
|
+
const tableFitRowsHeight = createStringToken(tokenNames.tableFitRowsHeight, tokenValues.tableFitRowsHeight);
|
|
16544
|
+
// #endregion
|
|
16545
|
+
// #region drop shadow tokens
|
|
16546
|
+
createThemeColorToken(tokenNames.elevation1BoxShadow, tokenValues.elevation1BoxShadow);
|
|
16547
|
+
const elevation2BoxShadow = createThemeColorToken(tokenNames.elevation2BoxShadow, tokenValues.elevation2BoxShadow);
|
|
16548
|
+
const elevation3BoxShadow = createThemeColorToken(tokenNames.elevation3BoxShadow, tokenValues.elevation3BoxShadow);
|
|
16549
|
+
// #endregion
|
|
16550
|
+
// #region font tokens
|
|
16551
|
+
createFontTokens(tokenNames.headlineFont, tokenValues.headlineFont, tokenValues.headlineFontColor, tokenValues.headlineDisabledFontColor, tokenValues.headlineFontFamily, tokenValues.headlineFontWeight, tokenValues.headlineFontSize, tokenValues.headlineFontLineHeight);
|
|
16552
|
+
createFontTokens(tokenNames.headlinePlus1Font, tokenValues.headlinePlus1Font, tokenValues.headlinePlus1FontColor, tokenValues.headlinePlus1DisabledFontColor, tokenValues.headlinePlus1FontFamily, tokenValues.headlinePlus1FontWeight, tokenValues.headlinePlus1FontSize, tokenValues.headlinePlus1FontLineHeight);
|
|
16553
|
+
createFontTokens(tokenNames.titlePlus2Font, tokenValues.titlePlus2Font, tokenValues.titlePlus2FontColor, tokenValues.titlePlus2DisabledFontColor, tokenValues.titlePlus2FontFamily, tokenValues.titlePlus2FontWeight, tokenValues.titlePlus2FontSize, tokenValues.titlePlus2FontLineHeight);
|
|
16554
|
+
const [titlePlus1Font, titlePlus1FontColor] = createFontTokens(tokenNames.titlePlus1Font, tokenValues.titlePlus1Font, tokenValues.titlePlus1FontColor, tokenValues.titlePlus1DisabledFontColor, tokenValues.titlePlus1FontFamily, tokenValues.titlePlus1FontWeight, tokenValues.titlePlus1FontSize, tokenValues.titlePlus1FontLineHeight);
|
|
16555
|
+
createFontTokens(tokenNames.titleFont, tokenValues.titleFont, tokenValues.titleFontColor, tokenValues.titleDisabledFontColor, tokenValues.titleFontFamily, tokenValues.titleFontWeight, tokenValues.titleFontSize, tokenValues.titleFontLineHeight);
|
|
16556
|
+
const [subtitlePlus1Font] = createFontTokens(tokenNames.subtitlePlus1Font, tokenValues.subtitlePlus1Font, tokenValues.subtitlePlus1FontColor, tokenValues.subtitlePlus1DisabledFontColor, tokenValues.subtitlePlus1FontFamily, tokenValues.subtitlePlus1FontWeight, tokenValues.subtitlePlus1FontSize, tokenValues.subtitlePlus1FontLineHeight);
|
|
16557
|
+
const [subtitleFont, subtitleFontColor] = createFontTokens(tokenNames.subtitleFont, tokenValues.subtitleFont, tokenValues.subtitleFontColor, tokenValues.subtitleDisabledFontColor, tokenValues.subtitleFontFamily, tokenValues.subtitleFontWeight, tokenValues.subtitleFontSize, tokenValues.subtitleFontLineHeight);
|
|
16558
|
+
const [linkFont, linkFontColor, linkDisabledFontColor] = createFontTokens(tokenNames.linkFont, tokenValues.linkFont, tokenValues.linkFontColor, tokenValues.linkDisabledFontColor, tokenValues.linkFontFamily, tokenValues.linkFontWeight, tokenValues.linkFontSize, tokenValues.linkFontLineHeight);
|
|
16559
|
+
const [linkActiveFont, linkActiveFontColor] = createFontTokens(tokenNames.linkActiveFont, tokenValues.linkActiveFont, tokenValues.linkActiveFontColor, tokenValues.linkActiveDisabledFontColor, tokenValues.linkActiveFontFamily, tokenValues.linkActiveFontWeight, tokenValues.linkActiveFontSize, tokenValues.linkActiveFontLineHeight);
|
|
16560
|
+
const [linkProminentFont, linkProminentFontColor] = createFontTokens(tokenNames.linkProminentFont, tokenValues.linkProminentFont, tokenValues.linkProminentFontColor, tokenValues.linkProminentDisabledFontColor, tokenValues.linkProminentFontFamily, tokenValues.linkProminentFontWeight, tokenValues.linkProminentFontSize, tokenValues.linkProminentFontLineHeight);
|
|
16561
|
+
const [linkActiveProminentFont, linkActiveProminentFontColor] = createFontTokens(tokenNames.linkActiveProminentFont, tokenValues.linkActiveProminentFont, tokenValues.linkActiveProminentFontColor, tokenValues.linkActiveProminentDisabledFontColor, tokenValues.linkActiveProminentFontFamily, tokenValues.linkActiveProminentFontWeight, tokenValues.linkActiveProminentFontSize, tokenValues.linkActiveProminentFontLineHeight);
|
|
16562
|
+
const [placeholderFont, placeholderFontColor] = createFontTokens(tokenNames.placeholderFont, tokenValues.placeholderFont, tokenValues.placeholderFontColor, tokenValues.placeholderDisabledFontColor, tokenValues.placeholderFontFamily, tokenValues.placeholderFontWeight, tokenValues.placeholderFontSize, tokenValues.placeholderFontLineHeight);
|
|
16563
|
+
const [bodyFont, bodyFontColor, bodyDisabledFontColor, bodyFontFamily, bodyFontWeight, bodyFontSize, bodyFontLineHeight] = createFontTokens(tokenNames.bodyFont, tokenValues.bodyFont, tokenValues.bodyFontColor, tokenValues.bodyDisabledFontColor, tokenValues.bodyFontFamily, tokenValues.bodyFontWeight, tokenValues.bodyFontSize, tokenValues.bodyFontLineHeight);
|
|
16564
|
+
const [bodyEmphasizedFont, bodyEmphasizedFontColor, bodyEmphasizedDisabledFontColor, bodyEmphasizedFontFamily, bodyEmphasizedFontWeight] = createFontTokens(tokenNames.bodyEmphasizedFont, tokenValues.bodyEmphasizedFont, tokenValues.bodyEmphasizedFontColor, tokenValues.bodyEmphasizedDisabledFontColor, tokenValues.bodyEmphasizedFontFamily, tokenValues.bodyEmphasizedFontWeight, tokenValues.bodyEmphasizedFontSize, tokenValues.bodyEmphasizedFontLineHeight);
|
|
16565
|
+
createFontTokens(tokenNames.bodyPlus1Font, tokenValues.bodyPlus1Font, tokenValues.bodyPlus1FontColor, tokenValues.bodyPlus1DisabledFontColor, tokenValues.bodyPlus1FontFamily, tokenValues.bodyPlus1FontWeight, tokenValues.bodyPlus1FontSize, tokenValues.bodyPlus1FontLineHeight);
|
|
16566
|
+
createFontTokens(tokenNames.bodyPlus1EmphasizedFont, tokenValues.bodyPlus1EmphasizedFont, tokenValues.bodyPlus1EmphasizedFontColor, tokenValues.bodyPlus1EmphasizedDisabledFontColor, tokenValues.bodyPlus1EmphasizedFontFamily, tokenValues.bodyPlus1EmphasizedFontWeight, tokenValues.bodyPlus1EmphasizedFontSize, tokenValues.bodyPlus1EmphasizedFontLineHeight);
|
|
16567
|
+
const [groupHeaderFont, groupHeaderFontColor] = createFontTokens(tokenNames.groupHeaderFont, tokenValues.groupHeaderFont, tokenValues.groupHeaderFontColor, tokenValues.groupHeaderDisabledFontColor, tokenValues.groupHeaderFontFamily, tokenValues.groupHeaderFontWeight, tokenValues.groupHeaderFontSize, tokenValues.groupHeaderFontLineHeight);
|
|
16568
|
+
const [controlLabelFont, controlLabelFontColor, controlLabelDisabledFontColor, controlLabelFontFamily, controlLabelFontWeight, controlLabelFontSize, controlLabelFontLineHeight] = createFontTokens(tokenNames.controlLabelFont, tokenValues.controlLabelFont, tokenValues.controlLabelFontColor, tokenValues.controlLabelDisabledFontColor, tokenValues.controlLabelFontFamily, tokenValues.controlLabelFontWeight, tokenValues.controlLabelFontSize, tokenValues.controlLabelFontLineHeight);
|
|
16569
|
+
const [buttonLabelFont, buttonLabelFontColor, buttonLabelDisabledFontColor] = createFontTokens(tokenNames.buttonLabelFont, tokenValues.buttonLabelFont, tokenValues.buttonLabelFontColor, tokenValues.buttonLabelDisabledFontColor, tokenValues.buttonLabelFontFamily, tokenValues.buttonLabelFontWeight, tokenValues.buttonLabelFontSize, tokenValues.buttonLabelFontLineHeight);
|
|
16570
|
+
const [tooltipCaptionFont, tooltipCaptionFontColor] = createFontTokens(tokenNames.tooltipCaptionFont, tokenValues.tooltipCaptionFont, tokenValues.tooltipCaptionFontColor, tokenValues.tooltipCaptionDisabledFontColor, tokenValues.tooltipCaptionFontFamily, tokenValues.tooltipCaptionFontWeight, tokenValues.tooltipCaptionFontSize, tokenValues.tooltipCaptionFontLineHeight);
|
|
16571
|
+
const [errorTextFont, errorTextFontColor, errorTextDisabledFontColor, errorTextFontFamily, errorTextFontWeight, errorTextFontSize, errorTextFontLineHeight] = createFontTokens(tokenNames.errorTextFont, tokenValues.errorTextFont, tokenValues.errorTextFontColor, tokenValues.errorTextDisabledFontColor, tokenValues.errorTextFontFamily, tokenValues.errorTextFontWeight, tokenValues.errorTextFontSize, tokenValues.errorTextFontLineHeight);
|
|
16572
|
+
const [tableHeaderFont, tableHeaderFontColor] = createFontTokens(tokenNames.tableHeaderFont, tokenValues.tableHeaderFont, tokenValues.tableHeaderFontColor, tokenValues.tableHeaderDisabledFontColor, tokenValues.tableHeaderFontFamily, tokenValues.tableHeaderFontWeight, tokenValues.tableHeaderFontSize, tokenValues.tableHeaderFontLineHeight);
|
|
16573
|
+
createFontTokens(tokenNames.mentionFont, tokenValues.mentionFont, tokenValues.mentionFontColor, tokenValues.mentionDisabledFontColor, tokenValues.mentionFontFamily, tokenValues.mentionFontWeight, tokenValues.mentionFontSize, tokenValues.mentionFontLineHeight);
|
|
16574
|
+
// #endregion
|
|
16575
|
+
// #region text transform tokens
|
|
16576
|
+
const groupHeaderTextTransform = createStringToken(tokenNames.groupHeaderTextTransform, tokenValues.groupHeaderTextTransform);
|
|
16577
|
+
// #endregion
|
|
16578
|
+
// #region animation tokens
|
|
16579
|
+
const smallDelay = createStringToken(tokenNames.smallDelay, tokenValues.smallDelay);
|
|
16580
|
+
const mediumDelay = createStringToken(tokenNames.mediumDelay, tokenValues.mediumDelay);
|
|
16581
|
+
const largeDelay = createStringToken(tokenNames.largeDelay, tokenValues.largeDelay);
|
|
16582
|
+
// #endregion
|
|
16583
|
+
// #region helpers
|
|
16584
|
+
function createFontTokens(fontTokenName, font, fontColor, disabledFontColor, fontFamily, fontWeight, fontSize, fontLineHeight) {
|
|
16401
16585
|
const fontNameParts = fontTokenName.split('-font');
|
|
16402
16586
|
const tokenPrefixWithoutFont = fontNameParts[0];
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
}
|
|
16406
|
-
const
|
|
16407
|
-
const
|
|
16408
|
-
const
|
|
16409
|
-
const
|
|
16410
|
-
const
|
|
16411
|
-
const fontLineHeightToken = DesignToken.create(styleNameFromTokenName(`${tokenPrefixWithoutFont}-font-line-height`)).withDefault(lineHeight);
|
|
16587
|
+
const fontFamilyWithFallback = `${fontFamily}, ${fontFamily} Fallback`;
|
|
16588
|
+
const fontToken = createStringToken(fontTokenName, font);
|
|
16589
|
+
const fontColorToken = createThemeColorToken(`${tokenPrefixWithoutFont}-font-color`, fontColor);
|
|
16590
|
+
const fontDisabledColorToken = createThemeColorToken(`${tokenPrefixWithoutFont}-disabled-font-color`, disabledFontColor);
|
|
16591
|
+
const fontFamilyToken = createStringToken(`${tokenPrefixWithoutFont}-font-family`, fontFamilyWithFallback);
|
|
16592
|
+
const fontWeightToken = createStringToken(`${tokenPrefixWithoutFont}-font-weight`, fontWeight);
|
|
16593
|
+
const fontSizeToken = createStringToken(`${tokenPrefixWithoutFont}-font-size`, fontSize);
|
|
16594
|
+
const fontLineHeightToken = createStringToken(`${tokenPrefixWithoutFont}-font-line-height`, fontLineHeight);
|
|
16412
16595
|
return [
|
|
16413
16596
|
fontToken,
|
|
16414
16597
|
fontColorToken,
|
|
@@ -16419,57 +16602,24 @@
|
|
|
16419
16602
|
fontLineHeightToken
|
|
16420
16603
|
];
|
|
16421
16604
|
}
|
|
16422
|
-
function
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
|
-
|
|
16426
|
-
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
|
|
16433
|
-
|
|
16434
|
-
|
|
16435
|
-
|
|
16436
|
-
|
|
16437
|
-
|
|
16438
|
-
return getColorForTheme(element, Fail100LightUi, Fail100DarkUi, White);
|
|
16439
|
-
}
|
|
16440
|
-
function getPassColorForTheme(element) {
|
|
16441
|
-
return getColorForTheme(element, Pass100LightUi, Pass100DarkUi, White);
|
|
16442
|
-
}
|
|
16443
|
-
function getInformationColorForTheme(element) {
|
|
16444
|
-
return getColorForTheme(element, Information100LightUi, Information100DarkUi, White);
|
|
16445
|
-
}
|
|
16446
|
-
function getDefaultLineColorForTheme(element) {
|
|
16447
|
-
return getColorForTheme(element, Black91, Black15, White);
|
|
16448
|
-
}
|
|
16449
|
-
function getDefaultFontColorForTheme(element) {
|
|
16450
|
-
return getColorForTheme(element, Black91, Black15, White);
|
|
16451
|
-
}
|
|
16452
|
-
function getFillSelectedColorForTheme(element) {
|
|
16453
|
-
return getColorForTheme(element, DigitalGreenLight, PowerGreen, White);
|
|
16454
|
-
}
|
|
16455
|
-
function getFillHoverColorForTheme(element) {
|
|
16456
|
-
return getColorForTheme(element, Black91, Black15, White);
|
|
16457
|
-
}
|
|
16458
|
-
function getFillDownColorForTheme(element) {
|
|
16459
|
-
return getColorForTheme(element, Black91, Black15, White);
|
|
16460
|
-
}
|
|
16461
|
-
function getModalBackdropForTheme(element) {
|
|
16462
|
-
switch (theme.getValueFor(element)) {
|
|
16463
|
-
case Theme.light:
|
|
16464
|
-
return hexToRgbaCssColor(Black, 0.3);
|
|
16465
|
-
case Theme.dark:
|
|
16466
|
-
return hexToRgbaCssColor(Black, 0.6);
|
|
16467
|
-
case Theme.color:
|
|
16468
|
-
return hexToRgbaCssColor(Black, 0.6);
|
|
16469
|
-
default:
|
|
16470
|
-
return hexToRgbaCssColor(Black, 0.3);
|
|
16471
|
-
}
|
|
16605
|
+
function createStringToken(tokenName, tokenValue) {
|
|
16606
|
+
return DesignToken.create(styleNameFromTokenName(tokenName)).withDefault(tokenValue);
|
|
16607
|
+
}
|
|
16608
|
+
function createThemeColorToken(tokenName, themeColor) {
|
|
16609
|
+
return DesignToken.create(styleNameFromTokenName(tokenName)).withDefault((element) => {
|
|
16610
|
+
switch (theme.getValueFor(element)) {
|
|
16611
|
+
case Theme.light:
|
|
16612
|
+
return themeColor.light;
|
|
16613
|
+
case Theme.dark:
|
|
16614
|
+
return themeColor.dark;
|
|
16615
|
+
case Theme.color:
|
|
16616
|
+
return themeColor.color;
|
|
16617
|
+
default:
|
|
16618
|
+
return themeColor.light;
|
|
16619
|
+
}
|
|
16620
|
+
});
|
|
16472
16621
|
}
|
|
16622
|
+
// #endregion
|
|
16473
16623
|
|
|
16474
16624
|
const styles$15 = css `
|
|
16475
16625
|
@layer base, hover, focusVisible, active, disabled;
|
|
@@ -16549,7 +16699,6 @@
|
|
|
16549
16699
|
}
|
|
16550
16700
|
`;
|
|
16551
16701
|
|
|
16552
|
-
// prettier-ignore
|
|
16553
16702
|
const template$S = (_context, definition) => html `${
|
|
16554
16703
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16555
16704
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
@@ -18754,7 +18903,6 @@
|
|
|
18754
18903
|
cssCustomPropertyName: null
|
|
18755
18904
|
}).withDefault(coreLabelDefaults.scrollForwardLabel);
|
|
18756
18905
|
|
|
18757
|
-
// prettier-ignore
|
|
18758
18906
|
const template$M = (context, definition) => html `
|
|
18759
18907
|
<div
|
|
18760
18908
|
class="tab-bar"
|
|
@@ -19611,7 +19759,6 @@
|
|
|
19611
19759
|
information: 'information'
|
|
19612
19760
|
};
|
|
19613
19761
|
|
|
19614
|
-
// prettier-ignore
|
|
19615
19762
|
const template$K = html `
|
|
19616
19763
|
<${themeProviderTag} theme="${Theme.color}">
|
|
19617
19764
|
<div class="container"
|
|
@@ -19739,7 +19886,6 @@
|
|
|
19739
19886
|
* The template for the {@link @ni/fast-foundation#Breadcrumb} component.
|
|
19740
19887
|
* @public
|
|
19741
19888
|
*/
|
|
19742
|
-
// prettier-ignore
|
|
19743
19889
|
const breadcrumbTemplate = (_context, _definition) => html `
|
|
19744
19890
|
<template role="navigation">
|
|
19745
19891
|
${when(x => x.showScrollButtons, html `
|
|
@@ -20565,8 +20711,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20565
20711
|
}
|
|
20566
20712
|
`));
|
|
20567
20713
|
|
|
20568
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
20569
|
-
// prettier-ignore
|
|
20570
20714
|
const template$H = (context, definition) => html `
|
|
20571
20715
|
<div
|
|
20572
20716
|
role="button"
|
|
@@ -20619,7 +20763,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20619
20763
|
${endSlotTemplate(context, definition)}
|
|
20620
20764
|
</div>
|
|
20621
20765
|
`;
|
|
20622
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
20623
20766
|
|
|
20624
20767
|
/**
|
|
20625
20768
|
* A nimble-styled toggle button control.
|
|
@@ -21120,7 +21263,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21120
21263
|
*
|
|
21121
21264
|
* This function is intended to be used with components leveraging `mixinRequiredVisiblePattern`.
|
|
21122
21265
|
*/
|
|
21123
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
21124
21266
|
function createRequiredVisibleLabelTemplate(labelTemplate) {
|
|
21125
21267
|
return html `
|
|
21126
21268
|
<div class="annotated-label">
|
|
@@ -21137,8 +21279,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21137
21279
|
<slot></slot>
|
|
21138
21280
|
</label>
|
|
21139
21281
|
`);
|
|
21140
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
21141
|
-
// prettier-ignore
|
|
21142
21282
|
const template$G = (context, definition) => html `
|
|
21143
21283
|
<template
|
|
21144
21284
|
aria-disabled="${x => x.ariaDisabled}"
|
|
@@ -25524,7 +25664,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25524
25664
|
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25525
25665
|
* @public
|
|
25526
25666
|
*/
|
|
25527
|
-
// prettier-ignore
|
|
25528
25667
|
const template$D = (context, definition) => html `
|
|
25529
25668
|
<template
|
|
25530
25669
|
aria-checked="${x => x.ariaChecked}"
|
|
@@ -25706,7 +25845,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25706
25845
|
const isListOption$1 = (n) => {
|
|
25707
25846
|
return n instanceof ListOption;
|
|
25708
25847
|
};
|
|
25709
|
-
// prettier-ignore
|
|
25710
25848
|
const template$C = html `
|
|
25711
25849
|
<template
|
|
25712
25850
|
role="group"
|
|
@@ -26298,8 +26436,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26298
26436
|
observable
|
|
26299
26437
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
26300
26438
|
|
|
26301
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
26302
|
-
// prettier-ignore
|
|
26303
26439
|
const template$A = () => html `
|
|
26304
26440
|
<template
|
|
26305
26441
|
slot="${x => {
|
|
@@ -26316,7 +26452,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26316
26452
|
<slot ${slotted('items')}></slot>
|
|
26317
26453
|
</template>
|
|
26318
26454
|
`;
|
|
26319
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
26320
26455
|
|
|
26321
26456
|
const styles$G = css `
|
|
26322
26457
|
${display$2('grid')}
|
|
@@ -26423,7 +26558,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26423
26558
|
}
|
|
26424
26559
|
`;
|
|
26425
26560
|
|
|
26426
|
-
// prettier-ignore
|
|
26427
26561
|
const template$z = html `
|
|
26428
26562
|
<template
|
|
26429
26563
|
?open="${x => x.open}"
|
|
@@ -27366,7 +27500,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27366
27500
|
`;
|
|
27367
27501
|
|
|
27368
27502
|
const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
|
|
27369
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
27370
27503
|
const template$x = html `
|
|
27371
27504
|
<template
|
|
27372
27505
|
role="radiogroup"
|
|
@@ -34565,7 +34698,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
34565
34698
|
if (desc.dom.nodeType == 1 && (desc.node.isBlock && desc.parent || !desc.contentDOM) &&
|
|
34566
34699
|
// Ignore elements with zero-size bounding rectangles
|
|
34567
34700
|
((rect = desc.dom.getBoundingClientRect()).width || rect.height)) {
|
|
34568
|
-
if (desc.node.isBlock && desc.parent) {
|
|
34701
|
+
if (desc.node.isBlock && desc.parent && !/^T(R|BODY|HEAD|FOOT)$/.test(desc.dom.nodeName)) {
|
|
34569
34702
|
// Only apply the horizontal test to the innermost block. Vertical for any parent.
|
|
34570
34703
|
if (!sawBlock && rect.left > coords.left || rect.top > coords.top)
|
|
34571
34704
|
outsideBlock = desc.posBefore;
|
|
@@ -35223,7 +35356,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
35223
35356
|
// (one where the focus is before the anchor), but not all
|
|
35224
35357
|
// browsers support it yet.
|
|
35225
35358
|
let domSelExtended = false;
|
|
35226
|
-
if ((domSel.extend || anchor == head) && !brKludge) {
|
|
35359
|
+
if ((domSel.extend || anchor == head) && !(brKludge && gecko)) {
|
|
35227
35360
|
domSel.collapse(anchorDOM.node, anchorDOM.offset);
|
|
35228
35361
|
try {
|
|
35229
35362
|
if (anchor != head)
|
|
@@ -35635,17 +35768,18 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
35635
35768
|
}
|
|
35636
35769
|
// Mark this node as being the selected node.
|
|
35637
35770
|
selectNode() {
|
|
35638
|
-
if (this.nodeDOM.nodeType == 1)
|
|
35771
|
+
if (this.nodeDOM.nodeType == 1) {
|
|
35639
35772
|
this.nodeDOM.classList.add("ProseMirror-selectednode");
|
|
35640
|
-
|
|
35641
|
-
|
|
35773
|
+
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
35774
|
+
this.nodeDOM.draggable = true;
|
|
35775
|
+
}
|
|
35642
35776
|
}
|
|
35643
35777
|
// Remove selected node marking from this node.
|
|
35644
35778
|
deselectNode() {
|
|
35645
35779
|
if (this.nodeDOM.nodeType == 1) {
|
|
35646
35780
|
this.nodeDOM.classList.remove("ProseMirror-selectednode");
|
|
35647
35781
|
if (this.contentDOM || !this.node.type.spec.draggable)
|
|
35648
|
-
this.
|
|
35782
|
+
this.nodeDOM.removeAttribute("draggable");
|
|
35649
35783
|
}
|
|
35650
35784
|
}
|
|
35651
35785
|
get domAtom() { return this.node.isAtom; }
|
|
@@ -36484,17 +36618,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
36484
36618
|
});
|
|
36485
36619
|
}
|
|
36486
36620
|
function selectCursorWrapper(view) {
|
|
36487
|
-
let domSel = view.domSelection()
|
|
36621
|
+
let domSel = view.domSelection();
|
|
36488
36622
|
if (!domSel)
|
|
36489
36623
|
return;
|
|
36490
36624
|
let node = view.cursorWrapper.dom, img = node.nodeName == "IMG";
|
|
36491
36625
|
if (img)
|
|
36492
|
-
|
|
36626
|
+
domSel.collapse(node.parentNode, domIndex(node) + 1);
|
|
36493
36627
|
else
|
|
36494
|
-
|
|
36495
|
-
range.collapse(true);
|
|
36496
|
-
domSel.removeAllRanges();
|
|
36497
|
-
domSel.addRange(range);
|
|
36628
|
+
domSel.collapse(node, 0);
|
|
36498
36629
|
// Kludge to kill 'control selection' in IE11 when selecting an
|
|
36499
36630
|
// invisible cursor wrapper, since that would result in those weird
|
|
36500
36631
|
// resize handles and a selection that considers the absolutely
|
|
@@ -36972,11 +37103,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
36972
37103
|
let dom, slice;
|
|
36973
37104
|
if (!html && !text)
|
|
36974
37105
|
return null;
|
|
36975
|
-
let asText = text && (plainText || inCode || !html);
|
|
37106
|
+
let asText = !!text && (plainText || inCode || !html);
|
|
36976
37107
|
if (asText) {
|
|
36977
37108
|
view.someProp("transformPastedText", f => { text = f(text, inCode || plainText, view); });
|
|
36978
|
-
if (inCode)
|
|
36979
|
-
|
|
37109
|
+
if (inCode) {
|
|
37110
|
+
slice = new Slice(Fragment.from(view.state.schema.text(text.replace(/\r\n?/g, "\n"))), 0, 0);
|
|
37111
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, true); });
|
|
37112
|
+
return slice;
|
|
37113
|
+
}
|
|
36980
37114
|
let parsed = view.someProp("clipboardTextParser", f => f(text, $context, plainText, view));
|
|
36981
37115
|
if (parsed) {
|
|
36982
37116
|
slice = parsed;
|
|
@@ -37034,7 +37168,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37034
37168
|
slice = closeSlice(slice, openStart, openEnd);
|
|
37035
37169
|
}
|
|
37036
37170
|
}
|
|
37037
|
-
view.someProp("transformPasted", f => { slice = f(slice, view); });
|
|
37171
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, asText); });
|
|
37038
37172
|
return slice;
|
|
37039
37173
|
}
|
|
37040
37174
|
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 +37630,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37496
37630
|
}
|
|
37497
37631
|
const target = flushed ? null : event.target;
|
|
37498
37632
|
const targetDesc = target ? view.docView.nearestDesc(target, true) : null;
|
|
37499
|
-
this.target = targetDesc && targetDesc.
|
|
37633
|
+
this.target = targetDesc && targetDesc.nodeDOM.nodeType == 1 ? targetDesc.nodeDOM : null;
|
|
37500
37634
|
let { selection } = view.state;
|
|
37501
37635
|
if (event.button == 0 &&
|
|
37502
37636
|
targetNode.type.spec.draggable && targetNode.type.spec.selectable !== false ||
|
|
@@ -37893,7 +38027,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
37893
38027
|
let $mouse = view.state.doc.resolve(eventPos.pos);
|
|
37894
38028
|
let slice = dragging && dragging.slice;
|
|
37895
38029
|
if (slice) {
|
|
37896
|
-
view.someProp("transformPasted", f => { slice = f(slice, view); });
|
|
38030
|
+
view.someProp("transformPasted", f => { slice = f(slice, view, false); });
|
|
37897
38031
|
}
|
|
37898
38032
|
else {
|
|
37899
38033
|
slice = parseFromClipboard(view, getText$1(event.dataTransfer), brokenClipboardAPI ? null : event.dataTransfer.getData("text/html"), false, $mouse);
|
|
@@ -39079,7 +39213,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39079
39213
|
}
|
|
39080
39214
|
return null;
|
|
39081
39215
|
}
|
|
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;
|
|
39216
|
+
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
39217
|
function readDOMChange(view, from, to, typeOver, addedNodes) {
|
|
39084
39218
|
let compositionID = view.input.compositionPendingChanges || (view.composing ? view.input.compositionID : 0);
|
|
39085
39219
|
view.input.compositionPendingChanges = 0;
|
|
@@ -39178,16 +39312,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39178
39312
|
let $to = parse.doc.resolveNoCache(change.endB - parse.from);
|
|
39179
39313
|
let $fromA = doc.resolve(change.start);
|
|
39180
39314
|
let inlineChange = $from.sameParent($to) && $from.parent.inlineContent && $fromA.end() >= change.endA;
|
|
39181
|
-
let nextSel;
|
|
39182
39315
|
// If this looks like the effect of pressing Enter (or was recorded
|
|
39183
39316
|
// as being an iOS enter press), just dispatch an Enter key instead.
|
|
39184
39317
|
if (((ios && view.input.lastIOSEnter > Date.now() - 225 &&
|
|
39185
39318
|
(!inlineChange || addedNodes.some(n => n.nodeName == "DIV" || n.nodeName == "P"))) ||
|
|
39186
39319
|
(!inlineChange && $from.pos < parse.doc.content.size &&
|
|
39187
39320
|
(!$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)) &&
|
|
39321
|
+
$from.pos < $to.pos && !/\S/.test(parse.doc.textBetween($from.pos, $to.pos, "", "")))) &&
|
|
39191
39322
|
view.someProp("handleKeyDown", f => f(view, keyEvent(13, "Enter")))) {
|
|
39192
39323
|
view.input.lastIOSEnter = 0;
|
|
39193
39324
|
return;
|
|
@@ -45935,8 +46066,6 @@ img.ProseMirror-separator {
|
|
|
45935
46066
|
}
|
|
45936
46067
|
`;
|
|
45937
46068
|
|
|
45938
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
45939
|
-
// prettier-ignore
|
|
45940
46069
|
const template$w = html `
|
|
45941
46070
|
<template>
|
|
45942
46071
|
<${anchoredRegionTag}
|
|
@@ -46233,7 +46362,6 @@ img.ProseMirror-separator {
|
|
|
46233
46362
|
.register(nimbleRichTextMentionListbox());
|
|
46234
46363
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
46235
46364
|
|
|
46236
|
-
// prettier-ignore
|
|
46237
46365
|
const template$v = html `
|
|
46238
46366
|
<template
|
|
46239
46367
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
@@ -47723,7 +47851,7 @@ img.ProseMirror-separator {
|
|
|
47723
47851
|
|
|
47724
47852
|
// Merge objects
|
|
47725
47853
|
//
|
|
47726
|
-
function assign$
|
|
47854
|
+
function assign$1 (obj /* from1, from2, from3, ... */) {
|
|
47727
47855
|
const sources = Array.prototype.slice.call(arguments, 1);
|
|
47728
47856
|
|
|
47729
47857
|
sources.forEach(function (source) {
|
|
@@ -47993,7 +48121,7 @@ img.ProseMirror-separator {
|
|
|
47993
48121
|
var utils = /*#__PURE__*/Object.freeze({
|
|
47994
48122
|
__proto__: null,
|
|
47995
48123
|
arrayReplaceAt: arrayReplaceAt,
|
|
47996
|
-
assign: assign$
|
|
48124
|
+
assign: assign$1,
|
|
47997
48125
|
escapeHtml: escapeHtml,
|
|
47998
48126
|
escapeRE: escapeRE$1,
|
|
47999
48127
|
fromCodePoint: fromCodePoint,
|
|
@@ -48353,7 +48481,7 @@ img.ProseMirror-separator {
|
|
|
48353
48481
|
* See [source code](https://github.com/markdown-it/markdown-it/blob/master/lib/renderer.mjs)
|
|
48354
48482
|
* for more details and examples.
|
|
48355
48483
|
**/
|
|
48356
|
-
this.rules = assign$
|
|
48484
|
+
this.rules = assign$1({}, default_rules);
|
|
48357
48485
|
}
|
|
48358
48486
|
|
|
48359
48487
|
/**
|
|
@@ -53135,7 +53263,7 @@ img.ProseMirror-separator {
|
|
|
53135
53263
|
|
|
53136
53264
|
// Merge objects
|
|
53137
53265
|
//
|
|
53138
|
-
function assign
|
|
53266
|
+
function assign (obj /* from1, from2, from3, ... */) {
|
|
53139
53267
|
const sources = Array.prototype.slice.call(arguments, 1);
|
|
53140
53268
|
|
|
53141
53269
|
sources.forEach(function (source) {
|
|
@@ -53496,7 +53624,7 @@ img.ProseMirror-separator {
|
|
|
53496
53624
|
}
|
|
53497
53625
|
}
|
|
53498
53626
|
|
|
53499
|
-
this.__opts__ = assign
|
|
53627
|
+
this.__opts__ = assign({}, defaultOptions, options);
|
|
53500
53628
|
|
|
53501
53629
|
// Cache last tested result. Used to skip repeating steps on next `match` call.
|
|
53502
53630
|
this.__index__ = -1;
|
|
@@ -53504,7 +53632,7 @@ img.ProseMirror-separator {
|
|
|
53504
53632
|
this.__schema__ = '';
|
|
53505
53633
|
this.__text_cache__ = '';
|
|
53506
53634
|
|
|
53507
|
-
this.__schemas__ = assign
|
|
53635
|
+
this.__schemas__ = assign({}, defaultSchemas, schemas);
|
|
53508
53636
|
this.__compiled__ = {};
|
|
53509
53637
|
|
|
53510
53638
|
this.__tlds__ = tlds_default;
|
|
@@ -53535,7 +53663,7 @@ img.ProseMirror-separator {
|
|
|
53535
53663
|
* Set recognition options for links without schema.
|
|
53536
53664
|
**/
|
|
53537
53665
|
LinkifyIt.prototype.set = function set (options) {
|
|
53538
|
-
this.__opts__ = assign
|
|
53666
|
+
this.__opts__ = assign(this.__opts__, options);
|
|
53539
53667
|
return this
|
|
53540
53668
|
};
|
|
53541
53669
|
|
|
@@ -54738,7 +54866,7 @@ img.ProseMirror-separator {
|
|
|
54738
54866
|
* Link components parser functions, useful to write plugins. See details
|
|
54739
54867
|
* [here](https://github.com/markdown-it/markdown-it/blob/master/lib/helpers).
|
|
54740
54868
|
**/
|
|
54741
|
-
this.helpers = assign$
|
|
54869
|
+
this.helpers = assign$1({}, helpers);
|
|
54742
54870
|
|
|
54743
54871
|
this.options = {};
|
|
54744
54872
|
this.configure(presetName);
|
|
@@ -54766,7 +54894,7 @@ img.ProseMirror-separator {
|
|
|
54766
54894
|
* config.
|
|
54767
54895
|
**/
|
|
54768
54896
|
MarkdownIt.prototype.set = function (options) {
|
|
54769
|
-
assign$
|
|
54897
|
+
assign$1(this.options, options);
|
|
54770
54898
|
return this
|
|
54771
54899
|
};
|
|
54772
54900
|
|
|
@@ -57399,24 +57527,10 @@ img.ProseMirror-separator {
|
|
|
57399
57527
|
// THIS FILE IS AUTOMATICALLY GENERATED DO NOT EDIT DIRECTLY
|
|
57400
57528
|
// See update-tlds.js for encoding/decoding format
|
|
57401
57529
|
// https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
|
57402
|
-
const encodedTlds = '
|
|
57530
|
+
const encodedTlds = 'aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2';
|
|
57403
57531
|
// Internationalized domain names containing non-ASCII
|
|
57404
57532
|
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
57533
|
|
|
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
57534
|
/**
|
|
57421
57535
|
* Finite State Machine generation utilities
|
|
57422
57536
|
*/
|
|
@@ -57679,7 +57793,7 @@ img.ProseMirror-separator {
|
|
|
57679
57793
|
templateState = state.go(input);
|
|
57680
57794
|
if (templateState) {
|
|
57681
57795
|
nextState = new State();
|
|
57682
|
-
assign(nextState.j, templateState.j);
|
|
57796
|
+
Object.assign(nextState.j, templateState.j);
|
|
57683
57797
|
nextState.jr.push.apply(nextState.jr, templateState.jr);
|
|
57684
57798
|
nextState.jd = templateState.jd;
|
|
57685
57799
|
nextState.t = templateState.t;
|
|
@@ -57690,7 +57804,7 @@ img.ProseMirror-separator {
|
|
|
57690
57804
|
// Ensure newly token is in the same groups as the old token
|
|
57691
57805
|
if (groups) {
|
|
57692
57806
|
if (nextState.t && typeof nextState.t === 'string') {
|
|
57693
|
-
const allFlags = assign(flagsForToken(nextState.t, groups), flags);
|
|
57807
|
+
const allFlags = Object.assign(flagsForToken(nextState.t, groups), flags);
|
|
57694
57808
|
addToGroups(t, allFlags, groups);
|
|
57695
57809
|
} else if (flags) {
|
|
57696
57810
|
addToGroups(t, flags, groups);
|
|
@@ -58129,7 +58243,7 @@ img.ProseMirror-separator {
|
|
|
58129
58243
|
Start.jd = new State(SYM);
|
|
58130
58244
|
return {
|
|
58131
58245
|
start: Start,
|
|
58132
|
-
tokens: assign({
|
|
58246
|
+
tokens: Object.assign({
|
|
58133
58247
|
groups
|
|
58134
58248
|
}, tk)
|
|
58135
58249
|
};
|
|
@@ -58398,9 +58512,9 @@ img.ProseMirror-separator {
|
|
|
58398
58512
|
* Similar to render option
|
|
58399
58513
|
*/
|
|
58400
58514
|
function Options(opts, defaultRender = null) {
|
|
58401
|
-
let o = assign({}, defaults);
|
|
58515
|
+
let o = Object.assign({}, defaults);
|
|
58402
58516
|
if (opts) {
|
|
58403
|
-
o = assign(o, opts instanceof Options ? opts.o : opts);
|
|
58517
|
+
o = Object.assign(o, opts instanceof Options ? opts.o : opts);
|
|
58404
58518
|
}
|
|
58405
58519
|
|
|
58406
58520
|
// Ensure all ignored tags are uppercase
|
|
@@ -58645,7 +58759,7 @@ img.ProseMirror-separator {
|
|
|
58645
58759
|
attributes.rel = rel;
|
|
58646
58760
|
}
|
|
58647
58761
|
if (attrs) {
|
|
58648
|
-
assign(attributes, attrs);
|
|
58762
|
+
Object.assign(attributes, attrs);
|
|
58649
58763
|
}
|
|
58650
58764
|
return {
|
|
58651
58765
|
tagName,
|
|
@@ -61591,8 +61705,6 @@ img.ProseMirror-separator {
|
|
|
61591
61705
|
}
|
|
61592
61706
|
`));
|
|
61593
61707
|
|
|
61594
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
61595
|
-
// prettier-ignore
|
|
61596
61708
|
const template$t = html `
|
|
61597
61709
|
<template role="progressbar">
|
|
61598
61710
|
${''
|
|
@@ -61610,7 +61722,6 @@ img.ProseMirror-separator {
|
|
|
61610
61722
|
</div>
|
|
61611
61723
|
</template>
|
|
61612
61724
|
`;
|
|
61613
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
61614
61725
|
|
|
61615
61726
|
/**
|
|
61616
61727
|
* Types of spinner appearance.
|
|
@@ -61658,8 +61769,6 @@ img.ProseMirror-separator {
|
|
|
61658
61769
|
<slot ${ref('labelSlot')}></slot>
|
|
61659
61770
|
</label>
|
|
61660
61771
|
`);
|
|
61661
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
61662
|
-
// prettier-ignore
|
|
61663
61772
|
const template$s = (context, definition) => html `
|
|
61664
61773
|
<template
|
|
61665
61774
|
class="${x => [
|
|
@@ -61790,7 +61899,6 @@ img.ProseMirror-separator {
|
|
|
61790
61899
|
</${anchoredRegionTag}>
|
|
61791
61900
|
</template>
|
|
61792
61901
|
`;
|
|
61793
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
61794
61902
|
|
|
61795
61903
|
// 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
61904
|
/* eslint-disable max-classes-per-file */
|
|
@@ -63053,7 +63161,6 @@ img.ProseMirror-separator {
|
|
|
63053
63161
|
}
|
|
63054
63162
|
`));
|
|
63055
63163
|
|
|
63056
|
-
// prettier-ignore
|
|
63057
63164
|
const template$r = html `
|
|
63058
63165
|
<template
|
|
63059
63166
|
role="switch"
|
|
@@ -66632,7 +66739,6 @@ img.ProseMirror-separator {
|
|
|
66632
66739
|
throw new Error(`Cell view tag name (${cellViewTag}) must evaluate to an element extending TableCellView`);
|
|
66633
66740
|
}
|
|
66634
66741
|
};
|
|
66635
|
-
// prettier-ignore
|
|
66636
66742
|
const createCellViewTemplate = (cellViewTag) => {
|
|
66637
66743
|
validateCellViewTemplate(cellViewTag);
|
|
66638
66744
|
return html `
|
|
@@ -67217,7 +67323,6 @@ focus outline in that case.
|
|
|
67217
67323
|
}
|
|
67218
67324
|
`;
|
|
67219
67325
|
|
|
67220
|
-
// prettier-ignore
|
|
67221
67326
|
const template$q = html `
|
|
67222
67327
|
<template role="columnheader"
|
|
67223
67328
|
class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
|
|
@@ -67552,7 +67657,6 @@ focus outline in that case.
|
|
|
67552
67657
|
}
|
|
67553
67658
|
`;
|
|
67554
67659
|
|
|
67555
|
-
// prettier-ignore
|
|
67556
67660
|
const template$p = html `
|
|
67557
67661
|
<template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
|
|
67558
67662
|
@focusin="${x => x.onCellFocusIn()}"
|
|
@@ -67656,7 +67760,6 @@ focus outline in that case.
|
|
|
67656
67760
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
|
|
67657
67761
|
const tableCellTag = 'nimble-table-cell';
|
|
67658
67762
|
|
|
67659
|
-
// prettier-ignore
|
|
67660
67763
|
const template$o = html `
|
|
67661
67764
|
<template
|
|
67662
67765
|
role="row"
|
|
@@ -68147,8 +68250,6 @@ focus outline in that case.
|
|
|
68147
68250
|
}
|
|
68148
68251
|
`));
|
|
68149
68252
|
|
|
68150
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
68151
|
-
// prettier-ignore
|
|
68152
68253
|
const template$n = html `
|
|
68153
68254
|
<template
|
|
68154
68255
|
role="row"
|
|
@@ -68189,7 +68290,6 @@ focus outline in that case.
|
|
|
68189
68290
|
</div>
|
|
68190
68291
|
</template>
|
|
68191
68292
|
`;
|
|
68192
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
68193
68293
|
|
|
68194
68294
|
/**
|
|
68195
68295
|
* A styled cell that is used within the nimble-table-row.
|
|
@@ -68313,7 +68413,6 @@ focus outline in that case.
|
|
|
68313
68413
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
|
|
68314
68414
|
const tableGroupRowTag = 'nimble-table-group-row';
|
|
68315
68415
|
|
|
68316
|
-
// prettier-ignore
|
|
68317
68416
|
const template$m = html `
|
|
68318
68417
|
<template
|
|
68319
68418
|
role="treegrid"
|
|
@@ -71293,8 +71392,7 @@ focus outline in that case.
|
|
|
71293
71392
|
return { headerActions, columnHeaders };
|
|
71294
71393
|
}
|
|
71295
71394
|
canFocusColumnHeaders() {
|
|
71296
|
-
return (this.table.columns.find(c => !c.columnInternals.sortingDisabled)
|
|
71297
|
-
!== undefined);
|
|
71395
|
+
return (this.table.columns.find(c => !c.columnInternals.sortingDisabled) !== undefined);
|
|
71298
71396
|
}
|
|
71299
71397
|
getCurrentRow() {
|
|
71300
71398
|
return this.table.rowElements[this.getCurrentRowVisibleIndex()];
|
|
@@ -72449,7 +72547,6 @@ focus outline in that case.
|
|
|
72449
72547
|
|
|
72450
72548
|
// Avoiding a wrapping <template> and be careful about starting and ending whitspace
|
|
72451
72549
|
// so the template can be composed into other column header templates
|
|
72452
|
-
// prettier-ignore
|
|
72453
72550
|
const template$l = html `<span
|
|
72454
72551
|
${overflow('hasOverflow')}
|
|
72455
72552
|
class="header-content"
|
|
@@ -72556,8 +72653,6 @@ focus outline in that case.
|
|
|
72556
72653
|
}
|
|
72557
72654
|
`;
|
|
72558
72655
|
|
|
72559
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
72560
|
-
// prettier-ignore
|
|
72561
72656
|
const template$k = html `
|
|
72562
72657
|
<template
|
|
72563
72658
|
@click="${(x, c) => {
|
|
@@ -72597,7 +72692,6 @@ focus outline in that case.
|
|
|
72597
72692
|
</span>`)}
|
|
72598
72693
|
</template>
|
|
72599
72694
|
`;
|
|
72600
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
72601
72695
|
|
|
72602
72696
|
/**
|
|
72603
72697
|
* A cell view for displaying links
|
|
@@ -73076,7 +73170,6 @@ focus outline in that case.
|
|
|
73076
73170
|
.register(tableColumnDateTextGroupHeaderView());
|
|
73077
73171
|
const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
|
|
73078
73172
|
|
|
73079
|
-
// prettier-ignore
|
|
73080
73173
|
const template$i = html `
|
|
73081
73174
|
<template
|
|
73082
73175
|
class="
|
|
@@ -73853,7 +73946,6 @@ focus outline in that case.
|
|
|
73853
73946
|
}
|
|
73854
73947
|
`;
|
|
73855
73948
|
|
|
73856
|
-
// prettier-ignore
|
|
73857
73949
|
const template$g = html `
|
|
73858
73950
|
${when(x => x.visualizationTemplate, html `
|
|
73859
73951
|
<span class="reserve-icon-size">
|
|
@@ -74030,7 +74122,6 @@ focus outline in that case.
|
|
|
74030
74122
|
}
|
|
74031
74123
|
`;
|
|
74032
74124
|
|
|
74033
|
-
// prettier-ignore
|
|
74034
74125
|
const template$f = html `
|
|
74035
74126
|
${when(x => x.visualizationTemplate, html `
|
|
74036
74127
|
<span class="reserve-icon-size">
|
|
@@ -74378,7 +74469,6 @@ focus outline in that case.
|
|
|
74378
74469
|
|
|
74379
74470
|
// Avoiding a wrapping <template> and be careful about starting and ending whitespace
|
|
74380
74471
|
// so the template can be composed into other column header templates
|
|
74381
|
-
// prettier-ignore
|
|
74382
74472
|
const template$c = html `<span
|
|
74383
74473
|
${overflow('hasOverflow')}
|
|
74384
74474
|
class="header-content"
|
|
@@ -75161,8 +75251,6 @@ focus outline in that case.
|
|
|
75161
75251
|
}
|
|
75162
75252
|
`;
|
|
75163
75253
|
|
|
75164
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
75165
|
-
// prettier-ignore
|
|
75166
75254
|
const template$b = (context, definition) => html `
|
|
75167
75255
|
<template slot="end">
|
|
75168
75256
|
${when(x => x.defaultSlottedElements.length > 0, html `
|
|
@@ -76034,7 +76122,6 @@ focus outline in that case.
|
|
|
76034
76122
|
}
|
|
76035
76123
|
`));
|
|
76036
76124
|
|
|
76037
|
-
// prettier-ignore
|
|
76038
76125
|
const template$8 = html `
|
|
76039
76126
|
${when(x => x.tooltipVisible, html `
|
|
76040
76127
|
<${anchoredRegionTag}
|
|
@@ -76412,7 +76499,6 @@ focus outline in that case.
|
|
|
76412
76499
|
}
|
|
76413
76500
|
`;
|
|
76414
76501
|
|
|
76415
|
-
// prettier-ignore
|
|
76416
76502
|
const template$7 = html `
|
|
76417
76503
|
<template
|
|
76418
76504
|
role="tree"
|
|
@@ -93909,8 +93995,6 @@ focus outline in that case.
|
|
|
93909
93995
|
}
|
|
93910
93996
|
`;
|
|
93911
93997
|
|
|
93912
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
93913
|
-
// prettier-ignore
|
|
93914
93998
|
const template$4 = html `
|
|
93915
93999
|
<div class="messages"><slot></slot></div>
|
|
93916
94000
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
@@ -93918,7 +94002,6 @@ focus outline in that case.
|
|
|
93918
94002
|
</slot>
|
|
93919
94003
|
</div>
|
|
93920
94004
|
`;
|
|
93921
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
93922
94005
|
|
|
93923
94006
|
/**
|
|
93924
94007
|
* Appearances of chat conversation.
|
|
@@ -94035,8 +94118,6 @@ focus outline in that case.
|
|
|
94035
94118
|
}
|
|
94036
94119
|
`;
|
|
94037
94120
|
|
|
94038
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
94039
|
-
// prettier-ignore
|
|
94040
94121
|
const template$3 = html `
|
|
94041
94122
|
<div class="container">
|
|
94042
94123
|
<textarea
|
|
@@ -94061,7 +94142,6 @@ focus outline in that case.
|
|
|
94061
94142
|
<${iconPaperPlaneTag} slot="start"><${iconPaperPlaneTag}/>
|
|
94062
94143
|
</${buttonTag}>
|
|
94063
94144
|
</div>`;
|
|
94064
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
94065
94145
|
|
|
94066
94146
|
/**
|
|
94067
94147
|
* A Spright component for composing and sending a chat message
|
|
@@ -94246,8 +94326,6 @@ focus outline in that case.
|
|
|
94246
94326
|
}
|
|
94247
94327
|
`;
|
|
94248
94328
|
|
|
94249
|
-
/* eslint-disable @typescript-eslint/indent */
|
|
94250
|
-
// prettier-ignore
|
|
94251
94329
|
const template$2 = (context, definition) => html `
|
|
94252
94330
|
<div class="container">
|
|
94253
94331
|
${startSlotTemplate(context, definition)}
|
|
@@ -94263,7 +94341,6 @@ focus outline in that case.
|
|
|
94263
94341
|
${endSlotTemplate(context, definition)}
|
|
94264
94342
|
</div>
|
|
94265
94343
|
`;
|
|
94266
|
-
/* eslint-enable @typescript-eslint/indent */
|
|
94267
94344
|
|
|
94268
94345
|
/**
|
|
94269
94346
|
* A Spright component for displaying a chat message
|