@ni/nimble-components 20.17.0 → 20.17.2
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 +33 -13
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +2681 -2683
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchored-region/styles.js +2 -1
- package/dist/esm/anchored-region/styles.js.map +1 -1
- package/dist/esm/patterns/button/styles.js +1 -1
- package/dist/esm/patterns/dropdown/styles.js +0 -2
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/rich-text/editor/index.d.ts +4 -2
- package/dist/esm/rich-text/editor/index.js +21 -6
- package/dist/esm/rich-text/editor/index.js.map +1 -1
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.d.ts +1 -0
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js +3 -0
- package/dist/esm/rich-text/editor/testing/rich-text-editor.pageobject.js.map +1 -1
- package/dist/esm/rich-text/editor/types.d.ts +4 -0
- package/dist/esm/rich-text/editor/types.js.map +1 -1
- package/dist/esm/table/styles.js +3 -2
- package/dist/esm/table/styles.js.map +1 -1
- package/dist/esm/utilities/style/types.d.ts +5 -0
- package/dist/esm/utilities/style/types.js +7 -0
- package/dist/esm/utilities/style/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -16301,7 +16301,7 @@
|
|
|
16301
16301
|
|
|
16302
16302
|
/**
|
|
16303
16303
|
* Do not edit directly
|
|
16304
|
-
* Generated on
|
|
16304
|
+
* Generated on Fri, 05 Jan 2024 14:36:09 GMT
|
|
16305
16305
|
*/
|
|
16306
16306
|
|
|
16307
16307
|
const Information100DarkUi = "#a46eff";
|
|
@@ -17338,7 +17338,7 @@
|
|
|
17338
17338
|
/*
|
|
17339
17339
|
Not sure why but this is needed to get buttons with icons and buttons
|
|
17340
17340
|
without icons to align on the same line when the button is inline-flex
|
|
17341
|
-
See: https://github.com/
|
|
17341
|
+
See: https://github.com/ni/nimble/issues/503
|
|
17342
17342
|
*/ ''}
|
|
17343
17343
|
vertical-align: middle;
|
|
17344
17344
|
}
|
|
@@ -18576,11 +18576,18 @@
|
|
|
18576
18576
|
.register(nimbleAnchorTreeItem());
|
|
18577
18577
|
DesignSystem.tagFor(AnchorTreeItem);
|
|
18578
18578
|
|
|
18579
|
+
const ZIndexLevels = {
|
|
18580
|
+
zIndex1: '1',
|
|
18581
|
+
// Original usages of 1000 were to compete with jqx grid usage of z-index 200 for table headers
|
|
18582
|
+
// See: https://github.com/ni/nimble/pull/530#discussion_r863076750
|
|
18583
|
+
zIndex1000: '1000'
|
|
18584
|
+
};
|
|
18585
|
+
|
|
18579
18586
|
const styles$P = css `
|
|
18580
18587
|
:host {
|
|
18581
18588
|
contain: layout;
|
|
18582
18589
|
display: block;
|
|
18583
|
-
z-index:
|
|
18590
|
+
z-index: ${ZIndexLevels.zIndex1000};
|
|
18584
18591
|
}
|
|
18585
18592
|
`;
|
|
18586
18593
|
|
|
@@ -20642,12 +20649,10 @@
|
|
|
20642
20649
|
box-sizing: border-box;
|
|
20643
20650
|
display: inline-flex;
|
|
20644
20651
|
flex-direction: column;
|
|
20645
|
-
left: 0;
|
|
20646
20652
|
overflow-y: auto;
|
|
20647
20653
|
width: 100%;
|
|
20648
20654
|
--ni-private-listbox-padding: ${smallPadding};
|
|
20649
20655
|
max-height: calc(var(--ni-private-select-max-height) - ${smallPadding});
|
|
20650
|
-
z-index: 1;
|
|
20651
20656
|
box-shadow: ${elevation2BoxShadow};
|
|
20652
20657
|
border: 1px solid ${popupBorderColor};
|
|
20653
20658
|
background-color: ${applicationBackgroundColor};
|
|
@@ -56618,8 +56623,10 @@ img.ProseMirror-separator {
|
|
|
56618
56623
|
* @internal
|
|
56619
56624
|
*/
|
|
56620
56625
|
configurationChanged(prev, next) {
|
|
56626
|
+
const formatButtonsState = this.getButtonsState(this.tiptapEditor);
|
|
56627
|
+
const { from, to } = this.tiptapEditor.view.state.selection;
|
|
56621
56628
|
if (this.isMentionExtensionConfigUnchanged(prev, next)) {
|
|
56622
|
-
this.
|
|
56629
|
+
this.setMarkdown(this.getMarkdown());
|
|
56623
56630
|
}
|
|
56624
56631
|
else {
|
|
56625
56632
|
const mentionExtensionConfig = this.getMentionExtensionConfig();
|
|
@@ -56628,6 +56635,8 @@ img.ProseMirror-separator {
|
|
|
56628
56635
|
this.initializeEditor();
|
|
56629
56636
|
this.setMarkdown(currentStateMarkdown);
|
|
56630
56637
|
}
|
|
56638
|
+
this.tiptapEditor.commands.setTextSelection({ from, to });
|
|
56639
|
+
this.resetEditorButtonsState(formatButtonsState);
|
|
56631
56640
|
this.setActiveMappingConfigs();
|
|
56632
56641
|
}
|
|
56633
56642
|
/**
|
|
@@ -56973,11 +56982,22 @@ img.ProseMirror-separator {
|
|
|
56973
56982
|
getMentionExtensionConfigFromCharacter(character) {
|
|
56974
56983
|
return this.getMentionExtensionConfig().find(config => config.character === character);
|
|
56975
56984
|
}
|
|
56976
|
-
|
|
56977
|
-
|
|
56978
|
-
|
|
56979
|
-
|
|
56980
|
-
this.tiptapEditor.
|
|
56985
|
+
resetEditorButtonsState(buttonsState) {
|
|
56986
|
+
if (buttonsState?.bold && !this.tiptapEditor.isActive('bold')) {
|
|
56987
|
+
this.tiptapEditor.chain().focus().toggleBold().run();
|
|
56988
|
+
}
|
|
56989
|
+
if (buttonsState?.italics && !this.tiptapEditor.isActive('italic')) {
|
|
56990
|
+
this.tiptapEditor.chain().focus().toggleItalic().run();
|
|
56991
|
+
}
|
|
56992
|
+
}
|
|
56993
|
+
getButtonsState(tiptapEditor) {
|
|
56994
|
+
if (!this.$fastController.isConnected) {
|
|
56995
|
+
return undefined;
|
|
56996
|
+
}
|
|
56997
|
+
return {
|
|
56998
|
+
bold: tiptapEditor.isActive('bold'),
|
|
56999
|
+
italics: tiptapEditor.isActive('italic')
|
|
57000
|
+
};
|
|
56981
57001
|
}
|
|
56982
57002
|
}
|
|
56983
57003
|
__decorate$1([
|
|
@@ -61845,13 +61865,13 @@ img.ProseMirror-separator {
|
|
|
61845
61865
|
|
|
61846
61866
|
.column-divider.active {
|
|
61847
61867
|
display: block;
|
|
61848
|
-
z-index:
|
|
61868
|
+
z-index: ${ZIndexLevels.zIndex1};
|
|
61849
61869
|
}
|
|
61850
61870
|
|
|
61851
61871
|
.header-container:hover .column-divider.left,
|
|
61852
61872
|
.header-container:hover .column-divider.right {
|
|
61853
61873
|
display: block;
|
|
61854
|
-
z-index:
|
|
61874
|
+
z-index: ${ZIndexLevels.zIndex1};
|
|
61855
61875
|
}
|
|
61856
61876
|
|
|
61857
61877
|
.column-divider.left {
|