@aquera/nile-elements 1.9.7 → 1.9.8
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/README.md +3 -0
- package/dist/index.js +11 -2
- package/dist/nile-select/virtual-scroll-helper.cjs.js +1 -1
- package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -1
- package/dist/nile-select/virtual-scroll-helper.esm.js +52 -44
- package/dist/nile-virtual-select/renderer.cjs.js +1 -1
- package/dist/nile-virtual-select/renderer.cjs.js.map +1 -1
- package/dist/nile-virtual-select/renderer.esm.js +23 -22
- package/dist/src/nile-select/virtual-scroll-helper.js +9 -1
- package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -1
- package/dist/src/nile-virtual-select/renderer.js +1 -0
- package/dist/src/nile-virtual-select/renderer.js.map +1 -1
- package/dist/src/version.js +1 -1
- package/dist/src/version.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-select/virtual-scroll-helper.ts +9 -1
- package/src/nile-virtual-select/renderer.ts +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,9 @@ To run a local development server that serves the basic demo located in `demo/in
|
|
|
79
79
|
|
|
80
80
|
In this section, you can find the updates for each release of `nile-elements`. It's a good practice to maintain detailed release notes to help users and developers understand what changes have been made from one version to another and how these changes might affect their projects.
|
|
81
81
|
|
|
82
|
+
#### Version 1.9.8 (July 16, 2026)
|
|
83
|
+
- Nile Virtual Select: Added Parts for Nile Option in Nile Virtual Select (UIF-1306)
|
|
84
|
+
|
|
82
85
|
#### Version 1.9.7 (July 13, 2026)
|
|
83
86
|
- Nile WYSIWYG Editor: Added New Component (UIF-1303)
|
|
84
87
|
|
package/dist/index.js
CHANGED
|
@@ -5773,6 +5773,7 @@ class no{constructor(e){this._element=null;const t=e??window;this._node=t,e&&(th
|
|
|
5773
5773
|
.showCheckbox=${n}
|
|
5774
5774
|
.tickOnSelect=${g??!1}
|
|
5775
5775
|
.legacy=${u??!1}
|
|
5776
|
+
exportparts="base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description"
|
|
5776
5777
|
class=${xe({option:c??!1,[I??""]:!!I})}
|
|
5777
5778
|
.description=${j}
|
|
5778
5779
|
.isDescriptionEnabled=${c}
|
|
@@ -6076,7 +6077,15 @@ class no{constructor(e){this._element=null;const t=e??window;this._node=t,e&&(th
|
|
|
6076
6077
|
search,
|
|
6077
6078
|
loader,
|
|
6078
6079
|
footer,
|
|
6079
|
-
tag__content
|
|
6080
|
+
tag__content,
|
|
6081
|
+
option__base,
|
|
6082
|
+
option__label,
|
|
6083
|
+
option__prefix,
|
|
6084
|
+
option__suffix,
|
|
6085
|
+
option__checked-icon,
|
|
6086
|
+
option__checkbox,
|
|
6087
|
+
option__label_container,
|
|
6088
|
+
option__description
|
|
6080
6089
|
"
|
|
6081
6090
|
>
|
|
6082
6091
|
<slot name="prefix" slot="prefix"></slot>
|
|
@@ -18279,7 +18288,7 @@ nile-rich-text-editor[disabled] .editor figure.rte-image {
|
|
|
18279
18288
|
</span>
|
|
18280
18289
|
`:B}
|
|
18281
18290
|
</button>
|
|
18282
|
-
`}};e([de({type:String,reflect:!0})],nb.prototype,"color",void 0),e([de({type:Boolean,reflect:!0})],nb.prototype,"active",void 0),nb=e([ce("nile-color-swatch")],nb);"undefined"!=typeof window&&(window.nileElementsVersion='"1.9.
|
|
18291
|
+
`}};e([de({type:String,reflect:!0})],nb.prototype,"color",void 0),e([de({type:Boolean,reflect:!0})],nb.prototype,"active",void 0),nb=e([ce("nile-color-swatch")],nb);"undefined"!=typeof window&&(window.nileElementsVersion='"1.9.8"',window.nileVersion="__NILE_VERSION__",window.process=window.process||{env:{NODE_ENV:"production"}});const ob=s`
|
|
18283
18292
|
:host {
|
|
18284
18293
|
|
|
18285
18294
|
top: 0;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,
|
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,o;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}return{setters:[function(_lit){e=_lit.html;}],execute:function execute(){_export("V",o=/*#__PURE__*/function(){function o(e){_classCallCheck(this,o);this.component=e;}return _createClass(o,[{key:"renderVirtualizedContent",value:function renderVirtualizedContent(){var _o=this.component;return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"virtual-select\">\n <nile-virtual-select\n .name=","\n .value=","\n .autoResize=","\n .placeholder=","\n .size=","\n .searchEnabled=","\n .internalSearchPlaceHolder=","\n .disableLocalSearch=","\n .optionsLoading=","\n .multiple=","\n .helpText=","\n .errorMessage=","\n .warning=","\n .enableVisibilityEffect=","\n .error=","\n .success=","\n .disabled=","\n .clearable=","\n .hoist=","\n .filled=","\n .pill=","\n .label=","\n .placement=","\n .form=","\n .required=","\n .showNoResults=","\n .noResultsMessage=","\n .renderItemConfig=","\n .blockValueChange=","\n .noWidthSync=","\n .maxOptionsVisible=","\n .enableTabClose=","\n .data=","\n .open=","\n .loading=","\n .portal=","\n .descriptionSearchEnabled=","\n .allowHtmlLabel=","\n .enableDescription=","\n .tickOnSelect=","\n .legacy=","\n exportparts=\"\n select-options,\n select-no-results,\n virtualized,\n form-control,\n form-control-label,\n form-control-input,\n combobox,\n prefix,\n display-input,\n tags,\n tag,\n clear-button,\n suffix,\n expand-icon,\n listbox,\n search,\n loader,\n footer,\n tag__content,\n option__base,\n option__label,\n option__prefix,\n option__suffix,\n option__checked-icon,\n option__checkbox,\n option__label_container,\n option__description\n \"\n >\n <slot name=\"prefix\" slot=\"prefix\"></slot>\n </nile-virtual-select>\n </div>\n "])),_o.name,_o.value,_o.autoResize,_o.placeholder,_o.size,_o.searchEnabled,_o.internalSearchPlaceHolder,_o.disableLocalSearch,_o.optionsLoading,_o.multiple,_o.helpText,_o.errorMessage,_o.warning,_o.enableVisibilityEffect,_o.error,_o.success,_o.disabled,_o.clearable,_o.hoist,_o.filled,_o.pill,_o.label,_o.placement,_o.form,_o.required,_o.showNoResults,_o.noResultsMessage,_o.renderItemConfig,_o.blockValueChange,_o.noWidthSync,_o.maxOptionsVisible,_o.enableTabClose,_o.data,_o.open,_o.loading,_o.portal,_o.descriptionSearchEnabled,_o.allowHtmlLabel,_o.enableDescription,_o.tickOnSelect,_o.legacy);}}]);}());}};});
|
|
2
2
|
//# sourceMappingURL=virtual-scroll-helper.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-scroll-helper.cjs.js","sources":["../../../src/nile-select/virtual-scroll-helper.ts"],"sourcesContent":["import { html } from 'lit';\nimport type NileElement from '../internal/nile-element';\n\n/**\n * Helper class to manage virtual scroll functionality for nile-select component\n */\nexport class VirtualScrollHelper {\n private component: NileElement;\n\n constructor(component: NileElement) {\n this.component = component;\n }\n\n renderVirtualizedContent(): any {\n const component = this.component as any;\n\n return html`\n <div class=\"virtual-select\">\n <nile-virtual-select\n .name=${component.name}\n .value=${component.value}\n .autoResize=${component.autoResize}\n .placeholder=${component.placeholder}\n .size=${component.size}\n .searchEnabled=${component.searchEnabled}\n .internalSearchPlaceHolder=${component.internalSearchPlaceHolder}\n .disableLocalSearch=${component.disableLocalSearch}\n .optionsLoading=${component.optionsLoading}\n .multiple=${component.multiple}\n .helpText=${component.helpText}\n .errorMessage=${component.errorMessage}\n .warning=${component.warning}\n .enableVisibilityEffect=${component.enableVisibilityEffect}\n .error=${component.error}\n .success=${component.success}\n .disabled=${component.disabled}\n .clearable=${component.clearable}\n .hoist=${component.hoist}\n .filled=${component.filled}\n .pill=${component.pill}\n .label=${component.label}\n .placement=${component.placement}\n .form=${component.form}\n .required=${component.required}\n .showNoResults=${component.showNoResults}\n .noResultsMessage=${component.noResultsMessage}\n .renderItemConfig=${component.renderItemConfig}\n .blockValueChange=${component.blockValueChange}\n .noWidthSync=${component.noWidthSync}\n .maxOptionsVisible=${component.maxOptionsVisible}\n .enableTabClose=${component.enableTabClose}\n .data=${component.data}\n .open=${component.open}\n .loading=${component.loading}\n .portal=${component.portal}\n .descriptionSearchEnabled=${component.descriptionSearchEnabled}\n .allowHtmlLabel=${component.allowHtmlLabel}\n .enableDescription=${component.enableDescription}\n .tickOnSelect=${component.tickOnSelect}\n .legacy=${component.legacy}\n exportparts=\"\n select-options,\n select-no-results,\n virtualized,\n form-control,\n form-control-label,\n form-control-input,\n combobox,\n prefix,\n display-input,\n tags,\n tag,\n clear-button,\n suffix,\n expand-icon,\n listbox,\n search,\n loader,\n footer,\n tag__content
|
|
1
|
+
{"version":3,"file":"virtual-scroll-helper.cjs.js","sources":["../../../src/nile-select/virtual-scroll-helper.ts"],"sourcesContent":["import { html } from 'lit';\nimport type NileElement from '../internal/nile-element';\n\n/**\n * Helper class to manage virtual scroll functionality for nile-select component\n */\nexport class VirtualScrollHelper {\n private component: NileElement;\n\n constructor(component: NileElement) {\n this.component = component;\n }\n\n renderVirtualizedContent(): any {\n const component = this.component as any;\n\n return html`\n <div class=\"virtual-select\">\n <nile-virtual-select\n .name=${component.name}\n .value=${component.value}\n .autoResize=${component.autoResize}\n .placeholder=${component.placeholder}\n .size=${component.size}\n .searchEnabled=${component.searchEnabled}\n .internalSearchPlaceHolder=${component.internalSearchPlaceHolder}\n .disableLocalSearch=${component.disableLocalSearch}\n .optionsLoading=${component.optionsLoading}\n .multiple=${component.multiple}\n .helpText=${component.helpText}\n .errorMessage=${component.errorMessage}\n .warning=${component.warning}\n .enableVisibilityEffect=${component.enableVisibilityEffect}\n .error=${component.error}\n .success=${component.success}\n .disabled=${component.disabled}\n .clearable=${component.clearable}\n .hoist=${component.hoist}\n .filled=${component.filled}\n .pill=${component.pill}\n .label=${component.label}\n .placement=${component.placement}\n .form=${component.form}\n .required=${component.required}\n .showNoResults=${component.showNoResults}\n .noResultsMessage=${component.noResultsMessage}\n .renderItemConfig=${component.renderItemConfig}\n .blockValueChange=${component.blockValueChange}\n .noWidthSync=${component.noWidthSync}\n .maxOptionsVisible=${component.maxOptionsVisible}\n .enableTabClose=${component.enableTabClose}\n .data=${component.data}\n .open=${component.open}\n .loading=${component.loading}\n .portal=${component.portal}\n .descriptionSearchEnabled=${component.descriptionSearchEnabled}\n .allowHtmlLabel=${component.allowHtmlLabel}\n .enableDescription=${component.enableDescription}\n .tickOnSelect=${component.tickOnSelect}\n .legacy=${component.legacy}\n exportparts=\"\n select-options,\n select-no-results,\n virtualized,\n form-control,\n form-control-label,\n form-control-input,\n combobox,\n prefix,\n display-input,\n tags,\n tag,\n clear-button,\n suffix,\n expand-icon,\n listbox,\n search,\n loader,\n footer,\n tag__content,\n option__base,\n option__label,\n option__prefix,\n option__suffix,\n option__checked-icon,\n option__checkbox,\n option__label_container,\n option__description\n \"\n >\n <slot name=\"prefix\" slot=\"prefix\"></slot>\n </nile-virtual-select>\n </div>\n `;\n }\n}\n"],"names":["VirtualScrollHelper","o","component","this","_createClass","key","value","renderVirtualizedContent","html","_templateObject","_taggedTemplateLiteral","name","autoResize","placeholder","size","searchEnabled","internalSearchPlaceHolder","disableLocalSearch","optionsLoading","multiple","helpText","errorMessage","warning","enableVisibilityEffect","error","success","disabled","clearable","hoist","filled","pill","label","placement","form","required","showNoResults","noResultsMessage","renderItemConfig","blockValueChange","noWidthSync","maxOptionsVisible","enableTabClose","data","open","loading","portal","descriptionSearchEnabled","allowHtmlLabel","enableDescription","tickOnSelect","legacy"],"mappings":"w4CAMaA,CAAAA,yBAGX,SAAAC,EAAYC,2BACVC,IAAKD,CAAAA,SAAAA,CAAYA,CAClB,EAED,OAAAE,YAAA,CAAAH,CAAA,GAAAI,GAAA,4BAAAC,KAAA,UAAAC,wBAAAA,CAAAA,CACE,CAAA,GAAML,CAAAA,GAAYC,IAAKD,CAAAA,SAAAA,CAEvB,MAAOM,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,siEAGGR,EAAUS,CAAAA,IAAAA,CACTT,EAAUI,CAAAA,KAAAA,CACLJ,EAAUU,CAAAA,UAAAA,CACTV,EAAUW,CAAAA,WAAAA,CACjBX,EAAUY,CAAAA,IAAAA,CACDZ,EAAUa,CAAAA,aAAAA,CACEb,EAAUc,CAAAA,yBAAAA,CACjBd,EAAUe,CAAAA,kBAAAA,CACdf,EAAUgB,CAAAA,cAAAA,CAChBhB,EAAUiB,CAAAA,QAAAA,CACVjB,EAAUkB,CAAAA,QAAAA,CACNlB,EAAUmB,CAAAA,YAAAA,CACfnB,EAAUoB,CAAAA,OAAAA,CACKpB,EAAUqB,CAAAA,sBAAAA,CAC3BrB,EAAUsB,CAAAA,KAAAA,CACRtB,EAAUuB,CAAAA,OAAAA,CACTvB,EAAUwB,CAAAA,QAAAA,CACTxB,EAAUyB,CAAAA,SAAAA,CACdzB,EAAU0B,CAAAA,KAAAA,CACT1B,EAAU2B,CAAAA,MAAAA,CACZ3B,EAAU4B,CAAAA,IAAAA,CACT5B,EAAU6B,CAAAA,KAAAA,CACN7B,EAAU8B,CAAAA,SAAAA,CACf9B,EAAU+B,CAAAA,IAAAA,CACN/B,EAAUgC,CAAAA,QAAAA,CACLhC,EAAUiC,CAAAA,aAAAA,CACPjC,EAAUkC,CAAAA,gBAAAA,CACVlC,EAAUmC,CAAAA,gBAAAA,CACVnC,EAAUoC,CAAAA,gBAAAA,CACfpC,EAAUqC,CAAAA,WAAAA,CACJrC,EAAUsC,CAAAA,iBAAAA,CACbtC,EAAUuC,CAAAA,cAAAA,CACpBvC,EAAUwC,CAAAA,IAAAA,CACVxC,EAAUyC,CAAAA,IAAAA,CACPzC,EAAU0C,CAAAA,OAAAA,CACX1C,EAAU2C,CAAAA,MAAAA,CACQ3C,EAAU4C,CAAAA,wBAAAA,CACpB5C,EAAU6C,CAAAA,cAAAA,CACP7C,EAAU8C,CAAAA,iBAAAA,CACf9C,EAAU+C,CAAAA,YAAAA,CAChB/C,EAAUgD,CAAAA,MAAAA,EAmC3B"}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import{html as e}from"lit";class
|
|
1
|
+
import{html as e}from"lit";class o{constructor(e){this.component=e}renderVirtualizedContent(){const o=this.component;return e`
|
|
2
2
|
<div class="virtual-select">
|
|
3
3
|
<nile-virtual-select
|
|
4
|
-
.name=${
|
|
5
|
-
.value=${
|
|
6
|
-
.autoResize=${
|
|
7
|
-
.placeholder=${
|
|
8
|
-
.size=${
|
|
9
|
-
.searchEnabled=${
|
|
10
|
-
.internalSearchPlaceHolder=${
|
|
11
|
-
.disableLocalSearch=${
|
|
12
|
-
.optionsLoading=${
|
|
13
|
-
.multiple=${
|
|
14
|
-
.helpText=${
|
|
15
|
-
.errorMessage=${
|
|
16
|
-
.warning=${
|
|
17
|
-
.enableVisibilityEffect=${
|
|
18
|
-
.error=${
|
|
19
|
-
.success=${
|
|
20
|
-
.disabled=${
|
|
21
|
-
.clearable=${
|
|
22
|
-
.hoist=${
|
|
23
|
-
.filled=${
|
|
24
|
-
.pill=${
|
|
25
|
-
.label=${
|
|
26
|
-
.placement=${
|
|
27
|
-
.form=${
|
|
28
|
-
.required=${
|
|
29
|
-
.showNoResults=${
|
|
30
|
-
.noResultsMessage=${
|
|
31
|
-
.renderItemConfig=${
|
|
32
|
-
.blockValueChange=${
|
|
33
|
-
.noWidthSync=${
|
|
34
|
-
.maxOptionsVisible=${
|
|
35
|
-
.enableTabClose=${
|
|
36
|
-
.data=${
|
|
37
|
-
.open=${
|
|
38
|
-
.loading=${
|
|
39
|
-
.portal=${
|
|
40
|
-
.descriptionSearchEnabled=${
|
|
41
|
-
.allowHtmlLabel=${
|
|
42
|
-
.enableDescription=${
|
|
43
|
-
.tickOnSelect=${
|
|
44
|
-
.legacy=${
|
|
4
|
+
.name=${o.name}
|
|
5
|
+
.value=${o.value}
|
|
6
|
+
.autoResize=${o.autoResize}
|
|
7
|
+
.placeholder=${o.placeholder}
|
|
8
|
+
.size=${o.size}
|
|
9
|
+
.searchEnabled=${o.searchEnabled}
|
|
10
|
+
.internalSearchPlaceHolder=${o.internalSearchPlaceHolder}
|
|
11
|
+
.disableLocalSearch=${o.disableLocalSearch}
|
|
12
|
+
.optionsLoading=${o.optionsLoading}
|
|
13
|
+
.multiple=${o.multiple}
|
|
14
|
+
.helpText=${o.helpText}
|
|
15
|
+
.errorMessage=${o.errorMessage}
|
|
16
|
+
.warning=${o.warning}
|
|
17
|
+
.enableVisibilityEffect=${o.enableVisibilityEffect}
|
|
18
|
+
.error=${o.error}
|
|
19
|
+
.success=${o.success}
|
|
20
|
+
.disabled=${o.disabled}
|
|
21
|
+
.clearable=${o.clearable}
|
|
22
|
+
.hoist=${o.hoist}
|
|
23
|
+
.filled=${o.filled}
|
|
24
|
+
.pill=${o.pill}
|
|
25
|
+
.label=${o.label}
|
|
26
|
+
.placement=${o.placement}
|
|
27
|
+
.form=${o.form}
|
|
28
|
+
.required=${o.required}
|
|
29
|
+
.showNoResults=${o.showNoResults}
|
|
30
|
+
.noResultsMessage=${o.noResultsMessage}
|
|
31
|
+
.renderItemConfig=${o.renderItemConfig}
|
|
32
|
+
.blockValueChange=${o.blockValueChange}
|
|
33
|
+
.noWidthSync=${o.noWidthSync}
|
|
34
|
+
.maxOptionsVisible=${o.maxOptionsVisible}
|
|
35
|
+
.enableTabClose=${o.enableTabClose}
|
|
36
|
+
.data=${o.data}
|
|
37
|
+
.open=${o.open}
|
|
38
|
+
.loading=${o.loading}
|
|
39
|
+
.portal=${o.portal}
|
|
40
|
+
.descriptionSearchEnabled=${o.descriptionSearchEnabled}
|
|
41
|
+
.allowHtmlLabel=${o.allowHtmlLabel}
|
|
42
|
+
.enableDescription=${o.enableDescription}
|
|
43
|
+
.tickOnSelect=${o.tickOnSelect}
|
|
44
|
+
.legacy=${o.legacy}
|
|
45
45
|
exportparts="
|
|
46
46
|
select-options,
|
|
47
47
|
select-no-results,
|
|
@@ -61,10 +61,18 @@ import{html as e}from"lit";class l{constructor(e){this.component=e}renderVirtual
|
|
|
61
61
|
search,
|
|
62
62
|
loader,
|
|
63
63
|
footer,
|
|
64
|
-
tag__content
|
|
64
|
+
tag__content,
|
|
65
|
+
option__base,
|
|
66
|
+
option__label,
|
|
67
|
+
option__prefix,
|
|
68
|
+
option__suffix,
|
|
69
|
+
option__checked-icon,
|
|
70
|
+
option__checkbox,
|
|
71
|
+
option__label_container,
|
|
72
|
+
option__description
|
|
65
73
|
"
|
|
66
74
|
>
|
|
67
75
|
<slot name="prefix" slot="prefix"></slot>
|
|
68
76
|
</nile-virtual-select>
|
|
69
77
|
</div>
|
|
70
|
-
`}}export{
|
|
78
|
+
`}}export{o as V};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["lit","../virtualize-b6a2fbe0.cjs.js","lit/directives/unsafe-html.js","lit/directives/class-map.js","lit/directive.js","lit/async-directive.js","lit/directives/repeat.js"],function(_export,_context){"use strict";var t,e,i,
|
|
1
|
+
System.register(["lit","../virtualize-b6a2fbe0.cjs.js","lit/directives/unsafe-html.js","lit/directives/class-map.js","lit/directive.js","lit/async-directive.js","lit/directives/repeat.js"],function(_export,_context){"use strict";var t,e,i,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,s;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}return{setters:[function(_lit){t=_lit.html;},function(_virtualize003CjsJs){e=_virtualize003CjsJs.v;},function(_litDirectivesUnsafeHtmlJs){i=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;},function(_litDirectiveJs){},function(_litAsyncDirectiveJs){},function(_litDirectivesRepeatJs){}],execute:function execute(){_export("V",s=/*#__PURE__*/function(){function s(){_classCallCheck(this,s);}return _createClass(s,null,[{key:"getVirtualizedContent",value:function getVirtualizedContent(i,o,r,l,n,c,a,p,d,_,$,u,m,v,f,b,h,x){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"select-options\" class=\"select__options "," ","\">\n ","\n </div>"])),o?"select__options__search-enabled":"",m?"loading":"",$&&!m?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div part=\"select-no-results\" class=\"select__no-results\">\n ","\n </div>\n "])),u||"No results found"):t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div\n class=\"virtualized\"\n part=\"virtualized\"\n @scroll=","\n >\n ","\n </div>\n "])),v,s.shouldUseVirtualizer(i)?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n ","\n "])),e({items:i,renderItem:function renderItem(t){return s.getItemRenderFunction(t,r,l,n,c,a,p,d,_,f,b,h,x);},scroller:!0})):t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n ","\n "])),i.map(function(t){return s.getItemRenderFunction(t,r,l,n,c,a,p,d,_,f,b,h,x);}))));}},{key:"getItemRenderFunction",value:function getItemRenderFunction(e,_s,r,l,n,c,a,p,d,_,$,u,m){var _ref,_ref2,_ref3;if(!e)return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral([""])));var v=n||_s,f=c||function(t){return(t===null||t===void 0?void 0:t.value)||t;},b=f(e),h=v(e),x=(e===null||e===void 0?void 0:e.disabled)||!1,j=e===null||e===void 0?void 0:e.className,g=(_ref=a?a(e):e===null||e===void 0?void 0:e.description)!==null&&_ref!==void 0?_ref:"",k=(_ref2=p?p(e):e===null||e===void 0?void 0:e.prefix)!==null&&_ref2!==void 0?_ref2:"",z=(_ref3=d?d(e):e===null||e===void 0?void 0:e.suffix)!==null&&_ref3!==void 0?_ref3:"";var y=!1;return y=l?Array.isArray(r)&&r.some(function(t){return String(t)===String(b);}):(Array.isArray(r)?r[0]:r)===b,t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-option\n value="," \n .selected="," \n .disabled=","\n .showCheckbox=","\n .tickOnSelect=","\n .legacy=","\n exportparts=\"base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description\"\n class=","\n .description=","\n .isDescriptionEnabled=","\n >\n ","\n ","\n ","\n </nile-option>\n "])),b,y,x,l,u!==null&&u!==void 0?u:!1,m!==null&&m!==void 0?m:!1,o(_defineProperty({option:$!==null&&$!==void 0?$:!1},j!==null&&j!==void 0?j:"",!!j)),g,$,i(k),_?i(h):h,i(z));}},{key:"shouldUseVirtualizer",value:function shouldUseVirtualizer(t){return t.length>=5;}}]);}());}};});
|
|
2
2
|
//# sourceMappingURL=renderer.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.cjs.js","sources":["../../../src/nile-virtual-select/renderer.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, type TemplateResult } from 'lit';\nimport { virtualize } from '@lit-labs/virtualizer/virtualize.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport {
|
|
1
|
+
{"version":3,"file":"renderer.cjs.js","sources":["../../../src/nile-virtual-select/renderer.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, type TemplateResult } from 'lit';\nimport { virtualize } from '@lit-labs/virtualizer/virtualize.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nexport class VirtualSelectRenderer {\n static getVirtualizedContent(\n data: any[], \n searchEnabled: boolean, \n renderItemFunction: (item: any) => string,\n value: string | string[],\n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n getItemDescription?: (item: any) => string,\n getItemPrefix?: (item: any) => string,\n getItemSuffix?: (item: any) => string,\n showNoResults?: boolean,\n noResultsMessage?: string,\n loading?: boolean,\n onScroll?: (e: Event) => void,\n allowHtmlLabel?: boolean,\n enableDescription?: boolean,\n tickOnSelect?: boolean,\n legacy?: boolean\n ): TemplateResult {\n return html`\n <div part=\"select-options\" class=\"select__options ${\n searchEnabled ? 'select__options__search-enabled' : ``\n } ${loading ? 'loading' : ''}\">\n ${showNoResults && !loading\n ? html`\n <div part=\"select-no-results\" class=\"select__no-results\">\n ${noResultsMessage || 'No results found'}\n </div>\n `\n : html`\n <div\n class=\"virtualized\"\n part=\"virtualized\"\n @scroll=${onScroll}\n >\n ${VirtualSelectRenderer.shouldUseVirtualizer(data)\n ? html`\n ${virtualize({\n items: data,\n renderItem: (item: any): TemplateResult =>\n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue, getItemDescription, getItemPrefix, getItemSuffix, allowHtmlLabel, enableDescription, tickOnSelect, legacy),\n scroller: true,\n })}\n `\n : html`\n ${data.map((item: any) => \n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue, getItemDescription, getItemPrefix, getItemSuffix, allowHtmlLabel, enableDescription, tickOnSelect, legacy)\n )}\n `}\n </div>\n `}\n </div>`;\n }\n\n static getItemRenderFunction(\n item: any, \n renderItemFunction: (item: any) => string, \n value: string | string[], \n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n getItemDescription?: (item: any) => string,\n getItemPrefix?: (item: any) => string,\n getItemSuffix?: (item: any) => string,\n allowHtmlLabel?: boolean,\n enableDescription?: boolean,\n tickOnSelect?: boolean,\n legacy?: boolean,\n ): TemplateResult {\n if(!item) {\n return html``;\n }\n const displayTextFn = getDisplayText || renderItemFunction;\n const valueFn = getItemValue || ((item: any) => item?.value || item);\n \n const optionValue = valueFn(item);\n const displayText = displayTextFn(item);\n const isDisabled = item?.disabled || false;\n const className = item?.className;\n const description = (getItemDescription ? getItemDescription(item) : item?.description) ?? '';\n const prefix = (getItemPrefix ? getItemPrefix(item) : item?.prefix) ?? '';\n const suffix = (getItemSuffix ? getItemSuffix(item) : item?.suffix) ?? '';\n \n let isSelected = false;\n if (multiple) {\n isSelected = Array.isArray(value) && value.some(v => String(v) === String(optionValue));\n } else {\n isSelected = (Array.isArray(value) ? value[0] : value) === optionValue;\n }\n\n return html`\n <nile-option\n value=${optionValue} \n .selected=${isSelected} \n .disabled=${isDisabled}\n .showCheckbox=${multiple}\n .tickOnSelect=${tickOnSelect ?? false}\n .legacy=${legacy ?? false}\n exportparts=\"base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description\"\n class=${classMap({\n option: enableDescription ?? false,\n [className ?? '']: !!className,\n })}\n .description=${description}\n .isDescriptionEnabled=${enableDescription}\n >\n ${unsafeHTML(prefix)}\n ${allowHtmlLabel ? unsafeHTML(displayText) : displayText}\n ${unsafeHTML(suffix)}\n </nile-option>\n `;\n }\n\n /**\n * Determines whether to use virtualizer based on dataset size\n * For small datasets (less than 5 items), use regular rendering for better sizing\n */\n private static shouldUseVirtualizer(data: any[]): boolean {\n return data.length >= 5;\n }\n} \n"],"names":["VirtualSelectRenderer","s","_classCallCheck","_createClass","key","value","getVirtualizedContent","data","searchEnabled","renderItemFunction","multiple","getDisplayText","getItemValue","getItemDescription","getItemPrefix","getItemSuffix","showNoResults","noResultsMessage","loading","onScroll","allowHtmlLabel","enableDescription","tickOnSelect","legacy","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","shouldUseVirtualizer","_templateObject4","virtualize","items","renderItem","item","getItemRenderFunction","scroller","_templateObject5","map","_templateObject6","displayTextFn","valueFn","optionValue","displayText","isDisabled","disabled","className","description","prefix","_ref2","suffix","isSelected","Array","isArray","some","v","String","_templateObject7","classMap","option","unsafeHTML","length"],"mappings":"kmEAYaA,CACX,kCAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,UAAAE,YAAA,CAAAF,CAAA,QAAAG,GAAA,yBAAAC,KAAA,CAAA,QAAA,CAAAC,qBAAOA,CACLC,CACAC,CAAAA,CAAAA,CACAC,CACAJ,CAAAA,CAAAA,CACAK,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CAAAA,CAEA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,0GAEPlB,CAAgB,CAAA,iCAAA,CAAoC,EAClDU,CAAAA,CAAAA,CAAU,SAAY,CAAA,EAAA,CACtBF,CAAAA,EAAAA,CAAkBE,EAChBM,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,8IAEET,CAAoB,EAAA,kBAAA,EAG1BO,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,gNAIUP,CAAAA,CAERnB,CAAsB6B,CAAAA,oBAAAA,CAAqBtB,GACzCiB,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,yDACAK,CAAW,CAAA,CACXC,MAAOzB,CACP0B,CAAAA,UAAAA,CAAaC,QAAbD,CAAAA,UAAAA,CAAaC,SACXlC,CAAAA,CAAsBmC,CAAAA,qBAAAA,CAAsBD,EAAMzB,CAAoBJ,CAAAA,CAAAA,CAAOK,EAAUC,CAAgBC,CAAAA,CAAAA,CAAcC,EAAoBC,CAAeC,CAAAA,CAAAA,CAAeK,EAAgBC,CAAmBC,CAAAA,CAAAA,CAAcC,KAC1Na,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,EAGdZ,CAAI,CAAAa,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A,CAAAA,CAGlB,EAMO,GAAA9C,GAAA,wBAAAC,KAAA,8BAAOwB,CAAqBtB,CAAAA,CAAAA,CAClC,MAAOA,CAAAA,CAAKsD,CAAAA,MAAAA,EAAU,CACvB"}
|
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import{html as
|
|
2
|
-
<div part="select-options" class="select__options ${
|
|
3
|
-
${m
|
|
1
|
+
import{html as e}from"lit";import{v as t}from"../virtualize-a4a40d96.esm.js";import{unsafeHTML as i}from"lit/directives/unsafe-html.js";import{classMap as o}from"lit/directives/class-map.js";import"lit/directive.js";import"lit/async-directive.js";import"lit/directives/repeat.js";class s{static getVirtualizedContent(i,o,r,l,n,c,a,p,d,_,$,u,m,v,f,b,h,x){return e`
|
|
2
|
+
<div part="select-options" class="select__options ${o?"select__options__search-enabled":""} ${m?"loading":""}">
|
|
3
|
+
${$&&!m?e`
|
|
4
4
|
<div part="select-no-results" class="select__no-results">
|
|
5
5
|
${u||"No results found"}
|
|
6
6
|
</div>
|
|
7
|
-
`:
|
|
7
|
+
`:e`
|
|
8
8
|
<div
|
|
9
9
|
class="virtualized"
|
|
10
10
|
part="virtualized"
|
|
11
|
-
@scroll=${
|
|
11
|
+
@scroll=${v}
|
|
12
12
|
>
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
`:
|
|
16
|
-
${i.map((
|
|
13
|
+
${s.shouldUseVirtualizer(i)?e`
|
|
14
|
+
${t({items:i,renderItem:e=>s.getItemRenderFunction(e,r,l,n,c,a,p,d,_,f,b,h,x),scroller:!0})}
|
|
15
|
+
`:e`
|
|
16
|
+
${i.map((e=>s.getItemRenderFunction(e,r,l,n,c,a,p,d,_,f,b,h,x)))}
|
|
17
17
|
`}
|
|
18
18
|
</div>
|
|
19
19
|
`}
|
|
20
|
-
</div>`}static getItemRenderFunction(
|
|
20
|
+
</div>`}static getItemRenderFunction(t,s,r,l,n,c,a,p,d,_,$,u,m){if(!t)return e``;const v=n||s,f=c||(e=>e?.value||e),b=f(t),h=v(t),x=t?.disabled||!1,g=t?.className,j=(a?a(t):t?.description)??"",k=(p?p(t):t?.prefix)??"",z=(d?d(t):t?.suffix)??"";let y=!1;return y=l?Array.isArray(r)&&r.some((e=>String(e)===String(b))):(Array.isArray(r)?r[0]:r)===b,e`
|
|
21
21
|
<nile-option
|
|
22
|
-
value=${
|
|
23
|
-
.selected=${
|
|
24
|
-
.disabled=${
|
|
25
|
-
.showCheckbox=${
|
|
22
|
+
value=${b}
|
|
23
|
+
.selected=${y}
|
|
24
|
+
.disabled=${x}
|
|
25
|
+
.showCheckbox=${l}
|
|
26
26
|
.tickOnSelect=${u??!1}
|
|
27
|
-
.legacy=${
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.
|
|
27
|
+
.legacy=${m??!1}
|
|
28
|
+
exportparts="base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description"
|
|
29
|
+
class=${o({option:$??!1,[g??""]:!!g})}
|
|
30
|
+
.description=${j}
|
|
31
|
+
.isDescriptionEnabled=${$}
|
|
31
32
|
>
|
|
32
|
-
${i(
|
|
33
|
-
${
|
|
34
|
-
${i(
|
|
33
|
+
${i(k)}
|
|
34
|
+
${_?i(h):h}
|
|
35
|
+
${i(z)}
|
|
35
36
|
</nile-option>
|
|
36
|
-
`}static shouldUseVirtualizer(
|
|
37
|
+
`}static shouldUseVirtualizer(e){return e.length>=5}}export{s as V};
|
|
@@ -71,7 +71,15 @@ export class VirtualScrollHelper {
|
|
|
71
71
|
search,
|
|
72
72
|
loader,
|
|
73
73
|
footer,
|
|
74
|
-
tag__content
|
|
74
|
+
tag__content,
|
|
75
|
+
option__base,
|
|
76
|
+
option__label,
|
|
77
|
+
option__prefix,
|
|
78
|
+
option__suffix,
|
|
79
|
+
option__checked-icon,
|
|
80
|
+
option__checkbox,
|
|
81
|
+
option__label_container,
|
|
82
|
+
option__description
|
|
75
83
|
"
|
|
76
84
|
>
|
|
77
85
|
<slot name="prefix" slot="prefix"></slot>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-scroll-helper.js","sourceRoot":"","sources":["../../../src/nile-select/virtual-scroll-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAG9B,YAAY,SAAsB;QAChC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,wBAAwB;QACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAgB,CAAC;QAExC,OAAO,IAAI,CAAA;;;kBAGG,SAAS,CAAC,IAAI;mBACb,SAAS,CAAC,KAAK;wBACV,SAAS,CAAC,UAAU;yBACnB,SAAS,CAAC,WAAW;kBAC5B,SAAS,CAAC,IAAI;2BACL,SAAS,CAAC,aAAa;uCACX,SAAS,CAAC,yBAAyB;gCAC1C,SAAS,CAAC,kBAAkB;4BAChC,SAAS,CAAC,cAAc;sBAC9B,SAAS,CAAC,QAAQ;sBAClB,SAAS,CAAC,QAAQ;0BACd,SAAS,CAAC,YAAY;qBAC3B,SAAS,CAAC,OAAO;oCACF,SAAS,CAAC,sBAAsB;mBACjD,SAAS,CAAC,KAAK;qBACb,SAAS,CAAC,OAAO;sBAChB,SAAS,CAAC,QAAQ;uBACjB,SAAS,CAAC,SAAS;mBACvB,SAAS,CAAC,KAAK;oBACd,SAAS,CAAC,MAAM;kBAClB,SAAS,CAAC,IAAI;mBACb,SAAS,CAAC,KAAK;uBACX,SAAS,CAAC,SAAS;kBACxB,SAAS,CAAC,IAAI;sBACV,SAAS,CAAC,QAAQ;2BACb,SAAS,CAAC,aAAa;8BACpB,SAAS,CAAC,gBAAgB;8BAC1B,SAAS,CAAC,gBAAgB;8BAC1B,SAAS,CAAC,gBAAgB;yBAC/B,SAAS,CAAC,WAAW;+BACf,SAAS,CAAC,iBAAiB;4BAC9B,SAAS,CAAC,cAAc;kBAClC,SAAS,CAAC,IAAI;kBACd,SAAS,CAAC,IAAI;qBACX,SAAS,CAAC,OAAO;oBAClB,SAAS,CAAC,MAAM;sCACE,SAAS,CAAC,wBAAwB;4BAC5C,SAAS,CAAC,cAAc;+BACrB,SAAS,CAAC,iBAAiB;0BAChC,SAAS,CAAC,YAAY;oBAC5B,SAAS,CAAC,MAAM
|
|
1
|
+
{"version":3,"file":"virtual-scroll-helper.js","sourceRoot":"","sources":["../../../src/nile-select/virtual-scroll-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAG9B,YAAY,SAAsB;QAChC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,wBAAwB;QACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAgB,CAAC;QAExC,OAAO,IAAI,CAAA;;;kBAGG,SAAS,CAAC,IAAI;mBACb,SAAS,CAAC,KAAK;wBACV,SAAS,CAAC,UAAU;yBACnB,SAAS,CAAC,WAAW;kBAC5B,SAAS,CAAC,IAAI;2BACL,SAAS,CAAC,aAAa;uCACX,SAAS,CAAC,yBAAyB;gCAC1C,SAAS,CAAC,kBAAkB;4BAChC,SAAS,CAAC,cAAc;sBAC9B,SAAS,CAAC,QAAQ;sBAClB,SAAS,CAAC,QAAQ;0BACd,SAAS,CAAC,YAAY;qBAC3B,SAAS,CAAC,OAAO;oCACF,SAAS,CAAC,sBAAsB;mBACjD,SAAS,CAAC,KAAK;qBACb,SAAS,CAAC,OAAO;sBAChB,SAAS,CAAC,QAAQ;uBACjB,SAAS,CAAC,SAAS;mBACvB,SAAS,CAAC,KAAK;oBACd,SAAS,CAAC,MAAM;kBAClB,SAAS,CAAC,IAAI;mBACb,SAAS,CAAC,KAAK;uBACX,SAAS,CAAC,SAAS;kBACxB,SAAS,CAAC,IAAI;sBACV,SAAS,CAAC,QAAQ;2BACb,SAAS,CAAC,aAAa;8BACpB,SAAS,CAAC,gBAAgB;8BAC1B,SAAS,CAAC,gBAAgB;8BAC1B,SAAS,CAAC,gBAAgB;yBAC/B,SAAS,CAAC,WAAW;+BACf,SAAS,CAAC,iBAAiB;4BAC9B,SAAS,CAAC,cAAc;kBAClC,SAAS,CAAC,IAAI;kBACd,SAAS,CAAC,IAAI;qBACX,SAAS,CAAC,OAAO;oBAClB,SAAS,CAAC,MAAM;sCACE,SAAS,CAAC,wBAAwB;4BAC5C,SAAS,CAAC,cAAc;+BACrB,SAAS,CAAC,iBAAiB;0BAChC,SAAS,CAAC,YAAY;oBAC5B,SAAS,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkC/B,CAAC;IACJ,CAAC;CACF","sourcesContent":["import { html } from 'lit';\nimport type NileElement from '../internal/nile-element';\n\n/**\n * Helper class to manage virtual scroll functionality for nile-select component\n */\nexport class VirtualScrollHelper {\n private component: NileElement;\n\n constructor(component: NileElement) {\n this.component = component;\n }\n\n renderVirtualizedContent(): any {\n const component = this.component as any;\n\n return html`\n <div class=\"virtual-select\">\n <nile-virtual-select\n .name=${component.name}\n .value=${component.value}\n .autoResize=${component.autoResize}\n .placeholder=${component.placeholder}\n .size=${component.size}\n .searchEnabled=${component.searchEnabled}\n .internalSearchPlaceHolder=${component.internalSearchPlaceHolder}\n .disableLocalSearch=${component.disableLocalSearch}\n .optionsLoading=${component.optionsLoading}\n .multiple=${component.multiple}\n .helpText=${component.helpText}\n .errorMessage=${component.errorMessage}\n .warning=${component.warning}\n .enableVisibilityEffect=${component.enableVisibilityEffect}\n .error=${component.error}\n .success=${component.success}\n .disabled=${component.disabled}\n .clearable=${component.clearable}\n .hoist=${component.hoist}\n .filled=${component.filled}\n .pill=${component.pill}\n .label=${component.label}\n .placement=${component.placement}\n .form=${component.form}\n .required=${component.required}\n .showNoResults=${component.showNoResults}\n .noResultsMessage=${component.noResultsMessage}\n .renderItemConfig=${component.renderItemConfig}\n .blockValueChange=${component.blockValueChange}\n .noWidthSync=${component.noWidthSync}\n .maxOptionsVisible=${component.maxOptionsVisible}\n .enableTabClose=${component.enableTabClose}\n .data=${component.data}\n .open=${component.open}\n .loading=${component.loading}\n .portal=${component.portal}\n .descriptionSearchEnabled=${component.descriptionSearchEnabled}\n .allowHtmlLabel=${component.allowHtmlLabel}\n .enableDescription=${component.enableDescription}\n .tickOnSelect=${component.tickOnSelect}\n .legacy=${component.legacy}\n exportparts=\"\n select-options,\n select-no-results,\n virtualized,\n form-control,\n form-control-label,\n form-control-input,\n combobox,\n prefix,\n display-input,\n tags,\n tag,\n clear-button,\n suffix,\n expand-icon,\n listbox,\n search,\n loader,\n footer,\n tag__content,\n option__base,\n option__label,\n option__prefix,\n option__suffix,\n option__checked-icon,\n option__checkbox,\n option__label_container,\n option__description\n \"\n >\n <slot name=\"prefix\" slot=\"prefix\"></slot>\n </nile-virtual-select>\n </div>\n `;\n }\n}\n"]}
|
|
@@ -67,6 +67,7 @@ export class VirtualSelectRenderer {
|
|
|
67
67
|
.showCheckbox=${multiple}
|
|
68
68
|
.tickOnSelect=${tickOnSelect ?? false}
|
|
69
69
|
.legacy=${legacy ?? false}
|
|
70
|
+
exportparts="base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description"
|
|
70
71
|
class=${classMap({
|
|
71
72
|
option: enableDescription ?? false,
|
|
72
73
|
[className ?? '']: !!className,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../../src/nile-virtual-select/renderer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAuB,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"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AAC;CACF","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, type TemplateResult } from 'lit';\nimport { virtualize } from '@lit-labs/virtualizer/virtualize.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\nexport class VirtualSelectRenderer {\n static getVirtualizedContent(\n data: any[], \n searchEnabled: boolean, \n renderItemFunction: (item: any) => string,\n value: string | string[],\n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n getItemDescription?: (item: any) => string,\n getItemPrefix?: (item: any) => string,\n getItemSuffix?: (item: any) => string,\n showNoResults?: boolean,\n noResultsMessage?: string,\n loading?: boolean,\n onScroll?: (e: Event) => void,\n allowHtmlLabel?: boolean,\n enableDescription?: boolean,\n tickOnSelect?: boolean,\n legacy?: boolean\n ): TemplateResult {\n return html`\n <div part=\"select-options\" class=\"select__options ${\n searchEnabled ? 'select__options__search-enabled' : ``\n } ${loading ? 'loading' : ''}\">\n ${showNoResults && !loading\n ? html`\n <div part=\"select-no-results\" class=\"select__no-results\">\n ${noResultsMessage || 'No results found'}\n </div>\n `\n : html`\n <div\n class=\"virtualized\"\n part=\"virtualized\"\n @scroll=${onScroll}\n >\n ${VirtualSelectRenderer.shouldUseVirtualizer(data)\n ? html`\n ${virtualize({\n items: data,\n renderItem: (item: any): TemplateResult =>\n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue, getItemDescription, getItemPrefix, getItemSuffix, allowHtmlLabel, enableDescription, tickOnSelect, legacy),\n scroller: true,\n })}\n `\n : html`\n ${data.map((item: any) => \n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue, getItemDescription, getItemPrefix, getItemSuffix, allowHtmlLabel, enableDescription, tickOnSelect, legacy)\n )}\n `}\n </div>\n `}\n </div>`;\n }\n\n static getItemRenderFunction(\n item: any, \n renderItemFunction: (item: any) => string, \n value: string | string[], \n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n getItemDescription?: (item: any) => string,\n getItemPrefix?: (item: any) => string,\n getItemSuffix?: (item: any) => string,\n allowHtmlLabel?: boolean,\n enableDescription?: boolean,\n tickOnSelect?: boolean,\n legacy?: boolean,\n ): TemplateResult {\n if(!item) {\n return html``;\n }\n const displayTextFn = getDisplayText || renderItemFunction;\n const valueFn = getItemValue || ((item: any) => item?.value || item);\n \n const optionValue = valueFn(item);\n const displayText = displayTextFn(item);\n const isDisabled = item?.disabled || false;\n const className = item?.className;\n const description = (getItemDescription ? getItemDescription(item) : item?.description) ?? '';\n const prefix = (getItemPrefix ? getItemPrefix(item) : item?.prefix) ?? '';\n const suffix = (getItemSuffix ? getItemSuffix(item) : item?.suffix) ?? '';\n \n let isSelected = false;\n if (multiple) {\n isSelected = Array.isArray(value) && value.some(v => String(v) === String(optionValue));\n } else {\n isSelected = (Array.isArray(value) ? value[0] : value) === optionValue;\n }\n\n return html`\n <nile-option\n value=${optionValue} \n .selected=${isSelected} \n .disabled=${isDisabled}\n .showCheckbox=${multiple}\n .tickOnSelect=${tickOnSelect ?? false}\n .legacy=${legacy ?? false}\n exportparts=\"base:option__base, label:option__label, prefix:option__prefix, suffix:option__suffix, checked-icon:option__checked-icon, checkbox:option__checkbox, option_label_container:option__label_container, option_description:option__description\"\n class=${classMap({\n option: enableDescription ?? false,\n [className ?? '']: !!className,\n })}\n .description=${description}\n .isDescriptionEnabled=${enableDescription}\n >\n ${unsafeHTML(prefix)}\n ${allowHtmlLabel ? unsafeHTML(displayText) : displayText}\n ${unsafeHTML(suffix)}\n </nile-option>\n `;\n }\n\n /**\n * Determines whether to use virtualizer based on dataset size\n * For small datasets (less than 5 items), use regular rendering for better sizing\n */\n private static shouldUseVirtualizer(data: any[]): boolean {\n return data.length >= 5;\n }\n} \n"]}
|
package/dist/src/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Version utility - placeholders will be replaced during build
|
|
2
|
-
export const NILE_ELEMENTS_VERSION = '1.9.
|
|
2
|
+
export const NILE_ELEMENTS_VERSION = '1.9.8';
|
|
3
3
|
export const NILE_VERSION = '1.2.7';
|
|
4
4
|
// Set global versions for runtime access
|
|
5
5
|
if (typeof window !== 'undefined') {
|
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '1.9.
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '1.9.8';\nexport const NILE_VERSION = '1.2.7';\n\n// Set global versions for runtime access\nif (typeof window !== 'undefined') {\n (window as any).nileElementsVersion = NILE_ELEMENTS_VERSION;\n (window as any).nileVersion = NILE_VERSION;\n window.process = window.process || { env: { NODE_ENV: 'production' } };\n}\n"]}
|