@ni/spright-components 6.15.7 → 6.15.9
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.
|
@@ -14898,9 +14898,9 @@
|
|
|
14898
14898
|
const prefix = 'ni-nimble';
|
|
14899
14899
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
14900
14900
|
|
|
14901
|
-
const template$
|
|
14901
|
+
const template$Z = html `<slot></slot>`;
|
|
14902
14902
|
|
|
14903
|
-
const styles$
|
|
14903
|
+
const styles$1k = css `
|
|
14904
14904
|
${display$1('contents')}
|
|
14905
14905
|
`;
|
|
14906
14906
|
|
|
@@ -15015,8 +15015,8 @@
|
|
|
15015
15015
|
], ThemeProvider.prototype, "theme", void 0);
|
|
15016
15016
|
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
15017
15017
|
baseName: 'theme-provider',
|
|
15018
|
-
styles: styles$
|
|
15019
|
-
template: template$
|
|
15018
|
+
styles: styles$1k,
|
|
15019
|
+
template: template$Z
|
|
15020
15020
|
});
|
|
15021
15021
|
DesignSystem.getOrCreate()
|
|
15022
15022
|
.withPrefix('nimble')
|
|
@@ -16658,7 +16658,7 @@
|
|
|
16658
16658
|
}
|
|
16659
16659
|
// #endregion
|
|
16660
16660
|
|
|
16661
|
-
const styles$
|
|
16661
|
+
const styles$1j = css `
|
|
16662
16662
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
16663
16663
|
|
|
16664
16664
|
@layer base {
|
|
@@ -16736,7 +16736,7 @@
|
|
|
16736
16736
|
}
|
|
16737
16737
|
`;
|
|
16738
16738
|
|
|
16739
|
-
const template$
|
|
16739
|
+
const template$Y = (_context, definition) => html `${
|
|
16740
16740
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16741
16741
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
16742
16742
|
*/ ''}<div
|
|
@@ -16839,8 +16839,8 @@
|
|
|
16839
16839
|
const nimbleAnchor = Anchor.compose({
|
|
16840
16840
|
baseName: 'anchor',
|
|
16841
16841
|
baseClass: Anchor$1,
|
|
16842
|
-
template: template$
|
|
16843
|
-
styles: styles$
|
|
16842
|
+
template: template$Y,
|
|
16843
|
+
styles: styles$1j,
|
|
16844
16844
|
shadowOptions: {
|
|
16845
16845
|
delegatesFocus: true
|
|
16846
16846
|
}
|
|
@@ -16949,7 +16949,7 @@
|
|
|
16949
16949
|
padding: 0;
|
|
16950
16950
|
`;
|
|
16951
16951
|
|
|
16952
|
-
const styles$
|
|
16952
|
+
const styles$1i = css `
|
|
16953
16953
|
@layer base, checked, hover, focusVisible, active, disabled, top;
|
|
16954
16954
|
|
|
16955
16955
|
@layer base {
|
|
@@ -17233,8 +17233,8 @@
|
|
|
17233
17233
|
}
|
|
17234
17234
|
`));
|
|
17235
17235
|
|
|
17236
|
-
const styles$
|
|
17237
|
-
${styles$
|
|
17236
|
+
const styles$1h = css `
|
|
17237
|
+
${styles$1i}
|
|
17238
17238
|
${buttonAppearanceVariantStyles}
|
|
17239
17239
|
|
|
17240
17240
|
.control {
|
|
@@ -17254,7 +17254,7 @@
|
|
|
17254
17254
|
}
|
|
17255
17255
|
`;
|
|
17256
17256
|
|
|
17257
|
-
const template$
|
|
17257
|
+
const template$X = (context, definition) => html `
|
|
17258
17258
|
<a
|
|
17259
17259
|
class="control"
|
|
17260
17260
|
part="control"
|
|
@@ -17336,8 +17336,8 @@
|
|
|
17336
17336
|
], AnchorButton.prototype, "disabled", void 0);
|
|
17337
17337
|
const nimbleAnchorButton = AnchorButton.compose({
|
|
17338
17338
|
baseName: 'anchor-button',
|
|
17339
|
-
template: template$
|
|
17340
|
-
styles: styles$
|
|
17339
|
+
template: template$X,
|
|
17340
|
+
styles: styles$1h,
|
|
17341
17341
|
shadowOptions: {
|
|
17342
17342
|
delegatesFocus: true
|
|
17343
17343
|
}
|
|
@@ -17345,7 +17345,7 @@
|
|
|
17345
17345
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
|
|
17346
17346
|
const anchorButtonTag = 'nimble-anchor-button';
|
|
17347
17347
|
|
|
17348
|
-
const styles$
|
|
17348
|
+
const styles$1g = css `
|
|
17349
17349
|
${display$1('grid')}
|
|
17350
17350
|
|
|
17351
17351
|
:host {
|
|
@@ -17428,7 +17428,7 @@
|
|
|
17428
17428
|
}
|
|
17429
17429
|
`;
|
|
17430
17430
|
|
|
17431
|
-
const template$
|
|
17431
|
+
const template$W = (context, definition) => html `
|
|
17432
17432
|
<template
|
|
17433
17433
|
role="menuitem"
|
|
17434
17434
|
class="${x => (typeof x.startColumnCount === 'number'
|
|
@@ -17529,8 +17529,8 @@
|
|
|
17529
17529
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17530
17530
|
const nimbleAnchorMenuItem = AnchorMenuItem.compose({
|
|
17531
17531
|
baseName: 'anchor-menu-item',
|
|
17532
|
-
template: template$
|
|
17533
|
-
styles: styles$
|
|
17532
|
+
template: template$W,
|
|
17533
|
+
styles: styles$1g,
|
|
17534
17534
|
shadowOptions: {
|
|
17535
17535
|
delegatesFocus: true
|
|
17536
17536
|
}
|
|
@@ -17542,7 +17542,7 @@
|
|
|
17542
17542
|
|
|
17543
17543
|
// These styles end up inside a @layer block so must use the
|
|
17544
17544
|
// cssPartial tag instead of the css tag
|
|
17545
|
-
const styles$
|
|
17545
|
+
const styles$1f = cssPartial `
|
|
17546
17546
|
.severity-text {
|
|
17547
17547
|
display: none;
|
|
17548
17548
|
font: ${errorTextFont};
|
|
@@ -17652,12 +17652,12 @@
|
|
|
17652
17652
|
const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
|
|
17653
17653
|
/* eslint-enable max-classes-per-file */
|
|
17654
17654
|
|
|
17655
|
-
const styles$
|
|
17655
|
+
const styles$1e = css `
|
|
17656
17656
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
17657
17657
|
|
|
17658
17658
|
@layer base {
|
|
17659
17659
|
${display$1('inline-flex')}
|
|
17660
|
-
${styles$
|
|
17660
|
+
${styles$1f}
|
|
17661
17661
|
:host {
|
|
17662
17662
|
color: ${buttonLabelFontColor};
|
|
17663
17663
|
font: ${buttonLabelFont};
|
|
@@ -18203,8 +18203,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18203
18203
|
}
|
|
18204
18204
|
`));
|
|
18205
18205
|
|
|
18206
|
-
const styles$
|
|
18207
|
-
${styles$
|
|
18206
|
+
const styles$1d = css `
|
|
18207
|
+
${styles$1e}
|
|
18208
18208
|
${'' /* Anchor specific styles */}
|
|
18209
18209
|
@layer base {
|
|
18210
18210
|
.control {
|
|
@@ -19247,13 +19247,13 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19247
19247
|
};
|
|
19248
19248
|
|
|
19249
19249
|
// Avoiding any whitespace in the template because this is an inline element
|
|
19250
|
-
const template$
|
|
19250
|
+
const template$V = html `<div
|
|
19251
19251
|
class="icon"
|
|
19252
19252
|
aria-hidden="true"
|
|
19253
19253
|
:innerHTML=${x => x.icon.data}
|
|
19254
19254
|
></div>`;
|
|
19255
19255
|
|
|
19256
|
-
const styles$
|
|
19256
|
+
const styles$1c = css `
|
|
19257
19257
|
${display$1('inline-flex')}
|
|
19258
19258
|
|
|
19259
19259
|
:host {
|
|
@@ -19316,8 +19316,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19316
19316
|
const registerIconSvg = (baseName, iconClass) => {
|
|
19317
19317
|
const composedIcon = iconClass.compose({
|
|
19318
19318
|
baseName,
|
|
19319
|
-
template: template$
|
|
19320
|
-
styles: styles$
|
|
19319
|
+
template: template$V,
|
|
19320
|
+
styles: styles$1c
|
|
19321
19321
|
});
|
|
19322
19322
|
DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
|
|
19323
19323
|
};
|
|
@@ -19441,7 +19441,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19441
19441
|
*/
|
|
19442
19442
|
const StepperOrientation = Orientation;
|
|
19443
19443
|
|
|
19444
|
-
const template$
|
|
19444
|
+
const template$U = (context, definition) => html `
|
|
19445
19445
|
<template slot="step">
|
|
19446
19446
|
<li class="
|
|
19447
19447
|
container
|
|
@@ -19565,9 +19565,10 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19565
19565
|
*/
|
|
19566
19566
|
onClick(e) {
|
|
19567
19567
|
if (this.disabled || this.readOnly) {
|
|
19568
|
-
e.preventDefault();
|
|
19569
19568
|
e.stopImmediatePropagation();
|
|
19569
|
+
return false; /* Do prevent default */
|
|
19570
19570
|
}
|
|
19571
|
+
return true; /* Do not prevent default */
|
|
19571
19572
|
}
|
|
19572
19573
|
}
|
|
19573
19574
|
__decorate([
|
|
@@ -19587,15 +19588,15 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19587
19588
|
], AnchorStep.prototype, "tabIndex", void 0);
|
|
19588
19589
|
const nimbleAnchorStep = AnchorStep.compose({
|
|
19589
19590
|
baseName: 'anchor-step',
|
|
19590
|
-
template: template$
|
|
19591
|
-
styles: styles$
|
|
19591
|
+
template: template$U,
|
|
19592
|
+
styles: styles$1d,
|
|
19592
19593
|
shadowOptions: {
|
|
19593
19594
|
delegatesFocus: true
|
|
19594
19595
|
}
|
|
19595
19596
|
});
|
|
19596
19597
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorStep());
|
|
19597
19598
|
|
|
19598
|
-
const styles$
|
|
19599
|
+
const styles$1b = css `
|
|
19599
19600
|
${display$1('inline-flex')}
|
|
19600
19601
|
|
|
19601
19602
|
:host {
|
|
@@ -19712,7 +19713,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19712
19713
|
}
|
|
19713
19714
|
`;
|
|
19714
19715
|
|
|
19715
|
-
const template$
|
|
19716
|
+
const template$T = (context, definition) => html `
|
|
19716
19717
|
<template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
|
|
19717
19718
|
<a
|
|
19718
19719
|
download="${x => x.download}"
|
|
@@ -19764,15 +19765,15 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19764
19765
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
19765
19766
|
const nimbleAnchorTab = AnchorTab.compose({
|
|
19766
19767
|
baseName: 'anchor-tab',
|
|
19767
|
-
template: template$
|
|
19768
|
-
styles: styles$
|
|
19768
|
+
template: template$T,
|
|
19769
|
+
styles: styles$1b,
|
|
19769
19770
|
shadowOptions: {
|
|
19770
19771
|
delegatesFocus: true
|
|
19771
19772
|
}
|
|
19772
19773
|
});
|
|
19773
19774
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
|
|
19774
19775
|
|
|
19775
|
-
const styles$
|
|
19776
|
+
const styles$1a = css `
|
|
19776
19777
|
${display$1('flex')}
|
|
19777
19778
|
|
|
19778
19779
|
:host {
|
|
@@ -19812,12 +19813,12 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19812
19813
|
}
|
|
19813
19814
|
`;
|
|
19814
19815
|
|
|
19815
|
-
const styles$
|
|
19816
|
-
${styles$
|
|
19816
|
+
const styles$19 = css `
|
|
19817
|
+
${styles$1i}
|
|
19817
19818
|
${buttonAppearanceVariantStyles}
|
|
19818
19819
|
`;
|
|
19819
19820
|
|
|
19820
|
-
const template$
|
|
19821
|
+
const template$S = (context, definition) => html `
|
|
19821
19822
|
<button
|
|
19822
19823
|
class="control"
|
|
19823
19824
|
part="control"
|
|
@@ -19908,8 +19909,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19908
19909
|
const nimbleButton = Button.compose({
|
|
19909
19910
|
baseName: 'button',
|
|
19910
19911
|
baseClass: Button$1,
|
|
19911
|
-
template: template$
|
|
19912
|
-
styles: styles$
|
|
19912
|
+
template: template$S,
|
|
19913
|
+
styles: styles$19,
|
|
19913
19914
|
shadowOptions: {
|
|
19914
19915
|
delegatesFocus: true
|
|
19915
19916
|
}
|
|
@@ -19943,7 +19944,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
19943
19944
|
registerIconSvg('icon-arrow-expander-right', IconArrowExpanderRight);
|
|
19944
19945
|
const iconArrowExpanderRightTag = 'nimble-icon-arrow-expander-right';
|
|
19945
19946
|
|
|
19946
|
-
const template$
|
|
19947
|
+
const template$R = (context, definition) => html `
|
|
19947
19948
|
<div
|
|
19948
19949
|
class="tab-bar"
|
|
19949
19950
|
>
|
|
@@ -20244,15 +20245,15 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20244
20245
|
applyMixins(AnchorTabs, StartEnd);
|
|
20245
20246
|
const nimbleAnchorTabs = AnchorTabs.compose({
|
|
20246
20247
|
baseName: 'anchor-tabs',
|
|
20247
|
-
template: template$
|
|
20248
|
-
styles: styles$
|
|
20248
|
+
template: template$R,
|
|
20249
|
+
styles: styles$1a,
|
|
20249
20250
|
shadowOptions: {
|
|
20250
20251
|
delegatesFocus: false
|
|
20251
20252
|
}
|
|
20252
20253
|
});
|
|
20253
20254
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
|
|
20254
20255
|
|
|
20255
|
-
const styles$
|
|
20256
|
+
const styles$18 = css `
|
|
20256
20257
|
${display$1('block')}
|
|
20257
20258
|
|
|
20258
20259
|
:host {
|
|
@@ -20357,7 +20358,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20357
20358
|
}
|
|
20358
20359
|
`;
|
|
20359
20360
|
|
|
20360
|
-
const template$
|
|
20361
|
+
const template$Q = (context, definition) => html `
|
|
20361
20362
|
<template
|
|
20362
20363
|
role="treeitem"
|
|
20363
20364
|
slot="${x => (x.isNestedItem() ? 'item' : null)}"
|
|
@@ -20494,8 +20495,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20494
20495
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
20495
20496
|
const nimbleAnchorTreeItem = AnchorTreeItem.compose({
|
|
20496
20497
|
baseName: 'anchor-tree-item',
|
|
20497
|
-
template: template$
|
|
20498
|
-
styles: styles$
|
|
20498
|
+
template: template$Q,
|
|
20499
|
+
styles: styles$18,
|
|
20499
20500
|
shadowOptions: {
|
|
20500
20501
|
delegatesFocus: true
|
|
20501
20502
|
}
|
|
@@ -20511,7 +20512,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20511
20512
|
zIndex1000: '1000'
|
|
20512
20513
|
};
|
|
20513
20514
|
|
|
20514
|
-
const styles$
|
|
20515
|
+
const styles$17 = css `
|
|
20515
20516
|
${display$1('block')}
|
|
20516
20517
|
|
|
20517
20518
|
:host {
|
|
@@ -20542,14 +20543,14 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20542
20543
|
baseName: 'anchored-region',
|
|
20543
20544
|
baseClass: AnchoredRegion$1,
|
|
20544
20545
|
template: anchoredRegionTemplate,
|
|
20545
|
-
styles: styles$
|
|
20546
|
+
styles: styles$17
|
|
20546
20547
|
});
|
|
20547
20548
|
DesignSystem.getOrCreate()
|
|
20548
20549
|
.withPrefix('nimble')
|
|
20549
20550
|
.register(nimbleAnchoredRegion());
|
|
20550
20551
|
const anchoredRegionTag = 'nimble-anchored-region';
|
|
20551
20552
|
|
|
20552
|
-
const styles$
|
|
20553
|
+
const styles$16 = css `
|
|
20553
20554
|
${display$1('flex')}
|
|
20554
20555
|
|
|
20555
20556
|
:host {
|
|
@@ -20701,7 +20702,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20701
20702
|
information: 'information'
|
|
20702
20703
|
};
|
|
20703
20704
|
|
|
20704
|
-
const template$
|
|
20705
|
+
const template$P = html `
|
|
20705
20706
|
<${themeProviderTag} theme="${Theme.color}">
|
|
20706
20707
|
<div class="container"
|
|
20707
20708
|
role="status"
|
|
@@ -20819,8 +20820,8 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20819
20820
|
applyMixins(Banner, ARIAGlobalStatesAndProperties);
|
|
20820
20821
|
const nimbleBanner = Banner.compose({
|
|
20821
20822
|
baseName: 'banner',
|
|
20822
|
-
template: template$
|
|
20823
|
-
styles: styles$
|
|
20823
|
+
template: template$P,
|
|
20824
|
+
styles: styles$16
|
|
20824
20825
|
});
|
|
20825
20826
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
|
|
20826
20827
|
|
|
@@ -20861,7 +20862,7 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20861
20862
|
</template>
|
|
20862
20863
|
`;
|
|
20863
20864
|
|
|
20864
|
-
const styles$
|
|
20865
|
+
const styles$15 = css `
|
|
20865
20866
|
${display$1('inline-flex')}
|
|
20866
20867
|
|
|
20867
20868
|
:host {
|
|
@@ -20965,11 +20966,11 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
20965
20966
|
baseName: 'breadcrumb',
|
|
20966
20967
|
baseClass: Breadcrumb$1,
|
|
20967
20968
|
template: breadcrumbTemplate,
|
|
20968
|
-
styles: styles$
|
|
20969
|
+
styles: styles$15
|
|
20969
20970
|
});
|
|
20970
20971
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
|
|
20971
20972
|
|
|
20972
|
-
const styles$
|
|
20973
|
+
const styles$14 = css `
|
|
20973
20974
|
@layer base, hover, focusVisible, active, disabled, top;
|
|
20974
20975
|
|
|
20975
20976
|
@layer base {
|
|
@@ -21066,14 +21067,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21066
21067
|
baseName: 'breadcrumb-item',
|
|
21067
21068
|
baseClass: BreadcrumbItem$1,
|
|
21068
21069
|
template: breadcrumbItemTemplate,
|
|
21069
|
-
styles: styles$
|
|
21070
|
+
styles: styles$14,
|
|
21070
21071
|
separator: forwardSlash16X16.data
|
|
21071
21072
|
});
|
|
21072
21073
|
DesignSystem.getOrCreate()
|
|
21073
21074
|
.withPrefix('nimble')
|
|
21074
21075
|
.register(nimbleBreadcrumbItem());
|
|
21075
21076
|
|
|
21076
|
-
const styles$
|
|
21077
|
+
const styles$13 = css `
|
|
21077
21078
|
${display$1('flex')}
|
|
21078
21079
|
|
|
21079
21080
|
:host {
|
|
@@ -21097,7 +21098,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21097
21098
|
}
|
|
21098
21099
|
`;
|
|
21099
21100
|
|
|
21100
|
-
const template$
|
|
21101
|
+
const template$O = html `
|
|
21101
21102
|
<section aria-labelledby="title-slot">
|
|
21102
21103
|
<span id="title-slot"><slot name="title"></slot></span>
|
|
21103
21104
|
<slot></slot>
|
|
@@ -21112,12 +21113,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21112
21113
|
const nimbleCard = Card.compose({
|
|
21113
21114
|
baseName: 'card',
|
|
21114
21115
|
baseClass: Card$1,
|
|
21115
|
-
template: template$
|
|
21116
|
-
styles: styles$
|
|
21116
|
+
template: template$O,
|
|
21117
|
+
styles: styles$13
|
|
21117
21118
|
});
|
|
21118
21119
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
|
|
21119
21120
|
|
|
21120
|
-
const styles$
|
|
21121
|
+
const styles$12 = css `
|
|
21121
21122
|
${display$1('inline-flex')}
|
|
21122
21123
|
|
|
21123
21124
|
:host {
|
|
@@ -21275,14 +21276,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21275
21276
|
const nimbleCardButton = CardButton.compose({
|
|
21276
21277
|
baseName: 'card-button',
|
|
21277
21278
|
template: buttonTemplate,
|
|
21278
|
-
styles: styles$
|
|
21279
|
+
styles: styles$12,
|
|
21279
21280
|
shadowOptions: {
|
|
21280
21281
|
delegatesFocus: true
|
|
21281
21282
|
}
|
|
21282
21283
|
});
|
|
21283
21284
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
|
|
21284
21285
|
|
|
21285
|
-
const styles$
|
|
21286
|
+
const styles$11 = css `
|
|
21286
21287
|
.error-icon {
|
|
21287
21288
|
display: none;
|
|
21288
21289
|
}
|
|
@@ -21316,9 +21317,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21316
21317
|
}
|
|
21317
21318
|
`;
|
|
21318
21319
|
|
|
21319
|
-
const styles
|
|
21320
|
+
const styles$10 = css `
|
|
21320
21321
|
${display$1('inline-grid')}
|
|
21321
|
-
${styles$
|
|
21322
|
+
${styles$11}
|
|
21322
21323
|
|
|
21323
21324
|
:host {
|
|
21324
21325
|
font: ${bodyFont};
|
|
@@ -21457,7 +21458,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21457
21458
|
</div>
|
|
21458
21459
|
`;
|
|
21459
21460
|
|
|
21460
|
-
const template$
|
|
21461
|
+
const template$N = (_context, definition) => html `
|
|
21461
21462
|
<template
|
|
21462
21463
|
role="checkbox"
|
|
21463
21464
|
aria-checked="${x => x.checked}"
|
|
@@ -21542,16 +21543,176 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21542
21543
|
const nimbleCheckbox = Checkbox.compose({
|
|
21543
21544
|
baseName: 'checkbox',
|
|
21544
21545
|
baseClass: Checkbox$1,
|
|
21545
|
-
template: template$
|
|
21546
|
-
styles: styles
|
|
21546
|
+
template: template$N,
|
|
21547
|
+
styles: styles$10,
|
|
21547
21548
|
checkedIndicator: check16X16.data,
|
|
21548
21549
|
indeterminateIndicator: minus16X16.data
|
|
21549
21550
|
});
|
|
21550
21551
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
21551
21552
|
const checkboxTag = 'nimble-checkbox';
|
|
21552
21553
|
|
|
21554
|
+
const ChipAppearance = {
|
|
21555
|
+
outline: 'outline',
|
|
21556
|
+
block: 'block'
|
|
21557
|
+
};
|
|
21558
|
+
|
|
21559
|
+
const styles$$ = css `
|
|
21560
|
+
${display$1('inline-flex')}
|
|
21561
|
+
|
|
21562
|
+
:host {
|
|
21563
|
+
height: ${controlHeight};
|
|
21564
|
+
width: fit-content;
|
|
21565
|
+
max-width: 300px;
|
|
21566
|
+
color: ${bodyFontColor};
|
|
21567
|
+
font: ${bodyFont};
|
|
21568
|
+
padding: 0 ${mediumPadding};
|
|
21569
|
+
gap: 4px;
|
|
21570
|
+
background-color: transparent;
|
|
21571
|
+
border: ${borderWidth} solid rgba(${actionRgbPartialColor}, 0.3);
|
|
21572
|
+
border-radius: 4px;
|
|
21573
|
+
justify-content: center;
|
|
21574
|
+
align-items: center;
|
|
21575
|
+
}
|
|
21576
|
+
|
|
21577
|
+
:host([disabled]) {
|
|
21578
|
+
cursor: default;
|
|
21579
|
+
color: ${bodyDisabledFontColor};
|
|
21580
|
+
border-color: rgba(${borderRgbPartialColor}, 0.3);
|
|
21581
|
+
}
|
|
21582
|
+
|
|
21583
|
+
:host([disabled]) slot[name='start']::slotted(*) {
|
|
21584
|
+
opacity: 0.3;
|
|
21585
|
+
${iconColor.cssCustomProperty}: ${bodyFontColor};
|
|
21586
|
+
}
|
|
21587
|
+
|
|
21588
|
+
slot[name='start']::slotted(*) {
|
|
21589
|
+
flex-shrink: 0;
|
|
21590
|
+
}
|
|
21591
|
+
|
|
21592
|
+
[part='start'] {
|
|
21593
|
+
display: contents;
|
|
21594
|
+
${iconColor.cssCustomProperty}: ${bodyFontColor};
|
|
21595
|
+
}
|
|
21596
|
+
|
|
21597
|
+
.content {
|
|
21598
|
+
text-overflow: ellipsis;
|
|
21599
|
+
overflow: hidden;
|
|
21600
|
+
white-space: nowrap;
|
|
21601
|
+
}
|
|
21602
|
+
|
|
21603
|
+
.remove-button {
|
|
21604
|
+
height: ${iconSize};
|
|
21605
|
+
width: ${iconSize};
|
|
21606
|
+
margin-right: calc(-1 * ${smallPadding});
|
|
21607
|
+
}
|
|
21608
|
+
|
|
21609
|
+
[part='end'] {
|
|
21610
|
+
display: none;
|
|
21611
|
+
}
|
|
21612
|
+
`.withBehaviors(appearanceBehavior(ChipAppearance.block, css `
|
|
21613
|
+
:host,
|
|
21614
|
+
:host([disabled]) {
|
|
21615
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
21616
|
+
border-color: transparent;
|
|
21617
|
+
}
|
|
21618
|
+
`));
|
|
21619
|
+
|
|
21620
|
+
const template$M = (context, definition) => html `
|
|
21621
|
+
${startSlotTemplate(context, definition)}
|
|
21622
|
+
<span
|
|
21623
|
+
class="content"
|
|
21624
|
+
part="content"
|
|
21625
|
+
${overflow('hasOverflow')}
|
|
21626
|
+
title=${x => (x.hasOverflow && x.elementTextContent
|
|
21627
|
+
? x.elementTextContent
|
|
21628
|
+
: null)}
|
|
21629
|
+
>
|
|
21630
|
+
<slot
|
|
21631
|
+
${ref('contentSlot')}
|
|
21632
|
+
${slotted({ property: 'content' })}
|
|
21633
|
+
></slot>
|
|
21634
|
+
</span>
|
|
21635
|
+
${when(x => x.removable && !x.disabled, html `
|
|
21636
|
+
<${buttonTag}
|
|
21637
|
+
class="remove-button"
|
|
21638
|
+
content-hidden
|
|
21639
|
+
appearance="${ButtonAppearance.ghost}"
|
|
21640
|
+
tabindex="${x => x.tabIndex}"
|
|
21641
|
+
@click="${x => x.handleRemoveClick()}"
|
|
21642
|
+
>
|
|
21643
|
+
<${iconTimesTag} slot="start"></${iconTimesTag}>
|
|
21644
|
+
${x => x.removeButtonContent}
|
|
21645
|
+
</${buttonTag}>
|
|
21646
|
+
`)}
|
|
21647
|
+
${endSlotTemplate(context, definition)}
|
|
21648
|
+
`;
|
|
21649
|
+
|
|
21650
|
+
/**
|
|
21651
|
+
* Finds all text content within a slot and returns it as a space-delimited string.
|
|
21652
|
+
*/
|
|
21653
|
+
const slotTextContent = (slot) => {
|
|
21654
|
+
return slot
|
|
21655
|
+
.assignedNodes()
|
|
21656
|
+
.map(node => node.textContent?.trim())
|
|
21657
|
+
.filter(content => content !== undefined && content !== '')
|
|
21658
|
+
.join(' ');
|
|
21659
|
+
};
|
|
21660
|
+
|
|
21661
|
+
/**
|
|
21662
|
+
* A Nimble chip component
|
|
21663
|
+
*/
|
|
21664
|
+
class Chip extends FoundationElement {
|
|
21665
|
+
constructor() {
|
|
21666
|
+
super(...arguments);
|
|
21667
|
+
this.removable = false;
|
|
21668
|
+
this.disabled = false;
|
|
21669
|
+
this.appearance = ChipAppearance.outline;
|
|
21670
|
+
/** @internal */
|
|
21671
|
+
this.hasOverflow = false;
|
|
21672
|
+
}
|
|
21673
|
+
/** @internal */
|
|
21674
|
+
get elementTextContent() {
|
|
21675
|
+
return slotTextContent(this.contentSlot);
|
|
21676
|
+
}
|
|
21677
|
+
/** @internal */
|
|
21678
|
+
get removeButtonContent() {
|
|
21679
|
+
return itemRemoveLabel.getValueFor(this);
|
|
21680
|
+
}
|
|
21681
|
+
/** @internal */
|
|
21682
|
+
handleRemoveClick() {
|
|
21683
|
+
if (this.removable) {
|
|
21684
|
+
this.$emit('remove');
|
|
21685
|
+
}
|
|
21686
|
+
}
|
|
21687
|
+
}
|
|
21688
|
+
__decorate([
|
|
21689
|
+
attr({ mode: 'boolean' })
|
|
21690
|
+
], Chip.prototype, "removable", void 0);
|
|
21691
|
+
__decorate([
|
|
21692
|
+
attr({ mode: 'boolean' })
|
|
21693
|
+
], Chip.prototype, "disabled", void 0);
|
|
21694
|
+
__decorate([
|
|
21695
|
+
attr()
|
|
21696
|
+
], Chip.prototype, "appearance", void 0);
|
|
21697
|
+
__decorate([
|
|
21698
|
+
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
21699
|
+
], Chip.prototype, "tabIndex", void 0);
|
|
21700
|
+
__decorate([
|
|
21701
|
+
observable
|
|
21702
|
+
], Chip.prototype, "hasOverflow", void 0);
|
|
21703
|
+
applyMixins(Chip, StartEnd);
|
|
21704
|
+
const nimbleChip = Chip.compose({
|
|
21705
|
+
baseName: 'chip',
|
|
21706
|
+
template: template$M,
|
|
21707
|
+
styles: styles$$,
|
|
21708
|
+
shadowOptions: {
|
|
21709
|
+
delegatesFocus: true
|
|
21710
|
+
}
|
|
21711
|
+
});
|
|
21712
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleChip());
|
|
21713
|
+
|
|
21553
21714
|
const styles$_ = css `
|
|
21554
|
-
${styles$
|
|
21715
|
+
${styles$1i}
|
|
21555
21716
|
${buttonAppearanceVariantStyles}
|
|
21556
21717
|
|
|
21557
21718
|
@layer checked {
|
|
@@ -22043,7 +22204,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22043
22204
|
|
|
22044
22205
|
const styles$X = css `
|
|
22045
22206
|
${styles$Z}
|
|
22046
|
-
${styles$
|
|
22207
|
+
${styles$11}
|
|
22047
22208
|
${styles$Y}
|
|
22048
22209
|
|
|
22049
22210
|
:host {
|
|
@@ -26650,17 +26811,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26650
26811
|
</template>
|
|
26651
26812
|
`;
|
|
26652
26813
|
|
|
26653
|
-
/**
|
|
26654
|
-
* Finds all text content within a slot and returns it as a space-delimited string.
|
|
26655
|
-
*/
|
|
26656
|
-
const slotTextContent = (slot) => {
|
|
26657
|
-
return slot
|
|
26658
|
-
.assignedNodes()
|
|
26659
|
-
.map(node => node.textContent?.trim())
|
|
26660
|
-
.filter(content => content !== undefined && content !== '')
|
|
26661
|
-
.join(' ');
|
|
26662
|
-
};
|
|
26663
|
-
|
|
26664
26814
|
/**
|
|
26665
26815
|
* A nimble-styled HTML listbox option
|
|
26666
26816
|
*/
|
|
@@ -27903,7 +28053,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27903
28053
|
|
|
27904
28054
|
const styles$N = css `
|
|
27905
28055
|
${display$1('inline-block')}
|
|
27906
|
-
${styles$
|
|
28056
|
+
${styles$11}
|
|
27907
28057
|
${styles$Y}
|
|
27908
28058
|
|
|
27909
28059
|
:host {
|
|
@@ -28432,7 +28582,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
28432
28582
|
|
|
28433
28583
|
const styles$L = css `
|
|
28434
28584
|
${display$1('inline-block')}
|
|
28435
|
-
${styles$
|
|
28585
|
+
${styles$11}
|
|
28436
28586
|
${styles$Y}
|
|
28437
28587
|
|
|
28438
28588
|
.positioning-region {
|
|
@@ -48289,7 +48439,7 @@ ${indentedChild}`;
|
|
|
48289
48439
|
|
|
48290
48440
|
const styles$I = css `
|
|
48291
48441
|
${display$1('inline-flex')}
|
|
48292
|
-
${styles$
|
|
48442
|
+
${styles$11}
|
|
48293
48443
|
|
|
48294
48444
|
:host {
|
|
48295
48445
|
font: ${bodyFont};
|
|
@@ -64873,7 +65023,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64873
65023
|
|
|
64874
65024
|
const styles$G = css `
|
|
64875
65025
|
${styles$Z}
|
|
64876
|
-
${styles$
|
|
65026
|
+
${styles$11}
|
|
64877
65027
|
${styles$Y}
|
|
64878
65028
|
|
|
64879
65029
|
${
|
|
@@ -66498,7 +66648,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
66498
66648
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
|
|
66499
66649
|
|
|
66500
66650
|
const styles$E = css `
|
|
66501
|
-
${styles$
|
|
66651
|
+
${styles$1e}
|
|
66502
66652
|
${'' /* Button specific styles */}
|
|
66503
66653
|
@layer base {
|
|
66504
66654
|
.control {
|
|
@@ -66611,9 +66761,10 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
66611
66761
|
*/
|
|
66612
66762
|
onClick(e) {
|
|
66613
66763
|
if (this.disabled || this.readOnly) {
|
|
66614
|
-
e.preventDefault();
|
|
66615
66764
|
e.stopImmediatePropagation();
|
|
66765
|
+
return false; /* Do prevent default */
|
|
66616
66766
|
}
|
|
66767
|
+
return true; /* Do not prevent default */
|
|
66617
66768
|
}
|
|
66618
66769
|
}
|
|
66619
66770
|
__decorate([
|
|
@@ -79234,7 +79385,7 @@ focus outline in that case.
|
|
|
79234
79385
|
.register(nimbleTableColumnText());
|
|
79235
79386
|
|
|
79236
79387
|
const styles$l = css `
|
|
79237
|
-
${styles$
|
|
79388
|
+
${styles$1a}
|
|
79238
79389
|
|
|
79239
79390
|
.tabpanel {
|
|
79240
79391
|
overflow: auto;
|
|
@@ -79315,7 +79466,7 @@ focus outline in that case.
|
|
|
79315
79466
|
const nimbleTabs = Tabs.compose({
|
|
79316
79467
|
baseName: 'tabs',
|
|
79317
79468
|
baseClass: Tabs$1,
|
|
79318
|
-
template: template$
|
|
79469
|
+
template: template$R,
|
|
79319
79470
|
styles: styles$l
|
|
79320
79471
|
});
|
|
79321
79472
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
|
|
@@ -79397,7 +79548,7 @@ focus outline in that case.
|
|
|
79397
79548
|
|
|
79398
79549
|
const styles$j = css `
|
|
79399
79550
|
${display$1('inline-flex')}
|
|
79400
|
-
${styles$
|
|
79551
|
+
${styles$11}
|
|
79401
79552
|
${styles$Y}
|
|
79402
79553
|
|
|
79403
79554
|
:host {
|
|
@@ -79758,7 +79909,7 @@ focus outline in that case.
|
|
|
79758
79909
|
|
|
79759
79910
|
const styles$i = css `
|
|
79760
79911
|
${display$1('inline-block')}
|
|
79761
|
-
${styles$
|
|
79912
|
+
${styles$11}
|
|
79762
79913
|
${styles$Y}
|
|
79763
79914
|
|
|
79764
79915
|
:host {
|
|
@@ -98445,7 +98596,7 @@ focus outline in that case.
|
|
|
98445
98596
|
|
|
98446
98597
|
const styles$b = css `
|
|
98447
98598
|
${display('flex')}
|
|
98448
|
-
${styles$
|
|
98599
|
+
${styles$11}
|
|
98449
98600
|
|
|
98450
98601
|
:host {
|
|
98451
98602
|
width: 100%;
|
|
@@ -99113,7 +99264,7 @@ focus outline in that case.
|
|
|
99113
99264
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
|
|
99114
99265
|
|
|
99115
99266
|
const styles$6 = css `
|
|
99116
|
-
${styles$
|
|
99267
|
+
${styles$1c}
|
|
99117
99268
|
|
|
99118
99269
|
.icon svg {
|
|
99119
99270
|
fill: ${calendarEventBorderReservationColor};
|
|
@@ -99130,7 +99281,7 @@ focus outline in that case.
|
|
|
99130
99281
|
}
|
|
99131
99282
|
const sprightIconWorkItemCalendarWeek = IconWorkItemCalendarWeek.compose({
|
|
99132
99283
|
baseName: 'icon-work-item-calendar-week',
|
|
99133
|
-
template: template$
|
|
99284
|
+
template: template$V,
|
|
99134
99285
|
styles: styles$6
|
|
99135
99286
|
});
|
|
99136
99287
|
DesignSystem.getOrCreate()
|
|
@@ -99138,7 +99289,7 @@ focus outline in that case.
|
|
|
99138
99289
|
.register(sprightIconWorkItemCalendarWeek());
|
|
99139
99290
|
|
|
99140
99291
|
const styles$5 = css `
|
|
99141
|
-
${styles$
|
|
99292
|
+
${styles$1c}
|
|
99142
99293
|
|
|
99143
99294
|
.icon svg {
|
|
99144
99295
|
fill: ${calendarEventBorderCalibrationColor};
|
|
@@ -99155,7 +99306,7 @@ focus outline in that case.
|
|
|
99155
99306
|
}
|
|
99156
99307
|
const sprightIconWorkItemCalipers = IconWorkItemCalipers.compose({
|
|
99157
99308
|
baseName: 'icon-work-item-calipers',
|
|
99158
|
-
template: template$
|
|
99309
|
+
template: template$V,
|
|
99159
99310
|
styles: styles$5
|
|
99160
99311
|
});
|
|
99161
99312
|
DesignSystem.getOrCreate()
|
|
@@ -99163,7 +99314,7 @@ focus outline in that case.
|
|
|
99163
99314
|
.register(sprightIconWorkItemCalipers());
|
|
99164
99315
|
|
|
99165
99316
|
const styles$4 = css `
|
|
99166
|
-
${styles$
|
|
99317
|
+
${styles$1c}
|
|
99167
99318
|
|
|
99168
99319
|
.icon svg {
|
|
99169
99320
|
fill: ${calendarEventBorderTransportOrderColor};
|
|
@@ -99180,7 +99331,7 @@ focus outline in that case.
|
|
|
99180
99331
|
}
|
|
99181
99332
|
const sprightIconWorkItemForklift = IconWorkItemForklift.compose({
|
|
99182
99333
|
baseName: 'icon-work-item-forklift',
|
|
99183
|
-
template: template$
|
|
99334
|
+
template: template$V,
|
|
99184
99335
|
styles: styles$4
|
|
99185
99336
|
});
|
|
99186
99337
|
DesignSystem.getOrCreate()
|
|
@@ -99188,7 +99339,7 @@ focus outline in that case.
|
|
|
99188
99339
|
.register(sprightIconWorkItemForklift());
|
|
99189
99340
|
|
|
99190
99341
|
const styles$3 = css `
|
|
99191
|
-
${styles$
|
|
99342
|
+
${styles$1c}
|
|
99192
99343
|
|
|
99193
99344
|
.icon svg {
|
|
99194
99345
|
fill: ${calendarEventBorderStaticColor};
|
|
@@ -99205,7 +99356,7 @@ focus outline in that case.
|
|
|
99205
99356
|
}
|
|
99206
99357
|
const sprightIconWorkItemRectangleCheckLines = IconWorkItemRectangleCheckLines.compose({
|
|
99207
99358
|
baseName: 'icon-work-item-rectangle-check-lines',
|
|
99208
|
-
template: template$
|
|
99359
|
+
template: template$V,
|
|
99209
99360
|
styles: styles$3
|
|
99210
99361
|
});
|
|
99211
99362
|
DesignSystem.getOrCreate()
|
|
@@ -99213,7 +99364,7 @@ focus outline in that case.
|
|
|
99213
99364
|
.register(sprightIconWorkItemRectangleCheckLines());
|
|
99214
99365
|
|
|
99215
99366
|
const styles$2 = css `
|
|
99216
|
-
${styles$
|
|
99367
|
+
${styles$1c}
|
|
99217
99368
|
|
|
99218
99369
|
.icon svg {
|
|
99219
99370
|
fill: ${calendarEventBorderJobColor};
|
|
@@ -99230,7 +99381,7 @@ focus outline in that case.
|
|
|
99230
99381
|
}
|
|
99231
99382
|
const sprightIconWorkItemUserHelmetSafety = IconWorkItemUserHelmetSafety.compose({
|
|
99232
99383
|
baseName: 'icon-work-item-user-helmet-safety',
|
|
99233
|
-
template: template$
|
|
99384
|
+
template: template$V,
|
|
99234
99385
|
styles: styles$2
|
|
99235
99386
|
});
|
|
99236
99387
|
DesignSystem.getOrCreate()
|
|
@@ -99238,7 +99389,7 @@ focus outline in that case.
|
|
|
99238
99389
|
.register(sprightIconWorkItemUserHelmetSafety());
|
|
99239
99390
|
|
|
99240
99391
|
const styles$1 = css `
|
|
99241
|
-
${styles$
|
|
99392
|
+
${styles$1c}
|
|
99242
99393
|
|
|
99243
99394
|
.icon svg {
|
|
99244
99395
|
fill: ${calendarEventBorderMaintenanceColor};
|
|
@@ -99255,7 +99406,7 @@ focus outline in that case.
|
|
|
99255
99406
|
}
|
|
99256
99407
|
const sprightIconWorkItemWrenchHammer = IconWorkItemWrenchHammer.compose({
|
|
99257
99408
|
baseName: 'icon-work-item-wrench-hammer',
|
|
99258
|
-
template: template$
|
|
99409
|
+
template: template$V,
|
|
99259
99410
|
styles: styles$1
|
|
99260
99411
|
});
|
|
99261
99412
|
DesignSystem.getOrCreate()
|