@ni/ok-components 1.11.1 → 1.12.1
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 +111 -12
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +4637 -4629
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +118 -118
- package/dist/custom-elements.md +25 -25
- package/package.json +3 -3
|
@@ -18627,6 +18627,10 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18627
18627
|
name: 'arrow_partial_rotate_left_16_x_16',
|
|
18628
18628
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path 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.62 4.62 0 0 1 4.572 4.53A4.63 4.63 0 0 1 8 13.5Z" class="cls-1"/></svg>`,
|
|
18629
18629
|
};
|
|
18630
|
+
const arrowRightArrowLeft16X16 = {
|
|
18631
|
+
name: 'arrow_right_arrow_left_16_x_16',
|
|
18632
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M5 4.167h5.173l-.99-2.084L15 4.983 9.182 7.917l.99-2.084H5zm6 6H5.827l.99-2.084L1 11.017l5.818 2.9-.99-2.084H11z"/></svg>`,
|
|
18633
|
+
};
|
|
18630
18634
|
const arrowRightThin16X16 = {
|
|
18631
18635
|
name: 'arrow_right_thin_16_x_16',
|
|
18632
18636
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m7.97 4.37-.68 1.12 3.09 1.86H2v1.3h8.38l-3.09 1.86.68 1.12L14 8z" class="cls-1"/></svg>`,
|
|
@@ -18843,6 +18847,18 @@ Defines an interaction area clip-path that leaves out the severity text so it is
|
|
|
18843
18847
|
name: 'circle_slash_16_x_16',
|
|
18844
18848
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2a6 6 0 1 0 6 6 6 6 0 0 0-6-6m.075 1.714a4.281 4.281 0 0 1 3.573 6.647L5.714 4.427a4.26 4.26 0 0 1 2.36-.713M3.789 8a4.26 4.26 0 0 1 .713-2.36l5.934 5.933A4.281 4.281 0 0 1 3.789 8" class="cls-1"/></svg>`,
|
|
18845
18849
|
};
|
|
18850
|
+
const circleSparkle16X16 = {
|
|
18851
|
+
name: 'circle_sparkle_16_x_16',
|
|
18852
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2C4.69 2 2 4.69 2 8s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6m1.138 7.133A3.98 3.98 0 0 0 8.003 11.5a3.98 3.98 0 0 0-1.136-2.37A4 4 0 0 0 4.5 7.998a4 4 0 0 0 2.362-1.131A3.98 3.98 0 0 0 7.997 4.5a3.98 3.98 0 0 0 1.136 2.37A4 4 0 0 0 11.5 8.002a4 4 0 0 0-2.362 1.131"/></svg>`,
|
|
18853
|
+
};
|
|
18854
|
+
const circleSparkleExclamation16X16 = {
|
|
18855
|
+
name: 'circle_sparkle_exclamation_16_x_16',
|
|
18856
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.29 6H1.93v-.89h1.36zM8.1 2h.01zM3.15 4.56 3.3 1H1.91l.15 3.56zM14.1 8c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-.34.04-.67.09-1h2.09l.04-3.65A6 6 0 0 1 8.106 2 6.005 6.005 0 0 1 14.1 8m-2.6.002A4 4 0 0 1 9.133 6.87 3.98 3.98 0 0 1 7.997 4.5a3.98 3.98 0 0 1-1.135 2.367A4 4 0 0 1 4.5 7.997 4 4 0 0 1 6.867 9.13a3.98 3.98 0 0 1 1.136 2.37 3.98 3.98 0 0 1 1.135-2.367 4 4 0 0 1 2.362-1.13"/></svg>`,
|
|
18857
|
+
};
|
|
18858
|
+
const circleSparkleTriangle16X16 = {
|
|
18859
|
+
name: 'circle_sparkle_triangle_16_x_16',
|
|
18860
|
+
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.96 4.975H1.01l1.98-3.96 1.98 3.96zm9.03 3.01c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-.71.13-1.38.35-2.01h4.24l-1.59-3.18c.88-.51 1.91-.81 3-.81 3.31 0 6 2.69 6 6m-2.49.017A4 4 0 0 1 9.133 6.87 3.98 3.98 0 0 1 7.997 4.5a3.98 3.98 0 0 1-1.135 2.367A4 4 0 0 1 4.5 7.997 4 4 0 0 1 6.867 9.13a3.98 3.98 0 0 1 1.136 2.37 3.98 3.98 0 0 1 1.135-2.367 4 4 0 0 1 2.362-1.13"/></svg>`,
|
|
18861
|
+
};
|
|
18846
18862
|
const circleX16X16 = {
|
|
18847
18863
|
name: 'circle_x_16_x_16',
|
|
18848
18864
|
data: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 2a6 6 0 1 0 6 6 6 6 0 0 0-6-6m.075 1.714a4.26 4.26 0 0 1 2.409.743l-2.37 2.37-2.4-2.4a4.26 4.26 0 0 1 2.36-.713M4.502 5.64l2.4 2.4-2.37 2.37a4.27 4.27 0 0 1-.03-4.77m3.573 6.647a4.26 4.26 0 0 1-2.31-.685l2.349-2.35 2.322 2.322a4.26 4.26 0 0 1-2.361.713m3.573-1.925L9.326 8.039l2.35-2.349a4.25 4.25 0 0 1-.028 4.67" class="cls-1"/></svg>`,
|
|
@@ -24175,6 +24191,18 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
24175
24191
|
registerIconSvg('icon-arrow-partial-rotate-left', IconArrowPartialRotateLeft);
|
|
24176
24192
|
const iconArrowPartialRotateLeftTag = 'nimble-icon-arrow-partial-rotate-left';
|
|
24177
24193
|
|
|
24194
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24195
|
+
// See generation source in nimble-components/build/generate-icons
|
|
24196
|
+
/**
|
|
24197
|
+
* The icon component for the 'arrowRightArrowLeft' icon
|
|
24198
|
+
*/
|
|
24199
|
+
class IconArrowRightArrowLeft extends IconSvg {
|
|
24200
|
+
constructor() {
|
|
24201
|
+
super(arrowRightArrowLeft16X16);
|
|
24202
|
+
}
|
|
24203
|
+
}
|
|
24204
|
+
registerIconSvg('icon-arrow-right-arrow-left', IconArrowRightArrowLeft);
|
|
24205
|
+
|
|
24178
24206
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24179
24207
|
// See generation source in nimble-components/build/generate-icons
|
|
24180
24208
|
/**
|
|
@@ -24802,6 +24830,42 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
24802
24830
|
}
|
|
24803
24831
|
registerIconSvg('icon-circle-slash', IconCircleSlash);
|
|
24804
24832
|
|
|
24833
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24834
|
+
// See generation source in nimble-components/build/generate-icons
|
|
24835
|
+
/**
|
|
24836
|
+
* The icon component for the 'circleSparkle' icon
|
|
24837
|
+
*/
|
|
24838
|
+
class IconCircleSparkle extends IconSvg {
|
|
24839
|
+
constructor() {
|
|
24840
|
+
super(circleSparkle16X16);
|
|
24841
|
+
}
|
|
24842
|
+
}
|
|
24843
|
+
registerIconSvg('icon-circle-sparkle', IconCircleSparkle);
|
|
24844
|
+
|
|
24845
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24846
|
+
// See generation source in nimble-components/build/generate-icons
|
|
24847
|
+
/**
|
|
24848
|
+
* The icon component for the 'circleSparkleExclamation' icon
|
|
24849
|
+
*/
|
|
24850
|
+
class IconCircleSparkleExclamation extends IconSvg {
|
|
24851
|
+
constructor() {
|
|
24852
|
+
super(circleSparkleExclamation16X16);
|
|
24853
|
+
}
|
|
24854
|
+
}
|
|
24855
|
+
registerIconSvg('icon-circle-sparkle-exclamation', IconCircleSparkleExclamation);
|
|
24856
|
+
|
|
24857
|
+
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24858
|
+
// See generation source in nimble-components/build/generate-icons
|
|
24859
|
+
/**
|
|
24860
|
+
* The icon component for the 'circleSparkleTriangle' icon
|
|
24861
|
+
*/
|
|
24862
|
+
class IconCircleSparkleTriangle extends IconSvg {
|
|
24863
|
+
constructor() {
|
|
24864
|
+
super(circleSparkleTriangle16X16);
|
|
24865
|
+
}
|
|
24866
|
+
}
|
|
24867
|
+
registerIconSvg('icon-circle-sparkle-triangle', IconCircleSparkleTriangle);
|
|
24868
|
+
|
|
24805
24869
|
// AUTO-GENERATED FILE - DO NOT EDIT DIRECTLY
|
|
24806
24870
|
// See generation source in nimble-components/build/generate-icons
|
|
24807
24871
|
/**
|
|
@@ -26953,7 +27017,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26953
27017
|
${display$2('none')}
|
|
26954
27018
|
`;
|
|
26955
27019
|
|
|
26956
|
-
const supportedLabels$
|
|
27020
|
+
const supportedLabels$2 = {
|
|
26957
27021
|
popupDismiss: popupDismissLabel,
|
|
26958
27022
|
numericDecrement: numericDecrementLabel,
|
|
26959
27023
|
numericIncrement: numericIncrementLabel,
|
|
@@ -26975,7 +27039,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26975
27039
|
class LabelProviderCore extends LabelProviderBase {
|
|
26976
27040
|
constructor() {
|
|
26977
27041
|
super(...arguments);
|
|
26978
|
-
this.supportedLabels = supportedLabels$
|
|
27042
|
+
this.supportedLabels = supportedLabels$2;
|
|
26979
27043
|
}
|
|
26980
27044
|
}
|
|
26981
27045
|
__decorate([
|
|
@@ -27112,7 +27176,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27112
27176
|
cssCustomPropertyName: null
|
|
27113
27177
|
}).withDefault(tableLabelDefaults.tableGroupRowPlaceholderEmptyLabel);
|
|
27114
27178
|
|
|
27115
|
-
const supportedLabels = {
|
|
27179
|
+
const supportedLabels$1 = {
|
|
27116
27180
|
groupCollapse: tableGroupCollapseLabel,
|
|
27117
27181
|
groupExpand: tableGroupExpandLabel,
|
|
27118
27182
|
rowCollapse: tableRowCollapseLabel,
|
|
@@ -27136,7 +27200,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
27136
27200
|
class LabelProviderTable extends LabelProviderBase {
|
|
27137
27201
|
constructor() {
|
|
27138
27202
|
super(...arguments);
|
|
27139
|
-
this.supportedLabels = supportedLabels;
|
|
27203
|
+
this.supportedLabels = supportedLabels$1;
|
|
27140
27204
|
}
|
|
27141
27205
|
}
|
|
27142
27206
|
__decorate([
|
|
@@ -104669,6 +104733,20 @@ focus outline in that case.
|
|
|
104669
104733
|
}
|
|
104670
104734
|
`;
|
|
104671
104735
|
|
|
104736
|
+
const chatLabelDefaults = {
|
|
104737
|
+
chatSendLabel: 'Send',
|
|
104738
|
+
chatStopLabel: 'Stop'
|
|
104739
|
+
};
|
|
104740
|
+
|
|
104741
|
+
const chatSendLabel = DesignToken.create({
|
|
104742
|
+
name: 'chat-send-label',
|
|
104743
|
+
cssCustomPropertyName: null
|
|
104744
|
+
}).withDefault(chatLabelDefaults.chatSendLabel);
|
|
104745
|
+
const chatStopLabel = DesignToken.create({
|
|
104746
|
+
name: 'chat-stop-label',
|
|
104747
|
+
cssCustomPropertyName: null
|
|
104748
|
+
}).withDefault(chatLabelDefaults.chatStopLabel);
|
|
104749
|
+
|
|
104672
104750
|
const template$y = html `
|
|
104673
104751
|
<div class="container">
|
|
104674
104752
|
<section class="attachments ${x => (x.attachmentsIsEmpty ? '' : 'has-content')}">
|
|
@@ -104700,10 +104778,10 @@ focus outline in that case.
|
|
|
104700
104778
|
?disabled=${x => (x.processing ? false : (x.sendDisabled || x.isInputEmpty))}
|
|
104701
104779
|
@click=${x => (x.processing ? x.stopButtonClickHandler() : x.sendButtonClickHandler())}
|
|
104702
104780
|
tabindex="${x => x.tabIndex}"
|
|
104703
|
-
title=${x => (x.processing ? x
|
|
104781
|
+
title=${x => (x.processing ? chatStopLabel.getValueFor(x) : chatSendLabel.getValueFor(x))}
|
|
104704
104782
|
content-hidden
|
|
104705
104783
|
>
|
|
104706
|
-
${x => (x.processing ? x
|
|
104784
|
+
${x => (x.processing ? chatStopLabel.getValueFor(x) : chatSendLabel.getValueFor(x))}
|
|
104707
104785
|
${when(x => x.processing, html `<${iconStopSquareTag} slot="start"></${iconStopSquareTag}>`, html `<${iconPaperPlaneTag} slot="start"></${iconPaperPlaneTag}>`)}
|
|
104708
104786
|
</${buttonTag}>
|
|
104709
104787
|
</section>
|
|
@@ -104877,12 +104955,6 @@ focus outline in that case.
|
|
|
104877
104955
|
__decorate([
|
|
104878
104956
|
attr
|
|
104879
104957
|
], ChatInput.prototype, "placeholder", void 0);
|
|
104880
|
-
__decorate([
|
|
104881
|
-
attr({ attribute: 'send-button-label' })
|
|
104882
|
-
], ChatInput.prototype, "sendButtonLabel", void 0);
|
|
104883
|
-
__decorate([
|
|
104884
|
-
attr({ attribute: 'stop-button-label' })
|
|
104885
|
-
], ChatInput.prototype, "stopButtonLabel", void 0);
|
|
104886
104958
|
__decorate([
|
|
104887
104959
|
attr
|
|
104888
104960
|
], ChatInput.prototype, "value", void 0);
|
|
@@ -105869,6 +105941,33 @@ focus outline in that case.
|
|
|
105869
105941
|
.withPrefix('spright')
|
|
105870
105942
|
.register(sprightIconWorkItemWrenchHammer());
|
|
105871
105943
|
|
|
105944
|
+
const supportedLabels = {
|
|
105945
|
+
send: chatSendLabel,
|
|
105946
|
+
stop: chatStopLabel
|
|
105947
|
+
};
|
|
105948
|
+
/**
|
|
105949
|
+
* Label provider for Spright chat components
|
|
105950
|
+
*/
|
|
105951
|
+
class LabelProviderChat extends LabelProviderBase {
|
|
105952
|
+
constructor() {
|
|
105953
|
+
super(...arguments);
|
|
105954
|
+
this.supportedLabels = supportedLabels;
|
|
105955
|
+
}
|
|
105956
|
+
}
|
|
105957
|
+
__decorate([
|
|
105958
|
+
attr
|
|
105959
|
+
], LabelProviderChat.prototype, "send", void 0);
|
|
105960
|
+
__decorate([
|
|
105961
|
+
attr
|
|
105962
|
+
], LabelProviderChat.prototype, "stop", void 0);
|
|
105963
|
+
const sprightLabelProviderChat = LabelProviderChat.compose({
|
|
105964
|
+
baseName: 'label-provider-chat',
|
|
105965
|
+
styles: styles$1e
|
|
105966
|
+
});
|
|
105967
|
+
DesignSystem.getOrCreate()
|
|
105968
|
+
.withPrefix('spright')
|
|
105969
|
+
.register(sprightLabelProviderChat());
|
|
105970
|
+
|
|
105872
105971
|
const styles$j = css `
|
|
105873
105972
|
${display$1('inline-block')}
|
|
105874
105973
|
|