@ni/spright-components 4.5.0 → 5.0.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 +1000 -1041
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +5023 -5043
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/chat/conversation/index.d.ts +1 -1
- package/dist/esm/chat/conversation/index.js +1 -1
- package/dist/esm/chat/conversation/index.js.map +1 -1
- package/dist/esm/chat/conversation/styles.d.ts +1 -1
- package/dist/esm/chat/conversation/styles.js +1 -1
- package/dist/esm/chat/conversation/styles.js.map +1 -1
- package/dist/esm/chat/conversation/template.d.ts +1 -1
- package/dist/esm/chat/conversation/template.js +1 -1
- package/dist/esm/chat/conversation/template.js.map +1 -1
- package/dist/esm/chat/message/index.d.ts +1 -1
- package/dist/esm/chat/message/index.js +2 -2
- package/dist/esm/chat/message/index.js.map +1 -1
- package/dist/esm/chat/message/styles.d.ts +1 -1
- package/dist/esm/chat/message/styles.js +1 -1
- package/dist/esm/chat/message/styles.js.map +1 -1
- package/dist/esm/chat/message/template.d.ts +1 -1
- package/dist/esm/chat/message/template.js +1 -1
- package/dist/esm/chat/message/template.js.map +1 -1
- package/dist/esm/rectangle/index.d.ts +1 -1
- package/dist/esm/rectangle/index.js +1 -1
- package/dist/esm/rectangle/index.js.map +1 -1
- package/dist/esm/rectangle/styles.d.ts +1 -1
- package/dist/esm/rectangle/styles.js +1 -1
- package/dist/esm/rectangle/styles.js.map +1 -1
- package/dist/esm/rectangle/template.d.ts +1 -1
- package/dist/esm/rectangle/template.js +1 -1
- package/dist/esm/rectangle/template.js.map +1 -1
- package/dist/esm/utilities/style/display.d.ts +1 -1
- package/dist/esm/utilities/style/display.js +1 -1
- package/dist/esm/utilities/style/display.js.map +1 -1
- package/package.json +5 -5
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
function __decorate
|
|
21
|
+
function __decorate(decorators, target, key, desc) {
|
|
22
22
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
23
23
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
24
24
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
const updateQueue = $global.FAST.getById(1 /* updateQueue */, () => {
|
|
177
|
+
const updateQueue = $global.FAST.getById(1 /* KernelServiceId.updateQueue */, () => {
|
|
178
178
|
const tasks = [];
|
|
179
179
|
const pendingErrors = [];
|
|
180
180
|
function throwFirstError() {
|
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
* Common Observable APIs.
|
|
559
559
|
* @public
|
|
560
560
|
*/
|
|
561
|
-
const Observable = FAST.getById(2 /* observable */, () => {
|
|
561
|
+
const Observable = FAST.getById(2 /* KernelServiceId.observable */, () => {
|
|
562
562
|
const volatileRegex = /(:|&&|\|\||if)/;
|
|
563
563
|
const notifierLookup = new WeakMap();
|
|
564
564
|
const queueUpdate = DOM.queueUpdate;
|
|
@@ -812,7 +812,7 @@
|
|
|
812
812
|
},
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
const contextEvent = FAST.getById(3 /* contextEvent */, () => {
|
|
815
|
+
const contextEvent = FAST.getById(3 /* KernelServiceId.contextEvent */, () => {
|
|
816
816
|
let current = null;
|
|
817
817
|
return {
|
|
818
818
|
get() {
|
|
@@ -1821,13 +1821,6 @@
|
|
|
1821
1821
|
* @internal
|
|
1822
1822
|
*/
|
|
1823
1823
|
class AdoptedStyleSheetsStyles extends ElementStyles {
|
|
1824
|
-
constructor(styles, styleSheetCache) {
|
|
1825
|
-
super();
|
|
1826
|
-
this.styles = styles;
|
|
1827
|
-
this.styleSheetCache = styleSheetCache;
|
|
1828
|
-
this._styleSheets = void 0;
|
|
1829
|
-
this.behaviors = reduceBehaviors(styles);
|
|
1830
|
-
}
|
|
1831
1824
|
get styleSheets() {
|
|
1832
1825
|
if (this._styleSheets === void 0) {
|
|
1833
1826
|
const styles = this.styles;
|
|
@@ -1847,6 +1840,13 @@
|
|
|
1847
1840
|
}
|
|
1848
1841
|
return this._styleSheets;
|
|
1849
1842
|
}
|
|
1843
|
+
constructor(styles, styleSheetCache) {
|
|
1844
|
+
super();
|
|
1845
|
+
this.styles = styles;
|
|
1846
|
+
this.styleSheetCache = styleSheetCache;
|
|
1847
|
+
this._styleSheets = void 0;
|
|
1848
|
+
this.behaviors = reduceBehaviors(styles);
|
|
1849
|
+
}
|
|
1850
1850
|
addStylesTo(target) {
|
|
1851
1851
|
addAdoptedStyleSheets(target, this.styleSheets);
|
|
1852
1852
|
super.addStylesTo(target);
|
|
@@ -2098,7 +2098,7 @@
|
|
|
2098
2098
|
|
|
2099
2099
|
const defaultShadowOptions = { mode: "open" };
|
|
2100
2100
|
const defaultElementOptions = {};
|
|
2101
|
-
const fastRegistry = FAST.getById(4 /* elementRegistry */, () => {
|
|
2101
|
+
const fastRegistry = FAST.getById(4 /* KernelServiceId.elementRegistry */, () => {
|
|
2102
2102
|
const typeToDefinition = new Map();
|
|
2103
2103
|
return Object.freeze({
|
|
2104
2104
|
register(definition) {
|
|
@@ -2118,6 +2118,12 @@
|
|
|
2118
2118
|
* @public
|
|
2119
2119
|
*/
|
|
2120
2120
|
class FASTElementDefinition {
|
|
2121
|
+
/**
|
|
2122
|
+
* Indicates if this element has been defined in at least one registry.
|
|
2123
|
+
*/
|
|
2124
|
+
get isDefined() {
|
|
2125
|
+
return !!fastRegistry.getByType(this.type);
|
|
2126
|
+
}
|
|
2121
2127
|
/**
|
|
2122
2128
|
* Creates an instance of FASTElementDefinition.
|
|
2123
2129
|
* @param type - The type this definition is being created for.
|
|
@@ -2164,12 +2170,6 @@
|
|
|
2164
2170
|
? nameOrConfig.styles
|
|
2165
2171
|
: ElementStyles.create([nameOrConfig.styles]);
|
|
2166
2172
|
}
|
|
2167
|
-
/**
|
|
2168
|
-
* Indicates if this element has been defined in at least one registry.
|
|
2169
|
-
*/
|
|
2170
|
-
get isDefined() {
|
|
2171
|
-
return !!fastRegistry.getByType(this.type);
|
|
2172
|
-
}
|
|
2173
2173
|
/**
|
|
2174
2174
|
* Defines a custom element based on this definition.
|
|
2175
2175
|
* @param registry - The element registry to define the element in.
|
|
@@ -2213,6 +2213,55 @@
|
|
|
2213
2213
|
* @public
|
|
2214
2214
|
*/
|
|
2215
2215
|
class Controller extends PropertyChangeNotifier {
|
|
2216
|
+
/**
|
|
2217
|
+
* Indicates whether or not the custom element has been
|
|
2218
|
+
* connected to the document.
|
|
2219
|
+
*/
|
|
2220
|
+
get isConnected() {
|
|
2221
|
+
Observable.track(this, "isConnected");
|
|
2222
|
+
return this._isConnected;
|
|
2223
|
+
}
|
|
2224
|
+
setIsConnected(value) {
|
|
2225
|
+
this._isConnected = value;
|
|
2226
|
+
Observable.notify(this, "isConnected");
|
|
2227
|
+
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Gets/sets the template used to render the component.
|
|
2230
|
+
* @remarks
|
|
2231
|
+
* This value can only be accurately read after connect but can be set at any time.
|
|
2232
|
+
*/
|
|
2233
|
+
get template() {
|
|
2234
|
+
return this._template;
|
|
2235
|
+
}
|
|
2236
|
+
set template(value) {
|
|
2237
|
+
if (this._template === value) {
|
|
2238
|
+
return;
|
|
2239
|
+
}
|
|
2240
|
+
this._template = value;
|
|
2241
|
+
if (!this.needsInitialization) {
|
|
2242
|
+
this.renderTemplate(value);
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
/**
|
|
2246
|
+
* Gets/sets the primary styles used for the component.
|
|
2247
|
+
* @remarks
|
|
2248
|
+
* This value can only be accurately read after connect but can be set at any time.
|
|
2249
|
+
*/
|
|
2250
|
+
get styles() {
|
|
2251
|
+
return this._styles;
|
|
2252
|
+
}
|
|
2253
|
+
set styles(value) {
|
|
2254
|
+
if (this._styles === value) {
|
|
2255
|
+
return;
|
|
2256
|
+
}
|
|
2257
|
+
if (this._styles !== null) {
|
|
2258
|
+
this.removeStyles(this._styles);
|
|
2259
|
+
}
|
|
2260
|
+
this._styles = value;
|
|
2261
|
+
if (!this.needsInitialization && value !== null) {
|
|
2262
|
+
this.addStyles(value);
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2216
2265
|
/**
|
|
2217
2266
|
* Creates a Controller to control the specified element.
|
|
2218
2267
|
* @param element - The element to be controlled by this controller.
|
|
@@ -2269,55 +2318,6 @@
|
|
|
2269
2318
|
}
|
|
2270
2319
|
}
|
|
2271
2320
|
}
|
|
2272
|
-
/**
|
|
2273
|
-
* Indicates whether or not the custom element has been
|
|
2274
|
-
* connected to the document.
|
|
2275
|
-
*/
|
|
2276
|
-
get isConnected() {
|
|
2277
|
-
Observable.track(this, "isConnected");
|
|
2278
|
-
return this._isConnected;
|
|
2279
|
-
}
|
|
2280
|
-
setIsConnected(value) {
|
|
2281
|
-
this._isConnected = value;
|
|
2282
|
-
Observable.notify(this, "isConnected");
|
|
2283
|
-
}
|
|
2284
|
-
/**
|
|
2285
|
-
* Gets/sets the template used to render the component.
|
|
2286
|
-
* @remarks
|
|
2287
|
-
* This value can only be accurately read after connect but can be set at any time.
|
|
2288
|
-
*/
|
|
2289
|
-
get template() {
|
|
2290
|
-
return this._template;
|
|
2291
|
-
}
|
|
2292
|
-
set template(value) {
|
|
2293
|
-
if (this._template === value) {
|
|
2294
|
-
return;
|
|
2295
|
-
}
|
|
2296
|
-
this._template = value;
|
|
2297
|
-
if (!this.needsInitialization) {
|
|
2298
|
-
this.renderTemplate(value);
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
/**
|
|
2302
|
-
* Gets/sets the primary styles used for the component.
|
|
2303
|
-
* @remarks
|
|
2304
|
-
* This value can only be accurately read after connect but can be set at any time.
|
|
2305
|
-
*/
|
|
2306
|
-
get styles() {
|
|
2307
|
-
return this._styles;
|
|
2308
|
-
}
|
|
2309
|
-
set styles(value) {
|
|
2310
|
-
if (this._styles === value) {
|
|
2311
|
-
return;
|
|
2312
|
-
}
|
|
2313
|
-
if (this._styles !== null) {
|
|
2314
|
-
this.removeStyles(this._styles);
|
|
2315
|
-
}
|
|
2316
|
-
this._styles = value;
|
|
2317
|
-
if (!this.needsInitialization && value !== null) {
|
|
2318
|
-
this.addStyles(value);
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
2321
|
/**
|
|
2322
2322
|
* Adds styles to this element. Providing an HTMLStyleElement will attach the element instance to the shadowRoot.
|
|
2323
2323
|
* @param styles - The styles to add.
|
|
@@ -3816,30 +3816,6 @@
|
|
|
3816
3816
|
</span>
|
|
3817
3817
|
`;
|
|
3818
3818
|
|
|
3819
|
-
/*! *****************************************************************************
|
|
3820
|
-
Copyright (c) Microsoft Corporation.
|
|
3821
|
-
|
|
3822
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
3823
|
-
purpose with or without fee is hereby granted.
|
|
3824
|
-
|
|
3825
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
3826
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
3827
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
3828
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
3829
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
3830
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
3831
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
3832
|
-
***************************************************************************** */
|
|
3833
|
-
/* global Reflect, Promise */
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
function __decorate(decorators, target, key, desc) {
|
|
3837
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3838
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3839
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3840
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3841
|
-
}
|
|
3842
|
-
|
|
3843
3819
|
/**
|
|
3844
3820
|
* Big thanks to https://github.com/fkleuver and the https://github.com/aurelia/aurelia project
|
|
3845
3821
|
* for the bulk of this code and many of the associated tests.
|
|
@@ -3888,7 +3864,7 @@
|
|
|
3888
3864
|
* @returns The resolver.
|
|
3889
3865
|
*/
|
|
3890
3866
|
instance(value) {
|
|
3891
|
-
return this.registerResolver(0 /* instance */, value);
|
|
3867
|
+
return this.registerResolver(0 /* ResolverStrategy.instance */, value);
|
|
3892
3868
|
}
|
|
3893
3869
|
/**
|
|
3894
3870
|
* Creates a resolver that enforces a singleton lifetime.
|
|
@@ -3896,7 +3872,7 @@
|
|
|
3896
3872
|
* @returns The resolver.
|
|
3897
3873
|
*/
|
|
3898
3874
|
singleton(value) {
|
|
3899
|
-
return this.registerResolver(1 /* singleton */, value);
|
|
3875
|
+
return this.registerResolver(1 /* ResolverStrategy.singleton */, value);
|
|
3900
3876
|
}
|
|
3901
3877
|
/**
|
|
3902
3878
|
* Creates a resolver that creates a new instance for every dependency request.
|
|
@@ -3904,7 +3880,7 @@
|
|
|
3904
3880
|
* @returns - The resolver.
|
|
3905
3881
|
*/
|
|
3906
3882
|
transient(value) {
|
|
3907
|
-
return this.registerResolver(2 /* transient */, value);
|
|
3883
|
+
return this.registerResolver(2 /* ResolverStrategy.transient */, value);
|
|
3908
3884
|
}
|
|
3909
3885
|
/**
|
|
3910
3886
|
* Creates a resolver that invokes a callback function for every dependency resolution
|
|
@@ -3913,7 +3889,7 @@
|
|
|
3913
3889
|
* @returns The resolver.
|
|
3914
3890
|
*/
|
|
3915
3891
|
callback(value) {
|
|
3916
|
-
return this.registerResolver(3 /* callback */, value);
|
|
3892
|
+
return this.registerResolver(3 /* ResolverStrategy.callback */, value);
|
|
3917
3893
|
}
|
|
3918
3894
|
/**
|
|
3919
3895
|
* Creates a resolver that invokes a callback function the first time that a dependency
|
|
@@ -3923,7 +3899,7 @@
|
|
|
3923
3899
|
* @returns The resolver.
|
|
3924
3900
|
*/
|
|
3925
3901
|
cachedCallback(value) {
|
|
3926
|
-
return this.registerResolver(3 /* callback */, cacheCallbackResult(value));
|
|
3902
|
+
return this.registerResolver(3 /* ResolverStrategy.callback */, cacheCallbackResult(value));
|
|
3927
3903
|
}
|
|
3928
3904
|
/**
|
|
3929
3905
|
* Aliases the current key to a different key.
|
|
@@ -3931,7 +3907,7 @@
|
|
|
3931
3907
|
* @returns The resolver.
|
|
3932
3908
|
*/
|
|
3933
3909
|
aliasTo(destinationKey) {
|
|
3934
|
-
return this.registerResolver(5 /* alias */, destinationKey);
|
|
3910
|
+
return this.registerResolver(5 /* ResolverStrategy.alias */, destinationKey);
|
|
3935
3911
|
}
|
|
3936
3912
|
registerResolver(strategy, state) {
|
|
3937
3913
|
const { container, key } = this;
|
|
@@ -3971,7 +3947,7 @@
|
|
|
3971
3947
|
* @returns The resolver.
|
|
3972
3948
|
*/
|
|
3973
3949
|
singleton(key) {
|
|
3974
|
-
return new ResolverImpl(key, 1 /* singleton */, key);
|
|
3950
|
+
return new ResolverImpl(key, 1 /* ResolverStrategy.singleton */, key);
|
|
3975
3951
|
},
|
|
3976
3952
|
/**
|
|
3977
3953
|
* Provides default transient resolution behavior during auto-registration.
|
|
@@ -3979,7 +3955,7 @@
|
|
|
3979
3955
|
* @returns The resolver.
|
|
3980
3956
|
*/
|
|
3981
3957
|
transient(key) {
|
|
3982
|
-
return new ResolverImpl(key, 2 /* transient */, key);
|
|
3958
|
+
return new ResolverImpl(key, 2 /* ResolverStrategy.transient */, key);
|
|
3983
3959
|
},
|
|
3984
3960
|
});
|
|
3985
3961
|
/**
|
|
@@ -4400,9 +4376,9 @@
|
|
|
4400
4376
|
}
|
|
4401
4377
|
resolve(handler, requestor) {
|
|
4402
4378
|
switch (this.strategy) {
|
|
4403
|
-
case 0 /* instance */:
|
|
4379
|
+
case 0 /* ResolverStrategy.instance */:
|
|
4404
4380
|
return this.state;
|
|
4405
|
-
case 1 /* singleton */: {
|
|
4381
|
+
case 1 /* ResolverStrategy.singleton */: {
|
|
4406
4382
|
if (this.resolving) {
|
|
4407
4383
|
throw new Error(`Cyclic dependency found: ${this.state.name}`);
|
|
4408
4384
|
}
|
|
@@ -4410,11 +4386,11 @@
|
|
|
4410
4386
|
this.state = handler
|
|
4411
4387
|
.getFactory(this.state)
|
|
4412
4388
|
.construct(requestor);
|
|
4413
|
-
this.strategy = 0 /* instance */;
|
|
4389
|
+
this.strategy = 0 /* ResolverStrategy.instance */;
|
|
4414
4390
|
this.resolving = false;
|
|
4415
4391
|
return this.state;
|
|
4416
4392
|
}
|
|
4417
|
-
case 2 /* transient */: {
|
|
4393
|
+
case 2 /* ResolverStrategy.transient */: {
|
|
4418
4394
|
// Always create transients from the requesting container
|
|
4419
4395
|
const factory = handler.getFactory(this.state);
|
|
4420
4396
|
if (factory === null) {
|
|
@@ -4422,11 +4398,11 @@
|
|
|
4422
4398
|
}
|
|
4423
4399
|
return factory.construct(requestor);
|
|
4424
4400
|
}
|
|
4425
|
-
case 3 /* callback */:
|
|
4401
|
+
case 3 /* ResolverStrategy.callback */:
|
|
4426
4402
|
return this.state(handler, requestor, this);
|
|
4427
|
-
case 4 /* array */:
|
|
4403
|
+
case 4 /* ResolverStrategy.array */:
|
|
4428
4404
|
return this.state[0].resolve(handler, requestor);
|
|
4429
|
-
case 5 /* alias */:
|
|
4405
|
+
case 5 /* ResolverStrategy.alias */:
|
|
4430
4406
|
return requestor.get(this.state);
|
|
4431
4407
|
default:
|
|
4432
4408
|
throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`);
|
|
@@ -4435,10 +4411,10 @@
|
|
|
4435
4411
|
getFactory(container) {
|
|
4436
4412
|
var _a, _b, _c;
|
|
4437
4413
|
switch (this.strategy) {
|
|
4438
|
-
case 1 /* singleton */:
|
|
4439
|
-
case 2 /* transient */:
|
|
4414
|
+
case 1 /* ResolverStrategy.singleton */:
|
|
4415
|
+
case 2 /* ResolverStrategy.transient */:
|
|
4440
4416
|
return container.getFactory(this.state);
|
|
4441
|
-
case 5 /* alias */:
|
|
4417
|
+
case 5 /* ResolverStrategy.alias */:
|
|
4442
4418
|
return (_c = (_b = (_a = container.getResolver(this.state)) === null || _a === void 0 ? void 0 : _a.getFactory) === null || _b === void 0 ? void 0 : _b.call(_a, container)) !== null && _c !== void 0 ? _c : null;
|
|
4443
4419
|
default:
|
|
4444
4420
|
return null;
|
|
@@ -4533,6 +4509,18 @@
|
|
|
4533
4509
|
* @internal
|
|
4534
4510
|
*/
|
|
4535
4511
|
class ContainerImpl {
|
|
4512
|
+
get parent() {
|
|
4513
|
+
if (this._parent === void 0) {
|
|
4514
|
+
this._parent = this.config.parentLocator(this.owner);
|
|
4515
|
+
}
|
|
4516
|
+
return this._parent;
|
|
4517
|
+
}
|
|
4518
|
+
get depth() {
|
|
4519
|
+
return this.parent === null ? 0 : this.parent.depth + 1;
|
|
4520
|
+
}
|
|
4521
|
+
get responsibleForOwnerRequests() {
|
|
4522
|
+
return this.config.responsibleForOwnerRequests;
|
|
4523
|
+
}
|
|
4536
4524
|
constructor(owner, config) {
|
|
4537
4525
|
this.owner = owner;
|
|
4538
4526
|
this.config = config;
|
|
@@ -4553,18 +4541,6 @@
|
|
|
4553
4541
|
});
|
|
4554
4542
|
}
|
|
4555
4543
|
}
|
|
4556
|
-
get parent() {
|
|
4557
|
-
if (this._parent === void 0) {
|
|
4558
|
-
this._parent = this.config.parentLocator(this.owner);
|
|
4559
|
-
}
|
|
4560
|
-
return this._parent;
|
|
4561
|
-
}
|
|
4562
|
-
get depth() {
|
|
4563
|
-
return this.parent === null ? 0 : this.parent.depth + 1;
|
|
4564
|
-
}
|
|
4565
|
-
get responsibleForOwnerRequests() {
|
|
4566
|
-
return this.config.responsibleForOwnerRequests;
|
|
4567
|
-
}
|
|
4568
4544
|
registerWithContext(context, ...params) {
|
|
4569
4545
|
this.context = context;
|
|
4570
4546
|
this.register(...params);
|
|
@@ -4625,11 +4601,11 @@
|
|
|
4625
4601
|
resolvers.set(key, resolver);
|
|
4626
4602
|
}
|
|
4627
4603
|
else if (result instanceof ResolverImpl &&
|
|
4628
|
-
result.strategy === 4 /* array */) {
|
|
4604
|
+
result.strategy === 4 /* ResolverStrategy.array */) {
|
|
4629
4605
|
result.state.push(resolver);
|
|
4630
4606
|
}
|
|
4631
4607
|
else {
|
|
4632
|
-
resolvers.set(key, new ResolverImpl(key, 4 /* array */, [result, resolver]));
|
|
4608
|
+
resolvers.set(key, new ResolverImpl(key, 4 /* ResolverStrategy.array */, [result, resolver]));
|
|
4633
4609
|
}
|
|
4634
4610
|
return resolver;
|
|
4635
4611
|
}
|
|
@@ -4829,7 +4805,7 @@
|
|
|
4829
4805
|
* @param value - The instance to return when the key is requested.
|
|
4830
4806
|
*/
|
|
4831
4807
|
instance(key, value) {
|
|
4832
|
-
return new ResolverImpl(key, 0 /* instance */, value);
|
|
4808
|
+
return new ResolverImpl(key, 0 /* ResolverStrategy.instance */, value);
|
|
4833
4809
|
},
|
|
4834
4810
|
/**
|
|
4835
4811
|
* Creates an instance from the class.
|
|
@@ -4844,7 +4820,7 @@
|
|
|
4844
4820
|
* @param value - The class to instantiate as a singleton when first requested.
|
|
4845
4821
|
*/
|
|
4846
4822
|
singleton(key, value) {
|
|
4847
|
-
return new ResolverImpl(key, 1 /* singleton */, value);
|
|
4823
|
+
return new ResolverImpl(key, 1 /* ResolverStrategy.singleton */, value);
|
|
4848
4824
|
},
|
|
4849
4825
|
/**
|
|
4850
4826
|
* Creates an instance from a class.
|
|
@@ -4859,7 +4835,7 @@
|
|
|
4859
4835
|
* @param value - The class to instantiate each time the key is requested.
|
|
4860
4836
|
*/
|
|
4861
4837
|
transient(key, value) {
|
|
4862
|
-
return new ResolverImpl(key, 2 /* transient */, value);
|
|
4838
|
+
return new ResolverImpl(key, 2 /* ResolverStrategy.transient */, value);
|
|
4863
4839
|
},
|
|
4864
4840
|
/**
|
|
4865
4841
|
* Delegates to a callback function to provide the dependency.
|
|
@@ -4876,7 +4852,7 @@
|
|
|
4876
4852
|
* @param callback - The function that is expected to return the dependency.
|
|
4877
4853
|
*/
|
|
4878
4854
|
callback(key, callback) {
|
|
4879
|
-
return new ResolverImpl(key, 3 /* callback */, callback);
|
|
4855
|
+
return new ResolverImpl(key, 3 /* ResolverStrategy.callback */, callback);
|
|
4880
4856
|
},
|
|
4881
4857
|
/**
|
|
4882
4858
|
* Delegates to a callback function to provide the dependency and then caches the
|
|
@@ -4895,7 +4871,7 @@
|
|
|
4895
4871
|
* Should all references to the resolver returned be removed, the cache will expire.
|
|
4896
4872
|
*/
|
|
4897
4873
|
cachedCallback(key, callback) {
|
|
4898
|
-
return new ResolverImpl(key, 3 /* callback */, cacheCallbackResult(callback));
|
|
4874
|
+
return new ResolverImpl(key, 3 /* ResolverStrategy.callback */, cacheCallbackResult(callback));
|
|
4899
4875
|
},
|
|
4900
4876
|
/**
|
|
4901
4877
|
* Creates an alternate {@link Key} to retrieve an instance by.
|
|
@@ -4912,7 +4888,7 @@
|
|
|
4912
4888
|
* @param aliasKey - The alias to the original key.
|
|
4913
4889
|
*/
|
|
4914
4890
|
aliasTo(originalKey, aliasKey) {
|
|
4915
|
-
return new ResolverImpl(aliasKey, 5 /* alias */, originalKey);
|
|
4891
|
+
return new ResolverImpl(aliasKey, 5 /* ResolverStrategy.alias */, originalKey);
|
|
4916
4892
|
},
|
|
4917
4893
|
});
|
|
4918
4894
|
/** @internal */
|
|
@@ -4923,7 +4899,7 @@
|
|
|
4923
4899
|
}
|
|
4924
4900
|
function buildAllResponse(resolver, handler, requestor) {
|
|
4925
4901
|
if (resolver instanceof ResolverImpl &&
|
|
4926
|
-
resolver.strategy === 4 /* array */) {
|
|
4902
|
+
resolver.strategy === 4 /* ResolverStrategy.array */) {
|
|
4927
4903
|
const state = resolver.state;
|
|
4928
4904
|
let i = state.length;
|
|
4929
4905
|
const results = new Array(i);
|
|
@@ -5250,7 +5226,7 @@
|
|
|
5250
5226
|
/**
|
|
5251
5227
|
* Standard orientation values
|
|
5252
5228
|
*/
|
|
5253
|
-
const Orientation
|
|
5229
|
+
const Orientation = {
|
|
5254
5230
|
horizontal: "horizontal",
|
|
5255
5231
|
vertical: "vertical",
|
|
5256
5232
|
};
|
|
@@ -5261,7 +5237,7 @@
|
|
|
5261
5237
|
* @param array - the array to test
|
|
5262
5238
|
* @param predicate - find calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
5263
5239
|
*/
|
|
5264
|
-
function findLastIndex
|
|
5240
|
+
function findLastIndex(array, predicate) {
|
|
5265
5241
|
let k = array.length;
|
|
5266
5242
|
while (k--) {
|
|
5267
5243
|
if (predicate(array[k], k, array)) {
|
|
@@ -5281,14 +5257,14 @@
|
|
|
5281
5257
|
/**
|
|
5282
5258
|
* A test that ensures that all arguments are HTML Elements
|
|
5283
5259
|
*/
|
|
5284
|
-
function isHTMLElement
|
|
5260
|
+
function isHTMLElement(...args) {
|
|
5285
5261
|
return args.every((arg) => arg instanceof HTMLElement);
|
|
5286
5262
|
}
|
|
5287
5263
|
/**
|
|
5288
5264
|
* Returns all displayed elements inside of a root node that match a provided selector
|
|
5289
5265
|
*/
|
|
5290
5266
|
function getDisplayedNodes(rootNode, selector) {
|
|
5291
|
-
if (!rootNode || false || !isHTMLElement
|
|
5267
|
+
if (!rootNode || false || !isHTMLElement(rootNode)) {
|
|
5292
5268
|
return;
|
|
5293
5269
|
}
|
|
5294
5270
|
const nodes = Array.from(rootNode.querySelectorAll(selector));
|
|
@@ -5348,6 +5324,8 @@
|
|
|
5348
5324
|
* This set of exported strings reference https://developer.mozilla.org/en-US/docs/Web/Events
|
|
5349
5325
|
* and should include all non-deprecated and non-experimental Standard events
|
|
5350
5326
|
*/
|
|
5327
|
+
const eventAnimationEnd = "animationend";
|
|
5328
|
+
const eventChange = "change";
|
|
5351
5329
|
const eventResize = "resize";
|
|
5352
5330
|
const eventScroll = "scroll";
|
|
5353
5331
|
|
|
@@ -5409,8 +5387,10 @@
|
|
|
5409
5387
|
KeyCodes[KeyCodes["numPad9"] = 105] = "numPad9";
|
|
5410
5388
|
KeyCodes[KeyCodes["numPadDivide"] = 111] = "numPadDivide";
|
|
5411
5389
|
KeyCodes[KeyCodes["numPadDot"] = 110] = "numPadDot";
|
|
5390
|
+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
|
|
5412
5391
|
KeyCodes[KeyCodes["numPadMinus"] = 109] = "numPadMinus";
|
|
5413
5392
|
KeyCodes[KeyCodes["numPadMultiply"] = 106] = "numPadMultiply";
|
|
5393
|
+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
|
|
5414
5394
|
KeyCodes[KeyCodes["numPadPlus"] = 107] = "numPadPlus";
|
|
5415
5395
|
KeyCodes[KeyCodes["openBracket"] = 219] = "openBracket";
|
|
5416
5396
|
KeyCodes[KeyCodes["pageDown"] = 34] = "pageDown";
|
|
@@ -5424,37 +5404,41 @@
|
|
|
5424
5404
|
KeyCodes[KeyCodes["tab"] = 9] = "tab";
|
|
5425
5405
|
KeyCodes[KeyCodes["tilde"] = 192] = "tilde";
|
|
5426
5406
|
KeyCodes[KeyCodes["windowsLeft"] = 91] = "windowsLeft";
|
|
5407
|
+
// eslint-disable-next-line @typescript-eslint/no-duplicate-enum-values
|
|
5427
5408
|
KeyCodes[KeyCodes["windowsOpera"] = 219] = "windowsOpera";
|
|
5428
5409
|
KeyCodes[KeyCodes["windowsRight"] = 92] = "windowsRight";
|
|
5429
5410
|
})(KeyCodes || (KeyCodes = {}));
|
|
5430
5411
|
/**
|
|
5431
5412
|
* String values for use with KeyboardEvent.key
|
|
5432
5413
|
*/
|
|
5433
|
-
const keyArrowDown
|
|
5434
|
-
const keyArrowLeft
|
|
5435
|
-
const keyArrowRight
|
|
5436
|
-
const keyArrowUp
|
|
5437
|
-
const keyEnter
|
|
5438
|
-
const keyEscape
|
|
5439
|
-
const keyHome
|
|
5440
|
-
const keyEnd
|
|
5441
|
-
const
|
|
5442
|
-
const
|
|
5414
|
+
const keyArrowDown = "ArrowDown";
|
|
5415
|
+
const keyArrowLeft = "ArrowLeft";
|
|
5416
|
+
const keyArrowRight = "ArrowRight";
|
|
5417
|
+
const keyArrowUp = "ArrowUp";
|
|
5418
|
+
const keyEnter = "Enter";
|
|
5419
|
+
const keyEscape = "Escape";
|
|
5420
|
+
const keyHome = "Home";
|
|
5421
|
+
const keyEnd = "End";
|
|
5422
|
+
const keyFunction2 = "F2";
|
|
5423
|
+
const keyPageDown = "PageDown";
|
|
5424
|
+
const keyPageUp = "PageUp";
|
|
5425
|
+
const keySpace = " ";
|
|
5426
|
+
const keyTab = "Tab";
|
|
5443
5427
|
const ArrowKeys = {
|
|
5444
|
-
ArrowDown: keyArrowDown
|
|
5445
|
-
ArrowLeft: keyArrowLeft
|
|
5446
|
-
ArrowRight: keyArrowRight
|
|
5447
|
-
ArrowUp: keyArrowUp
|
|
5428
|
+
ArrowDown: keyArrowDown,
|
|
5429
|
+
ArrowLeft: keyArrowLeft,
|
|
5430
|
+
ArrowRight: keyArrowRight,
|
|
5431
|
+
ArrowUp: keyArrowUp,
|
|
5448
5432
|
};
|
|
5449
5433
|
|
|
5450
5434
|
/**
|
|
5451
5435
|
* Expose ltr and rtl strings
|
|
5452
5436
|
*/
|
|
5453
|
-
var Direction
|
|
5437
|
+
var Direction;
|
|
5454
5438
|
(function (Direction) {
|
|
5455
5439
|
Direction["ltr"] = "ltr";
|
|
5456
5440
|
Direction["rtl"] = "rtl";
|
|
5457
|
-
})(Direction
|
|
5441
|
+
})(Direction || (Direction = {}));
|
|
5458
5442
|
|
|
5459
5443
|
/**
|
|
5460
5444
|
* This method keeps a given value within the bounds of a min and max value. If the value
|
|
@@ -5465,7 +5449,7 @@
|
|
|
5465
5449
|
* Ensures that a value is between a min and max value. If value is lower than min, min will be returned.
|
|
5466
5450
|
* If value is greater than max, max will be returned.
|
|
5467
5451
|
*/
|
|
5468
|
-
function limit
|
|
5452
|
+
function limit(min, max, value) {
|
|
5469
5453
|
return Math.min(Math.max(value, min), max);
|
|
5470
5454
|
}
|
|
5471
5455
|
/**
|
|
@@ -5480,16 +5464,16 @@
|
|
|
5480
5464
|
return min <= value && value < max;
|
|
5481
5465
|
}
|
|
5482
5466
|
|
|
5483
|
-
let uniqueIdCounter
|
|
5467
|
+
let uniqueIdCounter = 0;
|
|
5484
5468
|
/**
|
|
5485
5469
|
* Generates a unique ID based on incrementing a counter.
|
|
5486
5470
|
*/
|
|
5487
|
-
function uniqueId
|
|
5488
|
-
return `${prefix}${uniqueIdCounter
|
|
5471
|
+
function uniqueId(prefix = "") {
|
|
5472
|
+
return `${prefix}${uniqueIdCounter++}`;
|
|
5489
5473
|
}
|
|
5490
5474
|
|
|
5491
5475
|
/**
|
|
5492
|
-
* The template for the {@link @
|
|
5476
|
+
* The template for the {@link @ni/fast-foundation#(Anchor:class)} component.
|
|
5493
5477
|
* @public
|
|
5494
5478
|
*/
|
|
5495
5479
|
const anchorTemplate = (context, definition) => html `
|
|
@@ -5685,7 +5669,7 @@
|
|
|
5685
5669
|
applyMixins(Anchor$1, StartEnd, DelegatesARIALink);
|
|
5686
5670
|
|
|
5687
5671
|
/**
|
|
5688
|
-
* The template for the {@link @
|
|
5672
|
+
* The template for the {@link @ni/fast-foundation#(AnchoredRegion:class)} component.
|
|
5689
5673
|
* @public
|
|
5690
5674
|
*/
|
|
5691
5675
|
const anchoredRegionTemplate = (context, definition) => html `
|
|
@@ -5703,7 +5687,7 @@
|
|
|
5703
5687
|
*/
|
|
5704
5688
|
const getDirection = (rootNode) => {
|
|
5705
5689
|
const dirNode = rootNode.closest("[dir]");
|
|
5706
|
-
return dirNode !== null && dirNode.dir === "rtl" ? Direction
|
|
5690
|
+
return dirNode !== null && dirNode.dir === "rtl" ? Direction.rtl : Direction.ltr;
|
|
5707
5691
|
};
|
|
5708
5692
|
|
|
5709
5693
|
/**
|
|
@@ -5955,7 +5939,7 @@
|
|
|
5955
5939
|
this.baseVerticalOffset = 0;
|
|
5956
5940
|
this.pendingPositioningUpdate = false;
|
|
5957
5941
|
this.pendingReset = false;
|
|
5958
|
-
this.currentDirection = Direction
|
|
5942
|
+
this.currentDirection = Direction.ltr;
|
|
5959
5943
|
this.regionVisible = false;
|
|
5960
5944
|
// indicates that a layout update should occur even if geometry has not changed
|
|
5961
5945
|
// used to ensure some attribute changes are applied
|
|
@@ -6155,7 +6139,7 @@
|
|
|
6155
6139
|
this.initialize();
|
|
6156
6140
|
return;
|
|
6157
6141
|
}
|
|
6158
|
-
if (this.currentDirection === Direction
|
|
6142
|
+
if (this.currentDirection === Direction.ltr) {
|
|
6159
6143
|
dirCorrectedHorizontalDefaultPosition =
|
|
6160
6144
|
dirCorrectedHorizontalDefaultPosition === "start"
|
|
6161
6145
|
? "left"
|
|
@@ -6757,7 +6741,7 @@
|
|
|
6757
6741
|
], AnchoredRegion$1.prototype, "initialLayoutComplete", void 0);
|
|
6758
6742
|
|
|
6759
6743
|
/**
|
|
6760
|
-
* The template for the {@link @
|
|
6744
|
+
* The template for the {@link @ni/fast-foundation#(BreadcrumbItem:class)} component.
|
|
6761
6745
|
* @public
|
|
6762
6746
|
*/
|
|
6763
6747
|
const breadcrumbItemTemplate = (context, definition) => html `
|
|
@@ -6798,7 +6782,7 @@
|
|
|
6798
6782
|
applyMixins(BreadcrumbItem$1, StartEnd, DelegatesARIALink);
|
|
6799
6783
|
|
|
6800
6784
|
/**
|
|
6801
|
-
* The template for the {@link @
|
|
6785
|
+
* The template for the {@link @ni/fast-foundation#Breadcrumb} component.
|
|
6802
6786
|
* @public
|
|
6803
6787
|
*/
|
|
6804
6788
|
const breadcrumbTemplate = (context, definition) => html `
|
|
@@ -6879,7 +6863,7 @@
|
|
|
6879
6863
|
], Breadcrumb$1.prototype, "slottedBreadcrumbItems", void 0);
|
|
6880
6864
|
|
|
6881
6865
|
/**
|
|
6882
|
-
* The template for the {@link @
|
|
6866
|
+
* The template for the {@link @ni/fast-foundation#(Button:class)} component.
|
|
6883
6867
|
* @public
|
|
6884
6868
|
*/
|
|
6885
6869
|
const buttonTemplate = (context, definition) => html `
|
|
@@ -6943,37 +6927,6 @@
|
|
|
6943
6927
|
*/
|
|
6944
6928
|
function FormAssociated(BaseCtor) {
|
|
6945
6929
|
const C = class extends BaseCtor {
|
|
6946
|
-
constructor(...args) {
|
|
6947
|
-
super(...args);
|
|
6948
|
-
/**
|
|
6949
|
-
* Track whether the value has been changed from the initial value
|
|
6950
|
-
*/
|
|
6951
|
-
this.dirtyValue = false;
|
|
6952
|
-
/**
|
|
6953
|
-
* Sets the element's disabled state. A disabled element will not be included during form submission.
|
|
6954
|
-
*
|
|
6955
|
-
* @remarks
|
|
6956
|
-
* HTML Attribute: disabled
|
|
6957
|
-
*/
|
|
6958
|
-
this.disabled = false;
|
|
6959
|
-
/**
|
|
6960
|
-
* These are events that are still fired by the proxy
|
|
6961
|
-
* element based on user / programmatic interaction.
|
|
6962
|
-
*
|
|
6963
|
-
* The proxy implementation should be transparent to
|
|
6964
|
-
* the app author, so block these events from emitting.
|
|
6965
|
-
*/
|
|
6966
|
-
this.proxyEventsToBlock = ["change", "click"];
|
|
6967
|
-
this.proxyInitialized = false;
|
|
6968
|
-
this.required = false;
|
|
6969
|
-
this.initialValue = this.initialValue || "";
|
|
6970
|
-
if (!this.elementInternals) {
|
|
6971
|
-
// When elementInternals is not supported, formResetCallback is
|
|
6972
|
-
// bound to an event listener, so ensure the handler's `this`
|
|
6973
|
-
// context is correct.
|
|
6974
|
-
this.formResetCallback = this.formResetCallback.bind(this);
|
|
6975
|
-
}
|
|
6976
|
-
}
|
|
6977
6930
|
/**
|
|
6978
6931
|
* Must evaluate to true to enable elementInternals.
|
|
6979
6932
|
* Feature detects API support and resolve respectively
|
|
@@ -7152,6 +7105,37 @@
|
|
|
7152
7105
|
}
|
|
7153
7106
|
return internals;
|
|
7154
7107
|
}
|
|
7108
|
+
constructor(...args) {
|
|
7109
|
+
super(...args);
|
|
7110
|
+
/**
|
|
7111
|
+
* Track whether the value has been changed from the initial value
|
|
7112
|
+
*/
|
|
7113
|
+
this.dirtyValue = false;
|
|
7114
|
+
/**
|
|
7115
|
+
* Sets the element's disabled state. A disabled element will not be included during form submission.
|
|
7116
|
+
*
|
|
7117
|
+
* @remarks
|
|
7118
|
+
* HTML Attribute: disabled
|
|
7119
|
+
*/
|
|
7120
|
+
this.disabled = false;
|
|
7121
|
+
/**
|
|
7122
|
+
* These are events that are still fired by the proxy
|
|
7123
|
+
* element based on user / programmatic interaction.
|
|
7124
|
+
*
|
|
7125
|
+
* The proxy implementation should be transparent to
|
|
7126
|
+
* the app author, so block these events from emitting.
|
|
7127
|
+
*/
|
|
7128
|
+
this.proxyEventsToBlock = ["change", "click"];
|
|
7129
|
+
this.proxyInitialized = false;
|
|
7130
|
+
this.required = false;
|
|
7131
|
+
this.initialValue = this.initialValue || "";
|
|
7132
|
+
if (!this.elementInternals) {
|
|
7133
|
+
// When elementInternals is not supported, formResetCallback is
|
|
7134
|
+
// bound to an event listener, so ensure the handler's `this`
|
|
7135
|
+
// context is correct.
|
|
7136
|
+
this.formResetCallback = this.formResetCallback.bind(this);
|
|
7137
|
+
}
|
|
7138
|
+
}
|
|
7155
7139
|
/**
|
|
7156
7140
|
* @internal
|
|
7157
7141
|
*/
|
|
@@ -7279,7 +7263,7 @@
|
|
|
7279
7263
|
}
|
|
7280
7264
|
_keypressHandler(e) {
|
|
7281
7265
|
switch (e.key) {
|
|
7282
|
-
case keyEnter
|
|
7266
|
+
case keyEnter:
|
|
7283
7267
|
if (this.form instanceof HTMLFormElement) {
|
|
7284
7268
|
// Implicit submission
|
|
7285
7269
|
const defaultButton = this.form.querySelector("[type=submit]");
|
|
@@ -7311,33 +7295,6 @@
|
|
|
7311
7295
|
class C extends FormAssociated(BaseCtor) {
|
|
7312
7296
|
}
|
|
7313
7297
|
class D extends C {
|
|
7314
|
-
constructor(...args) {
|
|
7315
|
-
super(args);
|
|
7316
|
-
/**
|
|
7317
|
-
* Tracks whether the "checked" property has been changed.
|
|
7318
|
-
* This is necessary to provide consistent behavior with
|
|
7319
|
-
* normal input checkboxes
|
|
7320
|
-
*/
|
|
7321
|
-
this.dirtyChecked = false;
|
|
7322
|
-
/**
|
|
7323
|
-
* Provides the default checkedness of the input element
|
|
7324
|
-
* Passed down to proxy
|
|
7325
|
-
*
|
|
7326
|
-
* @public
|
|
7327
|
-
* @remarks
|
|
7328
|
-
* HTML Attribute: checked
|
|
7329
|
-
*/
|
|
7330
|
-
this.checkedAttribute = false;
|
|
7331
|
-
/**
|
|
7332
|
-
* The checked state of the control.
|
|
7333
|
-
*
|
|
7334
|
-
* @public
|
|
7335
|
-
*/
|
|
7336
|
-
this.checked = false;
|
|
7337
|
-
// Re-initialize dirtyChecked because initialization of other values
|
|
7338
|
-
// causes it to become true
|
|
7339
|
-
this.dirtyChecked = false;
|
|
7340
|
-
}
|
|
7341
7298
|
checkedAttributeChanged() {
|
|
7342
7299
|
this.defaultChecked = this.checkedAttribute;
|
|
7343
7300
|
}
|
|
@@ -7370,6 +7327,33 @@
|
|
|
7370
7327
|
currentCheckedChanged(prev, next) {
|
|
7371
7328
|
this.checked = this.currentChecked;
|
|
7372
7329
|
}
|
|
7330
|
+
constructor(...args) {
|
|
7331
|
+
super(args);
|
|
7332
|
+
/**
|
|
7333
|
+
* Tracks whether the "checked" property has been changed.
|
|
7334
|
+
* This is necessary to provide consistent behavior with
|
|
7335
|
+
* normal input checkboxes
|
|
7336
|
+
*/
|
|
7337
|
+
this.dirtyChecked = false;
|
|
7338
|
+
/**
|
|
7339
|
+
* Provides the default checkedness of the input element
|
|
7340
|
+
* Passed down to proxy
|
|
7341
|
+
*
|
|
7342
|
+
* @public
|
|
7343
|
+
* @remarks
|
|
7344
|
+
* HTML Attribute: checked
|
|
7345
|
+
*/
|
|
7346
|
+
this.checkedAttribute = false;
|
|
7347
|
+
/**
|
|
7348
|
+
* The checked state of the control.
|
|
7349
|
+
*
|
|
7350
|
+
* @public
|
|
7351
|
+
*/
|
|
7352
|
+
this.checked = false;
|
|
7353
|
+
// Re-initialize dirtyChecked because initialization of other values
|
|
7354
|
+
// causes it to become true
|
|
7355
|
+
this.dirtyChecked = false;
|
|
7356
|
+
}
|
|
7373
7357
|
updateForm() {
|
|
7374
7358
|
const value = this.checked ? this.value : null;
|
|
7375
7359
|
this.setFormValue(value, value);
|
|
@@ -7394,7 +7378,7 @@
|
|
|
7394
7378
|
class _Button extends FoundationElement {
|
|
7395
7379
|
}
|
|
7396
7380
|
/**
|
|
7397
|
-
* A form-associated base class for the {@link @
|
|
7381
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Button:class)} component.
|
|
7398
7382
|
*
|
|
7399
7383
|
* @internal
|
|
7400
7384
|
*/
|
|
@@ -7597,7 +7581,7 @@
|
|
|
7597
7581
|
class _Checkbox extends FoundationElement {
|
|
7598
7582
|
}
|
|
7599
7583
|
/**
|
|
7600
|
-
* A form-associated base class for the {@link @
|
|
7584
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Checkbox:class)} component.
|
|
7601
7585
|
*
|
|
7602
7586
|
* @internal
|
|
7603
7587
|
*/
|
|
@@ -7622,6 +7606,11 @@
|
|
|
7622
7606
|
* @public
|
|
7623
7607
|
*/
|
|
7624
7608
|
let Checkbox$1 = class Checkbox extends FormAssociatedCheckbox {
|
|
7609
|
+
readOnlyChanged() {
|
|
7610
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
7611
|
+
this.proxy.readOnly = this.readOnly;
|
|
7612
|
+
}
|
|
7613
|
+
}
|
|
7625
7614
|
constructor() {
|
|
7626
7615
|
super();
|
|
7627
7616
|
/**
|
|
@@ -7643,7 +7632,7 @@
|
|
|
7643
7632
|
return;
|
|
7644
7633
|
}
|
|
7645
7634
|
switch (e.key) {
|
|
7646
|
-
case keySpace
|
|
7635
|
+
case keySpace:
|
|
7647
7636
|
if (this.indeterminate) {
|
|
7648
7637
|
this.indeterminate = false;
|
|
7649
7638
|
}
|
|
@@ -7664,11 +7653,6 @@
|
|
|
7664
7653
|
};
|
|
7665
7654
|
this.proxy.setAttribute("type", "checkbox");
|
|
7666
7655
|
}
|
|
7667
|
-
readOnlyChanged() {
|
|
7668
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
7669
|
-
this.proxy.readOnly = this.readOnly;
|
|
7670
|
-
}
|
|
7671
|
-
}
|
|
7672
7656
|
};
|
|
7673
7657
|
__decorate([
|
|
7674
7658
|
attr({ attribute: "readonly", mode: "boolean" })
|
|
@@ -7687,7 +7671,7 @@
|
|
|
7687
7671
|
* @public
|
|
7688
7672
|
*/
|
|
7689
7673
|
function isListboxOption(el) {
|
|
7690
|
-
return (isHTMLElement
|
|
7674
|
+
return (isHTMLElement(el) &&
|
|
7691
7675
|
(el.getAttribute("role") === "option" ||
|
|
7692
7676
|
el instanceof HTMLOptionElement));
|
|
7693
7677
|
}
|
|
@@ -7703,43 +7687,6 @@
|
|
|
7703
7687
|
* @public
|
|
7704
7688
|
*/
|
|
7705
7689
|
class ListboxOption extends FoundationElement {
|
|
7706
|
-
constructor(text, value, defaultSelected, selected) {
|
|
7707
|
-
super();
|
|
7708
|
-
/**
|
|
7709
|
-
* The defaultSelected state of the option.
|
|
7710
|
-
* @public
|
|
7711
|
-
*/
|
|
7712
|
-
this.defaultSelected = false;
|
|
7713
|
-
/**
|
|
7714
|
-
* Tracks whether the "selected" property has been changed.
|
|
7715
|
-
* @internal
|
|
7716
|
-
*/
|
|
7717
|
-
this.dirtySelected = false;
|
|
7718
|
-
/**
|
|
7719
|
-
* The checked state of the control.
|
|
7720
|
-
*
|
|
7721
|
-
* @public
|
|
7722
|
-
*/
|
|
7723
|
-
this.selected = this.defaultSelected;
|
|
7724
|
-
/**
|
|
7725
|
-
* Track whether the value has been changed from the initial value
|
|
7726
|
-
*/
|
|
7727
|
-
this.dirtyValue = false;
|
|
7728
|
-
if (text) {
|
|
7729
|
-
this.textContent = text;
|
|
7730
|
-
}
|
|
7731
|
-
if (value) {
|
|
7732
|
-
this.initialValue = value;
|
|
7733
|
-
}
|
|
7734
|
-
if (defaultSelected) {
|
|
7735
|
-
this.defaultSelected = defaultSelected;
|
|
7736
|
-
}
|
|
7737
|
-
if (selected) {
|
|
7738
|
-
this.selected = selected;
|
|
7739
|
-
}
|
|
7740
|
-
this.proxy = new Option(`${this.textContent}`, this.initialValue, this.defaultSelected, this.selected);
|
|
7741
|
-
this.proxy.disabled = this.disabled;
|
|
7742
|
-
}
|
|
7743
7690
|
/**
|
|
7744
7691
|
* Updates the ariaChecked property when the checked property changes.
|
|
7745
7692
|
*
|
|
@@ -7830,6 +7777,43 @@
|
|
|
7830
7777
|
get form() {
|
|
7831
7778
|
return this.proxy ? this.proxy.form : null;
|
|
7832
7779
|
}
|
|
7780
|
+
constructor(text, value, defaultSelected, selected) {
|
|
7781
|
+
super();
|
|
7782
|
+
/**
|
|
7783
|
+
* The defaultSelected state of the option.
|
|
7784
|
+
* @public
|
|
7785
|
+
*/
|
|
7786
|
+
this.defaultSelected = false;
|
|
7787
|
+
/**
|
|
7788
|
+
* Tracks whether the "selected" property has been changed.
|
|
7789
|
+
* @internal
|
|
7790
|
+
*/
|
|
7791
|
+
this.dirtySelected = false;
|
|
7792
|
+
/**
|
|
7793
|
+
* The checked state of the control.
|
|
7794
|
+
*
|
|
7795
|
+
* @public
|
|
7796
|
+
*/
|
|
7797
|
+
this.selected = this.defaultSelected;
|
|
7798
|
+
/**
|
|
7799
|
+
* Track whether the value has been changed from the initial value
|
|
7800
|
+
*/
|
|
7801
|
+
this.dirtyValue = false;
|
|
7802
|
+
if (text) {
|
|
7803
|
+
this.textContent = text;
|
|
7804
|
+
}
|
|
7805
|
+
if (value) {
|
|
7806
|
+
this.initialValue = value;
|
|
7807
|
+
}
|
|
7808
|
+
if (defaultSelected) {
|
|
7809
|
+
this.defaultSelected = defaultSelected;
|
|
7810
|
+
}
|
|
7811
|
+
if (selected) {
|
|
7812
|
+
this.selected = selected;
|
|
7813
|
+
}
|
|
7814
|
+
this.proxy = new Option(`${this.textContent}`, this.initialValue, this.defaultSelected, this.selected);
|
|
7815
|
+
this.proxy.disabled = this.disabled;
|
|
7816
|
+
}
|
|
7833
7817
|
}
|
|
7834
7818
|
__decorate([
|
|
7835
7819
|
observable
|
|
@@ -8119,7 +8103,7 @@
|
|
|
8119
8103
|
const key = e.key;
|
|
8120
8104
|
switch (key) {
|
|
8121
8105
|
// Select the first available option
|
|
8122
|
-
case keyHome
|
|
8106
|
+
case keyHome: {
|
|
8123
8107
|
if (!e.shiftKey) {
|
|
8124
8108
|
e.preventDefault();
|
|
8125
8109
|
this.selectFirstOption();
|
|
@@ -8127,7 +8111,7 @@
|
|
|
8127
8111
|
break;
|
|
8128
8112
|
}
|
|
8129
8113
|
// Select the next selectable option
|
|
8130
|
-
case keyArrowDown
|
|
8114
|
+
case keyArrowDown: {
|
|
8131
8115
|
if (!e.shiftKey) {
|
|
8132
8116
|
e.preventDefault();
|
|
8133
8117
|
this.selectNextOption();
|
|
@@ -8135,7 +8119,7 @@
|
|
|
8135
8119
|
break;
|
|
8136
8120
|
}
|
|
8137
8121
|
// Select the previous selectable option
|
|
8138
|
-
case keyArrowUp
|
|
8122
|
+
case keyArrowUp: {
|
|
8139
8123
|
if (!e.shiftKey) {
|
|
8140
8124
|
e.preventDefault();
|
|
8141
8125
|
this.selectPreviousOption();
|
|
@@ -8143,20 +8127,20 @@
|
|
|
8143
8127
|
break;
|
|
8144
8128
|
}
|
|
8145
8129
|
// Select the last available option
|
|
8146
|
-
case keyEnd
|
|
8130
|
+
case keyEnd: {
|
|
8147
8131
|
e.preventDefault();
|
|
8148
8132
|
this.selectLastOption();
|
|
8149
8133
|
break;
|
|
8150
8134
|
}
|
|
8151
|
-
case keyTab
|
|
8135
|
+
case keyTab: {
|
|
8152
8136
|
this.focusAndScrollOptionIntoView();
|
|
8153
8137
|
return true;
|
|
8154
8138
|
}
|
|
8155
|
-
case keyEnter
|
|
8156
|
-
case keyEscape
|
|
8139
|
+
case keyEnter:
|
|
8140
|
+
case keyEscape: {
|
|
8157
8141
|
return true;
|
|
8158
8142
|
}
|
|
8159
|
-
case keySpace
|
|
8143
|
+
case keySpace: {
|
|
8160
8144
|
if (this.typeaheadExpired) {
|
|
8161
8145
|
return true;
|
|
8162
8146
|
}
|
|
@@ -8252,7 +8236,7 @@
|
|
|
8252
8236
|
*/
|
|
8253
8237
|
selectLastOption() {
|
|
8254
8238
|
if (!this.disabled) {
|
|
8255
|
-
this.selectedIndex = findLastIndex
|
|
8239
|
+
this.selectedIndex = findLastIndex(this.options, o => !o.disabled);
|
|
8256
8240
|
}
|
|
8257
8241
|
}
|
|
8258
8242
|
/**
|
|
@@ -8315,7 +8299,7 @@
|
|
|
8315
8299
|
const setSize = `${this.options.length}`;
|
|
8316
8300
|
this.options.forEach((option, index) => {
|
|
8317
8301
|
if (!option.id) {
|
|
8318
|
-
option.id = uniqueId
|
|
8302
|
+
option.id = uniqueId("option-");
|
|
8319
8303
|
}
|
|
8320
8304
|
option.ariaPosInSet = `${index + 1}`;
|
|
8321
8305
|
option.ariaSetSize = setSize;
|
|
@@ -8479,7 +8463,7 @@
|
|
|
8479
8463
|
*
|
|
8480
8464
|
* @internal
|
|
8481
8465
|
*/
|
|
8482
|
-
this.listboxId = uniqueId
|
|
8466
|
+
this.listboxId = uniqueId("listbox-");
|
|
8483
8467
|
/**
|
|
8484
8468
|
* The max height for the listbox when opened.
|
|
8485
8469
|
*
|
|
@@ -8830,7 +8814,7 @@
|
|
|
8830
8814
|
*/
|
|
8831
8815
|
selectedIndexChanged(prev, next) {
|
|
8832
8816
|
if (this.$fastController.isConnected) {
|
|
8833
|
-
next = limit
|
|
8817
|
+
next = limit(-1, this.options.length - 1, next);
|
|
8834
8818
|
// we only want to call the super method when the selectedIndex is in range
|
|
8835
8819
|
if (next !== this.selectedIndex) {
|
|
8836
8820
|
this.selectedIndex = next;
|
|
@@ -9111,6 +9095,13 @@
|
|
|
9111
9095
|
* Handles setting properties for a FASTElement using an HTMLStyleElement
|
|
9112
9096
|
*/
|
|
9113
9097
|
class StyleElementStyleSheetTarget {
|
|
9098
|
+
targetChanged() {
|
|
9099
|
+
if (this.target !== null) {
|
|
9100
|
+
for (const [key, value] of this.store.entries()) {
|
|
9101
|
+
this.target.setProperty(key, value);
|
|
9102
|
+
}
|
|
9103
|
+
}
|
|
9104
|
+
}
|
|
9114
9105
|
constructor(target) {
|
|
9115
9106
|
this.store = new Map();
|
|
9116
9107
|
this.target = null;
|
|
@@ -9120,13 +9111,6 @@
|
|
|
9120
9111
|
Observable.getNotifier(controller).subscribe(this, "isConnected");
|
|
9121
9112
|
this.handleChange(controller, "isConnected");
|
|
9122
9113
|
}
|
|
9123
|
-
targetChanged() {
|
|
9124
|
-
if (this.target !== null) {
|
|
9125
|
-
for (const [key, value] of this.store.entries()) {
|
|
9126
|
-
this.target.setProperty(key, value);
|
|
9127
|
-
}
|
|
9128
|
-
}
|
|
9129
|
-
}
|
|
9130
9114
|
setProperty(name, value) {
|
|
9131
9115
|
this.store.set(name, value);
|
|
9132
9116
|
DOM.queueUpdate(() => {
|
|
@@ -9274,18 +9258,6 @@
|
|
|
9274
9258
|
* Implementation of {@link (DesignToken:interface)}
|
|
9275
9259
|
*/
|
|
9276
9260
|
class DesignTokenImpl extends CSSDirective {
|
|
9277
|
-
constructor(configuration) {
|
|
9278
|
-
super();
|
|
9279
|
-
this.subscribers = new WeakMap();
|
|
9280
|
-
this._appliedTo = new Set();
|
|
9281
|
-
this.name = configuration.name;
|
|
9282
|
-
if (configuration.cssCustomPropertyName !== null) {
|
|
9283
|
-
this.cssCustomProperty = `--${configuration.cssCustomPropertyName}`;
|
|
9284
|
-
this.cssVar = `var(${this.cssCustomProperty})`;
|
|
9285
|
-
}
|
|
9286
|
-
this.id = DesignTokenImpl.uniqueId();
|
|
9287
|
-
DesignTokenImpl.tokensById.set(this.id, this);
|
|
9288
|
-
}
|
|
9289
9261
|
get appliedTo() {
|
|
9290
9262
|
return [...this._appliedTo];
|
|
9291
9263
|
}
|
|
@@ -9317,6 +9289,18 @@
|
|
|
9317
9289
|
return (this.subscribers.get(target) ||
|
|
9318
9290
|
(this.subscribers.set(target, new Set()) && this.subscribers.get(target)));
|
|
9319
9291
|
}
|
|
9292
|
+
constructor(configuration) {
|
|
9293
|
+
super();
|
|
9294
|
+
this.subscribers = new WeakMap();
|
|
9295
|
+
this._appliedTo = new Set();
|
|
9296
|
+
this.name = configuration.name;
|
|
9297
|
+
if (configuration.cssCustomPropertyName !== null) {
|
|
9298
|
+
this.cssCustomProperty = `--${configuration.cssCustomPropertyName}`;
|
|
9299
|
+
this.cssVar = `var(${this.cssCustomProperty})`;
|
|
9300
|
+
}
|
|
9301
|
+
this.id = DesignTokenImpl.uniqueId();
|
|
9302
|
+
DesignTokenImpl.tokensById.set(this.id, this);
|
|
9303
|
+
}
|
|
9320
9304
|
createCSS() {
|
|
9321
9305
|
return this.cssVar || "";
|
|
9322
9306
|
}
|
|
@@ -9485,52 +9469,6 @@
|
|
|
9485
9469
|
* inheritance structures.
|
|
9486
9470
|
*/
|
|
9487
9471
|
class DesignTokenNode {
|
|
9488
|
-
constructor(target) {
|
|
9489
|
-
this.target = target;
|
|
9490
|
-
/**
|
|
9491
|
-
* Stores all resolved token values for a node
|
|
9492
|
-
*/
|
|
9493
|
-
this.store = new Store();
|
|
9494
|
-
/**
|
|
9495
|
-
* All children assigned to the node
|
|
9496
|
-
*/
|
|
9497
|
-
this.children = [];
|
|
9498
|
-
/**
|
|
9499
|
-
* All values explicitly assigned to the node in their raw form
|
|
9500
|
-
*/
|
|
9501
|
-
this.assignedValues = new Map();
|
|
9502
|
-
/**
|
|
9503
|
-
* Tokens currently being reflected to CSS custom properties
|
|
9504
|
-
*/
|
|
9505
|
-
this.reflecting = new Set();
|
|
9506
|
-
/**
|
|
9507
|
-
* Binding observers for assigned and inherited derived values.
|
|
9508
|
-
*/
|
|
9509
|
-
this.bindingObservers = new Map();
|
|
9510
|
-
/**
|
|
9511
|
-
* Emits notifications to token when token values
|
|
9512
|
-
* change the DesignTokenNode
|
|
9513
|
-
*/
|
|
9514
|
-
this.tokenValueChangeHandler = {
|
|
9515
|
-
handleChange: (source, arg) => {
|
|
9516
|
-
const token = DesignTokenImpl.getTokenById(arg);
|
|
9517
|
-
if (token) {
|
|
9518
|
-
// Notify any token subscribers
|
|
9519
|
-
token.notify(this.target);
|
|
9520
|
-
this.updateCSSTokenReflection(source, token);
|
|
9521
|
-
}
|
|
9522
|
-
},
|
|
9523
|
-
};
|
|
9524
|
-
nodeCache.set(target, this);
|
|
9525
|
-
// Map store change notifications to token change notifications
|
|
9526
|
-
Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler);
|
|
9527
|
-
if (target instanceof FASTElement) {
|
|
9528
|
-
target.$fastController.addBehaviors([this]);
|
|
9529
|
-
}
|
|
9530
|
-
else if (target.isConnected) {
|
|
9531
|
-
this.bind();
|
|
9532
|
-
}
|
|
9533
|
-
}
|
|
9534
9472
|
/**
|
|
9535
9473
|
* Returns a DesignTokenNode for an element.
|
|
9536
9474
|
* Creates a new instance if one does not already exist for a node,
|
|
@@ -9610,6 +9548,52 @@
|
|
|
9610
9548
|
}
|
|
9611
9549
|
}
|
|
9612
9550
|
}
|
|
9551
|
+
constructor(target) {
|
|
9552
|
+
this.target = target;
|
|
9553
|
+
/**
|
|
9554
|
+
* Stores all resolved token values for a node
|
|
9555
|
+
*/
|
|
9556
|
+
this.store = new Store();
|
|
9557
|
+
/**
|
|
9558
|
+
* All children assigned to the node
|
|
9559
|
+
*/
|
|
9560
|
+
this.children = [];
|
|
9561
|
+
/**
|
|
9562
|
+
* All values explicitly assigned to the node in their raw form
|
|
9563
|
+
*/
|
|
9564
|
+
this.assignedValues = new Map();
|
|
9565
|
+
/**
|
|
9566
|
+
* Tokens currently being reflected to CSS custom properties
|
|
9567
|
+
*/
|
|
9568
|
+
this.reflecting = new Set();
|
|
9569
|
+
/**
|
|
9570
|
+
* Binding observers for assigned and inherited derived values.
|
|
9571
|
+
*/
|
|
9572
|
+
this.bindingObservers = new Map();
|
|
9573
|
+
/**
|
|
9574
|
+
* Emits notifications to token when token values
|
|
9575
|
+
* change the DesignTokenNode
|
|
9576
|
+
*/
|
|
9577
|
+
this.tokenValueChangeHandler = {
|
|
9578
|
+
handleChange: (source, arg) => {
|
|
9579
|
+
const token = DesignTokenImpl.getTokenById(arg);
|
|
9580
|
+
if (token) {
|
|
9581
|
+
// Notify any token subscribers
|
|
9582
|
+
token.notify(this.target);
|
|
9583
|
+
this.updateCSSTokenReflection(source, token);
|
|
9584
|
+
}
|
|
9585
|
+
},
|
|
9586
|
+
};
|
|
9587
|
+
nodeCache.set(target, this);
|
|
9588
|
+
// Map store change notifications to token change notifications
|
|
9589
|
+
Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler);
|
|
9590
|
+
if (target instanceof FASTElement) {
|
|
9591
|
+
target.$fastController.addBehaviors([this]);
|
|
9592
|
+
}
|
|
9593
|
+
else if (target.isConnected) {
|
|
9594
|
+
this.bind();
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9613
9597
|
/**
|
|
9614
9598
|
* Checks if a token has been assigned an explicit value the node.
|
|
9615
9599
|
* @param token - the token to check.
|
|
@@ -10126,26 +10110,58 @@
|
|
|
10126
10110
|
/* eslint-enable @typescript-eslint/no-non-null-assertion */
|
|
10127
10111
|
|
|
10128
10112
|
/*!
|
|
10129
|
-
* tabbable
|
|
10113
|
+
* tabbable 6.2.0
|
|
10130
10114
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
10131
10115
|
*/
|
|
10132
|
-
|
|
10116
|
+
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
10117
|
+
// `:not([inert], [inert] *)` (Feb 2023)
|
|
10118
|
+
// CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
|
|
10119
|
+
// the entire query to fail, resulting in no nodes found, which will break a lot
|
|
10120
|
+
// of things... so we have to rely on JS to identify nodes inside an inert container
|
|
10121
|
+
var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
|
|
10133
10122
|
var NoElement = typeof Element === 'undefined';
|
|
10134
10123
|
var matches$1 = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
10135
10124
|
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
10136
|
-
|
|
10125
|
+
var _element$getRootNode;
|
|
10126
|
+
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
10137
10127
|
} : function (element) {
|
|
10138
|
-
return element.ownerDocument;
|
|
10128
|
+
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
10139
10129
|
};
|
|
10140
10130
|
|
|
10131
|
+
/**
|
|
10132
|
+
* Determines if a node is inert or in an inert ancestor.
|
|
10133
|
+
* @param {Element} [node]
|
|
10134
|
+
* @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
|
|
10135
|
+
* see if any of them are inert. If false, only `node` itself is considered.
|
|
10136
|
+
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
10137
|
+
* False if `node` is falsy.
|
|
10138
|
+
*/
|
|
10139
|
+
var isInert = function isInert(node, lookUp) {
|
|
10140
|
+
var _node$getAttribute;
|
|
10141
|
+
if (lookUp === void 0) {
|
|
10142
|
+
lookUp = true;
|
|
10143
|
+
}
|
|
10144
|
+
// CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
|
|
10145
|
+
// JS API property; we have to check the attribute, which can either be empty or 'true';
|
|
10146
|
+
// if it's `null` (not specified) or 'false', it's an active element
|
|
10147
|
+
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
|
|
10148
|
+
var inert = inertAtt === '' || inertAtt === 'true';
|
|
10149
|
+
|
|
10150
|
+
// NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
|
|
10151
|
+
// if it weren't for `matches()` not being a function on shadow roots; the following
|
|
10152
|
+
// code works for any kind of node
|
|
10153
|
+
// CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
|
|
10154
|
+
// so it likely would not support `:is([inert] *)` either...
|
|
10155
|
+
var result = inert || lookUp && node && isInert(node.parentNode); // recursive
|
|
10156
|
+
|
|
10157
|
+
return result;
|
|
10158
|
+
};
|
|
10141
10159
|
var isInput = function isInput(node) {
|
|
10142
10160
|
return node.tagName === 'INPUT';
|
|
10143
10161
|
};
|
|
10144
|
-
|
|
10145
10162
|
var isHiddenInput = function isHiddenInput(node) {
|
|
10146
10163
|
return isInput(node) && node.type === 'hidden';
|
|
10147
10164
|
};
|
|
10148
|
-
|
|
10149
10165
|
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
10150
10166
|
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
10151
10167
|
return child.tagName === 'SUMMARY';
|
|
@@ -10153,18 +10169,62 @@
|
|
|
10153
10169
|
return r;
|
|
10154
10170
|
};
|
|
10155
10171
|
|
|
10172
|
+
// determines if a node is ultimately attached to the window's document
|
|
10173
|
+
var isNodeAttached = function isNodeAttached(node) {
|
|
10174
|
+
var _nodeRoot;
|
|
10175
|
+
// The root node is the shadow root if the node is in a shadow DOM; some document otherwise
|
|
10176
|
+
// (but NOT _the_ document; see second 'If' comment below for more).
|
|
10177
|
+
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
10178
|
+
// is attached, and the one we need to check if it's in the document or not (because the
|
|
10179
|
+
// shadow, and all nodes it contains, is never considered in the document since shadows
|
|
10180
|
+
// behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
|
|
10181
|
+
// is hidden, or is not in the document itself but is detached, it will affect the shadow's
|
|
10182
|
+
// visibility, including all the nodes it contains). The host could be any normal node,
|
|
10183
|
+
// or a custom element (i.e. web component). Either way, that's the one that is considered
|
|
10184
|
+
// part of the document, not the shadow root, nor any of its children (i.e. the node being
|
|
10185
|
+
// tested).
|
|
10186
|
+
// To further complicate things, we have to look all the way up until we find a shadow HOST
|
|
10187
|
+
// that is attached (or find none) because the node might be in nested shadows...
|
|
10188
|
+
// If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
|
|
10189
|
+
// document (per the docs) and while it's a Document-type object, that document does not
|
|
10190
|
+
// appear to be the same as the node's `ownerDocument` for some reason, so it's safer
|
|
10191
|
+
// to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
|
|
10192
|
+
// using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
|
|
10193
|
+
// node is actually detached.
|
|
10194
|
+
// NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
|
|
10195
|
+
// if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
|
|
10196
|
+
// from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
|
|
10197
|
+
// `ownerDocument` will be `null`, hence the optional chaining on it.
|
|
10198
|
+
var nodeRoot = node && getRootNode(node);
|
|
10199
|
+
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
10200
|
+
|
|
10201
|
+
// in some cases, a detached node will return itself as the root instead of a document or
|
|
10202
|
+
// shadow root object, in which case, we shouldn't try to look further up the host chain
|
|
10203
|
+
var attached = false;
|
|
10204
|
+
if (nodeRoot && nodeRoot !== node) {
|
|
10205
|
+
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
10206
|
+
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
10207
|
+
while (!attached && nodeRootHost) {
|
|
10208
|
+
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
10209
|
+
// since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
|
|
10210
|
+
// which means we need to get the host's host and check if that parent host is contained
|
|
10211
|
+
// in (i.e. attached to) the document
|
|
10212
|
+
nodeRoot = getRootNode(nodeRootHost);
|
|
10213
|
+
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
10214
|
+
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
10215
|
+
}
|
|
10216
|
+
}
|
|
10217
|
+
return attached;
|
|
10218
|
+
};
|
|
10156
10219
|
var isZeroArea = function isZeroArea(node) {
|
|
10157
10220
|
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10221
|
+
width = _node$getBoundingClie.width,
|
|
10222
|
+
height = _node$getBoundingClie.height;
|
|
10161
10223
|
return width === 0 && height === 0;
|
|
10162
10224
|
};
|
|
10163
|
-
|
|
10164
10225
|
var isHidden = function isHidden(node, _ref) {
|
|
10165
10226
|
var displayCheck = _ref.displayCheck,
|
|
10166
|
-
|
|
10167
|
-
|
|
10227
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
10168
10228
|
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
10169
10229
|
// (see notes about this further down), which means we will consider it visible
|
|
10170
10230
|
// (this is legacy behavior from a very long way back)
|
|
@@ -10173,44 +10233,19 @@
|
|
|
10173
10233
|
if (getComputedStyle(node).visibility === 'hidden') {
|
|
10174
10234
|
return true;
|
|
10175
10235
|
}
|
|
10176
|
-
|
|
10177
10236
|
var isDirectSummary = matches$1.call(node, 'details>summary:first-of-type');
|
|
10178
10237
|
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
10179
|
-
|
|
10180
10238
|
if (matches$1.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
10181
10239
|
return true;
|
|
10182
|
-
}
|
|
10183
|
-
|
|
10184
|
-
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
10185
|
-
// is attached, and the one we need to check if it's in the document or not (because the
|
|
10186
|
-
// shadow, and all nodes it contains, is never considered in the document since shadows
|
|
10187
|
-
// behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
|
|
10188
|
-
// is hidden, or is not in the document itself but is detached, it will affect the shadow's
|
|
10189
|
-
// visibility, including all the nodes it contains). The host could be any normal node,
|
|
10190
|
-
// or a custom element (i.e. web component). Either way, that's the one that is considered
|
|
10191
|
-
// part of the document, not the shadow root, nor any of its children (i.e. the node being
|
|
10192
|
-
// tested).
|
|
10193
|
-
// If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
|
|
10194
|
-
// document (per the docs) and while it's a Document-type object, that document does not
|
|
10195
|
-
// appear to be the same as the node's `ownerDocument` for some reason, so it's safer
|
|
10196
|
-
// to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
|
|
10197
|
-
// using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
|
|
10198
|
-
// node is actually detached.
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
var nodeRootHost = getRootNode(node).host;
|
|
10202
|
-
var nodeIsAttached = (nodeRootHost === null || nodeRootHost === void 0 ? void 0 : nodeRootHost.ownerDocument.contains(nodeRootHost)) || node.ownerDocument.contains(node);
|
|
10203
|
-
|
|
10204
|
-
if (!displayCheck || displayCheck === 'full') {
|
|
10240
|
+
}
|
|
10241
|
+
if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
|
|
10205
10242
|
if (typeof getShadowRoot === 'function') {
|
|
10206
10243
|
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
10207
10244
|
// 'non-zero-area' fallback
|
|
10208
10245
|
var originalNode = node;
|
|
10209
|
-
|
|
10210
10246
|
while (node) {
|
|
10211
10247
|
var parentElement = node.parentElement;
|
|
10212
10248
|
var rootNode = getRootNode(node);
|
|
10213
|
-
|
|
10214
10249
|
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
10215
10250
|
) {
|
|
10216
10251
|
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
@@ -10227,25 +10262,27 @@
|
|
|
10227
10262
|
node = parentElement;
|
|
10228
10263
|
}
|
|
10229
10264
|
}
|
|
10230
|
-
|
|
10231
10265
|
node = originalNode;
|
|
10232
|
-
}
|
|
10266
|
+
}
|
|
10267
|
+
// else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
10233
10268
|
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
10234
10269
|
// it might be a falsy value, which means shadow DOM support is disabled
|
|
10270
|
+
|
|
10235
10271
|
// Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
|
|
10236
10272
|
// now we can just test to see if it would normally be visible or not, provided it's
|
|
10237
10273
|
// attached to the main document.
|
|
10238
10274
|
// NOTE: We must consider case where node is inside a shadow DOM and given directly to
|
|
10239
10275
|
// `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
|
|
10240
10276
|
|
|
10241
|
-
|
|
10242
|
-
if (nodeIsAttached) {
|
|
10277
|
+
if (isNodeAttached(node)) {
|
|
10243
10278
|
// this works wherever the node is: if there's at least one client rect, it's
|
|
10244
10279
|
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
10245
10280
|
// node itself is hidden in place of its contents; and there's no need to search
|
|
10246
10281
|
// up the hierarchy either
|
|
10247
10282
|
return !node.getClientRects().length;
|
|
10248
|
-
}
|
|
10283
|
+
}
|
|
10284
|
+
|
|
10285
|
+
// Else, the node isn't attached to the document, which means the `getClientRects()`
|
|
10249
10286
|
// API will __always__ return zero rects (this can happen, for example, if React
|
|
10250
10287
|
// is used to render nodes onto a detached tree, as confirmed in this thread:
|
|
10251
10288
|
// https://github.com/facebook/react/issues/9117#issuecomment-284228870)
|
|
@@ -10258,7 +10295,13 @@
|
|
|
10258
10295
|
// APIs on nodes in detached containers has actually implicitly used tabbable in what
|
|
10259
10296
|
// was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
|
|
10260
10297
|
// considering __everything__ to be visible because of the innability to determine styles.
|
|
10261
|
-
|
|
10298
|
+
//
|
|
10299
|
+
// v6.0.0: As of this major release, the default 'full' option __no longer treats detached
|
|
10300
|
+
// nodes as visible with the 'none' fallback.__
|
|
10301
|
+
if (displayCheck !== 'legacy-full') {
|
|
10302
|
+
return true; // hidden
|
|
10303
|
+
}
|
|
10304
|
+
// else, fallback to 'none' mode and consider the node visible
|
|
10262
10305
|
} else if (displayCheck === 'non-zero-area') {
|
|
10263
10306
|
// NOTE: Even though this tests that the node's client rect is non-zero to determine
|
|
10264
10307
|
// whether it's displayed, and that a detached node will __always__ have a zero-area
|
|
@@ -10266,67 +10309,64 @@
|
|
|
10266
10309
|
// this mode, we do want to consider nodes that have a zero area to be hidden at all
|
|
10267
10310
|
// times, and that includes attached or not.
|
|
10268
10311
|
return isZeroArea(node);
|
|
10269
|
-
}
|
|
10270
|
-
|
|
10312
|
+
}
|
|
10271
10313
|
|
|
10314
|
+
// visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
|
|
10315
|
+
// it's visible
|
|
10272
10316
|
return false;
|
|
10273
|
-
};
|
|
10317
|
+
};
|
|
10318
|
+
|
|
10319
|
+
// form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
10274
10320
|
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
10275
10321
|
// fieldset
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
10322
|
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
10279
10323
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
10280
|
-
var parentNode = node.parentElement;
|
|
10281
|
-
|
|
10324
|
+
var parentNode = node.parentElement;
|
|
10325
|
+
// check if `node` is contained in a disabled <fieldset>
|
|
10282
10326
|
while (parentNode) {
|
|
10283
10327
|
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
10284
10328
|
// look for the first <legend> among the children of the disabled <fieldset>
|
|
10285
10329
|
for (var i = 0; i < parentNode.children.length; i++) {
|
|
10286
|
-
var child = parentNode.children.item(i);
|
|
10287
|
-
|
|
10330
|
+
var child = parentNode.children.item(i);
|
|
10331
|
+
// when the first <legend> (in document order) is found
|
|
10288
10332
|
if (child.tagName === 'LEGEND') {
|
|
10289
10333
|
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
10290
10334
|
// return whether `node` is a descendant of its first <legend>
|
|
10291
10335
|
return matches$1.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
10292
10336
|
}
|
|
10293
|
-
}
|
|
10294
|
-
|
|
10295
|
-
|
|
10337
|
+
}
|
|
10338
|
+
// the disabled <fieldset> containing `node` has no <legend>
|
|
10296
10339
|
return true;
|
|
10297
10340
|
}
|
|
10298
|
-
|
|
10299
10341
|
parentNode = parentNode.parentElement;
|
|
10300
10342
|
}
|
|
10301
|
-
}
|
|
10302
|
-
// enabled/disabled state
|
|
10303
|
-
|
|
10343
|
+
}
|
|
10304
10344
|
|
|
10345
|
+
// else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
10346
|
+
// enabled/disabled state
|
|
10305
10347
|
return false;
|
|
10306
10348
|
};
|
|
10307
|
-
|
|
10308
10349
|
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
10309
|
-
if (node.disabled ||
|
|
10350
|
+
if (node.disabled ||
|
|
10351
|
+
// we must do an inert look up to filter out any elements inside an inert ancestor
|
|
10352
|
+
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
10353
|
+
// note related to `candidateSelectors`)
|
|
10354
|
+
isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
|
|
10355
|
+
// For a details element with a summary, the summary element gets the focus
|
|
10310
10356
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
10311
10357
|
return false;
|
|
10312
10358
|
}
|
|
10313
|
-
|
|
10314
10359
|
return true;
|
|
10315
10360
|
};
|
|
10316
|
-
|
|
10317
10361
|
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
10318
|
-
|
|
10319
10362
|
var isFocusable = function isFocusable(node, options) {
|
|
10320
10363
|
options = options || {};
|
|
10321
|
-
|
|
10322
10364
|
if (!node) {
|
|
10323
10365
|
throw new Error('No node provided');
|
|
10324
10366
|
}
|
|
10325
|
-
|
|
10326
10367
|
if (matches$1.call(node, focusableCandidateSelector) === false) {
|
|
10327
10368
|
return false;
|
|
10328
10369
|
}
|
|
10329
|
-
|
|
10330
10370
|
return isNodeMatchingSelectorFocusable(options, node);
|
|
10331
10371
|
};
|
|
10332
10372
|
|
|
@@ -10612,35 +10652,35 @@
|
|
|
10612
10652
|
this.shouldSkipFocus = false;
|
|
10613
10653
|
switch (key) {
|
|
10614
10654
|
// Select the first available option
|
|
10615
|
-
case keyHome
|
|
10655
|
+
case keyHome: {
|
|
10616
10656
|
this.checkFirstOption(shiftKey);
|
|
10617
10657
|
return;
|
|
10618
10658
|
}
|
|
10619
10659
|
// Select the next selectable option
|
|
10620
|
-
case keyArrowDown
|
|
10660
|
+
case keyArrowDown: {
|
|
10621
10661
|
this.checkNextOption(shiftKey);
|
|
10622
10662
|
return;
|
|
10623
10663
|
}
|
|
10624
10664
|
// Select the previous selectable option
|
|
10625
|
-
case keyArrowUp
|
|
10665
|
+
case keyArrowUp: {
|
|
10626
10666
|
this.checkPreviousOption(shiftKey);
|
|
10627
10667
|
return;
|
|
10628
10668
|
}
|
|
10629
10669
|
// Select the last available option
|
|
10630
|
-
case keyEnd
|
|
10670
|
+
case keyEnd: {
|
|
10631
10671
|
this.checkLastOption(shiftKey);
|
|
10632
10672
|
return;
|
|
10633
10673
|
}
|
|
10634
|
-
case keyTab
|
|
10674
|
+
case keyTab: {
|
|
10635
10675
|
this.focusAndScrollOptionIntoView();
|
|
10636
10676
|
return true;
|
|
10637
10677
|
}
|
|
10638
|
-
case keyEscape
|
|
10678
|
+
case keyEscape: {
|
|
10639
10679
|
this.uncheckAllOptions();
|
|
10640
10680
|
this.checkActiveIndex();
|
|
10641
10681
|
return true;
|
|
10642
10682
|
}
|
|
10643
|
-
case keySpace
|
|
10683
|
+
case keySpace: {
|
|
10644
10684
|
e.preventDefault();
|
|
10645
10685
|
if (this.typeAheadExpired) {
|
|
10646
10686
|
this.toggleSelectedForAllCheckedOptions();
|
|
@@ -10845,7 +10885,7 @@
|
|
|
10845
10885
|
*
|
|
10846
10886
|
* @internal
|
|
10847
10887
|
*/
|
|
10848
|
-
this.currentDirection = Direction
|
|
10888
|
+
this.currentDirection = Direction.ltr;
|
|
10849
10889
|
this.focusSubmenuOnLoad = false;
|
|
10850
10890
|
/**
|
|
10851
10891
|
* @internal
|
|
@@ -10855,15 +10895,15 @@
|
|
|
10855
10895
|
return false;
|
|
10856
10896
|
}
|
|
10857
10897
|
switch (e.key) {
|
|
10858
|
-
case keyEnter
|
|
10859
|
-
case keySpace
|
|
10898
|
+
case keyEnter:
|
|
10899
|
+
case keySpace:
|
|
10860
10900
|
this.invoke();
|
|
10861
10901
|
return false;
|
|
10862
|
-
case keyArrowRight
|
|
10902
|
+
case keyArrowRight:
|
|
10863
10903
|
//open/focus on submenu
|
|
10864
10904
|
this.expandAndFocus();
|
|
10865
10905
|
return false;
|
|
10866
|
-
case keyArrowLeft
|
|
10906
|
+
case keyArrowLeft:
|
|
10867
10907
|
//close submenu
|
|
10868
10908
|
if (this.expanded) {
|
|
10869
10909
|
this.expanded = false;
|
|
@@ -11046,7 +11086,7 @@
|
|
|
11046
11086
|
applyMixins(MenuItem$1, StartEnd);
|
|
11047
11087
|
|
|
11048
11088
|
/**
|
|
11049
|
-
* Generates a template for the {@link @
|
|
11089
|
+
* Generates a template for the {@link @ni/fast-foundation#(MenuItem:class)} component using
|
|
11050
11090
|
* the provided prefix.
|
|
11051
11091
|
*
|
|
11052
11092
|
* @public
|
|
@@ -11123,7 +11163,7 @@
|
|
|
11123
11163
|
class _TextField extends FoundationElement {
|
|
11124
11164
|
}
|
|
11125
11165
|
/**
|
|
11126
|
-
* A form-associated base class for the {@link @
|
|
11166
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
11127
11167
|
*
|
|
11128
11168
|
* @internal
|
|
11129
11169
|
*/
|
|
@@ -11324,7 +11364,7 @@
|
|
|
11324
11364
|
class _NumberField extends FoundationElement {
|
|
11325
11365
|
}
|
|
11326
11366
|
/**
|
|
11327
|
-
* A form-associated base class for the {@link @
|
|
11367
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
11328
11368
|
*
|
|
11329
11369
|
* @internal
|
|
11330
11370
|
*/
|
|
@@ -11561,10 +11601,10 @@
|
|
|
11561
11601
|
handleKeyDown(e) {
|
|
11562
11602
|
const key = e.key;
|
|
11563
11603
|
switch (key) {
|
|
11564
|
-
case keyArrowUp
|
|
11604
|
+
case keyArrowUp:
|
|
11565
11605
|
this.stepUp();
|
|
11566
11606
|
return false;
|
|
11567
|
-
case keyArrowDown
|
|
11607
|
+
case keyArrowDown:
|
|
11568
11608
|
this.stepDown();
|
|
11569
11609
|
return false;
|
|
11570
11610
|
}
|
|
@@ -11638,7 +11678,7 @@
|
|
|
11638
11678
|
* @remarks
|
|
11639
11679
|
* HTML Attribute: orientation
|
|
11640
11680
|
*/
|
|
11641
|
-
this.orientation = Orientation
|
|
11681
|
+
this.orientation = Orientation.horizontal;
|
|
11642
11682
|
this.radioChangeHandler = (e) => {
|
|
11643
11683
|
const changedRadio = e.target;
|
|
11644
11684
|
if (changedRadio.checked) {
|
|
@@ -11739,11 +11779,11 @@
|
|
|
11739
11779
|
e.preventDefault();
|
|
11740
11780
|
};
|
|
11741
11781
|
this.shouldMoveOffGroupToTheRight = (index, group, key) => {
|
|
11742
|
-
return index === group.length && this.isInsideToolbar && key === keyArrowRight
|
|
11782
|
+
return index === group.length && this.isInsideToolbar && key === keyArrowRight;
|
|
11743
11783
|
};
|
|
11744
11784
|
this.shouldMoveOffGroupToTheLeft = (group, key) => {
|
|
11745
11785
|
const index = this.focusedRadio ? group.indexOf(this.focusedRadio) - 1 : 0;
|
|
11746
|
-
return index < 0 && this.isInsideToolbar && key === keyArrowLeft
|
|
11786
|
+
return index < 0 && this.isInsideToolbar && key === keyArrowLeft;
|
|
11747
11787
|
};
|
|
11748
11788
|
this.checkFocusedRadio = () => {
|
|
11749
11789
|
if (this.focusedRadio !== null &&
|
|
@@ -11827,13 +11867,13 @@
|
|
|
11827
11867
|
return true;
|
|
11828
11868
|
}
|
|
11829
11869
|
switch (key) {
|
|
11830
|
-
case keyEnter
|
|
11870
|
+
case keyEnter: {
|
|
11831
11871
|
this.checkFocusedRadio();
|
|
11832
11872
|
break;
|
|
11833
11873
|
}
|
|
11834
|
-
case keyArrowRight
|
|
11835
|
-
case keyArrowDown
|
|
11836
|
-
if (this.direction === Direction
|
|
11874
|
+
case keyArrowRight:
|
|
11875
|
+
case keyArrowDown: {
|
|
11876
|
+
if (this.direction === Direction.ltr) {
|
|
11837
11877
|
this.moveRight(e);
|
|
11838
11878
|
}
|
|
11839
11879
|
else {
|
|
@@ -11841,9 +11881,9 @@
|
|
|
11841
11881
|
}
|
|
11842
11882
|
break;
|
|
11843
11883
|
}
|
|
11844
|
-
case keyArrowLeft
|
|
11845
|
-
case keyArrowUp
|
|
11846
|
-
if (this.direction === Direction
|
|
11884
|
+
case keyArrowLeft:
|
|
11885
|
+
case keyArrowUp: {
|
|
11886
|
+
if (this.direction === Direction.ltr) {
|
|
11847
11887
|
this.moveLeft(e);
|
|
11848
11888
|
}
|
|
11849
11889
|
else {
|
|
@@ -12004,7 +12044,7 @@
|
|
|
12004
12044
|
], RadioGroup$1.prototype, "slottedRadioButtons", void 0);
|
|
12005
12045
|
|
|
12006
12046
|
/**
|
|
12007
|
-
* The template for the {@link @
|
|
12047
|
+
* The template for the {@link @ni/fast-foundation#(Radio:class)} component.
|
|
12008
12048
|
* @public
|
|
12009
12049
|
*/
|
|
12010
12050
|
const radioTemplate = (context, definition) => html `
|
|
@@ -12037,7 +12077,7 @@
|
|
|
12037
12077
|
class _Radio extends FoundationElement {
|
|
12038
12078
|
}
|
|
12039
12079
|
/**
|
|
12040
|
-
* A form-associated base class for the {@link @
|
|
12080
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Radio:class)} component.
|
|
12041
12081
|
*
|
|
12042
12082
|
* @internal
|
|
12043
12083
|
*/
|
|
@@ -12061,6 +12101,26 @@
|
|
|
12061
12101
|
* @public
|
|
12062
12102
|
*/
|
|
12063
12103
|
let Radio$1 = class Radio extends FormAssociatedRadio {
|
|
12104
|
+
readOnlyChanged() {
|
|
12105
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
12106
|
+
this.proxy.readOnly = this.readOnly;
|
|
12107
|
+
}
|
|
12108
|
+
}
|
|
12109
|
+
/**
|
|
12110
|
+
* @internal
|
|
12111
|
+
*/
|
|
12112
|
+
defaultCheckedChanged() {
|
|
12113
|
+
var _a;
|
|
12114
|
+
if (this.$fastController.isConnected && !this.dirtyChecked) {
|
|
12115
|
+
// Setting this.checked will cause us to enter a dirty state,
|
|
12116
|
+
// but if we are clean when defaultChecked is changed, we want to stay
|
|
12117
|
+
// in a clean state, so reset this.dirtyChecked
|
|
12118
|
+
if (!this.isInsideRadioGroup()) {
|
|
12119
|
+
this.checked = (_a = this.defaultChecked) !== null && _a !== void 0 ? _a : false;
|
|
12120
|
+
this.dirtyChecked = false;
|
|
12121
|
+
}
|
|
12122
|
+
}
|
|
12123
|
+
}
|
|
12064
12124
|
constructor() {
|
|
12065
12125
|
super();
|
|
12066
12126
|
/**
|
|
@@ -12075,7 +12135,7 @@
|
|
|
12075
12135
|
*/
|
|
12076
12136
|
this.keypressHandler = (e) => {
|
|
12077
12137
|
switch (e.key) {
|
|
12078
|
-
case keySpace
|
|
12138
|
+
case keySpace:
|
|
12079
12139
|
if (!this.checked && !this.readOnly) {
|
|
12080
12140
|
this.checked = true;
|
|
12081
12141
|
}
|
|
@@ -12085,26 +12145,6 @@
|
|
|
12085
12145
|
};
|
|
12086
12146
|
this.proxy.setAttribute("type", "radio");
|
|
12087
12147
|
}
|
|
12088
|
-
readOnlyChanged() {
|
|
12089
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
12090
|
-
this.proxy.readOnly = this.readOnly;
|
|
12091
|
-
}
|
|
12092
|
-
}
|
|
12093
|
-
/**
|
|
12094
|
-
* @internal
|
|
12095
|
-
*/
|
|
12096
|
-
defaultCheckedChanged() {
|
|
12097
|
-
var _a;
|
|
12098
|
-
if (this.$fastController.isConnected && !this.dirtyChecked) {
|
|
12099
|
-
// Setting this.checked will cause us to enter a dirty state,
|
|
12100
|
-
// but if we are clean when defaultChecked is changed, we want to stay
|
|
12101
|
-
// in a clean state, so reset this.dirtyChecked
|
|
12102
|
-
if (!this.isInsideRadioGroup()) {
|
|
12103
|
-
this.checked = (_a = this.defaultChecked) !== null && _a !== void 0 ? _a : false;
|
|
12104
|
-
this.dirtyChecked = false;
|
|
12105
|
-
}
|
|
12106
|
-
}
|
|
12107
|
-
}
|
|
12108
12148
|
/**
|
|
12109
12149
|
* @internal
|
|
12110
12150
|
*/
|
|
@@ -12170,7 +12210,7 @@
|
|
|
12170
12210
|
class _Select extends ListboxElement {
|
|
12171
12211
|
}
|
|
12172
12212
|
/**
|
|
12173
|
-
* A form-associated base class for the {@link @
|
|
12213
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Select:class)} component.
|
|
12174
12214
|
*
|
|
12175
12215
|
* @internal
|
|
12176
12216
|
*/
|
|
@@ -12222,7 +12262,7 @@
|
|
|
12222
12262
|
*
|
|
12223
12263
|
* @internal
|
|
12224
12264
|
*/
|
|
12225
|
-
this.listboxId = uniqueId
|
|
12265
|
+
this.listboxId = uniqueId("listbox-");
|
|
12226
12266
|
/**
|
|
12227
12267
|
* The max height for the listbox when opened.
|
|
12228
12268
|
*
|
|
@@ -12561,31 +12601,31 @@
|
|
|
12561
12601
|
super.keydownHandler(e);
|
|
12562
12602
|
const key = e.key || e.key.charCodeAt(0);
|
|
12563
12603
|
switch (key) {
|
|
12564
|
-
case keySpace
|
|
12604
|
+
case keySpace: {
|
|
12565
12605
|
e.preventDefault();
|
|
12566
12606
|
if (this.collapsible && this.typeAheadExpired) {
|
|
12567
12607
|
this.open = !this.open;
|
|
12568
12608
|
}
|
|
12569
12609
|
break;
|
|
12570
12610
|
}
|
|
12571
|
-
case keyHome
|
|
12572
|
-
case keyEnd
|
|
12611
|
+
case keyHome:
|
|
12612
|
+
case keyEnd: {
|
|
12573
12613
|
e.preventDefault();
|
|
12574
12614
|
break;
|
|
12575
12615
|
}
|
|
12576
|
-
case keyEnter
|
|
12616
|
+
case keyEnter: {
|
|
12577
12617
|
e.preventDefault();
|
|
12578
12618
|
this.open = !this.open;
|
|
12579
12619
|
break;
|
|
12580
12620
|
}
|
|
12581
|
-
case keyEscape
|
|
12621
|
+
case keyEscape: {
|
|
12582
12622
|
if (this.collapsible && this.open) {
|
|
12583
12623
|
e.preventDefault();
|
|
12584
12624
|
this.open = false;
|
|
12585
12625
|
}
|
|
12586
12626
|
break;
|
|
12587
12627
|
}
|
|
12588
|
-
case keyTab
|
|
12628
|
+
case keyTab: {
|
|
12589
12629
|
if (this.collapsible && this.open) {
|
|
12590
12630
|
e.preventDefault();
|
|
12591
12631
|
this.open = false;
|
|
@@ -12597,7 +12637,7 @@
|
|
|
12597
12637
|
this.updateValue(true);
|
|
12598
12638
|
this.indexWhenOpened = this.selectedIndex;
|
|
12599
12639
|
}
|
|
12600
|
-
return !(key === keyArrowDown
|
|
12640
|
+
return !(key === keyArrowDown || key === keyArrowUp);
|
|
12601
12641
|
}
|
|
12602
12642
|
connectedCallback() {
|
|
12603
12643
|
super.connectedCallback();
|
|
@@ -12667,7 +12707,7 @@
|
|
|
12667
12707
|
class _Switch extends FoundationElement {
|
|
12668
12708
|
}
|
|
12669
12709
|
/**
|
|
12670
|
-
* A form-associated base class for the {@link @
|
|
12710
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(Switch:class)} component.
|
|
12671
12711
|
*
|
|
12672
12712
|
* @internal
|
|
12673
12713
|
*/
|
|
@@ -12695,6 +12735,14 @@
|
|
|
12695
12735
|
* @public
|
|
12696
12736
|
*/
|
|
12697
12737
|
let Switch$1 = class Switch extends FormAssociatedSwitch {
|
|
12738
|
+
readOnlyChanged() {
|
|
12739
|
+
if (this.proxy instanceof HTMLInputElement) {
|
|
12740
|
+
this.proxy.readOnly = this.readOnly;
|
|
12741
|
+
}
|
|
12742
|
+
this.readOnly
|
|
12743
|
+
? this.classList.add("readonly")
|
|
12744
|
+
: this.classList.remove("readonly");
|
|
12745
|
+
}
|
|
12698
12746
|
constructor() {
|
|
12699
12747
|
super();
|
|
12700
12748
|
/**
|
|
@@ -12712,8 +12760,8 @@
|
|
|
12712
12760
|
return;
|
|
12713
12761
|
}
|
|
12714
12762
|
switch (e.key) {
|
|
12715
|
-
case keyEnter
|
|
12716
|
-
case keySpace
|
|
12763
|
+
case keyEnter:
|
|
12764
|
+
case keySpace:
|
|
12717
12765
|
this.checked = !this.checked;
|
|
12718
12766
|
break;
|
|
12719
12767
|
}
|
|
@@ -12728,14 +12776,6 @@
|
|
|
12728
12776
|
};
|
|
12729
12777
|
this.proxy.setAttribute("type", "checkbox");
|
|
12730
12778
|
}
|
|
12731
|
-
readOnlyChanged() {
|
|
12732
|
-
if (this.proxy instanceof HTMLInputElement) {
|
|
12733
|
-
this.proxy.readOnly = this.readOnly;
|
|
12734
|
-
}
|
|
12735
|
-
this.readOnly
|
|
12736
|
-
? this.classList.add("readonly")
|
|
12737
|
-
: this.classList.remove("readonly");
|
|
12738
|
-
}
|
|
12739
12779
|
/**
|
|
12740
12780
|
* @internal
|
|
12741
12781
|
*/
|
|
@@ -12755,7 +12795,7 @@
|
|
|
12755
12795
|
], Switch$1.prototype, "defaultSlottedNodes", void 0);
|
|
12756
12796
|
|
|
12757
12797
|
/**
|
|
12758
|
-
* The template for the {@link @
|
|
12798
|
+
* The template for the {@link @ni/fast-foundation#TabPanel} component.
|
|
12759
12799
|
* @public
|
|
12760
12800
|
*/
|
|
12761
12801
|
const tabPanelTemplate = (context, definition) => html `
|
|
@@ -12765,7 +12805,7 @@
|
|
|
12765
12805
|
`;
|
|
12766
12806
|
|
|
12767
12807
|
/**
|
|
12768
|
-
* A TabPanel Component to be used with {@link @
|
|
12808
|
+
* A TabPanel Component to be used with {@link @ni/fast-foundation#(Tabs:class)}
|
|
12769
12809
|
*
|
|
12770
12810
|
* @slot - The default slot for the tabpanel content
|
|
12771
12811
|
*
|
|
@@ -12775,7 +12815,7 @@
|
|
|
12775
12815
|
};
|
|
12776
12816
|
|
|
12777
12817
|
/**
|
|
12778
|
-
* The template for the {@link @
|
|
12818
|
+
* The template for the {@link @ni/fast-foundation#Tab} component.
|
|
12779
12819
|
* @public
|
|
12780
12820
|
*/
|
|
12781
12821
|
const tabTemplate = (context, definition) => html `
|
|
@@ -12785,7 +12825,7 @@
|
|
|
12785
12825
|
`;
|
|
12786
12826
|
|
|
12787
12827
|
/**
|
|
12788
|
-
* A Tab Component to be used with {@link @
|
|
12828
|
+
* A Tab Component to be used with {@link @ni/fast-foundation#(Tabs:class)}
|
|
12789
12829
|
*
|
|
12790
12830
|
* @slot - The default slot for the tab content
|
|
12791
12831
|
*
|
|
@@ -12798,7 +12838,7 @@
|
|
|
12798
12838
|
], Tab$1.prototype, "disabled", void 0);
|
|
12799
12839
|
|
|
12800
12840
|
/**
|
|
12801
|
-
* The orientation of the {@link @
|
|
12841
|
+
* The orientation of the {@link @ni/fast-foundation#(Tabs:class)} component
|
|
12802
12842
|
* @public
|
|
12803
12843
|
*/
|
|
12804
12844
|
const TabsOrientation = {
|
|
@@ -12915,11 +12955,11 @@
|
|
|
12915
12955
|
this.handleTabKeyDown = (event) => {
|
|
12916
12956
|
if (this.isHorizontal()) {
|
|
12917
12957
|
switch (event.key) {
|
|
12918
|
-
case keyArrowLeft
|
|
12958
|
+
case keyArrowLeft:
|
|
12919
12959
|
event.preventDefault();
|
|
12920
12960
|
this.adjustBackward(event);
|
|
12921
12961
|
break;
|
|
12922
|
-
case keyArrowRight
|
|
12962
|
+
case keyArrowRight:
|
|
12923
12963
|
event.preventDefault();
|
|
12924
12964
|
this.adjustForward(event);
|
|
12925
12965
|
break;
|
|
@@ -12927,22 +12967,22 @@
|
|
|
12927
12967
|
}
|
|
12928
12968
|
else {
|
|
12929
12969
|
switch (event.key) {
|
|
12930
|
-
case keyArrowUp
|
|
12970
|
+
case keyArrowUp:
|
|
12931
12971
|
event.preventDefault();
|
|
12932
12972
|
this.adjustBackward(event);
|
|
12933
12973
|
break;
|
|
12934
|
-
case keyArrowDown
|
|
12974
|
+
case keyArrowDown:
|
|
12935
12975
|
event.preventDefault();
|
|
12936
12976
|
this.adjustForward(event);
|
|
12937
12977
|
break;
|
|
12938
12978
|
}
|
|
12939
12979
|
}
|
|
12940
12980
|
switch (event.key) {
|
|
12941
|
-
case keyHome
|
|
12981
|
+
case keyHome:
|
|
12942
12982
|
event.preventDefault();
|
|
12943
12983
|
this.adjust(-this.activeTabIndex);
|
|
12944
12984
|
break;
|
|
12945
|
-
case keyEnd
|
|
12985
|
+
case keyEnd:
|
|
12946
12986
|
event.preventDefault();
|
|
12947
12987
|
this.adjust(this.tabs.length - this.activeTabIndex - 1);
|
|
12948
12988
|
break;
|
|
@@ -13060,13 +13100,13 @@
|
|
|
13060
13100
|
getTabIds() {
|
|
13061
13101
|
return this.tabs.map((tab) => {
|
|
13062
13102
|
var _a;
|
|
13063
|
-
return (_a = tab.getAttribute("id")) !== null && _a !== void 0 ? _a : `tab-${uniqueId
|
|
13103
|
+
return (_a = tab.getAttribute("id")) !== null && _a !== void 0 ? _a : `tab-${uniqueId()}`;
|
|
13064
13104
|
});
|
|
13065
13105
|
}
|
|
13066
13106
|
getTabPanelIds() {
|
|
13067
13107
|
return this.tabpanels.map((tabPanel) => {
|
|
13068
13108
|
var _a;
|
|
13069
|
-
return (_a = tabPanel.getAttribute("id")) !== null && _a !== void 0 ? _a : `panel-${uniqueId
|
|
13109
|
+
return (_a = tabPanel.getAttribute("id")) !== null && _a !== void 0 ? _a : `panel-${uniqueId()}`;
|
|
13070
13110
|
});
|
|
13071
13111
|
}
|
|
13072
13112
|
setComponent() {
|
|
@@ -13123,7 +13163,7 @@
|
|
|
13123
13163
|
adjust(adjustment) {
|
|
13124
13164
|
const focusableTabs = this.tabs.filter(t => this.isFocusableElement(t));
|
|
13125
13165
|
const currentActiveTabIndex = focusableTabs.indexOf(this.activetab);
|
|
13126
|
-
const nextTabIndex = limit
|
|
13166
|
+
const nextTabIndex = limit(0, focusableTabs.length - 1, currentActiveTabIndex + adjustment);
|
|
13127
13167
|
// the index of the next focusable tab within the context of all available tabs
|
|
13128
13168
|
const nextIndex = this.tabs.indexOf(focusableTabs[nextTabIndex]);
|
|
13129
13169
|
if (nextIndex > -1) {
|
|
@@ -13169,7 +13209,7 @@
|
|
|
13169
13209
|
class _TextArea extends FoundationElement {
|
|
13170
13210
|
}
|
|
13171
13211
|
/**
|
|
13172
|
-
* A form-associated base class for the {@link @
|
|
13212
|
+
* A form-associated base class for the {@link @ni/fast-foundation#(TextArea:class)} component.
|
|
13173
13213
|
*
|
|
13174
13214
|
* @internal
|
|
13175
13215
|
*/
|
|
@@ -13331,7 +13371,7 @@
|
|
|
13331
13371
|
applyMixins(TextArea$1, DelegatesARIATextbox);
|
|
13332
13372
|
|
|
13333
13373
|
/**
|
|
13334
|
-
* The template for the {@link @
|
|
13374
|
+
* The template for the {@link @ni/fast-foundation#(Toolbar:class)} component.
|
|
13335
13375
|
*
|
|
13336
13376
|
* @public
|
|
13337
13377
|
*/
|
|
@@ -13383,21 +13423,21 @@
|
|
|
13383
13423
|
*/
|
|
13384
13424
|
const ToolbarArrowKeyMap = Object.freeze({
|
|
13385
13425
|
[ArrowKeys.ArrowUp]: {
|
|
13386
|
-
[Orientation
|
|
13426
|
+
[Orientation.vertical]: -1,
|
|
13387
13427
|
},
|
|
13388
13428
|
[ArrowKeys.ArrowDown]: {
|
|
13389
|
-
[Orientation
|
|
13429
|
+
[Orientation.vertical]: 1,
|
|
13390
13430
|
},
|
|
13391
13431
|
[ArrowKeys.ArrowLeft]: {
|
|
13392
|
-
[Orientation
|
|
13393
|
-
[Direction
|
|
13394
|
-
[Direction
|
|
13432
|
+
[Orientation.horizontal]: {
|
|
13433
|
+
[Direction.ltr]: -1,
|
|
13434
|
+
[Direction.rtl]: 1,
|
|
13395
13435
|
},
|
|
13396
13436
|
},
|
|
13397
13437
|
[ArrowKeys.ArrowRight]: {
|
|
13398
|
-
[Orientation
|
|
13399
|
-
[Direction
|
|
13400
|
-
[Direction
|
|
13438
|
+
[Orientation.horizontal]: {
|
|
13439
|
+
[Direction.ltr]: 1,
|
|
13440
|
+
[Direction.rtl]: -1,
|
|
13401
13441
|
},
|
|
13402
13442
|
},
|
|
13403
13443
|
});
|
|
@@ -13427,7 +13467,7 @@
|
|
|
13427
13467
|
*
|
|
13428
13468
|
* @internal
|
|
13429
13469
|
*/
|
|
13430
|
-
this.direction = Direction
|
|
13470
|
+
this.direction = Direction.ltr;
|
|
13431
13471
|
/**
|
|
13432
13472
|
* The orientation of the toolbar.
|
|
13433
13473
|
*
|
|
@@ -13435,7 +13475,7 @@
|
|
|
13435
13475
|
* @remarks
|
|
13436
13476
|
* HTML Attribute: `orientation`
|
|
13437
13477
|
*/
|
|
13438
|
-
this.orientation = Orientation
|
|
13478
|
+
this.orientation = Orientation.horizontal;
|
|
13439
13479
|
}
|
|
13440
13480
|
/**
|
|
13441
13481
|
* The index of the currently focused element, clamped between 0 and the last element.
|
|
@@ -13448,7 +13488,7 @@
|
|
|
13448
13488
|
}
|
|
13449
13489
|
set activeIndex(value) {
|
|
13450
13490
|
if (this.$fastController.isConnected) {
|
|
13451
|
-
this._activeIndex = limit
|
|
13491
|
+
this._activeIndex = limit(0, this.focusableElements.length - 1, value);
|
|
13452
13492
|
Observable.notify(this, "activeIndex");
|
|
13453
13493
|
}
|
|
13454
13494
|
}
|
|
@@ -13795,7 +13835,7 @@
|
|
|
13795
13835
|
*
|
|
13796
13836
|
* @internal
|
|
13797
13837
|
*/
|
|
13798
|
-
this.currentDirection = Direction
|
|
13838
|
+
this.currentDirection = Direction.ltr;
|
|
13799
13839
|
/**
|
|
13800
13840
|
* The timer that tracks delay time before the tooltip is shown on hover
|
|
13801
13841
|
*/
|
|
@@ -13946,7 +13986,7 @@
|
|
|
13946
13986
|
this.handleDocumentKeydown = (e) => {
|
|
13947
13987
|
if (!e.defaultPrevented && this.tooltipVisible) {
|
|
13948
13988
|
switch (e.key) {
|
|
13949
|
-
case keyEscape
|
|
13989
|
+
case keyEscape:
|
|
13950
13990
|
this.isAnchorHoveredFocused = false;
|
|
13951
13991
|
this.updateTooltipVisibility();
|
|
13952
13992
|
this.$emit("dismiss");
|
|
@@ -14208,7 +14248,7 @@
|
|
|
14208
14248
|
], Tooltip$1.prototype, "currentDirection", void 0);
|
|
14209
14249
|
|
|
14210
14250
|
/**
|
|
14211
|
-
* The template for the {@link @
|
|
14251
|
+
* The template for the {@link @ni/fast-foundation#(TreeItem:class)} component.
|
|
14212
14252
|
* @public
|
|
14213
14253
|
*/
|
|
14214
14254
|
const treeItemTemplate = (context, definition) => html `
|
|
@@ -14265,7 +14305,7 @@
|
|
|
14265
14305
|
* determines if element is an HTMLElement and if it has the role treeitem
|
|
14266
14306
|
*/
|
|
14267
14307
|
function isTreeItemElement(el) {
|
|
14268
|
-
return isHTMLElement
|
|
14308
|
+
return isHTMLElement(el) && el.getAttribute("role") === "treeitem";
|
|
14269
14309
|
}
|
|
14270
14310
|
/**
|
|
14271
14311
|
* A Tree item Custom HTML Element.
|
|
@@ -14469,17 +14509,17 @@
|
|
|
14469
14509
|
}
|
|
14470
14510
|
const treeItems = this.getVisibleNodes();
|
|
14471
14511
|
switch (e.key) {
|
|
14472
|
-
case keyHome
|
|
14512
|
+
case keyHome:
|
|
14473
14513
|
if (treeItems.length) {
|
|
14474
14514
|
TreeItem$1.focusItem(treeItems[0]);
|
|
14475
14515
|
}
|
|
14476
14516
|
return;
|
|
14477
|
-
case keyEnd
|
|
14517
|
+
case keyEnd:
|
|
14478
14518
|
if (treeItems.length) {
|
|
14479
14519
|
TreeItem$1.focusItem(treeItems[treeItems.length - 1]);
|
|
14480
14520
|
}
|
|
14481
14521
|
return;
|
|
14482
|
-
case keyArrowLeft
|
|
14522
|
+
case keyArrowLeft:
|
|
14483
14523
|
if (e.target && this.isFocusableElement(e.target)) {
|
|
14484
14524
|
const item = e.target;
|
|
14485
14525
|
if (item instanceof TreeItem$1 &&
|
|
@@ -14493,7 +14533,7 @@
|
|
|
14493
14533
|
}
|
|
14494
14534
|
}
|
|
14495
14535
|
return false;
|
|
14496
|
-
case keyArrowRight
|
|
14536
|
+
case keyArrowRight:
|
|
14497
14537
|
if (e.target && this.isFocusableElement(e.target)) {
|
|
14498
14538
|
const item = e.target;
|
|
14499
14539
|
if (item instanceof TreeItem$1 &&
|
|
@@ -14506,17 +14546,17 @@
|
|
|
14506
14546
|
}
|
|
14507
14547
|
}
|
|
14508
14548
|
return;
|
|
14509
|
-
case keyArrowDown
|
|
14549
|
+
case keyArrowDown:
|
|
14510
14550
|
if (e.target && this.isFocusableElement(e.target)) {
|
|
14511
14551
|
this.focusNextNode(1, e.target);
|
|
14512
14552
|
}
|
|
14513
14553
|
return;
|
|
14514
|
-
case keyArrowUp
|
|
14554
|
+
case keyArrowUp:
|
|
14515
14555
|
if (e.target && this.isFocusableElement(e.target)) {
|
|
14516
14556
|
this.focusNextNode(-1, e.target);
|
|
14517
14557
|
}
|
|
14518
14558
|
return;
|
|
14519
|
-
case keyEnter
|
|
14559
|
+
case keyEnter:
|
|
14520
14560
|
// In single-select trees where selection does not follow focus (see note below),
|
|
14521
14561
|
// the default action is typically to select the focused node.
|
|
14522
14562
|
this.handleClick(e);
|
|
@@ -14625,7 +14665,7 @@
|
|
|
14625
14665
|
return;
|
|
14626
14666
|
}
|
|
14627
14667
|
const focusItem = visibleNodes[visibleNodes.indexOf(item) + delta];
|
|
14628
|
-
if (isHTMLElement
|
|
14668
|
+
if (isHTMLElement(focusItem)) {
|
|
14629
14669
|
TreeItem$1.focusItem(focusItem);
|
|
14630
14670
|
}
|
|
14631
14671
|
}
|
|
@@ -14801,6 +14841,15 @@
|
|
|
14801
14841
|
* @public
|
|
14802
14842
|
*/
|
|
14803
14843
|
class ColorRGBA64 {
|
|
14844
|
+
/**
|
|
14845
|
+
* Construct a {@link ColorRGBA64} from a {@link ColorRGBA64Config}
|
|
14846
|
+
* @param data - the config object
|
|
14847
|
+
*/
|
|
14848
|
+
static fromObject(data) {
|
|
14849
|
+
return data && !isNaN(data.r) && !isNaN(data.g) && !isNaN(data.b)
|
|
14850
|
+
? new ColorRGBA64(data.r, data.g, data.b, data.a)
|
|
14851
|
+
: null;
|
|
14852
|
+
}
|
|
14804
14853
|
/**
|
|
14805
14854
|
*
|
|
14806
14855
|
* @param red - the red value
|
|
@@ -14814,15 +14863,6 @@
|
|
|
14814
14863
|
this.b = blue;
|
|
14815
14864
|
this.a = typeof alpha === "number" && !isNaN(alpha) ? alpha : 1;
|
|
14816
14865
|
}
|
|
14817
|
-
/**
|
|
14818
|
-
* Construct a {@link ColorRGBA64} from a {@link ColorRGBA64Config}
|
|
14819
|
-
* @param data - the config object
|
|
14820
|
-
*/
|
|
14821
|
-
static fromObject(data) {
|
|
14822
|
-
return data && !isNaN(data.r) && !isNaN(data.g) && !isNaN(data.b)
|
|
14823
|
-
? new ColorRGBA64(data.r, data.g, data.b, data.a)
|
|
14824
|
-
: null;
|
|
14825
|
-
}
|
|
14826
14866
|
/**
|
|
14827
14867
|
* Determines if one color is equal to another.
|
|
14828
14868
|
* @param rhs - the color to compare
|
|
@@ -15675,7 +15715,7 @@
|
|
|
15675
15715
|
return webRGBARegex.test(raw);
|
|
15676
15716
|
}
|
|
15677
15717
|
/**
|
|
15678
|
-
* Tests whether a color is in {@link @
|
|
15718
|
+
* Tests whether a color is in {@link @ni/fast-colors#NamedColors}.
|
|
15679
15719
|
* @param raw - the color name to test
|
|
15680
15720
|
* @public
|
|
15681
15721
|
*/
|
|
@@ -15683,7 +15723,7 @@
|
|
|
15683
15723
|
return namedColorsConfigs.hasOwnProperty(raw);
|
|
15684
15724
|
}
|
|
15685
15725
|
/**
|
|
15686
|
-
* Converts a hexadecimal color string to a {@link @
|
|
15726
|
+
* Converts a hexadecimal color string to a {@link @ni/fast-colors#ColorRGBA64}.
|
|
15687
15727
|
* @param raw - a color string in the form of "#RRGGBB" or "#RGB"
|
|
15688
15728
|
* @example
|
|
15689
15729
|
* ```ts
|
|
@@ -15712,7 +15752,7 @@
|
|
|
15712
15752
|
return new ColorRGBA64(normalize$3((rawInt & 0xff0000) >>> 16, 0, 255), normalize$3((rawInt & 0x00ff00) >>> 8, 0, 255), normalize$3(rawInt & 0x0000ff, 0, 255), 1);
|
|
15713
15753
|
}
|
|
15714
15754
|
/**
|
|
15715
|
-
* Converts a hexadecimal color string to a {@link @
|
|
15755
|
+
* Converts a hexadecimal color string to a {@link @ni/fast-colors#ColorRGBA64}.
|
|
15716
15756
|
* @param raw - a color string in the form of "#AARRGGBB" or "#ARGB"
|
|
15717
15757
|
* @example
|
|
15718
15758
|
* ```ts
|
|
@@ -15742,7 +15782,7 @@
|
|
|
15742
15782
|
return new ColorRGBA64(normalize$3((rawInt & 0x00ff0000) >>> 16, 0, 255), normalize$3((rawInt & 0x0000ff00) >>> 8, 0, 255), normalize$3(rawInt & 0x000000ff, 0, 255), normalize$3((rawInt & 0xff000000) >>> 24, 0, 255));
|
|
15743
15783
|
}
|
|
15744
15784
|
/**
|
|
15745
|
-
* Converts a rgb color string to a {@link @
|
|
15785
|
+
* Converts a rgb color string to a {@link @ni/fast-colors#ColorRGBA64}.
|
|
15746
15786
|
* @param raw - a color string format "rgba(RR,GG,BB)" where RR,GG,BB are [0,255]
|
|
15747
15787
|
* @example
|
|
15748
15788
|
* ```ts
|
|
@@ -15759,7 +15799,7 @@
|
|
|
15759
15799
|
return new ColorRGBA64(normalize$3(Number(split[0]), 0, 255), normalize$3(Number(split[1]), 0, 255), normalize$3(Number(split[2]), 0, 255), 1);
|
|
15760
15800
|
}
|
|
15761
15801
|
/**
|
|
15762
|
-
* Converts a rgba color string to a {@link @
|
|
15802
|
+
* Converts a rgba color string to a {@link @ni/fast-colors#ColorRGBA64}.
|
|
15763
15803
|
* @param raw - a color string format "rgba(RR,GG,BB,a)" where RR,GG,BB are [0,255] and a is [0,1]
|
|
15764
15804
|
* @example
|
|
15765
15805
|
* ```ts
|
|
@@ -15779,7 +15819,7 @@
|
|
|
15779
15819
|
return null;
|
|
15780
15820
|
}
|
|
15781
15821
|
/**
|
|
15782
|
-
* Converts a named color to a {@link @
|
|
15822
|
+
* Converts a named color to a {@link @ni/fast-colors#ColorRGBA64}.
|
|
15783
15823
|
* @param raw - a {@link https://www.w3schools.com/colors/colors_names.asp | CSS color name}.
|
|
15784
15824
|
* @example
|
|
15785
15825
|
* ```ts
|
|
@@ -16067,89 +16107,6 @@
|
|
|
16067
16107
|
const prefix = 'ni-nimble';
|
|
16068
16108
|
const styleNameFromTokenName = (tokenName) => `${prefix}-${tokenName}`;
|
|
16069
16109
|
|
|
16070
|
-
/**
|
|
16071
|
-
* Standard orientation values
|
|
16072
|
-
*/
|
|
16073
|
-
const Orientation = {
|
|
16074
|
-
horizontal: "horizontal"};
|
|
16075
|
-
|
|
16076
|
-
/**
|
|
16077
|
-
* Returns the index of the last element in the array where predicate is true, and -1 otherwise.
|
|
16078
|
-
*
|
|
16079
|
-
* @param array - the array to test
|
|
16080
|
-
* @param predicate - find calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findIndex returns -1.
|
|
16081
|
-
*/
|
|
16082
|
-
function findLastIndex(array, predicate) {
|
|
16083
|
-
let k = array.length;
|
|
16084
|
-
while (k--) {
|
|
16085
|
-
if (predicate(array[k], k, array)) {
|
|
16086
|
-
return k;
|
|
16087
|
-
}
|
|
16088
|
-
}
|
|
16089
|
-
return -1;
|
|
16090
|
-
}
|
|
16091
|
-
|
|
16092
|
-
/**
|
|
16093
|
-
* A test that ensures that all arguments are HTML Elements
|
|
16094
|
-
*/
|
|
16095
|
-
function isHTMLElement(...args) {
|
|
16096
|
-
return args.every((arg) => arg instanceof HTMLElement);
|
|
16097
|
-
}
|
|
16098
|
-
|
|
16099
|
-
/**
|
|
16100
|
-
* This set of exported strings reference https://developer.mozilla.org/en-US/docs/Web/Events
|
|
16101
|
-
* and should include all non-deprecated and non-experimental Standard events
|
|
16102
|
-
*/
|
|
16103
|
-
const eventAnimationEnd = "animationend";
|
|
16104
|
-
const eventChange = "change";
|
|
16105
|
-
|
|
16106
|
-
/**
|
|
16107
|
-
* String values for use with KeyboardEvent.key
|
|
16108
|
-
*/
|
|
16109
|
-
const keyArrowDown = "ArrowDown";
|
|
16110
|
-
const keyArrowLeft = "ArrowLeft";
|
|
16111
|
-
const keyArrowRight = "ArrowRight";
|
|
16112
|
-
const keyArrowUp = "ArrowUp";
|
|
16113
|
-
const keyEnd = "End";
|
|
16114
|
-
const keyEnter = "Enter";
|
|
16115
|
-
const keyEscape = "Escape";
|
|
16116
|
-
const keyHome = "Home";
|
|
16117
|
-
const keyFunction2 = "F2";
|
|
16118
|
-
const keyPageDown = "PageDown";
|
|
16119
|
-
const keyPageUp = "PageUp";
|
|
16120
|
-
const keySpace = " ";
|
|
16121
|
-
const keyTab = "Tab";
|
|
16122
|
-
|
|
16123
|
-
/**
|
|
16124
|
-
* Expose ltr and rtl strings
|
|
16125
|
-
*/
|
|
16126
|
-
var Direction;
|
|
16127
|
-
(function (Direction) {
|
|
16128
|
-
Direction["ltr"] = "ltr";
|
|
16129
|
-
Direction["rtl"] = "rtl";
|
|
16130
|
-
})(Direction || (Direction = {}));
|
|
16131
|
-
|
|
16132
|
-
/**
|
|
16133
|
-
* This method keeps a given value within the bounds of a min and max value. If the value
|
|
16134
|
-
* is larger than the max, the minimum value will be returned. If the value is smaller than the minimum,
|
|
16135
|
-
* the maximum will be returned. Otherwise, the value is returned un-changed.
|
|
16136
|
-
*/
|
|
16137
|
-
/**
|
|
16138
|
-
* Ensures that a value is between a min and max value. If value is lower than min, min will be returned.
|
|
16139
|
-
* If value is greater than max, max will be returned.
|
|
16140
|
-
*/
|
|
16141
|
-
function limit(min, max, value) {
|
|
16142
|
-
return Math.min(Math.max(value, min), max);
|
|
16143
|
-
}
|
|
16144
|
-
|
|
16145
|
-
let uniqueIdCounter = 0;
|
|
16146
|
-
/**
|
|
16147
|
-
* Generates a unique ID based on incrementing a counter.
|
|
16148
|
-
*/
|
|
16149
|
-
function uniqueId(prefix = "") {
|
|
16150
|
-
return `${prefix}${uniqueIdCounter++}`;
|
|
16151
|
-
}
|
|
16152
|
-
|
|
16153
16110
|
const template$R = html `<slot></slot>`;
|
|
16154
16111
|
|
|
16155
16112
|
const styles$14 = css `
|
|
@@ -16175,7 +16132,7 @@
|
|
|
16175
16132
|
});
|
|
16176
16133
|
}
|
|
16177
16134
|
}
|
|
16178
|
-
__decorate
|
|
16135
|
+
__decorate([
|
|
16179
16136
|
observable
|
|
16180
16137
|
], DocumentElementLang.prototype, "lang", void 0);
|
|
16181
16138
|
const documentElementLang = new DocumentElementLang();
|
|
@@ -16256,13 +16213,13 @@
|
|
|
16256
16213
|
}
|
|
16257
16214
|
}
|
|
16258
16215
|
}
|
|
16259
|
-
__decorate
|
|
16216
|
+
__decorate([
|
|
16260
16217
|
attr()
|
|
16261
16218
|
], ThemeProvider.prototype, "lang", void 0);
|
|
16262
|
-
__decorate
|
|
16219
|
+
__decorate([
|
|
16263
16220
|
attr()
|
|
16264
16221
|
], ThemeProvider.prototype, "direction", void 0);
|
|
16265
|
-
__decorate
|
|
16222
|
+
__decorate([
|
|
16266
16223
|
attr()
|
|
16267
16224
|
], ThemeProvider.prototype, "theme", void 0);
|
|
16268
16225
|
const nimbleDesignSystemProvider = ThemeProvider.compose({
|
|
@@ -16658,16 +16615,16 @@
|
|
|
16658
16615
|
this.underlineHidden = false;
|
|
16659
16616
|
}
|
|
16660
16617
|
}
|
|
16661
|
-
__decorate
|
|
16618
|
+
__decorate([
|
|
16662
16619
|
attr({ attribute: 'underline-hidden', mode: 'boolean' })
|
|
16663
16620
|
], Anchor.prototype, "underlineHidden", void 0);
|
|
16664
|
-
__decorate
|
|
16621
|
+
__decorate([
|
|
16665
16622
|
attr
|
|
16666
16623
|
], Anchor.prototype, "appearance", void 0);
|
|
16667
|
-
__decorate
|
|
16624
|
+
__decorate([
|
|
16668
16625
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
16669
16626
|
], Anchor.prototype, "tabIndex", void 0);
|
|
16670
|
-
__decorate
|
|
16627
|
+
__decorate([
|
|
16671
16628
|
attr({ attribute: 'contenteditable' })
|
|
16672
16629
|
], Anchor.prototype, "contentEditable", void 0);
|
|
16673
16630
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
@@ -17157,16 +17114,16 @@
|
|
|
17157
17114
|
this.disabled = false;
|
|
17158
17115
|
}
|
|
17159
17116
|
}
|
|
17160
|
-
__decorate
|
|
17117
|
+
__decorate([
|
|
17161
17118
|
attr
|
|
17162
17119
|
], AnchorButton.prototype, "appearance", void 0);
|
|
17163
|
-
__decorate
|
|
17120
|
+
__decorate([
|
|
17164
17121
|
attr({ attribute: 'appearance-variant' })
|
|
17165
17122
|
], AnchorButton.prototype, "appearanceVariant", void 0);
|
|
17166
|
-
__decorate
|
|
17123
|
+
__decorate([
|
|
17167
17124
|
attr({ attribute: 'content-hidden', mode: 'boolean' })
|
|
17168
17125
|
], AnchorButton.prototype, "contentHidden", void 0);
|
|
17169
|
-
__decorate
|
|
17126
|
+
__decorate([
|
|
17170
17127
|
attr({ mode: 'boolean' })
|
|
17171
17128
|
], AnchorButton.prototype, "disabled", void 0);
|
|
17172
17129
|
const nimbleAnchorButton = AnchorButton.compose({
|
|
@@ -17352,13 +17309,13 @@
|
|
|
17352
17309
|
this.anchor.tabIndex = value;
|
|
17353
17310
|
}
|
|
17354
17311
|
}
|
|
17355
|
-
__decorate
|
|
17312
|
+
__decorate([
|
|
17356
17313
|
attr({ mode: 'boolean' })
|
|
17357
17314
|
], AnchorMenuItem.prototype, "disabled", void 0);
|
|
17358
|
-
__decorate
|
|
17315
|
+
__decorate([
|
|
17359
17316
|
observable
|
|
17360
17317
|
], AnchorMenuItem.prototype, "anchor", void 0);
|
|
17361
|
-
__decorate
|
|
17318
|
+
__decorate([
|
|
17362
17319
|
observable
|
|
17363
17320
|
], AnchorMenuItem.prototype, "startColumnCount", void 0);
|
|
17364
17321
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
@@ -17535,10 +17492,10 @@
|
|
|
17535
17492
|
this.ariaSelected = 'false';
|
|
17536
17493
|
}
|
|
17537
17494
|
}
|
|
17538
|
-
__decorate
|
|
17495
|
+
__decorate([
|
|
17539
17496
|
attr({ mode: 'boolean' })
|
|
17540
17497
|
], AnchorTab.prototype, "disabled", void 0);
|
|
17541
|
-
__decorate
|
|
17498
|
+
__decorate([
|
|
17542
17499
|
attr({ attribute: 'aria-selected' })
|
|
17543
17500
|
], AnchorTab.prototype, "ariaSelected", void 0);
|
|
17544
17501
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
@@ -17664,21 +17621,21 @@
|
|
|
17664
17621
|
this.contentHidden = false;
|
|
17665
17622
|
}
|
|
17666
17623
|
}
|
|
17667
|
-
__decorate
|
|
17624
|
+
__decorate([
|
|
17668
17625
|
attr
|
|
17669
17626
|
], Button.prototype, "appearance", void 0);
|
|
17670
|
-
__decorate
|
|
17627
|
+
__decorate([
|
|
17671
17628
|
attr({ attribute: 'appearance-variant' })
|
|
17672
17629
|
], Button.prototype, "appearanceVariant", void 0);
|
|
17673
|
-
__decorate
|
|
17630
|
+
__decorate([
|
|
17674
17631
|
attr({ attribute: 'content-hidden', mode: 'boolean' })
|
|
17675
17632
|
], Button.prototype, "contentHidden", void 0);
|
|
17676
|
-
__decorate
|
|
17633
|
+
__decorate([
|
|
17677
17634
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
17678
17635
|
], Button.prototype, "tabIndex", void 0);
|
|
17679
17636
|
/**
|
|
17680
17637
|
* A function that returns a nimble-button registration for configuring the component with a DesignSystem.
|
|
17681
|
-
* Implements {@link @
|
|
17638
|
+
* Implements {@link @ni/fast-foundation#buttonTemplate}
|
|
17682
17639
|
*
|
|
17683
17640
|
* @public
|
|
17684
17641
|
* @remarks
|
|
@@ -18610,7 +18567,7 @@
|
|
|
18610
18567
|
this.icon = icon;
|
|
18611
18568
|
}
|
|
18612
18569
|
}
|
|
18613
|
-
__decorate
|
|
18570
|
+
__decorate([
|
|
18614
18571
|
attr
|
|
18615
18572
|
], Icon.prototype, "severity", void 0);
|
|
18616
18573
|
const registerIcon = (baseName, iconClass) => {
|
|
@@ -18995,13 +18952,13 @@
|
|
|
18995
18952
|
return tab.shadowRoot.querySelector('a');
|
|
18996
18953
|
}
|
|
18997
18954
|
}
|
|
18998
|
-
__decorate
|
|
18955
|
+
__decorate([
|
|
18999
18956
|
attr
|
|
19000
18957
|
], AnchorTabs.prototype, "activeid", void 0);
|
|
19001
|
-
__decorate
|
|
18958
|
+
__decorate([
|
|
19002
18959
|
observable
|
|
19003
18960
|
], AnchorTabs.prototype, "tabs", void 0);
|
|
19004
|
-
__decorate
|
|
18961
|
+
__decorate([
|
|
19005
18962
|
observable
|
|
19006
18963
|
], AnchorTabs.prototype, "showScrollButtons", void 0);
|
|
19007
18964
|
applyMixins(AnchorTabs, StartEnd);
|
|
@@ -19248,10 +19205,10 @@
|
|
|
19248
19205
|
}
|
|
19249
19206
|
}
|
|
19250
19207
|
}
|
|
19251
|
-
__decorate
|
|
19208
|
+
__decorate([
|
|
19252
19209
|
attr({ mode: 'boolean' })
|
|
19253
19210
|
], AnchorTreeItem.prototype, "selected", void 0);
|
|
19254
|
-
__decorate
|
|
19211
|
+
__decorate([
|
|
19255
19212
|
attr({ mode: 'boolean' })
|
|
19256
19213
|
], AnchorTreeItem.prototype, "disabled", void 0);
|
|
19257
19214
|
// FoundationAnchor already applies the StartEnd mixin, so we don't need to do it here.
|
|
@@ -19668,16 +19625,16 @@
|
|
|
19668
19625
|
this.open = false;
|
|
19669
19626
|
}
|
|
19670
19627
|
}
|
|
19671
|
-
__decorate
|
|
19628
|
+
__decorate([
|
|
19672
19629
|
attr({ mode: 'boolean' })
|
|
19673
19630
|
], Banner.prototype, "open", void 0);
|
|
19674
|
-
__decorate
|
|
19631
|
+
__decorate([
|
|
19675
19632
|
attr()
|
|
19676
19633
|
], Banner.prototype, "severity", void 0);
|
|
19677
|
-
__decorate
|
|
19634
|
+
__decorate([
|
|
19678
19635
|
attr({ attribute: 'title-hidden', mode: 'boolean' })
|
|
19679
19636
|
], Banner.prototype, "titleHidden", void 0);
|
|
19680
|
-
__decorate
|
|
19637
|
+
__decorate([
|
|
19681
19638
|
attr({ attribute: 'prevent-dismiss', mode: 'boolean' })
|
|
19682
19639
|
], Banner.prototype, "preventDismiss", void 0);
|
|
19683
19640
|
applyMixins(Banner, ARIAGlobalStatesAndProperties);
|
|
@@ -19711,7 +19668,7 @@
|
|
|
19711
19668
|
*/
|
|
19712
19669
|
class Breadcrumb extends Breadcrumb$1 {
|
|
19713
19670
|
}
|
|
19714
|
-
__decorate
|
|
19671
|
+
__decorate([
|
|
19715
19672
|
attr
|
|
19716
19673
|
], Breadcrumb.prototype, "appearance", void 0);
|
|
19717
19674
|
const nimbleBreadcrumb = Breadcrumb.compose({
|
|
@@ -20013,12 +19970,12 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20013
19970
|
this.selected = false;
|
|
20014
19971
|
}
|
|
20015
19972
|
}
|
|
20016
|
-
__decorate
|
|
19973
|
+
__decorate([
|
|
20017
19974
|
attr({ mode: 'boolean' })
|
|
20018
19975
|
], CardButton.prototype, "selected", void 0);
|
|
20019
19976
|
/**
|
|
20020
19977
|
* A function that returns a nimble-card-button registration for configuring the component with a DesignSystem.
|
|
20021
|
-
* Implements {@link @
|
|
19978
|
+
* Implements {@link @ni/fast-foundation#buttonTemplate}
|
|
20022
19979
|
*
|
|
20023
19980
|
* @public
|
|
20024
19981
|
* @remarks
|
|
@@ -20344,7 +20301,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20344
20301
|
return this.disabled ? undefined : `${tabIndex}`;
|
|
20345
20302
|
}
|
|
20346
20303
|
}
|
|
20347
|
-
__decorate
|
|
20304
|
+
__decorate([
|
|
20348
20305
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
20349
20306
|
], Checkbox.prototype, "tabIndex", void 0);
|
|
20350
20307
|
const nimbleCheckbox = Checkbox.compose({
|
|
@@ -20489,16 +20446,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
20489
20446
|
return this.disabled ? undefined : `${tabIndex}`;
|
|
20490
20447
|
}
|
|
20491
20448
|
}
|
|
20492
|
-
__decorate
|
|
20449
|
+
__decorate([
|
|
20493
20450
|
attr
|
|
20494
20451
|
], ToggleButton.prototype, "appearance", void 0);
|
|
20495
|
-
__decorate
|
|
20452
|
+
__decorate([
|
|
20496
20453
|
attr({ attribute: 'appearance-variant' })
|
|
20497
20454
|
], ToggleButton.prototype, "appearanceVariant", void 0);
|
|
20498
|
-
__decorate
|
|
20455
|
+
__decorate([
|
|
20499
20456
|
attr({ attribute: 'content-hidden', mode: 'boolean' })
|
|
20500
20457
|
], ToggleButton.prototype, "contentHidden", void 0);
|
|
20501
|
-
__decorate
|
|
20458
|
+
__decorate([
|
|
20502
20459
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
20503
20460
|
], ToggleButton.prototype, "tabIndex", void 0);
|
|
20504
20461
|
applyMixins(ToggleButton, StartEnd, DelegatesARIAButton);
|
|
@@ -21670,46 +21627,46 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21670
21627
|
return this.options.findIndex(o => !o.disabled && o.text === optionText);
|
|
21671
21628
|
}
|
|
21672
21629
|
}
|
|
21673
|
-
__decorate
|
|
21630
|
+
__decorate([
|
|
21674
21631
|
attr
|
|
21675
21632
|
], Combobox.prototype, "appearance", void 0);
|
|
21676
|
-
__decorate
|
|
21633
|
+
__decorate([
|
|
21677
21634
|
attr({ attribute: 'autocomplete', mode: 'fromView' })
|
|
21678
21635
|
], Combobox.prototype, "autocomplete", void 0);
|
|
21679
|
-
__decorate
|
|
21636
|
+
__decorate([
|
|
21680
21637
|
attr({ attribute: 'position' })
|
|
21681
21638
|
], Combobox.prototype, "positionAttribute", void 0);
|
|
21682
|
-
__decorate
|
|
21639
|
+
__decorate([
|
|
21683
21640
|
attr({ attribute: 'open', mode: 'boolean' })
|
|
21684
21641
|
], Combobox.prototype, "open", void 0);
|
|
21685
|
-
__decorate
|
|
21642
|
+
__decorate([
|
|
21686
21643
|
attr
|
|
21687
21644
|
], Combobox.prototype, "placeholder", void 0);
|
|
21688
|
-
__decorate
|
|
21645
|
+
__decorate([
|
|
21689
21646
|
observable
|
|
21690
21647
|
], Combobox.prototype, "position", void 0);
|
|
21691
|
-
__decorate
|
|
21648
|
+
__decorate([
|
|
21692
21649
|
observable
|
|
21693
21650
|
], Combobox.prototype, "region", void 0);
|
|
21694
|
-
__decorate
|
|
21651
|
+
__decorate([
|
|
21695
21652
|
observable
|
|
21696
21653
|
], Combobox.prototype, "controlWrapper", void 0);
|
|
21697
|
-
__decorate
|
|
21654
|
+
__decorate([
|
|
21698
21655
|
observable
|
|
21699
21656
|
], Combobox.prototype, "control", void 0);
|
|
21700
|
-
__decorate
|
|
21657
|
+
__decorate([
|
|
21701
21658
|
observable
|
|
21702
21659
|
], Combobox.prototype, "listbox", void 0);
|
|
21703
|
-
__decorate
|
|
21660
|
+
__decorate([
|
|
21704
21661
|
observable
|
|
21705
21662
|
], Combobox.prototype, "dropdownButton", void 0);
|
|
21706
|
-
__decorate
|
|
21663
|
+
__decorate([
|
|
21707
21664
|
observable
|
|
21708
21665
|
], Combobox.prototype, "filteredOptions", void 0);
|
|
21709
|
-
__decorate
|
|
21666
|
+
__decorate([
|
|
21710
21667
|
observable
|
|
21711
21668
|
], Combobox.prototype, "hasOverflow", void 0);
|
|
21712
|
-
__decorate
|
|
21669
|
+
__decorate([
|
|
21713
21670
|
observable
|
|
21714
21671
|
], Combobox.prototype, "availableViewportHeight", void 0);
|
|
21715
21672
|
const nimbleCombobox = Combobox.compose({
|
|
@@ -21983,19 +21940,19 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
21983
21940
|
// We want the member to match the name of the constant
|
|
21984
21941
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
21985
21942
|
Dialog.UserDismissed = UserDismissed;
|
|
21986
|
-
__decorate
|
|
21943
|
+
__decorate([
|
|
21987
21944
|
attr({ attribute: 'prevent-dismiss', mode: 'boolean' })
|
|
21988
21945
|
], Dialog.prototype, "preventDismiss", void 0);
|
|
21989
|
-
__decorate
|
|
21946
|
+
__decorate([
|
|
21990
21947
|
attr({ attribute: 'header-hidden', mode: 'boolean' })
|
|
21991
21948
|
], Dialog.prototype, "headerHidden", void 0);
|
|
21992
|
-
__decorate
|
|
21949
|
+
__decorate([
|
|
21993
21950
|
attr({ attribute: 'footer-hidden', mode: 'boolean' })
|
|
21994
21951
|
], Dialog.prototype, "footerHidden", void 0);
|
|
21995
|
-
__decorate
|
|
21952
|
+
__decorate([
|
|
21996
21953
|
observable
|
|
21997
21954
|
], Dialog.prototype, "footerIsEmpty", void 0);
|
|
21998
|
-
__decorate
|
|
21955
|
+
__decorate([
|
|
21999
21956
|
observable
|
|
22000
21957
|
], Dialog.prototype, "slottedFooterElements", void 0);
|
|
22001
21958
|
applyMixins(Dialog, ARIAGlobalStatesAndProperties);
|
|
@@ -22283,10 +22240,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
22283
22240
|
// We want the member to match the name of the constant
|
|
22284
22241
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
22285
22242
|
Drawer.UserDismissed = UserDismissed;
|
|
22286
|
-
__decorate
|
|
22243
|
+
__decorate([
|
|
22287
22244
|
attr
|
|
22288
22245
|
], Drawer.prototype, "location", void 0);
|
|
22289
|
-
__decorate
|
|
22246
|
+
__decorate([
|
|
22290
22247
|
attr({ attribute: 'prevent-dismiss', mode: 'boolean' })
|
|
22291
22248
|
], Drawer.prototype, "preventDismiss", void 0);
|
|
22292
22249
|
applyMixins(Drawer, ARIAGlobalStatesAndProperties);
|
|
@@ -24836,37 +24793,37 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
24836
24793
|
this.supportedLabels = supportedLabels$1;
|
|
24837
24794
|
}
|
|
24838
24795
|
}
|
|
24839
|
-
__decorate
|
|
24796
|
+
__decorate([
|
|
24840
24797
|
attr({ attribute: 'popup-dismiss' })
|
|
24841
24798
|
], LabelProviderCore.prototype, "popupDismiss", void 0);
|
|
24842
|
-
__decorate
|
|
24799
|
+
__decorate([
|
|
24843
24800
|
attr({ attribute: 'numeric-decrement' })
|
|
24844
24801
|
], LabelProviderCore.prototype, "numericDecrement", void 0);
|
|
24845
|
-
__decorate
|
|
24802
|
+
__decorate([
|
|
24846
24803
|
attr({ attribute: 'numeric-increment' })
|
|
24847
24804
|
], LabelProviderCore.prototype, "numericIncrement", void 0);
|
|
24848
|
-
__decorate
|
|
24805
|
+
__decorate([
|
|
24849
24806
|
attr({ attribute: 'popup-icon-error' })
|
|
24850
24807
|
], LabelProviderCore.prototype, "popupIconError", void 0);
|
|
24851
|
-
__decorate
|
|
24808
|
+
__decorate([
|
|
24852
24809
|
attr({ attribute: 'popup-icon-warning' })
|
|
24853
24810
|
], LabelProviderCore.prototype, "popupIconWarning", void 0);
|
|
24854
|
-
__decorate
|
|
24811
|
+
__decorate([
|
|
24855
24812
|
attr({ attribute: 'popup-icon-information' })
|
|
24856
24813
|
], LabelProviderCore.prototype, "popupIconInformation", void 0);
|
|
24857
|
-
__decorate
|
|
24814
|
+
__decorate([
|
|
24858
24815
|
attr({ attribute: 'filter-search' })
|
|
24859
24816
|
], LabelProviderCore.prototype, "filterSearch", void 0);
|
|
24860
|
-
__decorate
|
|
24817
|
+
__decorate([
|
|
24861
24818
|
attr({ attribute: 'filter-no-results' })
|
|
24862
24819
|
], LabelProviderCore.prototype, "filterNoResults", void 0);
|
|
24863
|
-
__decorate
|
|
24820
|
+
__decorate([
|
|
24864
24821
|
attr({ attribute: 'loading' })
|
|
24865
24822
|
], LabelProviderCore.prototype, "loading", void 0);
|
|
24866
|
-
__decorate
|
|
24823
|
+
__decorate([
|
|
24867
24824
|
attr({ attribute: 'scroll-backward' })
|
|
24868
24825
|
], LabelProviderCore.prototype, "scrollBackward", void 0);
|
|
24869
|
-
__decorate
|
|
24826
|
+
__decorate([
|
|
24870
24827
|
attr({ attribute: 'scroll-forward' })
|
|
24871
24828
|
], LabelProviderCore.prototype, "scrollForward", void 0);
|
|
24872
24829
|
const nimbleLabelProviderCore = LabelProviderCore.compose({
|
|
@@ -24988,52 +24945,52 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
24988
24945
|
this.supportedLabels = supportedLabels;
|
|
24989
24946
|
}
|
|
24990
24947
|
}
|
|
24991
|
-
__decorate
|
|
24948
|
+
__decorate([
|
|
24992
24949
|
attr({ attribute: 'group-collapse' })
|
|
24993
24950
|
], LabelProviderTable.prototype, "groupCollapse", void 0);
|
|
24994
|
-
__decorate
|
|
24951
|
+
__decorate([
|
|
24995
24952
|
attr({ attribute: 'group-expand' })
|
|
24996
24953
|
], LabelProviderTable.prototype, "groupExpand", void 0);
|
|
24997
|
-
__decorate
|
|
24954
|
+
__decorate([
|
|
24998
24955
|
attr({ attribute: 'row-collapse' })
|
|
24999
24956
|
], LabelProviderTable.prototype, "rowCollapse", void 0);
|
|
25000
|
-
__decorate
|
|
24957
|
+
__decorate([
|
|
25001
24958
|
attr({ attribute: 'row-expand' })
|
|
25002
24959
|
], LabelProviderTable.prototype, "rowExpand", void 0);
|
|
25003
|
-
__decorate
|
|
24960
|
+
__decorate([
|
|
25004
24961
|
attr({ attribute: 'collapse-all' })
|
|
25005
24962
|
], LabelProviderTable.prototype, "collapseAll", void 0);
|
|
25006
|
-
__decorate
|
|
24963
|
+
__decorate([
|
|
25007
24964
|
attr({ attribute: 'cell-action-menu' })
|
|
25008
24965
|
], LabelProviderTable.prototype, "cellActionMenu", void 0);
|
|
25009
|
-
__decorate
|
|
24966
|
+
__decorate([
|
|
25010
24967
|
attr({ attribute: 'column-header-grouped' })
|
|
25011
24968
|
], LabelProviderTable.prototype, "columnHeaderGrouped", void 0);
|
|
25012
|
-
__decorate
|
|
24969
|
+
__decorate([
|
|
25013
24970
|
attr({ attribute: 'column-header-sorted-ascending' })
|
|
25014
24971
|
], LabelProviderTable.prototype, "columnHeaderSortedAscending", void 0);
|
|
25015
|
-
__decorate
|
|
24972
|
+
__decorate([
|
|
25016
24973
|
attr({ attribute: 'column-header-sorted-descending' })
|
|
25017
24974
|
], LabelProviderTable.prototype, "columnHeaderSortedDescending", void 0);
|
|
25018
|
-
__decorate
|
|
24975
|
+
__decorate([
|
|
25019
24976
|
attr({ attribute: 'select-all' })
|
|
25020
24977
|
], LabelProviderTable.prototype, "selectAll", void 0);
|
|
25021
|
-
__decorate
|
|
24978
|
+
__decorate([
|
|
25022
24979
|
attr({ attribute: 'group-select-all' })
|
|
25023
24980
|
], LabelProviderTable.prototype, "groupSelectAll", void 0);
|
|
25024
|
-
__decorate
|
|
24981
|
+
__decorate([
|
|
25025
24982
|
attr({ attribute: 'row-select' })
|
|
25026
24983
|
], LabelProviderTable.prototype, "rowSelect", void 0);
|
|
25027
|
-
__decorate
|
|
24984
|
+
__decorate([
|
|
25028
24985
|
attr({ attribute: 'row-operation-column' })
|
|
25029
24986
|
], LabelProviderTable.prototype, "rowOperationColumn", void 0);
|
|
25030
|
-
__decorate
|
|
24987
|
+
__decorate([
|
|
25031
24988
|
attr({ attribute: 'row-loading' })
|
|
25032
24989
|
], LabelProviderTable.prototype, "rowLoading", void 0);
|
|
25033
|
-
__decorate
|
|
24990
|
+
__decorate([
|
|
25034
24991
|
attr({ attribute: 'group-row-placeholder-no-value' })
|
|
25035
24992
|
], LabelProviderTable.prototype, "groupRowPlaceholderNoValue", void 0);
|
|
25036
|
-
__decorate
|
|
24993
|
+
__decorate([
|
|
25037
24994
|
attr({ attribute: 'group-row-placeholder-empty' })
|
|
25038
24995
|
], LabelProviderTable.prototype, "groupRowPlaceholderEmpty", void 0);
|
|
25039
24996
|
const nimbleLabelProviderTable = LabelProviderTable.compose({
|
|
@@ -25117,7 +25074,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25117
25074
|
|
|
25118
25075
|
// Based on template in FAST repo: https://github.com/microsoft/fast/blob/2ea80697bc3a5193e6123fb08ac3be2a76571aeb/packages/web-components/fast-foundation/src/listbox-option/listbox-option.template.ts
|
|
25119
25076
|
/**
|
|
25120
|
-
* The template for the {@link @
|
|
25077
|
+
* The template for the {@link @ni/fast-foundation#(ListboxOption:class)} component.
|
|
25121
25078
|
* @public
|
|
25122
25079
|
*/
|
|
25123
25080
|
// prettier-ignore
|
|
@@ -25219,16 +25176,16 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25219
25176
|
return typeof parent.registerOption === 'function';
|
|
25220
25177
|
}
|
|
25221
25178
|
}
|
|
25222
|
-
__decorate
|
|
25179
|
+
__decorate([
|
|
25223
25180
|
attr({ mode: 'boolean' })
|
|
25224
25181
|
], ListOption.prototype, "hidden", void 0);
|
|
25225
|
-
__decorate
|
|
25182
|
+
__decorate([
|
|
25226
25183
|
attr({ attribute: 'visually-hidden', mode: 'boolean' })
|
|
25227
25184
|
], ListOption.prototype, "visuallyHidden", void 0);
|
|
25228
|
-
__decorate
|
|
25185
|
+
__decorate([
|
|
25229
25186
|
attr({ attribute: 'active-option', mode: 'boolean' })
|
|
25230
25187
|
], ListOption.prototype, "activeOption", void 0);
|
|
25231
|
-
__decorate
|
|
25188
|
+
__decorate([
|
|
25232
25189
|
observable
|
|
25233
25190
|
], ListOption.prototype, "hasOverflow", void 0);
|
|
25234
25191
|
const nimbleListOption = ListOption.compose({
|
|
@@ -25418,28 +25375,28 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25418
25375
|
this.visuallyHidden = next.length === 0 || allOptionsHidden;
|
|
25419
25376
|
}
|
|
25420
25377
|
}
|
|
25421
|
-
__decorate
|
|
25378
|
+
__decorate([
|
|
25422
25379
|
attr
|
|
25423
25380
|
], ListOptionGroup.prototype, "label", void 0);
|
|
25424
|
-
__decorate
|
|
25381
|
+
__decorate([
|
|
25425
25382
|
attr({ mode: 'boolean' })
|
|
25426
25383
|
], ListOptionGroup.prototype, "hidden", void 0);
|
|
25427
|
-
__decorate
|
|
25384
|
+
__decorate([
|
|
25428
25385
|
attr({ attribute: 'visually-hidden', mode: 'boolean' })
|
|
25429
25386
|
], ListOptionGroup.prototype, "visuallyHidden", void 0);
|
|
25430
|
-
__decorate
|
|
25387
|
+
__decorate([
|
|
25431
25388
|
attr({ attribute: 'top-separator-visible', mode: 'boolean' })
|
|
25432
25389
|
], ListOptionGroup.prototype, "topSeparatorVisible", void 0);
|
|
25433
|
-
__decorate
|
|
25390
|
+
__decorate([
|
|
25434
25391
|
attr({ attribute: 'bottom-separator-visible', mode: 'boolean' })
|
|
25435
25392
|
], ListOptionGroup.prototype, "bottomSeparatorVisible", void 0);
|
|
25436
|
-
__decorate
|
|
25393
|
+
__decorate([
|
|
25437
25394
|
observable
|
|
25438
25395
|
], ListOptionGroup.prototype, "hasOverflow", void 0);
|
|
25439
|
-
__decorate
|
|
25396
|
+
__decorate([
|
|
25440
25397
|
observable
|
|
25441
25398
|
], ListOptionGroup.prototype, "listOptions", void 0);
|
|
25442
|
-
__decorate
|
|
25399
|
+
__decorate([
|
|
25443
25400
|
volatile
|
|
25444
25401
|
], ListOptionGroup.prototype, "labelContent", null);
|
|
25445
25402
|
const nimbleListOptionGroup = ListOptionGroup.compose({
|
|
@@ -25457,7 +25414,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25457
25414
|
*/
|
|
25458
25415
|
let Mapping$1 = class Mapping extends FoundationElement {
|
|
25459
25416
|
};
|
|
25460
|
-
__decorate
|
|
25417
|
+
__decorate([
|
|
25461
25418
|
attr()
|
|
25462
25419
|
], Mapping$1.prototype, "key", void 0);
|
|
25463
25420
|
|
|
@@ -25474,7 +25431,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25474
25431
|
*/
|
|
25475
25432
|
class MappingEmpty extends Mapping$1 {
|
|
25476
25433
|
}
|
|
25477
|
-
__decorate
|
|
25434
|
+
__decorate([
|
|
25478
25435
|
attr()
|
|
25479
25436
|
], MappingEmpty.prototype, "text", void 0);
|
|
25480
25437
|
const emptyMapping = MappingEmpty.compose({
|
|
@@ -25533,19 +25490,19 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25533
25490
|
void this.resolveIconAsync(icon);
|
|
25534
25491
|
}
|
|
25535
25492
|
}
|
|
25536
|
-
__decorate
|
|
25493
|
+
__decorate([
|
|
25537
25494
|
attr()
|
|
25538
25495
|
], MappingIcon.prototype, "icon", void 0);
|
|
25539
|
-
__decorate
|
|
25496
|
+
__decorate([
|
|
25540
25497
|
attr()
|
|
25541
25498
|
], MappingIcon.prototype, "severity", void 0);
|
|
25542
|
-
__decorate
|
|
25499
|
+
__decorate([
|
|
25543
25500
|
attr()
|
|
25544
25501
|
], MappingIcon.prototype, "text", void 0);
|
|
25545
|
-
__decorate
|
|
25502
|
+
__decorate([
|
|
25546
25503
|
attr({ attribute: 'text-hidden', mode: 'boolean' })
|
|
25547
25504
|
], MappingIcon.prototype, "textHidden", void 0);
|
|
25548
|
-
__decorate
|
|
25505
|
+
__decorate([
|
|
25549
25506
|
observable
|
|
25550
25507
|
], MappingIcon.prototype, "resolvedIcon", void 0);
|
|
25551
25508
|
const iconMapping = MappingIcon.compose({
|
|
@@ -25566,10 +25523,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25566
25523
|
this.textHidden = false;
|
|
25567
25524
|
}
|
|
25568
25525
|
}
|
|
25569
|
-
__decorate
|
|
25526
|
+
__decorate([
|
|
25570
25527
|
attr()
|
|
25571
25528
|
], MappingSpinner.prototype, "text", void 0);
|
|
25572
|
-
__decorate
|
|
25529
|
+
__decorate([
|
|
25573
25530
|
attr({ attribute: 'text-hidden', mode: 'boolean' })
|
|
25574
25531
|
], MappingSpinner.prototype, "textHidden", void 0);
|
|
25575
25532
|
const spinnerMapping = MappingSpinner.compose({
|
|
@@ -25586,7 +25543,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25586
25543
|
*/
|
|
25587
25544
|
class MappingText extends Mapping$1 {
|
|
25588
25545
|
}
|
|
25589
|
-
__decorate
|
|
25546
|
+
__decorate([
|
|
25590
25547
|
attr()
|
|
25591
25548
|
], MappingText.prototype, "text", void 0);
|
|
25592
25549
|
const textMapping = MappingText.compose({
|
|
@@ -25887,10 +25844,10 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25887
25844
|
}
|
|
25888
25845
|
};
|
|
25889
25846
|
Menu$1.focusableElementRoles = roleForMenuItem;
|
|
25890
|
-
__decorate
|
|
25847
|
+
__decorate([
|
|
25891
25848
|
observable
|
|
25892
25849
|
], Menu$1.prototype, "items", void 0);
|
|
25893
|
-
__decorate
|
|
25850
|
+
__decorate([
|
|
25894
25851
|
observable
|
|
25895
25852
|
], Menu$1.prototype, "itemIcons", void 0);
|
|
25896
25853
|
|
|
@@ -25975,7 +25932,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
25975
25932
|
}
|
|
25976
25933
|
/**
|
|
25977
25934
|
* A function that returns a nimble-menu registration for configuring the component with a DesignSystem.
|
|
25978
|
-
* Implements {@link @
|
|
25935
|
+
* Implements {@link @ni/fast-foundation#menuTemplate}
|
|
25979
25936
|
*
|
|
25980
25937
|
* @public
|
|
25981
25938
|
* @remarks
|
|
@@ -26238,34 +26195,34 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26238
26195
|
}
|
|
26239
26196
|
}
|
|
26240
26197
|
}
|
|
26241
|
-
__decorate
|
|
26198
|
+
__decorate([
|
|
26242
26199
|
attr
|
|
26243
26200
|
], MenuButton.prototype, "appearance", void 0);
|
|
26244
|
-
__decorate
|
|
26201
|
+
__decorate([
|
|
26245
26202
|
attr({ attribute: 'appearance-variant' })
|
|
26246
26203
|
], MenuButton.prototype, "appearanceVariant", void 0);
|
|
26247
|
-
__decorate
|
|
26204
|
+
__decorate([
|
|
26248
26205
|
attr({ mode: 'boolean' })
|
|
26249
26206
|
], MenuButton.prototype, "disabled", void 0);
|
|
26250
|
-
__decorate
|
|
26207
|
+
__decorate([
|
|
26251
26208
|
attr({ attribute: 'content-hidden', mode: 'boolean' })
|
|
26252
26209
|
], MenuButton.prototype, "contentHidden", void 0);
|
|
26253
|
-
__decorate
|
|
26210
|
+
__decorate([
|
|
26254
26211
|
attr({ attribute: 'tabindex', converter: nullableNumberConverter })
|
|
26255
26212
|
], MenuButton.prototype, "tabIndex", void 0);
|
|
26256
|
-
__decorate
|
|
26213
|
+
__decorate([
|
|
26257
26214
|
attr({ mode: 'boolean' })
|
|
26258
26215
|
], MenuButton.prototype, "open", void 0);
|
|
26259
|
-
__decorate
|
|
26216
|
+
__decorate([
|
|
26260
26217
|
attr({ attribute: 'position' })
|
|
26261
26218
|
], MenuButton.prototype, "position", void 0);
|
|
26262
|
-
__decorate
|
|
26219
|
+
__decorate([
|
|
26263
26220
|
observable
|
|
26264
26221
|
], MenuButton.prototype, "toggleButton", void 0);
|
|
26265
|
-
__decorate
|
|
26222
|
+
__decorate([
|
|
26266
26223
|
observable
|
|
26267
26224
|
], MenuButton.prototype, "region", void 0);
|
|
26268
|
-
__decorate
|
|
26225
|
+
__decorate([
|
|
26269
26226
|
observable
|
|
26270
26227
|
], MenuButton.prototype, "slottedMenus", void 0);
|
|
26271
26228
|
const nimbleMenuButton = MenuButton.compose({
|
|
@@ -26365,7 +26322,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26365
26322
|
}
|
|
26366
26323
|
/**
|
|
26367
26324
|
* A function that returns a nimble-menu-item registration for configuring the component with a DesignSystem.
|
|
26368
|
-
* Implements {@link @
|
|
26325
|
+
* Implements {@link @ni/fast-foundation#menuItemTemplate}
|
|
26369
26326
|
*
|
|
26370
26327
|
* @public
|
|
26371
26328
|
* @remarks
|
|
@@ -26589,7 +26546,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26589
26546
|
<slot ${slotted('defaultSlottedNodes')}></slot>
|
|
26590
26547
|
</label>`);
|
|
26591
26548
|
/**
|
|
26592
|
-
* The template for the {@link @
|
|
26549
|
+
* The template for the {@link @ni/fast-foundation#(NumberField:class)} component.
|
|
26593
26550
|
* @public
|
|
26594
26551
|
*/
|
|
26595
26552
|
const template$w = (context, definition) => html `
|
|
@@ -26682,7 +26639,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26682
26639
|
this.control.setAttribute('role', 'spinbutton');
|
|
26683
26640
|
}
|
|
26684
26641
|
}
|
|
26685
|
-
__decorate
|
|
26642
|
+
__decorate([
|
|
26686
26643
|
attr
|
|
26687
26644
|
], NumberField.prototype, "appearance", void 0);
|
|
26688
26645
|
/**
|
|
@@ -45671,19 +45628,19 @@ img.ProseMirror-separator {
|
|
|
45671
45628
|
this.open = value;
|
|
45672
45629
|
}
|
|
45673
45630
|
}
|
|
45674
|
-
__decorate
|
|
45631
|
+
__decorate([
|
|
45675
45632
|
observable
|
|
45676
45633
|
], RichTextMentionListbox.prototype, "open", void 0);
|
|
45677
|
-
__decorate
|
|
45634
|
+
__decorate([
|
|
45678
45635
|
observable
|
|
45679
45636
|
], RichTextMentionListbox.prototype, "region", void 0);
|
|
45680
|
-
__decorate
|
|
45637
|
+
__decorate([
|
|
45681
45638
|
observable
|
|
45682
45639
|
], RichTextMentionListbox.prototype, "availableViewportHeight", void 0);
|
|
45683
|
-
__decorate
|
|
45640
|
+
__decorate([
|
|
45684
45641
|
observable
|
|
45685
45642
|
], RichTextMentionListbox.prototype, "filteredOptions", void 0);
|
|
45686
|
-
__decorate
|
|
45643
|
+
__decorate([
|
|
45687
45644
|
observable
|
|
45688
45645
|
], RichTextMentionListbox.prototype, "anchorElement", void 0);
|
|
45689
45646
|
const nimbleRichTextMentionListbox = RichTextMentionListbox.compose({
|
|
@@ -55493,13 +55450,13 @@ img.ProseMirror-separator {
|
|
|
55493
55450
|
this.mentionUpdateEmitter = mentionUpdateEmitter;
|
|
55494
55451
|
}
|
|
55495
55452
|
}
|
|
55496
|
-
__decorate
|
|
55453
|
+
__decorate([
|
|
55497
55454
|
observable
|
|
55498
55455
|
], MentionInternals.prototype, "mappingConfigs", void 0);
|
|
55499
|
-
__decorate
|
|
55456
|
+
__decorate([
|
|
55500
55457
|
observable
|
|
55501
55458
|
], MentionInternals.prototype, "pattern", void 0);
|
|
55502
|
-
__decorate
|
|
55459
|
+
__decorate([
|
|
55503
55460
|
observable
|
|
55504
55461
|
], MentionInternals.prototype, "buttonLabel", void 0);
|
|
55505
55462
|
|
|
@@ -55595,13 +55552,13 @@ img.ProseMirror-separator {
|
|
|
55595
55552
|
}
|
|
55596
55553
|
}
|
|
55597
55554
|
}
|
|
55598
|
-
__decorate
|
|
55555
|
+
__decorate([
|
|
55599
55556
|
attr
|
|
55600
55557
|
], RichTextMention.prototype, "pattern", void 0);
|
|
55601
|
-
__decorate
|
|
55558
|
+
__decorate([
|
|
55602
55559
|
attr({ attribute: 'button-label' })
|
|
55603
55560
|
], RichTextMention.prototype, "buttonLabel", void 0);
|
|
55604
|
-
__decorate
|
|
55561
|
+
__decorate([
|
|
55605
55562
|
observable
|
|
55606
55563
|
], RichTextMention.prototype, "mappingElements", void 0);
|
|
55607
55564
|
|
|
@@ -55896,10 +55853,10 @@ img.ProseMirror-separator {
|
|
|
55896
55853
|
this.mentionInternalsNotifiers = [];
|
|
55897
55854
|
}
|
|
55898
55855
|
}
|
|
55899
|
-
__decorate
|
|
55856
|
+
__decorate([
|
|
55900
55857
|
observable
|
|
55901
55858
|
], RichText.prototype, "childItems", void 0);
|
|
55902
|
-
__decorate
|
|
55859
|
+
__decorate([
|
|
55903
55860
|
observable
|
|
55904
55861
|
], RichText.prototype, "configuration", void 0);
|
|
55905
55862
|
|
|
@@ -60430,34 +60387,34 @@ img.ProseMirror-separator {
|
|
|
60430
60387
|
};
|
|
60431
60388
|
}
|
|
60432
60389
|
}
|
|
60433
|
-
__decorate
|
|
60390
|
+
__decorate([
|
|
60434
60391
|
attr({ mode: 'boolean' })
|
|
60435
60392
|
], RichTextEditor.prototype, "disabled", void 0);
|
|
60436
|
-
__decorate
|
|
60393
|
+
__decorate([
|
|
60437
60394
|
attr({ attribute: 'footer-hidden', mode: 'boolean' })
|
|
60438
60395
|
], RichTextEditor.prototype, "footerHidden", void 0);
|
|
60439
|
-
__decorate
|
|
60396
|
+
__decorate([
|
|
60440
60397
|
attr
|
|
60441
60398
|
], RichTextEditor.prototype, "placeholder", void 0);
|
|
60442
|
-
__decorate
|
|
60399
|
+
__decorate([
|
|
60443
60400
|
observable
|
|
60444
60401
|
], RichTextEditor.prototype, "boldButton", void 0);
|
|
60445
|
-
__decorate
|
|
60402
|
+
__decorate([
|
|
60446
60403
|
observable
|
|
60447
60404
|
], RichTextEditor.prototype, "italicsButton", void 0);
|
|
60448
|
-
__decorate
|
|
60405
|
+
__decorate([
|
|
60449
60406
|
observable
|
|
60450
60407
|
], RichTextEditor.prototype, "bulletListButton", void 0);
|
|
60451
|
-
__decorate
|
|
60408
|
+
__decorate([
|
|
60452
60409
|
observable
|
|
60453
60410
|
], RichTextEditor.prototype, "numberedListButton", void 0);
|
|
60454
|
-
__decorate
|
|
60411
|
+
__decorate([
|
|
60455
60412
|
observable
|
|
60456
60413
|
], RichTextEditor.prototype, "scrollbarWidth", void 0);
|
|
60457
|
-
__decorate
|
|
60414
|
+
__decorate([
|
|
60458
60415
|
observable
|
|
60459
60416
|
], RichTextEditor.prototype, "activeMentionCharacter", void 0);
|
|
60460
|
-
__decorate
|
|
60417
|
+
__decorate([
|
|
60461
60418
|
observable
|
|
60462
60419
|
], RichTextEditor.prototype, "activeMappingConfigs", void 0);
|
|
60463
60420
|
applyMixins(RichTextEditor, ARIAGlobalStatesAndProperties);
|
|
@@ -60544,6 +60501,8 @@ img.ProseMirror-separator {
|
|
|
60544
60501
|
*
|
|
60545
60502
|
* @public
|
|
60546
60503
|
* Markdown string to render its corresponding rich text content in the component.
|
|
60504
|
+
* @remarks
|
|
60505
|
+
* HTML Attribute: markdown
|
|
60547
60506
|
*/
|
|
60548
60507
|
this.markdown = '';
|
|
60549
60508
|
this.mentionedHrefs = [];
|
|
@@ -60585,8 +60544,8 @@ img.ProseMirror-separator {
|
|
|
60585
60544
|
}
|
|
60586
60545
|
}
|
|
60587
60546
|
}
|
|
60588
|
-
__decorate
|
|
60589
|
-
|
|
60547
|
+
__decorate([
|
|
60548
|
+
attr({ mode: 'fromView' })
|
|
60590
60549
|
], RichTextViewer.prototype, "markdown", void 0);
|
|
60591
60550
|
const nimbleRichTextViewer = RichTextViewer.compose({
|
|
60592
60551
|
baseName: 'rich-text-viewer',
|
|
@@ -60970,7 +60929,7 @@ img.ProseMirror-separator {
|
|
|
60970
60929
|
this.appearance = SpinnerAppearance.default;
|
|
60971
60930
|
}
|
|
60972
60931
|
}
|
|
60973
|
-
__decorate
|
|
60932
|
+
__decorate([
|
|
60974
60933
|
attr
|
|
60975
60934
|
], Spinner.prototype, "appearance", void 0);
|
|
60976
60935
|
const nimbleSpinner = Spinner.compose({
|
|
@@ -62143,61 +62102,61 @@ img.ProseMirror-separator {
|
|
|
62143
62102
|
}
|
|
62144
62103
|
}
|
|
62145
62104
|
}
|
|
62146
|
-
__decorate
|
|
62105
|
+
__decorate([
|
|
62147
62106
|
attr
|
|
62148
62107
|
], Select.prototype, "appearance", void 0);
|
|
62149
|
-
__decorate
|
|
62108
|
+
__decorate([
|
|
62150
62109
|
attr({ attribute: 'position' })
|
|
62151
62110
|
], Select.prototype, "positionAttribute", void 0);
|
|
62152
|
-
__decorate
|
|
62111
|
+
__decorate([
|
|
62153
62112
|
attr({ attribute: 'filter-mode' })
|
|
62154
62113
|
], Select.prototype, "filterMode", void 0);
|
|
62155
|
-
__decorate
|
|
62114
|
+
__decorate([
|
|
62156
62115
|
attr({ attribute: 'clearable', mode: 'boolean' })
|
|
62157
62116
|
], Select.prototype, "clearable", void 0);
|
|
62158
|
-
__decorate
|
|
62117
|
+
__decorate([
|
|
62159
62118
|
attr({ attribute: 'loading-visible', mode: 'boolean' })
|
|
62160
62119
|
], Select.prototype, "loadingVisible", void 0);
|
|
62161
|
-
__decorate
|
|
62120
|
+
__decorate([
|
|
62162
62121
|
observable
|
|
62163
62122
|
], Select.prototype, "displayPlaceholder", void 0);
|
|
62164
|
-
__decorate
|
|
62123
|
+
__decorate([
|
|
62165
62124
|
attr({ attribute: 'open', mode: 'boolean' })
|
|
62166
62125
|
], Select.prototype, "open", void 0);
|
|
62167
|
-
__decorate
|
|
62126
|
+
__decorate([
|
|
62168
62127
|
observable
|
|
62169
62128
|
], Select.prototype, "position", void 0);
|
|
62170
|
-
__decorate
|
|
62129
|
+
__decorate([
|
|
62171
62130
|
observable
|
|
62172
62131
|
], Select.prototype, "control", void 0);
|
|
62173
|
-
__decorate
|
|
62132
|
+
__decorate([
|
|
62174
62133
|
observable
|
|
62175
62134
|
], Select.prototype, "scrollableRegion", void 0);
|
|
62176
|
-
__decorate
|
|
62135
|
+
__decorate([
|
|
62177
62136
|
observable
|
|
62178
62137
|
], Select.prototype, "filterInput", void 0);
|
|
62179
|
-
__decorate
|
|
62138
|
+
__decorate([
|
|
62180
62139
|
observable
|
|
62181
62140
|
], Select.prototype, "anchoredRegion", void 0);
|
|
62182
|
-
__decorate
|
|
62141
|
+
__decorate([
|
|
62183
62142
|
observable
|
|
62184
62143
|
], Select.prototype, "hasOverflow", void 0);
|
|
62185
|
-
__decorate
|
|
62144
|
+
__decorate([
|
|
62186
62145
|
observable
|
|
62187
62146
|
], Select.prototype, "filteredOptions", void 0);
|
|
62188
|
-
__decorate
|
|
62147
|
+
__decorate([
|
|
62189
62148
|
observable
|
|
62190
62149
|
], Select.prototype, "filter", void 0);
|
|
62191
|
-
__decorate
|
|
62150
|
+
__decorate([
|
|
62192
62151
|
observable
|
|
62193
62152
|
], Select.prototype, "availableViewportHeight", void 0);
|
|
62194
|
-
__decorate
|
|
62153
|
+
__decorate([
|
|
62195
62154
|
volatile
|
|
62196
62155
|
], Select.prototype, "collapsible", null);
|
|
62197
|
-
__decorate
|
|
62156
|
+
__decorate([
|
|
62198
62157
|
volatile
|
|
62199
62158
|
], Select.prototype, "labelContent", null);
|
|
62200
|
-
__decorate
|
|
62159
|
+
__decorate([
|
|
62201
62160
|
volatile
|
|
62202
62161
|
], Select.prototype, "displayValue", null);
|
|
62203
62162
|
const nimbleSelect = Select.compose({
|
|
@@ -63151,7 +63110,7 @@ img.ProseMirror-separator {
|
|
|
63151
63110
|
var _row$getValue4;
|
|
63152
63111
|
return (_row$getValue4 = row.getValue(columnId)) == null ? void 0 : _row$getValue4.includes(filterValue);
|
|
63153
63112
|
};
|
|
63154
|
-
arrIncludes.autoRemove = val => testFalsey(val)
|
|
63113
|
+
arrIncludes.autoRemove = val => testFalsey(val);
|
|
63155
63114
|
const arrIncludesAll = (row, columnId, filterValue) => {
|
|
63156
63115
|
return !filterValue.some(val => {
|
|
63157
63116
|
var _row$getValue5;
|
|
@@ -65849,10 +65808,10 @@ img.ProseMirror-separator {
|
|
|
65849
65808
|
*/
|
|
65850
65809
|
class TableGroupHeaderView extends FoundationElement {
|
|
65851
65810
|
}
|
|
65852
|
-
__decorate
|
|
65811
|
+
__decorate([
|
|
65853
65812
|
observable
|
|
65854
65813
|
], TableGroupHeaderView.prototype, "groupHeaderValue", void 0);
|
|
65855
|
-
__decorate
|
|
65814
|
+
__decorate([
|
|
65856
65815
|
observable
|
|
65857
65816
|
], TableGroupHeaderView.prototype, "columnConfig", void 0);
|
|
65858
65817
|
|
|
@@ -65922,16 +65881,16 @@ img.ProseMirror-separator {
|
|
|
65922
65881
|
}
|
|
65923
65882
|
}
|
|
65924
65883
|
}
|
|
65925
|
-
__decorate
|
|
65884
|
+
__decorate([
|
|
65926
65885
|
observable
|
|
65927
65886
|
], TableCellView.prototype, "cellRecord", void 0);
|
|
65928
|
-
__decorate
|
|
65887
|
+
__decorate([
|
|
65929
65888
|
observable
|
|
65930
65889
|
], TableCellView.prototype, "columnConfig", void 0);
|
|
65931
|
-
__decorate
|
|
65890
|
+
__decorate([
|
|
65932
65891
|
observable
|
|
65933
65892
|
], TableCellView.prototype, "column", void 0);
|
|
65934
|
-
__decorate
|
|
65893
|
+
__decorate([
|
|
65935
65894
|
observable
|
|
65936
65895
|
], TableCellView.prototype, "recordId", void 0);
|
|
65937
65896
|
|
|
@@ -66051,55 +66010,55 @@ img.ProseMirror-separator {
|
|
|
66051
66010
|
this.currentPixelWidth = this.pixelWidth;
|
|
66052
66011
|
}
|
|
66053
66012
|
}
|
|
66054
|
-
__decorate
|
|
66013
|
+
__decorate([
|
|
66055
66014
|
observable
|
|
66056
66015
|
], ColumnInternals.prototype, "columnConfig", void 0);
|
|
66057
|
-
__decorate
|
|
66016
|
+
__decorate([
|
|
66058
66017
|
observable
|
|
66059
66018
|
], ColumnInternals.prototype, "operandDataRecordFieldName", void 0);
|
|
66060
|
-
__decorate
|
|
66019
|
+
__decorate([
|
|
66061
66020
|
observable
|
|
66062
66021
|
], ColumnInternals.prototype, "sortOperation", void 0);
|
|
66063
|
-
__decorate
|
|
66022
|
+
__decorate([
|
|
66064
66023
|
observable
|
|
66065
66024
|
], ColumnInternals.prototype, "dataRecordFieldNames", void 0);
|
|
66066
|
-
__decorate
|
|
66025
|
+
__decorate([
|
|
66067
66026
|
observable
|
|
66068
66027
|
], ColumnInternals.prototype, "groupingDisabled", void 0);
|
|
66069
|
-
__decorate
|
|
66028
|
+
__decorate([
|
|
66070
66029
|
observable
|
|
66071
66030
|
], ColumnInternals.prototype, "groupIndex", void 0);
|
|
66072
|
-
__decorate
|
|
66031
|
+
__decorate([
|
|
66073
66032
|
observable
|
|
66074
66033
|
], ColumnInternals.prototype, "pixelWidth", void 0);
|
|
66075
|
-
__decorate
|
|
66034
|
+
__decorate([
|
|
66076
66035
|
observable
|
|
66077
66036
|
], ColumnInternals.prototype, "fractionalWidth", void 0);
|
|
66078
|
-
__decorate
|
|
66037
|
+
__decorate([
|
|
66079
66038
|
observable
|
|
66080
66039
|
], ColumnInternals.prototype, "minPixelWidth", void 0);
|
|
66081
|
-
__decorate
|
|
66040
|
+
__decorate([
|
|
66082
66041
|
observable
|
|
66083
66042
|
], ColumnInternals.prototype, "resizingDisabled", void 0);
|
|
66084
|
-
__decorate
|
|
66043
|
+
__decorate([
|
|
66085
66044
|
observable
|
|
66086
66045
|
], ColumnInternals.prototype, "hideHeaderIndicators", void 0);
|
|
66087
|
-
__decorate
|
|
66046
|
+
__decorate([
|
|
66088
66047
|
observable
|
|
66089
66048
|
], ColumnInternals.prototype, "headerAlignment", void 0);
|
|
66090
|
-
__decorate
|
|
66049
|
+
__decorate([
|
|
66091
66050
|
observable
|
|
66092
66051
|
], ColumnInternals.prototype, "currentFractionalWidth", void 0);
|
|
66093
|
-
__decorate
|
|
66052
|
+
__decorate([
|
|
66094
66053
|
observable
|
|
66095
66054
|
], ColumnInternals.prototype, "currentPixelWidth", void 0);
|
|
66096
|
-
__decorate
|
|
66055
|
+
__decorate([
|
|
66097
66056
|
observable
|
|
66098
66057
|
], ColumnInternals.prototype, "sortingDisabled", void 0);
|
|
66099
|
-
__decorate
|
|
66058
|
+
__decorate([
|
|
66100
66059
|
observable
|
|
66101
66060
|
], ColumnInternals.prototype, "currentSortIndex", void 0);
|
|
66102
|
-
__decorate
|
|
66061
|
+
__decorate([
|
|
66103
66062
|
observable
|
|
66104
66063
|
], ColumnInternals.prototype, "currentSortDirection", void 0);
|
|
66105
66064
|
function isColumnInternalsProperty(changedProperty, ...args) {
|
|
@@ -66143,19 +66102,19 @@ img.ProseMirror-separator {
|
|
|
66143
66102
|
this.setAttribute('slot', this.columnInternals.uniqueId);
|
|
66144
66103
|
}
|
|
66145
66104
|
}
|
|
66146
|
-
__decorate
|
|
66105
|
+
__decorate([
|
|
66147
66106
|
attr({ attribute: 'column-id' })
|
|
66148
66107
|
], TableColumn.prototype, "columnId", void 0);
|
|
66149
|
-
__decorate
|
|
66108
|
+
__decorate([
|
|
66150
66109
|
attr({ attribute: 'action-menu-slot' })
|
|
66151
66110
|
], TableColumn.prototype, "actionMenuSlot", void 0);
|
|
66152
|
-
__decorate
|
|
66111
|
+
__decorate([
|
|
66153
66112
|
attr({ attribute: 'action-menu-label' })
|
|
66154
66113
|
], TableColumn.prototype, "actionMenuLabel", void 0);
|
|
66155
|
-
__decorate
|
|
66114
|
+
__decorate([
|
|
66156
66115
|
attr({ attribute: 'column-hidden', mode: 'boolean' })
|
|
66157
66116
|
], TableColumn.prototype, "columnHidden", void 0);
|
|
66158
|
-
__decorate
|
|
66117
|
+
__decorate([
|
|
66159
66118
|
observable
|
|
66160
66119
|
], TableColumn.prototype, "hasOverflow", void 0);
|
|
66161
66120
|
|
|
@@ -66609,19 +66568,19 @@ focus outline in that case.
|
|
|
66609
66568
|
}
|
|
66610
66569
|
}
|
|
66611
66570
|
}
|
|
66612
|
-
__decorate
|
|
66571
|
+
__decorate([
|
|
66613
66572
|
attr({ attribute: 'sort-direction' })
|
|
66614
66573
|
], TableHeader.prototype, "sortDirection", void 0);
|
|
66615
|
-
__decorate
|
|
66574
|
+
__decorate([
|
|
66616
66575
|
attr({ attribute: 'first-sorted-column', mode: 'boolean' })
|
|
66617
66576
|
], TableHeader.prototype, "firstSortedColumn", void 0);
|
|
66618
|
-
__decorate
|
|
66577
|
+
__decorate([
|
|
66619
66578
|
attr({ attribute: 'indicators-hidden', mode: 'boolean' })
|
|
66620
66579
|
], TableHeader.prototype, "indicatorsHidden", void 0);
|
|
66621
|
-
__decorate
|
|
66580
|
+
__decorate([
|
|
66622
66581
|
observable
|
|
66623
66582
|
], TableHeader.prototype, "alignment", void 0);
|
|
66624
|
-
__decorate
|
|
66583
|
+
__decorate([
|
|
66625
66584
|
observable
|
|
66626
66585
|
], TableHeader.prototype, "isGrouped", void 0);
|
|
66627
66586
|
const nimbleTableHeader = TableHeader.compose({
|
|
@@ -66940,34 +66899,34 @@ focus outline in that case.
|
|
|
66940
66899
|
this.$emit('cell-blur', this);
|
|
66941
66900
|
}
|
|
66942
66901
|
}
|
|
66943
|
-
__decorate
|
|
66902
|
+
__decorate([
|
|
66944
66903
|
observable
|
|
66945
66904
|
], TableCell.prototype, "cellState", void 0);
|
|
66946
|
-
__decorate
|
|
66905
|
+
__decorate([
|
|
66947
66906
|
observable
|
|
66948
66907
|
], TableCell.prototype, "column", void 0);
|
|
66949
|
-
__decorate
|
|
66908
|
+
__decorate([
|
|
66950
66909
|
observable
|
|
66951
66910
|
], TableCell.prototype, "recordId", void 0);
|
|
66952
|
-
__decorate
|
|
66911
|
+
__decorate([
|
|
66953
66912
|
attr({ attribute: 'column-id' })
|
|
66954
66913
|
], TableCell.prototype, "columnId", void 0);
|
|
66955
|
-
__decorate
|
|
66914
|
+
__decorate([
|
|
66956
66915
|
attr({ attribute: 'has-action-menu', mode: 'boolean' })
|
|
66957
66916
|
], TableCell.prototype, "hasActionMenu", void 0);
|
|
66958
|
-
__decorate
|
|
66917
|
+
__decorate([
|
|
66959
66918
|
attr({ attribute: 'menu-open', mode: 'boolean' })
|
|
66960
66919
|
], TableCell.prototype, "menuOpen", void 0);
|
|
66961
|
-
__decorate
|
|
66920
|
+
__decorate([
|
|
66962
66921
|
attr({ attribute: 'action-menu-label' })
|
|
66963
66922
|
], TableCell.prototype, "actionMenuLabel", void 0);
|
|
66964
|
-
__decorate
|
|
66923
|
+
__decorate([
|
|
66965
66924
|
observable
|
|
66966
66925
|
], TableCell.prototype, "cellViewTemplate", void 0);
|
|
66967
|
-
__decorate
|
|
66926
|
+
__decorate([
|
|
66968
66927
|
observable
|
|
66969
66928
|
], TableCell.prototype, "cellViewContainer", void 0);
|
|
66970
|
-
__decorate
|
|
66929
|
+
__decorate([
|
|
66971
66930
|
observable
|
|
66972
66931
|
], TableCell.prototype, "nestingLevel", void 0);
|
|
66973
66932
|
const nimbleTableCell = TableCell.compose({
|
|
@@ -67299,76 +67258,76 @@ focus outline in that case.
|
|
|
67299
67258
|
}
|
|
67300
67259
|
}
|
|
67301
67260
|
}
|
|
67302
|
-
__decorate
|
|
67261
|
+
__decorate([
|
|
67303
67262
|
attr({ attribute: 'record-id' })
|
|
67304
67263
|
], TableRow.prototype, "recordId", void 0);
|
|
67305
|
-
__decorate
|
|
67264
|
+
__decorate([
|
|
67306
67265
|
attr({ mode: 'boolean' })
|
|
67307
67266
|
], TableRow.prototype, "selectable", void 0);
|
|
67308
|
-
__decorate
|
|
67267
|
+
__decorate([
|
|
67309
67268
|
attr({ mode: 'boolean' })
|
|
67310
67269
|
], TableRow.prototype, "selected", void 0);
|
|
67311
|
-
__decorate
|
|
67270
|
+
__decorate([
|
|
67312
67271
|
attr({ attribute: 'hide-selection', mode: 'boolean' })
|
|
67313
67272
|
], TableRow.prototype, "hideSelection", void 0);
|
|
67314
|
-
__decorate
|
|
67273
|
+
__decorate([
|
|
67315
67274
|
attr({ mode: 'boolean' })
|
|
67316
67275
|
], TableRow.prototype, "expanded", void 0);
|
|
67317
|
-
__decorate
|
|
67276
|
+
__decorate([
|
|
67318
67277
|
attr({ attribute: 'reserve-collapse-space', mode: 'boolean' })
|
|
67319
67278
|
], TableRow.prototype, "reserveCollapseSpace", void 0);
|
|
67320
|
-
__decorate
|
|
67279
|
+
__decorate([
|
|
67321
67280
|
observable
|
|
67322
67281
|
], TableRow.prototype, "dataRecord", void 0);
|
|
67323
|
-
__decorate
|
|
67282
|
+
__decorate([
|
|
67324
67283
|
observable
|
|
67325
67284
|
], TableRow.prototype, "columns", void 0);
|
|
67326
|
-
__decorate
|
|
67285
|
+
__decorate([
|
|
67327
67286
|
observable
|
|
67328
67287
|
], TableRow.prototype, "currentActionMenuColumn", void 0);
|
|
67329
|
-
__decorate
|
|
67288
|
+
__decorate([
|
|
67330
67289
|
observable
|
|
67331
67290
|
], TableRow.prototype, "nestingLevel", void 0);
|
|
67332
|
-
__decorate
|
|
67291
|
+
__decorate([
|
|
67333
67292
|
observable
|
|
67334
67293
|
], TableRow.prototype, "resolvedRowIndex", void 0);
|
|
67335
|
-
__decorate
|
|
67294
|
+
__decorate([
|
|
67336
67295
|
attr({ attribute: 'is-parent-row', mode: 'boolean' })
|
|
67337
67296
|
], TableRow.prototype, "isParentRow", void 0);
|
|
67338
|
-
__decorate
|
|
67297
|
+
__decorate([
|
|
67339
67298
|
attr({ attribute: 'menu-open', mode: 'boolean' })
|
|
67340
67299
|
], TableRow.prototype, "menuOpen", void 0);
|
|
67341
|
-
__decorate
|
|
67300
|
+
__decorate([
|
|
67342
67301
|
attr({ attribute: 'row-operation-grid-cell-hidden', mode: 'boolean' })
|
|
67343
67302
|
], TableRow.prototype, "rowOperationGridCellHidden", void 0);
|
|
67344
|
-
__decorate
|
|
67303
|
+
__decorate([
|
|
67345
67304
|
attr({ mode: 'boolean' })
|
|
67346
67305
|
], TableRow.prototype, "loading", void 0);
|
|
67347
|
-
__decorate
|
|
67306
|
+
__decorate([
|
|
67348
67307
|
observable
|
|
67349
67308
|
], TableRow.prototype, "cellIndentLevels", void 0);
|
|
67350
|
-
__decorate
|
|
67309
|
+
__decorate([
|
|
67351
67310
|
observable
|
|
67352
67311
|
], TableRow.prototype, "cellStates", void 0);
|
|
67353
|
-
__decorate
|
|
67312
|
+
__decorate([
|
|
67354
67313
|
observable
|
|
67355
67314
|
], TableRow.prototype, "selectionCheckbox", void 0);
|
|
67356
|
-
__decorate
|
|
67315
|
+
__decorate([
|
|
67357
67316
|
observable
|
|
67358
67317
|
], TableRow.prototype, "animationClass", void 0);
|
|
67359
|
-
__decorate
|
|
67318
|
+
__decorate([
|
|
67360
67319
|
attr({ attribute: 'allow-hover', mode: 'boolean' })
|
|
67361
67320
|
], TableRow.prototype, "allowHover", void 0);
|
|
67362
|
-
__decorate
|
|
67321
|
+
__decorate([
|
|
67363
67322
|
volatile
|
|
67364
67323
|
], TableRow.prototype, "isTopLevelParentRow", null);
|
|
67365
|
-
__decorate
|
|
67324
|
+
__decorate([
|
|
67366
67325
|
volatile
|
|
67367
67326
|
], TableRow.prototype, "isNestedParent", null);
|
|
67368
|
-
__decorate
|
|
67327
|
+
__decorate([
|
|
67369
67328
|
volatile
|
|
67370
67329
|
], TableRow.prototype, "showSelectionCheckbox", null);
|
|
67371
|
-
__decorate
|
|
67330
|
+
__decorate([
|
|
67372
67331
|
volatile
|
|
67373
67332
|
], TableRow.prototype, "ariaSelected", null);
|
|
67374
67333
|
const nimbleTableRow = TableRow.compose({
|
|
@@ -67594,37 +67553,37 @@ focus outline in that case.
|
|
|
67594
67553
|
}
|
|
67595
67554
|
}
|
|
67596
67555
|
}
|
|
67597
|
-
__decorate
|
|
67556
|
+
__decorate([
|
|
67598
67557
|
observable
|
|
67599
67558
|
], TableGroupRow.prototype, "groupRowValue", void 0);
|
|
67600
|
-
__decorate
|
|
67559
|
+
__decorate([
|
|
67601
67560
|
observable
|
|
67602
67561
|
], TableGroupRow.prototype, "nestingLevel", void 0);
|
|
67603
|
-
__decorate
|
|
67562
|
+
__decorate([
|
|
67604
67563
|
observable
|
|
67605
67564
|
], TableGroupRow.prototype, "resolvedRowIndex", void 0);
|
|
67606
|
-
__decorate
|
|
67565
|
+
__decorate([
|
|
67607
67566
|
observable
|
|
67608
67567
|
], TableGroupRow.prototype, "immediateChildCount", void 0);
|
|
67609
|
-
__decorate
|
|
67568
|
+
__decorate([
|
|
67610
67569
|
observable
|
|
67611
67570
|
], TableGroupRow.prototype, "groupColumn", void 0);
|
|
67612
|
-
__decorate
|
|
67571
|
+
__decorate([
|
|
67613
67572
|
attr({ mode: 'boolean' })
|
|
67614
67573
|
], TableGroupRow.prototype, "expanded", void 0);
|
|
67615
|
-
__decorate
|
|
67574
|
+
__decorate([
|
|
67616
67575
|
attr({ mode: 'boolean' })
|
|
67617
67576
|
], TableGroupRow.prototype, "selectable", void 0);
|
|
67618
|
-
__decorate
|
|
67577
|
+
__decorate([
|
|
67619
67578
|
attr({ attribute: 'selection-state' })
|
|
67620
67579
|
], TableGroupRow.prototype, "selectionState", void 0);
|
|
67621
|
-
__decorate
|
|
67580
|
+
__decorate([
|
|
67622
67581
|
observable
|
|
67623
67582
|
], TableGroupRow.prototype, "selectionCheckbox", void 0);
|
|
67624
|
-
__decorate
|
|
67583
|
+
__decorate([
|
|
67625
67584
|
observable
|
|
67626
67585
|
], TableGroupRow.prototype, "animationClass", void 0);
|
|
67627
|
-
__decorate
|
|
67586
|
+
__decorate([
|
|
67628
67587
|
attr({ attribute: 'allow-hover', mode: 'boolean' })
|
|
67629
67588
|
], TableGroupRow.prototype, "allowHover", void 0);
|
|
67630
67589
|
const nimbleTableGroupRow = TableGroupRow.compose({
|
|
@@ -68249,12 +68208,18 @@ focus outline in that case.
|
|
|
68249
68208
|
}
|
|
68250
68209
|
);
|
|
68251
68210
|
this.calculateRange = memo(
|
|
68252
|
-
() => [
|
|
68253
|
-
|
|
68211
|
+
() => [
|
|
68212
|
+
this.getMeasurements(),
|
|
68213
|
+
this.getSize(),
|
|
68214
|
+
this.getScrollOffset(),
|
|
68215
|
+
this.options.lanes
|
|
68216
|
+
],
|
|
68217
|
+
(measurements, outerSize, scrollOffset, lanes) => {
|
|
68254
68218
|
return this.range = measurements.length > 0 && outerSize > 0 ? calculateRange({
|
|
68255
68219
|
measurements,
|
|
68256
68220
|
outerSize,
|
|
68257
|
-
scrollOffset
|
|
68221
|
+
scrollOffset,
|
|
68222
|
+
lanes
|
|
68258
68223
|
}) : null;
|
|
68259
68224
|
},
|
|
68260
68225
|
{
|
|
@@ -68386,15 +68351,15 @@ focus outline in that case.
|
|
|
68386
68351
|
)]
|
|
68387
68352
|
);
|
|
68388
68353
|
};
|
|
68389
|
-
this.getOffsetForAlignment = (toOffset, align) => {
|
|
68354
|
+
this.getOffsetForAlignment = (toOffset, align, itemSize = 0) => {
|
|
68390
68355
|
const size = this.getSize();
|
|
68391
68356
|
const scrollOffset = this.getScrollOffset();
|
|
68392
68357
|
if (align === "auto") {
|
|
68393
|
-
|
|
68394
|
-
align = "end";
|
|
68395
|
-
}
|
|
68358
|
+
align = toOffset >= scrollOffset + size ? "end" : "start";
|
|
68396
68359
|
}
|
|
68397
|
-
if (align === "
|
|
68360
|
+
if (align === "center") {
|
|
68361
|
+
toOffset += (itemSize - size) / 2;
|
|
68362
|
+
} else if (align === "end") {
|
|
68398
68363
|
toOffset -= size;
|
|
68399
68364
|
}
|
|
68400
68365
|
const scrollSizeProp = this.options.horizontal ? "scrollWidth" : "scrollHeight";
|
|
@@ -68419,27 +68384,11 @@ focus outline in that case.
|
|
|
68419
68384
|
return [scrollOffset, align];
|
|
68420
68385
|
}
|
|
68421
68386
|
}
|
|
68422
|
-
const
|
|
68423
|
-
|
|
68424
|
-
|
|
68425
|
-
|
|
68426
|
-
|
|
68427
|
-
return [
|
|
68428
|
-
this.getOffsetForAlignment(
|
|
68429
|
-
item.end + this.options.scrollPaddingEnd,
|
|
68430
|
-
align
|
|
68431
|
-
),
|
|
68432
|
-
align
|
|
68433
|
-
];
|
|
68434
|
-
default:
|
|
68435
|
-
return [
|
|
68436
|
-
this.getOffsetForAlignment(
|
|
68437
|
-
item.start - this.options.scrollPaddingStart,
|
|
68438
|
-
align
|
|
68439
|
-
),
|
|
68440
|
-
align
|
|
68441
|
-
];
|
|
68442
|
-
}
|
|
68387
|
+
const toOffset = align === "end" ? item.end + this.options.scrollPaddingEnd : item.start - this.options.scrollPaddingStart;
|
|
68388
|
+
return [
|
|
68389
|
+
this.getOffsetForAlignment(toOffset, align, item.size),
|
|
68390
|
+
align
|
|
68391
|
+
];
|
|
68443
68392
|
};
|
|
68444
68393
|
this.isDynamicMode = () => this.elementsCache.size > 0;
|
|
68445
68394
|
this.cancelScrollToIndex = () => {
|
|
@@ -68553,15 +68502,25 @@ focus outline in that case.
|
|
|
68553
68502
|
function calculateRange({
|
|
68554
68503
|
measurements,
|
|
68555
68504
|
outerSize,
|
|
68556
|
-
scrollOffset
|
|
68505
|
+
scrollOffset,
|
|
68506
|
+
lanes
|
|
68557
68507
|
}) {
|
|
68558
|
-
const
|
|
68508
|
+
const lastIndex = measurements.length - 1;
|
|
68559
68509
|
const getOffset = (index) => measurements[index].start;
|
|
68560
|
-
|
|
68510
|
+
let startIndex = findNearestBinarySearch(
|
|
68511
|
+
0,
|
|
68512
|
+
lastIndex,
|
|
68513
|
+
getOffset,
|
|
68514
|
+
scrollOffset
|
|
68515
|
+
);
|
|
68561
68516
|
let endIndex = startIndex;
|
|
68562
|
-
while (endIndex <
|
|
68517
|
+
while (endIndex < lastIndex && measurements[endIndex].end < scrollOffset + outerSize) {
|
|
68563
68518
|
endIndex++;
|
|
68564
68519
|
}
|
|
68520
|
+
if (lanes > 1) {
|
|
68521
|
+
startIndex = Math.max(0, startIndex - startIndex % lanes);
|
|
68522
|
+
endIndex = Math.min(lastIndex, endIndex + (lanes - 1 - endIndex % lanes));
|
|
68523
|
+
}
|
|
68565
68524
|
return { startIndex, endIndex };
|
|
68566
68525
|
}
|
|
68567
68526
|
|
|
@@ -68680,22 +68639,22 @@ focus outline in that case.
|
|
|
68680
68639
|
this._pageSize = Math.round(this.table.viewport.clientHeight / this.table.rowHeight);
|
|
68681
68640
|
}
|
|
68682
68641
|
}
|
|
68683
|
-
__decorate
|
|
68642
|
+
__decorate([
|
|
68684
68643
|
observable
|
|
68685
68644
|
], Virtualizer.prototype, "visibleItems", void 0);
|
|
68686
|
-
__decorate
|
|
68645
|
+
__decorate([
|
|
68687
68646
|
observable
|
|
68688
68647
|
], Virtualizer.prototype, "scrollHeight", void 0);
|
|
68689
|
-
__decorate
|
|
68648
|
+
__decorate([
|
|
68690
68649
|
observable
|
|
68691
68650
|
], Virtualizer.prototype, "horizontalScrollbarHeight", void 0);
|
|
68692
|
-
__decorate
|
|
68651
|
+
__decorate([
|
|
68693
68652
|
observable
|
|
68694
68653
|
], Virtualizer.prototype, "isScrolling", void 0);
|
|
68695
|
-
__decorate
|
|
68654
|
+
__decorate([
|
|
68696
68655
|
observable
|
|
68697
68656
|
], Virtualizer.prototype, "headerContainerMarginRight", void 0);
|
|
68698
|
-
__decorate
|
|
68657
|
+
__decorate([
|
|
68699
68658
|
observable
|
|
68700
68659
|
], Virtualizer.prototype, "rowContainerYOffset", void 0);
|
|
68701
68660
|
|
|
@@ -69027,13 +68986,13 @@ focus outline in that case.
|
|
|
69027
68986
|
return Math.floor(dividerIndex / 2);
|
|
69028
68987
|
}
|
|
69029
68988
|
}
|
|
69030
|
-
__decorate
|
|
68989
|
+
__decorate([
|
|
69031
68990
|
observable
|
|
69032
68991
|
], TableLayoutManager.prototype, "isColumnBeingSized", void 0);
|
|
69033
|
-
__decorate
|
|
68992
|
+
__decorate([
|
|
69034
68993
|
observable
|
|
69035
68994
|
], TableLayoutManager.prototype, "activeColumnIndex", void 0);
|
|
69036
|
-
__decorate
|
|
68995
|
+
__decorate([
|
|
69037
68996
|
observable
|
|
69038
68997
|
], TableLayoutManager.prototype, "activeColumnDivider", void 0);
|
|
69039
68998
|
|
|
@@ -69789,7 +69748,7 @@ focus outline in that case.
|
|
|
69789
69748
|
}
|
|
69790
69749
|
}
|
|
69791
69750
|
}
|
|
69792
|
-
__decorate
|
|
69751
|
+
__decorate([
|
|
69793
69752
|
observable
|
|
69794
69753
|
], ColumnValidator.prototype, "isColumnValid", void 0);
|
|
69795
69754
|
|
|
@@ -71659,67 +71618,67 @@ focus outline in that case.
|
|
|
71659
71618
|
this.virtualizer?.updateRowHeight();
|
|
71660
71619
|
}
|
|
71661
71620
|
};
|
|
71662
|
-
__decorate
|
|
71621
|
+
__decorate([
|
|
71663
71622
|
attr({ attribute: 'id-field-name' })
|
|
71664
71623
|
], Table$1.prototype, "idFieldName", void 0);
|
|
71665
|
-
__decorate
|
|
71624
|
+
__decorate([
|
|
71666
71625
|
attr({ attribute: 'parent-id-field-name' })
|
|
71667
71626
|
], Table$1.prototype, "parentIdFieldName", void 0);
|
|
71668
|
-
__decorate
|
|
71627
|
+
__decorate([
|
|
71669
71628
|
attr({ attribute: 'selection-mode' })
|
|
71670
71629
|
], Table$1.prototype, "selectionMode", void 0);
|
|
71671
|
-
__decorate
|
|
71630
|
+
__decorate([
|
|
71672
71631
|
observable
|
|
71673
71632
|
], Table$1.prototype, "tableData", void 0);
|
|
71674
|
-
__decorate
|
|
71633
|
+
__decorate([
|
|
71675
71634
|
observable
|
|
71676
71635
|
], Table$1.prototype, "columns", void 0);
|
|
71677
|
-
__decorate
|
|
71636
|
+
__decorate([
|
|
71678
71637
|
observable
|
|
71679
71638
|
], Table$1.prototype, "childItems", void 0);
|
|
71680
|
-
__decorate
|
|
71639
|
+
__decorate([
|
|
71681
71640
|
observable
|
|
71682
71641
|
], Table$1.prototype, "rowElements", void 0);
|
|
71683
|
-
__decorate
|
|
71642
|
+
__decorate([
|
|
71684
71643
|
observable
|
|
71685
71644
|
], Table$1.prototype, "openActionMenuRecordId", void 0);
|
|
71686
|
-
__decorate
|
|
71645
|
+
__decorate([
|
|
71687
71646
|
observable
|
|
71688
71647
|
], Table$1.prototype, "canRenderRows", void 0);
|
|
71689
|
-
__decorate
|
|
71648
|
+
__decorate([
|
|
71690
71649
|
observable
|
|
71691
71650
|
], Table$1.prototype, "scrollX", void 0);
|
|
71692
|
-
__decorate
|
|
71651
|
+
__decorate([
|
|
71693
71652
|
observable
|
|
71694
71653
|
], Table$1.prototype, "rowGridColumns", void 0);
|
|
71695
|
-
__decorate
|
|
71654
|
+
__decorate([
|
|
71696
71655
|
observable
|
|
71697
71656
|
], Table$1.prototype, "selectionState", void 0);
|
|
71698
|
-
__decorate
|
|
71657
|
+
__decorate([
|
|
71699
71658
|
observable
|
|
71700
71659
|
], Table$1.prototype, "selectionCheckbox", void 0);
|
|
71701
|
-
__decorate
|
|
71660
|
+
__decorate([
|
|
71702
71661
|
observable
|
|
71703
71662
|
], Table$1.prototype, "collapseAllButton", void 0);
|
|
71704
|
-
__decorate
|
|
71663
|
+
__decorate([
|
|
71705
71664
|
observable
|
|
71706
71665
|
], Table$1.prototype, "showCollapseAll", void 0);
|
|
71707
|
-
__decorate
|
|
71666
|
+
__decorate([
|
|
71708
71667
|
observable
|
|
71709
71668
|
], Table$1.prototype, "canHaveCollapsibleRows", void 0);
|
|
71710
|
-
__decorate
|
|
71669
|
+
__decorate([
|
|
71711
71670
|
volatile
|
|
71712
71671
|
], Table$1.prototype, "collapseButtonVisibility", null);
|
|
71713
|
-
__decorate
|
|
71672
|
+
__decorate([
|
|
71714
71673
|
observable
|
|
71715
71674
|
], Table$1.prototype, "firstSortedColumn", void 0);
|
|
71716
|
-
__decorate
|
|
71675
|
+
__decorate([
|
|
71717
71676
|
observable
|
|
71718
71677
|
], Table$1.prototype, "visibleColumns", void 0);
|
|
71719
|
-
__decorate
|
|
71678
|
+
__decorate([
|
|
71720
71679
|
observable
|
|
71721
71680
|
], Table$1.prototype, "tableScrollableMinWidth", void 0);
|
|
71722
|
-
__decorate
|
|
71681
|
+
__decorate([
|
|
71723
71682
|
observable
|
|
71724
71683
|
], Table$1.prototype, "windowShiftKeyDown", void 0);
|
|
71725
71684
|
const nimbleTable = Table$1.compose({
|
|
@@ -71929,16 +71888,16 @@ focus outline in that case.
|
|
|
71929
71888
|
return [];
|
|
71930
71889
|
}
|
|
71931
71890
|
}
|
|
71932
|
-
__decorate
|
|
71891
|
+
__decorate([
|
|
71933
71892
|
observable
|
|
71934
71893
|
], TableColumnAnchorCellView.prototype, "hasOverflow", void 0);
|
|
71935
|
-
__decorate
|
|
71894
|
+
__decorate([
|
|
71936
71895
|
observable
|
|
71937
71896
|
], TableColumnAnchorCellView.prototype, "isPlaceholder", void 0);
|
|
71938
|
-
__decorate
|
|
71897
|
+
__decorate([
|
|
71939
71898
|
volatile
|
|
71940
71899
|
], TableColumnAnchorCellView.prototype, "text", null);
|
|
71941
|
-
__decorate
|
|
71900
|
+
__decorate([
|
|
71942
71901
|
volatile
|
|
71943
71902
|
], TableColumnAnchorCellView.prototype, "showAnchor", null);
|
|
71944
71903
|
const anchorCellView = TableColumnAnchorCellView.compose({
|
|
@@ -72014,10 +71973,10 @@ focus outline in that case.
|
|
|
72014
71973
|
return false;
|
|
72015
71974
|
}
|
|
72016
71975
|
}
|
|
72017
|
-
__decorate
|
|
71976
|
+
__decorate([
|
|
72018
71977
|
observable
|
|
72019
71978
|
], TableColumnTextGroupHeaderViewBase.prototype, "hasOverflow", void 0);
|
|
72020
|
-
__decorate
|
|
71979
|
+
__decorate([
|
|
72021
71980
|
observable
|
|
72022
71981
|
], TableColumnTextGroupHeaderViewBase.prototype, "text", void 0);
|
|
72023
71982
|
|
|
@@ -72272,37 +72231,37 @@ focus outline in that case.
|
|
|
72272
72231
|
this.columnInternals.sortOperation = this.getResolvedSortOperation(this.defaultSortOperation);
|
|
72273
72232
|
}
|
|
72274
72233
|
}
|
|
72275
|
-
__decorate
|
|
72234
|
+
__decorate([
|
|
72276
72235
|
attr({ attribute: 'label-field-name' })
|
|
72277
72236
|
], TableColumnAnchor.prototype, "labelFieldName", void 0);
|
|
72278
|
-
__decorate
|
|
72237
|
+
__decorate([
|
|
72279
72238
|
attr({ attribute: 'href-field-name' })
|
|
72280
72239
|
], TableColumnAnchor.prototype, "hrefFieldName", void 0);
|
|
72281
|
-
__decorate
|
|
72240
|
+
__decorate([
|
|
72282
72241
|
attr
|
|
72283
72242
|
], TableColumnAnchor.prototype, "appearance", void 0);
|
|
72284
|
-
__decorate
|
|
72243
|
+
__decorate([
|
|
72285
72244
|
attr({ attribute: 'underline-hidden', mode: 'boolean' })
|
|
72286
72245
|
], TableColumnAnchor.prototype, "underlineHidden", void 0);
|
|
72287
|
-
__decorate
|
|
72246
|
+
__decorate([
|
|
72288
72247
|
attr
|
|
72289
72248
|
], TableColumnAnchor.prototype, "hreflang", void 0);
|
|
72290
|
-
__decorate
|
|
72249
|
+
__decorate([
|
|
72291
72250
|
attr
|
|
72292
72251
|
], TableColumnAnchor.prototype, "ping", void 0);
|
|
72293
|
-
__decorate
|
|
72252
|
+
__decorate([
|
|
72294
72253
|
attr
|
|
72295
72254
|
], TableColumnAnchor.prototype, "referrerpolicy", void 0);
|
|
72296
|
-
__decorate
|
|
72255
|
+
__decorate([
|
|
72297
72256
|
attr
|
|
72298
72257
|
], TableColumnAnchor.prototype, "rel", void 0);
|
|
72299
|
-
__decorate
|
|
72258
|
+
__decorate([
|
|
72300
72259
|
attr
|
|
72301
72260
|
], TableColumnAnchor.prototype, "target", void 0);
|
|
72302
|
-
__decorate
|
|
72261
|
+
__decorate([
|
|
72303
72262
|
attr
|
|
72304
72263
|
], TableColumnAnchor.prototype, "type", void 0);
|
|
72305
|
-
__decorate
|
|
72264
|
+
__decorate([
|
|
72306
72265
|
attr
|
|
72307
72266
|
], TableColumnAnchor.prototype, "download", void 0);
|
|
72308
72267
|
const nimbleTableColumnAnchor = TableColumnAnchor.compose({
|
|
@@ -72323,7 +72282,7 @@ focus outline in that case.
|
|
|
72323
72282
|
this.columnInternals.operandDataRecordFieldName = this.fieldName;
|
|
72324
72283
|
}
|
|
72325
72284
|
}
|
|
72326
|
-
__decorate
|
|
72285
|
+
__decorate([
|
|
72327
72286
|
attr({ attribute: 'field-name' })
|
|
72328
72287
|
], TableColumnTextBase.prototype, "fieldName", void 0);
|
|
72329
72288
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/explicit-function-return-type, @typescript-eslint/no-explicit-any
|
|
@@ -72459,16 +72418,16 @@ focus outline in that case.
|
|
|
72459
72418
|
return this.isPlaceholder;
|
|
72460
72419
|
}
|
|
72461
72420
|
}
|
|
72462
|
-
__decorate
|
|
72421
|
+
__decorate([
|
|
72463
72422
|
observable
|
|
72464
72423
|
], TableColumnTextCellViewBase.prototype, "hasOverflow", void 0);
|
|
72465
|
-
__decorate
|
|
72424
|
+
__decorate([
|
|
72466
72425
|
observable
|
|
72467
72426
|
], TableColumnTextCellViewBase.prototype, "text", void 0);
|
|
72468
|
-
__decorate
|
|
72427
|
+
__decorate([
|
|
72469
72428
|
observable
|
|
72470
72429
|
], TableColumnTextCellViewBase.prototype, "alignment", void 0);
|
|
72471
|
-
__decorate
|
|
72430
|
+
__decorate([
|
|
72472
72431
|
observable
|
|
72473
72432
|
], TableColumnTextCellViewBase.prototype, "isPlaceholder", void 0);
|
|
72474
72433
|
|
|
@@ -72684,64 +72643,64 @@ focus outline in that case.
|
|
|
72684
72643
|
return options;
|
|
72685
72644
|
}
|
|
72686
72645
|
}
|
|
72687
|
-
__decorate
|
|
72646
|
+
__decorate([
|
|
72688
72647
|
attr
|
|
72689
72648
|
], TableColumnDateText.prototype, "format", void 0);
|
|
72690
|
-
__decorate
|
|
72649
|
+
__decorate([
|
|
72691
72650
|
attr({ attribute: 'custom-locale-matcher' })
|
|
72692
72651
|
], TableColumnDateText.prototype, "customLocaleMatcher", void 0);
|
|
72693
|
-
__decorate
|
|
72652
|
+
__decorate([
|
|
72694
72653
|
attr({ attribute: 'custom-weekday' })
|
|
72695
72654
|
], TableColumnDateText.prototype, "customWeekday", void 0);
|
|
72696
|
-
__decorate
|
|
72655
|
+
__decorate([
|
|
72697
72656
|
attr({ attribute: 'custom-era' })
|
|
72698
72657
|
], TableColumnDateText.prototype, "customEra", void 0);
|
|
72699
|
-
__decorate
|
|
72658
|
+
__decorate([
|
|
72700
72659
|
attr({ attribute: 'custom-year' })
|
|
72701
72660
|
], TableColumnDateText.prototype, "customYear", void 0);
|
|
72702
|
-
__decorate
|
|
72661
|
+
__decorate([
|
|
72703
72662
|
attr({ attribute: 'custom-month' })
|
|
72704
72663
|
], TableColumnDateText.prototype, "customMonth", void 0);
|
|
72705
|
-
__decorate
|
|
72664
|
+
__decorate([
|
|
72706
72665
|
attr({ attribute: 'custom-day' })
|
|
72707
72666
|
], TableColumnDateText.prototype, "customDay", void 0);
|
|
72708
|
-
__decorate
|
|
72667
|
+
__decorate([
|
|
72709
72668
|
attr({ attribute: 'custom-hour' })
|
|
72710
72669
|
], TableColumnDateText.prototype, "customHour", void 0);
|
|
72711
|
-
__decorate
|
|
72670
|
+
__decorate([
|
|
72712
72671
|
attr({ attribute: 'custom-minute' })
|
|
72713
72672
|
], TableColumnDateText.prototype, "customMinute", void 0);
|
|
72714
|
-
__decorate
|
|
72673
|
+
__decorate([
|
|
72715
72674
|
attr({ attribute: 'custom-second' })
|
|
72716
72675
|
], TableColumnDateText.prototype, "customSecond", void 0);
|
|
72717
|
-
__decorate
|
|
72676
|
+
__decorate([
|
|
72718
72677
|
attr({ attribute: 'custom-time-zone-name' })
|
|
72719
72678
|
], TableColumnDateText.prototype, "customTimeZoneName", void 0);
|
|
72720
|
-
__decorate
|
|
72679
|
+
__decorate([
|
|
72721
72680
|
attr({ attribute: 'custom-format-matcher' })
|
|
72722
72681
|
], TableColumnDateText.prototype, "customFormatMatcher", void 0);
|
|
72723
|
-
__decorate
|
|
72682
|
+
__decorate([
|
|
72724
72683
|
attr({ attribute: 'custom-hour12', converter: optionalBooleanConverter })
|
|
72725
72684
|
], TableColumnDateText.prototype, "customHour12", void 0);
|
|
72726
|
-
__decorate
|
|
72685
|
+
__decorate([
|
|
72727
72686
|
attr({ attribute: 'custom-time-zone' })
|
|
72728
72687
|
], TableColumnDateText.prototype, "customTimeZone", void 0);
|
|
72729
|
-
__decorate
|
|
72688
|
+
__decorate([
|
|
72730
72689
|
attr({ attribute: 'custom-calendar' })
|
|
72731
72690
|
], TableColumnDateText.prototype, "customCalendar", void 0);
|
|
72732
|
-
__decorate
|
|
72691
|
+
__decorate([
|
|
72733
72692
|
attr({ attribute: 'custom-day-period' })
|
|
72734
72693
|
], TableColumnDateText.prototype, "customDayPeriod", void 0);
|
|
72735
|
-
__decorate
|
|
72694
|
+
__decorate([
|
|
72736
72695
|
attr({ attribute: 'custom-numbering-system' })
|
|
72737
72696
|
], TableColumnDateText.prototype, "customNumberingSystem", void 0);
|
|
72738
|
-
__decorate
|
|
72697
|
+
__decorate([
|
|
72739
72698
|
attr({ attribute: 'custom-date-style' })
|
|
72740
72699
|
], TableColumnDateText.prototype, "customDateStyle", void 0);
|
|
72741
|
-
__decorate
|
|
72700
|
+
__decorate([
|
|
72742
72701
|
attr({ attribute: 'custom-time-style' })
|
|
72743
72702
|
], TableColumnDateText.prototype, "customTimeStyle", void 0);
|
|
72744
|
-
__decorate
|
|
72703
|
+
__decorate([
|
|
72745
72704
|
attr({ attribute: 'custom-hour-cycle' })
|
|
72746
72705
|
], TableColumnDateText.prototype, "customHourCycle", void 0);
|
|
72747
72706
|
const nimbleTableColumnDateText = TableColumnDateText.compose({
|
|
@@ -73017,13 +72976,13 @@ focus outline in that case.
|
|
|
73017
72976
|
}
|
|
73018
72977
|
}
|
|
73019
72978
|
}
|
|
73020
|
-
__decorate
|
|
72979
|
+
__decorate([
|
|
73021
72980
|
observable
|
|
73022
72981
|
], TableColumnEnumBase.prototype, "mappings", void 0);
|
|
73023
|
-
__decorate
|
|
72982
|
+
__decorate([
|
|
73024
72983
|
attr({ attribute: 'field-name' })
|
|
73025
72984
|
], TableColumnEnumBase.prototype, "fieldName", void 0);
|
|
73026
|
-
__decorate
|
|
72985
|
+
__decorate([
|
|
73027
72986
|
attr({ attribute: 'key-type' })
|
|
73028
72987
|
], TableColumnEnumBase.prototype, "keyType", void 0);
|
|
73029
72988
|
|
|
@@ -73276,16 +73235,16 @@ focus outline in that case.
|
|
|
73276
73235
|
this.severity = IconSeverity.default;
|
|
73277
73236
|
}
|
|
73278
73237
|
}
|
|
73279
|
-
__decorate
|
|
73238
|
+
__decorate([
|
|
73280
73239
|
observable
|
|
73281
73240
|
], TableColumnMappingGroupHeaderView.prototype, "hasOverflow", void 0);
|
|
73282
|
-
__decorate
|
|
73241
|
+
__decorate([
|
|
73283
73242
|
observable
|
|
73284
73243
|
], TableColumnMappingGroupHeaderView.prototype, "text", void 0);
|
|
73285
|
-
__decorate
|
|
73244
|
+
__decorate([
|
|
73286
73245
|
observable
|
|
73287
73246
|
], TableColumnMappingGroupHeaderView.prototype, "severity", void 0);
|
|
73288
|
-
__decorate
|
|
73247
|
+
__decorate([
|
|
73289
73248
|
observable
|
|
73290
73249
|
], TableColumnMappingGroupHeaderView.prototype, "visualizationTemplate", void 0);
|
|
73291
73250
|
const mappingGroupHeaderView = TableColumnMappingGroupHeaderView.compose({
|
|
@@ -73393,19 +73352,19 @@ focus outline in that case.
|
|
|
73393
73352
|
this.severity = IconSeverity.default;
|
|
73394
73353
|
}
|
|
73395
73354
|
}
|
|
73396
|
-
__decorate
|
|
73355
|
+
__decorate([
|
|
73397
73356
|
observable
|
|
73398
73357
|
], TableColumnMappingCellView.prototype, "severity", void 0);
|
|
73399
|
-
__decorate
|
|
73358
|
+
__decorate([
|
|
73400
73359
|
observable
|
|
73401
73360
|
], TableColumnMappingCellView.prototype, "text", void 0);
|
|
73402
|
-
__decorate
|
|
73361
|
+
__decorate([
|
|
73403
73362
|
observable
|
|
73404
73363
|
], TableColumnMappingCellView.prototype, "visualizationTemplate", void 0);
|
|
73405
|
-
__decorate
|
|
73364
|
+
__decorate([
|
|
73406
73365
|
observable
|
|
73407
73366
|
], TableColumnMappingCellView.prototype, "textHidden", void 0);
|
|
73408
|
-
__decorate
|
|
73367
|
+
__decorate([
|
|
73409
73368
|
observable
|
|
73410
73369
|
], TableColumnMappingCellView.prototype, "hasOverflow", void 0);
|
|
73411
73370
|
const mappingCellView = TableColumnMappingCellView.compose({
|
|
@@ -73489,7 +73448,7 @@ focus outline in that case.
|
|
|
73489
73448
|
return defaultMinPixelWidth;
|
|
73490
73449
|
}
|
|
73491
73450
|
}
|
|
73492
|
-
__decorate
|
|
73451
|
+
__decorate([
|
|
73493
73452
|
attr({ attribute: 'width-mode' })
|
|
73494
73453
|
], TableColumnMapping.prototype, "widthMode", void 0);
|
|
73495
73454
|
const nimbleTableColumnMapping = TableColumnMapping.compose({
|
|
@@ -73597,10 +73556,10 @@ focus outline in that case.
|
|
|
73597
73556
|
e.stopPropagation();
|
|
73598
73557
|
}
|
|
73599
73558
|
}
|
|
73600
|
-
__decorate
|
|
73559
|
+
__decorate([
|
|
73601
73560
|
observable
|
|
73602
73561
|
], TableColumnMenuButtonCellView.prototype, "hasOverflow", void 0);
|
|
73603
|
-
__decorate
|
|
73562
|
+
__decorate([
|
|
73604
73563
|
volatile
|
|
73605
73564
|
], TableColumnMenuButtonCellView.prototype, "showMenuButton", null);
|
|
73606
73565
|
const menuButtonCellView = TableColumnMenuButtonCellView.compose({
|
|
@@ -73653,10 +73612,10 @@ focus outline in that case.
|
|
|
73653
73612
|
};
|
|
73654
73613
|
}
|
|
73655
73614
|
}
|
|
73656
|
-
__decorate
|
|
73615
|
+
__decorate([
|
|
73657
73616
|
attr({ attribute: 'field-name' })
|
|
73658
73617
|
], TableColumnMenuButton.prototype, "fieldName", void 0);
|
|
73659
|
-
__decorate
|
|
73618
|
+
__decorate([
|
|
73660
73619
|
attr({ attribute: 'menu-slot' })
|
|
73661
73620
|
], TableColumnMenuButton.prototype, "menuSlot", void 0);
|
|
73662
73621
|
const nimbleTableColumnMenuButton = TableColumnMenuButton.compose({
|
|
@@ -74104,7 +74063,7 @@ focus outline in that case.
|
|
|
74104
74063
|
*/
|
|
74105
74064
|
class Unit extends FoundationElement {
|
|
74106
74065
|
}
|
|
74107
|
-
__decorate
|
|
74066
|
+
__decorate([
|
|
74108
74067
|
observable
|
|
74109
74068
|
], Unit.prototype, "resolvedUnitScale", void 0);
|
|
74110
74069
|
|
|
@@ -74230,25 +74189,25 @@ focus outline in that case.
|
|
|
74230
74189
|
return TableColumnAlignment.left;
|
|
74231
74190
|
}
|
|
74232
74191
|
}
|
|
74233
|
-
__decorate
|
|
74192
|
+
__decorate([
|
|
74234
74193
|
attr
|
|
74235
74194
|
], TableColumnNumberText.prototype, "format", void 0);
|
|
74236
|
-
__decorate
|
|
74195
|
+
__decorate([
|
|
74237
74196
|
attr
|
|
74238
74197
|
], TableColumnNumberText.prototype, "alignment", void 0);
|
|
74239
|
-
__decorate
|
|
74198
|
+
__decorate([
|
|
74240
74199
|
attr({ attribute: 'decimal-digits', converter: nullableNumberConverter })
|
|
74241
74200
|
], TableColumnNumberText.prototype, "decimalDigits", void 0);
|
|
74242
|
-
__decorate
|
|
74201
|
+
__decorate([
|
|
74243
74202
|
attr({
|
|
74244
74203
|
attribute: 'decimal-maximum-digits',
|
|
74245
74204
|
converter: nullableNumberConverter
|
|
74246
74205
|
})
|
|
74247
74206
|
], TableColumnNumberText.prototype, "decimalMaximumDigits", void 0);
|
|
74248
|
-
__decorate
|
|
74207
|
+
__decorate([
|
|
74249
74208
|
observable
|
|
74250
74209
|
], TableColumnNumberText.prototype, "unitElements", void 0);
|
|
74251
|
-
__decorate
|
|
74210
|
+
__decorate([
|
|
74252
74211
|
observable
|
|
74253
74212
|
], TableColumnNumberText.prototype, "unit", void 0);
|
|
74254
74213
|
const nimbleTableColumnNumberText = TableColumnNumberText.compose({
|
|
@@ -74410,7 +74369,7 @@ focus outline in that case.
|
|
|
74410
74369
|
});
|
|
74411
74370
|
}
|
|
74412
74371
|
}
|
|
74413
|
-
__decorate
|
|
74372
|
+
__decorate([
|
|
74414
74373
|
observable
|
|
74415
74374
|
], Tabs.prototype, "showScrollButtons", void 0);
|
|
74416
74375
|
const nimbleTabs = Tabs.compose({
|
|
@@ -74773,10 +74732,10 @@ focus outline in that case.
|
|
|
74773
74732
|
this.scrollbarWidth = this.control.offsetWidth - this.control.clientWidth;
|
|
74774
74733
|
}
|
|
74775
74734
|
}
|
|
74776
|
-
__decorate
|
|
74735
|
+
__decorate([
|
|
74777
74736
|
attr
|
|
74778
74737
|
], TextArea.prototype, "appearance", void 0);
|
|
74779
|
-
__decorate
|
|
74738
|
+
__decorate([
|
|
74780
74739
|
observable
|
|
74781
74740
|
], TextArea.prototype, "scrollbarWidth", void 0);
|
|
74782
74741
|
const nimbleTextArea = TextArea.compose({
|
|
@@ -75053,7 +75012,7 @@ focus outline in that case.
|
|
|
75053
75012
|
></slot>
|
|
75054
75013
|
</label>`);
|
|
75055
75014
|
/**
|
|
75056
|
-
* The template for the {@link @
|
|
75015
|
+
* The template for the {@link @ni/fast-foundation#(TextField:class)} component.
|
|
75057
75016
|
* @public
|
|
75058
75017
|
*/
|
|
75059
75018
|
const template$7 = (context, definition) => html `
|
|
@@ -75128,10 +75087,10 @@ focus outline in that case.
|
|
|
75128
75087
|
this.fullBleed = false;
|
|
75129
75088
|
}
|
|
75130
75089
|
}
|
|
75131
|
-
__decorate
|
|
75090
|
+
__decorate([
|
|
75132
75091
|
attr
|
|
75133
75092
|
], TextField.prototype, "appearance", void 0);
|
|
75134
|
-
__decorate
|
|
75093
|
+
__decorate([
|
|
75135
75094
|
attr({ attribute: 'full-bleed', mode: 'boolean' })
|
|
75136
75095
|
], TextField.prototype, "fullBleed", void 0);
|
|
75137
75096
|
const nimbleTextField = TextField.compose({
|
|
@@ -75285,10 +75244,10 @@ focus outline in that case.
|
|
|
75285
75244
|
this.iconVisible = false;
|
|
75286
75245
|
}
|
|
75287
75246
|
}
|
|
75288
|
-
__decorate
|
|
75247
|
+
__decorate([
|
|
75289
75248
|
attr
|
|
75290
75249
|
], Tooltip.prototype, "severity", void 0);
|
|
75291
|
-
__decorate
|
|
75250
|
+
__decorate([
|
|
75292
75251
|
attr({ attribute: 'icon-visible', mode: 'boolean' })
|
|
75293
75252
|
], Tooltip.prototype, "iconVisible", void 0);
|
|
75294
75253
|
const nimbleTooltip = Tooltip.compose({
|
|
@@ -75316,8 +75275,8 @@ focus outline in that case.
|
|
|
75316
75275
|
* @public
|
|
75317
75276
|
* @example
|
|
75318
75277
|
* ```ts
|
|
75319
|
-
* import { css } from "@
|
|
75320
|
-
* import { DirectionalStyleSheetBehavior } from "@
|
|
75278
|
+
* import { css } from "@ni/fast-element";
|
|
75279
|
+
* import { DirectionalStyleSheetBehavior } from "@ni/fast-foundation";
|
|
75321
75280
|
*
|
|
75322
75281
|
* css`
|
|
75323
75282
|
* // ...
|
|
@@ -75576,7 +75535,7 @@ focus outline in that case.
|
|
|
75576
75535
|
|
|
75577
75536
|
/**
|
|
75578
75537
|
* A function that returns a nimble-tree-item registration for configuring the component with a DesignSystem.
|
|
75579
|
-
* Implements {@link @
|
|
75538
|
+
* Implements {@link @ni/fast-foundation#treeItemTemplate}
|
|
75580
75539
|
*
|
|
75581
75540
|
*
|
|
75582
75541
|
* @public
|
|
@@ -75593,7 +75552,7 @@ focus outline in that case.
|
|
|
75593
75552
|
this.groupSelected = false;
|
|
75594
75553
|
}
|
|
75595
75554
|
}
|
|
75596
|
-
__decorate
|
|
75555
|
+
__decorate([
|
|
75597
75556
|
attr({ attribute: 'group-selected', mode: 'boolean' })
|
|
75598
75557
|
], TreeItem.prototype, "groupSelected", void 0);
|
|
75599
75558
|
const nimbleTreeItem = TreeItem.compose({
|
|
@@ -75637,7 +75596,7 @@ focus outline in that case.
|
|
|
75637
75596
|
|
|
75638
75597
|
/**
|
|
75639
75598
|
* A function that returns a nimble-tree-view registration for configuring the component with a DesignSystem.
|
|
75640
|
-
* Implements {@link @
|
|
75599
|
+
* Implements {@link @ni/fast-foundation#treeViewTemplate}
|
|
75641
75600
|
*
|
|
75642
75601
|
*
|
|
75643
75602
|
* @public
|
|
@@ -75707,10 +75666,10 @@ focus outline in that case.
|
|
|
75707
75666
|
}
|
|
75708
75667
|
}
|
|
75709
75668
|
}
|
|
75710
|
-
__decorate
|
|
75669
|
+
__decorate([
|
|
75711
75670
|
attr({ attribute: 'selection-mode' })
|
|
75712
75671
|
], TreeView.prototype, "selectionMode", void 0);
|
|
75713
|
-
__decorate
|
|
75672
|
+
__decorate([
|
|
75714
75673
|
observable
|
|
75715
75674
|
], TreeView.prototype, "selectedItems", void 0);
|
|
75716
75675
|
const nimbleTreeView = TreeView.compose({
|
|
@@ -75858,7 +75817,7 @@ focus outline in that case.
|
|
|
75858
75817
|
: byteUnitScale;
|
|
75859
75818
|
}
|
|
75860
75819
|
}
|
|
75861
|
-
__decorate
|
|
75820
|
+
__decorate([
|
|
75862
75821
|
attr({ mode: 'boolean' })
|
|
75863
75822
|
], UnitByte.prototype, "binary", void 0);
|
|
75864
75823
|
const nimbleUnitByte = UnitByte.compose({
|
|
@@ -92908,73 +92867,73 @@ focus outline in that case.
|
|
|
92908
92867
|
WaferMap.Arrow = {
|
|
92909
92868
|
tableFromIPC
|
|
92910
92869
|
};
|
|
92911
|
-
__decorate
|
|
92870
|
+
__decorate([
|
|
92912
92871
|
attr({ attribute: 'origin-location' })
|
|
92913
92872
|
], WaferMap.prototype, "originLocation", void 0);
|
|
92914
|
-
__decorate
|
|
92873
|
+
__decorate([
|
|
92915
92874
|
attr({ attribute: 'grid-min-x', converter: nullableNumberConverter })
|
|
92916
92875
|
], WaferMap.prototype, "gridMinX", void 0);
|
|
92917
|
-
__decorate
|
|
92876
|
+
__decorate([
|
|
92918
92877
|
attr({ attribute: 'grid-max-x', converter: nullableNumberConverter })
|
|
92919
92878
|
], WaferMap.prototype, "gridMaxX", void 0);
|
|
92920
|
-
__decorate
|
|
92879
|
+
__decorate([
|
|
92921
92880
|
attr({ attribute: 'grid-min-y', converter: nullableNumberConverter })
|
|
92922
92881
|
], WaferMap.prototype, "gridMinY", void 0);
|
|
92923
|
-
__decorate
|
|
92882
|
+
__decorate([
|
|
92924
92883
|
attr({ attribute: 'grid-max-y', converter: nullableNumberConverter })
|
|
92925
92884
|
], WaferMap.prototype, "gridMaxY", void 0);
|
|
92926
|
-
__decorate
|
|
92885
|
+
__decorate([
|
|
92927
92886
|
attr
|
|
92928
92887
|
], WaferMap.prototype, "orientation", void 0);
|
|
92929
|
-
__decorate
|
|
92888
|
+
__decorate([
|
|
92930
92889
|
attr({ attribute: 'max-characters', converter: nullableNumberConverter })
|
|
92931
92890
|
], WaferMap.prototype, "maxCharacters", void 0);
|
|
92932
|
-
__decorate
|
|
92891
|
+
__decorate([
|
|
92933
92892
|
attr({ attribute: 'die-labels-hidden', mode: 'boolean' })
|
|
92934
92893
|
], WaferMap.prototype, "dieLabelsHidden", void 0);
|
|
92935
|
-
__decorate
|
|
92894
|
+
__decorate([
|
|
92936
92895
|
attr({ attribute: 'die-labels-suffix' })
|
|
92937
92896
|
], WaferMap.prototype, "dieLabelsSuffix", void 0);
|
|
92938
|
-
__decorate
|
|
92897
|
+
__decorate([
|
|
92939
92898
|
attr({ attribute: 'color-scale-mode' })
|
|
92940
92899
|
], WaferMap.prototype, "colorScaleMode", void 0);
|
|
92941
|
-
__decorate
|
|
92900
|
+
__decorate([
|
|
92942
92901
|
observable
|
|
92943
92902
|
], WaferMap.prototype, "renderer", void 0);
|
|
92944
|
-
__decorate
|
|
92903
|
+
__decorate([
|
|
92945
92904
|
observable
|
|
92946
92905
|
], WaferMap.prototype, "canvasWidth", void 0);
|
|
92947
|
-
__decorate
|
|
92906
|
+
__decorate([
|
|
92948
92907
|
observable
|
|
92949
92908
|
], WaferMap.prototype, "canvasHeight", void 0);
|
|
92950
|
-
__decorate
|
|
92909
|
+
__decorate([
|
|
92951
92910
|
observable
|
|
92952
92911
|
], WaferMap.prototype, "transform", void 0);
|
|
92953
|
-
__decorate
|
|
92912
|
+
__decorate([
|
|
92954
92913
|
observable
|
|
92955
92914
|
], WaferMap.prototype, "hoverTransform", void 0);
|
|
92956
|
-
__decorate
|
|
92915
|
+
__decorate([
|
|
92957
92916
|
observable
|
|
92958
92917
|
], WaferMap.prototype, "hoverOpacity", void 0);
|
|
92959
|
-
__decorate
|
|
92918
|
+
__decorate([
|
|
92960
92919
|
observable
|
|
92961
92920
|
], WaferMap.prototype, "hoverWidth", void 0);
|
|
92962
|
-
__decorate
|
|
92921
|
+
__decorate([
|
|
92963
92922
|
observable
|
|
92964
92923
|
], WaferMap.prototype, "hoverHeight", void 0);
|
|
92965
|
-
__decorate
|
|
92924
|
+
__decorate([
|
|
92966
92925
|
observable
|
|
92967
92926
|
], WaferMap.prototype, "hoverDie", void 0);
|
|
92968
|
-
__decorate
|
|
92927
|
+
__decorate([
|
|
92969
92928
|
observable
|
|
92970
92929
|
], WaferMap.prototype, "highlightedTags", void 0);
|
|
92971
|
-
__decorate
|
|
92930
|
+
__decorate([
|
|
92972
92931
|
observable
|
|
92973
92932
|
], WaferMap.prototype, "dies", void 0);
|
|
92974
|
-
__decorate
|
|
92933
|
+
__decorate([
|
|
92975
92934
|
observable
|
|
92976
92935
|
], WaferMap.prototype, "diesTable", void 0);
|
|
92977
|
-
__decorate
|
|
92936
|
+
__decorate([
|
|
92978
92937
|
observable
|
|
92979
92938
|
], WaferMap.prototype, "colorScale", void 0);
|
|
92980
92939
|
const nimbleWaferMap = WaferMap.compose({
|
|
@@ -93092,7 +93051,7 @@ focus outline in that case.
|
|
|
93092
93051
|
this.messageType = ChatMessageType.system;
|
|
93093
93052
|
}
|
|
93094
93053
|
}
|
|
93095
|
-
__decorate
|
|
93054
|
+
__decorate([
|
|
93096
93055
|
attr({ attribute: 'message-type' })
|
|
93097
93056
|
], ChatMessage.prototype, "messageType", void 0);
|
|
93098
93057
|
const sprightChatMessage = ChatMessage.compose({
|