@ni/nimble-components 20.12.1 → 20.14.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 +54 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +3219 -3215
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/dialog/styles.js +4 -3
- package/dist/esm/dialog/styles.js.map +1 -1
- package/dist/esm/dialog/template.js +1 -0
- package/dist/esm/dialog/template.js.map +1 -1
- package/dist/esm/icons/all-icons.d.ts +2 -0
- package/dist/esm/icons/all-icons.js +2 -0
- package/dist/esm/icons/all-icons.js.map +1 -1
- package/dist/esm/icons/arrow-in-circle.d.ts +13 -0
- package/dist/esm/icons/arrow-in-circle.js +16 -0
- package/dist/esm/icons/arrow-in-circle.js.map +1 -0
- package/dist/esm/icons/arrow-out-circle.d.ts +13 -0
- package/dist/esm/icons/arrow-out-circle.js +16 -0
- package/dist/esm/icons/arrow-out-circle.js.map +1 -0
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js +2 -0
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js.map +1 -1
- package/dist/esm/theme-provider/design-token-comments.js +6 -0
- package/dist/esm/theme-provider/design-token-comments.js.map +1 -1
- package/dist/esm/theme-provider/design-token-names.d.ts +1 -1
- package/dist/esm/theme-provider/design-token-names.js +7 -0
- package/dist/esm/theme-provider/design-token-names.js.map +1 -1
- package/dist/esm/theme-provider/design-tokens.d.ts +6 -0
- package/dist/esm/theme-provider/design-tokens.js +6 -0
- package/dist/esm/theme-provider/design-tokens.js.map +1 -1
- package/dist/tokens-internal.scss +36 -0
- package/dist/tokens.scss +18 -0
- package/package.json +3 -3
|
@@ -13842,7 +13842,7 @@
|
|
|
13842
13842
|
aria-orientation="${x => x.orientation}"
|
|
13843
13843
|
orientation="${x => x.orientation}"
|
|
13844
13844
|
role="toolbar"
|
|
13845
|
-
@
|
|
13845
|
+
@mousedown="${(x, c) => x.mouseDownHandler(c.event)}"
|
|
13846
13846
|
@focusin="${(x, c) => x.focusinHandler(c.event)}"
|
|
13847
13847
|
@keydown="${(x, c) => x.keydownHandler(c.event)}"
|
|
13848
13848
|
${children$1({
|
|
@@ -13953,9 +13953,9 @@
|
|
|
13953
13953
|
*
|
|
13954
13954
|
* @internal
|
|
13955
13955
|
*/
|
|
13956
|
-
|
|
13956
|
+
mouseDownHandler(e) {
|
|
13957
13957
|
var _a;
|
|
13958
|
-
const activeIndex = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a.
|
|
13958
|
+
const activeIndex = (_a = this.focusableElements) === null || _a === void 0 ? void 0 : _a.findIndex(x => x.contains(e.target));
|
|
13959
13959
|
if (activeIndex > -1 && this.activeIndex !== activeIndex) {
|
|
13960
13960
|
this.setFocusedElement(activeIndex);
|
|
13961
13961
|
}
|
|
@@ -16298,7 +16298,7 @@
|
|
|
16298
16298
|
|
|
16299
16299
|
/**
|
|
16300
16300
|
* Do not edit directly
|
|
16301
|
-
* Generated on
|
|
16301
|
+
* Generated on Fri, 03 Nov 2023 23:08:42 GMT
|
|
16302
16302
|
*/
|
|
16303
16303
|
|
|
16304
16304
|
const Information100DarkUi = "#a46eff";
|
|
@@ -16468,6 +16468,12 @@
|
|
|
16468
16468
|
iconSize: 'icon-size',
|
|
16469
16469
|
groupHeaderTextTransform: 'group-header-text-transform',
|
|
16470
16470
|
drawerWidth: 'drawer-width',
|
|
16471
|
+
dialogSmallWidth: 'dialog-small-width',
|
|
16472
|
+
dialogSmallHeight: 'dialog-small-height',
|
|
16473
|
+
dialogSmallMaxHeight: 'dialog-small-max-height',
|
|
16474
|
+
dialogLargeWidth: 'dialog-large-width',
|
|
16475
|
+
dialogLargeHeight: 'dialog-large-height',
|
|
16476
|
+
dialogLargeMaxHeight: 'dialog-large-max-height',
|
|
16471
16477
|
bannerGapSize: 'banner-gap-size',
|
|
16472
16478
|
spinnerSmallHeight: 'spinner-small-height',
|
|
16473
16479
|
spinnerMediumHeight: 'spinner-medium-height',
|
|
@@ -16873,6 +16879,12 @@
|
|
|
16873
16879
|
const borderWidth = DesignToken.create(styleNameFromTokenName(tokenNames.borderWidth)).withDefault('1px');
|
|
16874
16880
|
const iconSize = DesignToken.create(styleNameFromTokenName(tokenNames.iconSize)).withDefault('16px');
|
|
16875
16881
|
const drawerWidth = DesignToken.create(styleNameFromTokenName(tokenNames.drawerWidth)).withDefault('784px');
|
|
16882
|
+
const dialogSmallWidth = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallWidth)).withDefault('400px');
|
|
16883
|
+
const dialogSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallHeight)).withDefault('fit-content');
|
|
16884
|
+
const dialogSmallMaxHeight = DesignToken.create(styleNameFromTokenName(tokenNames.dialogSmallMaxHeight)).withDefault('600px');
|
|
16885
|
+
DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeWidth)).withDefault('1024px');
|
|
16886
|
+
DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeHeight)).withDefault('680px');
|
|
16887
|
+
DesignToken.create(styleNameFromTokenName(tokenNames.dialogLargeMaxHeight)).withDefault('680px');
|
|
16876
16888
|
DesignToken.create(styleNameFromTokenName(tokenNames.bannerGapSize)).withDefault('1px');
|
|
16877
16889
|
const spinnerSmallHeight = DesignToken.create(styleNameFromTokenName(tokenNames.spinnerSmallHeight)).withDefault('16px');
|
|
16878
16890
|
DesignToken.create(styleNameFromTokenName(tokenNames.spinnerMediumHeight)).withDefault('32px');
|
|
@@ -18863,10 +18875,18 @@
|
|
|
18863
18875
|
name: 'arrow_expander_up_16_x_16',
|
|
18864
18876
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="m12.5 11.263-1.11.732-3.357-5.472L4.603 12 3.5 11.257 8.045 4l4.455 7.263z"/></svg>`
|
|
18865
18877
|
};
|
|
18878
|
+
const arrowInCircle16X16 = {
|
|
18879
|
+
name: 'arrow_in_circle_16_x_16',
|
|
18880
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M10.5 5.25a3.24 3.24 0 0 0-2.738 1.513L11.236 8.5l-3.474 1.737A3.24 3.24 0 0 0 10.5 11.75a3.25 3.25 0 0 0 0-6.5Z"/><path class="cls-1" d="m4 6 1 2H2v1h3l-1 2 5-2.5L4 6Z"/></svg>`
|
|
18881
|
+
};
|
|
18866
18882
|
const arrowLeftFromLine16X16 = {
|
|
18867
18883
|
name: 'arrow_left_from_line_16_x_16',
|
|
18868
18884
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M12 14h2V2h-2ZM2 7.982 7.9 5 6.588 7.004 11 7v2H6.613L7.9 11Z"/></svg>`
|
|
18869
18885
|
};
|
|
18886
|
+
const arrowOutCircle16X16 = {
|
|
18887
|
+
name: 'arrow_out_circle_16_x_16',
|
|
18888
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="m9 6 1 2H7v1h3l-1 2 5-2.5L9 6Z"/><path class="cls-1" d="M6 10V7h2.367A3.237 3.237 0 0 0 5.5 5.25a3.25 3.25 0 0 0 0 6.5c1.25 0 2.324-.714 2.867-1.75H6Z"/></svg>`
|
|
18889
|
+
};
|
|
18870
18890
|
const arrowPartialRotateLeft16X16 = {
|
|
18871
18891
|
name: 'arrow_partial_rotate_left_16_x_16',
|
|
18872
18892
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path class="cls-1" d="M8 11.988a3.086 3.086 0 0 0 3.143-3.025 3.08 3.08 0 0 0-3.085-3.02v.088l.826 2.067-5.598-2.796L8.884 2.5l-.742 1.932a4.619 4.619 0 0 1 4.572 4.53A4.629 4.629 0 0 1 8 13.5Z"/></svg>`
|
|
@@ -21121,8 +21141,9 @@
|
|
|
21121
21141
|
border: none;
|
|
21122
21142
|
box-shadow: ${elevation3BoxShadow};
|
|
21123
21143
|
padding: 0px;
|
|
21124
|
-
width:
|
|
21125
|
-
|
|
21144
|
+
width: ${dialogSmallWidth};
|
|
21145
|
+
height: ${dialogSmallHeight};
|
|
21146
|
+
max-height: ${dialogSmallMaxHeight};
|
|
21126
21147
|
}
|
|
21127
21148
|
|
|
21128
21149
|
dialog[open] {
|
|
@@ -21218,6 +21239,7 @@
|
|
|
21218
21239
|
<dialog
|
|
21219
21240
|
${ref('dialogElement')}
|
|
21220
21241
|
role="dialog"
|
|
21242
|
+
part="control"
|
|
21221
21243
|
@cancel="${(x, c) => x.cancelHandler(c.event)}"
|
|
21222
21244
|
aria-labelledby="header"
|
|
21223
21245
|
>
|
|
@@ -21697,6 +21719,19 @@
|
|
|
21697
21719
|
registerIcon('icon-arrow-expander-up', IconArrowExpanderUp);
|
|
21698
21720
|
DesignSystem.tagFor(IconArrowExpanderUp);
|
|
21699
21721
|
|
|
21722
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
21723
|
+
// See generation source in nimble-components/build/generate-icons
|
|
21724
|
+
/**
|
|
21725
|
+
* The icon component for the 'arrowInCircle' icon
|
|
21726
|
+
*/
|
|
21727
|
+
class IconArrowInCircle extends Icon {
|
|
21728
|
+
constructor() {
|
|
21729
|
+
super(arrowInCircle16X16);
|
|
21730
|
+
}
|
|
21731
|
+
}
|
|
21732
|
+
registerIcon('icon-arrow-in-circle', IconArrowInCircle);
|
|
21733
|
+
DesignSystem.tagFor(IconArrowInCircle);
|
|
21734
|
+
|
|
21700
21735
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
21701
21736
|
// See generation source in nimble-components/build/generate-icons
|
|
21702
21737
|
/**
|
|
@@ -21710,6 +21745,19 @@
|
|
|
21710
21745
|
registerIcon('icon-arrow-left-from-line', IconArrowLeftFromLine);
|
|
21711
21746
|
DesignSystem.tagFor(IconArrowLeftFromLine);
|
|
21712
21747
|
|
|
21748
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
21749
|
+
// See generation source in nimble-components/build/generate-icons
|
|
21750
|
+
/**
|
|
21751
|
+
* The icon component for the 'arrowOutCircle' icon
|
|
21752
|
+
*/
|
|
21753
|
+
class IconArrowOutCircle extends Icon {
|
|
21754
|
+
constructor() {
|
|
21755
|
+
super(arrowOutCircle16X16);
|
|
21756
|
+
}
|
|
21757
|
+
}
|
|
21758
|
+
registerIcon('icon-arrow-out-circle', IconArrowOutCircle);
|
|
21759
|
+
DesignSystem.tagFor(IconArrowOutCircle);
|
|
21760
|
+
|
|
21713
21761
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
21714
21762
|
// See generation source in nimble-components/build/generate-icons
|
|
21715
21763
|
/**
|