@ni/ok-components 0.2.7 → 0.2.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.
- package/dist/all-components-bundle.js +439 -357
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +37 -14
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +1 -0
- package/dist/esm/all-components.js +1 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/icon-dynamic/index.d.ts +23 -0
- package/dist/esm/icon-dynamic/index.js +59 -0
- package/dist/esm/icon-dynamic/index.js.map +1 -0
- package/dist/esm/icon-dynamic/styles.d.ts +1 -0
- package/dist/esm/icon-dynamic/styles.js +20 -0
- package/dist/esm/icon-dynamic/styles.js.map +1 -0
- package/dist/esm/icon-dynamic/template.d.ts +2 -0
- package/dist/esm/icon-dynamic/template.js +3 -0
- package/dist/esm/icon-dynamic/template.js.map +1 -0
- package/dist/esm/utilities/style/user-select.d.ts +5 -0
- package/dist/esm/utilities/style/user-select.js +10 -0
- package/dist/esm/utilities/style/user-select.js.map +1 -0
- package/package.json +3 -3
|
@@ -14881,9 +14881,9 @@
|
|
|
14881
14881
|
const prefix = 'ni-nimble';
|
|
14882
14882
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
14883
14883
|
|
|
14884
|
-
const template$
|
|
14884
|
+
const template$_ = html `<slot></slot>`;
|
|
14885
14885
|
|
|
14886
|
-
const styles$
|
|
14886
|
+
const styles$1d = css `
|
|
14887
14887
|
${display$2('contents')}
|
|
14888
14888
|
`;
|
|
14889
14889
|
|
|
@@ -14998,8 +14998,8 @@
|
|
|
14998
14998
|
], ThemeProvider.prototype, "theme", void 0);
|
|
14999
14999
|
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
15000
15000
|
baseName: 'theme-provider',
|
|
15001
|
-
styles: styles$
|
|
15002
|
-
template: template$
|
|
15001
|
+
styles: styles$1d,
|
|
15002
|
+
template: template$_
|
|
15003
15003
|
});
|
|
15004
15004
|
DesignSystem.getOrCreate()
|
|
15005
15005
|
.withPrefix('nimble')
|
|
@@ -16572,7 +16572,7 @@
|
|
|
16572
16572
|
}
|
|
16573
16573
|
// #endregion
|
|
16574
16574
|
|
|
16575
|
-
const styles$
|
|
16575
|
+
const styles$1c = css `
|
|
16576
16576
|
@layer base, hover, focusVisible, active, disabled;
|
|
16577
16577
|
|
|
16578
16578
|
@layer base {
|
|
@@ -16650,7 +16650,7 @@
|
|
|
16650
16650
|
}
|
|
16651
16651
|
`;
|
|
16652
16652
|
|
|
16653
|
-
const template$
|
|
16653
|
+
const template$Z = (_context, definition) => html `${
|
|
16654
16654
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16655
16655
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
16656
16656
|
*/ ''}<div
|
|
@@ -16753,8 +16753,8 @@
|
|
|
16753
16753
|
const nimbleAnchor = Anchor.compose({
|
|
16754
16754
|
baseName: 'anchor',
|
|
16755
16755
|
baseClass: Anchor$1,
|
|
16756
|
-
template: template$
|
|
16757
|
-
styles: styles$
|
|
16756
|
+
template: template$Z,
|
|
16757
|
+
styles: styles$1c,
|
|
16758
16758
|
shadowOptions: {
|
|
16759
16759
|
delegatesFocus: true
|
|
16760
16760
|
}
|
|
@@ -16863,7 +16863,7 @@
|
|
|
16863
16863
|
padding: 0;
|
|
16864
16864
|
`;
|
|
16865
16865
|
|
|
16866
|
-
const styles$
|
|
16866
|
+
const styles$1b = css `
|
|
16867
16867
|
@layer base, checked, hover, focusVisible, active, disabled, top;
|
|
16868
16868
|
|
|
16869
16869
|
@layer base {
|
|
@@ -17147,8 +17147,8 @@
|
|
|
17147
17147
|
}
|
|
17148
17148
|
`));
|
|
17149
17149
|
|
|
17150
|
-
const styles$
|
|
17151
|
-
${styles$
|
|
17150
|
+
const styles$1a = css `
|
|
17151
|
+
${styles$1b}
|
|
17152
17152
|
${buttonAppearanceVariantStyles}
|
|
17153
17153
|
|
|
17154
17154
|
.control {
|
|
@@ -17168,7 +17168,7 @@
|
|
|
17168
17168
|
}
|
|
17169
17169
|
`;
|
|
17170
17170
|
|
|
17171
|
-
const template$
|
|
17171
|
+
const template$Y = (context, definition) => html `
|
|
17172
17172
|
<a
|
|
17173
17173
|
class="control"
|
|
17174
17174
|
part="control"
|
|
@@ -17250,8 +17250,8 @@
|
|
|
17250
17250
|
], AnchorButton.prototype, "disabled", void 0);
|
|
17251
17251
|
const nimbleAnchorButton = AnchorButton.compose({
|
|
17252
17252
|
baseName: 'anchor-button',
|
|
17253
|
-
template: template$
|
|
17254
|
-
styles: styles$
|
|
17253
|
+
template: template$Y,
|
|
17254
|
+
styles: styles$1a,
|
|
17255
17255
|
shadowOptions: {
|
|
17256
17256
|
delegatesFocus: true
|
|
17257
17257
|
}
|
|
@@ -17259,7 +17259,7 @@
|
|
|
17259
17259
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
|
|
17260
17260
|
const anchorButtonTag = 'nimble-anchor-button';
|
|
17261
17261
|
|
|
17262
|
-
const styles$
|
|
17262
|
+
const styles$19 = css `
|
|
17263
17263
|
${display$2('grid')}
|
|
17264
17264
|
|
|
17265
17265
|
:host {
|
|
@@ -17342,7 +17342,7 @@
|
|
|
17342
17342
|
}
|
|
17343
17343
|
`;
|
|
17344
17344
|
|
|
17345
|
-
const template$
|
|
17345
|
+
const template$X = (context, definition) => html `
|
|
17346
17346
|
<template
|
|
17347
17347
|
role="menuitem"
|
|
17348
17348
|
class="${x => (typeof x.startColumnCount === 'number'
|
|
@@ -17443,8 +17443,8 @@
|
|
|
17443
17443
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17444
17444
|
const nimbleAnchorMenuItem = AnchorMenuItem.compose({
|
|
17445
17445
|
baseName: 'anchor-menu-item',
|
|
17446
|
-
template: template$
|
|
17447
|
-
styles: styles$
|
|
17446
|
+
template: template$X,
|
|
17447
|
+
styles: styles$19,
|
|
17448
17448
|
shadowOptions: {
|
|
17449
17449
|
delegatesFocus: true
|
|
17450
17450
|
}
|
|
@@ -17454,11 +17454,11 @@
|
|
|
17454
17454
|
.register(nimbleAnchorMenuItem());
|
|
17455
17455
|
const anchorMenuItemTag = 'nimble-anchor-menu-item';
|
|
17456
17456
|
|
|
17457
|
-
const styles$
|
|
17457
|
+
const styles$18 = css `
|
|
17458
17458
|
${display$2('flex')}
|
|
17459
17459
|
`;
|
|
17460
17460
|
|
|
17461
|
-
const template$
|
|
17461
|
+
const template$W = html `
|
|
17462
17462
|
<template>anchor step</template>
|
|
17463
17463
|
`;
|
|
17464
17464
|
|
|
@@ -17469,12 +17469,12 @@
|
|
|
17469
17469
|
}
|
|
17470
17470
|
const nimbleAnchorStep = AnchorStep.compose({
|
|
17471
17471
|
baseName: 'anchor-step',
|
|
17472
|
-
template: template$
|
|
17473
|
-
styles: styles$
|
|
17472
|
+
template: template$W,
|
|
17473
|
+
styles: styles$18
|
|
17474
17474
|
});
|
|
17475
17475
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorStep());
|
|
17476
17476
|
|
|
17477
|
-
const styles$
|
|
17477
|
+
const styles$17 = css `
|
|
17478
17478
|
${display$2('inline-flex')}
|
|
17479
17479
|
|
|
17480
17480
|
:host {
|
|
@@ -17591,7 +17591,7 @@
|
|
|
17591
17591
|
}
|
|
17592
17592
|
`;
|
|
17593
17593
|
|
|
17594
|
-
const template$
|
|
17594
|
+
const template$V = (context, definition) => html `
|
|
17595
17595
|
<template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
|
|
17596
17596
|
<a
|
|
17597
17597
|
download="${x => x.download}"
|
|
@@ -17643,15 +17643,15 @@
|
|
|
17643
17643
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17644
17644
|
const nimbleAnchorTab = AnchorTab.compose({
|
|
17645
17645
|
baseName: 'anchor-tab',
|
|
17646
|
-
template: template$
|
|
17647
|
-
styles: styles$
|
|
17646
|
+
template: template$V,
|
|
17647
|
+
styles: styles$17,
|
|
17648
17648
|
shadowOptions: {
|
|
17649
17649
|
delegatesFocus: true
|
|
17650
17650
|
}
|
|
17651
17651
|
});
|
|
17652
17652
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
|
|
17653
17653
|
|
|
17654
|
-
const styles$
|
|
17654
|
+
const styles$16 = css `
|
|
17655
17655
|
${display$2('flex')}
|
|
17656
17656
|
|
|
17657
17657
|
:host {
|
|
@@ -17691,12 +17691,12 @@
|
|
|
17691
17691
|
}
|
|
17692
17692
|
`;
|
|
17693
17693
|
|
|
17694
|
-
const styles$
|
|
17695
|
-
${styles$
|
|
17694
|
+
const styles$15 = css `
|
|
17695
|
+
${styles$1b}
|
|
17696
17696
|
${buttonAppearanceVariantStyles}
|
|
17697
17697
|
`;
|
|
17698
17698
|
|
|
17699
|
-
const template$
|
|
17699
|
+
const template$U = (context, definition) => html `
|
|
17700
17700
|
<button
|
|
17701
17701
|
class="control"
|
|
17702
17702
|
part="control"
|
|
@@ -17787,8 +17787,8 @@
|
|
|
17787
17787
|
const nimbleButton = Button$1.compose({
|
|
17788
17788
|
baseName: 'button',
|
|
17789
17789
|
baseClass: Button$2,
|
|
17790
|
-
template: template$
|
|
17791
|
-
styles: styles$
|
|
17790
|
+
template: template$U,
|
|
17791
|
+
styles: styles$15,
|
|
17792
17792
|
shadowOptions: {
|
|
17793
17793
|
delegatesFocus: true
|
|
17794
17794
|
}
|
|
@@ -18735,7 +18735,7 @@
|
|
|
18735
18735
|
};
|
|
18736
18736
|
|
|
18737
18737
|
// Avoiding any whitespace in the template because this is an inline element
|
|
18738
|
-
const template$
|
|
18738
|
+
const template$T = html `<div
|
|
18739
18739
|
class="icon"
|
|
18740
18740
|
aria-hidden="true"
|
|
18741
18741
|
:innerHTML=${x => x.icon.data}
|
|
@@ -18745,17 +18745,17 @@
|
|
|
18745
18745
|
* Set user-select: none in a way that works across all supported browsers.
|
|
18746
18746
|
* https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#browser_compatibility
|
|
18747
18747
|
*/
|
|
18748
|
-
const userSelectNone = cssPartial `
|
|
18748
|
+
const userSelectNone$1 = cssPartial `
|
|
18749
18749
|
user-select: none;
|
|
18750
18750
|
-webkit-user-select: none;
|
|
18751
18751
|
`;
|
|
18752
18752
|
|
|
18753
|
-
const styles$
|
|
18753
|
+
const styles$14 = css `
|
|
18754
18754
|
${display$2('inline-flex')}
|
|
18755
18755
|
|
|
18756
18756
|
:host {
|
|
18757
18757
|
align-items: center;
|
|
18758
|
-
${userSelectNone}
|
|
18758
|
+
${userSelectNone$1}
|
|
18759
18759
|
width: ${iconSize};
|
|
18760
18760
|
height: ${iconSize};
|
|
18761
18761
|
}
|
|
@@ -18813,8 +18813,8 @@
|
|
|
18813
18813
|
const registerIconSvg = (baseName, iconClass) => {
|
|
18814
18814
|
const composedIcon = iconClass.compose({
|
|
18815
18815
|
baseName,
|
|
18816
|
-
template: template$
|
|
18817
|
-
styles: styles$
|
|
18816
|
+
template: template$T,
|
|
18817
|
+
styles: styles$14
|
|
18818
18818
|
});
|
|
18819
18819
|
DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
|
|
18820
18820
|
};
|
|
@@ -18909,7 +18909,7 @@
|
|
|
18909
18909
|
cssCustomPropertyName: null
|
|
18910
18910
|
}).withDefault(coreLabelDefaults.itemRemoveLabel);
|
|
18911
18911
|
|
|
18912
|
-
const template$
|
|
18912
|
+
const template$S = (context, definition) => html `
|
|
18913
18913
|
<div
|
|
18914
18914
|
class="tab-bar"
|
|
18915
18915
|
>
|
|
@@ -19210,15 +19210,15 @@
|
|
|
19210
19210
|
applyMixins(AnchorTabs, StartEnd);
|
|
19211
19211
|
const nimbleAnchorTabs = AnchorTabs.compose({
|
|
19212
19212
|
baseName: 'anchor-tabs',
|
|
19213
|
-
template: template$
|
|
19214
|
-
styles: styles$
|
|
19213
|
+
template: template$S,
|
|
19214
|
+
styles: styles$16,
|
|
19215
19215
|
shadowOptions: {
|
|
19216
19216
|
delegatesFocus: false
|
|
19217
19217
|
}
|
|
19218
19218
|
});
|
|
19219
19219
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
|
|
19220
19220
|
|
|
19221
|
-
const styles$
|
|
19221
|
+
const styles$13 = css `
|
|
19222
19222
|
${display$2('block')}
|
|
19223
19223
|
|
|
19224
19224
|
:host {
|
|
@@ -19289,7 +19289,7 @@
|
|
|
19289
19289
|
padding-left: 10px;
|
|
19290
19290
|
font: inherit;
|
|
19291
19291
|
font-size: ${bodyFontSize};
|
|
19292
|
-
${userSelectNone}
|
|
19292
|
+
${userSelectNone$1}
|
|
19293
19293
|
position: relative;
|
|
19294
19294
|
margin-inline-start: ${iconSize};
|
|
19295
19295
|
}
|
|
@@ -19323,7 +19323,7 @@
|
|
|
19323
19323
|
}
|
|
19324
19324
|
`;
|
|
19325
19325
|
|
|
19326
|
-
const template$
|
|
19326
|
+
const template$R = (context, definition) => html `
|
|
19327
19327
|
<template
|
|
19328
19328
|
role="treeitem"
|
|
19329
19329
|
slot="${x => (x.isNestedItem() ? 'item' : null)}"
|
|
@@ -19460,8 +19460,8 @@
|
|
|
19460
19460
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
19461
19461
|
const nimbleAnchorTreeItem = AnchorTreeItem.compose({
|
|
19462
19462
|
baseName: 'anchor-tree-item',
|
|
19463
|
-
template: template$
|
|
19464
|
-
styles: styles$
|
|
19463
|
+
template: template$R,
|
|
19464
|
+
styles: styles$13,
|
|
19465
19465
|
shadowOptions: {
|
|
19466
19466
|
delegatesFocus: true
|
|
19467
19467
|
}
|
|
@@ -19477,7 +19477,7 @@
|
|
|
19477
19477
|
zIndex1000: '1000'
|
|
19478
19478
|
};
|
|
19479
19479
|
|
|
19480
|
-
const styles$
|
|
19480
|
+
const styles$12 = css `
|
|
19481
19481
|
${display$2('block')}
|
|
19482
19482
|
|
|
19483
19483
|
:host {
|
|
@@ -19508,7 +19508,7 @@
|
|
|
19508
19508
|
baseName: 'anchored-region',
|
|
19509
19509
|
baseClass: AnchoredRegion$1,
|
|
19510
19510
|
template: anchoredRegionTemplate,
|
|
19511
|
-
styles: styles$
|
|
19511
|
+
styles: styles$12
|
|
19512
19512
|
});
|
|
19513
19513
|
DesignSystem.getOrCreate()
|
|
19514
19514
|
.withPrefix('nimble')
|
|
@@ -19589,7 +19589,7 @@
|
|
|
19589
19589
|
const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
|
|
19590
19590
|
/* eslint-enable max-classes-per-file */
|
|
19591
19591
|
|
|
19592
|
-
const styles$
|
|
19592
|
+
const styles$11 = css `
|
|
19593
19593
|
${display$2('flex')}
|
|
19594
19594
|
|
|
19595
19595
|
:host {
|
|
@@ -19767,7 +19767,7 @@
|
|
|
19767
19767
|
information: 'information'
|
|
19768
19768
|
};
|
|
19769
19769
|
|
|
19770
|
-
const template$
|
|
19770
|
+
const template$Q = html `
|
|
19771
19771
|
<${themeProviderTag} theme="${Theme.color}">
|
|
19772
19772
|
<div class="container"
|
|
19773
19773
|
role="status"
|
|
@@ -19885,8 +19885,8 @@
|
|
|
19885
19885
|
applyMixins(Banner, ARIAGlobalStatesAndProperties);
|
|
19886
19886
|
const nimbleBanner = Banner.compose({
|
|
19887
19887
|
baseName: 'banner',
|
|
19888
|
-
template: template$
|
|
19889
|
-
styles: styles$
|
|
19888
|
+
template: template$Q,
|
|
19889
|
+
styles: styles$11
|
|
19890
19890
|
});
|
|
19891
19891
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
|
|
19892
19892
|
|
|
@@ -19927,7 +19927,7 @@
|
|
|
19927
19927
|
</template>
|
|
19928
19928
|
`;
|
|
19929
19929
|
|
|
19930
|
-
const styles
|
|
19930
|
+
const styles$10 = css `
|
|
19931
19931
|
${display$2('inline-flex')}
|
|
19932
19932
|
|
|
19933
19933
|
:host {
|
|
@@ -20031,11 +20031,11 @@
|
|
|
20031
20031
|
baseName: 'breadcrumb',
|
|
20032
20032
|
baseClass: Breadcrumb$1,
|
|
20033
20033
|
template: breadcrumbTemplate,
|
|
20034
|
-
styles: styles
|
|
20034
|
+
styles: styles$10
|
|
20035
20035
|
});
|
|
20036
20036
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
|
|
20037
20037
|
|
|
20038
|
-
const styles
|
|
20038
|
+
const styles$$ = css `
|
|
20039
20039
|
@layer base, hover, focusVisible, active, disabled;
|
|
20040
20040
|
|
|
20041
20041
|
@layer base {
|
|
@@ -20132,14 +20132,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20132
20132
|
baseName: 'breadcrumb-item',
|
|
20133
20133
|
baseClass: BreadcrumbItem$1,
|
|
20134
20134
|
template: breadcrumbItemTemplate,
|
|
20135
|
-
styles: styles
|
|
20135
|
+
styles: styles$$,
|
|
20136
20136
|
separator: forwardSlash16X16.data
|
|
20137
20137
|
});
|
|
20138
20138
|
DesignSystem.getOrCreate()
|
|
20139
20139
|
.withPrefix('nimble')
|
|
20140
20140
|
.register(nimbleBreadcrumbItem());
|
|
20141
20141
|
|
|
20142
|
-
const styles$
|
|
20142
|
+
const styles$_ = css `
|
|
20143
20143
|
${display$2('flex')}
|
|
20144
20144
|
|
|
20145
20145
|
:host {
|
|
@@ -20163,7 +20163,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20163
20163
|
}
|
|
20164
20164
|
`;
|
|
20165
20165
|
|
|
20166
|
-
const template$
|
|
20166
|
+
const template$P = html `
|
|
20167
20167
|
<section aria-labelledby="title-slot">
|
|
20168
20168
|
<span id="title-slot"><slot name="title"></slot></span>
|
|
20169
20169
|
<slot></slot>
|
|
@@ -20178,12 +20178,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20178
20178
|
const nimbleCard = Card.compose({
|
|
20179
20179
|
baseName: 'card',
|
|
20180
20180
|
baseClass: Card$1,
|
|
20181
|
-
template: template$
|
|
20182
|
-
styles: styles$
|
|
20181
|
+
template: template$P,
|
|
20182
|
+
styles: styles$_
|
|
20183
20183
|
});
|
|
20184
20184
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
|
|
20185
20185
|
|
|
20186
|
-
const styles$
|
|
20186
|
+
const styles$Z = css `
|
|
20187
20187
|
${display$2('inline-flex')}
|
|
20188
20188
|
|
|
20189
20189
|
:host {
|
|
@@ -20341,14 +20341,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20341
20341
|
const nimbleCardButton = CardButton.compose({
|
|
20342
20342
|
baseName: 'card-button',
|
|
20343
20343
|
template: buttonTemplate,
|
|
20344
|
-
styles: styles$
|
|
20344
|
+
styles: styles$Z,
|
|
20345
20345
|
shadowOptions: {
|
|
20346
20346
|
delegatesFocus: true
|
|
20347
20347
|
}
|
|
20348
20348
|
});
|
|
20349
20349
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
|
|
20350
20350
|
|
|
20351
|
-
const styles$
|
|
20351
|
+
const styles$Y = css `
|
|
20352
20352
|
.error-icon {
|
|
20353
20353
|
display: none;
|
|
20354
20354
|
}
|
|
@@ -20382,15 +20382,15 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20382
20382
|
}
|
|
20383
20383
|
`;
|
|
20384
20384
|
|
|
20385
|
-
const styles$
|
|
20385
|
+
const styles$X = css `
|
|
20386
20386
|
${display$2('inline-grid')}
|
|
20387
|
-
${styles$
|
|
20387
|
+
${styles$Y}
|
|
20388
20388
|
|
|
20389
20389
|
:host {
|
|
20390
20390
|
font: ${bodyFont};
|
|
20391
20391
|
cursor: pointer;
|
|
20392
20392
|
outline: none;
|
|
20393
|
-
${userSelectNone}
|
|
20393
|
+
${userSelectNone$1}
|
|
20394
20394
|
min-height: ${controlHeight};
|
|
20395
20395
|
}
|
|
20396
20396
|
|
|
@@ -20578,7 +20578,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20578
20578
|
</div>
|
|
20579
20579
|
`;
|
|
20580
20580
|
|
|
20581
|
-
const template$
|
|
20581
|
+
const template$O = (_context, definition) => html `
|
|
20582
20582
|
<template
|
|
20583
20583
|
role="checkbox"
|
|
20584
20584
|
aria-checked="${x => x.checked}"
|
|
@@ -20663,16 +20663,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20663
20663
|
const nimbleCheckbox = Checkbox.compose({
|
|
20664
20664
|
baseName: 'checkbox',
|
|
20665
20665
|
baseClass: Checkbox$1,
|
|
20666
|
-
template: template$
|
|
20667
|
-
styles: styles$
|
|
20666
|
+
template: template$O,
|
|
20667
|
+
styles: styles$X,
|
|
20668
20668
|
checkedIndicator: check16X16.data,
|
|
20669
20669
|
indeterminateIndicator: minus16X16.data
|
|
20670
20670
|
});
|
|
20671
20671
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
20672
20672
|
const checkboxTag = 'nimble-checkbox';
|
|
20673
20673
|
|
|
20674
|
-
const styles$
|
|
20675
|
-
${styles$
|
|
20674
|
+
const styles$W = css `
|
|
20675
|
+
${styles$1b}
|
|
20676
20676
|
${buttonAppearanceVariantStyles}
|
|
20677
20677
|
|
|
20678
20678
|
@layer checked {
|
|
@@ -20719,7 +20719,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20719
20719
|
}
|
|
20720
20720
|
`));
|
|
20721
20721
|
|
|
20722
|
-
const template$
|
|
20722
|
+
const template$N = (context, definition) => html `
|
|
20723
20723
|
<div
|
|
20724
20724
|
role="button"
|
|
20725
20725
|
part="control"
|
|
@@ -20814,8 +20814,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20814
20814
|
applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
|
|
20815
20815
|
const nimbleToggleButton = ToggleButton.compose({
|
|
20816
20816
|
baseName: 'toggle-button',
|
|
20817
|
-
template: template$
|
|
20818
|
-
styles: styles$
|
|
20817
|
+
template: template$N,
|
|
20818
|
+
styles: styles$W,
|
|
20819
20819
|
shadowOptions: {
|
|
20820
20820
|
delegatesFocus: true
|
|
20821
20821
|
}
|
|
@@ -20845,7 +20845,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20845
20845
|
frameless: 'frameless'
|
|
20846
20846
|
};
|
|
20847
20847
|
|
|
20848
|
-
const styles$
|
|
20848
|
+
const styles$V = css `
|
|
20849
20849
|
${display$2('inline-flex')}
|
|
20850
20850
|
|
|
20851
20851
|
:host {
|
|
@@ -20854,7 +20854,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20854
20854
|
position: relative;
|
|
20855
20855
|
flex-direction: column;
|
|
20856
20856
|
justify-content: flex-start;
|
|
20857
|
-
${userSelectNone}
|
|
20857
|
+
${userSelectNone$1}
|
|
20858
20858
|
min-width: ${menuMinWidth};
|
|
20859
20859
|
outline: none;
|
|
20860
20860
|
vertical-align: top;
|
|
@@ -21135,7 +21135,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21135
21135
|
}
|
|
21136
21136
|
`));
|
|
21137
21137
|
|
|
21138
|
-
const styles$
|
|
21138
|
+
const styles$U = css `
|
|
21139
21139
|
.annotated-label {
|
|
21140
21140
|
display: flex;
|
|
21141
21141
|
flex-direction: row;
|
|
@@ -21162,10 +21162,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21162
21162
|
none: undefined,
|
|
21163
21163
|
standard: 'standard'};
|
|
21164
21164
|
|
|
21165
|
-
const styles$
|
|
21165
|
+
const styles$T = css `
|
|
21166
|
+
${styles$V}
|
|
21167
|
+
${styles$Y}
|
|
21166
21168
|
${styles$U}
|
|
21167
|
-
${styles$X}
|
|
21168
|
-
${styles$T}
|
|
21169
21169
|
|
|
21170
21170
|
:host {
|
|
21171
21171
|
--ni-private-hover-bottom-border-width: 2px;
|
|
@@ -21286,7 +21286,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21286
21286
|
<slot></slot>
|
|
21287
21287
|
</label>
|
|
21288
21288
|
`);
|
|
21289
|
-
const template$
|
|
21289
|
+
const template$M = (context, definition) => html `
|
|
21290
21290
|
<template
|
|
21291
21291
|
aria-disabled="${x => x.ariaDisabled}"
|
|
21292
21292
|
autocomplete="${x => x.autocomplete}"
|
|
@@ -22061,8 +22061,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22061
22061
|
const nimbleCombobox = Combobox.compose({
|
|
22062
22062
|
baseName: 'combobox',
|
|
22063
22063
|
baseClass: FormAssociatedCombobox,
|
|
22064
|
-
template: template$
|
|
22065
|
-
styles: styles$
|
|
22064
|
+
template: template$M,
|
|
22065
|
+
styles: styles$T,
|
|
22066
22066
|
shadowOptions: {
|
|
22067
22067
|
delegatesFocus: true
|
|
22068
22068
|
},
|
|
@@ -22106,7 +22106,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22106
22106
|
*/
|
|
22107
22107
|
const UserDismissed = Symbol('user dismissed');
|
|
22108
22108
|
|
|
22109
|
-
const styles$
|
|
22109
|
+
const styles$S = css `
|
|
22110
22110
|
${display$2('grid')}
|
|
22111
22111
|
|
|
22112
22112
|
dialog {
|
|
@@ -22199,7 +22199,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22199
22199
|
}
|
|
22200
22200
|
`;
|
|
22201
22201
|
|
|
22202
|
-
const template$
|
|
22202
|
+
const template$L = html `
|
|
22203
22203
|
<template>
|
|
22204
22204
|
<dialog
|
|
22205
22205
|
${ref('dialogElement')}
|
|
@@ -22347,13 +22347,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22347
22347
|
applyMixins(Dialog, ARIAGlobalStatesAndProperties);
|
|
22348
22348
|
const nimbleDialog = Dialog.compose({
|
|
22349
22349
|
baseName: 'dialog',
|
|
22350
|
-
template: template$
|
|
22351
|
-
styles: styles$
|
|
22350
|
+
template: template$L,
|
|
22351
|
+
styles: styles$S,
|
|
22352
22352
|
baseClass: Dialog
|
|
22353
22353
|
});
|
|
22354
22354
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
|
|
22355
22355
|
|
|
22356
|
-
const styles$
|
|
22356
|
+
const styles$R = css `
|
|
22357
22357
|
${display$2('block')}
|
|
22358
22358
|
|
|
22359
22359
|
:host {
|
|
@@ -22496,7 +22496,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22496
22496
|
}
|
|
22497
22497
|
`;
|
|
22498
22498
|
|
|
22499
|
-
const template$
|
|
22499
|
+
const template$K = html `
|
|
22500
22500
|
<dialog
|
|
22501
22501
|
${ref('dialog')}
|
|
22502
22502
|
aria-label="${x => x.ariaLabel}"
|
|
@@ -22638,8 +22638,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22638
22638
|
applyMixins(Drawer, ARIAGlobalStatesAndProperties);
|
|
22639
22639
|
const nimbleDrawer = Drawer.compose({
|
|
22640
22640
|
baseName: 'drawer',
|
|
22641
|
-
template: template$
|
|
22642
|
-
styles: styles$
|
|
22641
|
+
template: template$K,
|
|
22642
|
+
styles: styles$R
|
|
22643
22643
|
});
|
|
22644
22644
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
|
|
22645
22645
|
|
|
@@ -25421,7 +25421,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25421
25421
|
}
|
|
25422
25422
|
}
|
|
25423
25423
|
|
|
25424
|
-
const styles$
|
|
25424
|
+
const styles$Q = css `
|
|
25425
25425
|
${display$2('none')}
|
|
25426
25426
|
`;
|
|
25427
25427
|
|
|
@@ -25486,7 +25486,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25486
25486
|
], LabelProviderCore.prototype, "itemRemove", void 0);
|
|
25487
25487
|
const nimbleLabelProviderCore = LabelProviderCore.compose({
|
|
25488
25488
|
baseName: 'label-provider-core',
|
|
25489
|
-
styles: styles$
|
|
25489
|
+
styles: styles$Q
|
|
25490
25490
|
});
|
|
25491
25491
|
DesignSystem.getOrCreate()
|
|
25492
25492
|
.withPrefix('nimble')
|
|
@@ -25653,13 +25653,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25653
25653
|
], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
|
|
25654
25654
|
const nimbleLabelProviderTable = LabelProviderTable.compose({
|
|
25655
25655
|
baseName: 'label-provider-table',
|
|
25656
|
-
styles: styles$
|
|
25656
|
+
styles: styles$Q
|
|
25657
25657
|
});
|
|
25658
25658
|
DesignSystem.getOrCreate()
|
|
25659
25659
|
.withPrefix('nimble')
|
|
25660
25660
|
.register(nimbleLabelProviderTable());
|
|
25661
25661
|
|
|
25662
|
-
const styles$
|
|
25662
|
+
const styles$P = css `
|
|
25663
25663
|
${display$2('flex')}
|
|
25664
25664
|
|
|
25665
25665
|
:host {
|
|
@@ -25735,7 +25735,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25735
25735
|
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25736
25736
|
* @public
|
|
25737
25737
|
*/
|
|
25738
|
-
const template$
|
|
25738
|
+
const template$J = (context, definition) => html `
|
|
25739
25739
|
<template
|
|
25740
25740
|
aria-checked="${x => x.ariaChecked}"
|
|
25741
25741
|
aria-disabled="${x => x.ariaDisabled}"
|
|
@@ -25848,13 +25848,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25848
25848
|
const nimbleListOption = ListOption.compose({
|
|
25849
25849
|
baseName: 'list-option',
|
|
25850
25850
|
baseClass: ListboxOption,
|
|
25851
|
-
template: template$
|
|
25852
|
-
styles: styles$
|
|
25851
|
+
template: template$J,
|
|
25852
|
+
styles: styles$P
|
|
25853
25853
|
});
|
|
25854
25854
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
|
|
25855
25855
|
const listOptionTag = 'nimble-list-option';
|
|
25856
25856
|
|
|
25857
|
-
const styles$
|
|
25857
|
+
const styles$O = css `
|
|
25858
25858
|
${display$2('flex')}
|
|
25859
25859
|
|
|
25860
25860
|
:host {
|
|
@@ -25916,7 +25916,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25916
25916
|
const isListOption$1 = (n) => {
|
|
25917
25917
|
return n instanceof ListOption;
|
|
25918
25918
|
};
|
|
25919
|
-
const template$
|
|
25919
|
+
const template$I = html `
|
|
25920
25920
|
<template
|
|
25921
25921
|
role="group"
|
|
25922
25922
|
aria-label="${x => x.labelContent}"
|
|
@@ -26058,8 +26058,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26058
26058
|
const nimbleListOptionGroup = ListOptionGroup.compose({
|
|
26059
26059
|
baseName: 'list-option-group',
|
|
26060
26060
|
baseClass: FoundationElement,
|
|
26061
|
-
template: template$
|
|
26062
|
-
styles: styles$
|
|
26061
|
+
template: template$I,
|
|
26062
|
+
styles: styles$O
|
|
26063
26063
|
});
|
|
26064
26064
|
DesignSystem.getOrCreate()
|
|
26065
26065
|
.withPrefix('nimble')
|
|
@@ -26086,9 +26086,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26086
26086
|
attr()
|
|
26087
26087
|
], Mapping$1.prototype, "key", void 0);
|
|
26088
26088
|
|
|
26089
|
-
const template$
|
|
26089
|
+
const template$H = html `<template slot="mapping"></template>`;
|
|
26090
26090
|
|
|
26091
|
-
const styles$
|
|
26091
|
+
const styles$N = css `
|
|
26092
26092
|
${display$2('none')}
|
|
26093
26093
|
`;
|
|
26094
26094
|
|
|
@@ -26104,8 +26104,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26104
26104
|
], MappingEmpty.prototype, "text", void 0);
|
|
26105
26105
|
const emptyMapping = MappingEmpty.compose({
|
|
26106
26106
|
baseName: 'mapping-empty',
|
|
26107
|
-
template: template$
|
|
26108
|
-
styles: styles$
|
|
26107
|
+
template: template$H,
|
|
26108
|
+
styles: styles$N
|
|
26109
26109
|
});
|
|
26110
26110
|
DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
|
|
26111
26111
|
|
|
@@ -26175,8 +26175,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26175
26175
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
26176
26176
|
const iconMapping = MappingIcon.compose({
|
|
26177
26177
|
baseName: 'mapping-icon',
|
|
26178
|
-
template: template$
|
|
26179
|
-
styles: styles$
|
|
26178
|
+
template: template$H,
|
|
26179
|
+
styles: styles$N
|
|
26180
26180
|
});
|
|
26181
26181
|
DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
|
|
26182
26182
|
|
|
@@ -26199,8 +26199,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26199
26199
|
], MappingSpinner.prototype, "textHidden", void 0);
|
|
26200
26200
|
const spinnerMapping = MappingSpinner.compose({
|
|
26201
26201
|
baseName: 'mapping-spinner',
|
|
26202
|
-
template: template$
|
|
26203
|
-
styles: styles$
|
|
26202
|
+
template: template$H,
|
|
26203
|
+
styles: styles$N
|
|
26204
26204
|
});
|
|
26205
26205
|
DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
|
|
26206
26206
|
|
|
@@ -26216,8 +26216,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26216
26216
|
], MappingText.prototype, "text", void 0);
|
|
26217
26217
|
const textMapping = MappingText.compose({
|
|
26218
26218
|
baseName: 'mapping-text',
|
|
26219
|
-
template: template$
|
|
26220
|
-
styles: styles$
|
|
26219
|
+
template: template$H,
|
|
26220
|
+
styles: styles$N
|
|
26221
26221
|
});
|
|
26222
26222
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
|
|
26223
26223
|
|
|
@@ -26519,7 +26519,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26519
26519
|
observable
|
|
26520
26520
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
26521
26521
|
|
|
26522
|
-
const template$
|
|
26522
|
+
const template$G = () => html `
|
|
26523
26523
|
<template
|
|
26524
26524
|
slot="${x => {
|
|
26525
26525
|
if (x.slot) {
|
|
@@ -26536,7 +26536,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26536
26536
|
</template>
|
|
26537
26537
|
`;
|
|
26538
26538
|
|
|
26539
|
-
const styles$
|
|
26539
|
+
const styles$M = css `
|
|
26540
26540
|
${display$2('grid')}
|
|
26541
26541
|
|
|
26542
26542
|
:host {
|
|
@@ -26607,8 +26607,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26607
26607
|
const nimbleMenu = Menu.compose({
|
|
26608
26608
|
baseName: 'menu',
|
|
26609
26609
|
baseClass: Menu$1,
|
|
26610
|
-
template: template$
|
|
26611
|
-
styles: styles$
|
|
26610
|
+
template: template$G,
|
|
26611
|
+
styles: styles$M
|
|
26612
26612
|
});
|
|
26613
26613
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
26614
26614
|
|
|
@@ -26623,7 +26623,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26623
26623
|
auto: 'auto'
|
|
26624
26624
|
};
|
|
26625
26625
|
|
|
26626
|
-
const styles$
|
|
26626
|
+
const styles$L = css `
|
|
26627
26627
|
${display$2('inline-block')}
|
|
26628
26628
|
|
|
26629
26629
|
:host {
|
|
@@ -26641,7 +26641,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26641
26641
|
}
|
|
26642
26642
|
`;
|
|
26643
26643
|
|
|
26644
|
-
const template$
|
|
26644
|
+
const template$F = html `
|
|
26645
26645
|
<template
|
|
26646
26646
|
?open="${x => x.open}"
|
|
26647
26647
|
@focusout="${(x, c) => x.focusoutHandler(c.event)}"
|
|
@@ -26891,8 +26891,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26891
26891
|
], MenuButton.prototype, "slottedMenus", void 0);
|
|
26892
26892
|
const nimbleMenuButton = MenuButton.compose({
|
|
26893
26893
|
baseName: 'menu-button',
|
|
26894
|
-
template: template$
|
|
26895
|
-
styles: styles$
|
|
26894
|
+
template: template$F,
|
|
26895
|
+
styles: styles$L,
|
|
26896
26896
|
shadowOptions: {
|
|
26897
26897
|
delegatesFocus: true
|
|
26898
26898
|
}
|
|
@@ -26900,7 +26900,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26900
26900
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
|
|
26901
26901
|
const menuButtonTag = 'nimble-menu-button';
|
|
26902
26902
|
|
|
26903
|
-
const styles$
|
|
26903
|
+
const styles$K = css `
|
|
26904
26904
|
${display$2('grid')}
|
|
26905
26905
|
|
|
26906
26906
|
:host {
|
|
@@ -26997,7 +26997,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26997
26997
|
baseName: 'menu-item',
|
|
26998
26998
|
baseClass: MenuItem$1,
|
|
26999
26999
|
template: menuItemTemplate,
|
|
27000
|
-
styles: styles$
|
|
27000
|
+
styles: styles$K,
|
|
27001
27001
|
expandCollapseGlyph: arrowExpanderRight16X16.data
|
|
27002
27002
|
});
|
|
27003
27003
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
|
|
@@ -27012,15 +27012,15 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27012
27012
|
frameless: 'frameless'
|
|
27013
27013
|
};
|
|
27014
27014
|
|
|
27015
|
-
const styles$
|
|
27015
|
+
const styles$J = css `
|
|
27016
27016
|
${display$2('inline-block')}
|
|
27017
|
-
${styles$
|
|
27018
|
-
${styles$
|
|
27017
|
+
${styles$Y}
|
|
27018
|
+
${styles$U}
|
|
27019
27019
|
|
|
27020
27020
|
:host {
|
|
27021
27021
|
font: ${bodyFont};
|
|
27022
27022
|
outline: none;
|
|
27023
|
-
${userSelectNone}
|
|
27023
|
+
${userSelectNone$1}
|
|
27024
27024
|
color: ${bodyFontColor};
|
|
27025
27025
|
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
27026
27026
|
--ni-private-height-within-border: calc(
|
|
@@ -27079,7 +27079,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27079
27079
|
content: ' ';
|
|
27080
27080
|
color: transparent;
|
|
27081
27081
|
width: 0px;
|
|
27082
|
-
${userSelectNone}
|
|
27082
|
+
${userSelectNone$1}
|
|
27083
27083
|
}
|
|
27084
27084
|
|
|
27085
27085
|
.root::after {
|
|
@@ -27238,7 +27238,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27238
27238
|
* The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
27239
27239
|
* @public
|
|
27240
27240
|
*/
|
|
27241
|
-
const template$
|
|
27241
|
+
const template$E = (context, definition) => html `
|
|
27242
27242
|
<template class="${x => (x.readOnly ? 'readonly' : '')}">
|
|
27243
27243
|
${labelTemplate$4}
|
|
27244
27244
|
<div class="root" part="root">
|
|
@@ -27392,8 +27392,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27392
27392
|
const nimbleNumberField = NumberField.compose({
|
|
27393
27393
|
baseName: 'number-field',
|
|
27394
27394
|
baseClass: NumberField$1,
|
|
27395
|
-
template: template$
|
|
27396
|
-
styles: styles$
|
|
27395
|
+
template: template$E,
|
|
27396
|
+
styles: styles$J,
|
|
27397
27397
|
shadowOptions: {
|
|
27398
27398
|
delegatesFocus: true
|
|
27399
27399
|
},
|
|
@@ -27436,7 +27436,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27436
27436
|
});
|
|
27437
27437
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
27438
27438
|
|
|
27439
|
-
const styles$
|
|
27439
|
+
const styles$I = css `
|
|
27440
27440
|
${display$2('inline-flex')}
|
|
27441
27441
|
|
|
27442
27442
|
:host {
|
|
@@ -27536,15 +27536,15 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27536
27536
|
baseName: 'radio',
|
|
27537
27537
|
baseClass: Radio$1,
|
|
27538
27538
|
template: radioTemplate,
|
|
27539
|
-
styles: styles$
|
|
27539
|
+
styles: styles$I,
|
|
27540
27540
|
checkedIndicator: circleFilled16X16.data
|
|
27541
27541
|
});
|
|
27542
27542
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
|
|
27543
27543
|
|
|
27544
|
-
const styles$
|
|
27544
|
+
const styles$H = css `
|
|
27545
27545
|
${display$2('inline-block')}
|
|
27546
|
-
${styles$
|
|
27547
|
-
${styles$
|
|
27546
|
+
${styles$Y}
|
|
27547
|
+
${styles$U}
|
|
27548
27548
|
|
|
27549
27549
|
.positioning-region {
|
|
27550
27550
|
display: flex;
|
|
@@ -27583,7 +27583,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27583
27583
|
`;
|
|
27584
27584
|
|
|
27585
27585
|
const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
|
|
27586
|
-
const template$
|
|
27586
|
+
const template$D = html `
|
|
27587
27587
|
<template
|
|
27588
27588
|
role="radiogroup"
|
|
27589
27589
|
aria-disabled="${x => x.disabled}"
|
|
@@ -27623,8 +27623,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27623
27623
|
const nimbleRadioGroup = RadioGroup.compose({
|
|
27624
27624
|
baseName: 'radio-group',
|
|
27625
27625
|
baseClass: RadioGroup$1,
|
|
27626
|
-
template: template$
|
|
27627
|
-
styles: styles$
|
|
27626
|
+
template: template$D,
|
|
27627
|
+
styles: styles$H,
|
|
27628
27628
|
shadowOptions: {
|
|
27629
27629
|
delegatesFocus: true
|
|
27630
27630
|
}
|
|
@@ -39924,7 +39924,17 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39924
39924
|
}
|
|
39925
39925
|
}
|
|
39926
39926
|
}
|
|
39927
|
-
if (
|
|
39927
|
+
if (added.some(n => n.nodeName == "BR") && (view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
39928
|
+
// Browsers sometimes insert a bogus break node if you
|
|
39929
|
+
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
39930
|
+
for (let node of added)
|
|
39931
|
+
if (node.nodeName == "BR" && node.parentNode) {
|
|
39932
|
+
let after = node.nextSibling;
|
|
39933
|
+
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
39934
|
+
node.parentNode.removeChild(node);
|
|
39935
|
+
}
|
|
39936
|
+
}
|
|
39937
|
+
else if (gecko && added.length) {
|
|
39928
39938
|
let brs = added.filter(n => n.nodeName == "BR");
|
|
39929
39939
|
if (brs.length == 2) {
|
|
39930
39940
|
let [a, b] = brs;
|
|
@@ -39942,17 +39952,6 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
39942
39952
|
}
|
|
39943
39953
|
}
|
|
39944
39954
|
}
|
|
39945
|
-
else if ((chrome || safari) && added.some(n => n.nodeName == "BR") &&
|
|
39946
|
-
(view.input.lastKeyCode == 8 || view.input.lastKeyCode == 46)) {
|
|
39947
|
-
// Chrome/Safari sometimes insert a bogus break node if you
|
|
39948
|
-
// backspace out the last bit of text before an inline-flex node (#1552)
|
|
39949
|
-
for (let node of added)
|
|
39950
|
-
if (node.nodeName == "BR" && node.parentNode) {
|
|
39951
|
-
let after = node.nextSibling;
|
|
39952
|
-
if (after && after.nodeType == 1 && after.contentEditable == "false")
|
|
39953
|
-
node.parentNode.removeChild(node);
|
|
39954
|
-
}
|
|
39955
|
-
}
|
|
39956
39955
|
let readSel = null;
|
|
39957
39956
|
// If it looks like the browser has reset the selection to the
|
|
39958
39957
|
// start of the document after focus, restore the selection from
|
|
@@ -46768,7 +46767,7 @@ ${renderedContent}
|
|
|
46768
46767
|
// src/index.ts
|
|
46769
46768
|
var index_default$7 = HardBreak;
|
|
46770
46769
|
|
|
46771
|
-
const styles$
|
|
46770
|
+
const styles$G = css `
|
|
46772
46771
|
${display$2('inline')}
|
|
46773
46772
|
|
|
46774
46773
|
.positioning-region {
|
|
@@ -46805,7 +46804,7 @@ ${renderedContent}
|
|
|
46805
46804
|
baseName: 'toolbar',
|
|
46806
46805
|
baseClass: Toolbar$1,
|
|
46807
46806
|
template: toolbarTemplate,
|
|
46808
|
-
styles: styles$
|
|
46807
|
+
styles: styles$G
|
|
46809
46808
|
});
|
|
46810
46809
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
|
|
46811
46810
|
const toolbarTag = 'nimble-toolbar';
|
|
@@ -46834,8 +46833,8 @@ ${renderedContent}
|
|
|
46834
46833
|
cssCustomPropertyName: null
|
|
46835
46834
|
}).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
|
|
46836
46835
|
|
|
46837
|
-
const styles$
|
|
46838
|
-
${styles$
|
|
46836
|
+
const styles$F = css `
|
|
46837
|
+
${styles$V}
|
|
46839
46838
|
|
|
46840
46839
|
:host {
|
|
46841
46840
|
height: auto;
|
|
@@ -46853,7 +46852,7 @@ ${renderedContent}
|
|
|
46853
46852
|
}
|
|
46854
46853
|
`;
|
|
46855
46854
|
|
|
46856
|
-
const template$
|
|
46855
|
+
const template$C = html `
|
|
46857
46856
|
<template>
|
|
46858
46857
|
<${anchoredRegionTag}
|
|
46859
46858
|
${ref('region')}
|
|
@@ -47141,15 +47140,15 @@ ${renderedContent}
|
|
|
47141
47140
|
], RichTextMentionListbox.prototype, "anchorElement", void 0);
|
|
47142
47141
|
const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
|
|
47143
47142
|
baseName: 'rich-text-mention-listbox',
|
|
47144
|
-
template: template$
|
|
47145
|
-
styles: styles$
|
|
47143
|
+
template: template$C,
|
|
47144
|
+
styles: styles$F
|
|
47146
47145
|
});
|
|
47147
47146
|
DesignSystem.getOrCreate()
|
|
47148
47147
|
.withPrefix('nimble')
|
|
47149
47148
|
.register(nimbleRichTextMentionListbox());
|
|
47150
47149
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
47151
47150
|
|
|
47152
|
-
const template$
|
|
47151
|
+
const template$B = html `
|
|
47153
47152
|
<template
|
|
47154
47153
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
47155
47154
|
@focusout="${x => x.focusoutHandler()}"
|
|
@@ -47251,9 +47250,9 @@ ${renderedContent}
|
|
|
47251
47250
|
</template>
|
|
47252
47251
|
`;
|
|
47253
47252
|
|
|
47254
|
-
const styles$
|
|
47253
|
+
const styles$E = css `
|
|
47255
47254
|
${display$2('inline-flex')}
|
|
47256
|
-
${styles$
|
|
47255
|
+
${styles$Y}
|
|
47257
47256
|
|
|
47258
47257
|
:host {
|
|
47259
47258
|
font: ${bodyFont};
|
|
@@ -56746,7 +56745,7 @@ ${renderedContent}
|
|
|
56746
56745
|
*/
|
|
56747
56746
|
isMarkAhead(parent, index, mark) {
|
|
56748
56747
|
for (;; index++) {
|
|
56749
|
-
if (index
|
|
56748
|
+
if (index >= parent.childCount)
|
|
56750
56749
|
return false;
|
|
56751
56750
|
let next = parent.child(index);
|
|
56752
56751
|
if (next.type.name != this.options.hardBreakNodeName)
|
|
@@ -59608,6 +59607,9 @@ ${renderedContent}
|
|
|
59608
59607
|
},
|
|
59609
59608
|
class: {
|
|
59610
59609
|
default: this.options.HTMLAttributes.class
|
|
59610
|
+
},
|
|
59611
|
+
title: {
|
|
59612
|
+
default: null
|
|
59611
59613
|
}
|
|
59612
59614
|
};
|
|
59613
59615
|
},
|
|
@@ -59647,10 +59649,11 @@ ${renderedContent}
|
|
|
59647
59649
|
});
|
|
59648
59650
|
},
|
|
59649
59651
|
renderMarkdown: (node, h) => {
|
|
59650
|
-
var _a;
|
|
59651
|
-
const href = ((_a = node.attrs) == null ? void 0 : _a.href)
|
|
59652
|
+
var _a, _b, _c, _d;
|
|
59653
|
+
const href = (_b = (_a = node.attrs) == null ? void 0 : _a.href) != null ? _b : "";
|
|
59654
|
+
const title = (_d = (_c = node.attrs) == null ? void 0 : _c.title) != null ? _d : "";
|
|
59652
59655
|
const text = h.renderChildren(node);
|
|
59653
|
-
return `[${text}](${href})`;
|
|
59656
|
+
return title ? `[${text}](${href} "${title}")` : `[${text}](${href})`;
|
|
59654
59657
|
},
|
|
59655
59658
|
addCommands() {
|
|
59656
59659
|
return {
|
|
@@ -63627,8 +63630,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63627
63630
|
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
63628
63631
|
const nimbleRichTextEditor = RichTextEditor.compose({
|
|
63629
63632
|
baseName: 'rich-text-editor',
|
|
63630
|
-
template: template$
|
|
63631
|
-
styles: styles$
|
|
63633
|
+
template: template$B,
|
|
63634
|
+
styles: styles$E,
|
|
63632
63635
|
shadowOptions: {
|
|
63633
63636
|
delegatesFocus: true
|
|
63634
63637
|
}
|
|
@@ -63637,13 +63640,13 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63637
63640
|
.withPrefix('nimble')
|
|
63638
63641
|
.register(nimbleRichTextEditor());
|
|
63639
63642
|
|
|
63640
|
-
const template$
|
|
63643
|
+
const template$A = html `
|
|
63641
63644
|
<template ${children$1({ property: 'childItems', filter: elements() })}>
|
|
63642
63645
|
<div ${ref('viewer')} class="viewer"></div>
|
|
63643
63646
|
</template>
|
|
63644
63647
|
`;
|
|
63645
63648
|
|
|
63646
|
-
const styles$
|
|
63649
|
+
const styles$D = css `
|
|
63647
63650
|
${display$2('flex')}
|
|
63648
63651
|
|
|
63649
63652
|
:host {
|
|
@@ -63756,17 +63759,17 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63756
63759
|
], RichTextViewer.prototype, "markdown", void 0);
|
|
63757
63760
|
const nimbleRichTextViewer = RichTextViewer.compose({
|
|
63758
63761
|
baseName: 'rich-text-viewer',
|
|
63759
|
-
template: template$
|
|
63760
|
-
styles: styles$
|
|
63762
|
+
template: template$A,
|
|
63763
|
+
styles: styles$D
|
|
63761
63764
|
});
|
|
63762
63765
|
DesignSystem.getOrCreate()
|
|
63763
63766
|
.withPrefix('nimble')
|
|
63764
63767
|
.register(nimbleRichTextViewer());
|
|
63765
63768
|
|
|
63766
|
-
const styles$
|
|
63769
|
+
const styles$C = css `
|
|
63770
|
+
${styles$V}
|
|
63771
|
+
${styles$Y}
|
|
63767
63772
|
${styles$U}
|
|
63768
|
-
${styles$X}
|
|
63769
|
-
${styles$T}
|
|
63770
63773
|
|
|
63771
63774
|
${
|
|
63772
63775
|
/* We are using flex `order` to define the visual ordering of the selected value,
|
|
@@ -63929,7 +63932,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63929
63932
|
}
|
|
63930
63933
|
`));
|
|
63931
63934
|
|
|
63932
|
-
const styles$
|
|
63935
|
+
const styles$B = css `
|
|
63933
63936
|
${display$2('inline-grid')}
|
|
63934
63937
|
|
|
63935
63938
|
:host {
|
|
@@ -64099,7 +64102,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64099
64102
|
}
|
|
64100
64103
|
`));
|
|
64101
64104
|
|
|
64102
|
-
const template$
|
|
64105
|
+
const template$z = html `
|
|
64103
64106
|
<template role="progressbar">
|
|
64104
64107
|
${''
|
|
64105
64108
|
/**
|
|
@@ -64146,8 +64149,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64146
64149
|
], Spinner.prototype, "appearance", void 0);
|
|
64147
64150
|
const nimbleSpinner = Spinner.compose({
|
|
64148
64151
|
baseName: 'spinner',
|
|
64149
|
-
template: template$
|
|
64150
|
-
styles: styles$
|
|
64152
|
+
template: template$z,
|
|
64153
|
+
styles: styles$B
|
|
64151
64154
|
});
|
|
64152
64155
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
|
|
64153
64156
|
const spinnerTag = 'nimble-spinner';
|
|
@@ -64163,7 +64166,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64163
64166
|
<slot ${ref('labelSlot')}></slot>
|
|
64164
64167
|
</label>
|
|
64165
64168
|
`);
|
|
64166
|
-
const template$
|
|
64169
|
+
const template$y = (context, definition) => html `
|
|
64167
64170
|
<template
|
|
64168
64171
|
class="${x => [
|
|
64169
64172
|
x.collapsible && 'collapsible',
|
|
@@ -65375,8 +65378,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65375
65378
|
const nimbleSelect = Select.compose({
|
|
65376
65379
|
baseName: 'select',
|
|
65377
65380
|
baseClass: Select$2,
|
|
65378
|
-
template: template$
|
|
65379
|
-
styles: styles$
|
|
65381
|
+
template: template$y,
|
|
65382
|
+
styles: styles$C,
|
|
65380
65383
|
indicator: arrowExpanderDown16X16.data,
|
|
65381
65384
|
end: html `
|
|
65382
65385
|
<${iconExclamationMarkTag}
|
|
@@ -65389,11 +65392,11 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65389
65392
|
applyMixins(Select, StartEnd, DelegatesARIASelect);
|
|
65390
65393
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
|
|
65391
65394
|
|
|
65392
|
-
const styles$
|
|
65395
|
+
const styles$A = css `
|
|
65393
65396
|
${display$2('flex')}
|
|
65394
65397
|
`;
|
|
65395
65398
|
|
|
65396
|
-
const template$
|
|
65399
|
+
const template$x = html `
|
|
65397
65400
|
<template>step</template>
|
|
65398
65401
|
`;
|
|
65399
65402
|
|
|
@@ -65404,16 +65407,16 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65404
65407
|
}
|
|
65405
65408
|
const nimbleStep = Step.compose({
|
|
65406
65409
|
baseName: 'step',
|
|
65407
|
-
template: template$
|
|
65408
|
-
styles: styles$
|
|
65410
|
+
template: template$x,
|
|
65411
|
+
styles: styles$A
|
|
65409
65412
|
});
|
|
65410
65413
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStep());
|
|
65411
65414
|
|
|
65412
|
-
const styles$
|
|
65415
|
+
const styles$z = css `
|
|
65413
65416
|
${display$2('flex')}
|
|
65414
65417
|
`;
|
|
65415
65418
|
|
|
65416
|
-
const template$
|
|
65419
|
+
const template$w = html `
|
|
65417
65420
|
<template>stepper: <slot></slot></template>
|
|
65418
65421
|
`;
|
|
65419
65422
|
|
|
@@ -65424,12 +65427,12 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65424
65427
|
}
|
|
65425
65428
|
const nimbleStepper = Stepper.compose({
|
|
65426
65429
|
baseName: 'stepper',
|
|
65427
|
-
template: template$
|
|
65428
|
-
styles: styles$
|
|
65430
|
+
template: template$w,
|
|
65431
|
+
styles: styles$z
|
|
65429
65432
|
});
|
|
65430
65433
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStepper());
|
|
65431
65434
|
|
|
65432
|
-
const styles$
|
|
65435
|
+
const styles$y = css `
|
|
65433
65436
|
${display$2('inline-flex')}
|
|
65434
65437
|
|
|
65435
65438
|
:host {
|
|
@@ -65656,7 +65659,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65656
65659
|
}
|
|
65657
65660
|
`));
|
|
65658
65661
|
|
|
65659
|
-
const template$
|
|
65662
|
+
const template$v = html `
|
|
65660
65663
|
<template
|
|
65661
65664
|
role="switch"
|
|
65662
65665
|
aria-checked="${x => x.checked}"
|
|
@@ -65700,12 +65703,12 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65700
65703
|
const nimbleSwitch = Switch.compose({
|
|
65701
65704
|
baseClass: Switch$1,
|
|
65702
65705
|
baseName: 'switch',
|
|
65703
|
-
template: template$
|
|
65704
|
-
styles: styles$
|
|
65706
|
+
template: template$v,
|
|
65707
|
+
styles: styles$y
|
|
65705
65708
|
});
|
|
65706
65709
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
|
|
65707
65710
|
|
|
65708
|
-
const styles$
|
|
65711
|
+
const styles$x = css `
|
|
65709
65712
|
${display$2('inline-flex')}
|
|
65710
65713
|
|
|
65711
65714
|
:host {
|
|
@@ -65816,11 +65819,11 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65816
65819
|
baseName: 'tab',
|
|
65817
65820
|
baseClass: Tab$1,
|
|
65818
65821
|
template: tabTemplate,
|
|
65819
|
-
styles: styles$
|
|
65822
|
+
styles: styles$x
|
|
65820
65823
|
});
|
|
65821
65824
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
|
|
65822
65825
|
|
|
65823
|
-
const styles$
|
|
65826
|
+
const styles$w = css `
|
|
65824
65827
|
${display$2('block')}
|
|
65825
65828
|
|
|
65826
65829
|
:host {
|
|
@@ -65839,7 +65842,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65839
65842
|
baseName: 'tab-panel',
|
|
65840
65843
|
baseClass: TabPanel$1,
|
|
65841
65844
|
template: tabPanelTemplate,
|
|
65842
|
-
styles: styles$
|
|
65845
|
+
styles: styles$w
|
|
65843
65846
|
});
|
|
65844
65847
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
|
|
65845
65848
|
|
|
@@ -69565,7 +69568,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
69565
69568
|
}
|
|
69566
69569
|
}
|
|
69567
69570
|
|
|
69568
|
-
const styles$
|
|
69571
|
+
const styles$v = css `
|
|
69569
69572
|
${display$2('flex')}
|
|
69570
69573
|
|
|
69571
69574
|
:host {
|
|
@@ -69593,7 +69596,7 @@ focus outline in that case.
|
|
|
69593
69596
|
}
|
|
69594
69597
|
|
|
69595
69598
|
.disable-select {
|
|
69596
|
-
${userSelectNone}
|
|
69599
|
+
${userSelectNone$1}
|
|
69597
69600
|
}
|
|
69598
69601
|
|
|
69599
69602
|
.table-container {
|
|
@@ -69785,7 +69788,7 @@ focus outline in that case.
|
|
|
69785
69788
|
}
|
|
69786
69789
|
`));
|
|
69787
69790
|
|
|
69788
|
-
const styles$
|
|
69791
|
+
const styles$u = css `
|
|
69789
69792
|
${display$2('flex')}
|
|
69790
69793
|
|
|
69791
69794
|
:host {
|
|
@@ -69818,7 +69821,7 @@ focus outline in that case.
|
|
|
69818
69821
|
}
|
|
69819
69822
|
`;
|
|
69820
69823
|
|
|
69821
|
-
const template$
|
|
69824
|
+
const template$u = html `
|
|
69822
69825
|
<template role="columnheader"
|
|
69823
69826
|
class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
|
|
69824
69827
|
aria-sort="${x => x.ariaSort}"
|
|
@@ -69904,13 +69907,13 @@ focus outline in that case.
|
|
|
69904
69907
|
], TableHeader.prototype, "isGrouped", void 0);
|
|
69905
69908
|
const nimbleTableHeader = TableHeader.compose({
|
|
69906
69909
|
baseName: 'table-header',
|
|
69907
|
-
template: template$
|
|
69908
|
-
styles: styles$
|
|
69910
|
+
template: template$u,
|
|
69911
|
+
styles: styles$u
|
|
69909
69912
|
});
|
|
69910
69913
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
|
|
69911
69914
|
const tableHeaderTag = 'nimble-table-header';
|
|
69912
69915
|
|
|
69913
|
-
const styles$
|
|
69916
|
+
const styles$t = css `
|
|
69914
69917
|
:host .animating {
|
|
69915
69918
|
transition: ${mediumDelay} ease-in;
|
|
69916
69919
|
}
|
|
@@ -69935,9 +69938,9 @@ focus outline in that case.
|
|
|
69935
69938
|
}
|
|
69936
69939
|
`;
|
|
69937
69940
|
|
|
69938
|
-
const styles$
|
|
69941
|
+
const styles$s = css `
|
|
69939
69942
|
${display$2('flex')}
|
|
69940
|
-
${styles$
|
|
69943
|
+
${styles$t}
|
|
69941
69944
|
|
|
69942
69945
|
:host {
|
|
69943
69946
|
width: fit-content;
|
|
@@ -70107,7 +70110,7 @@ focus outline in that case.
|
|
|
70107
70110
|
}
|
|
70108
70111
|
`));
|
|
70109
70112
|
|
|
70110
|
-
const styles$
|
|
70113
|
+
const styles$r = css `
|
|
70111
70114
|
${display$2('flex')}
|
|
70112
70115
|
|
|
70113
70116
|
:host {
|
|
@@ -70152,7 +70155,7 @@ focus outline in that case.
|
|
|
70152
70155
|
}
|
|
70153
70156
|
`;
|
|
70154
70157
|
|
|
70155
|
-
const template$
|
|
70158
|
+
const template$t = html `
|
|
70156
70159
|
<template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
|
|
70157
70160
|
@focusin="${x => x.onCellFocusIn()}"
|
|
70158
70161
|
@blur="${x => x.onCellBlur()}"
|
|
@@ -70249,13 +70252,13 @@ focus outline in that case.
|
|
|
70249
70252
|
], TableCell.prototype, "nestingLevel", void 0);
|
|
70250
70253
|
const nimbleTableCell = TableCell.compose({
|
|
70251
70254
|
baseName: 'table-cell',
|
|
70252
|
-
template: template$
|
|
70253
|
-
styles: styles$
|
|
70255
|
+
template: template$t,
|
|
70256
|
+
styles: styles$r
|
|
70254
70257
|
});
|
|
70255
70258
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
|
|
70256
70259
|
const tableCellTag = 'nimble-table-cell';
|
|
70257
70260
|
|
|
70258
|
-
const template$
|
|
70261
|
+
const template$s = html `
|
|
70259
70262
|
<template
|
|
70260
70263
|
role="row"
|
|
70261
70264
|
aria-selected=${x => x.ariaSelected}
|
|
@@ -70655,15 +70658,15 @@ focus outline in that case.
|
|
|
70655
70658
|
], TableRow.prototype, "ariaSelected", null);
|
|
70656
70659
|
const nimbleTableRow = TableRow.compose({
|
|
70657
70660
|
baseName: 'table-row',
|
|
70658
|
-
template: template$
|
|
70659
|
-
styles: styles$
|
|
70661
|
+
template: template$s,
|
|
70662
|
+
styles: styles$s
|
|
70660
70663
|
});
|
|
70661
70664
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
|
|
70662
70665
|
const tableRowTag = 'nimble-table-row';
|
|
70663
70666
|
|
|
70664
|
-
const styles$
|
|
70667
|
+
const styles$q = css `
|
|
70665
70668
|
${display$2('grid')}
|
|
70666
|
-
${styles$
|
|
70669
|
+
${styles$t}
|
|
70667
70670
|
|
|
70668
70671
|
:host {
|
|
70669
70672
|
align-items: center;
|
|
@@ -70719,7 +70722,7 @@ focus outline in that case.
|
|
|
70719
70722
|
|
|
70720
70723
|
.group-header-view {
|
|
70721
70724
|
padding-left: ${mediumPadding};
|
|
70722
|
-
${userSelectNone}
|
|
70725
|
+
${userSelectNone$1}
|
|
70723
70726
|
overflow: hidden;
|
|
70724
70727
|
}
|
|
70725
70728
|
|
|
@@ -70727,7 +70730,7 @@ focus outline in that case.
|
|
|
70727
70730
|
padding-left: 2px;
|
|
70728
70731
|
padding-right: ${mediumPadding};
|
|
70729
70732
|
pointer-events: none;
|
|
70730
|
-
${userSelectNone}
|
|
70733
|
+
${userSelectNone$1}
|
|
70731
70734
|
}
|
|
70732
70735
|
|
|
70733
70736
|
.checkbox-container {
|
|
@@ -70751,7 +70754,7 @@ focus outline in that case.
|
|
|
70751
70754
|
}
|
|
70752
70755
|
`));
|
|
70753
70756
|
|
|
70754
|
-
const template$
|
|
70757
|
+
const template$r = html `
|
|
70755
70758
|
<template
|
|
70756
70759
|
role="row"
|
|
70757
70760
|
@click=${x => x.onGroupExpandToggle()}
|
|
@@ -70908,13 +70911,13 @@ focus outline in that case.
|
|
|
70908
70911
|
], TableGroupRow.prototype, "allowHover", void 0);
|
|
70909
70912
|
const nimbleTableGroupRow = TableGroupRow.compose({
|
|
70910
70913
|
baseName: 'table-group-row',
|
|
70911
|
-
template: template$
|
|
70912
|
-
styles: styles$
|
|
70914
|
+
template: template$r,
|
|
70915
|
+
styles: styles$q
|
|
70913
70916
|
});
|
|
70914
70917
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
|
|
70915
70918
|
const tableGroupRowTag = 'nimble-table-group-row';
|
|
70916
70919
|
|
|
70917
|
-
const template$
|
|
70920
|
+
const template$q = html `
|
|
70918
70921
|
<template
|
|
70919
70922
|
role="treegrid"
|
|
70920
70923
|
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
@@ -75149,12 +75152,12 @@ focus outline in that case.
|
|
|
75149
75152
|
], Table$1.prototype, "windowShiftKeyDown", void 0);
|
|
75150
75153
|
const nimbleTable = Table$1.compose({
|
|
75151
75154
|
baseName: 'table',
|
|
75152
|
-
template: template$
|
|
75153
|
-
styles: styles$
|
|
75155
|
+
template: template$q,
|
|
75156
|
+
styles: styles$v
|
|
75154
75157
|
});
|
|
75155
75158
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
|
|
75156
75159
|
|
|
75157
|
-
const styles$
|
|
75160
|
+
const styles$p = css `
|
|
75158
75161
|
${display$2('contents')}
|
|
75159
75162
|
|
|
75160
75163
|
.header-content {
|
|
@@ -75166,7 +75169,7 @@ focus outline in that case.
|
|
|
75166
75169
|
|
|
75167
75170
|
// Avoiding a wrapping <template> and be careful about starting and ending whitspace
|
|
75168
75171
|
// so the template can be composed into other column header templates
|
|
75169
|
-
const template$
|
|
75172
|
+
const template$p = html `<span
|
|
75170
75173
|
${overflow('hasOverflow')}
|
|
75171
75174
|
class="header-content"
|
|
75172
75175
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -75231,7 +75234,7 @@ focus outline in that case.
|
|
|
75231
75234
|
return ColumnWithPlaceholder;
|
|
75232
75235
|
}
|
|
75233
75236
|
|
|
75234
|
-
const styles$
|
|
75237
|
+
const styles$o = css `
|
|
75235
75238
|
${display$2('flex')}
|
|
75236
75239
|
|
|
75237
75240
|
:host {
|
|
@@ -75262,7 +75265,7 @@ focus outline in that case.
|
|
|
75262
75265
|
}
|
|
75263
75266
|
`;
|
|
75264
75267
|
|
|
75265
|
-
const template$
|
|
75268
|
+
const template$o = html `
|
|
75266
75269
|
<template
|
|
75267
75270
|
@click="${(x, c) => {
|
|
75268
75271
|
if (typeof x.cellRecord?.href === 'string') {
|
|
@@ -75354,8 +75357,8 @@ focus outline in that case.
|
|
|
75354
75357
|
], TableColumnAnchorCellView.prototype, "showAnchor", null);
|
|
75355
75358
|
const anchorCellView = TableColumnAnchorCellView.compose({
|
|
75356
75359
|
baseName: 'table-column-anchor-cell-view',
|
|
75357
|
-
template: template$
|
|
75358
|
-
styles: styles$
|
|
75360
|
+
template: template$o,
|
|
75361
|
+
styles: styles$o
|
|
75359
75362
|
});
|
|
75360
75363
|
DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
|
|
75361
75364
|
const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
|
|
@@ -75432,7 +75435,7 @@ focus outline in that case.
|
|
|
75432
75435
|
observable
|
|
75433
75436
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
75434
75437
|
|
|
75435
|
-
const template$
|
|
75438
|
+
const template$n = html `
|
|
75436
75439
|
<span
|
|
75437
75440
|
${overflow('hasOverflow')}
|
|
75438
75441
|
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
@@ -75441,7 +75444,7 @@ focus outline in that case.
|
|
|
75441
75444
|
</span>
|
|
75442
75445
|
`;
|
|
75443
75446
|
|
|
75444
|
-
const styles$
|
|
75447
|
+
const styles$n = css `
|
|
75445
75448
|
${display$2('flex')}
|
|
75446
75449
|
|
|
75447
75450
|
span {
|
|
@@ -75465,8 +75468,8 @@ focus outline in that case.
|
|
|
75465
75468
|
}
|
|
75466
75469
|
const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
|
|
75467
75470
|
baseName: 'table-column-text-group-header-view',
|
|
75468
|
-
template: template$
|
|
75469
|
-
styles: styles$
|
|
75471
|
+
template: template$n,
|
|
75472
|
+
styles: styles$n
|
|
75470
75473
|
});
|
|
75471
75474
|
DesignSystem.getOrCreate()
|
|
75472
75475
|
.withPrefix('nimble')
|
|
@@ -75710,8 +75713,8 @@ focus outline in that case.
|
|
|
75710
75713
|
], TableColumnAnchor.prototype, "download", void 0);
|
|
75711
75714
|
const nimbleTableColumnAnchor = TableColumnAnchor.compose({
|
|
75712
75715
|
baseName: 'table-column-anchor',
|
|
75713
|
-
template: template$
|
|
75714
|
-
styles: styles$
|
|
75716
|
+
template: template$p,
|
|
75717
|
+
styles: styles$p
|
|
75715
75718
|
});
|
|
75716
75719
|
DesignSystem.getOrCreate()
|
|
75717
75720
|
.withPrefix('nimble')
|
|
@@ -75763,15 +75766,15 @@ focus outline in that case.
|
|
|
75763
75766
|
}
|
|
75764
75767
|
const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
|
|
75765
75768
|
baseName: 'table-column-date-text-group-header-view',
|
|
75766
|
-
template: template$
|
|
75767
|
-
styles: styles$
|
|
75769
|
+
template: template$n,
|
|
75770
|
+
styles: styles$n
|
|
75768
75771
|
});
|
|
75769
75772
|
DesignSystem.getOrCreate()
|
|
75770
75773
|
.withPrefix('nimble')
|
|
75771
75774
|
.register(tableColumnDateTextGroupHeaderView());
|
|
75772
75775
|
const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
|
|
75773
75776
|
|
|
75774
|
-
const template$
|
|
75777
|
+
const template$m = html `
|
|
75775
75778
|
<template
|
|
75776
75779
|
class="
|
|
75777
75780
|
${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}
|
|
@@ -75787,7 +75790,7 @@ focus outline in that case.
|
|
|
75787
75790
|
</template>
|
|
75788
75791
|
`;
|
|
75789
75792
|
|
|
75790
|
-
const styles$
|
|
75793
|
+
const styles$m = css `
|
|
75791
75794
|
${display$2('flex')}
|
|
75792
75795
|
|
|
75793
75796
|
:host {
|
|
@@ -75889,8 +75892,8 @@ focus outline in that case.
|
|
|
75889
75892
|
}
|
|
75890
75893
|
const dateTextCellView = TableColumnDateTextCellView.compose({
|
|
75891
75894
|
baseName: 'table-column-date-text-cell-view',
|
|
75892
|
-
template: template$
|
|
75893
|
-
styles: styles$
|
|
75895
|
+
template: template$m,
|
|
75896
|
+
styles: styles$m
|
|
75894
75897
|
});
|
|
75895
75898
|
DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
|
|
75896
75899
|
const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
|
|
@@ -76148,8 +76151,8 @@ focus outline in that case.
|
|
|
76148
76151
|
], TableColumnDateText.prototype, "customHourCycle", void 0);
|
|
76149
76152
|
const nimbleTableColumnDateText = TableColumnDateText.compose({
|
|
76150
76153
|
baseName: 'table-column-date-text',
|
|
76151
|
-
template: template$
|
|
76152
|
-
styles: styles$
|
|
76154
|
+
template: template$p,
|
|
76155
|
+
styles: styles$p
|
|
76153
76156
|
});
|
|
76154
76157
|
DesignSystem.getOrCreate()
|
|
76155
76158
|
.withPrefix('nimble')
|
|
@@ -76165,8 +76168,8 @@ focus outline in that case.
|
|
|
76165
76168
|
}
|
|
76166
76169
|
const durationTextCellView = TableColumnDurationTextCellView.compose({
|
|
76167
76170
|
baseName: 'table-column-duration-text-cell-view',
|
|
76168
|
-
template: template$
|
|
76169
|
-
styles: styles$
|
|
76171
|
+
template: template$m,
|
|
76172
|
+
styles: styles$m
|
|
76170
76173
|
});
|
|
76171
76174
|
DesignSystem.getOrCreate()
|
|
76172
76175
|
.withPrefix('nimble')
|
|
@@ -76267,8 +76270,8 @@ focus outline in that case.
|
|
|
76267
76270
|
}
|
|
76268
76271
|
const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
|
|
76269
76272
|
baseName: 'table-column-duration-text-group-header-view',
|
|
76270
|
-
template: template$
|
|
76271
|
-
styles: styles$
|
|
76273
|
+
template: template$n,
|
|
76274
|
+
styles: styles$n
|
|
76272
76275
|
});
|
|
76273
76276
|
DesignSystem.getOrCreate()
|
|
76274
76277
|
.withPrefix('nimble')
|
|
@@ -76320,8 +76323,8 @@ focus outline in that case.
|
|
|
76320
76323
|
}
|
|
76321
76324
|
const nimbleTableColumnDurationText = TableColumnDurationText.compose({
|
|
76322
76325
|
baseName: 'table-column-duration-text',
|
|
76323
|
-
template: template$
|
|
76324
|
-
styles: styles$
|
|
76326
|
+
template: template$p,
|
|
76327
|
+
styles: styles$p
|
|
76325
76328
|
});
|
|
76326
76329
|
DesignSystem.getOrCreate()
|
|
76327
76330
|
.withPrefix('nimble')
|
|
@@ -76429,15 +76432,15 @@ focus outline in that case.
|
|
|
76429
76432
|
attr({ attribute: 'key-type' })
|
|
76430
76433
|
], TableColumnEnumBase.prototype, "keyType", void 0);
|
|
76431
76434
|
|
|
76432
|
-
const styles$
|
|
76433
|
-
${styles$
|
|
76435
|
+
const styles$l = css `
|
|
76436
|
+
${styles$p}
|
|
76434
76437
|
|
|
76435
76438
|
slot[name='mapping'] {
|
|
76436
76439
|
display: none;
|
|
76437
76440
|
}
|
|
76438
76441
|
`;
|
|
76439
76442
|
|
|
76440
|
-
const template$
|
|
76443
|
+
const template$l = html `${template$p}<slot ${slotted('mappings')} name="mapping"></slot>`;
|
|
76441
76444
|
|
|
76442
76445
|
const enumBaseValidityFlagNames = [
|
|
76443
76446
|
'invalidMappingKeyValueForType',
|
|
@@ -76523,7 +76526,7 @@ focus outline in that case.
|
|
|
76523
76526
|
}
|
|
76524
76527
|
}
|
|
76525
76528
|
|
|
76526
|
-
const styles$
|
|
76529
|
+
const styles$k = css `
|
|
76527
76530
|
${display$2('inline-flex')}
|
|
76528
76531
|
|
|
76529
76532
|
:host {
|
|
@@ -76547,7 +76550,7 @@ focus outline in that case.
|
|
|
76547
76550
|
}
|
|
76548
76551
|
`;
|
|
76549
76552
|
|
|
76550
|
-
const template$
|
|
76553
|
+
const template$k = html `
|
|
76551
76554
|
${when(x => x.visualizationTemplate, html `
|
|
76552
76555
|
<span class="reserve-icon-size">
|
|
76553
76556
|
${x => x.visualizationTemplate}
|
|
@@ -76691,15 +76694,15 @@ focus outline in that case.
|
|
|
76691
76694
|
], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
|
|
76692
76695
|
const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
|
|
76693
76696
|
baseName: 'table-column-mapping-group-header-view',
|
|
76694
|
-
template: template$
|
|
76695
|
-
styles: styles$
|
|
76697
|
+
template: template$k,
|
|
76698
|
+
styles: styles$k
|
|
76696
76699
|
});
|
|
76697
76700
|
DesignSystem.getOrCreate()
|
|
76698
76701
|
.withPrefix('nimble')
|
|
76699
76702
|
.register(mappingGroupHeaderView());
|
|
76700
76703
|
const tableColumnMappingGroupHeaderViewTag = 'nimble-table-column-mapping-group-header-view';
|
|
76701
76704
|
|
|
76702
|
-
const styles$
|
|
76705
|
+
const styles$j = css `
|
|
76703
76706
|
${display$2('inline-flex')}
|
|
76704
76707
|
|
|
76705
76708
|
:host {
|
|
@@ -76723,7 +76726,7 @@ focus outline in that case.
|
|
|
76723
76726
|
}
|
|
76724
76727
|
`;
|
|
76725
76728
|
|
|
76726
|
-
const template$
|
|
76729
|
+
const template$j = html `
|
|
76727
76730
|
${when(x => x.visualizationTemplate, html `
|
|
76728
76731
|
<span class="reserve-icon-size">
|
|
76729
76732
|
${x => x.visualizationTemplate}
|
|
@@ -76810,8 +76813,8 @@ focus outline in that case.
|
|
|
76810
76813
|
], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
|
|
76811
76814
|
const mappingCellView = TableColumnMappingCellView.compose({
|
|
76812
76815
|
baseName: 'table-column-mapping-cell-view',
|
|
76813
|
-
template: template$
|
|
76814
|
-
styles: styles$
|
|
76816
|
+
template: template$j,
|
|
76817
|
+
styles: styles$j
|
|
76815
76818
|
});
|
|
76816
76819
|
DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
|
|
76817
76820
|
const tableColumnMappingCellViewTag = 'nimble-table-column-mapping-cell-view';
|
|
@@ -76894,23 +76897,23 @@ focus outline in that case.
|
|
|
76894
76897
|
], TableColumnMapping.prototype, "widthMode", void 0);
|
|
76895
76898
|
const nimbleTableColumnMapping = TableColumnMapping.compose({
|
|
76896
76899
|
baseName: 'table-column-mapping',
|
|
76897
|
-
template: template$
|
|
76898
|
-
styles: styles$
|
|
76900
|
+
template: template$l,
|
|
76901
|
+
styles: styles$l
|
|
76899
76902
|
});
|
|
76900
76903
|
DesignSystem.getOrCreate()
|
|
76901
76904
|
.withPrefix('nimble')
|
|
76902
76905
|
.register(nimbleTableColumnMapping());
|
|
76903
76906
|
|
|
76904
|
-
const template$
|
|
76907
|
+
const template$i = html `
|
|
76905
76908
|
<template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
|
|
76906
|
-
>${template$
|
|
76909
|
+
>${template$p}</template
|
|
76907
76910
|
>
|
|
76908
76911
|
`;
|
|
76909
76912
|
|
|
76910
76913
|
/** @internal */
|
|
76911
76914
|
const cellViewMenuSlotName = 'menu-button-menu';
|
|
76912
76915
|
|
|
76913
|
-
const template$
|
|
76916
|
+
const template$h = html `
|
|
76914
76917
|
${when(x => x.showMenuButton, html `
|
|
76915
76918
|
<${menuButtonTag}
|
|
76916
76919
|
${ref('menuButton')}
|
|
@@ -76929,7 +76932,7 @@ focus outline in that case.
|
|
|
76929
76932
|
`)}
|
|
76930
76933
|
`;
|
|
76931
76934
|
|
|
76932
|
-
const styles$
|
|
76935
|
+
const styles$i = css `
|
|
76933
76936
|
:host {
|
|
76934
76937
|
align-self: center;
|
|
76935
76938
|
width: 100%;
|
|
@@ -77004,8 +77007,8 @@ focus outline in that case.
|
|
|
77004
77007
|
], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
|
|
77005
77008
|
const menuButtonCellView = TableColumnMenuButtonCellView.compose({
|
|
77006
77009
|
baseName: 'table-column-menu-button-cell-view',
|
|
77007
|
-
template: template$
|
|
77008
|
-
styles: styles$
|
|
77010
|
+
template: template$h,
|
|
77011
|
+
styles: styles$i
|
|
77009
77012
|
});
|
|
77010
77013
|
DesignSystem.getOrCreate().withPrefix('nimble').register(menuButtonCellView());
|
|
77011
77014
|
const tableColumnMenuButtonCellViewTag = 'nimble-table-column-menu-button-cell-view';
|
|
@@ -77060,8 +77063,8 @@ focus outline in that case.
|
|
|
77060
77063
|
], TableColumnMenuButton.prototype, "menuSlot", void 0);
|
|
77061
77064
|
const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
|
|
77062
77065
|
baseName: 'table-column-menu-button',
|
|
77063
|
-
template: template$
|
|
77064
|
-
styles: styles$
|
|
77066
|
+
template: template$i,
|
|
77067
|
+
styles: styles$p
|
|
77065
77068
|
});
|
|
77066
77069
|
DesignSystem.getOrCreate()
|
|
77067
77070
|
.withPrefix('nimble')
|
|
@@ -77069,7 +77072,7 @@ focus outline in that case.
|
|
|
77069
77072
|
|
|
77070
77073
|
// Avoiding a wrapping <template> and be careful about starting and ending whitespace
|
|
77071
77074
|
// so the template can be composed into other column header templates
|
|
77072
|
-
const template$
|
|
77075
|
+
const template$g = html `<span
|
|
77073
77076
|
${overflow('hasOverflow')}
|
|
77074
77077
|
class="header-content"
|
|
77075
77078
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -77088,8 +77091,8 @@ focus outline in that case.
|
|
|
77088
77091
|
}
|
|
77089
77092
|
const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
|
|
77090
77093
|
baseName: 'table-column-number-text-group-header-view',
|
|
77091
|
-
template: template$
|
|
77092
|
-
styles: styles$
|
|
77094
|
+
template: template$n,
|
|
77095
|
+
styles: styles$n
|
|
77093
77096
|
});
|
|
77094
77097
|
DesignSystem.getOrCreate()
|
|
77095
77098
|
.withPrefix('nimble')
|
|
@@ -77110,8 +77113,8 @@ focus outline in that case.
|
|
|
77110
77113
|
}
|
|
77111
77114
|
const numberTextCellView = TableColumnNumberTextCellView.compose({
|
|
77112
77115
|
baseName: 'table-column-number-text-cell-view',
|
|
77113
|
-
template: template$
|
|
77114
|
-
styles: styles$
|
|
77116
|
+
template: template$m,
|
|
77117
|
+
styles: styles$m
|
|
77115
77118
|
});
|
|
77116
77119
|
DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
|
|
77117
77120
|
const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
|
|
@@ -77651,8 +77654,8 @@ focus outline in that case.
|
|
|
77651
77654
|
], TableColumnNumberText.prototype, "unit", void 0);
|
|
77652
77655
|
const nimbleTableColumnNumberText = TableColumnNumberText.compose({
|
|
77653
77656
|
baseName: 'table-column-number-text',
|
|
77654
|
-
template: template$
|
|
77655
|
-
styles: styles$
|
|
77657
|
+
template: template$g,
|
|
77658
|
+
styles: styles$p
|
|
77656
77659
|
});
|
|
77657
77660
|
DesignSystem.getOrCreate()
|
|
77658
77661
|
.withPrefix('nimble')
|
|
@@ -77670,8 +77673,8 @@ focus outline in that case.
|
|
|
77670
77673
|
}
|
|
77671
77674
|
const textCellView = TableColumnTextCellView.compose({
|
|
77672
77675
|
baseName: 'table-column-text-cell-view',
|
|
77673
|
-
template: template$
|
|
77674
|
-
styles: styles$
|
|
77676
|
+
template: template$m,
|
|
77677
|
+
styles: styles$m
|
|
77675
77678
|
});
|
|
77676
77679
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
|
|
77677
77680
|
const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
|
|
@@ -77725,15 +77728,15 @@ focus outline in that case.
|
|
|
77725
77728
|
}
|
|
77726
77729
|
const nimbleTableColumnText = TableColumnText.compose({
|
|
77727
77730
|
baseName: 'table-column-text',
|
|
77728
|
-
template: template$
|
|
77729
|
-
styles: styles$
|
|
77731
|
+
template: template$p,
|
|
77732
|
+
styles: styles$p
|
|
77730
77733
|
});
|
|
77731
77734
|
DesignSystem.getOrCreate()
|
|
77732
77735
|
.withPrefix('nimble')
|
|
77733
77736
|
.register(nimbleTableColumnText());
|
|
77734
77737
|
|
|
77735
|
-
const styles$
|
|
77736
|
-
${styles$
|
|
77738
|
+
const styles$h = css `
|
|
77739
|
+
${styles$16}
|
|
77737
77740
|
|
|
77738
77741
|
.tabpanel {
|
|
77739
77742
|
overflow: auto;
|
|
@@ -77814,12 +77817,12 @@ focus outline in that case.
|
|
|
77814
77817
|
const nimbleTabs = Tabs.compose({
|
|
77815
77818
|
baseName: 'tabs',
|
|
77816
77819
|
baseClass: Tabs$1,
|
|
77817
|
-
template: template$
|
|
77818
|
-
styles: styles$
|
|
77820
|
+
template: template$S,
|
|
77821
|
+
styles: styles$h
|
|
77819
77822
|
});
|
|
77820
77823
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
|
|
77821
77824
|
|
|
77822
|
-
const styles$
|
|
77825
|
+
const styles$g = css `
|
|
77823
77826
|
${display$2('flex')}
|
|
77824
77827
|
|
|
77825
77828
|
:host {
|
|
@@ -77851,7 +77854,7 @@ focus outline in that case.
|
|
|
77851
77854
|
}
|
|
77852
77855
|
`;
|
|
77853
77856
|
|
|
77854
|
-
const template$
|
|
77857
|
+
const template$f = (context, definition) => html `
|
|
77855
77858
|
<template slot="end">
|
|
77856
77859
|
${when(x => x.defaultSlottedElements.length > 0, html `
|
|
77857
77860
|
<div class="separator"></div>
|
|
@@ -77883,8 +77886,8 @@ focus outline in that case.
|
|
|
77883
77886
|
], TabsToolbar.prototype, "defaultSlottedElements", void 0);
|
|
77884
77887
|
const nimbleTabsToolbar = TabsToolbar.compose({
|
|
77885
77888
|
baseName: 'tabs-toolbar',
|
|
77886
|
-
template: template$
|
|
77887
|
-
styles: styles$
|
|
77889
|
+
template: template$f,
|
|
77890
|
+
styles: styles$g
|
|
77888
77891
|
});
|
|
77889
77892
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
|
|
77890
77893
|
applyMixins(TabsToolbar, StartEnd);
|
|
@@ -77894,15 +77897,15 @@ focus outline in that case.
|
|
|
77894
77897
|
block: 'block'
|
|
77895
77898
|
};
|
|
77896
77899
|
|
|
77897
|
-
const styles$
|
|
77900
|
+
const styles$f = css `
|
|
77898
77901
|
${display$2('inline-flex')}
|
|
77899
|
-
${styles$
|
|
77900
|
-
${styles$
|
|
77902
|
+
${styles$Y}
|
|
77903
|
+
${styles$U}
|
|
77901
77904
|
|
|
77902
77905
|
:host {
|
|
77903
77906
|
font: ${bodyFont};
|
|
77904
77907
|
outline: none;
|
|
77905
|
-
${userSelectNone}
|
|
77908
|
+
${userSelectNone$1}
|
|
77906
77909
|
color: ${bodyFontColor};
|
|
77907
77910
|
flex-direction: column;
|
|
77908
77911
|
vertical-align: top;
|
|
@@ -78089,7 +78092,7 @@ focus outline in that case.
|
|
|
78089
78092
|
<slot ${slotted('defaultSlottedNodes')}></slot>
|
|
78090
78093
|
</label>
|
|
78091
78094
|
`);
|
|
78092
|
-
const template$
|
|
78095
|
+
const template$e = () => html `
|
|
78093
78096
|
${labelTemplate$1}
|
|
78094
78097
|
<div class="container">
|
|
78095
78098
|
<textarea
|
|
@@ -78237,8 +78240,8 @@ focus outline in that case.
|
|
|
78237
78240
|
const nimbleTextArea = TextArea.compose({
|
|
78238
78241
|
baseName: 'text-area',
|
|
78239
78242
|
baseClass: TextArea$1,
|
|
78240
|
-
template: template$
|
|
78241
|
-
styles: styles$
|
|
78243
|
+
template: template$e,
|
|
78244
|
+
styles: styles$f,
|
|
78242
78245
|
shadowOptions: {
|
|
78243
78246
|
delegatesFocus: true
|
|
78244
78247
|
}
|
|
@@ -78255,15 +78258,15 @@ focus outline in that case.
|
|
|
78255
78258
|
frameless: 'frameless'
|
|
78256
78259
|
};
|
|
78257
78260
|
|
|
78258
|
-
const styles$
|
|
78261
|
+
const styles$e = css `
|
|
78259
78262
|
${display$2('inline-block')}
|
|
78260
|
-
${styles$
|
|
78261
|
-
${styles$
|
|
78263
|
+
${styles$Y}
|
|
78264
|
+
${styles$U}
|
|
78262
78265
|
|
|
78263
78266
|
:host {
|
|
78264
78267
|
font: ${bodyFont};
|
|
78265
78268
|
outline: none;
|
|
78266
|
-
${userSelectNone}
|
|
78269
|
+
${userSelectNone$1}
|
|
78267
78270
|
color: ${bodyFontColor};
|
|
78268
78271
|
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
78269
78272
|
--ni-private-height-within-border: calc(
|
|
@@ -78334,7 +78337,7 @@ focus outline in that case.
|
|
|
78334
78337
|
content: ' ';
|
|
78335
78338
|
color: transparent;
|
|
78336
78339
|
width: 0px;
|
|
78337
|
-
${userSelectNone}
|
|
78340
|
+
${userSelectNone$1}
|
|
78338
78341
|
}
|
|
78339
78342
|
|
|
78340
78343
|
:host([appearance='frameless'][full-bleed]) .root::before {
|
|
@@ -78346,7 +78349,7 @@ focus outline in that case.
|
|
|
78346
78349
|
content: ' ';
|
|
78347
78350
|
color: transparent;
|
|
78348
78351
|
width: 0px;
|
|
78349
|
-
${userSelectNone}
|
|
78352
|
+
${userSelectNone$1}
|
|
78350
78353
|
}
|
|
78351
78354
|
|
|
78352
78355
|
:host([appearance='frameless'][full-bleed]) .root::after {
|
|
@@ -78532,7 +78535,7 @@ focus outline in that case.
|
|
|
78532
78535
|
* The template for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
78533
78536
|
* @public
|
|
78534
78537
|
*/
|
|
78535
|
-
const template$
|
|
78538
|
+
const template$d = (context, definition) => html `
|
|
78536
78539
|
<template
|
|
78537
78540
|
class="
|
|
78538
78541
|
${x => (x.readOnly ? 'readonly' : '')}
|
|
@@ -78617,8 +78620,8 @@ focus outline in that case.
|
|
|
78617
78620
|
const nimbleTextField = TextField.compose({
|
|
78618
78621
|
baseName: 'text-field',
|
|
78619
78622
|
baseClass: TextField$1,
|
|
78620
|
-
template: template$
|
|
78621
|
-
styles: styles$
|
|
78623
|
+
template: template$d,
|
|
78624
|
+
styles: styles$e,
|
|
78622
78625
|
shadowOptions: {
|
|
78623
78626
|
delegatesFocus: true
|
|
78624
78627
|
},
|
|
@@ -78635,7 +78638,7 @@ focus outline in that case.
|
|
|
78635
78638
|
});
|
|
78636
78639
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
|
|
78637
78640
|
|
|
78638
|
-
const styles$
|
|
78641
|
+
const styles$d = css `
|
|
78639
78642
|
${display$2('inline-flex')}
|
|
78640
78643
|
|
|
78641
78644
|
:host {
|
|
@@ -78721,7 +78724,7 @@ focus outline in that case.
|
|
|
78721
78724
|
}
|
|
78722
78725
|
`));
|
|
78723
78726
|
|
|
78724
|
-
const template$
|
|
78727
|
+
const template$c = html `
|
|
78725
78728
|
${when(x => x.tooltipVisible, html `
|
|
78726
78729
|
<${anchoredRegionTag}
|
|
78727
78730
|
class="anchored-region"
|
|
@@ -78773,8 +78776,8 @@ focus outline in that case.
|
|
|
78773
78776
|
const nimbleTooltip = Tooltip.compose({
|
|
78774
78777
|
baseName: 'tooltip',
|
|
78775
78778
|
baseClass: Tooltip$1,
|
|
78776
|
-
template: template$
|
|
78777
|
-
styles: styles$
|
|
78779
|
+
template: template$c,
|
|
78780
|
+
styles: styles$d
|
|
78778
78781
|
});
|
|
78779
78782
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
|
|
78780
78783
|
|
|
@@ -78862,7 +78865,7 @@ focus outline in that case.
|
|
|
78862
78865
|
}
|
|
78863
78866
|
}
|
|
78864
78867
|
|
|
78865
|
-
const styles$
|
|
78868
|
+
const styles$c = css `
|
|
78866
78869
|
${display$2('block')}
|
|
78867
78870
|
|
|
78868
78871
|
:host {
|
|
@@ -78942,7 +78945,7 @@ focus outline in that case.
|
|
|
78942
78945
|
padding-left: 10px;
|
|
78943
78946
|
font: inherit;
|
|
78944
78947
|
font-size: ${bodyFontSize};
|
|
78945
|
-
${userSelectNone}
|
|
78948
|
+
${userSelectNone$1}
|
|
78946
78949
|
position: relative;
|
|
78947
78950
|
margin-inline-start: ${iconSize};
|
|
78948
78951
|
}
|
|
@@ -79079,12 +79082,12 @@ focus outline in that case.
|
|
|
79079
79082
|
baseName: 'tree-item',
|
|
79080
79083
|
baseClass: TreeItem$1,
|
|
79081
79084
|
template: treeItemTemplate,
|
|
79082
|
-
styles: styles$
|
|
79085
|
+
styles: styles$c,
|
|
79083
79086
|
expandCollapseGlyph: arrowExpanderUp16X16.data
|
|
79084
79087
|
});
|
|
79085
79088
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeItem());
|
|
79086
79089
|
|
|
79087
|
-
const styles$
|
|
79090
|
+
const styles$b = css `
|
|
79088
79091
|
${display$2('flex')}
|
|
79089
79092
|
|
|
79090
79093
|
:host {
|
|
@@ -79098,7 +79101,7 @@ focus outline in that case.
|
|
|
79098
79101
|
}
|
|
79099
79102
|
`;
|
|
79100
79103
|
|
|
79101
|
-
const template$
|
|
79104
|
+
const template$b = html `
|
|
79102
79105
|
<template
|
|
79103
79106
|
role="tree"
|
|
79104
79107
|
${ref('treeView')}
|
|
@@ -79194,8 +79197,8 @@ focus outline in that case.
|
|
|
79194
79197
|
const nimbleTreeView = TreeView.compose({
|
|
79195
79198
|
baseName: 'tree-view',
|
|
79196
79199
|
baseClass: TreeView$1,
|
|
79197
|
-
template: template$
|
|
79198
|
-
styles: styles$
|
|
79200
|
+
template: template$b,
|
|
79201
|
+
styles: styles$b
|
|
79199
79202
|
});
|
|
79200
79203
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
|
|
79201
79204
|
|
|
@@ -79311,9 +79314,9 @@ focus outline in that case.
|
|
|
79311
79314
|
}
|
|
79312
79315
|
const unitScaleByte = new UnitScaleByte();
|
|
79313
79316
|
|
|
79314
|
-
const template$
|
|
79317
|
+
const template$a = html `<template slot="unit"></template>`;
|
|
79315
79318
|
|
|
79316
|
-
const styles$
|
|
79319
|
+
const styles$a = css `
|
|
79317
79320
|
${display$2('none')}
|
|
79318
79321
|
`;
|
|
79319
79322
|
|
|
@@ -79341,8 +79344,8 @@ focus outline in that case.
|
|
|
79341
79344
|
], UnitByte.prototype, "binary", void 0);
|
|
79342
79345
|
const nimbleUnitByte = UnitByte.compose({
|
|
79343
79346
|
baseName: 'unit-byte',
|
|
79344
|
-
template: template$
|
|
79345
|
-
styles: styles$
|
|
79347
|
+
template: template$a,
|
|
79348
|
+
styles: styles$a
|
|
79346
79349
|
});
|
|
79347
79350
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
|
|
79348
79351
|
|
|
@@ -79394,8 +79397,8 @@ focus outline in that case.
|
|
|
79394
79397
|
}
|
|
79395
79398
|
const nimbleUnitVolt = UnitVolt.compose({
|
|
79396
79399
|
baseName: 'unit-volt',
|
|
79397
|
-
template: template$
|
|
79398
|
-
styles: styles$
|
|
79400
|
+
template: template$a,
|
|
79401
|
+
styles: styles$a
|
|
79399
79402
|
});
|
|
79400
79403
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
|
|
79401
79404
|
|
|
@@ -93709,7 +93712,7 @@ focus outline in that case.
|
|
|
93709
93712
|
return new Table(reader.readAll());
|
|
93710
93713
|
}
|
|
93711
93714
|
|
|
93712
|
-
const template$
|
|
93715
|
+
const template$9 = html `
|
|
93713
93716
|
<div class="wafer-map-container">
|
|
93714
93717
|
<svg class="svg-root">
|
|
93715
93718
|
<g ${ref('zoomContainer')} transform=${x => x.transform.toString()}>
|
|
@@ -93742,7 +93745,7 @@ focus outline in that case.
|
|
|
93742
93745
|
</div>
|
|
93743
93746
|
`;
|
|
93744
93747
|
|
|
93745
|
-
const styles$
|
|
93748
|
+
const styles$9 = css `
|
|
93746
93749
|
${display$2('inline-block')}
|
|
93747
93750
|
|
|
93748
93751
|
:host {
|
|
@@ -96767,8 +96770,8 @@ focus outline in that case.
|
|
|
96767
96770
|
], WaferMap.prototype, "colorScale", void 0);
|
|
96768
96771
|
const nimbleWaferMap = WaferMap.compose({
|
|
96769
96772
|
baseName: 'wafer-map',
|
|
96770
|
-
template: template$
|
|
96771
|
-
styles: styles$
|
|
96773
|
+
template: template$9,
|
|
96774
|
+
styles: styles$9
|
|
96772
96775
|
});
|
|
96773
96776
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
|
|
96774
96777
|
|
|
@@ -96780,7 +96783,7 @@ focus outline in that case.
|
|
|
96780
96783
|
*/
|
|
96781
96784
|
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;}`;
|
|
96782
96785
|
|
|
96783
|
-
const styles$
|
|
96786
|
+
const styles$8 = css `
|
|
96784
96787
|
${display$1('flex')}
|
|
96785
96788
|
|
|
96786
96789
|
:host {
|
|
@@ -96820,7 +96823,7 @@ focus outline in that case.
|
|
|
96820
96823
|
}
|
|
96821
96824
|
`;
|
|
96822
96825
|
|
|
96823
|
-
const template$
|
|
96826
|
+
const template$8 = html `
|
|
96824
96827
|
<div class="messages"><slot></slot></div>
|
|
96825
96828
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
96826
96829
|
<slot name="input" ${slotted({ property: 'slottedInputElements' })}>
|
|
@@ -96860,14 +96863,14 @@ focus outline in that case.
|
|
|
96860
96863
|
], ChatConversation.prototype, "slottedInputElements", void 0);
|
|
96861
96864
|
const sprightChatConversation = ChatConversation.compose({
|
|
96862
96865
|
baseName: 'chat-conversation',
|
|
96863
|
-
template: template$
|
|
96864
|
-
styles: styles$
|
|
96866
|
+
template: template$8,
|
|
96867
|
+
styles: styles$8
|
|
96865
96868
|
});
|
|
96866
96869
|
DesignSystem.getOrCreate()
|
|
96867
96870
|
.withPrefix('spright')
|
|
96868
96871
|
.register(sprightChatConversation());
|
|
96869
96872
|
|
|
96870
|
-
const styles$
|
|
96873
|
+
const styles$7 = css `
|
|
96871
96874
|
${display$1('flex')}
|
|
96872
96875
|
|
|
96873
96876
|
:host {
|
|
@@ -96943,7 +96946,7 @@ focus outline in that case.
|
|
|
96943
96946
|
}
|
|
96944
96947
|
`;
|
|
96945
96948
|
|
|
96946
|
-
const template$
|
|
96949
|
+
const template$7 = html `
|
|
96947
96950
|
<div class="container">
|
|
96948
96951
|
<textarea
|
|
96949
96952
|
${ref('textArea')}
|
|
@@ -97064,8 +97067,8 @@ focus outline in that case.
|
|
|
97064
97067
|
], ChatInput.prototype, "disableSendButton", void 0);
|
|
97065
97068
|
const sprightChatInput = ChatInput.compose({
|
|
97066
97069
|
baseName: 'chat-input',
|
|
97067
|
-
template: template$
|
|
97068
|
-
styles: styles$
|
|
97070
|
+
template: template$7,
|
|
97071
|
+
styles: styles$7,
|
|
97069
97072
|
shadowOptions: {
|
|
97070
97073
|
delegatesFocus: true
|
|
97071
97074
|
}
|
|
@@ -97083,7 +97086,7 @@ focus outline in that case.
|
|
|
97083
97086
|
inbound: 'inbound'
|
|
97084
97087
|
};
|
|
97085
97088
|
|
|
97086
|
-
const styles$
|
|
97089
|
+
const styles$6 = css `
|
|
97087
97090
|
${display$1('flex')}
|
|
97088
97091
|
|
|
97089
97092
|
:host {
|
|
@@ -97157,7 +97160,7 @@ focus outline in that case.
|
|
|
97157
97160
|
}
|
|
97158
97161
|
`;
|
|
97159
97162
|
|
|
97160
|
-
const template$
|
|
97163
|
+
const template$6 = (context, definition) => html `
|
|
97161
97164
|
<div class="container">
|
|
97162
97165
|
${startSlotTemplate(context, definition)}
|
|
97163
97166
|
<section class="message-content">
|
|
@@ -97206,12 +97209,12 @@ focus outline in that case.
|
|
|
97206
97209
|
applyMixins(ChatMessage, StartEnd);
|
|
97207
97210
|
const sprightChatMessage = ChatMessage.compose({
|
|
97208
97211
|
baseName: 'chat-message',
|
|
97209
|
-
template: template$
|
|
97210
|
-
styles: styles$
|
|
97212
|
+
template: template$6,
|
|
97213
|
+
styles: styles$6
|
|
97211
97214
|
});
|
|
97212
97215
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
|
|
97213
97216
|
|
|
97214
|
-
const styles$
|
|
97217
|
+
const styles$5 = css `
|
|
97215
97218
|
${display$1('flex')}
|
|
97216
97219
|
|
|
97217
97220
|
:host {
|
|
@@ -97269,7 +97272,7 @@ focus outline in that case.
|
|
|
97269
97272
|
}
|
|
97270
97273
|
`;
|
|
97271
97274
|
|
|
97272
|
-
const template$
|
|
97275
|
+
const template$5 = (context, definition) => html `
|
|
97273
97276
|
<div class="container">
|
|
97274
97277
|
${startSlotTemplate(context, definition)}
|
|
97275
97278
|
<section class="message-content">
|
|
@@ -97307,12 +97310,12 @@ focus outline in that case.
|
|
|
97307
97310
|
applyMixins(ChatMessageInbound, StartEnd);
|
|
97308
97311
|
const sprightChatMessageInbound = ChatMessageInbound.compose({
|
|
97309
97312
|
baseName: 'chat-message-inbound',
|
|
97310
|
-
template: template$
|
|
97311
|
-
styles: styles$
|
|
97313
|
+
template: template$5,
|
|
97314
|
+
styles: styles$5
|
|
97312
97315
|
});
|
|
97313
97316
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
|
|
97314
97317
|
|
|
97315
|
-
const styles$
|
|
97318
|
+
const styles$4 = css `
|
|
97316
97319
|
${display$1('flex')}
|
|
97317
97320
|
|
|
97318
97321
|
:host {
|
|
@@ -97346,7 +97349,7 @@ focus outline in that case.
|
|
|
97346
97349
|
}
|
|
97347
97350
|
`;
|
|
97348
97351
|
|
|
97349
|
-
const template$
|
|
97352
|
+
const template$4 = () => html `
|
|
97350
97353
|
<div class="container">
|
|
97351
97354
|
<section class="message-content">
|
|
97352
97355
|
<slot></slot>
|
|
@@ -97361,12 +97364,12 @@ focus outline in that case.
|
|
|
97361
97364
|
}
|
|
97362
97365
|
const sprightChatMessageOutbound = ChatMessageOutbound.compose({
|
|
97363
97366
|
baseName: 'chat-message-outbound',
|
|
97364
|
-
template: template$
|
|
97365
|
-
styles: styles$
|
|
97367
|
+
template: template$4,
|
|
97368
|
+
styles: styles$4
|
|
97366
97369
|
});
|
|
97367
97370
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageOutbound());
|
|
97368
97371
|
|
|
97369
|
-
const styles$
|
|
97372
|
+
const styles$3 = css `
|
|
97370
97373
|
${display$1('flex')}
|
|
97371
97374
|
|
|
97372
97375
|
:host {
|
|
@@ -97393,7 +97396,7 @@ focus outline in that case.
|
|
|
97393
97396
|
}
|
|
97394
97397
|
`;
|
|
97395
97398
|
|
|
97396
|
-
const template$
|
|
97399
|
+
const template$3 = () => html `
|
|
97397
97400
|
<div class="container">
|
|
97398
97401
|
<section class="message-content">
|
|
97399
97402
|
<slot></slot>
|
|
@@ -97408,12 +97411,12 @@ focus outline in that case.
|
|
|
97408
97411
|
}
|
|
97409
97412
|
const sprightChatMessageSystem = ChatMessageSystem.compose({
|
|
97410
97413
|
baseName: 'chat-message-system',
|
|
97411
|
-
template: template$
|
|
97412
|
-
styles: styles$
|
|
97414
|
+
template: template$3,
|
|
97415
|
+
styles: styles$3
|
|
97413
97416
|
});
|
|
97414
97417
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
|
|
97415
97418
|
|
|
97416
|
-
const styles$
|
|
97419
|
+
const styles$2 = css `
|
|
97417
97420
|
${display$1('inline-block')}
|
|
97418
97421
|
|
|
97419
97422
|
:host {
|
|
@@ -97438,7 +97441,7 @@ focus outline in that case.
|
|
|
97438
97441
|
}
|
|
97439
97442
|
`;
|
|
97440
97443
|
|
|
97441
|
-
const template$
|
|
97444
|
+
const template$2 = html `<slot></slot>`;
|
|
97442
97445
|
|
|
97443
97446
|
/**
|
|
97444
97447
|
* A Spright demo component (not for production use)
|
|
@@ -97447,8 +97450,8 @@ focus outline in that case.
|
|
|
97447
97450
|
}
|
|
97448
97451
|
const sprightRectangle = Rectangle.compose({
|
|
97449
97452
|
baseName: 'rectangle',
|
|
97450
|
-
template: template$
|
|
97451
|
-
styles: styles$
|
|
97453
|
+
template: template$2,
|
|
97454
|
+
styles: styles$2
|
|
97452
97455
|
});
|
|
97453
97456
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightRectangle());
|
|
97454
97457
|
|
|
@@ -97460,7 +97463,7 @@ focus outline in that case.
|
|
|
97460
97463
|
*/
|
|
97461
97464
|
const display = (displayValue) => `${display$3(displayValue)}:host{box-sizing:border-box;}*{box-sizing:border-box;}:host::before,:host::after,::before,::after{box-sizing:border-box;}`;
|
|
97462
97465
|
|
|
97463
|
-
const styles = css `
|
|
97466
|
+
const styles$1 = css `
|
|
97464
97467
|
${display('inline-block')}
|
|
97465
97468
|
|
|
97466
97469
|
:host {
|
|
@@ -97485,7 +97488,7 @@ focus outline in that case.
|
|
|
97485
97488
|
}
|
|
97486
97489
|
`;
|
|
97487
97490
|
|
|
97488
|
-
const template = html `<slot></slot>`;
|
|
97491
|
+
const template$1 = html `<slot></slot>`;
|
|
97489
97492
|
|
|
97490
97493
|
/**
|
|
97491
97494
|
* A Ok demo component (not for production use)
|
|
@@ -97494,10 +97497,89 @@ focus outline in that case.
|
|
|
97494
97497
|
}
|
|
97495
97498
|
const okButton = Button.compose({
|
|
97496
97499
|
baseName: 'button',
|
|
97497
|
-
template,
|
|
97498
|
-
styles
|
|
97500
|
+
template: template$1,
|
|
97501
|
+
styles: styles$1
|
|
97499
97502
|
});
|
|
97500
97503
|
DesignSystem.getOrCreate().withPrefix('ok').register(okButton());
|
|
97501
97504
|
|
|
97505
|
+
/**
|
|
97506
|
+
* Set user-select: none in a way that works across all supported browsers.
|
|
97507
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#browser_compatibility
|
|
97508
|
+
*/
|
|
97509
|
+
const userSelectNone = cssPartial `
|
|
97510
|
+
user-select: none;
|
|
97511
|
+
-webkit-user-select: none;
|
|
97512
|
+
`;
|
|
97513
|
+
|
|
97514
|
+
const styles = css `
|
|
97515
|
+
${display('inline-flex')}
|
|
97516
|
+
|
|
97517
|
+
:host {
|
|
97518
|
+
align-items: center;
|
|
97519
|
+
${userSelectNone}
|
|
97520
|
+
width: ${iconSize};
|
|
97521
|
+
height: ${iconSize};
|
|
97522
|
+
}
|
|
97523
|
+
|
|
97524
|
+
img {
|
|
97525
|
+
width: 100%;
|
|
97526
|
+
height: 100%;
|
|
97527
|
+
}
|
|
97528
|
+
`;
|
|
97529
|
+
|
|
97530
|
+
const template = html `<img aria-hidden="true" src=${x => x.url}>`;
|
|
97531
|
+
|
|
97532
|
+
/* eslint-disable max-classes-per-file */
|
|
97533
|
+
/**
|
|
97534
|
+
* Base class for dynamic icons. Not intended to be used directly, instead use to register dynamic icons:
|
|
97535
|
+
* ```
|
|
97536
|
+
* customElements.get('ok-icon-dynamic').registerIconDynamic('ok-icon-dynamic-awesome', '<img data uri or arbitrary url>');
|
|
97537
|
+
* ```
|
|
97538
|
+
* After calling successfully, the icon can be used like any other icon:
|
|
97539
|
+
* ```
|
|
97540
|
+
* <ok-icon-dynamic-awesome></ok-icon-dynamic-awesome>
|
|
97541
|
+
* <nimble-mapping-icon icon="ok-icon-dynamic-awesome"></nimble-mapping-icon>
|
|
97542
|
+
* ```
|
|
97543
|
+
*/
|
|
97544
|
+
class IconDynamic extends Icon {
|
|
97545
|
+
constructor(/** @internal */ url) {
|
|
97546
|
+
super();
|
|
97547
|
+
this.url = url;
|
|
97548
|
+
}
|
|
97549
|
+
static registerIconDynamic(tagName, url) {
|
|
97550
|
+
const tagPrefix = 'ok-icon-dynamic-';
|
|
97551
|
+
if (!tagName.startsWith(tagPrefix)) {
|
|
97552
|
+
throw new Error(`Icon tag name must start with '${tagPrefix}', provided name: ${tagName}`);
|
|
97553
|
+
}
|
|
97554
|
+
const name = tagName.substring(tagPrefix.length);
|
|
97555
|
+
if (!/^[a-z][a-z]+$/.test(name)) {
|
|
97556
|
+
throw new Error(`Icon name must be lowercase [a-z] and at least two characters long, provided name: ${name}`);
|
|
97557
|
+
}
|
|
97558
|
+
const iconClassName = `IconDynamic${name.charAt(0).toUpperCase() + name.slice(1)}`;
|
|
97559
|
+
const iconClassContainer = {
|
|
97560
|
+
// Class name for expression should come object literal assignment, helpful for stack traces, etc.
|
|
97561
|
+
[iconClassName]: class extends IconDynamic {
|
|
97562
|
+
constructor() {
|
|
97563
|
+
super(url);
|
|
97564
|
+
}
|
|
97565
|
+
}
|
|
97566
|
+
};
|
|
97567
|
+
const iconClass = iconClassContainer[iconClassName];
|
|
97568
|
+
const baseName = `icon-dynamic-${name}`;
|
|
97569
|
+
const composedIcon = iconClass.compose({
|
|
97570
|
+
baseName,
|
|
97571
|
+
template,
|
|
97572
|
+
styles
|
|
97573
|
+
});
|
|
97574
|
+
DesignSystem.getOrCreate().withPrefix('ok').register(composedIcon());
|
|
97575
|
+
}
|
|
97576
|
+
}
|
|
97577
|
+
const okIconDynamic = IconDynamic.compose({
|
|
97578
|
+
baseName: 'icon-dynamic',
|
|
97579
|
+
template: html `<template></template>`,
|
|
97580
|
+
styles: css `${display('none')}`
|
|
97581
|
+
});
|
|
97582
|
+
DesignSystem.getOrCreate().withPrefix('ok').register(okIconDynamic());
|
|
97583
|
+
|
|
97502
97584
|
})();
|
|
97503
97585
|
//# sourceMappingURL=all-components-bundle.js.map
|