@ni/ok-components 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14919,9 +14919,9 @@
|
|
|
14919
14919
|
const prefix = 'ni-nimble';
|
|
14920
14920
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
14921
14921
|
|
|
14922
|
-
const template$
|
|
14922
|
+
const template$W = html `<slot></slot>`;
|
|
14923
14923
|
|
|
14924
|
-
const styles$
|
|
14924
|
+
const styles$19 = css `
|
|
14925
14925
|
${display$2('contents')}
|
|
14926
14926
|
`;
|
|
14927
14927
|
|
|
@@ -15036,8 +15036,8 @@
|
|
|
15036
15036
|
], ThemeProvider.prototype, "theme", void 0);
|
|
15037
15037
|
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
15038
15038
|
baseName: 'theme-provider',
|
|
15039
|
-
styles: styles$
|
|
15040
|
-
template: template$
|
|
15039
|
+
styles: styles$19,
|
|
15040
|
+
template: template$W
|
|
15041
15041
|
});
|
|
15042
15042
|
DesignSystem.getOrCreate()
|
|
15043
15043
|
.withPrefix('nimble')
|
|
@@ -16610,7 +16610,7 @@
|
|
|
16610
16610
|
}
|
|
16611
16611
|
// #endregion
|
|
16612
16612
|
|
|
16613
|
-
const styles$
|
|
16613
|
+
const styles$18 = css `
|
|
16614
16614
|
@layer base, hover, focusVisible, active, disabled;
|
|
16615
16615
|
|
|
16616
16616
|
@layer base {
|
|
@@ -16688,7 +16688,7 @@
|
|
|
16688
16688
|
}
|
|
16689
16689
|
`;
|
|
16690
16690
|
|
|
16691
|
-
const template$
|
|
16691
|
+
const template$V = (_context, definition) => html `${
|
|
16692
16692
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16693
16693
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
16694
16694
|
*/ ''}<div
|
|
@@ -16791,8 +16791,8 @@
|
|
|
16791
16791
|
const nimbleAnchor = Anchor.compose({
|
|
16792
16792
|
baseName: 'anchor',
|
|
16793
16793
|
baseClass: Anchor$1,
|
|
16794
|
-
template: template$
|
|
16795
|
-
styles: styles$
|
|
16794
|
+
template: template$V,
|
|
16795
|
+
styles: styles$18,
|
|
16796
16796
|
shadowOptions: {
|
|
16797
16797
|
delegatesFocus: true
|
|
16798
16798
|
}
|
|
@@ -16901,7 +16901,7 @@
|
|
|
16901
16901
|
padding: 0;
|
|
16902
16902
|
`;
|
|
16903
16903
|
|
|
16904
|
-
const styles$
|
|
16904
|
+
const styles$17 = css `
|
|
16905
16905
|
@layer base, checked, hover, focusVisible, active, disabled, top;
|
|
16906
16906
|
|
|
16907
16907
|
@layer base {
|
|
@@ -17185,8 +17185,8 @@
|
|
|
17185
17185
|
}
|
|
17186
17186
|
`));
|
|
17187
17187
|
|
|
17188
|
-
const styles$
|
|
17189
|
-
${styles$
|
|
17188
|
+
const styles$16 = css `
|
|
17189
|
+
${styles$17}
|
|
17190
17190
|
${buttonAppearanceVariantStyles}
|
|
17191
17191
|
|
|
17192
17192
|
.control {
|
|
@@ -17206,7 +17206,7 @@
|
|
|
17206
17206
|
}
|
|
17207
17207
|
`;
|
|
17208
17208
|
|
|
17209
|
-
const template$
|
|
17209
|
+
const template$U = (context, definition) => html `
|
|
17210
17210
|
<a
|
|
17211
17211
|
class="control"
|
|
17212
17212
|
part="control"
|
|
@@ -17288,8 +17288,8 @@
|
|
|
17288
17288
|
], AnchorButton.prototype, "disabled", void 0);
|
|
17289
17289
|
const nimbleAnchorButton = AnchorButton.compose({
|
|
17290
17290
|
baseName: 'anchor-button',
|
|
17291
|
-
template: template$
|
|
17292
|
-
styles: styles$
|
|
17291
|
+
template: template$U,
|
|
17292
|
+
styles: styles$16,
|
|
17293
17293
|
shadowOptions: {
|
|
17294
17294
|
delegatesFocus: true
|
|
17295
17295
|
}
|
|
@@ -17297,7 +17297,7 @@
|
|
|
17297
17297
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
|
|
17298
17298
|
const anchorButtonTag = 'nimble-anchor-button';
|
|
17299
17299
|
|
|
17300
|
-
const styles$
|
|
17300
|
+
const styles$15 = css `
|
|
17301
17301
|
${display$2('grid')}
|
|
17302
17302
|
|
|
17303
17303
|
:host {
|
|
@@ -17380,7 +17380,7 @@
|
|
|
17380
17380
|
}
|
|
17381
17381
|
`;
|
|
17382
17382
|
|
|
17383
|
-
const template$
|
|
17383
|
+
const template$T = (context, definition) => html `
|
|
17384
17384
|
<template
|
|
17385
17385
|
role="menuitem"
|
|
17386
17386
|
class="${x => (typeof x.startColumnCount === 'number'
|
|
@@ -17481,8 +17481,8 @@
|
|
|
17481
17481
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17482
17482
|
const nimbleAnchorMenuItem = AnchorMenuItem.compose({
|
|
17483
17483
|
baseName: 'anchor-menu-item',
|
|
17484
|
-
template: template$
|
|
17485
|
-
styles: styles$
|
|
17484
|
+
template: template$T,
|
|
17485
|
+
styles: styles$15,
|
|
17486
17486
|
shadowOptions: {
|
|
17487
17487
|
delegatesFocus: true
|
|
17488
17488
|
}
|
|
@@ -17492,7 +17492,7 @@
|
|
|
17492
17492
|
.register(nimbleAnchorMenuItem());
|
|
17493
17493
|
const anchorMenuItemTag = 'nimble-anchor-menu-item';
|
|
17494
17494
|
|
|
17495
|
-
const styles$
|
|
17495
|
+
const styles$14 = css `
|
|
17496
17496
|
${display$2('inline-flex')}
|
|
17497
17497
|
|
|
17498
17498
|
:host {
|
|
@@ -17609,7 +17609,7 @@
|
|
|
17609
17609
|
}
|
|
17610
17610
|
`;
|
|
17611
17611
|
|
|
17612
|
-
const template$
|
|
17612
|
+
const template$S = (context, definition) => html `
|
|
17613
17613
|
<template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
|
|
17614
17614
|
<a
|
|
17615
17615
|
download="${x => x.download}"
|
|
@@ -17661,15 +17661,15 @@
|
|
|
17661
17661
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17662
17662
|
const nimbleAnchorTab = AnchorTab.compose({
|
|
17663
17663
|
baseName: 'anchor-tab',
|
|
17664
|
-
template: template$
|
|
17665
|
-
styles: styles$
|
|
17664
|
+
template: template$S,
|
|
17665
|
+
styles: styles$14,
|
|
17666
17666
|
shadowOptions: {
|
|
17667
17667
|
delegatesFocus: true
|
|
17668
17668
|
}
|
|
17669
17669
|
});
|
|
17670
17670
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
|
|
17671
17671
|
|
|
17672
|
-
const styles$
|
|
17672
|
+
const styles$13 = css `
|
|
17673
17673
|
${display$2('flex')}
|
|
17674
17674
|
|
|
17675
17675
|
:host {
|
|
@@ -17709,12 +17709,12 @@
|
|
|
17709
17709
|
}
|
|
17710
17710
|
`;
|
|
17711
17711
|
|
|
17712
|
-
const styles
|
|
17713
|
-
${styles$
|
|
17712
|
+
const styles$12 = css `
|
|
17713
|
+
${styles$17}
|
|
17714
17714
|
${buttonAppearanceVariantStyles}
|
|
17715
17715
|
`;
|
|
17716
17716
|
|
|
17717
|
-
const template$
|
|
17717
|
+
const template$R = (context, definition) => html `
|
|
17718
17718
|
<button
|
|
17719
17719
|
class="control"
|
|
17720
17720
|
part="control"
|
|
@@ -17805,8 +17805,8 @@
|
|
|
17805
17805
|
const nimbleButton = Button$1.compose({
|
|
17806
17806
|
baseName: 'button',
|
|
17807
17807
|
baseClass: Button$2,
|
|
17808
|
-
template: template$
|
|
17809
|
-
styles: styles
|
|
17808
|
+
template: template$R,
|
|
17809
|
+
styles: styles$12,
|
|
17810
17810
|
shadowOptions: {
|
|
17811
17811
|
delegatesFocus: true
|
|
17812
17812
|
}
|
|
@@ -18753,7 +18753,7 @@
|
|
|
18753
18753
|
};
|
|
18754
18754
|
|
|
18755
18755
|
// Avoiding any whitespace in the template because this is an inline element
|
|
18756
|
-
const template$
|
|
18756
|
+
const template$Q = html `<div
|
|
18757
18757
|
class="icon"
|
|
18758
18758
|
aria-hidden="true"
|
|
18759
18759
|
:innerHTML=${x => x.icon.data}
|
|
@@ -18768,7 +18768,7 @@
|
|
|
18768
18768
|
-webkit-user-select: none;
|
|
18769
18769
|
`;
|
|
18770
18770
|
|
|
18771
|
-
const styles$
|
|
18771
|
+
const styles$11 = css `
|
|
18772
18772
|
${display$2('inline-flex')}
|
|
18773
18773
|
|
|
18774
18774
|
:host {
|
|
@@ -18831,8 +18831,8 @@
|
|
|
18831
18831
|
const registerIconSvg = (baseName, iconClass) => {
|
|
18832
18832
|
const composedIcon = iconClass.compose({
|
|
18833
18833
|
baseName,
|
|
18834
|
-
template: template$
|
|
18835
|
-
styles: styles$
|
|
18834
|
+
template: template$Q,
|
|
18835
|
+
styles: styles$11
|
|
18836
18836
|
});
|
|
18837
18837
|
DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
|
|
18838
18838
|
};
|
|
@@ -18927,7 +18927,7 @@
|
|
|
18927
18927
|
cssCustomPropertyName: null
|
|
18928
18928
|
}).withDefault(coreLabelDefaults.itemRemoveLabel);
|
|
18929
18929
|
|
|
18930
|
-
const template$
|
|
18930
|
+
const template$P = (context, definition) => html `
|
|
18931
18931
|
<div
|
|
18932
18932
|
class="tab-bar"
|
|
18933
18933
|
>
|
|
@@ -19226,15 +19226,15 @@
|
|
|
19226
19226
|
applyMixins(AnchorTabs, StartEnd);
|
|
19227
19227
|
const nimbleAnchorTabs = AnchorTabs.compose({
|
|
19228
19228
|
baseName: 'anchor-tabs',
|
|
19229
|
-
template: template$
|
|
19230
|
-
styles: styles$
|
|
19229
|
+
template: template$P,
|
|
19230
|
+
styles: styles$13,
|
|
19231
19231
|
shadowOptions: {
|
|
19232
19232
|
delegatesFocus: false
|
|
19233
19233
|
}
|
|
19234
19234
|
});
|
|
19235
19235
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
|
|
19236
19236
|
|
|
19237
|
-
const styles$
|
|
19237
|
+
const styles$10 = css `
|
|
19238
19238
|
${display$2('block')}
|
|
19239
19239
|
|
|
19240
19240
|
:host {
|
|
@@ -19339,7 +19339,7 @@
|
|
|
19339
19339
|
}
|
|
19340
19340
|
`;
|
|
19341
19341
|
|
|
19342
|
-
const template$
|
|
19342
|
+
const template$O = (context, definition) => html `
|
|
19343
19343
|
<template
|
|
19344
19344
|
role="treeitem"
|
|
19345
19345
|
slot="${x => (x.isNestedItem() ? 'item' : null)}"
|
|
@@ -19476,8 +19476,8 @@
|
|
|
19476
19476
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
19477
19477
|
const nimbleAnchorTreeItem = AnchorTreeItem.compose({
|
|
19478
19478
|
baseName: 'anchor-tree-item',
|
|
19479
|
-
template: template$
|
|
19480
|
-
styles: styles$
|
|
19479
|
+
template: template$O,
|
|
19480
|
+
styles: styles$10,
|
|
19481
19481
|
shadowOptions: {
|
|
19482
19482
|
delegatesFocus: true
|
|
19483
19483
|
}
|
|
@@ -19493,7 +19493,7 @@
|
|
|
19493
19493
|
zIndex1000: '1000'
|
|
19494
19494
|
};
|
|
19495
19495
|
|
|
19496
|
-
const styles
|
|
19496
|
+
const styles$$ = css `
|
|
19497
19497
|
${display$2('block')}
|
|
19498
19498
|
|
|
19499
19499
|
:host {
|
|
@@ -19524,7 +19524,7 @@
|
|
|
19524
19524
|
baseName: 'anchored-region',
|
|
19525
19525
|
baseClass: AnchoredRegion$1,
|
|
19526
19526
|
template: anchoredRegionTemplate,
|
|
19527
|
-
styles: styles
|
|
19527
|
+
styles: styles$$
|
|
19528
19528
|
});
|
|
19529
19529
|
DesignSystem.getOrCreate()
|
|
19530
19530
|
.withPrefix('nimble')
|
|
@@ -19605,7 +19605,7 @@
|
|
|
19605
19605
|
const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
|
|
19606
19606
|
/* eslint-enable max-classes-per-file */
|
|
19607
19607
|
|
|
19608
|
-
const styles$
|
|
19608
|
+
const styles$_ = css `
|
|
19609
19609
|
${display$2('flex')}
|
|
19610
19610
|
|
|
19611
19611
|
:host {
|
|
@@ -19783,7 +19783,7 @@
|
|
|
19783
19783
|
information: 'information'
|
|
19784
19784
|
};
|
|
19785
19785
|
|
|
19786
|
-
const template$
|
|
19786
|
+
const template$N = html `
|
|
19787
19787
|
<${themeProviderTag} theme="${Theme.color}">
|
|
19788
19788
|
<div class="container"
|
|
19789
19789
|
role="status"
|
|
@@ -19901,8 +19901,8 @@
|
|
|
19901
19901
|
applyMixins(Banner, ARIAGlobalStatesAndProperties);
|
|
19902
19902
|
const nimbleBanner = Banner.compose({
|
|
19903
19903
|
baseName: 'banner',
|
|
19904
|
-
template: template$
|
|
19905
|
-
styles: styles$
|
|
19904
|
+
template: template$N,
|
|
19905
|
+
styles: styles$_
|
|
19906
19906
|
});
|
|
19907
19907
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
|
|
19908
19908
|
|
|
@@ -19943,7 +19943,7 @@
|
|
|
19943
19943
|
</template>
|
|
19944
19944
|
`;
|
|
19945
19945
|
|
|
19946
|
-
const styles$
|
|
19946
|
+
const styles$Z = css `
|
|
19947
19947
|
${display$2('inline-flex')}
|
|
19948
19948
|
|
|
19949
19949
|
:host {
|
|
@@ -20047,11 +20047,11 @@
|
|
|
20047
20047
|
baseName: 'breadcrumb',
|
|
20048
20048
|
baseClass: Breadcrumb$1,
|
|
20049
20049
|
template: breadcrumbTemplate,
|
|
20050
|
-
styles: styles$
|
|
20050
|
+
styles: styles$Z
|
|
20051
20051
|
});
|
|
20052
20052
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
|
|
20053
20053
|
|
|
20054
|
-
const styles$
|
|
20054
|
+
const styles$Y = css `
|
|
20055
20055
|
@layer base, hover, focusVisible, active, disabled;
|
|
20056
20056
|
|
|
20057
20057
|
@layer base {
|
|
@@ -20148,14 +20148,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20148
20148
|
baseName: 'breadcrumb-item',
|
|
20149
20149
|
baseClass: BreadcrumbItem$1,
|
|
20150
20150
|
template: breadcrumbItemTemplate,
|
|
20151
|
-
styles: styles$
|
|
20151
|
+
styles: styles$Y,
|
|
20152
20152
|
separator: forwardSlash16X16.data
|
|
20153
20153
|
});
|
|
20154
20154
|
DesignSystem.getOrCreate()
|
|
20155
20155
|
.withPrefix('nimble')
|
|
20156
20156
|
.register(nimbleBreadcrumbItem());
|
|
20157
20157
|
|
|
20158
|
-
const styles$
|
|
20158
|
+
const styles$X = css `
|
|
20159
20159
|
${display$2('flex')}
|
|
20160
20160
|
|
|
20161
20161
|
:host {
|
|
@@ -20179,7 +20179,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20179
20179
|
}
|
|
20180
20180
|
`;
|
|
20181
20181
|
|
|
20182
|
-
const template$
|
|
20182
|
+
const template$M = html `
|
|
20183
20183
|
<section aria-labelledby="title-slot">
|
|
20184
20184
|
<span id="title-slot"><slot name="title"></slot></span>
|
|
20185
20185
|
<slot></slot>
|
|
@@ -20194,12 +20194,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20194
20194
|
const nimbleCard = Card.compose({
|
|
20195
20195
|
baseName: 'card',
|
|
20196
20196
|
baseClass: Card$1,
|
|
20197
|
-
template: template$
|
|
20198
|
-
styles: styles$
|
|
20197
|
+
template: template$M,
|
|
20198
|
+
styles: styles$X
|
|
20199
20199
|
});
|
|
20200
20200
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
|
|
20201
20201
|
|
|
20202
|
-
const styles$
|
|
20202
|
+
const styles$W = css `
|
|
20203
20203
|
${display$2('inline-flex')}
|
|
20204
20204
|
|
|
20205
20205
|
:host {
|
|
@@ -20357,14 +20357,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20357
20357
|
const nimbleCardButton = CardButton.compose({
|
|
20358
20358
|
baseName: 'card-button',
|
|
20359
20359
|
template: buttonTemplate,
|
|
20360
|
-
styles: styles$
|
|
20360
|
+
styles: styles$W,
|
|
20361
20361
|
shadowOptions: {
|
|
20362
20362
|
delegatesFocus: true
|
|
20363
20363
|
}
|
|
20364
20364
|
});
|
|
20365
20365
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
|
|
20366
20366
|
|
|
20367
|
-
const styles$
|
|
20367
|
+
const styles$V = css `
|
|
20368
20368
|
.error-icon {
|
|
20369
20369
|
display: none;
|
|
20370
20370
|
}
|
|
@@ -20398,9 +20398,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20398
20398
|
}
|
|
20399
20399
|
`;
|
|
20400
20400
|
|
|
20401
|
-
const styles$
|
|
20401
|
+
const styles$U = css `
|
|
20402
20402
|
${display$2('inline-grid')}
|
|
20403
|
-
${styles$
|
|
20403
|
+
${styles$V}
|
|
20404
20404
|
|
|
20405
20405
|
:host {
|
|
20406
20406
|
font: ${bodyFont};
|
|
@@ -20594,7 +20594,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20594
20594
|
</div>
|
|
20595
20595
|
`;
|
|
20596
20596
|
|
|
20597
|
-
const template$
|
|
20597
|
+
const template$L = (_context, definition) => html `
|
|
20598
20598
|
<template
|
|
20599
20599
|
role="checkbox"
|
|
20600
20600
|
aria-checked="${x => x.checked}"
|
|
@@ -20679,16 +20679,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20679
20679
|
const nimbleCheckbox = Checkbox.compose({
|
|
20680
20680
|
baseName: 'checkbox',
|
|
20681
20681
|
baseClass: Checkbox$1,
|
|
20682
|
-
template: template$
|
|
20683
|
-
styles: styles$
|
|
20682
|
+
template: template$L,
|
|
20683
|
+
styles: styles$U,
|
|
20684
20684
|
checkedIndicator: check16X16.data,
|
|
20685
20685
|
indeterminateIndicator: minus16X16.data
|
|
20686
20686
|
});
|
|
20687
20687
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
20688
20688
|
const checkboxTag = 'nimble-checkbox';
|
|
20689
20689
|
|
|
20690
|
-
const styles$
|
|
20691
|
-
${styles$
|
|
20690
|
+
const styles$T = css `
|
|
20691
|
+
${styles$17}
|
|
20692
20692
|
${buttonAppearanceVariantStyles}
|
|
20693
20693
|
|
|
20694
20694
|
@layer checked {
|
|
@@ -20735,7 +20735,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20735
20735
|
}
|
|
20736
20736
|
`));
|
|
20737
20737
|
|
|
20738
|
-
const template$
|
|
20738
|
+
const template$K = (context, definition) => html `
|
|
20739
20739
|
<div
|
|
20740
20740
|
role="button"
|
|
20741
20741
|
part="control"
|
|
@@ -20830,8 +20830,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20830
20830
|
applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
|
|
20831
20831
|
const nimbleToggleButton = ToggleButton.compose({
|
|
20832
20832
|
baseName: 'toggle-button',
|
|
20833
|
-
template: template$
|
|
20834
|
-
styles: styles$
|
|
20833
|
+
template: template$K,
|
|
20834
|
+
styles: styles$T,
|
|
20835
20835
|
shadowOptions: {
|
|
20836
20836
|
delegatesFocus: true
|
|
20837
20837
|
}
|
|
@@ -20861,7 +20861,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20861
20861
|
frameless: 'frameless'
|
|
20862
20862
|
};
|
|
20863
20863
|
|
|
20864
|
-
const styles$
|
|
20864
|
+
const styles$S = css `
|
|
20865
20865
|
${display$2('inline-flex')}
|
|
20866
20866
|
|
|
20867
20867
|
:host {
|
|
@@ -21151,7 +21151,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21151
21151
|
}
|
|
21152
21152
|
`));
|
|
21153
21153
|
|
|
21154
|
-
const styles$
|
|
21154
|
+
const styles$R = css `
|
|
21155
21155
|
.annotated-label {
|
|
21156
21156
|
display: flex;
|
|
21157
21157
|
flex-direction: row;
|
|
@@ -21178,10 +21178,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21178
21178
|
none: undefined,
|
|
21179
21179
|
standard: 'standard'};
|
|
21180
21180
|
|
|
21181
|
-
const styles$
|
|
21182
|
-
${styles$P}
|
|
21181
|
+
const styles$Q = css `
|
|
21183
21182
|
${styles$S}
|
|
21184
|
-
${styles$
|
|
21183
|
+
${styles$V}
|
|
21184
|
+
${styles$R}
|
|
21185
21185
|
|
|
21186
21186
|
:host {
|
|
21187
21187
|
--ni-private-hover-bottom-border-width: 2px;
|
|
@@ -21302,7 +21302,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21302
21302
|
<slot></slot>
|
|
21303
21303
|
</label>
|
|
21304
21304
|
`);
|
|
21305
|
-
const template$
|
|
21305
|
+
const template$J = (context, definition) => html `
|
|
21306
21306
|
<template
|
|
21307
21307
|
aria-disabled="${x => x.ariaDisabled}"
|
|
21308
21308
|
autocomplete="${x => x.autocomplete}"
|
|
@@ -22077,8 +22077,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22077
22077
|
const nimbleCombobox = Combobox.compose({
|
|
22078
22078
|
baseName: 'combobox',
|
|
22079
22079
|
baseClass: FormAssociatedCombobox,
|
|
22080
|
-
template: template$
|
|
22081
|
-
styles: styles$
|
|
22080
|
+
template: template$J,
|
|
22081
|
+
styles: styles$Q,
|
|
22082
22082
|
shadowOptions: {
|
|
22083
22083
|
delegatesFocus: true
|
|
22084
22084
|
},
|
|
@@ -22122,7 +22122,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22122
22122
|
*/
|
|
22123
22123
|
const UserDismissed = Symbol('user dismissed');
|
|
22124
22124
|
|
|
22125
|
-
const styles$
|
|
22125
|
+
const styles$P = css `
|
|
22126
22126
|
${display$2('grid')}
|
|
22127
22127
|
|
|
22128
22128
|
dialog {
|
|
@@ -22215,7 +22215,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22215
22215
|
}
|
|
22216
22216
|
`;
|
|
22217
22217
|
|
|
22218
|
-
const template$
|
|
22218
|
+
const template$I = html `
|
|
22219
22219
|
<template>
|
|
22220
22220
|
<dialog
|
|
22221
22221
|
${ref('dialogElement')}
|
|
@@ -22363,13 +22363,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22363
22363
|
applyMixins(Dialog, ARIAGlobalStatesAndProperties);
|
|
22364
22364
|
const nimbleDialog = Dialog.compose({
|
|
22365
22365
|
baseName: 'dialog',
|
|
22366
|
-
template: template$
|
|
22367
|
-
styles: styles$
|
|
22366
|
+
template: template$I,
|
|
22367
|
+
styles: styles$P,
|
|
22368
22368
|
baseClass: Dialog
|
|
22369
22369
|
});
|
|
22370
22370
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
|
|
22371
22371
|
|
|
22372
|
-
const styles$
|
|
22372
|
+
const styles$O = css `
|
|
22373
22373
|
${display$2('block')}
|
|
22374
22374
|
|
|
22375
22375
|
:host {
|
|
@@ -22512,7 +22512,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22512
22512
|
}
|
|
22513
22513
|
`;
|
|
22514
22514
|
|
|
22515
|
-
const template$
|
|
22515
|
+
const template$H = html `
|
|
22516
22516
|
<dialog
|
|
22517
22517
|
${ref('dialog')}
|
|
22518
22518
|
aria-label="${x => x.ariaLabel}"
|
|
@@ -22654,8 +22654,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22654
22654
|
applyMixins(Drawer, ARIAGlobalStatesAndProperties);
|
|
22655
22655
|
const nimbleDrawer = Drawer.compose({
|
|
22656
22656
|
baseName: 'drawer',
|
|
22657
|
-
template: template$
|
|
22658
|
-
styles: styles$
|
|
22657
|
+
template: template$H,
|
|
22658
|
+
styles: styles$O
|
|
22659
22659
|
});
|
|
22660
22660
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
|
|
22661
22661
|
|
|
@@ -25437,7 +25437,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25437
25437
|
}
|
|
25438
25438
|
}
|
|
25439
25439
|
|
|
25440
|
-
const styles$
|
|
25440
|
+
const styles$N = css `
|
|
25441
25441
|
${display$2('none')}
|
|
25442
25442
|
`;
|
|
25443
25443
|
|
|
@@ -25502,7 +25502,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25502
25502
|
], LabelProviderCore.prototype, "itemRemove", void 0);
|
|
25503
25503
|
const nimbleLabelProviderCore = LabelProviderCore.compose({
|
|
25504
25504
|
baseName: 'label-provider-core',
|
|
25505
|
-
styles: styles$
|
|
25505
|
+
styles: styles$N
|
|
25506
25506
|
});
|
|
25507
25507
|
DesignSystem.getOrCreate()
|
|
25508
25508
|
.withPrefix('nimble')
|
|
@@ -25669,13 +25669,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25669
25669
|
], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
|
|
25670
25670
|
const nimbleLabelProviderTable = LabelProviderTable.compose({
|
|
25671
25671
|
baseName: 'label-provider-table',
|
|
25672
|
-
styles: styles$
|
|
25672
|
+
styles: styles$N
|
|
25673
25673
|
});
|
|
25674
25674
|
DesignSystem.getOrCreate()
|
|
25675
25675
|
.withPrefix('nimble')
|
|
25676
25676
|
.register(nimbleLabelProviderTable());
|
|
25677
25677
|
|
|
25678
|
-
const styles$
|
|
25678
|
+
const styles$M = css `
|
|
25679
25679
|
${display$2('flex')}
|
|
25680
25680
|
|
|
25681
25681
|
:host {
|
|
@@ -25751,7 +25751,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25751
25751
|
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25752
25752
|
* @public
|
|
25753
25753
|
*/
|
|
25754
|
-
const template$
|
|
25754
|
+
const template$G = (context, definition) => html `
|
|
25755
25755
|
<template
|
|
25756
25756
|
aria-checked="${x => x.ariaChecked}"
|
|
25757
25757
|
aria-disabled="${x => x.ariaDisabled}"
|
|
@@ -25864,13 +25864,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25864
25864
|
const nimbleListOption = ListOption.compose({
|
|
25865
25865
|
baseName: 'list-option',
|
|
25866
25866
|
baseClass: ListboxOption,
|
|
25867
|
-
template: template$
|
|
25868
|
-
styles: styles$
|
|
25867
|
+
template: template$G,
|
|
25868
|
+
styles: styles$M
|
|
25869
25869
|
});
|
|
25870
25870
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
|
|
25871
25871
|
const listOptionTag = 'nimble-list-option';
|
|
25872
25872
|
|
|
25873
|
-
const styles$
|
|
25873
|
+
const styles$L = css `
|
|
25874
25874
|
${display$2('flex')}
|
|
25875
25875
|
|
|
25876
25876
|
:host {
|
|
@@ -25932,7 +25932,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25932
25932
|
const isListOption$1 = (n) => {
|
|
25933
25933
|
return n instanceof ListOption;
|
|
25934
25934
|
};
|
|
25935
|
-
const template$
|
|
25935
|
+
const template$F = html `
|
|
25936
25936
|
<template
|
|
25937
25937
|
role="group"
|
|
25938
25938
|
aria-label="${x => x.labelContent}"
|
|
@@ -26074,8 +26074,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26074
26074
|
const nimbleListOptionGroup = ListOptionGroup.compose({
|
|
26075
26075
|
baseName: 'list-option-group',
|
|
26076
26076
|
baseClass: FoundationElement,
|
|
26077
|
-
template: template$
|
|
26078
|
-
styles: styles$
|
|
26077
|
+
template: template$F,
|
|
26078
|
+
styles: styles$L
|
|
26079
26079
|
});
|
|
26080
26080
|
DesignSystem.getOrCreate()
|
|
26081
26081
|
.withPrefix('nimble')
|
|
@@ -26102,9 +26102,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26102
26102
|
attr()
|
|
26103
26103
|
], Mapping$1.prototype, "key", void 0);
|
|
26104
26104
|
|
|
26105
|
-
const template$
|
|
26105
|
+
const template$E = html `<template slot="mapping"></template>`;
|
|
26106
26106
|
|
|
26107
|
-
const styles$
|
|
26107
|
+
const styles$K = css `
|
|
26108
26108
|
${display$2('none')}
|
|
26109
26109
|
`;
|
|
26110
26110
|
|
|
@@ -26120,8 +26120,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26120
26120
|
], MappingEmpty.prototype, "text", void 0);
|
|
26121
26121
|
const emptyMapping = MappingEmpty.compose({
|
|
26122
26122
|
baseName: 'mapping-empty',
|
|
26123
|
-
template: template$
|
|
26124
|
-
styles: styles$
|
|
26123
|
+
template: template$E,
|
|
26124
|
+
styles: styles$K
|
|
26125
26125
|
});
|
|
26126
26126
|
DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
|
|
26127
26127
|
|
|
@@ -26191,8 +26191,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26191
26191
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
26192
26192
|
const iconMapping = MappingIcon.compose({
|
|
26193
26193
|
baseName: 'mapping-icon',
|
|
26194
|
-
template: template$
|
|
26195
|
-
styles: styles$
|
|
26194
|
+
template: template$E,
|
|
26195
|
+
styles: styles$K
|
|
26196
26196
|
});
|
|
26197
26197
|
DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
|
|
26198
26198
|
|
|
@@ -26215,8 +26215,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26215
26215
|
], MappingSpinner.prototype, "textHidden", void 0);
|
|
26216
26216
|
const spinnerMapping = MappingSpinner.compose({
|
|
26217
26217
|
baseName: 'mapping-spinner',
|
|
26218
|
-
template: template$
|
|
26219
|
-
styles: styles$
|
|
26218
|
+
template: template$E,
|
|
26219
|
+
styles: styles$K
|
|
26220
26220
|
});
|
|
26221
26221
|
DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
|
|
26222
26222
|
|
|
@@ -26232,8 +26232,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26232
26232
|
], MappingText.prototype, "text", void 0);
|
|
26233
26233
|
const textMapping = MappingText.compose({
|
|
26234
26234
|
baseName: 'mapping-text',
|
|
26235
|
-
template: template$
|
|
26236
|
-
styles: styles$
|
|
26235
|
+
template: template$E,
|
|
26236
|
+
styles: styles$K
|
|
26237
26237
|
});
|
|
26238
26238
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
|
|
26239
26239
|
|
|
@@ -26535,7 +26535,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26535
26535
|
observable
|
|
26536
26536
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
26537
26537
|
|
|
26538
|
-
const template$
|
|
26538
|
+
const template$D = () => html `
|
|
26539
26539
|
<template
|
|
26540
26540
|
slot="${x => {
|
|
26541
26541
|
if (x.slot) {
|
|
@@ -26552,7 +26552,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26552
26552
|
</template>
|
|
26553
26553
|
`;
|
|
26554
26554
|
|
|
26555
|
-
const styles$
|
|
26555
|
+
const styles$J = css `
|
|
26556
26556
|
${display$2('grid')}
|
|
26557
26557
|
|
|
26558
26558
|
:host {
|
|
@@ -26623,8 +26623,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26623
26623
|
const nimbleMenu = Menu.compose({
|
|
26624
26624
|
baseName: 'menu',
|
|
26625
26625
|
baseClass: Menu$1,
|
|
26626
|
-
template: template$
|
|
26627
|
-
styles: styles$
|
|
26626
|
+
template: template$D,
|
|
26627
|
+
styles: styles$J
|
|
26628
26628
|
});
|
|
26629
26629
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
26630
26630
|
|
|
@@ -26639,7 +26639,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26639
26639
|
auto: 'auto'
|
|
26640
26640
|
};
|
|
26641
26641
|
|
|
26642
|
-
const styles$
|
|
26642
|
+
const styles$I = css `
|
|
26643
26643
|
${display$2('inline-block')}
|
|
26644
26644
|
|
|
26645
26645
|
:host {
|
|
@@ -26657,7 +26657,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26657
26657
|
}
|
|
26658
26658
|
`;
|
|
26659
26659
|
|
|
26660
|
-
const template$
|
|
26660
|
+
const template$C = html `
|
|
26661
26661
|
<template
|
|
26662
26662
|
?open="${x => x.open}"
|
|
26663
26663
|
@focusout="${(x, c) => x.focusoutHandler(c.event)}"
|
|
@@ -26907,8 +26907,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26907
26907
|
], MenuButton.prototype, "slottedMenus", void 0);
|
|
26908
26908
|
const nimbleMenuButton = MenuButton.compose({
|
|
26909
26909
|
baseName: 'menu-button',
|
|
26910
|
-
template: template$
|
|
26911
|
-
styles: styles$
|
|
26910
|
+
template: template$C,
|
|
26911
|
+
styles: styles$I,
|
|
26912
26912
|
shadowOptions: {
|
|
26913
26913
|
delegatesFocus: true
|
|
26914
26914
|
}
|
|
@@ -26916,7 +26916,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26916
26916
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
|
|
26917
26917
|
const menuButtonTag = 'nimble-menu-button';
|
|
26918
26918
|
|
|
26919
|
-
const styles$
|
|
26919
|
+
const styles$H = css `
|
|
26920
26920
|
${display$2('grid')}
|
|
26921
26921
|
|
|
26922
26922
|
:host {
|
|
@@ -27013,7 +27013,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27013
27013
|
baseName: 'menu-item',
|
|
27014
27014
|
baseClass: MenuItem$1,
|
|
27015
27015
|
template: menuItemTemplate,
|
|
27016
|
-
styles: styles$
|
|
27016
|
+
styles: styles$H,
|
|
27017
27017
|
expandCollapseGlyph: arrowExpanderRight16X16.data
|
|
27018
27018
|
});
|
|
27019
27019
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
|
|
@@ -27028,10 +27028,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27028
27028
|
frameless: 'frameless'
|
|
27029
27029
|
};
|
|
27030
27030
|
|
|
27031
|
-
const styles$
|
|
27031
|
+
const styles$G = css `
|
|
27032
27032
|
${display$2('inline-block')}
|
|
27033
|
-
${styles$
|
|
27034
|
-
${styles$
|
|
27033
|
+
${styles$V}
|
|
27034
|
+
${styles$R}
|
|
27035
27035
|
|
|
27036
27036
|
:host {
|
|
27037
27037
|
font: ${bodyFont};
|
|
@@ -27254,7 +27254,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27254
27254
|
* The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
27255
27255
|
* @public
|
|
27256
27256
|
*/
|
|
27257
|
-
const template$
|
|
27257
|
+
const template$B = (context, definition) => html `
|
|
27258
27258
|
<template class="${x => (x.readOnly ? 'readonly' : '')}">
|
|
27259
27259
|
${labelTemplate$4}
|
|
27260
27260
|
<div class="root" part="root">
|
|
@@ -27408,8 +27408,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27408
27408
|
const nimbleNumberField = NumberField.compose({
|
|
27409
27409
|
baseName: 'number-field',
|
|
27410
27410
|
baseClass: NumberField$1,
|
|
27411
|
-
template: template$
|
|
27412
|
-
styles: styles$
|
|
27411
|
+
template: template$B,
|
|
27412
|
+
styles: styles$G,
|
|
27413
27413
|
shadowOptions: {
|
|
27414
27414
|
delegatesFocus: true
|
|
27415
27415
|
},
|
|
@@ -27452,7 +27452,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27452
27452
|
});
|
|
27453
27453
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
27454
27454
|
|
|
27455
|
-
const styles$
|
|
27455
|
+
const styles$F = css `
|
|
27456
27456
|
${display$2('inline-flex')}
|
|
27457
27457
|
|
|
27458
27458
|
:host {
|
|
@@ -27552,15 +27552,15 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27552
27552
|
baseName: 'radio',
|
|
27553
27553
|
baseClass: Radio$1,
|
|
27554
27554
|
template: radioTemplate,
|
|
27555
|
-
styles: styles$
|
|
27555
|
+
styles: styles$F,
|
|
27556
27556
|
checkedIndicator: circleFilled16X16.data
|
|
27557
27557
|
});
|
|
27558
27558
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
|
|
27559
27559
|
|
|
27560
|
-
const styles$
|
|
27560
|
+
const styles$E = css `
|
|
27561
27561
|
${display$2('inline-block')}
|
|
27562
|
-
${styles$
|
|
27563
|
-
${styles$
|
|
27562
|
+
${styles$V}
|
|
27563
|
+
${styles$R}
|
|
27564
27564
|
|
|
27565
27565
|
.positioning-region {
|
|
27566
27566
|
display: flex;
|
|
@@ -27599,7 +27599,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27599
27599
|
`;
|
|
27600
27600
|
|
|
27601
27601
|
const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
|
|
27602
|
-
const template$
|
|
27602
|
+
const template$A = html `
|
|
27603
27603
|
<template
|
|
27604
27604
|
role="radiogroup"
|
|
27605
27605
|
aria-disabled="${x => x.disabled}"
|
|
@@ -27639,8 +27639,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27639
27639
|
const nimbleRadioGroup = RadioGroup.compose({
|
|
27640
27640
|
baseName: 'radio-group',
|
|
27641
27641
|
baseClass: RadioGroup$1,
|
|
27642
|
-
template: template$
|
|
27643
|
-
styles: styles$
|
|
27642
|
+
template: template$A,
|
|
27643
|
+
styles: styles$E,
|
|
27644
27644
|
shadowOptions: {
|
|
27645
27645
|
delegatesFocus: true
|
|
27646
27646
|
}
|
|
@@ -33190,6 +33190,27 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
33190
33190
|
return this.steps.length > 0;
|
|
33191
33191
|
}
|
|
33192
33192
|
/**
|
|
33193
|
+
Return a single range, in post-transform document positions,
|
|
33194
|
+
that covers all content changed by this transform. Returns null
|
|
33195
|
+
if no replacements are made. Note that this will ignore changes
|
|
33196
|
+
that add/remove marks without replacing the underlying content.
|
|
33197
|
+
*/
|
|
33198
|
+
changedRange() {
|
|
33199
|
+
let from = 1e9, to = -1e9;
|
|
33200
|
+
for (let i = 0; i < this.mapping.maps.length; i++) {
|
|
33201
|
+
let map = this.mapping.maps[i];
|
|
33202
|
+
if (i) {
|
|
33203
|
+
from = map.map(from, 1);
|
|
33204
|
+
to = map.map(to, -1);
|
|
33205
|
+
}
|
|
33206
|
+
map.forEach((_f, _t, fromB, toB) => {
|
|
33207
|
+
from = Math.min(from, fromB);
|
|
33208
|
+
to = Math.max(to, toB);
|
|
33209
|
+
});
|
|
33210
|
+
}
|
|
33211
|
+
return from == 1e9 ? null : { from, to };
|
|
33212
|
+
}
|
|
33213
|
+
/**
|
|
33193
33214
|
@internal
|
|
33194
33215
|
*/
|
|
33195
33216
|
addStep(step, doc) {
|
|
@@ -41841,8 +41862,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
41841
41862
|
}
|
|
41842
41863
|
});
|
|
41843
41864
|
};
|
|
41844
|
-
|
|
41845
|
-
|
|
41865
|
+
try {
|
|
41866
|
+
if (view.hasFocus() && position === null || position === false) {
|
|
41867
|
+
return true;
|
|
41868
|
+
}
|
|
41869
|
+
} catch {
|
|
41870
|
+
return false;
|
|
41846
41871
|
}
|
|
41847
41872
|
if (dispatch && position === null && !isTextSelection(editor.state.selection)) {
|
|
41848
41873
|
delayedFocus();
|
|
@@ -45287,19 +45312,20 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
45287
45312
|
this.node.content.forEach((node, offset) => {
|
|
45288
45313
|
const isBlock = node.isBlock && !node.isTextblock;
|
|
45289
45314
|
const isNonTextAtom = node.isAtom && !node.isText;
|
|
45315
|
+
const isInline = node.isInline;
|
|
45290
45316
|
const targetPos = this.pos + offset + (isNonTextAtom ? 0 : 1);
|
|
45291
45317
|
if (targetPos < 0 || targetPos > this.resolvedPos.doc.nodeSize - 2) {
|
|
45292
45318
|
return;
|
|
45293
45319
|
}
|
|
45294
45320
|
const $pos = this.resolvedPos.doc.resolve(targetPos);
|
|
45295
|
-
if (!isBlock && $pos.depth <= this.depth) {
|
|
45321
|
+
if (!isBlock && !isInline && $pos.depth <= this.depth) {
|
|
45296
45322
|
return;
|
|
45297
45323
|
}
|
|
45298
|
-
const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock ? node : null);
|
|
45324
|
+
const childNodePos = new _NodePos($pos, this.editor, isBlock, isBlock || isInline ? node : null);
|
|
45299
45325
|
if (isBlock) {
|
|
45300
45326
|
childNodePos.actualDepth = this.depth + 1;
|
|
45301
45327
|
}
|
|
45302
|
-
children.push(
|
|
45328
|
+
children.push(childNodePos);
|
|
45303
45329
|
});
|
|
45304
45330
|
return children;
|
|
45305
45331
|
}
|
|
@@ -46758,7 +46784,7 @@ ${renderedContent}
|
|
|
46758
46784
|
// src/index.ts
|
|
46759
46785
|
var index_default$7 = HardBreak;
|
|
46760
46786
|
|
|
46761
|
-
const styles$
|
|
46787
|
+
const styles$D = css `
|
|
46762
46788
|
${display$2('inline')}
|
|
46763
46789
|
|
|
46764
46790
|
.positioning-region {
|
|
@@ -46795,7 +46821,7 @@ ${renderedContent}
|
|
|
46795
46821
|
baseName: 'toolbar',
|
|
46796
46822
|
baseClass: Toolbar$1,
|
|
46797
46823
|
template: toolbarTemplate,
|
|
46798
|
-
styles: styles$
|
|
46824
|
+
styles: styles$D
|
|
46799
46825
|
});
|
|
46800
46826
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
|
|
46801
46827
|
const toolbarTag = 'nimble-toolbar';
|
|
@@ -46824,8 +46850,8 @@ ${renderedContent}
|
|
|
46824
46850
|
cssCustomPropertyName: null
|
|
46825
46851
|
}).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
|
|
46826
46852
|
|
|
46827
|
-
const styles$
|
|
46828
|
-
${styles$
|
|
46853
|
+
const styles$C = css `
|
|
46854
|
+
${styles$S}
|
|
46829
46855
|
|
|
46830
46856
|
:host {
|
|
46831
46857
|
height: auto;
|
|
@@ -46843,7 +46869,7 @@ ${renderedContent}
|
|
|
46843
46869
|
}
|
|
46844
46870
|
`;
|
|
46845
46871
|
|
|
46846
|
-
const template$
|
|
46872
|
+
const template$z = html `
|
|
46847
46873
|
<template>
|
|
46848
46874
|
<${anchoredRegionTag}
|
|
46849
46875
|
${ref('region')}
|
|
@@ -47131,15 +47157,15 @@ ${renderedContent}
|
|
|
47131
47157
|
], RichTextMentionListbox.prototype, "anchorElement", void 0);
|
|
47132
47158
|
const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
|
|
47133
47159
|
baseName: 'rich-text-mention-listbox',
|
|
47134
|
-
template: template$
|
|
47135
|
-
styles: styles$
|
|
47160
|
+
template: template$z,
|
|
47161
|
+
styles: styles$C
|
|
47136
47162
|
});
|
|
47137
47163
|
DesignSystem.getOrCreate()
|
|
47138
47164
|
.withPrefix('nimble')
|
|
47139
47165
|
.register(nimbleRichTextMentionListbox());
|
|
47140
47166
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
47141
47167
|
|
|
47142
|
-
const template$
|
|
47168
|
+
const template$y = html `
|
|
47143
47169
|
<template
|
|
47144
47170
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
47145
47171
|
@focusout="${x => x.focusoutHandler()}"
|
|
@@ -47241,9 +47267,9 @@ ${renderedContent}
|
|
|
47241
47267
|
</template>
|
|
47242
47268
|
`;
|
|
47243
47269
|
|
|
47244
|
-
const styles$
|
|
47270
|
+
const styles$B = css `
|
|
47245
47271
|
${display$2('inline-flex')}
|
|
47246
|
-
${styles$
|
|
47272
|
+
${styles$V}
|
|
47247
47273
|
|
|
47248
47274
|
:host {
|
|
47249
47275
|
font: ${bodyFont};
|
|
@@ -56587,8 +56613,7 @@ ${renderedContent}
|
|
|
56587
56613
|
}
|
|
56588
56614
|
if (node && node.isText && marks.some(mark => {
|
|
56589
56615
|
let info = this.getMark(mark.type.name);
|
|
56590
|
-
return info && info.expelEnclosingWhitespace &&
|
|
56591
|
-
(index == parent.childCount - 1 || !mark.isInSet(parent.child(index + 1).marks));
|
|
56616
|
+
return info && info.expelEnclosingWhitespace && !this.isMarkAhead(parent, index + 1, mark);
|
|
56592
56617
|
})) {
|
|
56593
56618
|
let [_, rest, trail] = /^(.*?)(\s*)$/m.exec(node.text);
|
|
56594
56619
|
if (trail) {
|
|
@@ -56732,6 +56757,19 @@ ${renderedContent}
|
|
|
56732
56757
|
trailing: (text.match(/(\s+)$/) || [undefined])[0]
|
|
56733
56758
|
};
|
|
56734
56759
|
}
|
|
56760
|
+
/**
|
|
56761
|
+
@internal
|
|
56762
|
+
*/
|
|
56763
|
+
isMarkAhead(parent, index, mark) {
|
|
56764
|
+
for (;; index++) {
|
|
56765
|
+
if (index == parent.childCount)
|
|
56766
|
+
return false;
|
|
56767
|
+
let next = parent.child(index);
|
|
56768
|
+
if (next.type.name != this.options.hardBreakNodeName)
|
|
56769
|
+
return mark.isInSet(next.marks);
|
|
56770
|
+
index++;
|
|
56771
|
+
}
|
|
56772
|
+
}
|
|
56735
56773
|
}
|
|
56736
56774
|
|
|
56737
56775
|
var _a$4;
|
|
@@ -59430,31 +59468,33 @@ ${renderedContent}
|
|
|
59430
59468
|
if (!view.editable) {
|
|
59431
59469
|
return false;
|
|
59432
59470
|
}
|
|
59471
|
+
let link = null;
|
|
59472
|
+
if (event.target instanceof HTMLAnchorElement) {
|
|
59473
|
+
link = event.target;
|
|
59474
|
+
} else {
|
|
59475
|
+
const target = event.target;
|
|
59476
|
+
if (!target) {
|
|
59477
|
+
return false;
|
|
59478
|
+
}
|
|
59479
|
+
const root = options.editor.view.dom;
|
|
59480
|
+
link = target.closest("a");
|
|
59481
|
+
if (link && !root.contains(link)) {
|
|
59482
|
+
link = null;
|
|
59483
|
+
}
|
|
59484
|
+
}
|
|
59485
|
+
if (!link) {
|
|
59486
|
+
return false;
|
|
59487
|
+
}
|
|
59433
59488
|
let handled = false;
|
|
59434
59489
|
if (options.enableClickSelection) {
|
|
59435
59490
|
const commandResult = options.editor.commands.extendMarkRange(options.type.name);
|
|
59436
59491
|
handled = commandResult;
|
|
59437
59492
|
}
|
|
59438
59493
|
if (options.openOnClick) {
|
|
59439
|
-
let link = null;
|
|
59440
|
-
if (event.target instanceof HTMLAnchorElement) {
|
|
59441
|
-
link = event.target;
|
|
59442
|
-
} else {
|
|
59443
|
-
let a = event.target;
|
|
59444
|
-
const els = [];
|
|
59445
|
-
while (a.nodeName !== "DIV") {
|
|
59446
|
-
els.push(a);
|
|
59447
|
-
a = a.parentNode;
|
|
59448
|
-
}
|
|
59449
|
-
link = els.find((value) => value.nodeName === "A");
|
|
59450
|
-
}
|
|
59451
|
-
if (!link) {
|
|
59452
|
-
return handled;
|
|
59453
|
-
}
|
|
59454
59494
|
const attrs = getAttributes(view.state, options.type.name);
|
|
59455
|
-
const href = (_a = link
|
|
59456
|
-
const target = (_b = link
|
|
59457
|
-
if (
|
|
59495
|
+
const href = (_a = link.href) != null ? _a : attrs.href;
|
|
59496
|
+
const target = (_b = link.target) != null ? _b : attrs.target;
|
|
59497
|
+
if (href) {
|
|
59458
59498
|
window.open(href, target);
|
|
59459
59499
|
handled = true;
|
|
59460
59500
|
}
|
|
@@ -59891,11 +59931,13 @@ ${renderedContent}
|
|
|
59891
59931
|
node,
|
|
59892
59932
|
h,
|
|
59893
59933
|
(context) => {
|
|
59934
|
+
var _a, _b;
|
|
59894
59935
|
if (context.parentType === "bulletList") {
|
|
59895
59936
|
return "- ";
|
|
59896
59937
|
}
|
|
59897
59938
|
if (context.parentType === "orderedList") {
|
|
59898
|
-
|
|
59939
|
+
const start = ((_b = (_a = context.meta) == null ? void 0 : _a.parentAttrs) == null ? void 0 : _b.start) || 1;
|
|
59940
|
+
return `${start + context.index}. `;
|
|
59899
59941
|
}
|
|
59900
59942
|
return "- ";
|
|
59901
59943
|
},
|
|
@@ -61347,6 +61389,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
61347
61389
|
var index_default$2 = Mention;
|
|
61348
61390
|
|
|
61349
61391
|
// src/paragraph.ts
|
|
61392
|
+
var EMPTY_PARAGRAPH_MARKDOWN = " ";
|
|
61393
|
+
var NBSP_CHAR = "\xA0";
|
|
61350
61394
|
var Paragraph = Node3.create({
|
|
61351
61395
|
name: "paragraph",
|
|
61352
61396
|
priority: 1e3,
|
|
@@ -61368,18 +61412,21 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
61368
61412
|
if (tokens.length === 1 && tokens[0].type === "image") {
|
|
61369
61413
|
return helpers.parseChildren([tokens[0]]);
|
|
61370
61414
|
}
|
|
61371
|
-
|
|
61372
|
-
|
|
61373
|
-
void 0,
|
|
61374
|
-
|
|
61375
|
-
|
|
61376
|
-
);
|
|
61415
|
+
const content = helpers.parseInline(tokens);
|
|
61416
|
+
if (content.length === 1 && content[0].type === "text" && (content[0].text === EMPTY_PARAGRAPH_MARKDOWN || content[0].text === NBSP_CHAR)) {
|
|
61417
|
+
return helpers.createNode("paragraph", void 0, []);
|
|
61418
|
+
}
|
|
61419
|
+
return helpers.createNode("paragraph", void 0, content);
|
|
61377
61420
|
},
|
|
61378
61421
|
renderMarkdown: (node, h) => {
|
|
61379
|
-
if (!node
|
|
61422
|
+
if (!node) {
|
|
61380
61423
|
return "";
|
|
61381
61424
|
}
|
|
61382
|
-
|
|
61425
|
+
const content = Array.isArray(node.content) ? node.content : [];
|
|
61426
|
+
if (content.length === 0) {
|
|
61427
|
+
return EMPTY_PARAGRAPH_MARKDOWN;
|
|
61428
|
+
}
|
|
61429
|
+
return h.renderChildren(content);
|
|
61383
61430
|
},
|
|
61384
61431
|
addCommands() {
|
|
61385
61432
|
return {
|
|
@@ -62590,12 +62637,17 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
62590
62637
|
};
|
|
62591
62638
|
}
|
|
62592
62639
|
});
|
|
62640
|
+
var DEFAULT_DATA_ATTRIBUTE = "placeholder";
|
|
62641
|
+
function preparePlaceholderAttribute(attr) {
|
|
62642
|
+
return attr.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
62643
|
+
}
|
|
62593
62644
|
var Placeholder = Extension.create({
|
|
62594
62645
|
name: "placeholder",
|
|
62595
62646
|
addOptions() {
|
|
62596
62647
|
return {
|
|
62597
62648
|
emptyEditorClass: "is-editor-empty",
|
|
62598
62649
|
emptyNodeClass: "is-empty",
|
|
62650
|
+
dataAttribute: DEFAULT_DATA_ATTRIBUTE,
|
|
62599
62651
|
placeholder: "Write something \u2026",
|
|
62600
62652
|
showOnlyWhenEditable: true,
|
|
62601
62653
|
showOnlyCurrent: true,
|
|
@@ -62603,6 +62655,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
62603
62655
|
};
|
|
62604
62656
|
},
|
|
62605
62657
|
addProseMirrorPlugins() {
|
|
62658
|
+
const dataAttribute = this.options.dataAttribute ? `data-${preparePlaceholderAttribute(this.options.dataAttribute)}` : `data-${DEFAULT_DATA_ATTRIBUTE}`;
|
|
62606
62659
|
return [
|
|
62607
62660
|
new Plugin({
|
|
62608
62661
|
key: new PluginKey("placeholder"),
|
|
@@ -62625,7 +62678,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
62625
62678
|
}
|
|
62626
62679
|
const decoration = Decoration.node(pos, pos + node.nodeSize, {
|
|
62627
62680
|
class: classes.join(" "),
|
|
62628
|
-
|
|
62681
|
+
[dataAttribute]: typeof this.options.placeholder === "function" ? this.options.placeholder({
|
|
62629
62682
|
editor: this.editor,
|
|
62630
62683
|
node,
|
|
62631
62684
|
pos,
|
|
@@ -63590,8 +63643,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63590
63643
|
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
63591
63644
|
const nimbleRichTextEditor = RichTextEditor.compose({
|
|
63592
63645
|
baseName: 'rich-text-editor',
|
|
63593
|
-
template: template$
|
|
63594
|
-
styles: styles$
|
|
63646
|
+
template: template$y,
|
|
63647
|
+
styles: styles$B,
|
|
63595
63648
|
shadowOptions: {
|
|
63596
63649
|
delegatesFocus: true
|
|
63597
63650
|
}
|
|
@@ -63600,13 +63653,13 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63600
63653
|
.withPrefix('nimble')
|
|
63601
63654
|
.register(nimbleRichTextEditor());
|
|
63602
63655
|
|
|
63603
|
-
const template$
|
|
63656
|
+
const template$x = html `
|
|
63604
63657
|
<template ${children$1({ property: 'childItems', filter: elements() })}>
|
|
63605
63658
|
<div ${ref('viewer')} class="viewer"></div>
|
|
63606
63659
|
</template>
|
|
63607
63660
|
`;
|
|
63608
63661
|
|
|
63609
|
-
const styles$
|
|
63662
|
+
const styles$A = css `
|
|
63610
63663
|
${display$2('flex')}
|
|
63611
63664
|
|
|
63612
63665
|
:host {
|
|
@@ -63719,17 +63772,17 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63719
63772
|
], RichTextViewer.prototype, "markdown", void 0);
|
|
63720
63773
|
const nimbleRichTextViewer = RichTextViewer.compose({
|
|
63721
63774
|
baseName: 'rich-text-viewer',
|
|
63722
|
-
template: template$
|
|
63723
|
-
styles: styles$
|
|
63775
|
+
template: template$x,
|
|
63776
|
+
styles: styles$A
|
|
63724
63777
|
});
|
|
63725
63778
|
DesignSystem.getOrCreate()
|
|
63726
63779
|
.withPrefix('nimble')
|
|
63727
63780
|
.register(nimbleRichTextViewer());
|
|
63728
63781
|
|
|
63729
|
-
const styles$
|
|
63730
|
-
${styles$P}
|
|
63782
|
+
const styles$z = css `
|
|
63731
63783
|
${styles$S}
|
|
63732
|
-
${styles$
|
|
63784
|
+
${styles$V}
|
|
63785
|
+
${styles$R}
|
|
63733
63786
|
|
|
63734
63787
|
${
|
|
63735
63788
|
/* We are using flex `order` to define the visual ordering of the selected value,
|
|
@@ -63892,7 +63945,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63892
63945
|
}
|
|
63893
63946
|
`));
|
|
63894
63947
|
|
|
63895
|
-
const styles$
|
|
63948
|
+
const styles$y = css `
|
|
63896
63949
|
${display$2('inline-grid')}
|
|
63897
63950
|
|
|
63898
63951
|
:host {
|
|
@@ -64062,7 +64115,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64062
64115
|
}
|
|
64063
64116
|
`));
|
|
64064
64117
|
|
|
64065
|
-
const template$
|
|
64118
|
+
const template$w = html `
|
|
64066
64119
|
<template role="progressbar">
|
|
64067
64120
|
${''
|
|
64068
64121
|
/**
|
|
@@ -64109,8 +64162,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64109
64162
|
], Spinner.prototype, "appearance", void 0);
|
|
64110
64163
|
const nimbleSpinner = Spinner.compose({
|
|
64111
64164
|
baseName: 'spinner',
|
|
64112
|
-
template: template$
|
|
64113
|
-
styles: styles$
|
|
64165
|
+
template: template$w,
|
|
64166
|
+
styles: styles$y
|
|
64114
64167
|
});
|
|
64115
64168
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
|
|
64116
64169
|
const spinnerTag = 'nimble-spinner';
|
|
@@ -64126,7 +64179,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64126
64179
|
<slot ${ref('labelSlot')}></slot>
|
|
64127
64180
|
</label>
|
|
64128
64181
|
`);
|
|
64129
|
-
const template$
|
|
64182
|
+
const template$v = (context, definition) => html `
|
|
64130
64183
|
<template
|
|
64131
64184
|
class="${x => [
|
|
64132
64185
|
x.collapsible && 'collapsible',
|
|
@@ -65342,8 +65395,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65342
65395
|
const nimbleSelect = Select.compose({
|
|
65343
65396
|
baseName: 'select',
|
|
65344
65397
|
baseClass: Select$2,
|
|
65345
|
-
template: template$
|
|
65346
|
-
styles: styles$
|
|
65398
|
+
template: template$v,
|
|
65399
|
+
styles: styles$z,
|
|
65347
65400
|
indicator: arrowExpanderDown16X16.data,
|
|
65348
65401
|
end: html `
|
|
65349
65402
|
<${iconExclamationMarkTag}
|
|
@@ -65356,7 +65409,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65356
65409
|
applyMixins(Select, StartEnd, DelegatesARIASelect);
|
|
65357
65410
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
|
|
65358
65411
|
|
|
65359
|
-
const styles$
|
|
65412
|
+
const styles$x = css `
|
|
65360
65413
|
${display$2('inline-flex')}
|
|
65361
65414
|
|
|
65362
65415
|
:host {
|
|
@@ -65518,7 +65571,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65518
65571
|
}
|
|
65519
65572
|
`));
|
|
65520
65573
|
|
|
65521
|
-
const template$
|
|
65574
|
+
const template$u = html `
|
|
65522
65575
|
<template
|
|
65523
65576
|
role="switch"
|
|
65524
65577
|
aria-checked="${x => x.checked}"
|
|
@@ -65562,12 +65615,12 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65562
65615
|
const nimbleSwitch = Switch.compose({
|
|
65563
65616
|
baseClass: Switch$1,
|
|
65564
65617
|
baseName: 'switch',
|
|
65565
|
-
template: template$
|
|
65566
|
-
styles: styles$
|
|
65618
|
+
template: template$u,
|
|
65619
|
+
styles: styles$x
|
|
65567
65620
|
});
|
|
65568
65621
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
|
|
65569
65622
|
|
|
65570
|
-
const styles$
|
|
65623
|
+
const styles$w = css `
|
|
65571
65624
|
${display$2('inline-flex')}
|
|
65572
65625
|
|
|
65573
65626
|
:host {
|
|
@@ -65678,11 +65731,11 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65678
65731
|
baseName: 'tab',
|
|
65679
65732
|
baseClass: Tab$1,
|
|
65680
65733
|
template: tabTemplate,
|
|
65681
|
-
styles: styles$
|
|
65734
|
+
styles: styles$w
|
|
65682
65735
|
});
|
|
65683
65736
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
|
|
65684
65737
|
|
|
65685
|
-
const styles$
|
|
65738
|
+
const styles$v = css `
|
|
65686
65739
|
${display$2('block')}
|
|
65687
65740
|
|
|
65688
65741
|
:host {
|
|
@@ -65701,7 +65754,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65701
65754
|
baseName: 'tab-panel',
|
|
65702
65755
|
baseClass: TabPanel$1,
|
|
65703
65756
|
template: tabPanelTemplate,
|
|
65704
|
-
styles: styles$
|
|
65757
|
+
styles: styles$v
|
|
65705
65758
|
});
|
|
65706
65759
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
|
|
65707
65760
|
|
|
@@ -69427,7 +69480,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
69427
69480
|
}
|
|
69428
69481
|
}
|
|
69429
69482
|
|
|
69430
|
-
const styles$
|
|
69483
|
+
const styles$u = css `
|
|
69431
69484
|
${display$2('flex')}
|
|
69432
69485
|
|
|
69433
69486
|
:host {
|
|
@@ -69647,7 +69700,7 @@ focus outline in that case.
|
|
|
69647
69700
|
}
|
|
69648
69701
|
`));
|
|
69649
69702
|
|
|
69650
|
-
const styles$
|
|
69703
|
+
const styles$t = css `
|
|
69651
69704
|
${display$2('flex')}
|
|
69652
69705
|
|
|
69653
69706
|
:host {
|
|
@@ -69680,7 +69733,7 @@ focus outline in that case.
|
|
|
69680
69733
|
}
|
|
69681
69734
|
`;
|
|
69682
69735
|
|
|
69683
|
-
const template$
|
|
69736
|
+
const template$t = html `
|
|
69684
69737
|
<template role="columnheader"
|
|
69685
69738
|
class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
|
|
69686
69739
|
aria-sort="${x => x.ariaSort}"
|
|
@@ -69766,13 +69819,13 @@ focus outline in that case.
|
|
|
69766
69819
|
], TableHeader.prototype, "isGrouped", void 0);
|
|
69767
69820
|
const nimbleTableHeader = TableHeader.compose({
|
|
69768
69821
|
baseName: 'table-header',
|
|
69769
|
-
template: template$
|
|
69770
|
-
styles: styles$
|
|
69822
|
+
template: template$t,
|
|
69823
|
+
styles: styles$t
|
|
69771
69824
|
});
|
|
69772
69825
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
|
|
69773
69826
|
const tableHeaderTag = 'nimble-table-header';
|
|
69774
69827
|
|
|
69775
|
-
const styles$
|
|
69828
|
+
const styles$s = css `
|
|
69776
69829
|
:host .animating {
|
|
69777
69830
|
transition: ${mediumDelay} ease-in;
|
|
69778
69831
|
}
|
|
@@ -69797,9 +69850,9 @@ focus outline in that case.
|
|
|
69797
69850
|
}
|
|
69798
69851
|
`;
|
|
69799
69852
|
|
|
69800
|
-
const styles$
|
|
69853
|
+
const styles$r = css `
|
|
69801
69854
|
${display$2('flex')}
|
|
69802
|
-
${styles$
|
|
69855
|
+
${styles$s}
|
|
69803
69856
|
|
|
69804
69857
|
:host {
|
|
69805
69858
|
width: fit-content;
|
|
@@ -69969,7 +70022,7 @@ focus outline in that case.
|
|
|
69969
70022
|
}
|
|
69970
70023
|
`));
|
|
69971
70024
|
|
|
69972
|
-
const styles$
|
|
70025
|
+
const styles$q = css `
|
|
69973
70026
|
${display$2('flex')}
|
|
69974
70027
|
|
|
69975
70028
|
:host {
|
|
@@ -70014,7 +70067,7 @@ focus outline in that case.
|
|
|
70014
70067
|
}
|
|
70015
70068
|
`;
|
|
70016
70069
|
|
|
70017
|
-
const template$
|
|
70070
|
+
const template$s = html `
|
|
70018
70071
|
<template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
|
|
70019
70072
|
@focusin="${x => x.onCellFocusIn()}"
|
|
70020
70073
|
@blur="${x => x.onCellBlur()}"
|
|
@@ -70111,13 +70164,13 @@ focus outline in that case.
|
|
|
70111
70164
|
], TableCell.prototype, "nestingLevel", void 0);
|
|
70112
70165
|
const nimbleTableCell = TableCell.compose({
|
|
70113
70166
|
baseName: 'table-cell',
|
|
70114
|
-
template: template$
|
|
70115
|
-
styles: styles$
|
|
70167
|
+
template: template$s,
|
|
70168
|
+
styles: styles$q
|
|
70116
70169
|
});
|
|
70117
70170
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
|
|
70118
70171
|
const tableCellTag = 'nimble-table-cell';
|
|
70119
70172
|
|
|
70120
|
-
const template$
|
|
70173
|
+
const template$r = html `
|
|
70121
70174
|
<template
|
|
70122
70175
|
role="row"
|
|
70123
70176
|
aria-selected=${x => x.ariaSelected}
|
|
@@ -70517,15 +70570,15 @@ focus outline in that case.
|
|
|
70517
70570
|
], TableRow.prototype, "ariaSelected", null);
|
|
70518
70571
|
const nimbleTableRow = TableRow.compose({
|
|
70519
70572
|
baseName: 'table-row',
|
|
70520
|
-
template: template$
|
|
70521
|
-
styles: styles$
|
|
70573
|
+
template: template$r,
|
|
70574
|
+
styles: styles$r
|
|
70522
70575
|
});
|
|
70523
70576
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
|
|
70524
70577
|
const tableRowTag = 'nimble-table-row';
|
|
70525
70578
|
|
|
70526
|
-
const styles$
|
|
70579
|
+
const styles$p = css `
|
|
70527
70580
|
${display$2('grid')}
|
|
70528
|
-
${styles$
|
|
70581
|
+
${styles$s}
|
|
70529
70582
|
|
|
70530
70583
|
:host {
|
|
70531
70584
|
align-items: center;
|
|
@@ -70613,7 +70666,7 @@ focus outline in that case.
|
|
|
70613
70666
|
}
|
|
70614
70667
|
`));
|
|
70615
70668
|
|
|
70616
|
-
const template$
|
|
70669
|
+
const template$q = html `
|
|
70617
70670
|
<template
|
|
70618
70671
|
role="row"
|
|
70619
70672
|
@click=${x => x.onGroupExpandToggle()}
|
|
@@ -70770,13 +70823,13 @@ focus outline in that case.
|
|
|
70770
70823
|
], TableGroupRow.prototype, "allowHover", void 0);
|
|
70771
70824
|
const nimbleTableGroupRow = TableGroupRow.compose({
|
|
70772
70825
|
baseName: 'table-group-row',
|
|
70773
|
-
template: template$
|
|
70774
|
-
styles: styles$
|
|
70826
|
+
template: template$q,
|
|
70827
|
+
styles: styles$p
|
|
70775
70828
|
});
|
|
70776
70829
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
|
|
70777
70830
|
const tableGroupRowTag = 'nimble-table-group-row';
|
|
70778
70831
|
|
|
70779
|
-
const template$
|
|
70832
|
+
const template$p = html `
|
|
70780
70833
|
<template
|
|
70781
70834
|
role="treegrid"
|
|
70782
70835
|
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
@@ -75015,12 +75068,12 @@ focus outline in that case.
|
|
|
75015
75068
|
], Table$1.prototype, "windowShiftKeyDown", void 0);
|
|
75016
75069
|
const nimbleTable = Table$1.compose({
|
|
75017
75070
|
baseName: 'table',
|
|
75018
|
-
template: template$
|
|
75019
|
-
styles: styles$
|
|
75071
|
+
template: template$p,
|
|
75072
|
+
styles: styles$u
|
|
75020
75073
|
});
|
|
75021
75074
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
|
|
75022
75075
|
|
|
75023
|
-
const styles$
|
|
75076
|
+
const styles$o = css `
|
|
75024
75077
|
${display$2('contents')}
|
|
75025
75078
|
|
|
75026
75079
|
.header-content {
|
|
@@ -75032,7 +75085,7 @@ focus outline in that case.
|
|
|
75032
75085
|
|
|
75033
75086
|
// Avoiding a wrapping <template> and be careful about starting and ending whitspace
|
|
75034
75087
|
// so the template can be composed into other column header templates
|
|
75035
|
-
const template$
|
|
75088
|
+
const template$o = html `<span
|
|
75036
75089
|
${overflow('hasOverflow')}
|
|
75037
75090
|
class="header-content"
|
|
75038
75091
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -75097,7 +75150,7 @@ focus outline in that case.
|
|
|
75097
75150
|
return ColumnWithPlaceholder;
|
|
75098
75151
|
}
|
|
75099
75152
|
|
|
75100
|
-
const styles$
|
|
75153
|
+
const styles$n = css `
|
|
75101
75154
|
${display$2('flex')}
|
|
75102
75155
|
|
|
75103
75156
|
:host {
|
|
@@ -75128,7 +75181,7 @@ focus outline in that case.
|
|
|
75128
75181
|
}
|
|
75129
75182
|
`;
|
|
75130
75183
|
|
|
75131
|
-
const template$
|
|
75184
|
+
const template$n = html `
|
|
75132
75185
|
<template
|
|
75133
75186
|
@click="${(x, c) => {
|
|
75134
75187
|
if (typeof x.cellRecord?.href === 'string') {
|
|
@@ -75220,8 +75273,8 @@ focus outline in that case.
|
|
|
75220
75273
|
], TableColumnAnchorCellView.prototype, "showAnchor", null);
|
|
75221
75274
|
const anchorCellView = TableColumnAnchorCellView.compose({
|
|
75222
75275
|
baseName: 'table-column-anchor-cell-view',
|
|
75223
|
-
template: template$
|
|
75224
|
-
styles: styles$
|
|
75276
|
+
template: template$n,
|
|
75277
|
+
styles: styles$n
|
|
75225
75278
|
});
|
|
75226
75279
|
DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
|
|
75227
75280
|
const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
|
|
@@ -75298,7 +75351,7 @@ focus outline in that case.
|
|
|
75298
75351
|
observable
|
|
75299
75352
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
75300
75353
|
|
|
75301
|
-
const template$
|
|
75354
|
+
const template$m = html `
|
|
75302
75355
|
<span
|
|
75303
75356
|
${overflow('hasOverflow')}
|
|
75304
75357
|
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
@@ -75307,7 +75360,7 @@ focus outline in that case.
|
|
|
75307
75360
|
</span>
|
|
75308
75361
|
`;
|
|
75309
75362
|
|
|
75310
|
-
const styles$
|
|
75363
|
+
const styles$m = css `
|
|
75311
75364
|
${display$2('flex')}
|
|
75312
75365
|
|
|
75313
75366
|
span {
|
|
@@ -75331,8 +75384,8 @@ focus outline in that case.
|
|
|
75331
75384
|
}
|
|
75332
75385
|
const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
|
|
75333
75386
|
baseName: 'table-column-text-group-header-view',
|
|
75334
|
-
template: template$
|
|
75335
|
-
styles: styles$
|
|
75387
|
+
template: template$m,
|
|
75388
|
+
styles: styles$m
|
|
75336
75389
|
});
|
|
75337
75390
|
DesignSystem.getOrCreate()
|
|
75338
75391
|
.withPrefix('nimble')
|
|
@@ -75576,8 +75629,8 @@ focus outline in that case.
|
|
|
75576
75629
|
], TableColumnAnchor.prototype, "download", void 0);
|
|
75577
75630
|
const nimbleTableColumnAnchor = TableColumnAnchor.compose({
|
|
75578
75631
|
baseName: 'table-column-anchor',
|
|
75579
|
-
template: template$
|
|
75580
|
-
styles: styles$
|
|
75632
|
+
template: template$o,
|
|
75633
|
+
styles: styles$o
|
|
75581
75634
|
});
|
|
75582
75635
|
DesignSystem.getOrCreate()
|
|
75583
75636
|
.withPrefix('nimble')
|
|
@@ -75629,15 +75682,15 @@ focus outline in that case.
|
|
|
75629
75682
|
}
|
|
75630
75683
|
const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
|
|
75631
75684
|
baseName: 'table-column-date-text-group-header-view',
|
|
75632
|
-
template: template$
|
|
75633
|
-
styles: styles$
|
|
75685
|
+
template: template$m,
|
|
75686
|
+
styles: styles$m
|
|
75634
75687
|
});
|
|
75635
75688
|
DesignSystem.getOrCreate()
|
|
75636
75689
|
.withPrefix('nimble')
|
|
75637
75690
|
.register(tableColumnDateTextGroupHeaderView());
|
|
75638
75691
|
const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
|
|
75639
75692
|
|
|
75640
|
-
const template$
|
|
75693
|
+
const template$l = html `
|
|
75641
75694
|
<template
|
|
75642
75695
|
class="
|
|
75643
75696
|
${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}
|
|
@@ -75653,7 +75706,7 @@ focus outline in that case.
|
|
|
75653
75706
|
</template>
|
|
75654
75707
|
`;
|
|
75655
75708
|
|
|
75656
|
-
const styles$
|
|
75709
|
+
const styles$l = css `
|
|
75657
75710
|
${display$2('flex')}
|
|
75658
75711
|
|
|
75659
75712
|
:host {
|
|
@@ -75755,8 +75808,8 @@ focus outline in that case.
|
|
|
75755
75808
|
}
|
|
75756
75809
|
const dateTextCellView = TableColumnDateTextCellView.compose({
|
|
75757
75810
|
baseName: 'table-column-date-text-cell-view',
|
|
75758
|
-
template: template$
|
|
75759
|
-
styles: styles$
|
|
75811
|
+
template: template$l,
|
|
75812
|
+
styles: styles$l
|
|
75760
75813
|
});
|
|
75761
75814
|
DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
|
|
75762
75815
|
const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
|
|
@@ -76014,8 +76067,8 @@ focus outline in that case.
|
|
|
76014
76067
|
], TableColumnDateText.prototype, "customHourCycle", void 0);
|
|
76015
76068
|
const nimbleTableColumnDateText = TableColumnDateText.compose({
|
|
76016
76069
|
baseName: 'table-column-date-text',
|
|
76017
|
-
template: template$
|
|
76018
|
-
styles: styles$
|
|
76070
|
+
template: template$o,
|
|
76071
|
+
styles: styles$o
|
|
76019
76072
|
});
|
|
76020
76073
|
DesignSystem.getOrCreate()
|
|
76021
76074
|
.withPrefix('nimble')
|
|
@@ -76031,8 +76084,8 @@ focus outline in that case.
|
|
|
76031
76084
|
}
|
|
76032
76085
|
const durationTextCellView = TableColumnDurationTextCellView.compose({
|
|
76033
76086
|
baseName: 'table-column-duration-text-cell-view',
|
|
76034
|
-
template: template$
|
|
76035
|
-
styles: styles$
|
|
76087
|
+
template: template$l,
|
|
76088
|
+
styles: styles$l
|
|
76036
76089
|
});
|
|
76037
76090
|
DesignSystem.getOrCreate()
|
|
76038
76091
|
.withPrefix('nimble')
|
|
@@ -76133,8 +76186,8 @@ focus outline in that case.
|
|
|
76133
76186
|
}
|
|
76134
76187
|
const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
|
|
76135
76188
|
baseName: 'table-column-duration-text-group-header-view',
|
|
76136
|
-
template: template$
|
|
76137
|
-
styles: styles$
|
|
76189
|
+
template: template$m,
|
|
76190
|
+
styles: styles$m
|
|
76138
76191
|
});
|
|
76139
76192
|
DesignSystem.getOrCreate()
|
|
76140
76193
|
.withPrefix('nimble')
|
|
@@ -76186,8 +76239,8 @@ focus outline in that case.
|
|
|
76186
76239
|
}
|
|
76187
76240
|
const nimbleTableColumnDurationText = TableColumnDurationText.compose({
|
|
76188
76241
|
baseName: 'table-column-duration-text',
|
|
76189
|
-
template: template$
|
|
76190
|
-
styles: styles$
|
|
76242
|
+
template: template$o,
|
|
76243
|
+
styles: styles$o
|
|
76191
76244
|
});
|
|
76192
76245
|
DesignSystem.getOrCreate()
|
|
76193
76246
|
.withPrefix('nimble')
|
|
@@ -76295,15 +76348,15 @@ focus outline in that case.
|
|
|
76295
76348
|
attr({ attribute: 'key-type' })
|
|
76296
76349
|
], TableColumnEnumBase.prototype, "keyType", void 0);
|
|
76297
76350
|
|
|
76298
|
-
const styles$
|
|
76299
|
-
${styles$
|
|
76351
|
+
const styles$k = css `
|
|
76352
|
+
${styles$o}
|
|
76300
76353
|
|
|
76301
76354
|
slot[name='mapping'] {
|
|
76302
76355
|
display: none;
|
|
76303
76356
|
}
|
|
76304
76357
|
`;
|
|
76305
76358
|
|
|
76306
|
-
const template$
|
|
76359
|
+
const template$k = html `${template$o}<slot ${slotted('mappings')} name="mapping"></slot>`;
|
|
76307
76360
|
|
|
76308
76361
|
const enumBaseValidityFlagNames = [
|
|
76309
76362
|
'invalidMappingKeyValueForType',
|
|
@@ -76389,7 +76442,7 @@ focus outline in that case.
|
|
|
76389
76442
|
}
|
|
76390
76443
|
}
|
|
76391
76444
|
|
|
76392
|
-
const styles$
|
|
76445
|
+
const styles$j = css `
|
|
76393
76446
|
${display$2('inline-flex')}
|
|
76394
76447
|
|
|
76395
76448
|
:host {
|
|
@@ -76413,7 +76466,7 @@ focus outline in that case.
|
|
|
76413
76466
|
}
|
|
76414
76467
|
`;
|
|
76415
76468
|
|
|
76416
|
-
const template$
|
|
76469
|
+
const template$j = html `
|
|
76417
76470
|
${when(x => x.visualizationTemplate, html `
|
|
76418
76471
|
<span class="reserve-icon-size">
|
|
76419
76472
|
${x => x.visualizationTemplate}
|
|
@@ -76557,15 +76610,15 @@ focus outline in that case.
|
|
|
76557
76610
|
], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
|
|
76558
76611
|
const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
|
|
76559
76612
|
baseName: 'table-column-mapping-group-header-view',
|
|
76560
|
-
template: template$
|
|
76561
|
-
styles: styles$
|
|
76613
|
+
template: template$j,
|
|
76614
|
+
styles: styles$j
|
|
76562
76615
|
});
|
|
76563
76616
|
DesignSystem.getOrCreate()
|
|
76564
76617
|
.withPrefix('nimble')
|
|
76565
76618
|
.register(mappingGroupHeaderView());
|
|
76566
76619
|
const tableColumnMappingGroupHeaderViewTag = 'nimble-table-column-mapping-group-header-view';
|
|
76567
76620
|
|
|
76568
|
-
const styles$
|
|
76621
|
+
const styles$i = css `
|
|
76569
76622
|
${display$2('inline-flex')}
|
|
76570
76623
|
|
|
76571
76624
|
:host {
|
|
@@ -76589,7 +76642,7 @@ focus outline in that case.
|
|
|
76589
76642
|
}
|
|
76590
76643
|
`;
|
|
76591
76644
|
|
|
76592
|
-
const template$
|
|
76645
|
+
const template$i = html `
|
|
76593
76646
|
${when(x => x.visualizationTemplate, html `
|
|
76594
76647
|
<span class="reserve-icon-size">
|
|
76595
76648
|
${x => x.visualizationTemplate}
|
|
@@ -76676,8 +76729,8 @@ focus outline in that case.
|
|
|
76676
76729
|
], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
|
|
76677
76730
|
const mappingCellView = TableColumnMappingCellView.compose({
|
|
76678
76731
|
baseName: 'table-column-mapping-cell-view',
|
|
76679
|
-
template: template$
|
|
76680
|
-
styles: styles$
|
|
76732
|
+
template: template$i,
|
|
76733
|
+
styles: styles$i
|
|
76681
76734
|
});
|
|
76682
76735
|
DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
|
|
76683
76736
|
const tableColumnMappingCellViewTag = 'nimble-table-column-mapping-cell-view';
|
|
@@ -76760,23 +76813,23 @@ focus outline in that case.
|
|
|
76760
76813
|
], TableColumnMapping.prototype, "widthMode", void 0);
|
|
76761
76814
|
const nimbleTableColumnMapping = TableColumnMapping.compose({
|
|
76762
76815
|
baseName: 'table-column-mapping',
|
|
76763
|
-
template: template$
|
|
76764
|
-
styles: styles$
|
|
76816
|
+
template: template$k,
|
|
76817
|
+
styles: styles$k
|
|
76765
76818
|
});
|
|
76766
76819
|
DesignSystem.getOrCreate()
|
|
76767
76820
|
.withPrefix('nimble')
|
|
76768
76821
|
.register(nimbleTableColumnMapping());
|
|
76769
76822
|
|
|
76770
|
-
const template$
|
|
76823
|
+
const template$h = html `
|
|
76771
76824
|
<template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
|
|
76772
|
-
>${template$
|
|
76825
|
+
>${template$o}</template
|
|
76773
76826
|
>
|
|
76774
76827
|
`;
|
|
76775
76828
|
|
|
76776
76829
|
/** @internal */
|
|
76777
76830
|
const cellViewMenuSlotName = 'menu-button-menu';
|
|
76778
76831
|
|
|
76779
|
-
const template$
|
|
76832
|
+
const template$g = html `
|
|
76780
76833
|
${when(x => x.showMenuButton, html `
|
|
76781
76834
|
<${menuButtonTag}
|
|
76782
76835
|
${ref('menuButton')}
|
|
@@ -76795,7 +76848,7 @@ focus outline in that case.
|
|
|
76795
76848
|
`)}
|
|
76796
76849
|
`;
|
|
76797
76850
|
|
|
76798
|
-
const styles$
|
|
76851
|
+
const styles$h = css `
|
|
76799
76852
|
:host {
|
|
76800
76853
|
align-self: center;
|
|
76801
76854
|
width: 100%;
|
|
@@ -76870,8 +76923,8 @@ focus outline in that case.
|
|
|
76870
76923
|
], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
|
|
76871
76924
|
const menuButtonCellView = TableColumnMenuButtonCellView.compose({
|
|
76872
76925
|
baseName: 'table-column-menu-button-cell-view',
|
|
76873
|
-
template: template$
|
|
76874
|
-
styles: styles$
|
|
76926
|
+
template: template$g,
|
|
76927
|
+
styles: styles$h
|
|
76875
76928
|
});
|
|
76876
76929
|
DesignSystem.getOrCreate().withPrefix('nimble').register(menuButtonCellView());
|
|
76877
76930
|
const tableColumnMenuButtonCellViewTag = 'nimble-table-column-menu-button-cell-view';
|
|
@@ -76926,8 +76979,8 @@ focus outline in that case.
|
|
|
76926
76979
|
], TableColumnMenuButton.prototype, "menuSlot", void 0);
|
|
76927
76980
|
const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
|
|
76928
76981
|
baseName: 'table-column-menu-button',
|
|
76929
|
-
template: template$
|
|
76930
|
-
styles: styles$
|
|
76982
|
+
template: template$h,
|
|
76983
|
+
styles: styles$o
|
|
76931
76984
|
});
|
|
76932
76985
|
DesignSystem.getOrCreate()
|
|
76933
76986
|
.withPrefix('nimble')
|
|
@@ -76935,7 +76988,7 @@ focus outline in that case.
|
|
|
76935
76988
|
|
|
76936
76989
|
// Avoiding a wrapping <template> and be careful about starting and ending whitespace
|
|
76937
76990
|
// so the template can be composed into other column header templates
|
|
76938
|
-
const template$
|
|
76991
|
+
const template$f = html `<span
|
|
76939
76992
|
${overflow('hasOverflow')}
|
|
76940
76993
|
class="header-content"
|
|
76941
76994
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -76954,8 +77007,8 @@ focus outline in that case.
|
|
|
76954
77007
|
}
|
|
76955
77008
|
const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
|
|
76956
77009
|
baseName: 'table-column-number-text-group-header-view',
|
|
76957
|
-
template: template$
|
|
76958
|
-
styles: styles$
|
|
77010
|
+
template: template$m,
|
|
77011
|
+
styles: styles$m
|
|
76959
77012
|
});
|
|
76960
77013
|
DesignSystem.getOrCreate()
|
|
76961
77014
|
.withPrefix('nimble')
|
|
@@ -76976,8 +77029,8 @@ focus outline in that case.
|
|
|
76976
77029
|
}
|
|
76977
77030
|
const numberTextCellView = TableColumnNumberTextCellView.compose({
|
|
76978
77031
|
baseName: 'table-column-number-text-cell-view',
|
|
76979
|
-
template: template$
|
|
76980
|
-
styles: styles$
|
|
77032
|
+
template: template$l,
|
|
77033
|
+
styles: styles$l
|
|
76981
77034
|
});
|
|
76982
77035
|
DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
|
|
76983
77036
|
const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
|
|
@@ -77517,8 +77570,8 @@ focus outline in that case.
|
|
|
77517
77570
|
], TableColumnNumberText.prototype, "unit", void 0);
|
|
77518
77571
|
const nimbleTableColumnNumberText = TableColumnNumberText.compose({
|
|
77519
77572
|
baseName: 'table-column-number-text',
|
|
77520
|
-
template: template$
|
|
77521
|
-
styles: styles$
|
|
77573
|
+
template: template$f,
|
|
77574
|
+
styles: styles$o
|
|
77522
77575
|
});
|
|
77523
77576
|
DesignSystem.getOrCreate()
|
|
77524
77577
|
.withPrefix('nimble')
|
|
@@ -77536,8 +77589,8 @@ focus outline in that case.
|
|
|
77536
77589
|
}
|
|
77537
77590
|
const textCellView = TableColumnTextCellView.compose({
|
|
77538
77591
|
baseName: 'table-column-text-cell-view',
|
|
77539
|
-
template: template$
|
|
77540
|
-
styles: styles$
|
|
77592
|
+
template: template$l,
|
|
77593
|
+
styles: styles$l
|
|
77541
77594
|
});
|
|
77542
77595
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
|
|
77543
77596
|
const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
|
|
@@ -77591,15 +77644,15 @@ focus outline in that case.
|
|
|
77591
77644
|
}
|
|
77592
77645
|
const nimbleTableColumnText = TableColumnText.compose({
|
|
77593
77646
|
baseName: 'table-column-text',
|
|
77594
|
-
template: template$
|
|
77595
|
-
styles: styles$
|
|
77647
|
+
template: template$o,
|
|
77648
|
+
styles: styles$o
|
|
77596
77649
|
});
|
|
77597
77650
|
DesignSystem.getOrCreate()
|
|
77598
77651
|
.withPrefix('nimble')
|
|
77599
77652
|
.register(nimbleTableColumnText());
|
|
77600
77653
|
|
|
77601
|
-
const styles$
|
|
77602
|
-
${styles$
|
|
77654
|
+
const styles$g = css `
|
|
77655
|
+
${styles$13}
|
|
77603
77656
|
|
|
77604
77657
|
.tabpanel {
|
|
77605
77658
|
overflow: auto;
|
|
@@ -77680,12 +77733,12 @@ focus outline in that case.
|
|
|
77680
77733
|
const nimbleTabs = Tabs.compose({
|
|
77681
77734
|
baseName: 'tabs',
|
|
77682
77735
|
baseClass: Tabs$1,
|
|
77683
|
-
template: template$
|
|
77684
|
-
styles: styles$
|
|
77736
|
+
template: template$P,
|
|
77737
|
+
styles: styles$g
|
|
77685
77738
|
});
|
|
77686
77739
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
|
|
77687
77740
|
|
|
77688
|
-
const styles$
|
|
77741
|
+
const styles$f = css `
|
|
77689
77742
|
${display$2('flex')}
|
|
77690
77743
|
|
|
77691
77744
|
:host {
|
|
@@ -77717,7 +77770,7 @@ focus outline in that case.
|
|
|
77717
77770
|
}
|
|
77718
77771
|
`;
|
|
77719
77772
|
|
|
77720
|
-
const template$
|
|
77773
|
+
const template$e = (context, definition) => html `
|
|
77721
77774
|
<template slot="end">
|
|
77722
77775
|
${when(x => x.defaultSlottedElements.length > 0, html `
|
|
77723
77776
|
<div class="separator"></div>
|
|
@@ -77749,8 +77802,8 @@ focus outline in that case.
|
|
|
77749
77802
|
], TabsToolbar.prototype, "defaultSlottedElements", void 0);
|
|
77750
77803
|
const nimbleTabsToolbar = TabsToolbar.compose({
|
|
77751
77804
|
baseName: 'tabs-toolbar',
|
|
77752
|
-
template: template$
|
|
77753
|
-
styles: styles$
|
|
77805
|
+
template: template$e,
|
|
77806
|
+
styles: styles$f
|
|
77754
77807
|
});
|
|
77755
77808
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
|
|
77756
77809
|
applyMixins(TabsToolbar, StartEnd);
|
|
@@ -77760,10 +77813,10 @@ focus outline in that case.
|
|
|
77760
77813
|
block: 'block'
|
|
77761
77814
|
};
|
|
77762
77815
|
|
|
77763
|
-
const styles$
|
|
77816
|
+
const styles$e = css `
|
|
77764
77817
|
${display$2('inline-flex')}
|
|
77765
|
-
${styles$
|
|
77766
|
-
${styles$
|
|
77818
|
+
${styles$V}
|
|
77819
|
+
${styles$R}
|
|
77767
77820
|
|
|
77768
77821
|
:host {
|
|
77769
77822
|
font: ${bodyFont};
|
|
@@ -77955,7 +78008,7 @@ focus outline in that case.
|
|
|
77955
78008
|
<slot ${slotted('defaultSlottedNodes')}></slot>
|
|
77956
78009
|
</label>
|
|
77957
78010
|
`);
|
|
77958
|
-
const template$
|
|
78011
|
+
const template$d = () => html `
|
|
77959
78012
|
${labelTemplate$1}
|
|
77960
78013
|
<div class="container">
|
|
77961
78014
|
<textarea
|
|
@@ -78103,8 +78156,8 @@ focus outline in that case.
|
|
|
78103
78156
|
const nimbleTextArea = TextArea.compose({
|
|
78104
78157
|
baseName: 'text-area',
|
|
78105
78158
|
baseClass: TextArea$1,
|
|
78106
|
-
template: template$
|
|
78107
|
-
styles: styles$
|
|
78159
|
+
template: template$d,
|
|
78160
|
+
styles: styles$e,
|
|
78108
78161
|
shadowOptions: {
|
|
78109
78162
|
delegatesFocus: true
|
|
78110
78163
|
}
|
|
@@ -78121,10 +78174,10 @@ focus outline in that case.
|
|
|
78121
78174
|
frameless: 'frameless'
|
|
78122
78175
|
};
|
|
78123
78176
|
|
|
78124
|
-
const styles$
|
|
78177
|
+
const styles$d = css `
|
|
78125
78178
|
${display$2('inline-block')}
|
|
78126
|
-
${styles$
|
|
78127
|
-
${styles$
|
|
78179
|
+
${styles$V}
|
|
78180
|
+
${styles$R}
|
|
78128
78181
|
|
|
78129
78182
|
:host {
|
|
78130
78183
|
font: ${bodyFont};
|
|
@@ -78398,7 +78451,7 @@ focus outline in that case.
|
|
|
78398
78451
|
* The template for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
78399
78452
|
* @public
|
|
78400
78453
|
*/
|
|
78401
|
-
const template$
|
|
78454
|
+
const template$c = (context, definition) => html `
|
|
78402
78455
|
<template
|
|
78403
78456
|
class="
|
|
78404
78457
|
${x => (x.readOnly ? 'readonly' : '')}
|
|
@@ -78483,8 +78536,8 @@ focus outline in that case.
|
|
|
78483
78536
|
const nimbleTextField = TextField.compose({
|
|
78484
78537
|
baseName: 'text-field',
|
|
78485
78538
|
baseClass: TextField$1,
|
|
78486
|
-
template: template$
|
|
78487
|
-
styles: styles$
|
|
78539
|
+
template: template$c,
|
|
78540
|
+
styles: styles$d,
|
|
78488
78541
|
shadowOptions: {
|
|
78489
78542
|
delegatesFocus: true
|
|
78490
78543
|
},
|
|
@@ -78501,7 +78554,7 @@ focus outline in that case.
|
|
|
78501
78554
|
});
|
|
78502
78555
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
|
|
78503
78556
|
|
|
78504
|
-
const styles$
|
|
78557
|
+
const styles$c = css `
|
|
78505
78558
|
${display$2('inline-flex')}
|
|
78506
78559
|
|
|
78507
78560
|
:host {
|
|
@@ -78587,7 +78640,7 @@ focus outline in that case.
|
|
|
78587
78640
|
}
|
|
78588
78641
|
`));
|
|
78589
78642
|
|
|
78590
|
-
const template$
|
|
78643
|
+
const template$b = html `
|
|
78591
78644
|
${when(x => x.tooltipVisible, html `
|
|
78592
78645
|
<${anchoredRegionTag}
|
|
78593
78646
|
class="anchored-region"
|
|
@@ -78639,8 +78692,8 @@ focus outline in that case.
|
|
|
78639
78692
|
const nimbleTooltip = Tooltip.compose({
|
|
78640
78693
|
baseName: 'tooltip',
|
|
78641
78694
|
baseClass: Tooltip$1,
|
|
78642
|
-
template: template$
|
|
78643
|
-
styles: styles$
|
|
78695
|
+
template: template$b,
|
|
78696
|
+
styles: styles$c
|
|
78644
78697
|
});
|
|
78645
78698
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
|
|
78646
78699
|
|
|
@@ -78728,7 +78781,7 @@ focus outline in that case.
|
|
|
78728
78781
|
}
|
|
78729
78782
|
}
|
|
78730
78783
|
|
|
78731
|
-
const styles$
|
|
78784
|
+
const styles$b = css `
|
|
78732
78785
|
${display$2('block')}
|
|
78733
78786
|
|
|
78734
78787
|
:host {
|
|
@@ -78945,12 +78998,12 @@ focus outline in that case.
|
|
|
78945
78998
|
baseName: 'tree-item',
|
|
78946
78999
|
baseClass: TreeItem$1,
|
|
78947
79000
|
template: treeItemTemplate,
|
|
78948
|
-
styles: styles$
|
|
79001
|
+
styles: styles$b,
|
|
78949
79002
|
expandCollapseGlyph: arrowExpanderUp16X16.data
|
|
78950
79003
|
});
|
|
78951
79004
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeItem());
|
|
78952
79005
|
|
|
78953
|
-
const styles$
|
|
79006
|
+
const styles$a = css `
|
|
78954
79007
|
${display$2('flex')}
|
|
78955
79008
|
|
|
78956
79009
|
:host {
|
|
@@ -78964,7 +79017,7 @@ focus outline in that case.
|
|
|
78964
79017
|
}
|
|
78965
79018
|
`;
|
|
78966
79019
|
|
|
78967
|
-
const template$
|
|
79020
|
+
const template$a = html `
|
|
78968
79021
|
<template
|
|
78969
79022
|
role="tree"
|
|
78970
79023
|
${ref('treeView')}
|
|
@@ -79060,8 +79113,8 @@ focus outline in that case.
|
|
|
79060
79113
|
const nimbleTreeView = TreeView.compose({
|
|
79061
79114
|
baseName: 'tree-view',
|
|
79062
79115
|
baseClass: TreeView$1,
|
|
79063
|
-
template: template$
|
|
79064
|
-
styles: styles$
|
|
79116
|
+
template: template$a,
|
|
79117
|
+
styles: styles$a
|
|
79065
79118
|
});
|
|
79066
79119
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
|
|
79067
79120
|
|
|
@@ -79177,9 +79230,9 @@ focus outline in that case.
|
|
|
79177
79230
|
}
|
|
79178
79231
|
const unitScaleByte = new UnitScaleByte();
|
|
79179
79232
|
|
|
79180
|
-
const template$
|
|
79233
|
+
const template$9 = html `<template slot="unit"></template>`;
|
|
79181
79234
|
|
|
79182
|
-
const styles$
|
|
79235
|
+
const styles$9 = css `
|
|
79183
79236
|
${display$2('none')}
|
|
79184
79237
|
`;
|
|
79185
79238
|
|
|
@@ -79207,8 +79260,8 @@ focus outline in that case.
|
|
|
79207
79260
|
], UnitByte.prototype, "binary", void 0);
|
|
79208
79261
|
const nimbleUnitByte = UnitByte.compose({
|
|
79209
79262
|
baseName: 'unit-byte',
|
|
79210
|
-
template: template$
|
|
79211
|
-
styles: styles$
|
|
79263
|
+
template: template$9,
|
|
79264
|
+
styles: styles$9
|
|
79212
79265
|
});
|
|
79213
79266
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
|
|
79214
79267
|
|
|
@@ -79260,8 +79313,8 @@ focus outline in that case.
|
|
|
79260
79313
|
}
|
|
79261
79314
|
const nimbleUnitVolt = UnitVolt.compose({
|
|
79262
79315
|
baseName: 'unit-volt',
|
|
79263
|
-
template: template$
|
|
79264
|
-
styles: styles$
|
|
79316
|
+
template: template$9,
|
|
79317
|
+
styles: styles$9
|
|
79265
79318
|
});
|
|
79266
79319
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
|
|
79267
79320
|
|
|
@@ -93575,7 +93628,7 @@ focus outline in that case.
|
|
|
93575
93628
|
return new Table(reader.readAll());
|
|
93576
93629
|
}
|
|
93577
93630
|
|
|
93578
|
-
const template$
|
|
93631
|
+
const template$8 = html `
|
|
93579
93632
|
<div class="wafer-map-container">
|
|
93580
93633
|
<svg class="svg-root">
|
|
93581
93634
|
<g ${ref('zoomContainer')} transform=${x => x.transform.toString()}>
|
|
@@ -93608,7 +93661,7 @@ focus outline in that case.
|
|
|
93608
93661
|
</div>
|
|
93609
93662
|
`;
|
|
93610
93663
|
|
|
93611
|
-
const styles$
|
|
93664
|
+
const styles$8 = css `
|
|
93612
93665
|
${display$2('inline-block')}
|
|
93613
93666
|
|
|
93614
93667
|
:host {
|
|
@@ -96634,8 +96687,8 @@ focus outline in that case.
|
|
|
96634
96687
|
], WaferMap.prototype, "colorScale", void 0);
|
|
96635
96688
|
const nimbleWaferMap = WaferMap.compose({
|
|
96636
96689
|
baseName: 'wafer-map',
|
|
96637
|
-
template: template$
|
|
96638
|
-
styles: styles$
|
|
96690
|
+
template: template$8,
|
|
96691
|
+
styles: styles$8
|
|
96639
96692
|
});
|
|
96640
96693
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
|
|
96641
96694
|
|
|
@@ -96647,7 +96700,7 @@ focus outline in that case.
|
|
|
96647
96700
|
*/
|
|
96648
96701
|
const display$1 = (displayValue) => `${display$3(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;
|
|
96649
96702
|
|
|
96650
|
-
const styles$
|
|
96703
|
+
const styles$7 = css `
|
|
96651
96704
|
${display$1('flex')}
|
|
96652
96705
|
|
|
96653
96706
|
:host {
|
|
@@ -96687,7 +96740,7 @@ focus outline in that case.
|
|
|
96687
96740
|
}
|
|
96688
96741
|
`;
|
|
96689
96742
|
|
|
96690
|
-
const template$
|
|
96743
|
+
const template$7 = html `
|
|
96691
96744
|
<div class="messages"><slot></slot></div>
|
|
96692
96745
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
96693
96746
|
<slot name="input" ${slotted({ property: 'slottedInputElements' })}>
|
|
@@ -96727,14 +96780,14 @@ focus outline in that case.
|
|
|
96727
96780
|
], ChatConversation.prototype, "slottedInputElements", void 0);
|
|
96728
96781
|
const sprightChatConversation = ChatConversation.compose({
|
|
96729
96782
|
baseName: 'chat-conversation',
|
|
96730
|
-
template: template$
|
|
96731
|
-
styles: styles$
|
|
96783
|
+
template: template$7,
|
|
96784
|
+
styles: styles$7
|
|
96732
96785
|
});
|
|
96733
96786
|
DesignSystem.getOrCreate()
|
|
96734
96787
|
.withPrefix('spright')
|
|
96735
96788
|
.register(sprightChatConversation());
|
|
96736
96789
|
|
|
96737
|
-
const styles$
|
|
96790
|
+
const styles$6 = css `
|
|
96738
96791
|
${display$1('flex')}
|
|
96739
96792
|
|
|
96740
96793
|
:host {
|
|
@@ -96810,7 +96863,7 @@ focus outline in that case.
|
|
|
96810
96863
|
}
|
|
96811
96864
|
`;
|
|
96812
96865
|
|
|
96813
|
-
const template$
|
|
96866
|
+
const template$6 = html `
|
|
96814
96867
|
<div class="container">
|
|
96815
96868
|
<textarea
|
|
96816
96869
|
${ref('textArea')}
|
|
@@ -96926,8 +96979,8 @@ focus outline in that case.
|
|
|
96926
96979
|
], ChatInput.prototype, "disableSendButton", void 0);
|
|
96927
96980
|
const sprightChatInput = ChatInput.compose({
|
|
96928
96981
|
baseName: 'chat-input',
|
|
96929
|
-
template: template$
|
|
96930
|
-
styles: styles$
|
|
96982
|
+
template: template$6,
|
|
96983
|
+
styles: styles$6,
|
|
96931
96984
|
shadowOptions: {
|
|
96932
96985
|
delegatesFocus: true
|
|
96933
96986
|
}
|
|
@@ -96937,6 +96990,7 @@ focus outline in that case.
|
|
|
96937
96990
|
/**
|
|
96938
96991
|
* A message type in a chat conversation.
|
|
96939
96992
|
* @public
|
|
96993
|
+
* @deprecated Use specific message component types instead
|
|
96940
96994
|
*/
|
|
96941
96995
|
const ChatMessageType = {
|
|
96942
96996
|
system: undefined,
|
|
@@ -96944,12 +96998,12 @@ focus outline in that case.
|
|
|
96944
96998
|
inbound: 'inbound'
|
|
96945
96999
|
};
|
|
96946
97000
|
|
|
96947
|
-
const styles$
|
|
97001
|
+
const styles$5 = css `
|
|
96948
97002
|
${display$1('flex')}
|
|
96949
97003
|
|
|
96950
97004
|
:host {
|
|
96951
|
-
min-width:
|
|
96952
|
-
min-height:
|
|
97005
|
+
min-width: ${standardPadding};
|
|
97006
|
+
min-height: ${standardPadding};
|
|
96953
97007
|
|
|
96954
97008
|
flex-direction: row;
|
|
96955
97009
|
justify-content: center;
|
|
@@ -97018,7 +97072,7 @@ focus outline in that case.
|
|
|
97018
97072
|
}
|
|
97019
97073
|
`;
|
|
97020
97074
|
|
|
97021
|
-
const template$
|
|
97075
|
+
const template$5 = (context, definition) => html `
|
|
97022
97076
|
<div class="container">
|
|
97023
97077
|
${startSlotTemplate(context, definition)}
|
|
97024
97078
|
<section class="message-content">
|
|
@@ -97036,6 +97090,7 @@ focus outline in that case.
|
|
|
97036
97090
|
|
|
97037
97091
|
/**
|
|
97038
97092
|
* A Spright component for displaying a chat message
|
|
97093
|
+
* @deprecated Use specific message component types instead
|
|
97039
97094
|
*/
|
|
97040
97095
|
class ChatMessage extends FoundationElement {
|
|
97041
97096
|
constructor() {
|
|
@@ -97066,10 +97121,212 @@ focus outline in that case.
|
|
|
97066
97121
|
applyMixins(ChatMessage, StartEnd);
|
|
97067
97122
|
const sprightChatMessage = ChatMessage.compose({
|
|
97068
97123
|
baseName: 'chat-message',
|
|
97124
|
+
template: template$5,
|
|
97125
|
+
styles: styles$5
|
|
97126
|
+
});
|
|
97127
|
+
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
|
|
97128
|
+
|
|
97129
|
+
const styles$4 = css `
|
|
97130
|
+
${display$1('flex')}
|
|
97131
|
+
|
|
97132
|
+
:host {
|
|
97133
|
+
min-width: ${standardPadding};
|
|
97134
|
+
min-height: ${standardPadding};
|
|
97135
|
+
|
|
97136
|
+
flex-direction: row;
|
|
97137
|
+
justify-content: flex-start;
|
|
97138
|
+
flex-shrink: 0;
|
|
97139
|
+
font: ${bodyFont};
|
|
97140
|
+
color: ${bodyFontColor};
|
|
97141
|
+
}
|
|
97142
|
+
|
|
97143
|
+
.container {
|
|
97144
|
+
display: flex;
|
|
97145
|
+
flex-direction: column;
|
|
97146
|
+
max-width: calc(90%);
|
|
97147
|
+
}
|
|
97148
|
+
|
|
97149
|
+
[part='start'] {
|
|
97150
|
+
display: none;
|
|
97151
|
+
}
|
|
97152
|
+
|
|
97153
|
+
.message-content {
|
|
97154
|
+
width: fit-content;
|
|
97155
|
+
height: fit-content;
|
|
97156
|
+
overflow-x: auto;
|
|
97157
|
+
}
|
|
97158
|
+
|
|
97159
|
+
.footer-actions {
|
|
97160
|
+
display: none;
|
|
97161
|
+
}
|
|
97162
|
+
|
|
97163
|
+
:host .footer-actions.has-content {
|
|
97164
|
+
display: flex;
|
|
97165
|
+
column-gap: ${standardPadding};
|
|
97166
|
+
margin-top: ${mediumPadding};
|
|
97167
|
+
}
|
|
97168
|
+
|
|
97169
|
+
.footer-actions ::slotted(${buttonTag}),
|
|
97170
|
+
.footer-actions ::slotted(${toggleButtonTag}),
|
|
97171
|
+
.footer-actions ::slotted(${anchorButtonTag}),
|
|
97172
|
+
.footer-actions ::slotted(${menuButtonTag}) {
|
|
97173
|
+
height: ${controlSlimHeight};
|
|
97174
|
+
}
|
|
97175
|
+
|
|
97176
|
+
.end {
|
|
97177
|
+
display: none;
|
|
97178
|
+
}
|
|
97179
|
+
|
|
97180
|
+
:host .end {
|
|
97181
|
+
display: flex;
|
|
97182
|
+
column-gap: ${standardPadding};
|
|
97183
|
+
margin-top: ${largePadding};
|
|
97184
|
+
}
|
|
97185
|
+
`;
|
|
97186
|
+
|
|
97187
|
+
const template$4 = (context, definition) => html `
|
|
97188
|
+
<div class="container">
|
|
97189
|
+
${startSlotTemplate(context, definition)}
|
|
97190
|
+
<section class="message-content">
|
|
97191
|
+
<slot></slot>
|
|
97192
|
+
</section>
|
|
97193
|
+
<section class="footer-actions ${x => (x.footerActionsIsEmpty ? '' : 'has-content')}">
|
|
97194
|
+
<slot
|
|
97195
|
+
name="footer-actions"
|
|
97196
|
+
${slotted({ property: 'slottedFooterActionsElements' })}
|
|
97197
|
+
></slot>
|
|
97198
|
+
</section>
|
|
97199
|
+
${endSlotTemplate(context, definition)}
|
|
97200
|
+
</div>
|
|
97201
|
+
`;
|
|
97202
|
+
|
|
97203
|
+
/**
|
|
97204
|
+
* A Spright component for displaying a chat message
|
|
97205
|
+
*/
|
|
97206
|
+
class ChatMessageInbound extends FoundationElement {
|
|
97207
|
+
constructor() {
|
|
97208
|
+
super(...arguments);
|
|
97209
|
+
/** @internal */
|
|
97210
|
+
this.footerActionsIsEmpty = true;
|
|
97211
|
+
}
|
|
97212
|
+
slottedFooterActionsElementsChanged(_prev, next) {
|
|
97213
|
+
this.footerActionsIsEmpty = !next?.length;
|
|
97214
|
+
}
|
|
97215
|
+
}
|
|
97216
|
+
__decorate([
|
|
97217
|
+
observable
|
|
97218
|
+
], ChatMessageInbound.prototype, "footerActionsIsEmpty", void 0);
|
|
97219
|
+
__decorate([
|
|
97220
|
+
observable
|
|
97221
|
+
], ChatMessageInbound.prototype, "slottedFooterActionsElements", void 0);
|
|
97222
|
+
applyMixins(ChatMessageInbound, StartEnd);
|
|
97223
|
+
const sprightChatMessageInbound = ChatMessageInbound.compose({
|
|
97224
|
+
baseName: 'chat-message-inbound',
|
|
97225
|
+
template: template$4,
|
|
97226
|
+
styles: styles$4
|
|
97227
|
+
});
|
|
97228
|
+
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
|
|
97229
|
+
|
|
97230
|
+
const styles$3 = css `
|
|
97231
|
+
${display$1('flex')}
|
|
97232
|
+
|
|
97233
|
+
:host {
|
|
97234
|
+
min-width: ${standardPadding};
|
|
97235
|
+
min-height: ${standardPadding};
|
|
97236
|
+
|
|
97237
|
+
flex-direction: row;
|
|
97238
|
+
justify-content: flex-end;
|
|
97239
|
+
flex-shrink: 0;
|
|
97240
|
+
font: ${bodyFont};
|
|
97241
|
+
color: ${bodyFontColor};
|
|
97242
|
+
}
|
|
97243
|
+
|
|
97244
|
+
.container {
|
|
97245
|
+
display: flex;
|
|
97246
|
+
flex-direction: column;
|
|
97247
|
+
max-width: calc(90%);
|
|
97248
|
+
}
|
|
97249
|
+
|
|
97250
|
+
.message-content {
|
|
97251
|
+
width: fit-content;
|
|
97252
|
+
height: fit-content;
|
|
97253
|
+
overflow-x: auto;
|
|
97254
|
+
}
|
|
97255
|
+
|
|
97256
|
+
:host .message-content {
|
|
97257
|
+
background: ${fillSelectedColor};
|
|
97258
|
+
border: ${borderWidth} solid ${borderHoverColor};
|
|
97259
|
+
border-radius: ${mediumPadding} ${mediumPadding} 0px ${mediumPadding};
|
|
97260
|
+
padding: ${mediumPadding};
|
|
97261
|
+
}
|
|
97262
|
+
`;
|
|
97263
|
+
|
|
97264
|
+
const template$3 = () => html `
|
|
97265
|
+
<div class="container">
|
|
97266
|
+
<section class="message-content">
|
|
97267
|
+
<slot></slot>
|
|
97268
|
+
</section>
|
|
97269
|
+
</div>
|
|
97270
|
+
`;
|
|
97271
|
+
|
|
97272
|
+
/**
|
|
97273
|
+
* A Spright component for displaying an outbound chat message
|
|
97274
|
+
*/
|
|
97275
|
+
class ChatMessageOutbound extends FoundationElement {
|
|
97276
|
+
}
|
|
97277
|
+
const sprightChatMessageOutbound = ChatMessageOutbound.compose({
|
|
97278
|
+
baseName: 'chat-message-outbound',
|
|
97279
|
+
template: template$3,
|
|
97280
|
+
styles: styles$3
|
|
97281
|
+
});
|
|
97282
|
+
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageOutbound());
|
|
97283
|
+
|
|
97284
|
+
const styles$2 = css `
|
|
97285
|
+
${display$1('flex')}
|
|
97286
|
+
|
|
97287
|
+
:host {
|
|
97288
|
+
min-width: ${standardPadding};
|
|
97289
|
+
min-height: ${standardPadding};
|
|
97290
|
+
|
|
97291
|
+
flex-direction: row;
|
|
97292
|
+
justify-content: center;
|
|
97293
|
+
flex-shrink: 0;
|
|
97294
|
+
font: ${bodyFont};
|
|
97295
|
+
color: ${bodyFontColor};
|
|
97296
|
+
}
|
|
97297
|
+
|
|
97298
|
+
.container {
|
|
97299
|
+
display: flex;
|
|
97300
|
+
flex-direction: column;
|
|
97301
|
+
max-width: calc(90%);
|
|
97302
|
+
}
|
|
97303
|
+
|
|
97304
|
+
.message-content {
|
|
97305
|
+
width: fit-content;
|
|
97306
|
+
height: fit-content;
|
|
97307
|
+
overflow-x: auto;
|
|
97308
|
+
}
|
|
97309
|
+
`;
|
|
97310
|
+
|
|
97311
|
+
const template$2 = () => html `
|
|
97312
|
+
<div class="container">
|
|
97313
|
+
<section class="message-content">
|
|
97314
|
+
<slot></slot>
|
|
97315
|
+
</section>
|
|
97316
|
+
</div>
|
|
97317
|
+
`;
|
|
97318
|
+
|
|
97319
|
+
/**
|
|
97320
|
+
* A Spright component for displaying an system chat message
|
|
97321
|
+
*/
|
|
97322
|
+
class ChatMessageSystem extends FoundationElement {
|
|
97323
|
+
}
|
|
97324
|
+
const sprightChatMessageSystem = ChatMessageSystem.compose({
|
|
97325
|
+
baseName: 'chat-message-system',
|
|
97069
97326
|
template: template$2,
|
|
97070
97327
|
styles: styles$2
|
|
97071
97328
|
});
|
|
97072
|
-
DesignSystem.getOrCreate().withPrefix('spright').register(
|
|
97329
|
+
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
|
|
97073
97330
|
|
|
97074
97331
|
const styles$1 = css `
|
|
97075
97332
|
${display$1('inline-block')}
|