@ni/ok-components 1.18.0 → 1.18.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.
@@ -8,22 +8,6 @@
8
8
 
9
9
  <hr/>
10
10
 
11
- ## class: `TsIconDynamic`
12
-
13
- ### Superclass
14
-
15
- | Name | Module | Package |
16
- | ------ | ------ | ---------------------------------------- |
17
- | `Icon` | | @ni/nimble-components/dist/esm/icon-base |
18
-
19
- ### Static Methods
20
-
21
- | Name | Privacy | Description | Parameters | Return | Inherited From |
22
- | --------------------- | ------- | ----------- | ------------------------------ | ------ | -------------- |
23
- | `registerIconDynamic` | public | | `tagName: string, url: string` | `void` | |
24
-
25
- <hr/>
26
-
27
11
  ## class: `FvAccordionItem`
28
12
 
29
13
  ### Superclass
@@ -50,6 +34,34 @@
50
34
 
51
35
  <hr/>
52
36
 
37
+ ## class: `BulkEditState`
38
+
39
+ ### Fields
40
+
41
+ | Name | Privacy | Type | Default | Description | Inherited From |
42
+ | ----------------- | ------- | ---------------------------------- | ------- | ----------- | -------------- |
43
+ | `selectedIds` | public | `readonly RecordId[]` | | | |
44
+ | `changes` | public | `Readonly<PendingChanges<TField>>` | | | |
45
+ | `selectedRecords` | public | `readonly TRecord[]` | | | |
46
+
47
+ ### Methods
48
+
49
+ | Name | Privacy | Description | Parameters | Return | Inherited From |
50
+ | ------------------ | ------- | ----------- | ------------------------------------------------------------------------------------ | --------------------------------- | -------------- |
51
+ | `field` | public | | `field: TField` | `BulkEditFieldValue` | |
52
+ | `edit` | public | | `field: TField, value: string` | `void` | |
53
+ | `clear` | public | | `field: TField` | `void` | |
54
+ | `resetField` | public | | `field: TField` | `void` | |
55
+ | `revert` | public | | | `void` | |
56
+ | `isSelection` | public | | `ids: readonly RecordId[]` | `boolean` | |
57
+ | `visibleSelection` | public | | `visibleIds: readonly RecordId[]` | `readonly RecordId[]` | |
58
+ | `mergeVisible` | public | | `visibleIds: readonly RecordId[], selectedVisibleIds: readonly RecordId[], additive` | `readonly RecordId[]` | |
59
+ | `select` | public | | `ids: readonly RecordId[]` | `void` | |
60
+ | `createCommit` | public | | | `BulkEditCommit<TRecord, TField>` | |
61
+ | `commitSucceeded` | public | | `updatedRecords: readonly TRecord[]` | `void` | |
62
+
63
+ <hr/>
64
+
53
65
  ## class: `FvBulkEditField`
54
66
 
55
67
  ### Superclass
@@ -79,34 +91,6 @@
79
91
 
80
92
  <hr/>
81
93
 
82
- ## class: `BulkEditState`
83
-
84
- ### Fields
85
-
86
- | Name | Privacy | Type | Default | Description | Inherited From |
87
- | ----------------- | ------- | ---------------------------------- | ------- | ----------- | -------------- |
88
- | `selectedIds` | public | `readonly RecordId[]` | | | |
89
- | `changes` | public | `Readonly<PendingChanges<TField>>` | | | |
90
- | `selectedRecords` | public | `readonly TRecord[]` | | | |
91
-
92
- ### Methods
93
-
94
- | Name | Privacy | Description | Parameters | Return | Inherited From |
95
- | ------------------ | ------- | ----------- | ------------------------------------------------------------------------------------ | --------------------------------- | -------------- |
96
- | `field` | public | | `field: TField` | `BulkEditFieldValue` | |
97
- | `edit` | public | | `field: TField, value: string` | `void` | |
98
- | `clear` | public | | `field: TField` | `void` | |
99
- | `resetField` | public | | `field: TField` | `void` | |
100
- | `revert` | public | | | `void` | |
101
- | `isSelection` | public | | `ids: readonly RecordId[]` | `boolean` | |
102
- | `visibleSelection` | public | | `visibleIds: readonly RecordId[]` | `readonly RecordId[]` | |
103
- | `mergeVisible` | public | | `visibleIds: readonly RecordId[], selectedVisibleIds: readonly RecordId[], additive` | `readonly RecordId[]` | |
104
- | `select` | public | | `ids: readonly RecordId[]` | `void` | |
105
- | `createCommit` | public | | | `BulkEditCommit<TRecord, TField>` | |
106
- | `commitSucceeded` | public | | `updatedRecords: readonly TRecord[]` | `void` | |
107
-
108
- <hr/>
109
-
110
94
  ## class: `FvCard`
111
95
 
112
96
  ### Superclass
@@ -398,34 +382,6 @@
398
382
 
399
383
  <hr/>
400
384
 
401
- ## class: `FvMasterDetailList`
402
-
403
- ### Superclass
404
-
405
- | Name | Module | Package |
406
- | ------------------- | ------ | ------------------- |
407
- | `FoundationElement` | | @ni/fast-foundation |
408
-
409
- ### Fields
410
-
411
- | Name | Privacy | Type | Default | Description | Inherited From |
412
- | ------------- | ------- | -------- | ------------------- | ----------- | -------------- |
413
- | `placeholder` | public | `string` | `'Filter items...'` | | |
414
-
415
- ### Events
416
-
417
- | Name | Type | Description | Inherited From |
418
- | -------- | ------------- | ----------- | -------------- |
419
- | `change` | `CustomEvent` | | |
420
-
421
- ### Attributes
422
-
423
- | Name | Field | Inherited From |
424
- | ------------- | ----------- | -------------- |
425
- | `placeholder` | placeholder | |
426
-
427
- <hr/>
428
-
429
385
  ## class: `FvMasterDetailListItem`
430
386
 
431
387
  ### Superclass
@@ -460,6 +416,34 @@
460
416
 
461
417
  <hr/>
462
418
 
419
+ ## class: `FvMasterDetailList`
420
+
421
+ ### Superclass
422
+
423
+ | Name | Module | Package |
424
+ | ------------------- | ------ | ------------------- |
425
+ | `FoundationElement` | | @ni/fast-foundation |
426
+
427
+ ### Fields
428
+
429
+ | Name | Privacy | Type | Default | Description | Inherited From |
430
+ | ------------- | ------- | -------- | ------------------- | ----------- | -------------- |
431
+ | `placeholder` | public | `string` | `'Filter items...'` | | |
432
+
433
+ ### Events
434
+
435
+ | Name | Type | Description | Inherited From |
436
+ | -------- | ------------- | ----------- | -------------- |
437
+ | `change` | `CustomEvent` | | |
438
+
439
+ ### Attributes
440
+
441
+ | Name | Field | Inherited From |
442
+ | ------------- | ----------- | -------------- |
443
+ | `placeholder` | placeholder | |
444
+
445
+ <hr/>
446
+
463
447
  ## class: `FvMultiSelect`
464
448
 
465
449
  ### Superclass
@@ -774,6 +758,54 @@
774
758
 
775
759
  <hr/>
776
760
 
761
+ ## class: `FvSummaryPanelTile`
762
+
763
+ ### Superclass
764
+
765
+ | Name | Module | Package |
766
+ | ------------------- | ------ | ------------------- |
767
+ | `FoundationElement` | | @ni/fast-foundation |
768
+
769
+ ### Fields
770
+
771
+ | Name | Privacy | Type | Default | Description | Inherited From |
772
+ | -------------- | ------- | ------------------------------------ | ------- | ----------- | -------------- |
773
+ | `count` | public | `string` | `''` | | |
774
+ | `label` | public | `string` | `''` | | |
775
+ | `legacyStyle` | public | `boolean` | `false` | | |
776
+ | `size` | public | `FvSummaryPanelSizeType` | | | |
777
+ | `selected` | public | `boolean` | `false` | | |
778
+ | `textPosition` | public | `FvSummaryPanelTileTextPositionType` | | | |
779
+
780
+ ### Attributes
781
+
782
+ | Name | Field | Inherited From |
783
+ | --------------- | ------------ | -------------- |
784
+ | `count` | count | |
785
+ | `label` | label | |
786
+ | `legacy-style` | legacyStyle | |
787
+ | `size` | size | |
788
+ | `selected` | selected | |
789
+ | `text-position` | textPosition | |
790
+
791
+ <hr/>
792
+
793
+ ## class: `TsIconDynamic`
794
+
795
+ ### Superclass
796
+
797
+ | Name | Module | Package |
798
+ | ------ | ------ | ---------------------------------------- |
799
+ | `Icon` | | @ni/nimble-components/dist/esm/icon-base |
800
+
801
+ ### Static Methods
802
+
803
+ | Name | Privacy | Description | Parameters | Return | Inherited From |
804
+ | --------------------- | ------- | ----------- | ------------------------------ | ------ | -------------- |
805
+ | `registerIconDynamic` | public | | `tagName: string, url: string` | `void` | |
806
+
807
+ <hr/>
808
+
777
809
  ## class: `TsTableColumnBreakpoint`
778
810
 
779
811
  ### Superclass
@@ -813,38 +845,6 @@
813
845
 
814
846
  <hr/>
815
847
 
816
- ## class: `FvSummaryPanelTile`
817
-
818
- ### Superclass
819
-
820
- | Name | Module | Package |
821
- | ------------------- | ------ | ------------------- |
822
- | `FoundationElement` | | @ni/fast-foundation |
823
-
824
- ### Fields
825
-
826
- | Name | Privacy | Type | Default | Description | Inherited From |
827
- | -------------- | ------- | ------------------------------------ | ------- | ----------- | -------------- |
828
- | `count` | public | `string` | `''` | | |
829
- | `label` | public | `string` | `''` | | |
830
- | `legacyStyle` | public | `boolean` | `false` | | |
831
- | `size` | public | `FvSummaryPanelSizeType` | | | |
832
- | `selected` | public | `boolean` | `false` | | |
833
- | `textPosition` | public | `FvSummaryPanelTileTextPositionType` | | | |
834
-
835
- ### Attributes
836
-
837
- | Name | Field | Inherited From |
838
- | --------------- | ------------ | -------------- |
839
- | `count` | count | |
840
- | `label` | label | |
841
- | `legacy-style` | legacyStyle | |
842
- | `size` | size | |
843
- | `selected` | selected | |
844
- | `text-position` | textPosition | |
845
-
846
- <hr/>
847
-
848
848
  ## class: `TsTableColumnBreakpointCellView`
849
849
 
850
850
  ### Superclass
@@ -1,5 +1,5 @@
1
1
  import { css } from '@ni/fast-element';
2
- import { applicationBackgroundColor, bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor, borderWidth, controlHeight, controlSlimHeight, controlLabelFont, controlLabelFontColor, elevation2BoxShadow, fillHoverColor, fillHoverSelectedColor, fillSelectedColor, iconColor, mediumPadding, placeholderFontColor, popupBorderColor, smallDelay, smallPadding, standardPadding } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
2
+ import { applicationBackgroundColor, bodyDisabledFontColor, bodyFont, bodyFontColor, borderHoverColor, borderRgbPartialColor, borderWidth, controlHeight, controlSlimHeight, controlLabelFont, controlLabelFontColor, elevation2BoxShadow, fillHoverColor, iconColor, mediumPadding, placeholderFontColor, popupBorderColor, smallDelay, smallPadding, standardPadding } from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';
3
3
  import { Theme } from '@ni/nimble-components/dist/esm/theme-provider/types';
4
4
  import { focusVisible } from '@ni/nimble-components/dist/esm/utilities/style/focus';
5
5
  import { themeBehavior } from '@ni/nimble-components/dist/esm/utilities/style/theme';
@@ -148,6 +148,10 @@ export const styles = css `
148
148
  box-shadow: ${elevation2BoxShadow};
149
149
  }
150
150
 
151
+ .anchored-region.top .popup {
152
+ flex-direction: column-reverse;
153
+ }
154
+
151
155
  .filter-field {
152
156
  flex-shrink: 0;
153
157
  display: flex;
@@ -157,6 +161,10 @@ export const styles = css `
157
161
  box-shadow: 0 2px rgba(${borderRgbPartialColor}, 0.1);
158
162
  }
159
163
 
164
+ .anchored-region.top .filter-field {
165
+ box-shadow: 0 -2px rgba(${borderRgbPartialColor}, 0.1);
166
+ }
167
+
160
168
  .filter-icon {
161
169
  flex-shrink: 0;
162
170
  margin-left: ${smallPadding};
@@ -182,16 +190,31 @@ export const styles = css `
182
190
  .listbox {
183
191
  min-height: 0;
184
192
  max-height: 240px;
193
+ box-sizing: border-box;
194
+ padding: ${smallPadding};
195
+ padding-top: calc(${smallPadding} + 2px);
196
+ scroll-padding: calc(${smallPadding} + 2px) ${smallPadding} ${smallPadding};
185
197
  overflow-y: auto;
186
198
  outline: none;
187
199
  }
188
200
 
201
+ .anchored-region.top .filter-field + .listbox:has(.option) {
202
+ padding-top: ${smallPadding};
203
+ padding-bottom: calc(${smallPadding} + 2px);
204
+ scroll-padding-top: ${smallPadding};
205
+ scroll-padding-bottom: calc(${smallPadding} + 2px);
206
+ }
207
+
208
+ .popup:has(.empty) .listbox {
209
+ padding: 0;
210
+ }
211
+
189
212
  .option {
190
213
  display: flex;
191
214
  align-items: center;
192
215
  gap: ${smallPadding};
193
216
  min-height: ${controlHeight};
194
- padding: 0 ${standardPadding};
217
+ padding: 0 ${mediumPadding};
195
218
  cursor: pointer;
196
219
  }
197
220
 
@@ -211,11 +234,8 @@ export const styles = css `
211
234
  }
212
235
 
213
236
  .keyboard-navigation .option.active {
214
- background: ${fillSelectedColor};
215
- }
216
-
217
- .keyboard-navigation .option.active:hover {
218
- background: ${fillHoverSelectedColor};
237
+ outline: 2px solid ${borderHoverColor};
238
+ outline-offset: -2px;
219
239
  }
220
240
 
221
241
  :host(:is([disabled], :disabled)) .control-field,
@@ -231,10 +251,16 @@ export const styles = css `
231
251
 
232
252
  .empty {
233
253
  flex-shrink: 0;
234
- padding: ${standardPadding};
254
+ display: flex;
255
+ align-items: center;
256
+ box-sizing: border-box;
257
+ height: ${controlHeight};
258
+ padding: ${smallPadding} ${mediumPadding};
235
259
  }
236
260
  `.withBehaviors(themeBehavior(Theme.color, css `
237
- .filter-field {
261
+ .filter-field,
262
+ .listbox,
263
+ .empty {
238
264
  background: rgba(255, 255, 255, 0.15);
239
265
  }
240
266
  `));
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/fv/multi-select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,0BAA0B,EAC1B,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,eAAe,EAClB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;;;gBAKb,QAAQ;iBACP,aAAa;;;;;yBAKL,YAAY;gBACrB,gBAAgB;iBACf,qBAAqB;;;;;;;eAOvB,YAAY;;kBAET,aAAa;;qBAEV,eAAe;kBAClB,WAAW;oCACO,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BvC,iBAAiB;;;;6BAIN,qBAAqB;;;;2BAIvB,qBAAqB;;;;;;;;;+BASjB,gBAAgB;;;;;;;;;;;;4BAYnB,UAAU;;;;uBAIf,WAAW;mCACC,gBAAgB;;;;4BAIvB,WAAW;8BACT,WAAW,iBAAiB,gBAAgB;;;oEAGN,YAAY;;;;;oEAKZ,YAAY;;;;;;;;;;;;;;;;;;;;;iBAqB/D,oBAAoB;;;;uBAId,YAAY;;;;0BAIT,YAAY;;;;;;;wFAOkD,YAAY;;kBAElF,WAAW,UAAU,gBAAgB;sBACjC,0BAA0B;sBAC1B,mBAAmB;;;;;;;kBAOvB,aAAa;;iCAEE,qBAAqB;;;;;uBAK/B,YAAY;UACzB,SAAS,CAAC,iBAAiB,KAAK,oBAAoB;;;;;;kBAM5C,aAAa;qBACV,YAAY,MAAM,aAAa;;;;;;;;;iBASnC,oBAAoB;;;;;;;;;;;;;eAatB,YAAY;sBACL,aAAa;qBACd,eAAe;;;;;;;;;;;;;;;;sBAgBd,cAAc;;;;sBAId,iBAAiB;;;;sBAIjB,sBAAsB;;;;;;iBAM3B,qBAAqB;;;;;UAK5B,SAAS,CAAC,iBAAiB,KAAK,qBAAqB;;;;;mBAK5C,eAAe;;CAEjC,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;;;SAIF,CACJ,CACJ,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n applicationBackgroundColor,\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n borderRgbPartialColor,\n borderWidth,\n controlHeight,\n controlSlimHeight,\n controlLabelFont,\n controlLabelFontColor,\n elevation2BoxShadow,\n fillHoverColor,\n fillHoverSelectedColor,\n fillSelectedColor,\n iconColor,\n mediumPadding,\n placeholderFontColor,\n popupBorderColor,\n smallDelay,\n smallPadding,\n standardPadding\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { Theme } from '@ni/nimble-components/dist/esm/theme-provider/types';\nimport { focusVisible } from '@ni/nimble-components/dist/esm/utilities/style/focus';\nimport { themeBehavior } from '@ni/nimble-components/dist/esm/utilities/style/theme';\nimport { display } from '../../utilities/style/display';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n width: 300px;\n max-width: 100%;\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n .label {\n display: block;\n margin-bottom: ${smallPadding};\n font: ${controlLabelFont};\n color: ${controlLabelFontColor};\n }\n\n .control-field {\n position: relative;\n display: flex;\n align-items: center;\n gap: ${smallPadding};\n width: 100%;\n height: ${controlHeight};\n box-sizing: border-box;\n padding: 0 ${standardPadding};\n border: ${borderWidth} solid transparent;\n border-bottom-color: rgba(${borderRgbPartialColor}, 0.3);\n border-radius: 0;\n font: inherit;\n color: inherit;\n background: transparent;\n text-align: start;\n cursor: pointer;\n }\n\n .control {\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: none;\n font: inherit;\n color: inherit;\n background: transparent;\n text-align: start;\n cursor: inherit;\n outline: none;\n }\n\n .clear-button {\n flex: none;\n height: ${controlSlimHeight};\n }\n\n :host([appearance='outline']) .control-field {\n border-color: rgba(${borderRgbPartialColor}, 0.3);\n }\n\n :host([appearance='block']) .control-field {\n background: rgba(${borderRgbPartialColor}, 0.1);\n border-color: transparent;\n }\n\n :host([appearance='frameless']) .control-field {\n border-color: transparent;\n }\n\n :host([open]:not(:hover)) .control-field {\n border-bottom-color: ${borderHoverColor};\n }\n\n .control-field::before,\n .control-field::after {\n content: '';\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n pointer-events: none;\n transition: width ${smallDelay} ease-in;\n }\n\n .control-field::before {\n bottom: calc(${borderWidth} + 1px);\n border-bottom: 1px solid ${borderHoverColor};\n }\n\n .control-field::after {\n bottom: calc(-1 * ${borderWidth});\n border-bottom: calc(${borderWidth} + 1px) solid ${borderHoverColor};\n }\n\n :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::before {\n width: calc(100% - 8px);\n }\n\n :host(:not([disabled], :disabled)) .control-field:hover::after,\n :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::after {\n width: 100%;\n }\n\n @media (prefers-reduced-motion) {\n .control-field::before,\n .control-field::after {\n transition-duration: 0s;\n }\n }\n\n .selected-value {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .placeholder,\n .empty {\n color: ${placeholderFontColor};\n }\n\n .anchored-region.bottom {\n padding-top: ${smallPadding};\n }\n\n .anchored-region.top {\n padding-bottom: ${smallPadding};\n }\n\n .popup {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: max(0px, calc(var(--ok-fv-multi-select-available-height, 100vh) - ${smallPadding}));\n box-sizing: border-box;\n border: ${borderWidth} solid ${popupBorderColor};\n background: ${applicationBackgroundColor};\n box-shadow: ${elevation2BoxShadow};\n }\n\n .filter-field {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n height: ${controlHeight};\n background: transparent;\n box-shadow: 0 2px rgba(${borderRgbPartialColor}, 0.1);\n }\n\n .filter-icon {\n flex-shrink: 0;\n margin-left: ${smallPadding};\n ${iconColor.cssCustomProperty}: ${placeholderFontColor};\n }\n\n .filter-input {\n width: 100%;\n min-width: 0;\n height: ${controlHeight};\n padding: 0 ${smallPadding} 0 ${mediumPadding};\n border: none;\n outline: none;\n font: inherit;\n color: inherit;\n background: transparent;\n }\n\n .filter-input::placeholder {\n color: ${placeholderFontColor};\n }\n\n .listbox {\n min-height: 0;\n max-height: 240px;\n overflow-y: auto;\n outline: none;\n }\n\n .option {\n display: flex;\n align-items: center;\n gap: ${smallPadding};\n min-height: ${controlHeight};\n padding: 0 ${standardPadding};\n cursor: pointer;\n }\n\n .option-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .option nimble-checkbox {\n flex: none;\n pointer-events: none;\n }\n\n .option:not([aria-disabled='true']):hover {\n background: ${fillHoverColor};\n }\n\n .keyboard-navigation .option.active {\n background: ${fillSelectedColor};\n }\n\n .keyboard-navigation .option.active:hover {\n background: ${fillHoverSelectedColor};\n }\n\n :host(:is([disabled], :disabled)) .control-field,\n :host(:is([disabled], :disabled)) .label,\n .option[aria-disabled='true'] {\n color: ${bodyDisabledFontColor};\n cursor: default;\n }\n\n :host(:is([disabled], :disabled)) .control-field {\n ${iconColor.cssCustomProperty}: ${bodyDisabledFontColor};\n }\n\n .empty {\n flex-shrink: 0;\n padding: ${standardPadding};\n }\n`.withBehaviors(\n themeBehavior(\n Theme.color,\n css`\n .filter-field {\n background: rgba(255, 255, 255, 0.15);\n }\n `\n )\n);\n"]}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/fv/multi-select/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EACH,0BAA0B,EAC1B,qBAAqB,EACrB,QAAQ,EACR,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,eAAe,EAClB,MAAM,6DAA6D,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAExD,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;MACnB,OAAO,CAAC,cAAc,CAAC;;;;;gBAKb,QAAQ;iBACP,aAAa;;;;;yBAKL,YAAY;gBACrB,gBAAgB;iBACf,qBAAqB;;;;;;;eAOvB,YAAY;;kBAET,aAAa;;qBAEV,eAAe;kBAClB,WAAW;oCACO,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA2BvC,iBAAiB;;;;6BAIN,qBAAqB;;;;2BAIvB,qBAAqB;;;;;;;;;+BASjB,gBAAgB;;;;;;;;;;;;4BAYnB,UAAU;;;;uBAIf,WAAW;mCACC,gBAAgB;;;;4BAIvB,WAAW;8BACT,WAAW,iBAAiB,gBAAgB;;;oEAGN,YAAY;;;;;oEAKZ,YAAY;;;;;;;;;;;;;;;;;;;;;iBAqB/D,oBAAoB;;;;uBAId,YAAY;;;;0BAIT,YAAY;;;;;;;wFAOkD,YAAY;;kBAElF,WAAW,UAAU,gBAAgB;sBACjC,0BAA0B;sBAC1B,mBAAmB;;;;;;;;;;;kBAWvB,aAAa;;iCAEE,qBAAqB;;;;kCAIpB,qBAAqB;;;;;uBAKhC,YAAY;UACzB,SAAS,CAAC,iBAAiB,KAAK,oBAAoB;;;;;;kBAM5C,aAAa;qBACV,YAAY,MAAM,aAAa;;;;;;;;;iBASnC,oBAAoB;;;;;;;mBAOlB,YAAY;4BACH,YAAY;+BACT,YAAY,WAAW,YAAY,IAAI,YAAY;;;;;;uBAM3D,YAAY;+BACJ,YAAY;8BACb,YAAY;sCACJ,YAAY;;;;;;;;;;eAUnC,YAAY;sBACL,aAAa;qBACd,aAAa;;;;;;;;;;;;;;;;sBAgBZ,cAAc;;;;6BAIP,gBAAgB;;;;;;;iBAO5B,qBAAqB;;;;;UAK5B,SAAS,CAAC,iBAAiB,KAAK,qBAAqB;;;;;;;;kBAQ7C,aAAa;mBACZ,YAAY,IAAI,aAAa;;CAE/C,CAAC,aAAa,CACX,aAAa,CACT,KAAK,CAAC,KAAK,EACX,GAAG,CAAA;;;;;;SAMF,CACJ,CACJ,CAAC","sourcesContent":["import { css } from '@ni/fast-element';\nimport {\n applicationBackgroundColor,\n bodyDisabledFontColor,\n bodyFont,\n bodyFontColor,\n borderHoverColor,\n borderRgbPartialColor,\n borderWidth,\n controlHeight,\n controlSlimHeight,\n controlLabelFont,\n controlLabelFontColor,\n elevation2BoxShadow,\n fillHoverColor,\n iconColor,\n mediumPadding,\n placeholderFontColor,\n popupBorderColor,\n smallDelay,\n smallPadding,\n standardPadding\n} from '@ni/nimble-components/dist/esm/theme-provider/design-tokens';\nimport { Theme } from '@ni/nimble-components/dist/esm/theme-provider/types';\nimport { focusVisible } from '@ni/nimble-components/dist/esm/utilities/style/focus';\nimport { themeBehavior } from '@ni/nimble-components/dist/esm/utilities/style/theme';\nimport { display } from '../../utilities/style/display';\n\nexport const styles = css`\n ${display('inline-block')}\n\n :host {\n width: 300px;\n max-width: 100%;\n font: ${bodyFont};\n color: ${bodyFontColor};\n }\n\n .label {\n display: block;\n margin-bottom: ${smallPadding};\n font: ${controlLabelFont};\n color: ${controlLabelFontColor};\n }\n\n .control-field {\n position: relative;\n display: flex;\n align-items: center;\n gap: ${smallPadding};\n width: 100%;\n height: ${controlHeight};\n box-sizing: border-box;\n padding: 0 ${standardPadding};\n border: ${borderWidth} solid transparent;\n border-bottom-color: rgba(${borderRgbPartialColor}, 0.3);\n border-radius: 0;\n font: inherit;\n color: inherit;\n background: transparent;\n text-align: start;\n cursor: pointer;\n }\n\n .control {\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 0;\n height: 100%;\n padding: 0;\n border: none;\n font: inherit;\n color: inherit;\n background: transparent;\n text-align: start;\n cursor: inherit;\n outline: none;\n }\n\n .clear-button {\n flex: none;\n height: ${controlSlimHeight};\n }\n\n :host([appearance='outline']) .control-field {\n border-color: rgba(${borderRgbPartialColor}, 0.3);\n }\n\n :host([appearance='block']) .control-field {\n background: rgba(${borderRgbPartialColor}, 0.1);\n border-color: transparent;\n }\n\n :host([appearance='frameless']) .control-field {\n border-color: transparent;\n }\n\n :host([open]:not(:hover)) .control-field {\n border-bottom-color: ${borderHoverColor};\n }\n\n .control-field::before,\n .control-field::after {\n content: '';\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n width: 0;\n height: 0;\n pointer-events: none;\n transition: width ${smallDelay} ease-in;\n }\n\n .control-field::before {\n bottom: calc(${borderWidth} + 1px);\n border-bottom: 1px solid ${borderHoverColor};\n }\n\n .control-field::after {\n bottom: calc(-1 * ${borderWidth});\n border-bottom: calc(${borderWidth} + 1px) solid ${borderHoverColor};\n }\n\n :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::before {\n width: calc(100% - 8px);\n }\n\n :host(:not([disabled], :disabled)) .control-field:hover::after,\n :host(:not([disabled], :disabled)) .control-field:has(.control${focusVisible})::after {\n width: 100%;\n }\n\n @media (prefers-reduced-motion) {\n .control-field::before,\n .control-field::after {\n transition-duration: 0s;\n }\n }\n\n .selected-value {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .placeholder,\n .empty {\n color: ${placeholderFontColor};\n }\n\n .anchored-region.bottom {\n padding-top: ${smallPadding};\n }\n\n .anchored-region.top {\n padding-bottom: ${smallPadding};\n }\n\n .popup {\n display: flex;\n flex-direction: column;\n width: 100%;\n max-height: max(0px, calc(var(--ok-fv-multi-select-available-height, 100vh) - ${smallPadding}));\n box-sizing: border-box;\n border: ${borderWidth} solid ${popupBorderColor};\n background: ${applicationBackgroundColor};\n box-shadow: ${elevation2BoxShadow};\n }\n\n .anchored-region.top .popup {\n flex-direction: column-reverse;\n }\n\n .filter-field {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n height: ${controlHeight};\n background: transparent;\n box-shadow: 0 2px rgba(${borderRgbPartialColor}, 0.1);\n }\n\n .anchored-region.top .filter-field {\n box-shadow: 0 -2px rgba(${borderRgbPartialColor}, 0.1);\n }\n\n .filter-icon {\n flex-shrink: 0;\n margin-left: ${smallPadding};\n ${iconColor.cssCustomProperty}: ${placeholderFontColor};\n }\n\n .filter-input {\n width: 100%;\n min-width: 0;\n height: ${controlHeight};\n padding: 0 ${smallPadding} 0 ${mediumPadding};\n border: none;\n outline: none;\n font: inherit;\n color: inherit;\n background: transparent;\n }\n\n .filter-input::placeholder {\n color: ${placeholderFontColor};\n }\n\n .listbox {\n min-height: 0;\n max-height: 240px;\n box-sizing: border-box;\n padding: ${smallPadding};\n padding-top: calc(${smallPadding} + 2px);\n scroll-padding: calc(${smallPadding} + 2px) ${smallPadding} ${smallPadding};\n overflow-y: auto;\n outline: none;\n }\n\n .anchored-region.top .filter-field + .listbox:has(.option) {\n padding-top: ${smallPadding};\n padding-bottom: calc(${smallPadding} + 2px);\n scroll-padding-top: ${smallPadding};\n scroll-padding-bottom: calc(${smallPadding} + 2px);\n }\n\n .popup:has(.empty) .listbox {\n padding: 0;\n }\n\n .option {\n display: flex;\n align-items: center;\n gap: ${smallPadding};\n min-height: ${controlHeight};\n padding: 0 ${mediumPadding};\n cursor: pointer;\n }\n\n .option-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .option nimble-checkbox {\n flex: none;\n pointer-events: none;\n }\n\n .option:not([aria-disabled='true']):hover {\n background: ${fillHoverColor};\n }\n\n .keyboard-navigation .option.active {\n outline: 2px solid ${borderHoverColor};\n outline-offset: -2px;\n }\n\n :host(:is([disabled], :disabled)) .control-field,\n :host(:is([disabled], :disabled)) .label,\n .option[aria-disabled='true'] {\n color: ${bodyDisabledFontColor};\n cursor: default;\n }\n\n :host(:is([disabled], :disabled)) .control-field {\n ${iconColor.cssCustomProperty}: ${bodyDisabledFontColor};\n }\n\n .empty {\n flex-shrink: 0;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n height: ${controlHeight};\n padding: ${smallPadding} ${mediumPadding};\n }\n`.withBehaviors(\n themeBehavior(\n Theme.color,\n css`\n .filter-field,\n .listbox,\n .empty {\n background: rgba(255, 255, 255, 0.15);\n }\n `\n )\n);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ni/ok-components",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "NI Ok Components",
5
5
  "scripts": {
6
6
  "build": "npm run build:components && npm run build:cem",