@ni/ok-components 0.2.7 → 0.2.8
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 +420 -341
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +30 -7
- 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 +1 -1
|
@@ -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
|
}
|
|
@@ -46768,7 +46768,7 @@ ${renderedContent}
|
|
|
46768
46768
|
// src/index.ts
|
|
46769
46769
|
var index_default$7 = HardBreak;
|
|
46770
46770
|
|
|
46771
|
-
const styles$
|
|
46771
|
+
const styles$G = css `
|
|
46772
46772
|
${display$2('inline')}
|
|
46773
46773
|
|
|
46774
46774
|
.positioning-region {
|
|
@@ -46805,7 +46805,7 @@ ${renderedContent}
|
|
|
46805
46805
|
baseName: 'toolbar',
|
|
46806
46806
|
baseClass: Toolbar$1,
|
|
46807
46807
|
template: toolbarTemplate,
|
|
46808
|
-
styles: styles$
|
|
46808
|
+
styles: styles$G
|
|
46809
46809
|
});
|
|
46810
46810
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
|
|
46811
46811
|
const toolbarTag = 'nimble-toolbar';
|
|
@@ -46834,8 +46834,8 @@ ${renderedContent}
|
|
|
46834
46834
|
cssCustomPropertyName: null
|
|
46835
46835
|
}).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
|
|
46836
46836
|
|
|
46837
|
-
const styles$
|
|
46838
|
-
${styles$
|
|
46837
|
+
const styles$F = css `
|
|
46838
|
+
${styles$V}
|
|
46839
46839
|
|
|
46840
46840
|
:host {
|
|
46841
46841
|
height: auto;
|
|
@@ -46853,7 +46853,7 @@ ${renderedContent}
|
|
|
46853
46853
|
}
|
|
46854
46854
|
`;
|
|
46855
46855
|
|
|
46856
|
-
const template$
|
|
46856
|
+
const template$C = html `
|
|
46857
46857
|
<template>
|
|
46858
46858
|
<${anchoredRegionTag}
|
|
46859
46859
|
${ref('region')}
|
|
@@ -47141,15 +47141,15 @@ ${renderedContent}
|
|
|
47141
47141
|
], RichTextMentionListbox.prototype, "anchorElement", void 0);
|
|
47142
47142
|
const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
|
|
47143
47143
|
baseName: 'rich-text-mention-listbox',
|
|
47144
|
-
template: template$
|
|
47145
|
-
styles: styles$
|
|
47144
|
+
template: template$C,
|
|
47145
|
+
styles: styles$F
|
|
47146
47146
|
});
|
|
47147
47147
|
DesignSystem.getOrCreate()
|
|
47148
47148
|
.withPrefix('nimble')
|
|
47149
47149
|
.register(nimbleRichTextMentionListbox());
|
|
47150
47150
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
47151
47151
|
|
|
47152
|
-
const template$
|
|
47152
|
+
const template$B = html `
|
|
47153
47153
|
<template
|
|
47154
47154
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
47155
47155
|
@focusout="${x => x.focusoutHandler()}"
|
|
@@ -47251,9 +47251,9 @@ ${renderedContent}
|
|
|
47251
47251
|
</template>
|
|
47252
47252
|
`;
|
|
47253
47253
|
|
|
47254
|
-
const styles$
|
|
47254
|
+
const styles$E = css `
|
|
47255
47255
|
${display$2('inline-flex')}
|
|
47256
|
-
${styles$
|
|
47256
|
+
${styles$Y}
|
|
47257
47257
|
|
|
47258
47258
|
:host {
|
|
47259
47259
|
font: ${bodyFont};
|
|
@@ -63627,8 +63627,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63627
63627
|
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
63628
63628
|
const nimbleRichTextEditor = RichTextEditor.compose({
|
|
63629
63629
|
baseName: 'rich-text-editor',
|
|
63630
|
-
template: template$
|
|
63631
|
-
styles: styles$
|
|
63630
|
+
template: template$B,
|
|
63631
|
+
styles: styles$E,
|
|
63632
63632
|
shadowOptions: {
|
|
63633
63633
|
delegatesFocus: true
|
|
63634
63634
|
}
|
|
@@ -63637,13 +63637,13 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63637
63637
|
.withPrefix('nimble')
|
|
63638
63638
|
.register(nimbleRichTextEditor());
|
|
63639
63639
|
|
|
63640
|
-
const template$
|
|
63640
|
+
const template$A = html `
|
|
63641
63641
|
<template ${children$1({ property: 'childItems', filter: elements() })}>
|
|
63642
63642
|
<div ${ref('viewer')} class="viewer"></div>
|
|
63643
63643
|
</template>
|
|
63644
63644
|
`;
|
|
63645
63645
|
|
|
63646
|
-
const styles$
|
|
63646
|
+
const styles$D = css `
|
|
63647
63647
|
${display$2('flex')}
|
|
63648
63648
|
|
|
63649
63649
|
:host {
|
|
@@ -63756,17 +63756,17 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63756
63756
|
], RichTextViewer.prototype, "markdown", void 0);
|
|
63757
63757
|
const nimbleRichTextViewer = RichTextViewer.compose({
|
|
63758
63758
|
baseName: 'rich-text-viewer',
|
|
63759
|
-
template: template$
|
|
63760
|
-
styles: styles$
|
|
63759
|
+
template: template$A,
|
|
63760
|
+
styles: styles$D
|
|
63761
63761
|
});
|
|
63762
63762
|
DesignSystem.getOrCreate()
|
|
63763
63763
|
.withPrefix('nimble')
|
|
63764
63764
|
.register(nimbleRichTextViewer());
|
|
63765
63765
|
|
|
63766
|
-
const styles$
|
|
63766
|
+
const styles$C = css `
|
|
63767
|
+
${styles$V}
|
|
63768
|
+
${styles$Y}
|
|
63767
63769
|
${styles$U}
|
|
63768
|
-
${styles$X}
|
|
63769
|
-
${styles$T}
|
|
63770
63770
|
|
|
63771
63771
|
${
|
|
63772
63772
|
/* We are using flex `order` to define the visual ordering of the selected value,
|
|
@@ -63929,7 +63929,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63929
63929
|
}
|
|
63930
63930
|
`));
|
|
63931
63931
|
|
|
63932
|
-
const styles$
|
|
63932
|
+
const styles$B = css `
|
|
63933
63933
|
${display$2('inline-grid')}
|
|
63934
63934
|
|
|
63935
63935
|
:host {
|
|
@@ -64099,7 +64099,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64099
64099
|
}
|
|
64100
64100
|
`));
|
|
64101
64101
|
|
|
64102
|
-
const template$
|
|
64102
|
+
const template$z = html `
|
|
64103
64103
|
<template role="progressbar">
|
|
64104
64104
|
${''
|
|
64105
64105
|
/**
|
|
@@ -64146,8 +64146,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64146
64146
|
], Spinner.prototype, "appearance", void 0);
|
|
64147
64147
|
const nimbleSpinner = Spinner.compose({
|
|
64148
64148
|
baseName: 'spinner',
|
|
64149
|
-
template: template$
|
|
64150
|
-
styles: styles$
|
|
64149
|
+
template: template$z,
|
|
64150
|
+
styles: styles$B
|
|
64151
64151
|
});
|
|
64152
64152
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
|
|
64153
64153
|
const spinnerTag = 'nimble-spinner';
|
|
@@ -64163,7 +64163,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64163
64163
|
<slot ${ref('labelSlot')}></slot>
|
|
64164
64164
|
</label>
|
|
64165
64165
|
`);
|
|
64166
|
-
const template$
|
|
64166
|
+
const template$y = (context, definition) => html `
|
|
64167
64167
|
<template
|
|
64168
64168
|
class="${x => [
|
|
64169
64169
|
x.collapsible && 'collapsible',
|
|
@@ -65375,8 +65375,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65375
65375
|
const nimbleSelect = Select.compose({
|
|
65376
65376
|
baseName: 'select',
|
|
65377
65377
|
baseClass: Select$2,
|
|
65378
|
-
template: template$
|
|
65379
|
-
styles: styles$
|
|
65378
|
+
template: template$y,
|
|
65379
|
+
styles: styles$C,
|
|
65380
65380
|
indicator: arrowExpanderDown16X16.data,
|
|
65381
65381
|
end: html `
|
|
65382
65382
|
<${iconExclamationMarkTag}
|
|
@@ -65389,11 +65389,11 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65389
65389
|
applyMixins(Select, StartEnd, DelegatesARIASelect);
|
|
65390
65390
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
|
|
65391
65391
|
|
|
65392
|
-
const styles$
|
|
65392
|
+
const styles$A = css `
|
|
65393
65393
|
${display$2('flex')}
|
|
65394
65394
|
`;
|
|
65395
65395
|
|
|
65396
|
-
const template$
|
|
65396
|
+
const template$x = html `
|
|
65397
65397
|
<template>step</template>
|
|
65398
65398
|
`;
|
|
65399
65399
|
|
|
@@ -65404,16 +65404,16 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65404
65404
|
}
|
|
65405
65405
|
const nimbleStep = Step.compose({
|
|
65406
65406
|
baseName: 'step',
|
|
65407
|
-
template: template$
|
|
65408
|
-
styles: styles$
|
|
65407
|
+
template: template$x,
|
|
65408
|
+
styles: styles$A
|
|
65409
65409
|
});
|
|
65410
65410
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStep());
|
|
65411
65411
|
|
|
65412
|
-
const styles$
|
|
65412
|
+
const styles$z = css `
|
|
65413
65413
|
${display$2('flex')}
|
|
65414
65414
|
`;
|
|
65415
65415
|
|
|
65416
|
-
const template$
|
|
65416
|
+
const template$w = html `
|
|
65417
65417
|
<template>stepper: <slot></slot></template>
|
|
65418
65418
|
`;
|
|
65419
65419
|
|
|
@@ -65424,12 +65424,12 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65424
65424
|
}
|
|
65425
65425
|
const nimbleStepper = Stepper.compose({
|
|
65426
65426
|
baseName: 'stepper',
|
|
65427
|
-
template: template$
|
|
65428
|
-
styles: styles$
|
|
65427
|
+
template: template$w,
|
|
65428
|
+
styles: styles$z
|
|
65429
65429
|
});
|
|
65430
65430
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStepper());
|
|
65431
65431
|
|
|
65432
|
-
const styles$
|
|
65432
|
+
const styles$y = css `
|
|
65433
65433
|
${display$2('inline-flex')}
|
|
65434
65434
|
|
|
65435
65435
|
:host {
|
|
@@ -65656,7 +65656,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65656
65656
|
}
|
|
65657
65657
|
`));
|
|
65658
65658
|
|
|
65659
|
-
const template$
|
|
65659
|
+
const template$v = html `
|
|
65660
65660
|
<template
|
|
65661
65661
|
role="switch"
|
|
65662
65662
|
aria-checked="${x => x.checked}"
|
|
@@ -65700,12 +65700,12 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65700
65700
|
const nimbleSwitch = Switch.compose({
|
|
65701
65701
|
baseClass: Switch$1,
|
|
65702
65702
|
baseName: 'switch',
|
|
65703
|
-
template: template$
|
|
65704
|
-
styles: styles$
|
|
65703
|
+
template: template$v,
|
|
65704
|
+
styles: styles$y
|
|
65705
65705
|
});
|
|
65706
65706
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSwitch());
|
|
65707
65707
|
|
|
65708
|
-
const styles$
|
|
65708
|
+
const styles$x = css `
|
|
65709
65709
|
${display$2('inline-flex')}
|
|
65710
65710
|
|
|
65711
65711
|
:host {
|
|
@@ -65816,11 +65816,11 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65816
65816
|
baseName: 'tab',
|
|
65817
65817
|
baseClass: Tab$1,
|
|
65818
65818
|
template: tabTemplate,
|
|
65819
|
-
styles: styles$
|
|
65819
|
+
styles: styles$x
|
|
65820
65820
|
});
|
|
65821
65821
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTab());
|
|
65822
65822
|
|
|
65823
|
-
const styles$
|
|
65823
|
+
const styles$w = css `
|
|
65824
65824
|
${display$2('block')}
|
|
65825
65825
|
|
|
65826
65826
|
:host {
|
|
@@ -65839,7 +65839,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65839
65839
|
baseName: 'tab-panel',
|
|
65840
65840
|
baseClass: TabPanel$1,
|
|
65841
65841
|
template: tabPanelTemplate,
|
|
65842
|
-
styles: styles$
|
|
65842
|
+
styles: styles$w
|
|
65843
65843
|
});
|
|
65844
65844
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabPanel());
|
|
65845
65845
|
|
|
@@ -69565,7 +69565,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
69565
69565
|
}
|
|
69566
69566
|
}
|
|
69567
69567
|
|
|
69568
|
-
const styles$
|
|
69568
|
+
const styles$v = css `
|
|
69569
69569
|
${display$2('flex')}
|
|
69570
69570
|
|
|
69571
69571
|
:host {
|
|
@@ -69593,7 +69593,7 @@ focus outline in that case.
|
|
|
69593
69593
|
}
|
|
69594
69594
|
|
|
69595
69595
|
.disable-select {
|
|
69596
|
-
${userSelectNone}
|
|
69596
|
+
${userSelectNone$1}
|
|
69597
69597
|
}
|
|
69598
69598
|
|
|
69599
69599
|
.table-container {
|
|
@@ -69785,7 +69785,7 @@ focus outline in that case.
|
|
|
69785
69785
|
}
|
|
69786
69786
|
`));
|
|
69787
69787
|
|
|
69788
|
-
const styles$
|
|
69788
|
+
const styles$u = css `
|
|
69789
69789
|
${display$2('flex')}
|
|
69790
69790
|
|
|
69791
69791
|
:host {
|
|
@@ -69818,7 +69818,7 @@ focus outline in that case.
|
|
|
69818
69818
|
}
|
|
69819
69819
|
`;
|
|
69820
69820
|
|
|
69821
|
-
const template$
|
|
69821
|
+
const template$u = html `
|
|
69822
69822
|
<template role="columnheader"
|
|
69823
69823
|
class="${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}"
|
|
69824
69824
|
aria-sort="${x => x.ariaSort}"
|
|
@@ -69904,13 +69904,13 @@ focus outline in that case.
|
|
|
69904
69904
|
], TableHeader.prototype, "isGrouped", void 0);
|
|
69905
69905
|
const nimbleTableHeader = TableHeader.compose({
|
|
69906
69906
|
baseName: 'table-header',
|
|
69907
|
-
template: template$
|
|
69908
|
-
styles: styles$
|
|
69907
|
+
template: template$u,
|
|
69908
|
+
styles: styles$u
|
|
69909
69909
|
});
|
|
69910
69910
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableHeader());
|
|
69911
69911
|
const tableHeaderTag = 'nimble-table-header';
|
|
69912
69912
|
|
|
69913
|
-
const styles$
|
|
69913
|
+
const styles$t = css `
|
|
69914
69914
|
:host .animating {
|
|
69915
69915
|
transition: ${mediumDelay} ease-in;
|
|
69916
69916
|
}
|
|
@@ -69935,9 +69935,9 @@ focus outline in that case.
|
|
|
69935
69935
|
}
|
|
69936
69936
|
`;
|
|
69937
69937
|
|
|
69938
|
-
const styles$
|
|
69938
|
+
const styles$s = css `
|
|
69939
69939
|
${display$2('flex')}
|
|
69940
|
-
${styles$
|
|
69940
|
+
${styles$t}
|
|
69941
69941
|
|
|
69942
69942
|
:host {
|
|
69943
69943
|
width: fit-content;
|
|
@@ -70107,7 +70107,7 @@ focus outline in that case.
|
|
|
70107
70107
|
}
|
|
70108
70108
|
`));
|
|
70109
70109
|
|
|
70110
|
-
const styles$
|
|
70110
|
+
const styles$r = css `
|
|
70111
70111
|
${display$2('flex')}
|
|
70112
70112
|
|
|
70113
70113
|
:host {
|
|
@@ -70152,7 +70152,7 @@ focus outline in that case.
|
|
|
70152
70152
|
}
|
|
70153
70153
|
`;
|
|
70154
70154
|
|
|
70155
|
-
const template$
|
|
70155
|
+
const template$t = html `
|
|
70156
70156
|
<template role="cell" style="--ni-private-table-cell-nesting-level: ${x => x.nestingLevel}"
|
|
70157
70157
|
@focusin="${x => x.onCellFocusIn()}"
|
|
70158
70158
|
@blur="${x => x.onCellBlur()}"
|
|
@@ -70249,13 +70249,13 @@ focus outline in that case.
|
|
|
70249
70249
|
], TableCell.prototype, "nestingLevel", void 0);
|
|
70250
70250
|
const nimbleTableCell = TableCell.compose({
|
|
70251
70251
|
baseName: 'table-cell',
|
|
70252
|
-
template: template$
|
|
70253
|
-
styles: styles$
|
|
70252
|
+
template: template$t,
|
|
70253
|
+
styles: styles$r
|
|
70254
70254
|
});
|
|
70255
70255
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableCell());
|
|
70256
70256
|
const tableCellTag = 'nimble-table-cell';
|
|
70257
70257
|
|
|
70258
|
-
const template$
|
|
70258
|
+
const template$s = html `
|
|
70259
70259
|
<template
|
|
70260
70260
|
role="row"
|
|
70261
70261
|
aria-selected=${x => x.ariaSelected}
|
|
@@ -70655,15 +70655,15 @@ focus outline in that case.
|
|
|
70655
70655
|
], TableRow.prototype, "ariaSelected", null);
|
|
70656
70656
|
const nimbleTableRow = TableRow.compose({
|
|
70657
70657
|
baseName: 'table-row',
|
|
70658
|
-
template: template$
|
|
70659
|
-
styles: styles$
|
|
70658
|
+
template: template$s,
|
|
70659
|
+
styles: styles$s
|
|
70660
70660
|
});
|
|
70661
70661
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableRow());
|
|
70662
70662
|
const tableRowTag = 'nimble-table-row';
|
|
70663
70663
|
|
|
70664
|
-
const styles$
|
|
70664
|
+
const styles$q = css `
|
|
70665
70665
|
${display$2('grid')}
|
|
70666
|
-
${styles$
|
|
70666
|
+
${styles$t}
|
|
70667
70667
|
|
|
70668
70668
|
:host {
|
|
70669
70669
|
align-items: center;
|
|
@@ -70719,7 +70719,7 @@ focus outline in that case.
|
|
|
70719
70719
|
|
|
70720
70720
|
.group-header-view {
|
|
70721
70721
|
padding-left: ${mediumPadding};
|
|
70722
|
-
${userSelectNone}
|
|
70722
|
+
${userSelectNone$1}
|
|
70723
70723
|
overflow: hidden;
|
|
70724
70724
|
}
|
|
70725
70725
|
|
|
@@ -70727,7 +70727,7 @@ focus outline in that case.
|
|
|
70727
70727
|
padding-left: 2px;
|
|
70728
70728
|
padding-right: ${mediumPadding};
|
|
70729
70729
|
pointer-events: none;
|
|
70730
|
-
${userSelectNone}
|
|
70730
|
+
${userSelectNone$1}
|
|
70731
70731
|
}
|
|
70732
70732
|
|
|
70733
70733
|
.checkbox-container {
|
|
@@ -70751,7 +70751,7 @@ focus outline in that case.
|
|
|
70751
70751
|
}
|
|
70752
70752
|
`));
|
|
70753
70753
|
|
|
70754
|
-
const template$
|
|
70754
|
+
const template$r = html `
|
|
70755
70755
|
<template
|
|
70756
70756
|
role="row"
|
|
70757
70757
|
@click=${x => x.onGroupExpandToggle()}
|
|
@@ -70908,13 +70908,13 @@ focus outline in that case.
|
|
|
70908
70908
|
], TableGroupRow.prototype, "allowHover", void 0);
|
|
70909
70909
|
const nimbleTableGroupRow = TableGroupRow.compose({
|
|
70910
70910
|
baseName: 'table-group-row',
|
|
70911
|
-
template: template$
|
|
70912
|
-
styles: styles$
|
|
70911
|
+
template: template$r,
|
|
70912
|
+
styles: styles$q
|
|
70913
70913
|
});
|
|
70914
70914
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTableGroupRow());
|
|
70915
70915
|
const tableGroupRowTag = 'nimble-table-group-row';
|
|
70916
70916
|
|
|
70917
|
-
const template$
|
|
70917
|
+
const template$q = html `
|
|
70918
70918
|
<template
|
|
70919
70919
|
role="treegrid"
|
|
70920
70920
|
${'' /* tabindex managed dynamically by KeyboardNavigationManager */}
|
|
@@ -75149,12 +75149,12 @@ focus outline in that case.
|
|
|
75149
75149
|
], Table$1.prototype, "windowShiftKeyDown", void 0);
|
|
75150
75150
|
const nimbleTable = Table$1.compose({
|
|
75151
75151
|
baseName: 'table',
|
|
75152
|
-
template: template$
|
|
75153
|
-
styles: styles$
|
|
75152
|
+
template: template$q,
|
|
75153
|
+
styles: styles$v
|
|
75154
75154
|
});
|
|
75155
75155
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTable());
|
|
75156
75156
|
|
|
75157
|
-
const styles$
|
|
75157
|
+
const styles$p = css `
|
|
75158
75158
|
${display$2('contents')}
|
|
75159
75159
|
|
|
75160
75160
|
.header-content {
|
|
@@ -75166,7 +75166,7 @@ focus outline in that case.
|
|
|
75166
75166
|
|
|
75167
75167
|
// Avoiding a wrapping <template> and be careful about starting and ending whitspace
|
|
75168
75168
|
// so the template can be composed into other column header templates
|
|
75169
|
-
const template$
|
|
75169
|
+
const template$p = html `<span
|
|
75170
75170
|
${overflow('hasOverflow')}
|
|
75171
75171
|
class="header-content"
|
|
75172
75172
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -75231,7 +75231,7 @@ focus outline in that case.
|
|
|
75231
75231
|
return ColumnWithPlaceholder;
|
|
75232
75232
|
}
|
|
75233
75233
|
|
|
75234
|
-
const styles$
|
|
75234
|
+
const styles$o = css `
|
|
75235
75235
|
${display$2('flex')}
|
|
75236
75236
|
|
|
75237
75237
|
:host {
|
|
@@ -75262,7 +75262,7 @@ focus outline in that case.
|
|
|
75262
75262
|
}
|
|
75263
75263
|
`;
|
|
75264
75264
|
|
|
75265
|
-
const template$
|
|
75265
|
+
const template$o = html `
|
|
75266
75266
|
<template
|
|
75267
75267
|
@click="${(x, c) => {
|
|
75268
75268
|
if (typeof x.cellRecord?.href === 'string') {
|
|
@@ -75354,8 +75354,8 @@ focus outline in that case.
|
|
|
75354
75354
|
], TableColumnAnchorCellView.prototype, "showAnchor", null);
|
|
75355
75355
|
const anchorCellView = TableColumnAnchorCellView.compose({
|
|
75356
75356
|
baseName: 'table-column-anchor-cell-view',
|
|
75357
|
-
template: template$
|
|
75358
|
-
styles: styles$
|
|
75357
|
+
template: template$o,
|
|
75358
|
+
styles: styles$o
|
|
75359
75359
|
});
|
|
75360
75360
|
DesignSystem.getOrCreate().withPrefix('nimble').register(anchorCellView());
|
|
75361
75361
|
const tableColumnAnchorCellViewTag = 'nimble-table-column-anchor-cell-view';
|
|
@@ -75432,7 +75432,7 @@ focus outline in that case.
|
|
|
75432
75432
|
observable
|
|
75433
75433
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
75434
75434
|
|
|
75435
|
-
const template$
|
|
75435
|
+
const template$n = html `
|
|
75436
75436
|
<span
|
|
75437
75437
|
${overflow('hasOverflow')}
|
|
75438
75438
|
title="${x => (x.hasOverflow && x.text ? x.text : null)}"
|
|
@@ -75441,7 +75441,7 @@ focus outline in that case.
|
|
|
75441
75441
|
</span>
|
|
75442
75442
|
`;
|
|
75443
75443
|
|
|
75444
|
-
const styles$
|
|
75444
|
+
const styles$n = css `
|
|
75445
75445
|
${display$2('flex')}
|
|
75446
75446
|
|
|
75447
75447
|
span {
|
|
@@ -75465,8 +75465,8 @@ focus outline in that case.
|
|
|
75465
75465
|
}
|
|
75466
75466
|
const tableColumnTextGroupHeaderView = TableColumnTextGroupHeaderView.compose({
|
|
75467
75467
|
baseName: 'table-column-text-group-header-view',
|
|
75468
|
-
template: template$
|
|
75469
|
-
styles: styles$
|
|
75468
|
+
template: template$n,
|
|
75469
|
+
styles: styles$n
|
|
75470
75470
|
});
|
|
75471
75471
|
DesignSystem.getOrCreate()
|
|
75472
75472
|
.withPrefix('nimble')
|
|
@@ -75710,8 +75710,8 @@ focus outline in that case.
|
|
|
75710
75710
|
], TableColumnAnchor.prototype, "download", void 0);
|
|
75711
75711
|
const nimbleTableColumnAnchor = TableColumnAnchor.compose({
|
|
75712
75712
|
baseName: 'table-column-anchor',
|
|
75713
|
-
template: template$
|
|
75714
|
-
styles: styles$
|
|
75713
|
+
template: template$p,
|
|
75714
|
+
styles: styles$p
|
|
75715
75715
|
});
|
|
75716
75716
|
DesignSystem.getOrCreate()
|
|
75717
75717
|
.withPrefix('nimble')
|
|
@@ -75763,15 +75763,15 @@ focus outline in that case.
|
|
|
75763
75763
|
}
|
|
75764
75764
|
const tableColumnDateTextGroupHeaderView = TableColumnDateTextGroupHeaderView.compose({
|
|
75765
75765
|
baseName: 'table-column-date-text-group-header-view',
|
|
75766
|
-
template: template$
|
|
75767
|
-
styles: styles$
|
|
75766
|
+
template: template$n,
|
|
75767
|
+
styles: styles$n
|
|
75768
75768
|
});
|
|
75769
75769
|
DesignSystem.getOrCreate()
|
|
75770
75770
|
.withPrefix('nimble')
|
|
75771
75771
|
.register(tableColumnDateTextGroupHeaderView());
|
|
75772
75772
|
const tableColumnDateTextGroupHeaderViewTag = 'nimble-table-column-date-text-group-header-view';
|
|
75773
75773
|
|
|
75774
|
-
const template$
|
|
75774
|
+
const template$m = html `
|
|
75775
75775
|
<template
|
|
75776
75776
|
class="
|
|
75777
75777
|
${x => (x.alignment === TableColumnAlignment.right ? 'right-align' : '')}
|
|
@@ -75787,7 +75787,7 @@ focus outline in that case.
|
|
|
75787
75787
|
</template>
|
|
75788
75788
|
`;
|
|
75789
75789
|
|
|
75790
|
-
const styles$
|
|
75790
|
+
const styles$m = css `
|
|
75791
75791
|
${display$2('flex')}
|
|
75792
75792
|
|
|
75793
75793
|
:host {
|
|
@@ -75889,8 +75889,8 @@ focus outline in that case.
|
|
|
75889
75889
|
}
|
|
75890
75890
|
const dateTextCellView = TableColumnDateTextCellView.compose({
|
|
75891
75891
|
baseName: 'table-column-date-text-cell-view',
|
|
75892
|
-
template: template$
|
|
75893
|
-
styles: styles$
|
|
75892
|
+
template: template$m,
|
|
75893
|
+
styles: styles$m
|
|
75894
75894
|
});
|
|
75895
75895
|
DesignSystem.getOrCreate().withPrefix('nimble').register(dateTextCellView());
|
|
75896
75896
|
const tableColumnDateTextCellViewTag = 'nimble-table-column-date-text-cell-view';
|
|
@@ -76148,8 +76148,8 @@ focus outline in that case.
|
|
|
76148
76148
|
], TableColumnDateText.prototype, "customHourCycle", void 0);
|
|
76149
76149
|
const nimbleTableColumnDateText = TableColumnDateText.compose({
|
|
76150
76150
|
baseName: 'table-column-date-text',
|
|
76151
|
-
template: template$
|
|
76152
|
-
styles: styles$
|
|
76151
|
+
template: template$p,
|
|
76152
|
+
styles: styles$p
|
|
76153
76153
|
});
|
|
76154
76154
|
DesignSystem.getOrCreate()
|
|
76155
76155
|
.withPrefix('nimble')
|
|
@@ -76165,8 +76165,8 @@ focus outline in that case.
|
|
|
76165
76165
|
}
|
|
76166
76166
|
const durationTextCellView = TableColumnDurationTextCellView.compose({
|
|
76167
76167
|
baseName: 'table-column-duration-text-cell-view',
|
|
76168
|
-
template: template$
|
|
76169
|
-
styles: styles$
|
|
76168
|
+
template: template$m,
|
|
76169
|
+
styles: styles$m
|
|
76170
76170
|
});
|
|
76171
76171
|
DesignSystem.getOrCreate()
|
|
76172
76172
|
.withPrefix('nimble')
|
|
@@ -76267,8 +76267,8 @@ focus outline in that case.
|
|
|
76267
76267
|
}
|
|
76268
76268
|
const tableColumnDurationTextGroupHeaderView = TableColumnDurationTextGroupHeaderView.compose({
|
|
76269
76269
|
baseName: 'table-column-duration-text-group-header-view',
|
|
76270
|
-
template: template$
|
|
76271
|
-
styles: styles$
|
|
76270
|
+
template: template$n,
|
|
76271
|
+
styles: styles$n
|
|
76272
76272
|
});
|
|
76273
76273
|
DesignSystem.getOrCreate()
|
|
76274
76274
|
.withPrefix('nimble')
|
|
@@ -76320,8 +76320,8 @@ focus outline in that case.
|
|
|
76320
76320
|
}
|
|
76321
76321
|
const nimbleTableColumnDurationText = TableColumnDurationText.compose({
|
|
76322
76322
|
baseName: 'table-column-duration-text',
|
|
76323
|
-
template: template$
|
|
76324
|
-
styles: styles$
|
|
76323
|
+
template: template$p,
|
|
76324
|
+
styles: styles$p
|
|
76325
76325
|
});
|
|
76326
76326
|
DesignSystem.getOrCreate()
|
|
76327
76327
|
.withPrefix('nimble')
|
|
@@ -76429,15 +76429,15 @@ focus outline in that case.
|
|
|
76429
76429
|
attr({ attribute: 'key-type' })
|
|
76430
76430
|
], TableColumnEnumBase.prototype, "keyType", void 0);
|
|
76431
76431
|
|
|
76432
|
-
const styles$
|
|
76433
|
-
${styles$
|
|
76432
|
+
const styles$l = css `
|
|
76433
|
+
${styles$p}
|
|
76434
76434
|
|
|
76435
76435
|
slot[name='mapping'] {
|
|
76436
76436
|
display: none;
|
|
76437
76437
|
}
|
|
76438
76438
|
`;
|
|
76439
76439
|
|
|
76440
|
-
const template$
|
|
76440
|
+
const template$l = html `${template$p}<slot ${slotted('mappings')} name="mapping"></slot>`;
|
|
76441
76441
|
|
|
76442
76442
|
const enumBaseValidityFlagNames = [
|
|
76443
76443
|
'invalidMappingKeyValueForType',
|
|
@@ -76523,7 +76523,7 @@ focus outline in that case.
|
|
|
76523
76523
|
}
|
|
76524
76524
|
}
|
|
76525
76525
|
|
|
76526
|
-
const styles$
|
|
76526
|
+
const styles$k = css `
|
|
76527
76527
|
${display$2('inline-flex')}
|
|
76528
76528
|
|
|
76529
76529
|
:host {
|
|
@@ -76547,7 +76547,7 @@ focus outline in that case.
|
|
|
76547
76547
|
}
|
|
76548
76548
|
`;
|
|
76549
76549
|
|
|
76550
|
-
const template$
|
|
76550
|
+
const template$k = html `
|
|
76551
76551
|
${when(x => x.visualizationTemplate, html `
|
|
76552
76552
|
<span class="reserve-icon-size">
|
|
76553
76553
|
${x => x.visualizationTemplate}
|
|
@@ -76691,15 +76691,15 @@ focus outline in that case.
|
|
|
76691
76691
|
], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
|
|
76692
76692
|
const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
|
|
76693
76693
|
baseName: 'table-column-mapping-group-header-view',
|
|
76694
|
-
template: template$
|
|
76695
|
-
styles: styles$
|
|
76694
|
+
template: template$k,
|
|
76695
|
+
styles: styles$k
|
|
76696
76696
|
});
|
|
76697
76697
|
DesignSystem.getOrCreate()
|
|
76698
76698
|
.withPrefix('nimble')
|
|
76699
76699
|
.register(mappingGroupHeaderView());
|
|
76700
76700
|
const tableColumnMappingGroupHeaderViewTag = 'nimble-table-column-mapping-group-header-view';
|
|
76701
76701
|
|
|
76702
|
-
const styles$
|
|
76702
|
+
const styles$j = css `
|
|
76703
76703
|
${display$2('inline-flex')}
|
|
76704
76704
|
|
|
76705
76705
|
:host {
|
|
@@ -76723,7 +76723,7 @@ focus outline in that case.
|
|
|
76723
76723
|
}
|
|
76724
76724
|
`;
|
|
76725
76725
|
|
|
76726
|
-
const template$
|
|
76726
|
+
const template$j = html `
|
|
76727
76727
|
${when(x => x.visualizationTemplate, html `
|
|
76728
76728
|
<span class="reserve-icon-size">
|
|
76729
76729
|
${x => x.visualizationTemplate}
|
|
@@ -76810,8 +76810,8 @@ focus outline in that case.
|
|
|
76810
76810
|
], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
|
|
76811
76811
|
const mappingCellView = TableColumnMappingCellView.compose({
|
|
76812
76812
|
baseName: 'table-column-mapping-cell-view',
|
|
76813
|
-
template: template$
|
|
76814
|
-
styles: styles$
|
|
76813
|
+
template: template$j,
|
|
76814
|
+
styles: styles$j
|
|
76815
76815
|
});
|
|
76816
76816
|
DesignSystem.getOrCreate().withPrefix('nimble').register(mappingCellView());
|
|
76817
76817
|
const tableColumnMappingCellViewTag = 'nimble-table-column-mapping-cell-view';
|
|
@@ -76894,23 +76894,23 @@ focus outline in that case.
|
|
|
76894
76894
|
], TableColumnMapping.prototype, "widthMode", void 0);
|
|
76895
76895
|
const nimbleTableColumnMapping = TableColumnMapping.compose({
|
|
76896
76896
|
baseName: 'table-column-mapping',
|
|
76897
|
-
template: template$
|
|
76898
|
-
styles: styles$
|
|
76897
|
+
template: template$l,
|
|
76898
|
+
styles: styles$l
|
|
76899
76899
|
});
|
|
76900
76900
|
DesignSystem.getOrCreate()
|
|
76901
76901
|
.withPrefix('nimble')
|
|
76902
76902
|
.register(nimbleTableColumnMapping());
|
|
76903
76903
|
|
|
76904
|
-
const template$
|
|
76904
|
+
const template$i = html `
|
|
76905
76905
|
<template @delegated-event="${(x, c) => x.onDelegatedEvent(c.event)}"
|
|
76906
|
-
>${template$
|
|
76906
|
+
>${template$p}</template
|
|
76907
76907
|
>
|
|
76908
76908
|
`;
|
|
76909
76909
|
|
|
76910
76910
|
/** @internal */
|
|
76911
76911
|
const cellViewMenuSlotName = 'menu-button-menu';
|
|
76912
76912
|
|
|
76913
|
-
const template$
|
|
76913
|
+
const template$h = html `
|
|
76914
76914
|
${when(x => x.showMenuButton, html `
|
|
76915
76915
|
<${menuButtonTag}
|
|
76916
76916
|
${ref('menuButton')}
|
|
@@ -76929,7 +76929,7 @@ focus outline in that case.
|
|
|
76929
76929
|
`)}
|
|
76930
76930
|
`;
|
|
76931
76931
|
|
|
76932
|
-
const styles$
|
|
76932
|
+
const styles$i = css `
|
|
76933
76933
|
:host {
|
|
76934
76934
|
align-self: center;
|
|
76935
76935
|
width: 100%;
|
|
@@ -77004,8 +77004,8 @@ focus outline in that case.
|
|
|
77004
77004
|
], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
|
|
77005
77005
|
const menuButtonCellView = TableColumnMenuButtonCellView.compose({
|
|
77006
77006
|
baseName: 'table-column-menu-button-cell-view',
|
|
77007
|
-
template: template$
|
|
77008
|
-
styles: styles$
|
|
77007
|
+
template: template$h,
|
|
77008
|
+
styles: styles$i
|
|
77009
77009
|
});
|
|
77010
77010
|
DesignSystem.getOrCreate().withPrefix('nimble').register(menuButtonCellView());
|
|
77011
77011
|
const tableColumnMenuButtonCellViewTag = 'nimble-table-column-menu-button-cell-view';
|
|
@@ -77060,8 +77060,8 @@ focus outline in that case.
|
|
|
77060
77060
|
], TableColumnMenuButton.prototype, "menuSlot", void 0);
|
|
77061
77061
|
const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
|
|
77062
77062
|
baseName: 'table-column-menu-button',
|
|
77063
|
-
template: template$
|
|
77064
|
-
styles: styles$
|
|
77063
|
+
template: template$i,
|
|
77064
|
+
styles: styles$p
|
|
77065
77065
|
});
|
|
77066
77066
|
DesignSystem.getOrCreate()
|
|
77067
77067
|
.withPrefix('nimble')
|
|
@@ -77069,7 +77069,7 @@ focus outline in that case.
|
|
|
77069
77069
|
|
|
77070
77070
|
// Avoiding a wrapping <template> and be careful about starting and ending whitespace
|
|
77071
77071
|
// so the template can be composed into other column header templates
|
|
77072
|
-
const template$
|
|
77072
|
+
const template$g = html `<span
|
|
77073
77073
|
${overflow('hasOverflow')}
|
|
77074
77074
|
class="header-content"
|
|
77075
77075
|
title=${x => (x.hasOverflow && x.headerTextContent ? x.headerTextContent : null)}
|
|
@@ -77088,8 +77088,8 @@ focus outline in that case.
|
|
|
77088
77088
|
}
|
|
77089
77089
|
const tableColumnNumberTextGroupHeaderView = TableColumnNumberTextGroupHeaderView.compose({
|
|
77090
77090
|
baseName: 'table-column-number-text-group-header-view',
|
|
77091
|
-
template: template$
|
|
77092
|
-
styles: styles$
|
|
77091
|
+
template: template$n,
|
|
77092
|
+
styles: styles$n
|
|
77093
77093
|
});
|
|
77094
77094
|
DesignSystem.getOrCreate()
|
|
77095
77095
|
.withPrefix('nimble')
|
|
@@ -77110,8 +77110,8 @@ focus outline in that case.
|
|
|
77110
77110
|
}
|
|
77111
77111
|
const numberTextCellView = TableColumnNumberTextCellView.compose({
|
|
77112
77112
|
baseName: 'table-column-number-text-cell-view',
|
|
77113
|
-
template: template$
|
|
77114
|
-
styles: styles$
|
|
77113
|
+
template: template$m,
|
|
77114
|
+
styles: styles$m
|
|
77115
77115
|
});
|
|
77116
77116
|
DesignSystem.getOrCreate().withPrefix('nimble').register(numberTextCellView());
|
|
77117
77117
|
const tableColumnNumberTextCellViewTag = 'nimble-table-column-number-text-cell-view';
|
|
@@ -77651,8 +77651,8 @@ focus outline in that case.
|
|
|
77651
77651
|
], TableColumnNumberText.prototype, "unit", void 0);
|
|
77652
77652
|
const nimbleTableColumnNumberText = TableColumnNumberText.compose({
|
|
77653
77653
|
baseName: 'table-column-number-text',
|
|
77654
|
-
template: template$
|
|
77655
|
-
styles: styles$
|
|
77654
|
+
template: template$g,
|
|
77655
|
+
styles: styles$p
|
|
77656
77656
|
});
|
|
77657
77657
|
DesignSystem.getOrCreate()
|
|
77658
77658
|
.withPrefix('nimble')
|
|
@@ -77670,8 +77670,8 @@ focus outline in that case.
|
|
|
77670
77670
|
}
|
|
77671
77671
|
const textCellView = TableColumnTextCellView.compose({
|
|
77672
77672
|
baseName: 'table-column-text-cell-view',
|
|
77673
|
-
template: template$
|
|
77674
|
-
styles: styles$
|
|
77673
|
+
template: template$m,
|
|
77674
|
+
styles: styles$m
|
|
77675
77675
|
});
|
|
77676
77676
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textCellView());
|
|
77677
77677
|
const tableColumnTextCellViewTag = 'nimble-table-column-text-cell-view';
|
|
@@ -77725,15 +77725,15 @@ focus outline in that case.
|
|
|
77725
77725
|
}
|
|
77726
77726
|
const nimbleTableColumnText = TableColumnText.compose({
|
|
77727
77727
|
baseName: 'table-column-text',
|
|
77728
|
-
template: template$
|
|
77729
|
-
styles: styles$
|
|
77728
|
+
template: template$p,
|
|
77729
|
+
styles: styles$p
|
|
77730
77730
|
});
|
|
77731
77731
|
DesignSystem.getOrCreate()
|
|
77732
77732
|
.withPrefix('nimble')
|
|
77733
77733
|
.register(nimbleTableColumnText());
|
|
77734
77734
|
|
|
77735
|
-
const styles$
|
|
77736
|
-
${styles$
|
|
77735
|
+
const styles$h = css `
|
|
77736
|
+
${styles$16}
|
|
77737
77737
|
|
|
77738
77738
|
.tabpanel {
|
|
77739
77739
|
overflow: auto;
|
|
@@ -77814,12 +77814,12 @@ focus outline in that case.
|
|
|
77814
77814
|
const nimbleTabs = Tabs.compose({
|
|
77815
77815
|
baseName: 'tabs',
|
|
77816
77816
|
baseClass: Tabs$1,
|
|
77817
|
-
template: template$
|
|
77818
|
-
styles: styles$
|
|
77817
|
+
template: template$S,
|
|
77818
|
+
styles: styles$h
|
|
77819
77819
|
});
|
|
77820
77820
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
|
|
77821
77821
|
|
|
77822
|
-
const styles$
|
|
77822
|
+
const styles$g = css `
|
|
77823
77823
|
${display$2('flex')}
|
|
77824
77824
|
|
|
77825
77825
|
:host {
|
|
@@ -77851,7 +77851,7 @@ focus outline in that case.
|
|
|
77851
77851
|
}
|
|
77852
77852
|
`;
|
|
77853
77853
|
|
|
77854
|
-
const template$
|
|
77854
|
+
const template$f = (context, definition) => html `
|
|
77855
77855
|
<template slot="end">
|
|
77856
77856
|
${when(x => x.defaultSlottedElements.length > 0, html `
|
|
77857
77857
|
<div class="separator"></div>
|
|
@@ -77883,8 +77883,8 @@ focus outline in that case.
|
|
|
77883
77883
|
], TabsToolbar.prototype, "defaultSlottedElements", void 0);
|
|
77884
77884
|
const nimbleTabsToolbar = TabsToolbar.compose({
|
|
77885
77885
|
baseName: 'tabs-toolbar',
|
|
77886
|
-
template: template$
|
|
77887
|
-
styles: styles$
|
|
77886
|
+
template: template$f,
|
|
77887
|
+
styles: styles$g
|
|
77888
77888
|
});
|
|
77889
77889
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabsToolbar());
|
|
77890
77890
|
applyMixins(TabsToolbar, StartEnd);
|
|
@@ -77894,15 +77894,15 @@ focus outline in that case.
|
|
|
77894
77894
|
block: 'block'
|
|
77895
77895
|
};
|
|
77896
77896
|
|
|
77897
|
-
const styles$
|
|
77897
|
+
const styles$f = css `
|
|
77898
77898
|
${display$2('inline-flex')}
|
|
77899
|
-
${styles$
|
|
77900
|
-
${styles$
|
|
77899
|
+
${styles$Y}
|
|
77900
|
+
${styles$U}
|
|
77901
77901
|
|
|
77902
77902
|
:host {
|
|
77903
77903
|
font: ${bodyFont};
|
|
77904
77904
|
outline: none;
|
|
77905
|
-
${userSelectNone}
|
|
77905
|
+
${userSelectNone$1}
|
|
77906
77906
|
color: ${bodyFontColor};
|
|
77907
77907
|
flex-direction: column;
|
|
77908
77908
|
vertical-align: top;
|
|
@@ -78089,7 +78089,7 @@ focus outline in that case.
|
|
|
78089
78089
|
<slot ${slotted('defaultSlottedNodes')}></slot>
|
|
78090
78090
|
</label>
|
|
78091
78091
|
`);
|
|
78092
|
-
const template$
|
|
78092
|
+
const template$e = () => html `
|
|
78093
78093
|
${labelTemplate$1}
|
|
78094
78094
|
<div class="container">
|
|
78095
78095
|
<textarea
|
|
@@ -78237,8 +78237,8 @@ focus outline in that case.
|
|
|
78237
78237
|
const nimbleTextArea = TextArea.compose({
|
|
78238
78238
|
baseName: 'text-area',
|
|
78239
78239
|
baseClass: TextArea$1,
|
|
78240
|
-
template: template$
|
|
78241
|
-
styles: styles$
|
|
78240
|
+
template: template$e,
|
|
78241
|
+
styles: styles$f,
|
|
78242
78242
|
shadowOptions: {
|
|
78243
78243
|
delegatesFocus: true
|
|
78244
78244
|
}
|
|
@@ -78255,15 +78255,15 @@ focus outline in that case.
|
|
|
78255
78255
|
frameless: 'frameless'
|
|
78256
78256
|
};
|
|
78257
78257
|
|
|
78258
|
-
const styles$
|
|
78258
|
+
const styles$e = css `
|
|
78259
78259
|
${display$2('inline-block')}
|
|
78260
|
-
${styles$
|
|
78261
|
-
${styles$
|
|
78260
|
+
${styles$Y}
|
|
78261
|
+
${styles$U}
|
|
78262
78262
|
|
|
78263
78263
|
:host {
|
|
78264
78264
|
font: ${bodyFont};
|
|
78265
78265
|
outline: none;
|
|
78266
|
-
${userSelectNone}
|
|
78266
|
+
${userSelectNone$1}
|
|
78267
78267
|
color: ${bodyFontColor};
|
|
78268
78268
|
--ni-private-hover-indicator-width: calc(${borderWidth} + 1px);
|
|
78269
78269
|
--ni-private-height-within-border: calc(
|
|
@@ -78334,7 +78334,7 @@ focus outline in that case.
|
|
|
78334
78334
|
content: ' ';
|
|
78335
78335
|
color: transparent;
|
|
78336
78336
|
width: 0px;
|
|
78337
|
-
${userSelectNone}
|
|
78337
|
+
${userSelectNone$1}
|
|
78338
78338
|
}
|
|
78339
78339
|
|
|
78340
78340
|
:host([appearance='frameless'][full-bleed]) .root::before {
|
|
@@ -78346,7 +78346,7 @@ focus outline in that case.
|
|
|
78346
78346
|
content: ' ';
|
|
78347
78347
|
color: transparent;
|
|
78348
78348
|
width: 0px;
|
|
78349
|
-
${userSelectNone}
|
|
78349
|
+
${userSelectNone$1}
|
|
78350
78350
|
}
|
|
78351
78351
|
|
|
78352
78352
|
:host([appearance='frameless'][full-bleed]) .root::after {
|
|
@@ -78532,7 +78532,7 @@ focus outline in that case.
|
|
|
78532
78532
|
* The template for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
78533
78533
|
* @public
|
|
78534
78534
|
*/
|
|
78535
|
-
const template$
|
|
78535
|
+
const template$d = (context, definition) => html `
|
|
78536
78536
|
<template
|
|
78537
78537
|
class="
|
|
78538
78538
|
${x => (x.readOnly ? 'readonly' : '')}
|
|
@@ -78617,8 +78617,8 @@ focus outline in that case.
|
|
|
78617
78617
|
const nimbleTextField = TextField.compose({
|
|
78618
78618
|
baseName: 'text-field',
|
|
78619
78619
|
baseClass: TextField$1,
|
|
78620
|
-
template: template$
|
|
78621
|
-
styles: styles$
|
|
78620
|
+
template: template$d,
|
|
78621
|
+
styles: styles$e,
|
|
78622
78622
|
shadowOptions: {
|
|
78623
78623
|
delegatesFocus: true
|
|
78624
78624
|
},
|
|
@@ -78635,7 +78635,7 @@ focus outline in that case.
|
|
|
78635
78635
|
});
|
|
78636
78636
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTextField());
|
|
78637
78637
|
|
|
78638
|
-
const styles$
|
|
78638
|
+
const styles$d = css `
|
|
78639
78639
|
${display$2('inline-flex')}
|
|
78640
78640
|
|
|
78641
78641
|
:host {
|
|
@@ -78721,7 +78721,7 @@ focus outline in that case.
|
|
|
78721
78721
|
}
|
|
78722
78722
|
`));
|
|
78723
78723
|
|
|
78724
|
-
const template$
|
|
78724
|
+
const template$c = html `
|
|
78725
78725
|
${when(x => x.tooltipVisible, html `
|
|
78726
78726
|
<${anchoredRegionTag}
|
|
78727
78727
|
class="anchored-region"
|
|
@@ -78773,8 +78773,8 @@ focus outline in that case.
|
|
|
78773
78773
|
const nimbleTooltip = Tooltip.compose({
|
|
78774
78774
|
baseName: 'tooltip',
|
|
78775
78775
|
baseClass: Tooltip$1,
|
|
78776
|
-
template: template$
|
|
78777
|
-
styles: styles$
|
|
78776
|
+
template: template$c,
|
|
78777
|
+
styles: styles$d
|
|
78778
78778
|
});
|
|
78779
78779
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTooltip());
|
|
78780
78780
|
|
|
@@ -78862,7 +78862,7 @@ focus outline in that case.
|
|
|
78862
78862
|
}
|
|
78863
78863
|
}
|
|
78864
78864
|
|
|
78865
|
-
const styles$
|
|
78865
|
+
const styles$c = css `
|
|
78866
78866
|
${display$2('block')}
|
|
78867
78867
|
|
|
78868
78868
|
:host {
|
|
@@ -78942,7 +78942,7 @@ focus outline in that case.
|
|
|
78942
78942
|
padding-left: 10px;
|
|
78943
78943
|
font: inherit;
|
|
78944
78944
|
font-size: ${bodyFontSize};
|
|
78945
|
-
${userSelectNone}
|
|
78945
|
+
${userSelectNone$1}
|
|
78946
78946
|
position: relative;
|
|
78947
78947
|
margin-inline-start: ${iconSize};
|
|
78948
78948
|
}
|
|
@@ -79079,12 +79079,12 @@ focus outline in that case.
|
|
|
79079
79079
|
baseName: 'tree-item',
|
|
79080
79080
|
baseClass: TreeItem$1,
|
|
79081
79081
|
template: treeItemTemplate,
|
|
79082
|
-
styles: styles$
|
|
79082
|
+
styles: styles$c,
|
|
79083
79083
|
expandCollapseGlyph: arrowExpanderUp16X16.data
|
|
79084
79084
|
});
|
|
79085
79085
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeItem());
|
|
79086
79086
|
|
|
79087
|
-
const styles$
|
|
79087
|
+
const styles$b = css `
|
|
79088
79088
|
${display$2('flex')}
|
|
79089
79089
|
|
|
79090
79090
|
:host {
|
|
@@ -79098,7 +79098,7 @@ focus outline in that case.
|
|
|
79098
79098
|
}
|
|
79099
79099
|
`;
|
|
79100
79100
|
|
|
79101
|
-
const template$
|
|
79101
|
+
const template$b = html `
|
|
79102
79102
|
<template
|
|
79103
79103
|
role="tree"
|
|
79104
79104
|
${ref('treeView')}
|
|
@@ -79194,8 +79194,8 @@ focus outline in that case.
|
|
|
79194
79194
|
const nimbleTreeView = TreeView.compose({
|
|
79195
79195
|
baseName: 'tree-view',
|
|
79196
79196
|
baseClass: TreeView$1,
|
|
79197
|
-
template: template$
|
|
79198
|
-
styles: styles$
|
|
79197
|
+
template: template$b,
|
|
79198
|
+
styles: styles$b
|
|
79199
79199
|
});
|
|
79200
79200
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTreeView());
|
|
79201
79201
|
|
|
@@ -79311,9 +79311,9 @@ focus outline in that case.
|
|
|
79311
79311
|
}
|
|
79312
79312
|
const unitScaleByte = new UnitScaleByte();
|
|
79313
79313
|
|
|
79314
|
-
const template$
|
|
79314
|
+
const template$a = html `<template slot="unit"></template>`;
|
|
79315
79315
|
|
|
79316
|
-
const styles$
|
|
79316
|
+
const styles$a = css `
|
|
79317
79317
|
${display$2('none')}
|
|
79318
79318
|
`;
|
|
79319
79319
|
|
|
@@ -79341,8 +79341,8 @@ focus outline in that case.
|
|
|
79341
79341
|
], UnitByte.prototype, "binary", void 0);
|
|
79342
79342
|
const nimbleUnitByte = UnitByte.compose({
|
|
79343
79343
|
baseName: 'unit-byte',
|
|
79344
|
-
template: template$
|
|
79345
|
-
styles: styles$
|
|
79344
|
+
template: template$a,
|
|
79345
|
+
styles: styles$a
|
|
79346
79346
|
});
|
|
79347
79347
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitByte());
|
|
79348
79348
|
|
|
@@ -79394,8 +79394,8 @@ focus outline in that case.
|
|
|
79394
79394
|
}
|
|
79395
79395
|
const nimbleUnitVolt = UnitVolt.compose({
|
|
79396
79396
|
baseName: 'unit-volt',
|
|
79397
|
-
template: template$
|
|
79398
|
-
styles: styles$
|
|
79397
|
+
template: template$a,
|
|
79398
|
+
styles: styles$a
|
|
79399
79399
|
});
|
|
79400
79400
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleUnitVolt());
|
|
79401
79401
|
|
|
@@ -93709,7 +93709,7 @@ focus outline in that case.
|
|
|
93709
93709
|
return new Table(reader.readAll());
|
|
93710
93710
|
}
|
|
93711
93711
|
|
|
93712
|
-
const template$
|
|
93712
|
+
const template$9 = html `
|
|
93713
93713
|
<div class="wafer-map-container">
|
|
93714
93714
|
<svg class="svg-root">
|
|
93715
93715
|
<g ${ref('zoomContainer')} transform=${x => x.transform.toString()}>
|
|
@@ -93742,7 +93742,7 @@ focus outline in that case.
|
|
|
93742
93742
|
</div>
|
|
93743
93743
|
`;
|
|
93744
93744
|
|
|
93745
|
-
const styles$
|
|
93745
|
+
const styles$9 = css `
|
|
93746
93746
|
${display$2('inline-block')}
|
|
93747
93747
|
|
|
93748
93748
|
:host {
|
|
@@ -96767,8 +96767,8 @@ focus outline in that case.
|
|
|
96767
96767
|
], WaferMap.prototype, "colorScale", void 0);
|
|
96768
96768
|
const nimbleWaferMap = WaferMap.compose({
|
|
96769
96769
|
baseName: 'wafer-map',
|
|
96770
|
-
template: template$
|
|
96771
|
-
styles: styles$
|
|
96770
|
+
template: template$9,
|
|
96771
|
+
styles: styles$9
|
|
96772
96772
|
});
|
|
96773
96773
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleWaferMap());
|
|
96774
96774
|
|
|
@@ -96780,7 +96780,7 @@ focus outline in that case.
|
|
|
96780
96780
|
*/
|
|
96781
96781
|
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
96782
|
|
|
96783
|
-
const styles$
|
|
96783
|
+
const styles$8 = css `
|
|
96784
96784
|
${display$1('flex')}
|
|
96785
96785
|
|
|
96786
96786
|
:host {
|
|
@@ -96820,7 +96820,7 @@ focus outline in that case.
|
|
|
96820
96820
|
}
|
|
96821
96821
|
`;
|
|
96822
96822
|
|
|
96823
|
-
const template$
|
|
96823
|
+
const template$8 = html `
|
|
96824
96824
|
<div class="messages"><slot></slot></div>
|
|
96825
96825
|
<div class="input ${x => (x.inputEmpty ? 'input-empty' : '')}">
|
|
96826
96826
|
<slot name="input" ${slotted({ property: 'slottedInputElements' })}>
|
|
@@ -96860,14 +96860,14 @@ focus outline in that case.
|
|
|
96860
96860
|
], ChatConversation.prototype, "slottedInputElements", void 0);
|
|
96861
96861
|
const sprightChatConversation = ChatConversation.compose({
|
|
96862
96862
|
baseName: 'chat-conversation',
|
|
96863
|
-
template: template$
|
|
96864
|
-
styles: styles$
|
|
96863
|
+
template: template$8,
|
|
96864
|
+
styles: styles$8
|
|
96865
96865
|
});
|
|
96866
96866
|
DesignSystem.getOrCreate()
|
|
96867
96867
|
.withPrefix('spright')
|
|
96868
96868
|
.register(sprightChatConversation());
|
|
96869
96869
|
|
|
96870
|
-
const styles$
|
|
96870
|
+
const styles$7 = css `
|
|
96871
96871
|
${display$1('flex')}
|
|
96872
96872
|
|
|
96873
96873
|
:host {
|
|
@@ -96943,7 +96943,7 @@ focus outline in that case.
|
|
|
96943
96943
|
}
|
|
96944
96944
|
`;
|
|
96945
96945
|
|
|
96946
|
-
const template$
|
|
96946
|
+
const template$7 = html `
|
|
96947
96947
|
<div class="container">
|
|
96948
96948
|
<textarea
|
|
96949
96949
|
${ref('textArea')}
|
|
@@ -97064,8 +97064,8 @@ focus outline in that case.
|
|
|
97064
97064
|
], ChatInput.prototype, "disableSendButton", void 0);
|
|
97065
97065
|
const sprightChatInput = ChatInput.compose({
|
|
97066
97066
|
baseName: 'chat-input',
|
|
97067
|
-
template: template$
|
|
97068
|
-
styles: styles$
|
|
97067
|
+
template: template$7,
|
|
97068
|
+
styles: styles$7,
|
|
97069
97069
|
shadowOptions: {
|
|
97070
97070
|
delegatesFocus: true
|
|
97071
97071
|
}
|
|
@@ -97083,7 +97083,7 @@ focus outline in that case.
|
|
|
97083
97083
|
inbound: 'inbound'
|
|
97084
97084
|
};
|
|
97085
97085
|
|
|
97086
|
-
const styles$
|
|
97086
|
+
const styles$6 = css `
|
|
97087
97087
|
${display$1('flex')}
|
|
97088
97088
|
|
|
97089
97089
|
:host {
|
|
@@ -97157,7 +97157,7 @@ focus outline in that case.
|
|
|
97157
97157
|
}
|
|
97158
97158
|
`;
|
|
97159
97159
|
|
|
97160
|
-
const template$
|
|
97160
|
+
const template$6 = (context, definition) => html `
|
|
97161
97161
|
<div class="container">
|
|
97162
97162
|
${startSlotTemplate(context, definition)}
|
|
97163
97163
|
<section class="message-content">
|
|
@@ -97206,12 +97206,12 @@ focus outline in that case.
|
|
|
97206
97206
|
applyMixins(ChatMessage, StartEnd);
|
|
97207
97207
|
const sprightChatMessage = ChatMessage.compose({
|
|
97208
97208
|
baseName: 'chat-message',
|
|
97209
|
-
template: template$
|
|
97210
|
-
styles: styles$
|
|
97209
|
+
template: template$6,
|
|
97210
|
+
styles: styles$6
|
|
97211
97211
|
});
|
|
97212
97212
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessage());
|
|
97213
97213
|
|
|
97214
|
-
const styles$
|
|
97214
|
+
const styles$5 = css `
|
|
97215
97215
|
${display$1('flex')}
|
|
97216
97216
|
|
|
97217
97217
|
:host {
|
|
@@ -97269,7 +97269,7 @@ focus outline in that case.
|
|
|
97269
97269
|
}
|
|
97270
97270
|
`;
|
|
97271
97271
|
|
|
97272
|
-
const template$
|
|
97272
|
+
const template$5 = (context, definition) => html `
|
|
97273
97273
|
<div class="container">
|
|
97274
97274
|
${startSlotTemplate(context, definition)}
|
|
97275
97275
|
<section class="message-content">
|
|
@@ -97307,12 +97307,12 @@ focus outline in that case.
|
|
|
97307
97307
|
applyMixins(ChatMessageInbound, StartEnd);
|
|
97308
97308
|
const sprightChatMessageInbound = ChatMessageInbound.compose({
|
|
97309
97309
|
baseName: 'chat-message-inbound',
|
|
97310
|
-
template: template$
|
|
97311
|
-
styles: styles$
|
|
97310
|
+
template: template$5,
|
|
97311
|
+
styles: styles$5
|
|
97312
97312
|
});
|
|
97313
97313
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageInbound());
|
|
97314
97314
|
|
|
97315
|
-
const styles$
|
|
97315
|
+
const styles$4 = css `
|
|
97316
97316
|
${display$1('flex')}
|
|
97317
97317
|
|
|
97318
97318
|
:host {
|
|
@@ -97346,7 +97346,7 @@ focus outline in that case.
|
|
|
97346
97346
|
}
|
|
97347
97347
|
`;
|
|
97348
97348
|
|
|
97349
|
-
const template$
|
|
97349
|
+
const template$4 = () => html `
|
|
97350
97350
|
<div class="container">
|
|
97351
97351
|
<section class="message-content">
|
|
97352
97352
|
<slot></slot>
|
|
@@ -97361,12 +97361,12 @@ focus outline in that case.
|
|
|
97361
97361
|
}
|
|
97362
97362
|
const sprightChatMessageOutbound = ChatMessageOutbound.compose({
|
|
97363
97363
|
baseName: 'chat-message-outbound',
|
|
97364
|
-
template: template$
|
|
97365
|
-
styles: styles$
|
|
97364
|
+
template: template$4,
|
|
97365
|
+
styles: styles$4
|
|
97366
97366
|
});
|
|
97367
97367
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageOutbound());
|
|
97368
97368
|
|
|
97369
|
-
const styles$
|
|
97369
|
+
const styles$3 = css `
|
|
97370
97370
|
${display$1('flex')}
|
|
97371
97371
|
|
|
97372
97372
|
:host {
|
|
@@ -97393,7 +97393,7 @@ focus outline in that case.
|
|
|
97393
97393
|
}
|
|
97394
97394
|
`;
|
|
97395
97395
|
|
|
97396
|
-
const template$
|
|
97396
|
+
const template$3 = () => html `
|
|
97397
97397
|
<div class="container">
|
|
97398
97398
|
<section class="message-content">
|
|
97399
97399
|
<slot></slot>
|
|
@@ -97408,12 +97408,12 @@ focus outline in that case.
|
|
|
97408
97408
|
}
|
|
97409
97409
|
const sprightChatMessageSystem = ChatMessageSystem.compose({
|
|
97410
97410
|
baseName: 'chat-message-system',
|
|
97411
|
-
template: template$
|
|
97412
|
-
styles: styles$
|
|
97411
|
+
template: template$3,
|
|
97412
|
+
styles: styles$3
|
|
97413
97413
|
});
|
|
97414
97414
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightChatMessageSystem());
|
|
97415
97415
|
|
|
97416
|
-
const styles$
|
|
97416
|
+
const styles$2 = css `
|
|
97417
97417
|
${display$1('inline-block')}
|
|
97418
97418
|
|
|
97419
97419
|
:host {
|
|
@@ -97438,7 +97438,7 @@ focus outline in that case.
|
|
|
97438
97438
|
}
|
|
97439
97439
|
`;
|
|
97440
97440
|
|
|
97441
|
-
const template$
|
|
97441
|
+
const template$2 = html `<slot></slot>`;
|
|
97442
97442
|
|
|
97443
97443
|
/**
|
|
97444
97444
|
* A Spright demo component (not for production use)
|
|
@@ -97447,8 +97447,8 @@ focus outline in that case.
|
|
|
97447
97447
|
}
|
|
97448
97448
|
const sprightRectangle = Rectangle.compose({
|
|
97449
97449
|
baseName: 'rectangle',
|
|
97450
|
-
template: template$
|
|
97451
|
-
styles: styles$
|
|
97450
|
+
template: template$2,
|
|
97451
|
+
styles: styles$2
|
|
97452
97452
|
});
|
|
97453
97453
|
DesignSystem.getOrCreate().withPrefix('spright').register(sprightRectangle());
|
|
97454
97454
|
|
|
@@ -97460,7 +97460,7 @@ focus outline in that case.
|
|
|
97460
97460
|
*/
|
|
97461
97461
|
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
97462
|
|
|
97463
|
-
const styles = css `
|
|
97463
|
+
const styles$1 = css `
|
|
97464
97464
|
${display('inline-block')}
|
|
97465
97465
|
|
|
97466
97466
|
:host {
|
|
@@ -97485,7 +97485,7 @@ focus outline in that case.
|
|
|
97485
97485
|
}
|
|
97486
97486
|
`;
|
|
97487
97487
|
|
|
97488
|
-
const template = html `<slot></slot>`;
|
|
97488
|
+
const template$1 = html `<slot></slot>`;
|
|
97489
97489
|
|
|
97490
97490
|
/**
|
|
97491
97491
|
* A Ok demo component (not for production use)
|
|
@@ -97494,10 +97494,89 @@ focus outline in that case.
|
|
|
97494
97494
|
}
|
|
97495
97495
|
const okButton = Button.compose({
|
|
97496
97496
|
baseName: 'button',
|
|
97497
|
-
template,
|
|
97498
|
-
styles
|
|
97497
|
+
template: template$1,
|
|
97498
|
+
styles: styles$1
|
|
97499
97499
|
});
|
|
97500
97500
|
DesignSystem.getOrCreate().withPrefix('ok').register(okButton());
|
|
97501
97501
|
|
|
97502
|
+
/**
|
|
97503
|
+
* Set user-select: none in a way that works across all supported browsers.
|
|
97504
|
+
* https://developer.mozilla.org/en-US/docs/Web/CSS/user-select#browser_compatibility
|
|
97505
|
+
*/
|
|
97506
|
+
const userSelectNone = cssPartial `
|
|
97507
|
+
user-select: none;
|
|
97508
|
+
-webkit-user-select: none;
|
|
97509
|
+
`;
|
|
97510
|
+
|
|
97511
|
+
const styles = css `
|
|
97512
|
+
${display('inline-flex')}
|
|
97513
|
+
|
|
97514
|
+
:host {
|
|
97515
|
+
align-items: center;
|
|
97516
|
+
${userSelectNone}
|
|
97517
|
+
width: ${iconSize};
|
|
97518
|
+
height: ${iconSize};
|
|
97519
|
+
}
|
|
97520
|
+
|
|
97521
|
+
img {
|
|
97522
|
+
width: 100%;
|
|
97523
|
+
height: 100%;
|
|
97524
|
+
}
|
|
97525
|
+
`;
|
|
97526
|
+
|
|
97527
|
+
const template = html `<img aria-hidden="true" src=${x => x.url}>`;
|
|
97528
|
+
|
|
97529
|
+
/* eslint-disable max-classes-per-file */
|
|
97530
|
+
/**
|
|
97531
|
+
* Base class for dynamic icons. Not intended to be used directly, instead use to register dynamic icons:
|
|
97532
|
+
* ```
|
|
97533
|
+
* customElements.get('ok-icon-dynamic').registerIconDynamic('ok-icon-dynamic-awesome', '<img data uri or arbitrary url>');
|
|
97534
|
+
* ```
|
|
97535
|
+
* After calling successfully, the icon can be used like any other icon:
|
|
97536
|
+
* ```
|
|
97537
|
+
* <ok-icon-dynamic-awesome></ok-icon-dynamic-awesome>
|
|
97538
|
+
* <nimble-mapping-icon icon="ok-icon-dynamic-awesome"></nimble-mapping-icon>
|
|
97539
|
+
* ```
|
|
97540
|
+
*/
|
|
97541
|
+
class IconDynamic extends Icon {
|
|
97542
|
+
constructor(/** @internal */ url) {
|
|
97543
|
+
super();
|
|
97544
|
+
this.url = url;
|
|
97545
|
+
}
|
|
97546
|
+
static registerIconDynamic(tagName, url) {
|
|
97547
|
+
const tagPrefix = 'ok-icon-dynamic-';
|
|
97548
|
+
if (!tagName.startsWith(tagPrefix)) {
|
|
97549
|
+
throw new Error(`Icon tag name must start with '${tagPrefix}', provided name: ${tagName}`);
|
|
97550
|
+
}
|
|
97551
|
+
const name = tagName.substring(tagPrefix.length);
|
|
97552
|
+
if (!/^[a-z][a-z]+$/.test(name)) {
|
|
97553
|
+
throw new Error(`Icon name must be lowercase [a-z] and at least two characters long, provided name: ${name}`);
|
|
97554
|
+
}
|
|
97555
|
+
const iconClassName = `IconDynamic${name.charAt(0).toUpperCase() + name.slice(1)}`;
|
|
97556
|
+
const iconClassContainer = {
|
|
97557
|
+
// Class name for expression should come object literal assignment, helpful for stack traces, etc.
|
|
97558
|
+
[iconClassName]: class extends IconDynamic {
|
|
97559
|
+
constructor() {
|
|
97560
|
+
super(url);
|
|
97561
|
+
}
|
|
97562
|
+
}
|
|
97563
|
+
};
|
|
97564
|
+
const iconClass = iconClassContainer[iconClassName];
|
|
97565
|
+
const baseName = `icon-dynamic-${name}`;
|
|
97566
|
+
const composedIcon = iconClass.compose({
|
|
97567
|
+
baseName,
|
|
97568
|
+
template,
|
|
97569
|
+
styles
|
|
97570
|
+
});
|
|
97571
|
+
DesignSystem.getOrCreate().withPrefix('ok').register(composedIcon());
|
|
97572
|
+
}
|
|
97573
|
+
}
|
|
97574
|
+
const okIconDynamic = IconDynamic.compose({
|
|
97575
|
+
baseName: 'icon-dynamic',
|
|
97576
|
+
template: html `<template></template>`,
|
|
97577
|
+
styles: css `${display('none')}`
|
|
97578
|
+
});
|
|
97579
|
+
DesignSystem.getOrCreate().withPrefix('ok').register(okIconDynamic());
|
|
97580
|
+
|
|
97502
97581
|
})();
|
|
97503
97582
|
//# sourceMappingURL=all-components-bundle.js.map
|