@ni/nimble-components 35.1.1 → 35.2.0
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 +395 -373
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +5087 -5126
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/all-components.d.ts +3 -0
- package/dist/esm/all-components.js +3 -0
- package/dist/esm/all-components.js.map +1 -1
- package/dist/esm/anchor-step/index.d.ts +12 -0
- package/dist/esm/anchor-step/index.js +16 -0
- package/dist/esm/anchor-step/index.js.map +1 -0
- package/dist/esm/anchor-step/styles.d.ts +1 -0
- package/dist/esm/anchor-step/styles.js +6 -0
- package/dist/esm/anchor-step/styles.js.map +1 -0
- package/dist/esm/anchor-step/template.d.ts +2 -0
- package/dist/esm/anchor-step/template.js +5 -0
- package/dist/esm/anchor-step/template.js.map +1 -0
- package/dist/esm/step/index.d.ts +12 -0
- package/dist/esm/step/index.js +16 -0
- package/dist/esm/step/index.js.map +1 -0
- package/dist/esm/step/styles.d.ts +1 -0
- package/dist/esm/step/styles.js +6 -0
- package/dist/esm/step/styles.js.map +1 -0
- package/dist/esm/step/template.d.ts +2 -0
- package/dist/esm/step/template.js +5 -0
- package/dist/esm/step/template.js.map +1 -0
- package/dist/esm/stepper/index.d.ts +12 -0
- package/dist/esm/stepper/index.js +16 -0
- package/dist/esm/stepper/index.js.map +1 -0
- package/dist/esm/stepper/styles.d.ts +1 -0
- package/dist/esm/stepper/styles.js +6 -0
- package/dist/esm/stepper/styles.js.map +1 -0
- package/dist/esm/stepper/template.d.ts +2 -0
- package/dist/esm/stepper/template.js +5 -0
- package/dist/esm/stepper/template.js.map +1 -0
- package/package.json +3 -3
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
// eslint-disable-next-line no-new-func
|
|
112
112
|
return new Function("return this")();
|
|
113
113
|
}
|
|
114
|
-
catch
|
|
114
|
+
catch {
|
|
115
115
|
// If all fails, give up and create an object.
|
|
116
116
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
117
117
|
return {};
|
|
@@ -127,7 +127,10 @@
|
|
|
127
127
|
writable: false,
|
|
128
128
|
};
|
|
129
129
|
if ($global.FAST === void 0) {
|
|
130
|
-
Reflect.defineProperty($global, "FAST",
|
|
130
|
+
Reflect.defineProperty($global, "FAST", {
|
|
131
|
+
value: Object.create(null),
|
|
132
|
+
...propConfig,
|
|
133
|
+
});
|
|
131
134
|
}
|
|
132
135
|
/**
|
|
133
136
|
* The FAST global.
|
|
@@ -136,13 +139,16 @@
|
|
|
136
139
|
const FAST = $global.FAST;
|
|
137
140
|
if (FAST.getById === void 0) {
|
|
138
141
|
const storage = Object.create(null);
|
|
139
|
-
Reflect.defineProperty(FAST, "getById",
|
|
142
|
+
Reflect.defineProperty(FAST, "getById", {
|
|
143
|
+
value(id, initialize) {
|
|
140
144
|
let found = storage[id];
|
|
141
145
|
if (found === void 0) {
|
|
142
146
|
found = initialize ? (storage[id] = initialize()) : null;
|
|
143
147
|
}
|
|
144
148
|
return found;
|
|
145
|
-
}
|
|
149
|
+
},
|
|
150
|
+
...propConfig,
|
|
151
|
+
});
|
|
146
152
|
}
|
|
147
153
|
/**
|
|
148
154
|
* A readonly, empty array.
|
|
@@ -511,12 +517,11 @@
|
|
|
511
517
|
* @param propertyName - The property name, passed along to subscribers during notification.
|
|
512
518
|
*/
|
|
513
519
|
notify(propertyName) {
|
|
514
|
-
var _a;
|
|
515
520
|
const subscribers = this.subscribers[propertyName];
|
|
516
521
|
if (subscribers !== void 0) {
|
|
517
522
|
subscribers.notify(propertyName);
|
|
518
523
|
}
|
|
519
|
-
|
|
524
|
+
this.sourceSubscribers?.notify(propertyName);
|
|
520
525
|
}
|
|
521
526
|
/**
|
|
522
527
|
* Subscribes to notification of changes in an object's state.
|
|
@@ -524,7 +529,6 @@
|
|
|
524
529
|
* @param propertyToWatch - The name of the property that the subscriber is interested in watching for changes.
|
|
525
530
|
*/
|
|
526
531
|
subscribe(subscriber, propertyToWatch) {
|
|
527
|
-
var _a;
|
|
528
532
|
if (propertyToWatch) {
|
|
529
533
|
let subscribers = this.subscribers[propertyToWatch];
|
|
530
534
|
if (subscribers === void 0) {
|
|
@@ -534,7 +538,7 @@
|
|
|
534
538
|
}
|
|
535
539
|
else {
|
|
536
540
|
this.sourceSubscribers =
|
|
537
|
-
|
|
541
|
+
this.sourceSubscribers ?? new SubscriberSet(this.source);
|
|
538
542
|
this.sourceSubscribers.subscribe(subscriber);
|
|
539
543
|
}
|
|
540
544
|
}
|
|
@@ -544,7 +548,6 @@
|
|
|
544
548
|
* @param propertyToUnwatch - The name of the property that the subscriber is no longer interested in watching.
|
|
545
549
|
*/
|
|
546
550
|
unsubscribe(subscriber, propertyToUnwatch) {
|
|
547
|
-
var _a;
|
|
548
551
|
if (propertyToUnwatch) {
|
|
549
552
|
const subscribers = this.subscribers[propertyToUnwatch];
|
|
550
553
|
if (subscribers !== void 0) {
|
|
@@ -552,7 +555,7 @@
|
|
|
552
555
|
}
|
|
553
556
|
}
|
|
554
557
|
else {
|
|
555
|
-
|
|
558
|
+
this.sourceSubscribers?.unsubscribe(subscriber);
|
|
556
559
|
}
|
|
557
560
|
}
|
|
558
561
|
}
|
|
@@ -562,7 +565,7 @@
|
|
|
562
565
|
* @public
|
|
563
566
|
*/
|
|
564
567
|
const Observable = FAST.getById(2 /* KernelServiceId.observable */, () => {
|
|
565
|
-
const volatileRegex = /(
|
|
568
|
+
const volatileRegex = /(\?\?|:|&&|\|\||if)/;
|
|
566
569
|
const notifierLookup = new WeakMap();
|
|
567
570
|
const queueUpdate = DOM.queueUpdate;
|
|
568
571
|
let watcher = void 0;
|
|
@@ -1110,14 +1113,15 @@
|
|
|
1110
1113
|
/**
|
|
1111
1114
|
* Creates an instance of BindingDirective.
|
|
1112
1115
|
* @param binding - A binding that returns the data used to update the DOM.
|
|
1116
|
+
* @param isVolatile - Optional parameter indicating whether the binding is volatile. If not provided, the volatility of the binding is determined by Observable.isVolatileBinding().
|
|
1113
1117
|
*/
|
|
1114
|
-
constructor(binding) {
|
|
1118
|
+
constructor(binding, isVolatile) {
|
|
1115
1119
|
super();
|
|
1116
1120
|
this.binding = binding;
|
|
1117
1121
|
this.bind = normalBind;
|
|
1118
1122
|
this.unbind = normalUnbind;
|
|
1119
1123
|
this.updateTarget = updateAttributeTarget;
|
|
1120
|
-
this.isBindingVolatile = Observable.isVolatileBinding(this.binding);
|
|
1124
|
+
this.isBindingVolatile = isVolatile ?? Observable.isVolatileBinding(this.binding);
|
|
1121
1125
|
}
|
|
1122
1126
|
/**
|
|
1123
1127
|
* Gets/sets the name of the attribute or property that this
|
|
@@ -1252,12 +1256,14 @@
|
|
|
1252
1256
|
return parts[0];
|
|
1253
1257
|
}
|
|
1254
1258
|
let targetName;
|
|
1259
|
+
let isVolatile = false;
|
|
1255
1260
|
const partCount = parts.length;
|
|
1256
1261
|
const finalParts = parts.map((x) => {
|
|
1257
1262
|
if (typeof x === "string") {
|
|
1258
1263
|
return () => x;
|
|
1259
1264
|
}
|
|
1260
1265
|
targetName = x.targetName || targetName;
|
|
1266
|
+
isVolatile = isVolatile || Observable.isVolatileBinding(x.binding);
|
|
1261
1267
|
return x.binding;
|
|
1262
1268
|
});
|
|
1263
1269
|
const binding = (scope, context) => {
|
|
@@ -1267,7 +1273,7 @@
|
|
|
1267
1273
|
}
|
|
1268
1274
|
return output;
|
|
1269
1275
|
};
|
|
1270
|
-
const directive = new HTMLBindingDirective(binding);
|
|
1276
|
+
const directive = new HTMLBindingDirective(binding, isVolatile);
|
|
1271
1277
|
directive.targetName = targetName;
|
|
1272
1278
|
return directive;
|
|
1273
1279
|
}
|
|
@@ -1739,20 +1745,20 @@
|
|
|
1739
1745
|
this.behaviors === null ? behaviors : this.behaviors.concat(behaviors);
|
|
1740
1746
|
return this;
|
|
1741
1747
|
}
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1748
|
+
/**
|
|
1749
|
+
* Create ElementStyles from ComposableStyles.
|
|
1750
|
+
*/
|
|
1751
|
+
static { this.create = (() => {
|
|
1752
|
+
if (DOM.supportsAdoptedStyleSheets) {
|
|
1753
|
+
const styleSheetCache = new Map();
|
|
1754
|
+
return (styles) =>
|
|
1755
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
1756
|
+
new AdoptedStyleSheetsStyles(styles, styleSheetCache);
|
|
1757
|
+
}
|
|
1750
1758
|
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
1751
|
-
new
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
return (styles) => new StyleElementStyles(styles);
|
|
1755
|
-
})();
|
|
1759
|
+
return (styles) => new StyleElementStyles(styles);
|
|
1760
|
+
})(); }
|
|
1761
|
+
}
|
|
1756
1762
|
function reduceStyles(styles) {
|
|
1757
1763
|
return styles
|
|
1758
1764
|
.map((x) => x instanceof ElementStyles ? reduceStyles(x.styles) : [x])
|
|
@@ -1812,7 +1818,7 @@
|
|
|
1812
1818
|
}
|
|
1813
1819
|
};
|
|
1814
1820
|
}
|
|
1815
|
-
catch
|
|
1821
|
+
catch {
|
|
1816
1822
|
// Do nothing if an error is thrown, the default
|
|
1817
1823
|
// case handles FrozenArray.
|
|
1818
1824
|
}
|
|
@@ -2159,11 +2165,11 @@
|
|
|
2159
2165
|
? defaultShadowOptions
|
|
2160
2166
|
: nameOrConfig.shadowOptions === null
|
|
2161
2167
|
? void 0
|
|
2162
|
-
:
|
|
2168
|
+
: { ...defaultShadowOptions, ...nameOrConfig.shadowOptions };
|
|
2163
2169
|
this.elementOptions =
|
|
2164
2170
|
nameOrConfig.elementOptions === void 0
|
|
2165
2171
|
? defaultElementOptions
|
|
2166
|
-
:
|
|
2172
|
+
: { ...defaultElementOptions, ...nameOrConfig.elementOptions };
|
|
2167
2173
|
this.styles =
|
|
2168
2174
|
nameOrConfig.styles === void 0
|
|
2169
2175
|
? void 0
|
|
@@ -2195,12 +2201,12 @@
|
|
|
2195
2201
|
}
|
|
2196
2202
|
return this;
|
|
2197
2203
|
}
|
|
2204
|
+
/**
|
|
2205
|
+
* Gets the element definition associated with the specified type.
|
|
2206
|
+
* @param type - The custom element type to retrieve the definition for.
|
|
2207
|
+
*/
|
|
2208
|
+
static { this.forType = fastRegistry.getByType; }
|
|
2198
2209
|
}
|
|
2199
|
-
/**
|
|
2200
|
-
* Gets the element definition associated with the specified type.
|
|
2201
|
-
* @param type - The custom element type to retrieve the definition for.
|
|
2202
|
-
*/
|
|
2203
|
-
FASTElementDefinition.forType = fastRegistry.getByType;
|
|
2204
2210
|
|
|
2205
2211
|
const shadowRoots = new WeakMap();
|
|
2206
2212
|
const defaultEventOptions = {
|
|
@@ -2479,7 +2485,7 @@
|
|
|
2479
2485
|
*/
|
|
2480
2486
|
emit(type, detail, options) {
|
|
2481
2487
|
if (this._isConnected) {
|
|
2482
|
-
return this.element.dispatchEvent(new CustomEvent(type,
|
|
2488
|
+
return this.element.dispatchEvent(new CustomEvent(type, { detail, ...defaultEventOptions, ...options }));
|
|
2483
2489
|
}
|
|
2484
2490
|
return false;
|
|
2485
2491
|
}
|
|
@@ -3566,7 +3572,10 @@
|
|
|
3566
3572
|
const templateBinding = typeof templateOrTemplateBinding === "function"
|
|
3567
3573
|
? templateOrTemplateBinding
|
|
3568
3574
|
: () => templateOrTemplateBinding;
|
|
3569
|
-
return new RepeatDirective(itemsBinding, templateBinding,
|
|
3575
|
+
return new RepeatDirective(itemsBinding, templateBinding, {
|
|
3576
|
+
...defaultRepeatOptions,
|
|
3577
|
+
...options,
|
|
3578
|
+
});
|
|
3570
3579
|
}
|
|
3571
3580
|
|
|
3572
3581
|
/**
|
|
@@ -4239,7 +4248,7 @@
|
|
|
4239
4248
|
Interface.friendlyName = friendlyName == null ? "(anonymous)" : friendlyName;
|
|
4240
4249
|
if (configure != null) {
|
|
4241
4250
|
Interface.register = function (container, key) {
|
|
4242
|
-
return configure(new ResolverBuilder(container, key
|
|
4251
|
+
return configure(new ResolverBuilder(container, key ?? Interface));
|
|
4243
4252
|
};
|
|
4244
4253
|
}
|
|
4245
4254
|
Interface.toString = function toString() {
|
|
@@ -4417,13 +4426,12 @@
|
|
|
4417
4426
|
}
|
|
4418
4427
|
}
|
|
4419
4428
|
getFactory(container) {
|
|
4420
|
-
var _a, _b, _c;
|
|
4421
4429
|
switch (this.strategy) {
|
|
4422
4430
|
case 1 /* ResolverStrategy.singleton */:
|
|
4423
4431
|
case 2 /* ResolverStrategy.transient */:
|
|
4424
4432
|
return container.getFactory(this.state);
|
|
4425
4433
|
case 5 /* ResolverStrategy.alias */:
|
|
4426
|
-
return
|
|
4434
|
+
return container.getResolver(this.state)?.getFactory?.(container) ?? null;
|
|
4427
4435
|
default:
|
|
4428
4436
|
return null;
|
|
4429
4437
|
}
|
|
@@ -5164,7 +5172,10 @@
|
|
|
5164
5172
|
this.type = type;
|
|
5165
5173
|
this.elementDefinition = elementDefinition;
|
|
5166
5174
|
this.overrideDefinition = overrideDefinition;
|
|
5167
|
-
this.definition =
|
|
5175
|
+
this.definition = {
|
|
5176
|
+
...this.elementDefinition,
|
|
5177
|
+
...this.overrideDefinition,
|
|
5178
|
+
};
|
|
5168
5179
|
}
|
|
5169
5180
|
register(container, context) {
|
|
5170
5181
|
const definition = this.definition;
|
|
@@ -5616,14 +5627,12 @@
|
|
|
5616
5627
|
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
5617
5628
|
*/
|
|
5618
5629
|
this.handleUnsupportedDelegatesFocus = () => {
|
|
5619
|
-
var _a;
|
|
5620
5630
|
// Check to see if delegatesFocus is supported
|
|
5621
5631
|
if (window.ShadowRoot &&
|
|
5622
5632
|
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
5623
|
-
|
|
5633
|
+
this.$fastController.definition.shadowOptions?.delegatesFocus) {
|
|
5624
5634
|
this.focus = () => {
|
|
5625
|
-
|
|
5626
|
-
(_a = this.control) === null || _a === void 0 ? void 0 : _a.focus();
|
|
5635
|
+
this.control?.focus();
|
|
5627
5636
|
};
|
|
5628
5637
|
}
|
|
5629
5638
|
};
|
|
@@ -5713,12 +5722,11 @@
|
|
|
5713
5722
|
* @internal
|
|
5714
5723
|
*/
|
|
5715
5724
|
this.requestPosition = (target, callback) => {
|
|
5716
|
-
var _a;
|
|
5717
5725
|
if (this.intersectionDetector === null) {
|
|
5718
5726
|
return;
|
|
5719
5727
|
}
|
|
5720
5728
|
if (this.observedElements.has(target)) {
|
|
5721
|
-
|
|
5729
|
+
this.observedElements.get(target)?.push(callback);
|
|
5722
5730
|
return;
|
|
5723
5731
|
}
|
|
5724
5732
|
this.observedElements.set(target, [callback]);
|
|
@@ -5763,9 +5771,8 @@
|
|
|
5763
5771
|
const pendingCallbackParams = [];
|
|
5764
5772
|
// go through the entries to build a list of callbacks and params for each
|
|
5765
5773
|
entries.forEach((entry) => {
|
|
5766
|
-
var _a;
|
|
5767
5774
|
// stop watching this element until we get new update requests for it
|
|
5768
|
-
|
|
5775
|
+
this.intersectionDetector?.unobserve(entry.target);
|
|
5769
5776
|
const thisElementCallbacks = this.observedElements.get(entry.target);
|
|
5770
5777
|
if (thisElementCallbacks !== undefined) {
|
|
5771
5778
|
thisElementCallbacks.forEach((callback) => {
|
|
@@ -6592,6 +6599,7 @@
|
|
|
6592
6599
|
this.initialize();
|
|
6593
6600
|
}
|
|
6594
6601
|
}
|
|
6602
|
+
static { this.intersectionService = new IntersectionService(); }
|
|
6595
6603
|
/**
|
|
6596
6604
|
* @internal
|
|
6597
6605
|
*/
|
|
@@ -6689,7 +6697,6 @@
|
|
|
6689
6697
|
this.updateRegionStyle();
|
|
6690
6698
|
}
|
|
6691
6699
|
};
|
|
6692
|
-
AnchoredRegion$1.intersectionService = new IntersectionService();
|
|
6693
6700
|
__decorate([
|
|
6694
6701
|
attr
|
|
6695
6702
|
], AnchoredRegion$1.prototype, "anchor", void 0);
|
|
@@ -6821,12 +6828,11 @@
|
|
|
6821
6828
|
* We look in the shadow DOM because we insert an anchor when breadcrumb-item has an href.
|
|
6822
6829
|
*/
|
|
6823
6830
|
findChildWithHref(node) {
|
|
6824
|
-
var _a, _b;
|
|
6825
6831
|
if (node.childElementCount > 0) {
|
|
6826
6832
|
return node.querySelector("a[href]");
|
|
6827
6833
|
}
|
|
6828
|
-
else if (
|
|
6829
|
-
return
|
|
6834
|
+
else if (node.shadowRoot?.childElementCount) {
|
|
6835
|
+
return node.shadowRoot?.querySelector("a[href]");
|
|
6830
6836
|
}
|
|
6831
6837
|
else
|
|
6832
6838
|
return null;
|
|
@@ -7213,7 +7219,6 @@
|
|
|
7213
7219
|
* Attach the proxy element to the DOM
|
|
7214
7220
|
*/
|
|
7215
7221
|
attachProxy() {
|
|
7216
|
-
var _a;
|
|
7217
7222
|
if (!this.proxyInitialized) {
|
|
7218
7223
|
this.proxyInitialized = true;
|
|
7219
7224
|
this.proxy.style.display = "none";
|
|
@@ -7234,16 +7239,15 @@
|
|
|
7234
7239
|
this.proxySlot = document.createElement("slot");
|
|
7235
7240
|
this.proxySlot.setAttribute("name", proxySlotName);
|
|
7236
7241
|
}
|
|
7237
|
-
|
|
7242
|
+
this.shadowRoot?.appendChild(this.proxySlot);
|
|
7238
7243
|
this.appendChild(this.proxy);
|
|
7239
7244
|
}
|
|
7240
7245
|
/**
|
|
7241
7246
|
* Detach the proxy element from the DOM
|
|
7242
7247
|
*/
|
|
7243
7248
|
detachProxy() {
|
|
7244
|
-
var _a;
|
|
7245
7249
|
this.removeChild(this.proxy);
|
|
7246
|
-
|
|
7250
|
+
this.shadowRoot?.removeChild(this.proxySlot);
|
|
7247
7251
|
}
|
|
7248
7252
|
/** {@inheritDoc (FormAssociated:interface).validate} */
|
|
7249
7253
|
validate(anchor) {
|
|
@@ -7267,7 +7271,7 @@
|
|
|
7267
7271
|
if (this.form instanceof HTMLFormElement) {
|
|
7268
7272
|
// Implicit submission
|
|
7269
7273
|
const defaultButton = this.form.querySelector("[type=submit]");
|
|
7270
|
-
defaultButton
|
|
7274
|
+
defaultButton?.click();
|
|
7271
7275
|
}
|
|
7272
7276
|
break;
|
|
7273
7277
|
}
|
|
@@ -7409,8 +7413,7 @@
|
|
|
7409
7413
|
* @internal
|
|
7410
7414
|
*/
|
|
7411
7415
|
this.handleClick = (e) => {
|
|
7412
|
-
|
|
7413
|
-
if (this.disabled && ((_a = this.defaultSlottedContent) === null || _a === void 0 ? void 0 : _a.length) <= 1) {
|
|
7416
|
+
if (this.disabled && this.defaultSlottedContent?.length <= 1) {
|
|
7414
7417
|
e.stopPropagation();
|
|
7415
7418
|
}
|
|
7416
7419
|
};
|
|
@@ -7441,8 +7444,7 @@
|
|
|
7441
7444
|
* Resets the parent form
|
|
7442
7445
|
*/
|
|
7443
7446
|
this.handleFormReset = () => {
|
|
7444
|
-
|
|
7445
|
-
(_a = this.form) === null || _a === void 0 ? void 0 : _a.reset();
|
|
7447
|
+
this.form?.reset();
|
|
7446
7448
|
};
|
|
7447
7449
|
/**
|
|
7448
7450
|
* Overrides the focus call for where delegatesFocus is unsupported.
|
|
@@ -7450,11 +7452,10 @@
|
|
|
7450
7452
|
* Relevant PR on the Firefox browser: https://phabricator.services.mozilla.com/D123858
|
|
7451
7453
|
*/
|
|
7452
7454
|
this.handleUnsupportedDelegatesFocus = () => {
|
|
7453
|
-
var _a;
|
|
7454
7455
|
// Check to see if delegatesFocus is supported
|
|
7455
7456
|
if (window.ShadowRoot &&
|
|
7456
7457
|
!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus") &&
|
|
7457
|
-
|
|
7458
|
+
this.$fastController.definition.shadowOptions?.delegatesFocus) {
|
|
7458
7459
|
this.focus = () => {
|
|
7459
7460
|
this.control.focus();
|
|
7460
7461
|
};
|
|
@@ -7507,11 +7508,10 @@
|
|
|
7507
7508
|
* @internal
|
|
7508
7509
|
*/
|
|
7509
7510
|
connectedCallback() {
|
|
7510
|
-
var _a;
|
|
7511
7511
|
super.connectedCallback();
|
|
7512
7512
|
this.proxy.setAttribute("type", this.type);
|
|
7513
7513
|
this.handleUnsupportedDelegatesFocus();
|
|
7514
|
-
const elements = Array.from(
|
|
7514
|
+
const elements = Array.from(this.control?.children);
|
|
7515
7515
|
if (elements) {
|
|
7516
7516
|
elements.forEach((span) => {
|
|
7517
7517
|
span.addEventListener("click", this.handleClick);
|
|
@@ -7522,9 +7522,8 @@
|
|
|
7522
7522
|
* @internal
|
|
7523
7523
|
*/
|
|
7524
7524
|
disconnectedCallback() {
|
|
7525
|
-
var _a;
|
|
7526
7525
|
super.disconnectedCallback();
|
|
7527
|
-
const elements = Array.from(
|
|
7526
|
+
const elements = Array.from(this.control?.children);
|
|
7528
7527
|
if (elements) {
|
|
7529
7528
|
elements.forEach((span) => {
|
|
7530
7529
|
span.removeEventListener("click", this.handleClick);
|
|
@@ -7760,15 +7759,13 @@
|
|
|
7760
7759
|
}
|
|
7761
7760
|
}
|
|
7762
7761
|
get label() {
|
|
7763
|
-
|
|
7764
|
-
return (_a = this.value) !== null && _a !== void 0 ? _a : this.text;
|
|
7762
|
+
return this.value ?? this.text;
|
|
7765
7763
|
}
|
|
7766
7764
|
get text() {
|
|
7767
|
-
|
|
7768
|
-
return (_b = (_a = this.textContent) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, " ").trim()) !== null && _b !== void 0 ? _b : "";
|
|
7765
|
+
return this.textContent?.replace(/\s+/g, " ").trim() ?? "";
|
|
7769
7766
|
}
|
|
7770
7767
|
set value(next) {
|
|
7771
|
-
const newValue = `${next
|
|
7768
|
+
const newValue = `${next ?? ""}`;
|
|
7772
7769
|
this._value = newValue;
|
|
7773
7770
|
this.dirtyValue = true;
|
|
7774
7771
|
if (this.proxy instanceof HTMLOptionElement) {
|
|
@@ -7777,9 +7774,8 @@
|
|
|
7777
7774
|
Observable.notify(this, "value");
|
|
7778
7775
|
}
|
|
7779
7776
|
get value() {
|
|
7780
|
-
var _a;
|
|
7781
7777
|
Observable.track(this, "value");
|
|
7782
|
-
return
|
|
7778
|
+
return this._value ?? this.text;
|
|
7783
7779
|
}
|
|
7784
7780
|
get form() {
|
|
7785
7781
|
return this.proxy ? this.proxy.form : null;
|
|
@@ -7926,8 +7922,7 @@
|
|
|
7926
7922
|
* @internal
|
|
7927
7923
|
*/
|
|
7928
7924
|
get firstSelectedOption() {
|
|
7929
|
-
|
|
7930
|
-
return (_a = this.selectedOptions[0]) !== null && _a !== void 0 ? _a : null;
|
|
7925
|
+
return this.selectedOptions[0] ?? null;
|
|
7931
7926
|
}
|
|
7932
7927
|
/**
|
|
7933
7928
|
* Returns true if there is one or more selectable option.
|
|
@@ -7943,8 +7938,7 @@
|
|
|
7943
7938
|
* @public
|
|
7944
7939
|
*/
|
|
7945
7940
|
get length() {
|
|
7946
|
-
|
|
7947
|
-
return (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
7941
|
+
return this.options?.length ?? 0;
|
|
7948
7942
|
}
|
|
7949
7943
|
/**
|
|
7950
7944
|
* The list of options.
|
|
@@ -7971,6 +7965,19 @@
|
|
|
7971
7965
|
set typeAheadExpired(value) {
|
|
7972
7966
|
this.typeaheadExpired = value;
|
|
7973
7967
|
}
|
|
7968
|
+
/**
|
|
7969
|
+
* A static filter to include only selectable options.
|
|
7970
|
+
*
|
|
7971
|
+
* @param n - element to filter
|
|
7972
|
+
* @public
|
|
7973
|
+
*/
|
|
7974
|
+
static { this.slottedOptionFilter = (n) => isListboxOption(n) && !n.hidden; }
|
|
7975
|
+
/**
|
|
7976
|
+
* Typeahead timeout in milliseconds.
|
|
7977
|
+
*
|
|
7978
|
+
* @internal
|
|
7979
|
+
*/
|
|
7980
|
+
static { this.TYPE_AHEAD_TIMEOUT_MS = 1000; }
|
|
7974
7981
|
/**
|
|
7975
7982
|
* Handle click events for listbox options.
|
|
7976
7983
|
*
|
|
@@ -8191,12 +8198,11 @@
|
|
|
8191
8198
|
* @internal
|
|
8192
8199
|
*/
|
|
8193
8200
|
selectedIndexChanged(prev, next) {
|
|
8194
|
-
var _a;
|
|
8195
8201
|
if (!this.hasSelectableOptions) {
|
|
8196
8202
|
this.selectedIndex = -1;
|
|
8197
8203
|
return;
|
|
8198
8204
|
}
|
|
8199
|
-
if (
|
|
8205
|
+
if (this.options[this.selectedIndex]?.disabled && typeof prev === "number") {
|
|
8200
8206
|
const selectableIndex = this.getSelectableIndex(prev, next);
|
|
8201
8207
|
const newNext = selectableIndex > -1 ? selectableIndex : prev;
|
|
8202
8208
|
this.selectedIndex = newNext;
|
|
@@ -8216,9 +8222,8 @@
|
|
|
8216
8222
|
* @internal
|
|
8217
8223
|
*/
|
|
8218
8224
|
selectedOptionsChanged(prev, next) {
|
|
8219
|
-
var _a;
|
|
8220
8225
|
const filteredNext = next.filter(Listbox.slottedOptionFilter);
|
|
8221
|
-
|
|
8226
|
+
this.options?.forEach(o => {
|
|
8222
8227
|
const notifier = Observable.getNotifier(o);
|
|
8223
8228
|
notifier.unsubscribe(this, "selected");
|
|
8224
8229
|
o.selected = filteredNext.includes(o);
|
|
@@ -8231,9 +8236,8 @@
|
|
|
8231
8236
|
* @public
|
|
8232
8237
|
*/
|
|
8233
8238
|
selectFirstOption() {
|
|
8234
|
-
var _a, _b;
|
|
8235
8239
|
if (!this.disabled) {
|
|
8236
|
-
this.selectedIndex =
|
|
8240
|
+
this.selectedIndex = this.options?.findIndex(o => !o.disabled) ?? -1;
|
|
8237
8241
|
}
|
|
8238
8242
|
}
|
|
8239
8243
|
/**
|
|
@@ -8272,8 +8276,7 @@
|
|
|
8272
8276
|
* @internal
|
|
8273
8277
|
*/
|
|
8274
8278
|
setDefaultSelectedOption() {
|
|
8275
|
-
|
|
8276
|
-
this.selectedIndex = (_b = (_a = this.options) === null || _a === void 0 ? void 0 : _a.findIndex(el => el.defaultSelected)) !== null && _b !== void 0 ? _b : -1;
|
|
8279
|
+
this.selectedIndex = this.options?.findIndex(el => el.defaultSelected) ?? -1;
|
|
8277
8280
|
}
|
|
8278
8281
|
/**
|
|
8279
8282
|
* Sets an option as selected and gives it focus.
|
|
@@ -8281,10 +8284,9 @@
|
|
|
8281
8284
|
* @public
|
|
8282
8285
|
*/
|
|
8283
8286
|
setSelectedOptions() {
|
|
8284
|
-
|
|
8285
|
-
if ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) {
|
|
8287
|
+
if (this.options?.length) {
|
|
8286
8288
|
this.selectedOptions = [this.options[this.selectedIndex]];
|
|
8287
|
-
this.ariaActiveDescendant =
|
|
8289
|
+
this.ariaActiveDescendant = this.firstSelectedOption?.id ?? "";
|
|
8288
8290
|
this.focusAndScrollOptionIntoView();
|
|
8289
8291
|
}
|
|
8290
8292
|
}
|
|
@@ -8337,19 +8339,6 @@
|
|
|
8337
8339
|
}
|
|
8338
8340
|
}
|
|
8339
8341
|
}
|
|
8340
|
-
/**
|
|
8341
|
-
* A static filter to include only selectable options.
|
|
8342
|
-
*
|
|
8343
|
-
* @param n - element to filter
|
|
8344
|
-
* @public
|
|
8345
|
-
*/
|
|
8346
|
-
Listbox.slottedOptionFilter = (n) => isListboxOption(n) && !n.hidden;
|
|
8347
|
-
/**
|
|
8348
|
-
* Typeahead timeout in milliseconds.
|
|
8349
|
-
*
|
|
8350
|
-
* @internal
|
|
8351
|
-
*/
|
|
8352
|
-
Listbox.TYPE_AHEAD_TIMEOUT_MS = 1000;
|
|
8353
8342
|
__decorate([
|
|
8354
8343
|
attr({ mode: "boolean" })
|
|
8355
8344
|
], Listbox.prototype, "disabled", void 0);
|
|
@@ -8568,17 +8557,16 @@
|
|
|
8568
8557
|
return this._value;
|
|
8569
8558
|
}
|
|
8570
8559
|
set value(next) {
|
|
8571
|
-
var _a, _b, _c;
|
|
8572
8560
|
const prev = `${this._value}`;
|
|
8573
8561
|
if (this.$fastController.isConnected && this.options) {
|
|
8574
8562
|
const selectedIndex = this.options.findIndex(el => el.text.toLowerCase() === next.toLowerCase());
|
|
8575
|
-
const prevSelectedValue =
|
|
8576
|
-
const nextSelectedValue =
|
|
8563
|
+
const prevSelectedValue = this.options[this.selectedIndex]?.text;
|
|
8564
|
+
const nextSelectedValue = this.options[selectedIndex]?.text;
|
|
8577
8565
|
this.selectedIndex =
|
|
8578
8566
|
prevSelectedValue !== nextSelectedValue
|
|
8579
8567
|
? selectedIndex
|
|
8580
8568
|
: this.selectedIndex;
|
|
8581
|
-
next =
|
|
8569
|
+
next = this.firstSelectedOption?.text || next;
|
|
8582
8570
|
}
|
|
8583
8571
|
if (prev !== next) {
|
|
8584
8572
|
this._value = next;
|
|
@@ -8594,7 +8582,7 @@
|
|
|
8594
8582
|
*/
|
|
8595
8583
|
clickHandler(e) {
|
|
8596
8584
|
const captured = e.target.closest(`option,[role=option]`);
|
|
8597
|
-
if (this.disabled ||
|
|
8585
|
+
if (this.disabled || captured?.disabled) {
|
|
8598
8586
|
return;
|
|
8599
8587
|
}
|
|
8600
8588
|
if (this.open) {
|
|
@@ -8667,8 +8655,7 @@
|
|
|
8667
8655
|
this.control.focus();
|
|
8668
8656
|
if (this.firstSelectedOption) {
|
|
8669
8657
|
requestAnimationFrame(() => {
|
|
8670
|
-
|
|
8671
|
-
(_a = this.firstSelectedOption) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: "nearest" });
|
|
8658
|
+
this.firstSelectedOption?.scrollIntoView({ block: "nearest" });
|
|
8672
8659
|
});
|
|
8673
8660
|
}
|
|
8674
8661
|
}
|
|
@@ -8887,8 +8874,7 @@
|
|
|
8887
8874
|
* @internal
|
|
8888
8875
|
*/
|
|
8889
8876
|
syncValue() {
|
|
8890
|
-
|
|
8891
|
-
const newValue = this.selectedIndex > -1 ? (_a = this.firstSelectedOption) === null || _a === void 0 ? void 0 : _a.text : this.control.value;
|
|
8877
|
+
const newValue = this.selectedIndex > -1 ? this.firstSelectedOption?.text : this.control.value;
|
|
8892
8878
|
this.updateValue(this.value !== newValue);
|
|
8893
8879
|
}
|
|
8894
8880
|
/**
|
|
@@ -8949,9 +8935,8 @@
|
|
|
8949
8935
|
* @internal
|
|
8950
8936
|
*/
|
|
8951
8937
|
updateValue(shouldEmit) {
|
|
8952
|
-
var _a;
|
|
8953
8938
|
if (this.$fastController.isConnected) {
|
|
8954
|
-
this.value =
|
|
8939
|
+
this.value = this.firstSelectedOption?.text || this.control.value;
|
|
8955
8940
|
this.control.value = this.value;
|
|
8956
8941
|
}
|
|
8957
8942
|
if (shouldEmit) {
|
|
@@ -9180,6 +9165,8 @@
|
|
|
9180
9165
|
* @internal
|
|
9181
9166
|
*/
|
|
9182
9167
|
class RootStyleSheetTarget {
|
|
9168
|
+
static { this.roots = new Set(); }
|
|
9169
|
+
static { this.properties = {}; }
|
|
9183
9170
|
setProperty(name, value) {
|
|
9184
9171
|
RootStyleSheetTarget.properties[name] = value;
|
|
9185
9172
|
for (const target of RootStyleSheetTarget.roots.values()) {
|
|
@@ -9221,8 +9208,6 @@
|
|
|
9221
9208
|
return root === defaultElement ? document : root;
|
|
9222
9209
|
}
|
|
9223
9210
|
}
|
|
9224
|
-
RootStyleSheetTarget.roots = new Set();
|
|
9225
|
-
RootStyleSheetTarget.properties = {};
|
|
9226
9211
|
// Caches PropertyTarget instances
|
|
9227
9212
|
const propertyTargetCache = new WeakMap();
|
|
9228
9213
|
// Use Constructable StyleSheets for FAST elements when supported, otherwise use
|
|
@@ -9284,6 +9269,13 @@
|
|
|
9284
9269
|
static isDerivedDesignTokenValue(value) {
|
|
9285
9270
|
return typeof value === "function";
|
|
9286
9271
|
}
|
|
9272
|
+
static { this.uniqueId = (() => {
|
|
9273
|
+
let id = 0;
|
|
9274
|
+
return () => {
|
|
9275
|
+
id++;
|
|
9276
|
+
return id.toString(16);
|
|
9277
|
+
};
|
|
9278
|
+
})(); }
|
|
9287
9279
|
/**
|
|
9288
9280
|
* Gets a token by ID. Returns undefined if the token was not found.
|
|
9289
9281
|
* @param id - The ID of the token
|
|
@@ -9292,6 +9284,10 @@
|
|
|
9292
9284
|
static getTokenById(id) {
|
|
9293
9285
|
return DesignTokenImpl.tokensById.get(id);
|
|
9294
9286
|
}
|
|
9287
|
+
/**
|
|
9288
|
+
* Token storage by token ID
|
|
9289
|
+
*/
|
|
9290
|
+
static { this.tokensById = new Map(); }
|
|
9295
9291
|
getOrCreateSubscriberSet(target = this) {
|
|
9296
9292
|
return (this.subscribers.get(target) ||
|
|
9297
9293
|
(this.subscribers.set(target, new Set()) && this.subscribers.get(target)));
|
|
@@ -9373,17 +9369,6 @@
|
|
|
9373
9369
|
return ((target) => token.getValueFor(target));
|
|
9374
9370
|
}
|
|
9375
9371
|
}
|
|
9376
|
-
DesignTokenImpl.uniqueId = (() => {
|
|
9377
|
-
let id = 0;
|
|
9378
|
-
return () => {
|
|
9379
|
-
id++;
|
|
9380
|
-
return id.toString(16);
|
|
9381
|
-
};
|
|
9382
|
-
})();
|
|
9383
|
-
/**
|
|
9384
|
-
* Token storage by token ID
|
|
9385
|
-
*/
|
|
9386
|
-
DesignTokenImpl.tokensById = new Map();
|
|
9387
9372
|
class CustomPropertyReflector {
|
|
9388
9373
|
startReflection(token, target) {
|
|
9389
9374
|
token.subscribe(this, target);
|
|
@@ -9530,6 +9515,10 @@
|
|
|
9530
9515
|
} while (current !== null);
|
|
9531
9516
|
return null;
|
|
9532
9517
|
}
|
|
9518
|
+
/**
|
|
9519
|
+
* Responsible for reflecting tokens to CSS custom properties
|
|
9520
|
+
*/
|
|
9521
|
+
static { this.cssCustomPropertyReflector = new CustomPropertyReflector(); }
|
|
9533
9522
|
/**
|
|
9534
9523
|
* The parent DesignTokenNode, or null.
|
|
9535
9524
|
*/
|
|
@@ -9630,11 +9619,10 @@
|
|
|
9630
9619
|
* @returns
|
|
9631
9620
|
*/
|
|
9632
9621
|
getRaw(token) {
|
|
9633
|
-
var _a;
|
|
9634
9622
|
if (this.assignedValues.has(token)) {
|
|
9635
9623
|
return this.assignedValues.get(token);
|
|
9636
9624
|
}
|
|
9637
|
-
return
|
|
9625
|
+
return DesignTokenNode.findClosestAssignedNode(token, this)?.getRaw(token);
|
|
9638
9626
|
}
|
|
9639
9627
|
/**
|
|
9640
9628
|
* Sets a token to a value for a node
|
|
@@ -9835,10 +9823,6 @@
|
|
|
9835
9823
|
return false;
|
|
9836
9824
|
}
|
|
9837
9825
|
}
|
|
9838
|
-
/**
|
|
9839
|
-
* Responsible for reflecting tokens to CSS custom properties
|
|
9840
|
-
*/
|
|
9841
|
-
DesignTokenNode.cssCustomPropertyReflector = new CustomPropertyReflector();
|
|
9842
9826
|
__decorate([
|
|
9843
9827
|
observable
|
|
9844
9828
|
], DesignTokenNode.prototype, "children", void 0);
|
|
@@ -10108,7 +10092,10 @@
|
|
|
10108
10092
|
ComponentPresentation.define(this.name, presentation, this.container);
|
|
10109
10093
|
}
|
|
10110
10094
|
defineElement(definition) {
|
|
10111
|
-
this.definition = new FASTElementDefinition(this.type,
|
|
10095
|
+
this.definition = new FASTElementDefinition(this.type, {
|
|
10096
|
+
...definition,
|
|
10097
|
+
name: this.name,
|
|
10098
|
+
});
|
|
10112
10099
|
}
|
|
10113
10100
|
tagFor(type) {
|
|
10114
10101
|
return DesignSystem.tagFor(type);
|
|
@@ -10404,8 +10391,7 @@
|
|
|
10404
10391
|
* @internal
|
|
10405
10392
|
*/
|
|
10406
10393
|
get checkedOptions() {
|
|
10407
|
-
|
|
10408
|
-
return (_a = this.options) === null || _a === void 0 ? void 0 : _a.filter(o => o.checked);
|
|
10394
|
+
return this.options?.filter(o => o.checked);
|
|
10409
10395
|
}
|
|
10410
10396
|
/**
|
|
10411
10397
|
* Returns the index of the first selected option.
|
|
@@ -10424,8 +10410,7 @@
|
|
|
10424
10410
|
* @internal
|
|
10425
10411
|
*/
|
|
10426
10412
|
activeIndexChanged(prev, next) {
|
|
10427
|
-
|
|
10428
|
-
this.ariaActiveDescendant = (_b = (_a = this.options[next]) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : "";
|
|
10413
|
+
this.ariaActiveDescendant = this.options[next]?.id ?? "";
|
|
10429
10414
|
this.focusAndScrollOptionIntoView();
|
|
10430
10415
|
}
|
|
10431
10416
|
/**
|
|
@@ -10573,11 +10558,10 @@
|
|
|
10573
10558
|
* @internal
|
|
10574
10559
|
*/
|
|
10575
10560
|
clickHandler(e) {
|
|
10576
|
-
var _a;
|
|
10577
10561
|
if (!this.multiple) {
|
|
10578
10562
|
return super.clickHandler(e);
|
|
10579
10563
|
}
|
|
10580
|
-
const captured =
|
|
10564
|
+
const captured = e.target?.closest(`[role=option]`);
|
|
10581
10565
|
if (!captured || captured.disabled) {
|
|
10582
10566
|
return;
|
|
10583
10567
|
}
|
|
@@ -10710,9 +10694,8 @@
|
|
|
10710
10694
|
* @internal
|
|
10711
10695
|
*/
|
|
10712
10696
|
multipleChanged(prev, next) {
|
|
10713
|
-
var _a;
|
|
10714
10697
|
this.ariaMultiSelectable = next ? "true" : null;
|
|
10715
|
-
|
|
10698
|
+
this.options?.forEach(o => {
|
|
10716
10699
|
o.checked = next ? false : undefined;
|
|
10717
10700
|
});
|
|
10718
10701
|
this.setSelectedOptions();
|
|
@@ -10742,8 +10725,7 @@
|
|
|
10742
10725
|
* @internal
|
|
10743
10726
|
*/
|
|
10744
10727
|
sizeChanged(prev, next) {
|
|
10745
|
-
|
|
10746
|
-
const size = Math.max(0, parseInt((_a = next === null || next === void 0 ? void 0 : next.toFixed()) !== null && _a !== void 0 ? _a : "", 10));
|
|
10728
|
+
const size = Math.max(0, parseInt(next?.toFixed() ?? "", 10));
|
|
10747
10729
|
if (size !== next) {
|
|
10748
10730
|
DOM.queueUpdate(() => {
|
|
10749
10731
|
this.size = size;
|
|
@@ -11423,8 +11405,7 @@
|
|
|
11423
11405
|
* @internal
|
|
11424
11406
|
*/
|
|
11425
11407
|
maxChanged(previous, next) {
|
|
11426
|
-
|
|
11427
|
-
this.max = Math.max(next, (_a = this.min) !== null && _a !== void 0 ? _a : next);
|
|
11408
|
+
this.max = Math.max(next, this.min ?? next);
|
|
11428
11409
|
const min = Math.min(this.min, this.max);
|
|
11429
11410
|
if (this.min !== undefined && this.min !== min) {
|
|
11430
11411
|
this.min = min;
|
|
@@ -11440,8 +11421,7 @@
|
|
|
11440
11421
|
* @internal
|
|
11441
11422
|
*/
|
|
11442
11423
|
minChanged(previous, next) {
|
|
11443
|
-
|
|
11444
|
-
this.min = Math.min(next, (_a = this.max) !== null && _a !== void 0 ? _a : next);
|
|
11424
|
+
this.min = Math.min(next, this.max ?? next);
|
|
11445
11425
|
const max = Math.max(this.min, this.max);
|
|
11446
11426
|
if (this.max !== undefined && this.max !== max) {
|
|
11447
11427
|
this.max = max;
|
|
@@ -11737,12 +11717,10 @@
|
|
|
11737
11717
|
radio.focus();
|
|
11738
11718
|
};
|
|
11739
11719
|
this.moveRightOffGroup = () => {
|
|
11740
|
-
|
|
11741
|
-
(_a = this.nextElementSibling) === null || _a === void 0 ? void 0 : _a.focus();
|
|
11720
|
+
this.nextElementSibling?.focus();
|
|
11742
11721
|
};
|
|
11743
11722
|
this.moveLeftOffGroup = () => {
|
|
11744
|
-
|
|
11745
|
-
(_a = this.previousElementSibling) === null || _a === void 0 ? void 0 : _a.focus();
|
|
11723
|
+
this.previousElementSibling?.focus();
|
|
11746
11724
|
};
|
|
11747
11725
|
/**
|
|
11748
11726
|
* @internal
|
|
@@ -11968,12 +11946,10 @@
|
|
|
11968
11946
|
return this.closest('[role="toolbar"]');
|
|
11969
11947
|
}
|
|
11970
11948
|
get isInsideToolbar() {
|
|
11971
|
-
|
|
11972
|
-
return ((_a = this.parentToolbar) !== null && _a !== void 0 ? _a : false);
|
|
11949
|
+
return (this.parentToolbar ?? false);
|
|
11973
11950
|
}
|
|
11974
11951
|
get isInsideFoundationToolbar() {
|
|
11975
|
-
|
|
11976
|
-
return !!((_a = this.parentToolbar) === null || _a === void 0 ? void 0 : _a["$fastController"]);
|
|
11952
|
+
return !!this.parentToolbar?.["$fastController"];
|
|
11977
11953
|
}
|
|
11978
11954
|
/**
|
|
11979
11955
|
* @internal
|
|
@@ -12130,13 +12106,12 @@
|
|
|
12130
12106
|
* @internal
|
|
12131
12107
|
*/
|
|
12132
12108
|
defaultCheckedChanged() {
|
|
12133
|
-
var _a;
|
|
12134
12109
|
if (this.$fastController.isConnected && !this.dirtyChecked) {
|
|
12135
12110
|
// Setting this.checked will cause us to enter a dirty state,
|
|
12136
12111
|
// but if we are clean when defaultChecked is changed, we want to stay
|
|
12137
12112
|
// in a clean state, so reset this.dirtyChecked
|
|
12138
12113
|
if (!this.isInsideRadioGroup()) {
|
|
12139
|
-
this.checked =
|
|
12114
|
+
this.checked = this.defaultChecked ?? false;
|
|
12140
12115
|
this.dirtyChecked = false;
|
|
12141
12116
|
}
|
|
12142
12117
|
}
|
|
@@ -12169,10 +12144,9 @@
|
|
|
12169
12144
|
* @internal
|
|
12170
12145
|
*/
|
|
12171
12146
|
connectedCallback() {
|
|
12172
|
-
var _a, _b;
|
|
12173
12147
|
super.connectedCallback();
|
|
12174
12148
|
this.validate();
|
|
12175
|
-
if (
|
|
12149
|
+
if (this.parentElement?.getAttribute("role") !== "radiogroup" &&
|
|
12176
12150
|
this.getAttribute("tabindex") === null) {
|
|
12177
12151
|
if (!this.disabled) {
|
|
12178
12152
|
this.setAttribute("tabindex", "0");
|
|
@@ -12184,7 +12158,7 @@
|
|
|
12184
12158
|
// but if we are clean when defaultChecked is changed, we want to stay
|
|
12185
12159
|
// in a clean state, so reset this.dirtyChecked
|
|
12186
12160
|
if (!this.isInsideRadioGroup()) {
|
|
12187
|
-
this.checked =
|
|
12161
|
+
this.checked = this.defaultChecked ?? false;
|
|
12188
12162
|
this.dirtyChecked = false;
|
|
12189
12163
|
}
|
|
12190
12164
|
}
|
|
@@ -12333,17 +12307,16 @@
|
|
|
12333
12307
|
return this._value;
|
|
12334
12308
|
}
|
|
12335
12309
|
set value(next) {
|
|
12336
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
12337
12310
|
const prev = `${this._value}`;
|
|
12338
|
-
if (
|
|
12311
|
+
if (this._options?.length) {
|
|
12339
12312
|
const selectedIndex = this._options.findIndex(el => el.value === next);
|
|
12340
|
-
const prevSelectedValue =
|
|
12341
|
-
const nextSelectedValue =
|
|
12313
|
+
const prevSelectedValue = this._options[this.selectedIndex]?.value ?? null;
|
|
12314
|
+
const nextSelectedValue = this._options[selectedIndex]?.value ?? null;
|
|
12342
12315
|
if (selectedIndex === -1 || prevSelectedValue !== nextSelectedValue) {
|
|
12343
12316
|
next = "";
|
|
12344
12317
|
this.selectedIndex = selectedIndex;
|
|
12345
12318
|
}
|
|
12346
|
-
next =
|
|
12319
|
+
next = this.firstSelectedOption?.value ?? next;
|
|
12347
12320
|
}
|
|
12348
12321
|
if (prev !== next) {
|
|
12349
12322
|
this._value = next;
|
|
@@ -12360,9 +12333,8 @@
|
|
|
12360
12333
|
* @internal
|
|
12361
12334
|
*/
|
|
12362
12335
|
updateValue(shouldEmit) {
|
|
12363
|
-
var _a, _b;
|
|
12364
12336
|
if (this.$fastController.isConnected) {
|
|
12365
|
-
this.value =
|
|
12337
|
+
this.value = this.firstSelectedOption?.value ?? "";
|
|
12366
12338
|
}
|
|
12367
12339
|
if (shouldEmit) {
|
|
12368
12340
|
this.$emit("input");
|
|
@@ -12414,9 +12386,8 @@
|
|
|
12414
12386
|
* @public
|
|
12415
12387
|
*/
|
|
12416
12388
|
get displayValue() {
|
|
12417
|
-
var _a, _b;
|
|
12418
12389
|
Observable.track(this, "displayValue");
|
|
12419
|
-
return
|
|
12390
|
+
return this.firstSelectedOption?.text ?? "";
|
|
12420
12391
|
}
|
|
12421
12392
|
/**
|
|
12422
12393
|
* Synchronize the `aria-disabled` property when the `disabled` property changes.
|
|
@@ -12477,7 +12448,6 @@
|
|
|
12477
12448
|
* @internal
|
|
12478
12449
|
*/
|
|
12479
12450
|
focusoutHandler(e) {
|
|
12480
|
-
var _a;
|
|
12481
12451
|
super.focusoutHandler(e);
|
|
12482
12452
|
if (!this.open) {
|
|
12483
12453
|
return true;
|
|
@@ -12487,7 +12457,7 @@
|
|
|
12487
12457
|
this.focus();
|
|
12488
12458
|
return;
|
|
12489
12459
|
}
|
|
12490
|
-
if (!
|
|
12460
|
+
if (!this.options?.includes(focusTarget)) {
|
|
12491
12461
|
this.open = false;
|
|
12492
12462
|
if (this.indexWhenOpened !== this.selectedIndex) {
|
|
12493
12463
|
this.updateValue(true);
|
|
@@ -12539,8 +12509,7 @@
|
|
|
12539
12509
|
* @internal
|
|
12540
12510
|
*/
|
|
12541
12511
|
mousedownHandler(e) {
|
|
12542
|
-
|
|
12543
|
-
if (e.offsetX >= 0 && e.offsetX <= ((_a = this.listbox) === null || _a === void 0 ? void 0 : _a.scrollWidth)) {
|
|
12512
|
+
if (e.offsetX >= 0 && e.offsetX <= this.listbox?.scrollWidth) {
|
|
12544
12513
|
return super.mousedownHandler(e);
|
|
12545
12514
|
}
|
|
12546
12515
|
return this.collapsible;
|
|
@@ -12567,11 +12536,9 @@
|
|
|
12567
12536
|
* @internal
|
|
12568
12537
|
*/
|
|
12569
12538
|
selectedOptionsChanged(prev, next) {
|
|
12570
|
-
var _a;
|
|
12571
12539
|
super.selectedOptionsChanged(prev, next);
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
const proxyOption = (_a = this.proxy) === null || _a === void 0 ? void 0 : _a.options.item(i);
|
|
12540
|
+
this.options?.forEach((o, i) => {
|
|
12541
|
+
const proxyOption = this.proxy?.options.item(i);
|
|
12575
12542
|
if (proxyOption) {
|
|
12576
12543
|
proxyOption.selected = o.selected;
|
|
12577
12544
|
}
|
|
@@ -12585,9 +12552,8 @@
|
|
|
12585
12552
|
* @internal
|
|
12586
12553
|
*/
|
|
12587
12554
|
setDefaultSelectedOption() {
|
|
12588
|
-
|
|
12589
|
-
const
|
|
12590
|
-
const selectedIndex = options === null || options === void 0 ? void 0 : options.findIndex(el => el.hasAttribute("selected") || el.selected || el.value === this.value);
|
|
12555
|
+
const options = this.options ?? Array.from(this.children).filter(Listbox.slottedOptionFilter);
|
|
12556
|
+
const selectedIndex = options?.findIndex(el => el.hasAttribute("selected") || el.selected || el.value === this.value);
|
|
12591
12557
|
if (selectedIndex !== -1) {
|
|
12592
12558
|
this.selectedIndex = selectedIndex;
|
|
12593
12559
|
return;
|
|
@@ -13133,14 +13099,12 @@
|
|
|
13133
13099
|
}
|
|
13134
13100
|
getTabIds() {
|
|
13135
13101
|
return this.tabs.map((tab) => {
|
|
13136
|
-
|
|
13137
|
-
return (_a = tab.getAttribute("id")) !== null && _a !== void 0 ? _a : `tab-${uniqueId()}`;
|
|
13102
|
+
return tab.getAttribute("id") ?? `tab-${uniqueId()}`;
|
|
13138
13103
|
});
|
|
13139
13104
|
}
|
|
13140
13105
|
getTabPanelIds() {
|
|
13141
13106
|
return this.tabpanels.map((tabPanel) => {
|
|
13142
|
-
|
|
13143
|
-
return (_a = tabPanel.getAttribute("id")) !== null && _a !== void 0 ? _a : `panel-${uniqueId()}`;
|
|
13107
|
+
return tabPanel.getAttribute("id") ?? `panel-${uniqueId()}`;
|
|
13144
13108
|
});
|
|
13145
13109
|
}
|
|
13146
13110
|
setComponent() {
|
|
@@ -13537,8 +13501,7 @@
|
|
|
13537
13501
|
* @internal
|
|
13538
13502
|
*/
|
|
13539
13503
|
mouseDownHandler(e) {
|
|
13540
|
-
|
|
13541
|
-
const activeIndex = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a.findIndex(x => x.contains(e.target));
|
|
13504
|
+
const activeIndex = this.focusableElements?.findIndex(x => x.contains(e.target));
|
|
13542
13505
|
if (activeIndex > -1 && this.activeIndex !== activeIndex) {
|
|
13543
13506
|
this.setFocusedElement(activeIndex);
|
|
13544
13507
|
}
|
|
@@ -13576,8 +13539,9 @@
|
|
|
13576
13539
|
* @internal
|
|
13577
13540
|
*/
|
|
13578
13541
|
getDirectionalIncrementer(key) {
|
|
13579
|
-
|
|
13580
|
-
|
|
13542
|
+
return (ToolbarArrowKeyMap[key]?.[this.orientation]?.[this.direction] ??
|
|
13543
|
+
ToolbarArrowKeyMap[key]?.[this.orientation] ??
|
|
13544
|
+
0);
|
|
13581
13545
|
}
|
|
13582
13546
|
/**
|
|
13583
13547
|
* Handle keyboard events for the toolbar.
|
|
@@ -13617,8 +13581,7 @@
|
|
|
13617
13581
|
* @internal
|
|
13618
13582
|
*/
|
|
13619
13583
|
reduceFocusableElements() {
|
|
13620
|
-
|
|
13621
|
-
const previousFocusedElement = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a[this.activeIndex];
|
|
13584
|
+
const previousFocusedElement = this.focusableElements?.[this.activeIndex];
|
|
13622
13585
|
this.focusableElements = this.allSlottedItems.reduce(Toolbar.reduceFocusableItems, []);
|
|
13623
13586
|
// If the previously active item is still focusable, adjust the active index to the
|
|
13624
13587
|
// index of that item.
|
|
@@ -13651,10 +13614,9 @@
|
|
|
13651
13614
|
* @internal
|
|
13652
13615
|
*/
|
|
13653
13616
|
static reduceFocusableItems(elements, element) {
|
|
13654
|
-
var _a, _b, _c, _d;
|
|
13655
13617
|
const isRoleRadio = element.getAttribute("role") === "radio";
|
|
13656
|
-
const isFocusableFastElement =
|
|
13657
|
-
const hasFocusableShadow = Array.from(
|
|
13618
|
+
const isFocusableFastElement = element.$fastController?.definition.shadowOptions?.delegatesFocus;
|
|
13619
|
+
const hasFocusableShadow = Array.from(element.shadowRoot?.querySelectorAll("*") ?? []).some(x => isFocusable(x));
|
|
13658
13620
|
if (!element.hasAttribute("disabled") &&
|
|
13659
13621
|
!element.hasAttribute("hidden") &&
|
|
13660
13622
|
(isFocusable(element) ||
|
|
@@ -14919,9 +14881,9 @@
|
|
|
14919
14881
|
const prefix = 'ni-nimble';
|
|
14920
14882
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
14921
14883
|
|
|
14922
|
-
const template$
|
|
14884
|
+
const template$R = html `<slot></slot>`;
|
|
14923
14885
|
|
|
14924
|
-
const styles$
|
|
14886
|
+
const styles$14 = css `
|
|
14925
14887
|
${display('contents')}
|
|
14926
14888
|
`;
|
|
14927
14889
|
|
|
@@ -15036,8 +14998,8 @@
|
|
|
15036
14998
|
], ThemeProvider.prototype, "theme", void 0);
|
|
15037
14999
|
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
15038
15000
|
baseName: 'theme-provider',
|
|
15039
|
-
styles: styles$
|
|
15040
|
-
template: template$
|
|
15001
|
+
styles: styles$14,
|
|
15002
|
+
template: template$R
|
|
15041
15003
|
});
|
|
15042
15004
|
DesignSystem.getOrCreate()
|
|
15043
15005
|
.withPrefix('nimble')
|
|
@@ -16610,7 +16572,7 @@
|
|
|
16610
16572
|
}
|
|
16611
16573
|
// #endregion
|
|
16612
16574
|
|
|
16613
|
-
const styles$
|
|
16575
|
+
const styles$13 = css `
|
|
16614
16576
|
@layer base, hover, focusVisible, active, disabled;
|
|
16615
16577
|
|
|
16616
16578
|
@layer base {
|
|
@@ -16688,7 +16650,7 @@
|
|
|
16688
16650
|
}
|
|
16689
16651
|
`;
|
|
16690
16652
|
|
|
16691
|
-
const template$
|
|
16653
|
+
const template$Q = (_context, definition) => html `${
|
|
16692
16654
|
/* top-container div is necessary because setting contenteditable directly on the native anchor instead
|
|
16693
16655
|
leaves it focusable, unlike the behavior you get when the anchor is _within_ a contenteditable element.
|
|
16694
16656
|
*/ ''}<div
|
|
@@ -16791,8 +16753,8 @@
|
|
|
16791
16753
|
const nimbleAnchor = Anchor.compose({
|
|
16792
16754
|
baseName: 'anchor',
|
|
16793
16755
|
baseClass: Anchor$1,
|
|
16794
|
-
template: template$
|
|
16795
|
-
styles: styles$
|
|
16756
|
+
template: template$Q,
|
|
16757
|
+
styles: styles$13,
|
|
16796
16758
|
shadowOptions: {
|
|
16797
16759
|
delegatesFocus: true
|
|
16798
16760
|
}
|
|
@@ -16901,7 +16863,7 @@
|
|
|
16901
16863
|
padding: 0;
|
|
16902
16864
|
`;
|
|
16903
16865
|
|
|
16904
|
-
const styles
|
|
16866
|
+
const styles$12 = css `
|
|
16905
16867
|
@layer base, checked, hover, focusVisible, active, disabled, top;
|
|
16906
16868
|
|
|
16907
16869
|
@layer base {
|
|
@@ -17185,8 +17147,8 @@
|
|
|
17185
17147
|
}
|
|
17186
17148
|
`));
|
|
17187
17149
|
|
|
17188
|
-
const styles$
|
|
17189
|
-
${styles
|
|
17150
|
+
const styles$11 = css `
|
|
17151
|
+
${styles$12}
|
|
17190
17152
|
${buttonAppearanceVariantStyles}
|
|
17191
17153
|
|
|
17192
17154
|
.control {
|
|
@@ -17206,7 +17168,7 @@
|
|
|
17206
17168
|
}
|
|
17207
17169
|
`;
|
|
17208
17170
|
|
|
17209
|
-
const template$
|
|
17171
|
+
const template$P = (context, definition) => html `
|
|
17210
17172
|
<a
|
|
17211
17173
|
class="control"
|
|
17212
17174
|
part="control"
|
|
@@ -17288,8 +17250,8 @@
|
|
|
17288
17250
|
], AnchorButton.prototype, "disabled", void 0);
|
|
17289
17251
|
const nimbleAnchorButton = AnchorButton.compose({
|
|
17290
17252
|
baseName: 'anchor-button',
|
|
17291
|
-
template: template$
|
|
17292
|
-
styles: styles$
|
|
17253
|
+
template: template$P,
|
|
17254
|
+
styles: styles$11,
|
|
17293
17255
|
shadowOptions: {
|
|
17294
17256
|
delegatesFocus: true
|
|
17295
17257
|
}
|
|
@@ -17297,7 +17259,7 @@
|
|
|
17297
17259
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorButton());
|
|
17298
17260
|
const anchorButtonTag = 'nimble-anchor-button';
|
|
17299
17261
|
|
|
17300
|
-
const styles$
|
|
17262
|
+
const styles$10 = css `
|
|
17301
17263
|
${display('grid')}
|
|
17302
17264
|
|
|
17303
17265
|
:host {
|
|
@@ -17380,7 +17342,7 @@
|
|
|
17380
17342
|
}
|
|
17381
17343
|
`;
|
|
17382
17344
|
|
|
17383
|
-
const template$
|
|
17345
|
+
const template$O = (context, definition) => html `
|
|
17384
17346
|
<template
|
|
17385
17347
|
role="menuitem"
|
|
17386
17348
|
class="${x => (typeof x.startColumnCount === 'number'
|
|
@@ -17481,8 +17443,8 @@
|
|
|
17481
17443
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17482
17444
|
const nimbleAnchorMenuItem = AnchorMenuItem.compose({
|
|
17483
17445
|
baseName: 'anchor-menu-item',
|
|
17484
|
-
template: template$
|
|
17485
|
-
styles: styles$
|
|
17446
|
+
template: template$O,
|
|
17447
|
+
styles: styles$10,
|
|
17486
17448
|
shadowOptions: {
|
|
17487
17449
|
delegatesFocus: true
|
|
17488
17450
|
}
|
|
@@ -17492,7 +17454,27 @@
|
|
|
17492
17454
|
.register(nimbleAnchorMenuItem());
|
|
17493
17455
|
const anchorMenuItemTag = 'nimble-anchor-menu-item';
|
|
17494
17456
|
|
|
17495
|
-
const styles
|
|
17457
|
+
const styles$$ = css `
|
|
17458
|
+
${display('flex')}
|
|
17459
|
+
`;
|
|
17460
|
+
|
|
17461
|
+
const template$N = html `
|
|
17462
|
+
<template>anchor step</template>
|
|
17463
|
+
`;
|
|
17464
|
+
|
|
17465
|
+
/**
|
|
17466
|
+
* A nimble-styled anchor step for a stepper
|
|
17467
|
+
*/
|
|
17468
|
+
class AnchorStep extends FoundationElement {
|
|
17469
|
+
}
|
|
17470
|
+
const nimbleAnchorStep = AnchorStep.compose({
|
|
17471
|
+
baseName: 'anchor-step',
|
|
17472
|
+
template: template$N,
|
|
17473
|
+
styles: styles$$
|
|
17474
|
+
});
|
|
17475
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorStep());
|
|
17476
|
+
|
|
17477
|
+
const styles$_ = css `
|
|
17496
17478
|
${display('inline-flex')}
|
|
17497
17479
|
|
|
17498
17480
|
:host {
|
|
@@ -17609,7 +17591,7 @@
|
|
|
17609
17591
|
}
|
|
17610
17592
|
`;
|
|
17611
17593
|
|
|
17612
|
-
const template$
|
|
17594
|
+
const template$M = (context, definition) => html `
|
|
17613
17595
|
<template slot="anchortab" role="tab" aria-disabled="${x => x.disabled}">
|
|
17614
17596
|
<a
|
|
17615
17597
|
download="${x => x.download}"
|
|
@@ -17661,15 +17643,15 @@
|
|
|
17661
17643
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
17662
17644
|
const nimbleAnchorTab = AnchorTab.compose({
|
|
17663
17645
|
baseName: 'anchor-tab',
|
|
17664
|
-
template: template$
|
|
17665
|
-
styles: styles$
|
|
17646
|
+
template: template$M,
|
|
17647
|
+
styles: styles$_,
|
|
17666
17648
|
shadowOptions: {
|
|
17667
17649
|
delegatesFocus: true
|
|
17668
17650
|
}
|
|
17669
17651
|
});
|
|
17670
17652
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTab());
|
|
17671
17653
|
|
|
17672
|
-
const styles$
|
|
17654
|
+
const styles$Z = css `
|
|
17673
17655
|
${display('flex')}
|
|
17674
17656
|
|
|
17675
17657
|
:host {
|
|
@@ -17709,12 +17691,12 @@
|
|
|
17709
17691
|
}
|
|
17710
17692
|
`;
|
|
17711
17693
|
|
|
17712
|
-
const styles$
|
|
17713
|
-
${styles
|
|
17694
|
+
const styles$Y = css `
|
|
17695
|
+
${styles$12}
|
|
17714
17696
|
${buttonAppearanceVariantStyles}
|
|
17715
17697
|
`;
|
|
17716
17698
|
|
|
17717
|
-
const template$
|
|
17699
|
+
const template$L = (context, definition) => html `
|
|
17718
17700
|
<button
|
|
17719
17701
|
class="control"
|
|
17720
17702
|
part="control"
|
|
@@ -17805,8 +17787,8 @@
|
|
|
17805
17787
|
const nimbleButton = Button.compose({
|
|
17806
17788
|
baseName: 'button',
|
|
17807
17789
|
baseClass: Button$1,
|
|
17808
|
-
template: template$
|
|
17809
|
-
styles: styles$
|
|
17790
|
+
template: template$L,
|
|
17791
|
+
styles: styles$Y,
|
|
17810
17792
|
shadowOptions: {
|
|
17811
17793
|
delegatesFocus: true
|
|
17812
17794
|
}
|
|
@@ -18753,7 +18735,7 @@
|
|
|
18753
18735
|
};
|
|
18754
18736
|
|
|
18755
18737
|
// Avoiding any whitespace in the template because this is an inline element
|
|
18756
|
-
const template$
|
|
18738
|
+
const template$K = html `<div
|
|
18757
18739
|
class="icon"
|
|
18758
18740
|
aria-hidden="true"
|
|
18759
18741
|
:innerHTML=${x => x.icon.data}
|
|
@@ -18768,7 +18750,7 @@
|
|
|
18768
18750
|
-webkit-user-select: none;
|
|
18769
18751
|
`;
|
|
18770
18752
|
|
|
18771
|
-
const styles$
|
|
18753
|
+
const styles$X = css `
|
|
18772
18754
|
${display('inline-flex')}
|
|
18773
18755
|
|
|
18774
18756
|
:host {
|
|
@@ -18831,8 +18813,8 @@
|
|
|
18831
18813
|
const registerIconSvg = (baseName, iconClass) => {
|
|
18832
18814
|
const composedIcon = iconClass.compose({
|
|
18833
18815
|
baseName,
|
|
18834
|
-
template: template$
|
|
18835
|
-
styles: styles$
|
|
18816
|
+
template: template$K,
|
|
18817
|
+
styles: styles$X
|
|
18836
18818
|
});
|
|
18837
18819
|
DesignSystem.getOrCreate().withPrefix('nimble').register(composedIcon());
|
|
18838
18820
|
};
|
|
@@ -18927,7 +18909,7 @@
|
|
|
18927
18909
|
cssCustomPropertyName: null
|
|
18928
18910
|
}).withDefault(coreLabelDefaults.itemRemoveLabel);
|
|
18929
18911
|
|
|
18930
|
-
const template$
|
|
18912
|
+
const template$J = (context, definition) => html `
|
|
18931
18913
|
<div
|
|
18932
18914
|
class="tab-bar"
|
|
18933
18915
|
>
|
|
@@ -19226,15 +19208,15 @@
|
|
|
19226
19208
|
applyMixins(AnchorTabs, StartEnd);
|
|
19227
19209
|
const nimbleAnchorTabs = AnchorTabs.compose({
|
|
19228
19210
|
baseName: 'anchor-tabs',
|
|
19229
|
-
template: template$
|
|
19230
|
-
styles: styles$
|
|
19211
|
+
template: template$J,
|
|
19212
|
+
styles: styles$Z,
|
|
19231
19213
|
shadowOptions: {
|
|
19232
19214
|
delegatesFocus: false
|
|
19233
19215
|
}
|
|
19234
19216
|
});
|
|
19235
19217
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleAnchorTabs());
|
|
19236
19218
|
|
|
19237
|
-
const styles$
|
|
19219
|
+
const styles$W = css `
|
|
19238
19220
|
${display('block')}
|
|
19239
19221
|
|
|
19240
19222
|
:host {
|
|
@@ -19339,7 +19321,7 @@
|
|
|
19339
19321
|
}
|
|
19340
19322
|
`;
|
|
19341
19323
|
|
|
19342
|
-
const template$
|
|
19324
|
+
const template$I = (context, definition) => html `
|
|
19343
19325
|
<template
|
|
19344
19326
|
role="treeitem"
|
|
19345
19327
|
slot="${x => (x.isNestedItem() ? 'item' : null)}"
|
|
@@ -19476,8 +19458,8 @@
|
|
|
19476
19458
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
19477
19459
|
const nimbleAnchorTreeItem = AnchorTreeItem.compose({
|
|
19478
19460
|
baseName: 'anchor-tree-item',
|
|
19479
|
-
template: template$
|
|
19480
|
-
styles: styles$
|
|
19461
|
+
template: template$I,
|
|
19462
|
+
styles: styles$W,
|
|
19481
19463
|
shadowOptions: {
|
|
19482
19464
|
delegatesFocus: true
|
|
19483
19465
|
}
|
|
@@ -19493,7 +19475,7 @@
|
|
|
19493
19475
|
zIndex1000: '1000'
|
|
19494
19476
|
};
|
|
19495
19477
|
|
|
19496
|
-
const styles$
|
|
19478
|
+
const styles$V = css `
|
|
19497
19479
|
${display('block')}
|
|
19498
19480
|
|
|
19499
19481
|
:host {
|
|
@@ -19524,7 +19506,7 @@
|
|
|
19524
19506
|
baseName: 'anchored-region',
|
|
19525
19507
|
baseClass: AnchoredRegion$1,
|
|
19526
19508
|
template: anchoredRegionTemplate,
|
|
19527
|
-
styles: styles$
|
|
19509
|
+
styles: styles$V
|
|
19528
19510
|
});
|
|
19529
19511
|
DesignSystem.getOrCreate()
|
|
19530
19512
|
.withPrefix('nimble')
|
|
@@ -19605,7 +19587,7 @@
|
|
|
19605
19587
|
const themeBehavior = (theme, styles) => new ThemeStyleSheetBehavior(theme, styles);
|
|
19606
19588
|
/* eslint-enable max-classes-per-file */
|
|
19607
19589
|
|
|
19608
|
-
const styles$
|
|
19590
|
+
const styles$U = css `
|
|
19609
19591
|
${display('flex')}
|
|
19610
19592
|
|
|
19611
19593
|
:host {
|
|
@@ -19783,7 +19765,7 @@
|
|
|
19783
19765
|
information: 'information'
|
|
19784
19766
|
};
|
|
19785
19767
|
|
|
19786
|
-
const template$
|
|
19768
|
+
const template$H = html `
|
|
19787
19769
|
<${themeProviderTag} theme="${Theme.color}">
|
|
19788
19770
|
<div class="container"
|
|
19789
19771
|
role="status"
|
|
@@ -19901,8 +19883,8 @@
|
|
|
19901
19883
|
applyMixins(Banner, ARIAGlobalStatesAndProperties);
|
|
19902
19884
|
const nimbleBanner = Banner.compose({
|
|
19903
19885
|
baseName: 'banner',
|
|
19904
|
-
template: template$
|
|
19905
|
-
styles: styles$
|
|
19886
|
+
template: template$H,
|
|
19887
|
+
styles: styles$U
|
|
19906
19888
|
});
|
|
19907
19889
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBanner());
|
|
19908
19890
|
|
|
@@ -19943,7 +19925,7 @@
|
|
|
19943
19925
|
</template>
|
|
19944
19926
|
`;
|
|
19945
19927
|
|
|
19946
|
-
const styles$
|
|
19928
|
+
const styles$T = css `
|
|
19947
19929
|
${display('inline-flex')}
|
|
19948
19930
|
|
|
19949
19931
|
:host {
|
|
@@ -20047,11 +20029,11 @@
|
|
|
20047
20029
|
baseName: 'breadcrumb',
|
|
20048
20030
|
baseClass: Breadcrumb$1,
|
|
20049
20031
|
template: breadcrumbTemplate,
|
|
20050
|
-
styles: styles$
|
|
20032
|
+
styles: styles$T
|
|
20051
20033
|
});
|
|
20052
20034
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleBreadcrumb());
|
|
20053
20035
|
|
|
20054
|
-
const styles$
|
|
20036
|
+
const styles$S = css `
|
|
20055
20037
|
@layer base, hover, focusVisible, active, disabled;
|
|
20056
20038
|
|
|
20057
20039
|
@layer base {
|
|
@@ -20148,14 +20130,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20148
20130
|
baseName: 'breadcrumb-item',
|
|
20149
20131
|
baseClass: BreadcrumbItem$1,
|
|
20150
20132
|
template: breadcrumbItemTemplate,
|
|
20151
|
-
styles: styles$
|
|
20133
|
+
styles: styles$S,
|
|
20152
20134
|
separator: forwardSlash16X16.data
|
|
20153
20135
|
});
|
|
20154
20136
|
DesignSystem.getOrCreate()
|
|
20155
20137
|
.withPrefix('nimble')
|
|
20156
20138
|
.register(nimbleBreadcrumbItem());
|
|
20157
20139
|
|
|
20158
|
-
const styles$
|
|
20140
|
+
const styles$R = css `
|
|
20159
20141
|
${display('flex')}
|
|
20160
20142
|
|
|
20161
20143
|
:host {
|
|
@@ -20179,7 +20161,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20179
20161
|
}
|
|
20180
20162
|
`;
|
|
20181
20163
|
|
|
20182
|
-
const template$
|
|
20164
|
+
const template$G = html `
|
|
20183
20165
|
<section aria-labelledby="title-slot">
|
|
20184
20166
|
<span id="title-slot"><slot name="title"></slot></span>
|
|
20185
20167
|
<slot></slot>
|
|
@@ -20194,12 +20176,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20194
20176
|
const nimbleCard = Card.compose({
|
|
20195
20177
|
baseName: 'card',
|
|
20196
20178
|
baseClass: Card$1,
|
|
20197
|
-
template: template$
|
|
20198
|
-
styles: styles$
|
|
20179
|
+
template: template$G,
|
|
20180
|
+
styles: styles$R
|
|
20199
20181
|
});
|
|
20200
20182
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCard());
|
|
20201
20183
|
|
|
20202
|
-
const styles$
|
|
20184
|
+
const styles$Q = css `
|
|
20203
20185
|
${display('inline-flex')}
|
|
20204
20186
|
|
|
20205
20187
|
:host {
|
|
@@ -20357,14 +20339,14 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20357
20339
|
const nimbleCardButton = CardButton.compose({
|
|
20358
20340
|
baseName: 'card-button',
|
|
20359
20341
|
template: buttonTemplate,
|
|
20360
|
-
styles: styles$
|
|
20342
|
+
styles: styles$Q,
|
|
20361
20343
|
shadowOptions: {
|
|
20362
20344
|
delegatesFocus: true
|
|
20363
20345
|
}
|
|
20364
20346
|
});
|
|
20365
20347
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCardButton());
|
|
20366
20348
|
|
|
20367
|
-
const styles$
|
|
20349
|
+
const styles$P = css `
|
|
20368
20350
|
.error-icon {
|
|
20369
20351
|
display: none;
|
|
20370
20352
|
}
|
|
@@ -20398,9 +20380,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20398
20380
|
}
|
|
20399
20381
|
`;
|
|
20400
20382
|
|
|
20401
|
-
const styles$
|
|
20383
|
+
const styles$O = css `
|
|
20402
20384
|
${display('inline-grid')}
|
|
20403
|
-
${styles$
|
|
20385
|
+
${styles$P}
|
|
20404
20386
|
|
|
20405
20387
|
:host {
|
|
20406
20388
|
font: ${bodyFont};
|
|
@@ -20594,7 +20576,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20594
20576
|
</div>
|
|
20595
20577
|
`;
|
|
20596
20578
|
|
|
20597
|
-
const template$
|
|
20579
|
+
const template$F = (_context, definition) => html `
|
|
20598
20580
|
<template
|
|
20599
20581
|
role="checkbox"
|
|
20600
20582
|
aria-checked="${x => x.checked}"
|
|
@@ -20679,16 +20661,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20679
20661
|
const nimbleCheckbox = Checkbox.compose({
|
|
20680
20662
|
baseName: 'checkbox',
|
|
20681
20663
|
baseClass: Checkbox$1,
|
|
20682
|
-
template: template$
|
|
20683
|
-
styles: styles$
|
|
20664
|
+
template: template$F,
|
|
20665
|
+
styles: styles$O,
|
|
20684
20666
|
checkedIndicator: check16X16.data,
|
|
20685
20667
|
indeterminateIndicator: minus16X16.data
|
|
20686
20668
|
});
|
|
20687
20669
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
20688
20670
|
const checkboxTag = 'nimble-checkbox';
|
|
20689
20671
|
|
|
20690
|
-
const styles$
|
|
20691
|
-
${styles
|
|
20672
|
+
const styles$N = css `
|
|
20673
|
+
${styles$12}
|
|
20692
20674
|
${buttonAppearanceVariantStyles}
|
|
20693
20675
|
|
|
20694
20676
|
@layer checked {
|
|
@@ -20735,7 +20717,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20735
20717
|
}
|
|
20736
20718
|
`));
|
|
20737
20719
|
|
|
20738
|
-
const template$
|
|
20720
|
+
const template$E = (context, definition) => html `
|
|
20739
20721
|
<div
|
|
20740
20722
|
role="button"
|
|
20741
20723
|
part="control"
|
|
@@ -20830,8 +20812,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20830
20812
|
applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
|
|
20831
20813
|
const nimbleToggleButton = ToggleButton.compose({
|
|
20832
20814
|
baseName: 'toggle-button',
|
|
20833
|
-
template: template$
|
|
20834
|
-
styles: styles$
|
|
20815
|
+
template: template$E,
|
|
20816
|
+
styles: styles$N,
|
|
20835
20817
|
shadowOptions: {
|
|
20836
20818
|
delegatesFocus: true
|
|
20837
20819
|
}
|
|
@@ -20861,7 +20843,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20861
20843
|
frameless: 'frameless'
|
|
20862
20844
|
};
|
|
20863
20845
|
|
|
20864
|
-
const styles$
|
|
20846
|
+
const styles$M = css `
|
|
20865
20847
|
${display('inline-flex')}
|
|
20866
20848
|
|
|
20867
20849
|
:host {
|
|
@@ -21151,7 +21133,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21151
21133
|
}
|
|
21152
21134
|
`));
|
|
21153
21135
|
|
|
21154
|
-
const styles$
|
|
21136
|
+
const styles$L = css `
|
|
21155
21137
|
.annotated-label {
|
|
21156
21138
|
display: flex;
|
|
21157
21139
|
flex-direction: row;
|
|
@@ -21178,10 +21160,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21178
21160
|
none: undefined,
|
|
21179
21161
|
standard: 'standard'};
|
|
21180
21162
|
|
|
21181
|
-
const styles$
|
|
21182
|
-
${styles$
|
|
21183
|
-
${styles$
|
|
21184
|
-
${styles$
|
|
21163
|
+
const styles$K = css `
|
|
21164
|
+
${styles$M}
|
|
21165
|
+
${styles$P}
|
|
21166
|
+
${styles$L}
|
|
21185
21167
|
|
|
21186
21168
|
:host {
|
|
21187
21169
|
--ni-private-hover-bottom-border-width: 2px;
|
|
@@ -21302,7 +21284,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21302
21284
|
<slot></slot>
|
|
21303
21285
|
</label>
|
|
21304
21286
|
`);
|
|
21305
|
-
const template$
|
|
21287
|
+
const template$D = (context, definition) => html `
|
|
21306
21288
|
<template
|
|
21307
21289
|
aria-disabled="${x => x.ariaDisabled}"
|
|
21308
21290
|
autocomplete="${x => x.autocomplete}"
|
|
@@ -22077,8 +22059,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22077
22059
|
const nimbleCombobox = Combobox.compose({
|
|
22078
22060
|
baseName: 'combobox',
|
|
22079
22061
|
baseClass: FormAssociatedCombobox,
|
|
22080
|
-
template: template$
|
|
22081
|
-
styles: styles$
|
|
22062
|
+
template: template$D,
|
|
22063
|
+
styles: styles$K,
|
|
22082
22064
|
shadowOptions: {
|
|
22083
22065
|
delegatesFocus: true
|
|
22084
22066
|
},
|
|
@@ -22122,7 +22104,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22122
22104
|
*/
|
|
22123
22105
|
const UserDismissed = Symbol('user dismissed');
|
|
22124
22106
|
|
|
22125
|
-
const styles$
|
|
22107
|
+
const styles$J = css `
|
|
22126
22108
|
${display('grid')}
|
|
22127
22109
|
|
|
22128
22110
|
dialog {
|
|
@@ -22215,7 +22197,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22215
22197
|
}
|
|
22216
22198
|
`;
|
|
22217
22199
|
|
|
22218
|
-
const template$
|
|
22200
|
+
const template$C = html `
|
|
22219
22201
|
<template>
|
|
22220
22202
|
<dialog
|
|
22221
22203
|
${ref('dialogElement')}
|
|
@@ -22363,13 +22345,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22363
22345
|
applyMixins(Dialog, ARIAGlobalStatesAndProperties);
|
|
22364
22346
|
const nimbleDialog = Dialog.compose({
|
|
22365
22347
|
baseName: 'dialog',
|
|
22366
|
-
template: template$
|
|
22367
|
-
styles: styles$
|
|
22348
|
+
template: template$C,
|
|
22349
|
+
styles: styles$J,
|
|
22368
22350
|
baseClass: Dialog
|
|
22369
22351
|
});
|
|
22370
22352
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDialog());
|
|
22371
22353
|
|
|
22372
|
-
const styles$
|
|
22354
|
+
const styles$I = css `
|
|
22373
22355
|
${display('block')}
|
|
22374
22356
|
|
|
22375
22357
|
:host {
|
|
@@ -22512,7 +22494,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22512
22494
|
}
|
|
22513
22495
|
`;
|
|
22514
22496
|
|
|
22515
|
-
const template$
|
|
22497
|
+
const template$B = html `
|
|
22516
22498
|
<dialog
|
|
22517
22499
|
${ref('dialog')}
|
|
22518
22500
|
aria-label="${x => x.ariaLabel}"
|
|
@@ -22654,8 +22636,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22654
22636
|
applyMixins(Drawer, ARIAGlobalStatesAndProperties);
|
|
22655
22637
|
const nimbleDrawer = Drawer.compose({
|
|
22656
22638
|
baseName: 'drawer',
|
|
22657
|
-
template: template$
|
|
22658
|
-
styles: styles$
|
|
22639
|
+
template: template$B,
|
|
22640
|
+
styles: styles$I
|
|
22659
22641
|
});
|
|
22660
22642
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleDrawer());
|
|
22661
22643
|
|
|
@@ -25436,7 +25418,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25436
25418
|
}
|
|
25437
25419
|
}
|
|
25438
25420
|
|
|
25439
|
-
const styles$
|
|
25421
|
+
const styles$H = css `
|
|
25440
25422
|
${display('none')}
|
|
25441
25423
|
`;
|
|
25442
25424
|
|
|
@@ -25501,7 +25483,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25501
25483
|
], LabelProviderCore.prototype, "itemRemove", void 0);
|
|
25502
25484
|
const nimbleLabelProviderCore = LabelProviderCore.compose({
|
|
25503
25485
|
baseName: 'label-provider-core',
|
|
25504
|
-
styles: styles$
|
|
25486
|
+
styles: styles$H
|
|
25505
25487
|
});
|
|
25506
25488
|
DesignSystem.getOrCreate()
|
|
25507
25489
|
.withPrefix('nimble')
|
|
@@ -25668,13 +25650,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25668
25650
|
], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
|
|
25669
25651
|
const nimbleLabelProviderTable = LabelProviderTable.compose({
|
|
25670
25652
|
baseName: 'label-provider-table',
|
|
25671
|
-
styles: styles$
|
|
25653
|
+
styles: styles$H
|
|
25672
25654
|
});
|
|
25673
25655
|
DesignSystem.getOrCreate()
|
|
25674
25656
|
.withPrefix('nimble')
|
|
25675
25657
|
.register(nimbleLabelProviderTable());
|
|
25676
25658
|
|
|
25677
|
-
const styles$
|
|
25659
|
+
const styles$G = css `
|
|
25678
25660
|
${display('flex')}
|
|
25679
25661
|
|
|
25680
25662
|
:host {
|
|
@@ -25750,7 +25732,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25750
25732
|
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25751
25733
|
* @public
|
|
25752
25734
|
*/
|
|
25753
|
-
const template$
|
|
25735
|
+
const template$A = (context, definition) => html `
|
|
25754
25736
|
<template
|
|
25755
25737
|
aria-checked="${x => x.ariaChecked}"
|
|
25756
25738
|
aria-disabled="${x => x.ariaDisabled}"
|
|
@@ -25863,13 +25845,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25863
25845
|
const nimbleListOption = ListOption.compose({
|
|
25864
25846
|
baseName: 'list-option',
|
|
25865
25847
|
baseClass: ListboxOption,
|
|
25866
|
-
template: template$
|
|
25867
|
-
styles: styles$
|
|
25848
|
+
template: template$A,
|
|
25849
|
+
styles: styles$G
|
|
25868
25850
|
});
|
|
25869
25851
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleListOption());
|
|
25870
25852
|
const listOptionTag = 'nimble-list-option';
|
|
25871
25853
|
|
|
25872
|
-
const styles$
|
|
25854
|
+
const styles$F = css `
|
|
25873
25855
|
${display('flex')}
|
|
25874
25856
|
|
|
25875
25857
|
:host {
|
|
@@ -25931,7 +25913,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25931
25913
|
const isListOption$1 = (n) => {
|
|
25932
25914
|
return n instanceof ListOption;
|
|
25933
25915
|
};
|
|
25934
|
-
const template$
|
|
25916
|
+
const template$z = html `
|
|
25935
25917
|
<template
|
|
25936
25918
|
role="group"
|
|
25937
25919
|
aria-label="${x => x.labelContent}"
|
|
@@ -26073,8 +26055,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26073
26055
|
const nimbleListOptionGroup = ListOptionGroup.compose({
|
|
26074
26056
|
baseName: 'list-option-group',
|
|
26075
26057
|
baseClass: FoundationElement,
|
|
26076
|
-
template: template$
|
|
26077
|
-
styles: styles$
|
|
26058
|
+
template: template$z,
|
|
26059
|
+
styles: styles$F
|
|
26078
26060
|
});
|
|
26079
26061
|
DesignSystem.getOrCreate()
|
|
26080
26062
|
.withPrefix('nimble')
|
|
@@ -26101,9 +26083,9 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26101
26083
|
attr()
|
|
26102
26084
|
], Mapping$1.prototype, "key", void 0);
|
|
26103
26085
|
|
|
26104
|
-
const template$
|
|
26086
|
+
const template$y = html `<template slot="mapping"></template>`;
|
|
26105
26087
|
|
|
26106
|
-
const styles$
|
|
26088
|
+
const styles$E = css `
|
|
26107
26089
|
${display('none')}
|
|
26108
26090
|
`;
|
|
26109
26091
|
|
|
@@ -26119,8 +26101,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26119
26101
|
], MappingEmpty.prototype, "text", void 0);
|
|
26120
26102
|
const emptyMapping = MappingEmpty.compose({
|
|
26121
26103
|
baseName: 'mapping-empty',
|
|
26122
|
-
template: template$
|
|
26123
|
-
styles: styles$
|
|
26104
|
+
template: template$y,
|
|
26105
|
+
styles: styles$E
|
|
26124
26106
|
});
|
|
26125
26107
|
DesignSystem.getOrCreate().withPrefix('nimble').register(emptyMapping());
|
|
26126
26108
|
|
|
@@ -26190,8 +26172,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26190
26172
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
26191
26173
|
const iconMapping = MappingIcon.compose({
|
|
26192
26174
|
baseName: 'mapping-icon',
|
|
26193
|
-
template: template$
|
|
26194
|
-
styles: styles$
|
|
26175
|
+
template: template$y,
|
|
26176
|
+
styles: styles$E
|
|
26195
26177
|
});
|
|
26196
26178
|
DesignSystem.getOrCreate().withPrefix('nimble').register(iconMapping());
|
|
26197
26179
|
|
|
@@ -26214,8 +26196,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26214
26196
|
], MappingSpinner.prototype, "textHidden", void 0);
|
|
26215
26197
|
const spinnerMapping = MappingSpinner.compose({
|
|
26216
26198
|
baseName: 'mapping-spinner',
|
|
26217
|
-
template: template$
|
|
26218
|
-
styles: styles$
|
|
26199
|
+
template: template$y,
|
|
26200
|
+
styles: styles$E
|
|
26219
26201
|
});
|
|
26220
26202
|
DesignSystem.getOrCreate().withPrefix('nimble').register(spinnerMapping());
|
|
26221
26203
|
|
|
@@ -26231,8 +26213,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26231
26213
|
], MappingText.prototype, "text", void 0);
|
|
26232
26214
|
const textMapping = MappingText.compose({
|
|
26233
26215
|
baseName: 'mapping-text',
|
|
26234
|
-
template: template$
|
|
26235
|
-
styles: styles$
|
|
26216
|
+
template: template$y,
|
|
26217
|
+
styles: styles$E
|
|
26236
26218
|
});
|
|
26237
26219
|
DesignSystem.getOrCreate().withPrefix('nimble').register(textMapping());
|
|
26238
26220
|
|
|
@@ -26534,7 +26516,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26534
26516
|
observable
|
|
26535
26517
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
26536
26518
|
|
|
26537
|
-
const template$
|
|
26519
|
+
const template$x = () => html `
|
|
26538
26520
|
<template
|
|
26539
26521
|
slot="${x => {
|
|
26540
26522
|
if (x.slot) {
|
|
@@ -26551,7 +26533,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26551
26533
|
</template>
|
|
26552
26534
|
`;
|
|
26553
26535
|
|
|
26554
|
-
const styles$
|
|
26536
|
+
const styles$D = css `
|
|
26555
26537
|
${display('grid')}
|
|
26556
26538
|
|
|
26557
26539
|
:host {
|
|
@@ -26622,8 +26604,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26622
26604
|
const nimbleMenu = Menu.compose({
|
|
26623
26605
|
baseName: 'menu',
|
|
26624
26606
|
baseClass: Menu$1,
|
|
26625
|
-
template: template$
|
|
26626
|
-
styles: styles$
|
|
26607
|
+
template: template$x,
|
|
26608
|
+
styles: styles$D
|
|
26627
26609
|
});
|
|
26628
26610
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenu());
|
|
26629
26611
|
|
|
@@ -26638,7 +26620,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26638
26620
|
auto: 'auto'
|
|
26639
26621
|
};
|
|
26640
26622
|
|
|
26641
|
-
const styles$
|
|
26623
|
+
const styles$C = css `
|
|
26642
26624
|
${display('inline-block')}
|
|
26643
26625
|
|
|
26644
26626
|
:host {
|
|
@@ -26656,7 +26638,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26656
26638
|
}
|
|
26657
26639
|
`;
|
|
26658
26640
|
|
|
26659
|
-
const template$
|
|
26641
|
+
const template$w = html `
|
|
26660
26642
|
<template
|
|
26661
26643
|
?open="${x => x.open}"
|
|
26662
26644
|
@focusout="${(x, c) => x.focusoutHandler(c.event)}"
|
|
@@ -26906,8 +26888,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26906
26888
|
], MenuButton.prototype, "slottedMenus", void 0);
|
|
26907
26889
|
const nimbleMenuButton = MenuButton.compose({
|
|
26908
26890
|
baseName: 'menu-button',
|
|
26909
|
-
template: template$
|
|
26910
|
-
styles: styles$
|
|
26891
|
+
template: template$w,
|
|
26892
|
+
styles: styles$C,
|
|
26911
26893
|
shadowOptions: {
|
|
26912
26894
|
delegatesFocus: true
|
|
26913
26895
|
}
|
|
@@ -26915,7 +26897,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26915
26897
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuButton());
|
|
26916
26898
|
const menuButtonTag = 'nimble-menu-button';
|
|
26917
26899
|
|
|
26918
|
-
const styles$
|
|
26900
|
+
const styles$B = css `
|
|
26919
26901
|
${display('grid')}
|
|
26920
26902
|
|
|
26921
26903
|
:host {
|
|
@@ -27012,7 +26994,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27012
26994
|
baseName: 'menu-item',
|
|
27013
26995
|
baseClass: MenuItem$1,
|
|
27014
26996
|
template: menuItemTemplate,
|
|
27015
|
-
styles: styles$
|
|
26997
|
+
styles: styles$B,
|
|
27016
26998
|
expandCollapseGlyph: arrowExpanderRight16X16.data
|
|
27017
26999
|
});
|
|
27018
27000
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleMenuItem());
|
|
@@ -27027,10 +27009,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27027
27009
|
frameless: 'frameless'
|
|
27028
27010
|
};
|
|
27029
27011
|
|
|
27030
|
-
const styles$
|
|
27012
|
+
const styles$A = css `
|
|
27031
27013
|
${display('inline-block')}
|
|
27032
|
-
${styles$
|
|
27033
|
-
${styles$
|
|
27014
|
+
${styles$P}
|
|
27015
|
+
${styles$L}
|
|
27034
27016
|
|
|
27035
27017
|
:host {
|
|
27036
27018
|
font: ${bodyFont};
|
|
@@ -27253,7 +27235,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27253
27235
|
* The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
27254
27236
|
* @public
|
|
27255
27237
|
*/
|
|
27256
|
-
const template$
|
|
27238
|
+
const template$v = (context, definition) => html `
|
|
27257
27239
|
<template class="${x => (x.readOnly ? 'readonly' : '')}">
|
|
27258
27240
|
${labelTemplate$4}
|
|
27259
27241
|
<div class="root" part="root">
|
|
@@ -27407,8 +27389,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27407
27389
|
const nimbleNumberField = NumberField.compose({
|
|
27408
27390
|
baseName: 'number-field',
|
|
27409
27391
|
baseClass: NumberField$1,
|
|
27410
|
-
template: template$
|
|
27411
|
-
styles: styles$
|
|
27392
|
+
template: template$v,
|
|
27393
|
+
styles: styles$A,
|
|
27412
27394
|
shadowOptions: {
|
|
27413
27395
|
delegatesFocus: true
|
|
27414
27396
|
},
|
|
@@ -27451,7 +27433,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27451
27433
|
});
|
|
27452
27434
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
27453
27435
|
|
|
27454
|
-
const styles$
|
|
27436
|
+
const styles$z = css `
|
|
27455
27437
|
${display('inline-flex')}
|
|
27456
27438
|
|
|
27457
27439
|
:host {
|
|
@@ -27551,15 +27533,15 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27551
27533
|
baseName: 'radio',
|
|
27552
27534
|
baseClass: Radio$1,
|
|
27553
27535
|
template: radioTemplate,
|
|
27554
|
-
styles: styles$
|
|
27536
|
+
styles: styles$z,
|
|
27555
27537
|
checkedIndicator: circleFilled16X16.data
|
|
27556
27538
|
});
|
|
27557
27539
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleRadio());
|
|
27558
27540
|
|
|
27559
|
-
const styles$
|
|
27541
|
+
const styles$y = css `
|
|
27560
27542
|
${display('inline-block')}
|
|
27561
|
-
${styles$
|
|
27562
|
-
${styles$
|
|
27543
|
+
${styles$P}
|
|
27544
|
+
${styles$L}
|
|
27563
27545
|
|
|
27564
27546
|
.positioning-region {
|
|
27565
27547
|
display: flex;
|
|
@@ -27598,7 +27580,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27598
27580
|
`;
|
|
27599
27581
|
|
|
27600
27582
|
const labelTemplate$3 = createRequiredVisibleLabelTemplate(html `<slot name="label"></slot>`);
|
|
27601
|
-
const template$
|
|
27583
|
+
const template$u = html `
|
|
27602
27584
|
<template
|
|
27603
27585
|
role="radiogroup"
|
|
27604
27586
|
aria-disabled="${x => x.disabled}"
|
|
@@ -27638,8 +27620,8 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27638
27620
|
const nimbleRadioGroup = RadioGroup.compose({
|
|
27639
27621
|
baseName: 'radio-group',
|
|
27640
27622
|
baseClass: RadioGroup$1,
|
|
27641
|
-
template: template$
|
|
27642
|
-
styles: styles$
|
|
27623
|
+
template: template$u,
|
|
27624
|
+
styles: styles$y,
|
|
27643
27625
|
shadowOptions: {
|
|
27644
27626
|
delegatesFocus: true
|
|
27645
27627
|
}
|
|
@@ -31575,7 +31557,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31575
31557
|
JSON-serialization identifier using
|
|
31576
31558
|
[`Step.jsonID`](https://prosemirror.net/docs/ref/#transform.Step^jsonID).
|
|
31577
31559
|
*/
|
|
31578
|
-
class Step {
|
|
31560
|
+
let Step$1 = class Step {
|
|
31579
31561
|
/**
|
|
31580
31562
|
Get the step map that represents the changes made by this step,
|
|
31581
31563
|
and which can be used to transform between positions in the old
|
|
@@ -31613,7 +31595,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31613
31595
|
stepClass.prototype.jsonID = id;
|
|
31614
31596
|
return stepClass;
|
|
31615
31597
|
}
|
|
31616
|
-
}
|
|
31598
|
+
};
|
|
31617
31599
|
/**
|
|
31618
31600
|
The result of [applying](https://prosemirror.net/docs/ref/#transform.Step.apply) a step. Contains either a
|
|
31619
31601
|
new document or a failure value.
|
|
@@ -31674,7 +31656,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31674
31656
|
/**
|
|
31675
31657
|
Add a mark to all inline content between two positions.
|
|
31676
31658
|
*/
|
|
31677
|
-
class AddMarkStep extends Step {
|
|
31659
|
+
class AddMarkStep extends Step$1 {
|
|
31678
31660
|
/**
|
|
31679
31661
|
Create a mark step.
|
|
31680
31662
|
*/
|
|
@@ -31735,11 +31717,11 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31735
31717
|
return new AddMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
|
|
31736
31718
|
}
|
|
31737
31719
|
}
|
|
31738
|
-
Step.jsonID("addMark", AddMarkStep);
|
|
31720
|
+
Step$1.jsonID("addMark", AddMarkStep);
|
|
31739
31721
|
/**
|
|
31740
31722
|
Remove a mark from all inline content between two positions.
|
|
31741
31723
|
*/
|
|
31742
|
-
class RemoveMarkStep extends Step {
|
|
31724
|
+
class RemoveMarkStep extends Step$1 {
|
|
31743
31725
|
/**
|
|
31744
31726
|
Create a mark-removing step.
|
|
31745
31727
|
*/
|
|
@@ -31797,11 +31779,11 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31797
31779
|
return new RemoveMarkStep(json.from, json.to, schema.markFromJSON(json.mark));
|
|
31798
31780
|
}
|
|
31799
31781
|
}
|
|
31800
|
-
Step.jsonID("removeMark", RemoveMarkStep);
|
|
31782
|
+
Step$1.jsonID("removeMark", RemoveMarkStep);
|
|
31801
31783
|
/**
|
|
31802
31784
|
Add a mark to a specific node.
|
|
31803
31785
|
*/
|
|
31804
|
-
class AddNodeMarkStep extends Step {
|
|
31786
|
+
class AddNodeMarkStep extends Step$1 {
|
|
31805
31787
|
/**
|
|
31806
31788
|
Create a node mark step.
|
|
31807
31789
|
*/
|
|
@@ -31854,11 +31836,11 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31854
31836
|
return new AddNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
31855
31837
|
}
|
|
31856
31838
|
}
|
|
31857
|
-
Step.jsonID("addNodeMark", AddNodeMarkStep);
|
|
31839
|
+
Step$1.jsonID("addNodeMark", AddNodeMarkStep);
|
|
31858
31840
|
/**
|
|
31859
31841
|
Remove a mark from a specific node.
|
|
31860
31842
|
*/
|
|
31861
|
-
class RemoveNodeMarkStep extends Step {
|
|
31843
|
+
class RemoveNodeMarkStep extends Step$1 {
|
|
31862
31844
|
/**
|
|
31863
31845
|
Create a mark-removing step.
|
|
31864
31846
|
*/
|
|
@@ -31904,12 +31886,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31904
31886
|
return new RemoveNodeMarkStep(json.pos, schema.markFromJSON(json.mark));
|
|
31905
31887
|
}
|
|
31906
31888
|
}
|
|
31907
|
-
Step.jsonID("removeNodeMark", RemoveNodeMarkStep);
|
|
31889
|
+
Step$1.jsonID("removeNodeMark", RemoveNodeMarkStep);
|
|
31908
31890
|
|
|
31909
31891
|
/**
|
|
31910
31892
|
Replace a part of the document with a slice of new content.
|
|
31911
31893
|
*/
|
|
31912
|
-
class ReplaceStep extends Step {
|
|
31894
|
+
class ReplaceStep extends Step$1 {
|
|
31913
31895
|
/**
|
|
31914
31896
|
The given `slice` should fit the 'gap' between `from` and
|
|
31915
31897
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -31993,13 +31975,13 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
31993
31975
|
return new ReplaceStep(json.from, json.to, Slice.fromJSON(schema, json.slice), !!json.structure);
|
|
31994
31976
|
}
|
|
31995
31977
|
}
|
|
31996
|
-
Step.jsonID("replace", ReplaceStep);
|
|
31978
|
+
Step$1.jsonID("replace", ReplaceStep);
|
|
31997
31979
|
/**
|
|
31998
31980
|
Replace a part of the document with a slice of content, but
|
|
31999
31981
|
preserve a range of the replaced content by moving it into the
|
|
32000
31982
|
slice.
|
|
32001
31983
|
*/
|
|
32002
|
-
class ReplaceAroundStep extends Step {
|
|
31984
|
+
class ReplaceAroundStep extends Step$1 {
|
|
32003
31985
|
/**
|
|
32004
31986
|
Create a replace-around step with the given range and gap.
|
|
32005
31987
|
`insert` should be the point in the slice into which the content
|
|
@@ -32092,7 +32074,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
32092
32074
|
return new ReplaceAroundStep(json.from, json.to, json.gapFrom, json.gapTo, Slice.fromJSON(schema, json.slice), json.insert, !!json.structure);
|
|
32093
32075
|
}
|
|
32094
32076
|
}
|
|
32095
|
-
Step.jsonID("replaceAround", ReplaceAroundStep);
|
|
32077
|
+
Step$1.jsonID("replaceAround", ReplaceAroundStep);
|
|
32096
32078
|
function contentBetween(doc, from, to) {
|
|
32097
32079
|
let $from = doc.resolve(from), dist = to - from, depth = $from.depth;
|
|
32098
32080
|
while (dist > 0 && depth > 0 && $from.indexAfter(depth) == $from.node(depth).childCount) {
|
|
@@ -33016,7 +32998,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
33016
32998
|
/**
|
|
33017
32999
|
Update an attribute in a specific node.
|
|
33018
33000
|
*/
|
|
33019
|
-
class AttrStep extends Step {
|
|
33001
|
+
class AttrStep extends Step$1 {
|
|
33020
33002
|
/**
|
|
33021
33003
|
Construct an attribute step.
|
|
33022
33004
|
*/
|
|
@@ -33066,11 +33048,11 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
33066
33048
|
return new AttrStep(json.pos, json.attr, json.value);
|
|
33067
33049
|
}
|
|
33068
33050
|
}
|
|
33069
|
-
Step.jsonID("attr", AttrStep);
|
|
33051
|
+
Step$1.jsonID("attr", AttrStep);
|
|
33070
33052
|
/**
|
|
33071
33053
|
Update an attribute in the doc node.
|
|
33072
33054
|
*/
|
|
33073
|
-
class DocAttrStep extends Step {
|
|
33055
|
+
class DocAttrStep extends Step$1 {
|
|
33074
33056
|
/**
|
|
33075
33057
|
Construct an attribute step.
|
|
33076
33058
|
*/
|
|
@@ -33111,7 +33093,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
33111
33093
|
return new DocAttrStep(json.attr, json.value);
|
|
33112
33094
|
}
|
|
33113
33095
|
}
|
|
33114
|
-
Step.jsonID("docAttr", DocAttrStep);
|
|
33096
|
+
Step$1.jsonID("docAttr", DocAttrStep);
|
|
33115
33097
|
|
|
33116
33098
|
/**
|
|
33117
33099
|
@internal
|
|
@@ -46783,7 +46765,7 @@ ${renderedContent}
|
|
|
46783
46765
|
// src/index.ts
|
|
46784
46766
|
var index_default$7 = HardBreak;
|
|
46785
46767
|
|
|
46786
|
-
const styles$
|
|
46768
|
+
const styles$x = css `
|
|
46787
46769
|
${display('inline')}
|
|
46788
46770
|
|
|
46789
46771
|
.positioning-region {
|
|
@@ -46820,7 +46802,7 @@ ${renderedContent}
|
|
|
46820
46802
|
baseName: 'toolbar',
|
|
46821
46803
|
baseClass: Toolbar$1,
|
|
46822
46804
|
template: toolbarTemplate,
|
|
46823
|
-
styles: styles$
|
|
46805
|
+
styles: styles$x
|
|
46824
46806
|
});
|
|
46825
46807
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleToolbar());
|
|
46826
46808
|
const toolbarTag = 'nimble-toolbar';
|
|
@@ -46849,8 +46831,8 @@ ${renderedContent}
|
|
|
46849
46831
|
cssCustomPropertyName: null
|
|
46850
46832
|
}).withDefault(richTextLabelDefaults.richTextToggleNumberedListLabel);
|
|
46851
46833
|
|
|
46852
|
-
const styles$
|
|
46853
|
-
${styles$
|
|
46834
|
+
const styles$w = css `
|
|
46835
|
+
${styles$M}
|
|
46854
46836
|
|
|
46855
46837
|
:host {
|
|
46856
46838
|
height: auto;
|
|
@@ -46868,7 +46850,7 @@ ${renderedContent}
|
|
|
46868
46850
|
}
|
|
46869
46851
|
`;
|
|
46870
46852
|
|
|
46871
|
-
const template$
|
|
46853
|
+
const template$t = html `
|
|
46872
46854
|
<template>
|
|
46873
46855
|
<${anchoredRegionTag}
|
|
46874
46856
|
${ref('region')}
|
|
@@ -47156,15 +47138,15 @@ ${renderedContent}
|
|
|
47156
47138
|
], RichTextMentionListbox.prototype, "anchorElement", void 0);
|
|
47157
47139
|
const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
|
|
47158
47140
|
baseName: 'rich-text-mention-listbox',
|
|
47159
|
-
template: template$
|
|
47160
|
-
styles: styles$
|
|
47141
|
+
template: template$t,
|
|
47142
|
+
styles: styles$w
|
|
47161
47143
|
});
|
|
47162
47144
|
DesignSystem.getOrCreate()
|
|
47163
47145
|
.withPrefix('nimble')
|
|
47164
47146
|
.register(nimbleRichTextMentionListbox());
|
|
47165
47147
|
const richTextMentionListboxTag = 'nimble-rich-text-mention-listbox';
|
|
47166
47148
|
|
|
47167
|
-
const template$
|
|
47149
|
+
const template$s = html `
|
|
47168
47150
|
<template
|
|
47169
47151
|
${children$1({ property: 'childItems', filter: elements() })}
|
|
47170
47152
|
@focusout="${x => x.focusoutHandler()}"
|
|
@@ -47266,9 +47248,9 @@ ${renderedContent}
|
|
|
47266
47248
|
</template>
|
|
47267
47249
|
`;
|
|
47268
47250
|
|
|
47269
|
-
const styles$
|
|
47251
|
+
const styles$v = css `
|
|
47270
47252
|
${display('inline-flex')}
|
|
47271
|
-
${styles$
|
|
47253
|
+
${styles$P}
|
|
47272
47254
|
|
|
47273
47255
|
:host {
|
|
47274
47256
|
font: ${bodyFont};
|
|
@@ -63642,8 +63624,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63642
63624
|
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
63643
63625
|
const nimbleRichTextEditor = RichTextEditor.compose({
|
|
63644
63626
|
baseName: 'rich-text-editor',
|
|
63645
|
-
template: template$
|
|
63646
|
-
styles: styles$
|
|
63627
|
+
template: template$s,
|
|
63628
|
+
styles: styles$v,
|
|
63647
63629
|
shadowOptions: {
|
|
63648
63630
|
delegatesFocus: true
|
|
63649
63631
|
}
|
|
@@ -63652,13 +63634,13 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63652
63634
|
.withPrefix('nimble')
|
|
63653
63635
|
.register(nimbleRichTextEditor());
|
|
63654
63636
|
|
|
63655
|
-
const template$
|
|
63637
|
+
const template$r = html `
|
|
63656
63638
|
<template ${children$1({ property: 'childItems', filter: elements() })}>
|
|
63657
63639
|
<div ${ref('viewer')} class="viewer"></div>
|
|
63658
63640
|
</template>
|
|
63659
63641
|
`;
|
|
63660
63642
|
|
|
63661
|
-
const styles$
|
|
63643
|
+
const styles$u = css `
|
|
63662
63644
|
${display('flex')}
|
|
63663
63645
|
|
|
63664
63646
|
:host {
|
|
@@ -63771,17 +63753,17 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63771
63753
|
], RichTextViewer.prototype, "markdown", void 0);
|
|
63772
63754
|
const nimbleRichTextViewer = RichTextViewer.compose({
|
|
63773
63755
|
baseName: 'rich-text-viewer',
|
|
63774
|
-
template: template$
|
|
63775
|
-
styles: styles$
|
|
63756
|
+
template: template$r,
|
|
63757
|
+
styles: styles$u
|
|
63776
63758
|
});
|
|
63777
63759
|
DesignSystem.getOrCreate()
|
|
63778
63760
|
.withPrefix('nimble')
|
|
63779
63761
|
.register(nimbleRichTextViewer());
|
|
63780
63762
|
|
|
63781
|
-
const styles$
|
|
63782
|
-
${styles$
|
|
63783
|
-
${styles$
|
|
63784
|
-
${styles$
|
|
63763
|
+
const styles$t = css `
|
|
63764
|
+
${styles$M}
|
|
63765
|
+
${styles$P}
|
|
63766
|
+
${styles$L}
|
|
63785
63767
|
|
|
63786
63768
|
${
|
|
63787
63769
|
/* We are using flex `order` to define the visual ordering of the selected value,
|
|
@@ -63944,7 +63926,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
63944
63926
|
}
|
|
63945
63927
|
`));
|
|
63946
63928
|
|
|
63947
|
-
const styles$
|
|
63929
|
+
const styles$s = css `
|
|
63948
63930
|
${display('inline-grid')}
|
|
63949
63931
|
|
|
63950
63932
|
:host {
|
|
@@ -64114,7 +64096,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64114
64096
|
}
|
|
64115
64097
|
`));
|
|
64116
64098
|
|
|
64117
|
-
const template$
|
|
64099
|
+
const template$q = html `
|
|
64118
64100
|
<template role="progressbar">
|
|
64119
64101
|
${''
|
|
64120
64102
|
/**
|
|
@@ -64161,8 +64143,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64161
64143
|
], Spinner.prototype, "appearance", void 0);
|
|
64162
64144
|
const nimbleSpinner = Spinner.compose({
|
|
64163
64145
|
baseName: 'spinner',
|
|
64164
|
-
template: template$
|
|
64165
|
-
styles: styles$
|
|
64146
|
+
template: template$q,
|
|
64147
|
+
styles: styles$s
|
|
64166
64148
|
});
|
|
64167
64149
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSpinner());
|
|
64168
64150
|
const spinnerTag = 'nimble-spinner';
|
|
@@ -64178,7 +64160,7 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
64178
64160
|
<slot ${ref('labelSlot')}></slot>
|
|
64179
64161
|
</label>
|
|
64180
64162
|
`);
|
|
64181
|
-
const template$
|
|
64163
|
+
const template$p = (context, definition) => html `
|
|
64182
64164
|
<template
|
|
64183
64165
|
class="${x => [
|
|
64184
64166
|
x.collapsible && 'collapsible',
|
|
@@ -65394,8 +65376,8 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65394
65376
|
const nimbleSelect = Select.compose({
|
|
65395
65377
|
baseName: 'select',
|
|
65396
65378
|
baseClass: Select$2,
|
|
65397
|
-
template: template$
|
|
65398
|
-
styles: styles$
|
|
65379
|
+
template: template$p,
|
|
65380
|
+
styles: styles$t,
|
|
65399
65381
|
indicator: arrowExpanderDown16X16.data,
|
|
65400
65382
|
end: html `
|
|
65401
65383
|
<${iconExclamationMarkTag}
|
|
@@ -65408,6 +65390,46 @@ ${nextLine.slice(indentLevel + 2)}`;
|
|
|
65408
65390
|
applyMixins(Select, StartEnd, DelegatesARIASelect);
|
|
65409
65391
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleSelect());
|
|
65410
65392
|
|
|
65393
|
+
const styles$r = css `
|
|
65394
|
+
${display('flex')}
|
|
65395
|
+
`;
|
|
65396
|
+
|
|
65397
|
+
const template$o = html `
|
|
65398
|
+
<template>step</template>
|
|
65399
|
+
`;
|
|
65400
|
+
|
|
65401
|
+
/**
|
|
65402
|
+
* A nimble-styled step for a stepper
|
|
65403
|
+
*/
|
|
65404
|
+
class Step extends FoundationElement {
|
|
65405
|
+
}
|
|
65406
|
+
const nimbleStep = Step.compose({
|
|
65407
|
+
baseName: 'step',
|
|
65408
|
+
template: template$o,
|
|
65409
|
+
styles: styles$r
|
|
65410
|
+
});
|
|
65411
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStep());
|
|
65412
|
+
|
|
65413
|
+
const styles$q = css `
|
|
65414
|
+
${display('flex')}
|
|
65415
|
+
`;
|
|
65416
|
+
|
|
65417
|
+
const template$n = html `
|
|
65418
|
+
<template>stepper: <slot></slot></template>
|
|
65419
|
+
`;
|
|
65420
|
+
|
|
65421
|
+
/**
|
|
65422
|
+
* A nimble-styled stepper
|
|
65423
|
+
*/
|
|
65424
|
+
class Stepper extends FoundationElement {
|
|
65425
|
+
}
|
|
65426
|
+
const nimbleStepper = Stepper.compose({
|
|
65427
|
+
baseName: 'stepper',
|
|
65428
|
+
template: template$n,
|
|
65429
|
+
styles: styles$q
|
|
65430
|
+
});
|
|
65431
|
+
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleStepper());
|
|
65432
|
+
|
|
65411
65433
|
const styles$p = css `
|
|
65412
65434
|
${display('inline-flex')}
|
|
65413
65435
|
|
|
@@ -77651,7 +77673,7 @@ focus outline in that case.
|
|
|
77651
77673
|
.register(nimbleTableColumnText());
|
|
77652
77674
|
|
|
77653
77675
|
const styles$8 = css `
|
|
77654
|
-
${styles$
|
|
77676
|
+
${styles$Z}
|
|
77655
77677
|
|
|
77656
77678
|
.tabpanel {
|
|
77657
77679
|
overflow: auto;
|
|
@@ -77732,7 +77754,7 @@ focus outline in that case.
|
|
|
77732
77754
|
const nimbleTabs = Tabs.compose({
|
|
77733
77755
|
baseName: 'tabs',
|
|
77734
77756
|
baseClass: Tabs$1,
|
|
77735
|
-
template: template$
|
|
77757
|
+
template: template$J,
|
|
77736
77758
|
styles: styles$8
|
|
77737
77759
|
});
|
|
77738
77760
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleTabs());
|
|
@@ -77814,8 +77836,8 @@ focus outline in that case.
|
|
|
77814
77836
|
|
|
77815
77837
|
const styles$6 = css `
|
|
77816
77838
|
${display('inline-flex')}
|
|
77817
|
-
${styles$
|
|
77818
|
-
${styles$
|
|
77839
|
+
${styles$P}
|
|
77840
|
+
${styles$L}
|
|
77819
77841
|
|
|
77820
77842
|
:host {
|
|
77821
77843
|
font: ${bodyFont};
|
|
@@ -78175,8 +78197,8 @@ focus outline in that case.
|
|
|
78175
78197
|
|
|
78176
78198
|
const styles$5 = css `
|
|
78177
78199
|
${display('inline-block')}
|
|
78178
|
-
${styles$
|
|
78179
|
-
${styles$
|
|
78200
|
+
${styles$P}
|
|
78201
|
+
${styles$L}
|
|
78180
78202
|
|
|
78181
78203
|
:host {
|
|
78182
78204
|
font: ${bodyFont};
|