@nova-design-system/nova-webcomponents 3.0.0-beta.20 → 3.0.0-beta.21
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/blazor-docs.json +9342 -0
- package/dist/cjs/{app-globals-8dbc03be.js → app-globals-2ceecab2.js} +2 -2
- package/dist/cjs/{app-globals-8dbc03be.js.map → app-globals-2ceecab2.js.map} +1 -1
- package/dist/cjs/{index-b925c7f5.js → index-5d1f2412.js} +6 -20
- package/dist/cjs/index-5d1f2412.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/native.cjs.js +3 -3
- package/dist/cjs/nv-alert.cjs.entry.js +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge.cjs.entry.js +1 -1
- package/dist/cjs/nv-base.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +6 -6
- package/dist/cjs/nv-fieldtext.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton.cjs.entry.js +2 -2
- package/dist/cjs/nv-loader.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +2 -2
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +0 -2
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +2 -2
- package/dist/collection/components/nv-icon/nv-icon.js +2 -2
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/components/index.js +3 -3
- package/dist/components/nv-alert.js +2 -2
- package/dist/components/nv-avatar.js +2 -2
- package/dist/components/nv-badge.js +2 -2
- package/dist/components/nv-base.js +1 -1
- package/dist/components/nv-button.js +2 -2
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +121 -1
- package/dist/components/nv-fieldcheckbox.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +5 -5
- package/dist/components/nv-fieldpassword.js +7 -7
- package/dist/components/nv-fieldradio.js +4 -4
- package/dist/components/nv-fieldselect.js +7 -7
- package/dist/components/nv-fieldtext.js +5 -5
- package/dist/components/nv-fieldtextarea.js +4 -4
- package/dist/components/nv-fieldtoggle.js +3 -3
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +3 -3
- package/dist/components/nv-menuitem.js +2 -2
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +2 -2
- package/dist/components/nv-stack.js +2 -2
- package/dist/components/nv-tooltip.js +3 -3
- package/dist/components/{p-45ffa910.js → p-50bd2808.js} +2 -2
- package/dist/components/{p-45ffa910.js.map → p-50bd2808.js.map} +1 -1
- package/dist/components/{p-9cbeeff9.js → p-6146d4b0.js} +3 -3
- package/dist/components/{p-9cbeeff9.js.map → p-6146d4b0.js.map} +1 -1
- package/dist/components/{p-c434f2e5.js → p-632bedb8.js} +2 -6
- package/dist/components/p-632bedb8.js.map +1 -0
- package/dist/components/{p-d8a41fbe.js → p-8da6d9a3.js} +3 -3
- package/dist/components/{p-d8a41fbe.js.map → p-8da6d9a3.js.map} +1 -1
- package/dist/components/{p-813b38b1.js → p-be79e7bc.js} +5 -5
- package/dist/components/{p-813b38b1.js.map → p-be79e7bc.js.map} +1 -1
- package/dist/components/{p-d9d56e06.js → p-c711fe67.js} +4 -4
- package/dist/components/{p-d9d56e06.js.map → p-c711fe67.js.map} +1 -1
- package/dist/docs.json +3 -1049
- package/dist/esm/{app-globals-ec286266.js → app-globals-df0a3c8d.js} +2 -2
- package/dist/esm/{app-globals-ec286266.js.map → app-globals-df0a3c8d.js.map} +1 -1
- package/dist/esm/{index-3762ddc4.js → index-179dfba2.js} +6 -20
- package/dist/esm/index-179dfba2.js.map +1 -0
- package/dist/esm/loader.js +4 -4
- package/dist/esm/native.js +4 -4
- package/dist/esm/nv-alert.entry.js +1 -1
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge.entry.js +1 -1
- package/dist/esm/nv-base.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +4 -4
- package/dist/esm/nv-fieldpassword.entry.js +4 -4
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +6 -6
- package/dist/esm/nv-fieldtext.entry.js +4 -4
- package/dist/esm/nv-fieldtextarea.entry.js +4 -4
- package/dist/esm/nv-fieldtoggle.entry.js +3 -3
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton.entry.js +2 -2
- package/dist/esm/nv-loader.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +2 -2
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +2 -2
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-60f027d4.entry.js → p-06f64d05.entry.js} +2 -2
- package/dist/native/{p-a8fe9493.entry.js → p-0aa0193b.entry.js} +2 -2
- package/dist/native/{p-95a054ed.entry.js → p-124a7067.entry.js} +2 -2
- package/dist/native/{p-ee23e820.entry.js → p-13d0ab5b.entry.js} +2 -2
- package/dist/native/{p-ee23e820.entry.js.map → p-13d0ab5b.entry.js.map} +1 -1
- package/dist/native/{p-3bb76528.entry.js → p-14c08510.entry.js} +2 -2
- package/dist/native/{p-ce6ff56c.entry.js → p-1ceee367.entry.js} +2 -2
- package/dist/native/p-29d482cd.entry.js +2 -0
- package/dist/native/{p-70c73c72.entry.js.map → p-29d482cd.entry.js.map} +1 -1
- package/dist/native/{p-3935c952.entry.js → p-43cd42ca.entry.js} +2 -2
- package/dist/native/{p-8d472724.entry.js → p-519e0f59.entry.js} +2 -2
- package/dist/native/{p-c749aafd.entry.js → p-617d6a09.entry.js} +2 -2
- package/dist/native/p-6f762ec2.entry.js +2 -0
- package/dist/native/{p-068965e9.entry.js.map → p-6f762ec2.entry.js.map} +1 -1
- package/dist/native/{p-1e575590.entry.js → p-71d6aad8.entry.js} +2 -2
- package/dist/native/{p-fd8ee23e.entry.js → p-7ce1b712.entry.js} +2 -2
- package/dist/native/p-80788ddf.js +2 -0
- package/dist/native/{p-5c0e7fda.entry.js → p-830ec54a.entry.js} +2 -2
- package/dist/native/{p-09d57171.entry.js → p-89accab1.entry.js} +2 -2
- package/dist/native/{p-1adc83f5.entry.js → p-8b65b16f.entry.js} +2 -2
- package/dist/native/{p-21bc1cf9.entry.js → p-b5e4a9e7.entry.js} +2 -2
- package/dist/native/{p-c3c9444e.entry.js → p-b8eb4c31.entry.js} +2 -2
- package/dist/native/p-b99aa075.entry.js +2 -0
- package/dist/native/{p-e4d12abd.entry.js → p-d5a8b6c4.entry.js} +2 -2
- package/dist/native/{p-006006b6.js → p-db2a68f3.js} +3 -3
- package/dist/native/p-db2a68f3.js.map +1 -0
- package/dist/native/{p-60679799.entry.js → p-f5acea50.entry.js} +2 -2
- package/dist/native/{p-f215822a.entry.js → p-f9aac71a.entry.js} +2 -2
- package/dist/native/{p-99e17032.entry.js → p-fb6f42b7.entry.js} +2 -2
- package/dist/types/components.d.ts +0 -287
- package/dist/vscode-data.json +3179 -0
- package/hydrate/index.js +33 -495
- package/hydrate/index.mjs +33 -495
- package/hydrate/package.json +1 -1
- package/package.json +3 -2
- package/postinstall.js +15 -0
- package/dist/cjs/index-b925c7f5.js.map +0 -1
- package/dist/cjs/nv-fielddropdownitemcheck.cjs.entry.js +0 -48
- package/dist/cjs/nv-fielddropdownitemcheck.cjs.entry.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +0 -368
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +0 -12
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -6
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +0 -190
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +0 -195
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -169
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +0 -822
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/nv-fielddropdownitemcheck.d.ts +0 -11
- package/dist/components/nv-fielddropdownitemcheck.js +0 -8
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.d.ts +0 -11
- package/dist/components/nv-fieldmultiselect.js +0 -445
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/p-1079b972.js +0 -125
- package/dist/components/p-1079b972.js.map +0 -1
- package/dist/components/p-c434f2e5.js.map +0 -1
- package/dist/components/p-dbbda3ac.js +0 -72
- package/dist/components/p-dbbda3ac.js.map +0 -1
- package/dist/esm/index-3762ddc4.js.map +0 -1
- package/dist/esm/nv-fielddropdownitemcheck.entry.js +0 -44
- package/dist/esm/nv-fielddropdownitemcheck.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +0 -364
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/native/p-006006b6.js.map +0 -1
- package/dist/native/p-056455a2.entry.js +0 -2
- package/dist/native/p-068965e9.entry.js +0 -2
- package/dist/native/p-1392b30f.entry.js +0 -2
- package/dist/native/p-1392b30f.entry.js.map +0 -1
- package/dist/native/p-21cdc57d.entry.js +0 -2
- package/dist/native/p-21cdc57d.entry.js.map +0 -1
- package/dist/native/p-70c73c72.entry.js +0 -2
- package/dist/native/p-b0955577.js +0 -2
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +0 -43
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +0 -4
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +0 -215
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +0 -4
- /package/dist/native/{p-60f027d4.entry.js.map → p-06f64d05.entry.js.map} +0 -0
- /package/dist/native/{p-a8fe9493.entry.js.map → p-0aa0193b.entry.js.map} +0 -0
- /package/dist/native/{p-95a054ed.entry.js.map → p-124a7067.entry.js.map} +0 -0
- /package/dist/native/{p-3bb76528.entry.js.map → p-14c08510.entry.js.map} +0 -0
- /package/dist/native/{p-ce6ff56c.entry.js.map → p-1ceee367.entry.js.map} +0 -0
- /package/dist/native/{p-3935c952.entry.js.map → p-43cd42ca.entry.js.map} +0 -0
- /package/dist/native/{p-8d472724.entry.js.map → p-519e0f59.entry.js.map} +0 -0
- /package/dist/native/{p-c749aafd.entry.js.map → p-617d6a09.entry.js.map} +0 -0
- /package/dist/native/{p-1e575590.entry.js.map → p-71d6aad8.entry.js.map} +0 -0
- /package/dist/native/{p-fd8ee23e.entry.js.map → p-7ce1b712.entry.js.map} +0 -0
- /package/dist/native/{p-b0955577.js.map → p-80788ddf.js.map} +0 -0
- /package/dist/native/{p-5c0e7fda.entry.js.map → p-830ec54a.entry.js.map} +0 -0
- /package/dist/native/{p-09d57171.entry.js.map → p-89accab1.entry.js.map} +0 -0
- /package/dist/native/{p-1adc83f5.entry.js.map → p-8b65b16f.entry.js.map} +0 -0
- /package/dist/native/{p-21bc1cf9.entry.js.map → p-b5e4a9e7.entry.js.map} +0 -0
- /package/dist/native/{p-c3c9444e.entry.js.map → p-b8eb4c31.entry.js.map} +0 -0
- /package/dist/native/{p-056455a2.entry.js.map → p-b99aa075.entry.js.map} +0 -0
- /package/dist/native/{p-e4d12abd.entry.js.map → p-d5a8b6c4.entry.js.map} +0 -0
- /package/dist/native/{p-60679799.entry.js.map → p-f5acea50.entry.js.map} +0 -0
- /package/dist/native/{p-f215822a.entry.js.map → p-f9aac71a.entry.js.map} +0 -0
- /package/dist/native/{p-99e17032.entry.js.map → p-fb6f42b7.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -128,7 +128,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
const NAMESPACE = 'native';
|
|
131
|
-
const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback:
|
|
131
|
+
const BUILD = /* native */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: false, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: true, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
132
132
|
|
|
133
133
|
// Prevents the dev components from being bundled in production as a component
|
|
134
134
|
if (Build.isDev) {
|
|
@@ -1596,7 +1596,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1596
1596
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1597
1597
|
}
|
|
1598
1598
|
endNewInstance();
|
|
1599
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1600
1599
|
} else {
|
|
1601
1600
|
Cstr = elm.constructor;
|
|
1602
1601
|
const cmpTag = elm.localName;
|
|
@@ -1624,9 +1623,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1624
1623
|
}
|
|
1625
1624
|
};
|
|
1626
1625
|
var fireConnectedCallback = (instance) => {
|
|
1627
|
-
{
|
|
1628
|
-
safeCall(instance, "connectedCallback");
|
|
1629
|
-
}
|
|
1630
1626
|
};
|
|
1631
1627
|
|
|
1632
1628
|
// src/runtime/connected-callback.ts
|
|
@@ -1663,10 +1659,8 @@ var connectedCallback = (elm) => {
|
|
|
1663
1659
|
}
|
|
1664
1660
|
} else {
|
|
1665
1661
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1666
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1667
|
-
|
|
1668
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1669
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1662
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1663
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1670
1664
|
}
|
|
1671
1665
|
}
|
|
1672
1666
|
endConnected();
|
|
@@ -5199,460 +5193,6 @@ class NvFieldcheckbox {
|
|
|
5199
5193
|
}; }
|
|
5200
5194
|
}
|
|
5201
5195
|
|
|
5202
|
-
const nvFielddropdownitemcheckCss = "@charset \"UTF-8\";nv-fielddropdownitemcheck slot-fb{all:unset;}nv-fielddropdownitemcheck nv-fieldcheckbox input[type=checkbox]{all:unset;display:inline-block;margin:0;padding:0;width:20px;height:20px}";
|
|
5203
|
-
var NvFielddropdownitemcheckStyle0 = nvFielddropdownitemcheckCss;
|
|
5204
|
-
|
|
5205
|
-
class NvFielddropdownitemcheck {
|
|
5206
|
-
constructor(hostRef) {
|
|
5207
|
-
registerInstance(this, hostRef);
|
|
5208
|
-
this.itemChecked = createEvent(this, "itemChecked", 7);
|
|
5209
|
-
this.handleCheckboxToggle = () => {
|
|
5210
|
-
if (this.disabled)
|
|
5211
|
-
return; // Ignore interactions si désactivé
|
|
5212
|
-
this.checked = !this.checked;
|
|
5213
|
-
this.itemChecked.emit({
|
|
5214
|
-
value: this.value,
|
|
5215
|
-
checked: this.checked,
|
|
5216
|
-
group: this.group,
|
|
5217
|
-
});
|
|
5218
|
-
console.log('itemChecked emitted:', {
|
|
5219
|
-
value: this.value,
|
|
5220
|
-
checked: this.checked,
|
|
5221
|
-
group: this.group,
|
|
5222
|
-
});
|
|
5223
|
-
};
|
|
5224
|
-
this.checked = false;
|
|
5225
|
-
this.value = undefined;
|
|
5226
|
-
this.label = undefined;
|
|
5227
|
-
this.description = undefined;
|
|
5228
|
-
this.group = undefined;
|
|
5229
|
-
this.disabled = false;
|
|
5230
|
-
}
|
|
5231
|
-
//#endregion EVENTS
|
|
5232
|
-
/****************************************************************************/
|
|
5233
|
-
//#region RENDER
|
|
5234
|
-
render() {
|
|
5235
|
-
return (hAsync(Host, { key: 'a12664b18cb98c654b7e13b1883775baf96f174d', onClick: this.handleCheckboxToggle }, hAsync("div", { key: '279a9e736c4e12c214bff691494b1bbc8efea808' }, hAsync("nv-fieldcheckbox", { key: 'b278a88b87f8d5137cd9bdf28b332a28938ef1e2', checked: this.checked, name: this.label || this.value, label: this.label || this.value, "label-placement": "after", description: this.description, disabled: this.disabled, tabindex: "-1", role: "option" }))));
|
|
5236
|
-
}
|
|
5237
|
-
get el() { return getElement(this); }
|
|
5238
|
-
static get style() { return NvFielddropdownitemcheckStyle0; }
|
|
5239
|
-
static get cmpMeta() { return {
|
|
5240
|
-
"$flags$": 0,
|
|
5241
|
-
"$tagName$": "nv-fielddropdownitemcheck",
|
|
5242
|
-
"$members$": {
|
|
5243
|
-
"checked": [1540],
|
|
5244
|
-
"value": [513],
|
|
5245
|
-
"label": [513],
|
|
5246
|
-
"description": [513],
|
|
5247
|
-
"group": [513],
|
|
5248
|
-
"disabled": [516]
|
|
5249
|
-
},
|
|
5250
|
-
"$listeners$": undefined,
|
|
5251
|
-
"$lazyBundleId$": "-",
|
|
5252
|
-
"$attrsToReflect$": [["checked", "checked"], ["value", "value"], ["label", "label"], ["description", "description"], ["group", "group"], ["disabled", "disabled"]]
|
|
5253
|
-
}; }
|
|
5254
|
-
}
|
|
5255
|
-
|
|
5256
|
-
const nvFieldmultiselectCss = "nv-fieldmultiselect{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box}nv-fieldmultiselect[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fieldmultiselect[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive)}nv-fieldmultiselect[required]:not([required=false]) label::after{content:\"*\";color:var(--components-form-text-required);font-weight:700}nv-fieldmultiselect label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fieldmultiselect nv-popover{width:100%;display:block}nv-fieldmultiselect .input-wrapper-multiselect{display:flex;flex-wrap:wrap;gap:var(--form-gap-x);align-items:stretch;align-self:stretch;width:100%}nv-fieldmultiselect .input-container-multiselect{display:flex;flex-grow:1;padding:calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);justify-content:center;align-items:center;gap:var(--form-field-gap);align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default);background:var(--nv-field-background);transition:all 150ms ease-out;display:flex;align-items:center;position:relative;width:100%;min-height:40px}nv-fieldmultiselect .input-container-multiselect:hover{border-color:var(--nv-field-border-hover)}nv-fieldmultiselect .input-container-multiselect:focus-within{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fieldmultiselect .input-container-multiselect:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fieldmultiselect .input-container-multiselect:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fieldmultiselect .input-container-multiselect input,nv-fieldmultiselect .input-container-multiselect p.non-filterable-text{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);text-overflow:ellipsis;font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%;padding-right:2rem;flex-grow:1;margin:0;min-height:100%;box-sizing:border-box}nv-fieldmultiselect .input-container-multiselect input:focus,nv-fieldmultiselect .input-container-multiselect p.non-filterable-text:focus{outline:none}nv-fieldmultiselect .input-container-multiselect input::placeholder,nv-fieldmultiselect .input-container-multiselect p.non-filterable-text::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fieldmultiselect .input-container-multiselect .toggle-dropdown-icon{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:2}nv-fieldmultiselect .input-container-multiselect nv-icon.validation{color:var(--nv-field-border-default);position:absolute;right:50px}nv-fieldmultiselect .input-container-multiselect.focus-within,nv-fieldmultiselect .input-container-multiselect:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fieldmultiselect .non-filterable-text{display:block;border-radius:var(--form-field-radius);background-color:var(--nv-field-background);color:var(--components-form-field-content-text);font-size:var(--form-field-font-size);font-weight:500;line-height:var(--form-field-line-height);box-sizing:border-box;cursor:pointer;height:100%;min-height:40px}nv-fieldmultiselect .non-filterable-text span{display:inline-block;width:100%;overflow:hidden;text-overflow:ellipsis}nv-fieldmultiselect .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fieldmultiselect .error-description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldmultiselect hr{border:none;border-top:1px solid var(--dropdown-divider-color, #ccc);margin:0.5rem 0}.input-container-multiselect.focus-within,.input-container-multiselect:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}";
|
|
5257
|
-
var NvFieldmultiselectStyle0 = nvFieldmultiselectCss;
|
|
5258
|
-
|
|
5259
|
-
// import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitemcheck/DropdownItemSelectedEventDetail';
|
|
5260
|
-
/**
|
|
5261
|
-
* @slot content - The content of the list.
|
|
5262
|
-
* @slot leading-input - Content to be placed before the input text, within the input container.
|
|
5263
|
-
* @slot before-input - Content to be placed before the input text, outside the input container.
|
|
5264
|
-
* @slot after-input - Content to be placed after the input text, outside the input container.
|
|
5265
|
-
* @slot label - Content to be placed as the label, will override the label prop.
|
|
5266
|
-
* @slot description - Content to be placed as the description, will override the description prop.
|
|
5267
|
-
* @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
|
|
5268
|
-
*/
|
|
5269
|
-
class NvFieldmultiselect {
|
|
5270
|
-
constructor(hostRef) {
|
|
5271
|
-
registerInstance(this, hostRef);
|
|
5272
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
5273
|
-
this.multiselectChange = createEvent(this, "multiselectChange", 7);
|
|
5274
|
-
/**
|
|
5275
|
-
* Handle click on the input container.
|
|
5276
|
-
* @param {MouseEvent} event - The click event.
|
|
5277
|
-
*/
|
|
5278
|
-
this.handleInputContainerClick = (event) => {
|
|
5279
|
-
if (this.disabled || this.readonly) {
|
|
5280
|
-
return; // Do nothing if the dropdown is disabled or read-only
|
|
5281
|
-
}
|
|
5282
|
-
const target = event.target;
|
|
5283
|
-
// Check if it is the paragraph or another part of the container
|
|
5284
|
-
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
5285
|
-
this.open = true;
|
|
5286
|
-
this.popoverElement.show();
|
|
5287
|
-
// Simulate focus to trigger "focus-within" style
|
|
5288
|
-
const inputContainer = this.el.querySelector('.input-container');
|
|
5289
|
-
if (inputContainer) {
|
|
5290
|
-
inputContainer.classList.add('focus-within');
|
|
5291
|
-
// Remove the "focus-within" class after a delay or when the popover is closed
|
|
5292
|
-
const removeFocusWithin = () => {
|
|
5293
|
-
inputContainer.classList.remove('focus-within');
|
|
5294
|
-
};
|
|
5295
|
-
// Or remove the class when the popover is closed
|
|
5296
|
-
this.popoverElement.addEventListener('hide', removeFocusWithin);
|
|
5297
|
-
}
|
|
5298
|
-
}
|
|
5299
|
-
};
|
|
5300
|
-
/**
|
|
5301
|
-
* Handle input change.
|
|
5302
|
-
* @param {Event} event - The input event.
|
|
5303
|
-
*/
|
|
5304
|
-
this.handleInput = (event) => {
|
|
5305
|
-
if (!this.filterable)
|
|
5306
|
-
return; // Do not filter if `filterable` is false
|
|
5307
|
-
if (this.disabled || this.readonly) {
|
|
5308
|
-
return; // Do not toggle the state if the dropdown is disabled or read-only
|
|
5309
|
-
}
|
|
5310
|
-
const input = event.target;
|
|
5311
|
-
this.filterText = input.value.toLowerCase();
|
|
5312
|
-
this.value = input.value; // Update the value
|
|
5313
|
-
this.valueChanged.emit(input.value); // Emit an event if needed
|
|
5314
|
-
this.filterItems(); // Update the visibility of items
|
|
5315
|
-
};
|
|
5316
|
-
/**
|
|
5317
|
-
* Handle input focus.
|
|
5318
|
-
*/
|
|
5319
|
-
this.handleInputFocus = () => {
|
|
5320
|
-
if (this.disabled || this.readonly) {
|
|
5321
|
-
return; // Do not toggle the state if the dropdown is disabled or read-only
|
|
5322
|
-
}
|
|
5323
|
-
this.open = true; // Force the popover to open
|
|
5324
|
-
};
|
|
5325
|
-
/**
|
|
5326
|
-
* Handle input blur.
|
|
5327
|
-
*/
|
|
5328
|
-
this.handleInputBlur = () => {
|
|
5329
|
-
// Use a delay to check if the focus is still within the popover
|
|
5330
|
-
setTimeout(() => {
|
|
5331
|
-
if (!this.el.contains(document.activeElement)) {
|
|
5332
|
-
this.open = false;
|
|
5333
|
-
this.popoverElement.hide(); // Close the popover if the focus is outside the component
|
|
5334
|
-
}
|
|
5335
|
-
}, 150);
|
|
5336
|
-
};
|
|
5337
|
-
/**
|
|
5338
|
-
* Toggle the dropdown popover.
|
|
5339
|
-
* @returns {void}
|
|
5340
|
-
*/
|
|
5341
|
-
this.togglePopover = () => {
|
|
5342
|
-
if (this.disabled || this.readonly) {
|
|
5343
|
-
return; // Do not toggle if disabled or read-only
|
|
5344
|
-
}
|
|
5345
|
-
this.open = !this.open;
|
|
5346
|
-
if (this.open) {
|
|
5347
|
-
this.popoverElement.show();
|
|
5348
|
-
// Si le dropdown n'est pas filtrable, focus sur le premier élément
|
|
5349
|
-
if (!this.filterable) {
|
|
5350
|
-
this.focusFirstItem();
|
|
5351
|
-
}
|
|
5352
|
-
}
|
|
5353
|
-
else {
|
|
5354
|
-
this.popoverElement.hide();
|
|
5355
|
-
}
|
|
5356
|
-
};
|
|
5357
|
-
this.maxHeight = '200px';
|
|
5358
|
-
this.selectedValues = [];
|
|
5359
|
-
this.badgeLabel = 'selected';
|
|
5360
|
-
this.options = [];
|
|
5361
|
-
this.clearable = false;
|
|
5362
|
-
this.inputId = v4();
|
|
5363
|
-
this.label = undefined;
|
|
5364
|
-
this.description = undefined;
|
|
5365
|
-
this.placeholder = undefined;
|
|
5366
|
-
this.name = undefined;
|
|
5367
|
-
this.open = false;
|
|
5368
|
-
this.autocomplete = 'off';
|
|
5369
|
-
this.value = undefined;
|
|
5370
|
-
this.required = false;
|
|
5371
|
-
this.error = false;
|
|
5372
|
-
this.errorDescription = undefined;
|
|
5373
|
-
this.readonly = false;
|
|
5374
|
-
this.disabled = false;
|
|
5375
|
-
this.emptyresult = 'No results found';
|
|
5376
|
-
this.filterText = '';
|
|
5377
|
-
this.filterable = false;
|
|
5378
|
-
this.isFilterable = this.filterable;
|
|
5379
|
-
}
|
|
5380
|
-
handleOpenChanged(event) {
|
|
5381
|
-
this.open = event.detail; // Update `open` based on the popover state
|
|
5382
|
-
}
|
|
5383
|
-
watchFilterableHandler(newValue) {
|
|
5384
|
-
this.isFilterable = newValue;
|
|
5385
|
-
this.filterable = newValue;
|
|
5386
|
-
}
|
|
5387
|
-
watchValueHandler() {
|
|
5388
|
-
// Handle value change and update the corresponding dropdown item if it exists
|
|
5389
|
-
this.setInitialSelection();
|
|
5390
|
-
}
|
|
5391
|
-
/**
|
|
5392
|
-
* Listen for the `itemChecked` event emitted by child items.
|
|
5393
|
-
* Updates the selected values accordingly.
|
|
5394
|
-
* @param {CustomEvent<{ value: string; checked: boolean }>} event - The event object containing the selected value and its checked state.
|
|
5395
|
-
*/
|
|
5396
|
-
handleItemChecked(event) {
|
|
5397
|
-
if (this.disabled || this.readonly)
|
|
5398
|
-
return;
|
|
5399
|
-
const { value, checked } = event.detail;
|
|
5400
|
-
// Si une valeur est définie, met à jour `selectedValues`.
|
|
5401
|
-
if (value) {
|
|
5402
|
-
if (checked) {
|
|
5403
|
-
// Ajoute la valeur si elle est cochée
|
|
5404
|
-
this.selectedValues = [...this.selectedValues, value];
|
|
5405
|
-
}
|
|
5406
|
-
else {
|
|
5407
|
-
// Retire la valeur si elle est décochée
|
|
5408
|
-
this.selectedValues = this.selectedValues.filter(val => val !== value);
|
|
5409
|
-
}
|
|
5410
|
-
}
|
|
5411
|
-
// Émet l'événement `multiselectChange` avec la nouvelle liste des valeurs sélectionnées
|
|
5412
|
-
this.multiselectChange.emit(this.selectedValues);
|
|
5413
|
-
}
|
|
5414
|
-
//#endregion EVENTS
|
|
5415
|
-
/****************************************************************************/
|
|
5416
|
-
//#region METHODS
|
|
5417
|
-
/**
|
|
5418
|
-
* Subscribe to click outside event.
|
|
5419
|
-
*/
|
|
5420
|
-
connectedCallback() {
|
|
5421
|
-
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
5422
|
-
// Handle pre-selection during component initialization
|
|
5423
|
-
this.setInitialSelection();
|
|
5424
|
-
// Apply filtering if the dropdown is filterable and there is a value
|
|
5425
|
-
if (this.filterable && this.value) {
|
|
5426
|
-
this.filterText = this.value.toLowerCase();
|
|
5427
|
-
this.filterItems(); // Update the visibility of items
|
|
5428
|
-
}
|
|
5429
|
-
else {
|
|
5430
|
-
// Ensure all items are visible if no filtering is applied
|
|
5431
|
-
this.resetFilter();
|
|
5432
|
-
}
|
|
5433
|
-
}
|
|
5434
|
-
/**
|
|
5435
|
-
* Set the initial selection based on the current value and update the inputElement value.
|
|
5436
|
-
*/
|
|
5437
|
-
setInitialSelection() {
|
|
5438
|
-
var _a;
|
|
5439
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5440
|
-
const selectedItem = items.find(item => {
|
|
5441
|
-
var _a;
|
|
5442
|
-
return item.getAttribute('label') === this.value ||
|
|
5443
|
-
item.getAttribute('value') === this.value ||
|
|
5444
|
-
((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
|
|
5445
|
-
});
|
|
5446
|
-
// Remove 'selected' from all items first to reset the state
|
|
5447
|
-
items.forEach(item => {
|
|
5448
|
-
item.removeAttribute('selected');
|
|
5449
|
-
item.classList.remove('selected');
|
|
5450
|
-
});
|
|
5451
|
-
if (selectedItem) {
|
|
5452
|
-
// Add the `selected` attribute and `selected` class for visual styling
|
|
5453
|
-
selectedItem.setAttribute('selected', 'true');
|
|
5454
|
-
selectedItem.classList.add('selected');
|
|
5455
|
-
// Update the value and inputElement value to reflect the pre-selected item
|
|
5456
|
-
this.value =
|
|
5457
|
-
selectedItem.getAttribute('label') ||
|
|
5458
|
-
selectedItem.getAttribute('value') ||
|
|
5459
|
-
((_a = selectedItem.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
5460
|
-
'';
|
|
5461
|
-
if (this.inputElement) {
|
|
5462
|
-
this.inputElement.value = this.value;
|
|
5463
|
-
}
|
|
5464
|
-
}
|
|
5465
|
-
}
|
|
5466
|
-
/**
|
|
5467
|
-
* Unsubscribe from click outside event.
|
|
5468
|
-
*/
|
|
5469
|
-
disconnectedCallback() {
|
|
5470
|
-
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
5471
|
-
}
|
|
5472
|
-
/**
|
|
5473
|
-
* Filter dropdown items based on the text entered by the user.
|
|
5474
|
-
* If no items are found, display a message indicating no results.
|
|
5475
|
-
*/
|
|
5476
|
-
filterItems() {
|
|
5477
|
-
var _a;
|
|
5478
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5479
|
-
// Remove the "no results found" item if it exists
|
|
5480
|
-
const existingEmptyItem = this.el.querySelector('nv-fielddropdownitemcheck[data-empty]');
|
|
5481
|
-
if (existingEmptyItem) {
|
|
5482
|
-
existingEmptyItem.remove();
|
|
5483
|
-
}
|
|
5484
|
-
let hasVisibleItems = false;
|
|
5485
|
-
// Iterate over all items and adjust their visibility
|
|
5486
|
-
items.forEach(item => {
|
|
5487
|
-
var _a, _b;
|
|
5488
|
-
const textContent = ((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ''; // Get the textual content of the slot
|
|
5489
|
-
const value = ((_b = item.value) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || ''; // Get the value of the `value` attribute
|
|
5490
|
-
// Check if the filtered text is present either in the value or in the textual content
|
|
5491
|
-
const shouldShow = value.includes(this.filterText) ||
|
|
5492
|
-
textContent.includes(this.filterText);
|
|
5493
|
-
item.style.display = shouldShow ? '' : 'none'; // Hide or show the item
|
|
5494
|
-
if (shouldShow) {
|
|
5495
|
-
hasVisibleItems = true;
|
|
5496
|
-
}
|
|
5497
|
-
});
|
|
5498
|
-
// If no items are visible, add the "no results found" item
|
|
5499
|
-
if (!hasVisibleItems) {
|
|
5500
|
-
const emptyItem = document.createElement('nv-fielddropdownitemcheck');
|
|
5501
|
-
emptyItem.setAttribute('data-empty', 'true');
|
|
5502
|
-
emptyItem.setAttribute('disabled', 'true');
|
|
5503
|
-
emptyItem.textContent = this.emptyresult;
|
|
5504
|
-
(_a = this.el.querySelector('ul[slot="content"]')) === null || _a === void 0 ? void 0 : _a.appendChild(emptyItem);
|
|
5505
|
-
}
|
|
5506
|
-
}
|
|
5507
|
-
/**
|
|
5508
|
-
* Reset the filter and make all items visible.
|
|
5509
|
-
*/
|
|
5510
|
-
resetFilter() {
|
|
5511
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5512
|
-
items.forEach(item => {
|
|
5513
|
-
item.style.display = '';
|
|
5514
|
-
});
|
|
5515
|
-
}
|
|
5516
|
-
/**
|
|
5517
|
-
* Retrieves the current filter text entered by the user.
|
|
5518
|
-
* @returns {string} The filter text.
|
|
5519
|
-
*/
|
|
5520
|
-
async getFilterText() {
|
|
5521
|
-
return this.filterText;
|
|
5522
|
-
}
|
|
5523
|
-
/**
|
|
5524
|
-
* Handle click outside the component.
|
|
5525
|
-
* @param {MouseEvent} event - The click event.
|
|
5526
|
-
*/
|
|
5527
|
-
handleClickOutside(event) {
|
|
5528
|
-
if (this.el.contains(event.target) ||
|
|
5529
|
-
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
5530
|
-
// If the click is inside the component or on the input, do not close the popover
|
|
5531
|
-
return;
|
|
5532
|
-
}
|
|
5533
|
-
this.popoverElement.hide(); // Close the popover if the click is outside the component
|
|
5534
|
-
}
|
|
5535
|
-
handleKeyDown(event) {
|
|
5536
|
-
if (!this.open) {
|
|
5537
|
-
if (event.key === 'ArrowDown') {
|
|
5538
|
-
this.open = true;
|
|
5539
|
-
this.popoverElement.show();
|
|
5540
|
-
// Focus sur le premier élément si la liste n'est pas filtrable
|
|
5541
|
-
if (!this.filterable) {
|
|
5542
|
-
this.focusFirstItem();
|
|
5543
|
-
}
|
|
5544
|
-
event.preventDefault();
|
|
5545
|
-
return;
|
|
5546
|
-
}
|
|
5547
|
-
return;
|
|
5548
|
-
}
|
|
5549
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5550
|
-
if (items.length === 0) {
|
|
5551
|
-
console.warn('No dropdown items found to navigate');
|
|
5552
|
-
return;
|
|
5553
|
-
}
|
|
5554
|
-
let currentIndex = items.findIndex(item => item.classList.contains('highlighted'));
|
|
5555
|
-
if (event.key === 'ArrowDown') {
|
|
5556
|
-
event.preventDefault();
|
|
5557
|
-
currentIndex = (currentIndex + 1) % items.length;
|
|
5558
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
5559
|
-
}
|
|
5560
|
-
else if (event.key === 'ArrowUp') {
|
|
5561
|
-
event.preventDefault();
|
|
5562
|
-
currentIndex = (currentIndex - 1 + items.length) % items.length;
|
|
5563
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
5564
|
-
}
|
|
5565
|
-
else if (event.key === 'Enter' && currentIndex >= 0) {
|
|
5566
|
-
event.preventDefault();
|
|
5567
|
-
items[currentIndex].click();
|
|
5568
|
-
}
|
|
5569
|
-
else if (event.key === 'Escape') {
|
|
5570
|
-
event.preventDefault();
|
|
5571
|
-
this.open = false;
|
|
5572
|
-
this.popoverElement.hide();
|
|
5573
|
-
if (this.inputElement) {
|
|
5574
|
-
this.inputElement.blur();
|
|
5575
|
-
}
|
|
5576
|
-
}
|
|
5577
|
-
}
|
|
5578
|
-
updateHighlightedItem(items, index) {
|
|
5579
|
-
items.forEach((item, i) => {
|
|
5580
|
-
if (i === index) {
|
|
5581
|
-
item.classList.add('highlighted');
|
|
5582
|
-
item.setAttribute('tabindex', '0');
|
|
5583
|
-
item.focus();
|
|
5584
|
-
}
|
|
5585
|
-
else {
|
|
5586
|
-
item.classList.remove('highlighted');
|
|
5587
|
-
item.setAttribute('tabindex', '-1');
|
|
5588
|
-
}
|
|
5589
|
-
});
|
|
5590
|
-
}
|
|
5591
|
-
focusFirstItem() {
|
|
5592
|
-
const firstItem = this.el.querySelector('nv-fielddropdownitemcheck');
|
|
5593
|
-
if (firstItem) {
|
|
5594
|
-
firstItem.setAttribute('tabindex', '0');
|
|
5595
|
-
firstItem.classList.add('highlighted');
|
|
5596
|
-
firstItem.focus();
|
|
5597
|
-
}
|
|
5598
|
-
else {
|
|
5599
|
-
console.warn('No first item found to focus');
|
|
5600
|
-
}
|
|
5601
|
-
}
|
|
5602
|
-
//#endregion METHODS
|
|
5603
|
-
/****************************************************************************/
|
|
5604
|
-
//#region RENDER
|
|
5605
|
-
render() {
|
|
5606
|
-
return (hAsync(Host, { key: '8491eef8fe6d3df7b6cc1992c2894e8dd2513a6c' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '79c49fdbcdf7ca404880d318c59afe5096bf4b9e', htmlFor: this.inputId }, hAsync("slot", { key: 'f4eba554fc97e2ae1a24f01a20d3e37ab84acae4', name: "label" }, this.label))), hAsync("nv-popover", { key: '46b5a94caa12e50b592de484b158ba67715cec14', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: '473a98f6c7636d65b1d9d35beb6f3c5ba012179f', class: "input-wrapper-multiselect", slot: "trigger" }, hAsync("slot", { key: '4038e51342c18e735ea2c164a1658f0928f3f7e1', name: "before-input" }), hAsync("div", { key: 'cb53b835fb716e20f79593cdf7874f64987a8cc5', class: "input-container-multiselect", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'c5879628d28b7901bca1da93499ed83f661e1fe3', name: "leading-input" }), this.isFilterable || this.disabled || this.readonly ? (hAsync("input", { id: this.inputId, type: "search", ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onKeyDown: this.handleKeyDown })) : (hAsync("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, hAsync("span", null, this.value || this.placeholder))), hAsync("nv-iconbutton", { key: '8459a377fbee5cebc457bcc53385a6e8832e4781', class: "toggle-dropdown-icon", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover })), hAsync("slot", { key: 'f338a93f4eaac472817ce32f72695e8ea026b3d7', name: "after-input" })), hAsync("slot", { key: 'e9c871135bbed4f64113ab6a7ff5342a3374860e', name: "content" }, hAsync("ul", { key: 'd129ae2fcf0d84d7337b886fbd7a0b64dc6e0c3e' }, this.options.map(option => (hAsync("li", { class: {
|
|
5607
|
-
'dropdown-item': true,
|
|
5608
|
-
'is-selected': this.selectedValues.includes(option.value),
|
|
5609
|
-
}, "aria-selected": this.selectedValues
|
|
5610
|
-
.includes(option.value)
|
|
5611
|
-
.toString(), role: "option" }, hAsync("nv-fielddropdownitemcheck", { value: option.value, label: option.label, checked: this.selectedValues.includes(option.value) }))))))), (this.description ||
|
|
5612
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '66ce27f7c0ee316381c12664130518e84e080fd4', class: "description" }, hAsync("slot", { key: '9a7bd32d04f2b451fff8d6546273097c7bf8b0cc', name: "description" }, this.description))), (this.errorDescription ||
|
|
5613
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'ffcc1911fb6485e2b34dbb1dfb775d2800bfd940', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'd77fe0f486d0d0e9a905463f85fb91edbf7c0854', name: "error-description" }, this.errorDescription)))));
|
|
5614
|
-
}
|
|
5615
|
-
static get formAssociated() { return true; }
|
|
5616
|
-
get el() { return getElement(this); }
|
|
5617
|
-
static get watchers() { return {
|
|
5618
|
-
"filterable": ["watchFilterableHandler"],
|
|
5619
|
-
"value": ["watchValueHandler"]
|
|
5620
|
-
}; }
|
|
5621
|
-
static get style() { return NvFieldmultiselectStyle0; }
|
|
5622
|
-
static get cmpMeta() { return {
|
|
5623
|
-
"$flags$": 68,
|
|
5624
|
-
"$tagName$": "nv-fieldmultiselect",
|
|
5625
|
-
"$members$": {
|
|
5626
|
-
"maxHeight": [513, "max-height"],
|
|
5627
|
-
"badgeLabel": [513, "badge-label"],
|
|
5628
|
-
"options": [16],
|
|
5629
|
-
"clearable": [516],
|
|
5630
|
-
"inputId": [513, "input-id"],
|
|
5631
|
-
"label": [513],
|
|
5632
|
-
"description": [513],
|
|
5633
|
-
"placeholder": [513],
|
|
5634
|
-
"name": [513],
|
|
5635
|
-
"open": [1540],
|
|
5636
|
-
"autocomplete": [513],
|
|
5637
|
-
"value": [1537],
|
|
5638
|
-
"required": [516],
|
|
5639
|
-
"error": [516],
|
|
5640
|
-
"errorDescription": [513, "error-description"],
|
|
5641
|
-
"readonly": [516],
|
|
5642
|
-
"disabled": [516],
|
|
5643
|
-
"emptyresult": [513],
|
|
5644
|
-
"filterable": [1540],
|
|
5645
|
-
"selectedValues": [32],
|
|
5646
|
-
"filterText": [32],
|
|
5647
|
-
"isFilterable": [32],
|
|
5648
|
-
"getFilterText": [64]
|
|
5649
|
-
},
|
|
5650
|
-
"$listeners$": [[0, "openChanged", "handleOpenChanged"], [0, "itemChecked", "handleItemChecked"], [0, "keydown", "handleKeyDown"]],
|
|
5651
|
-
"$lazyBundleId$": "-",
|
|
5652
|
-
"$attrsToReflect$": [["maxHeight", "max-height"], ["badgeLabel", "badge-label"], ["clearable", "clearable"], ["inputId", "input-id"], ["label", "label"], ["description", "description"], ["placeholder", "placeholder"], ["name", "name"], ["open", "open"], ["autocomplete", "autocomplete"], ["value", "value"], ["required", "required"], ["error", "error"], ["errorDescription", "error-description"], ["readonly", "readonly"], ["disabled", "disabled"], ["emptyresult", "emptyresult"], ["filterable", "filterable"]]
|
|
5653
|
-
}; }
|
|
5654
|
-
}
|
|
5655
|
-
|
|
5656
5196
|
const nvFieldnumberCss = "nv-fieldnumber {\n --nv-field-border-default: var(--components-form-field-border-default);\n --nv-field-border-hover: var(--components-form-field-border-hover);\n --nv-field-border-focus: var(--components-form-field-border-focus);\n --nv-field-border-disabled: var(--components-form-field-border-default);\n --nv-field-border-readonly: var(--components-form-field-border-default);\n --nv-field-focus-box-shadow: var(--color-focus-brand);\n --nv-field-background: var(--components-form-field-background-default);\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--form-gap-y);\n box-sizing: border-box;\n}\nnv-fieldnumber[readonly]:not([readonly=false]) {\n --nv-field-border-default: var(--components-form-field-border-readonly);\n --nv-field-border-hover: var(--nv-field-border-default);\n --nv-field-border-focus: var(--components-form-field-border-focus);\n --nv-field-border-disabled: var(--nv-field-border-default);\n --nv-field-border-readonly: var(--nv-field-border-default);\n --nv-field-background: var(--components-form-field-background-readonly);\n}\nnv-fieldnumber[error]:not([error=false]) {\n --nv-field-border-default: var(--components-form-field-border-error);\n --nv-field-border-hover: var(--nv-field-border-default);\n --nv-field-border-focus: var(--nv-field-border-default);\n --nv-field-border-disabled: var(--nv-field-border-default);\n --nv-field-border-readonly: var(--nv-field-border-default);\n --nv-field-focus-box-shadow: var(--color-focus-destructive);\n}\nnv-fieldnumber[success]:not([success=false]) {\n --nv-field-border-default: var(--components-form-field-border-success);\n --nv-field-border-hover: var(--nv-field-border-default);\n --nv-field-border-focus: var(--nv-field-border-default);\n --nv-field-border-disabled: var(--nv-field-border-default);\n --nv-field-border-readonly: var(--nv-field-border-default);\n --nv-field-focus-box-shadow: var(--color-focus-success);\n}\nnv-fieldnumber[required]:not([required=false]) label::after {\n content: \"*\";\n color: var(--components-form-text-required);\n font-weight: 700;\n}\nnv-fieldnumber label {\n display: flex;\n align-items: center;\n gap: var(--form-label-gap);\n align-self: stretch;\n color: var(--components-form-text-label-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-label-font-size);\n font-style: normal;\n font-weight: 500;\n line-height: var(--form-label-line-height);\n}\nnv-fieldnumber .input-wrapper {\n display: flex;\n flex-wrap: wrap;\n gap: var(--form-gap-x);\n align-items: stretch;\n align-self: stretch;\n}\nnv-fieldnumber .input-wrapper .input-container {\n display: flex;\n flex-grow: 1;\n padding: calc(var(--form-field-padding-y) - 1px) var(--form-field-padding-x);\n justify-content: center;\n align-items: center;\n gap: var(--form-field-gap);\n align-self: stretch;\n border-radius: var(--form-field-radius);\n border-width: 1px;\n border-style: solid;\n border-color: var(--nv-field-border-default);\n opacity: var(--components-form-opacity-default);\n background: var(--nv-field-background);\n transition: all 150ms ease-out;\n container-type: inline-size;\n container-name: field-number-input-container;\n overflow: hidden;\n position: relative;\n}\nnv-fieldnumber .input-wrapper .input-container:hover {\n border-color: var(--nv-field-border-hover);\n}\nnv-fieldnumber .input-wrapper .input-container:focus-within {\n border-color: var(--nv-field-border-focus);\n box-shadow: 0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow);\n}\nnv-fieldnumber .input-wrapper .input-container:has(input:read-only) {\n opacity: 0.5;\n background-color: var(--components-form-field-background-readonly);\n border-color: var(--nv-field-border-readonly);\n}\nnv-fieldnumber .input-wrapper .input-container:has(input:disabled) {\n opacity: 0.5;\n background-color: var(--components-form-field-background-disabled);\n border-color: var(--nv-field-border-disabled);\n}\nnv-fieldnumber .input-wrapper .input-container input {\n display: flex;\n align-items: center;\n flex: 1 0 0;\n overflow: hidden;\n background-color: transparent;\n color: var(--components-form-field-content-text);\n text-overflow: ellipsis;\n font-size: var(--form-field-font-size);\n font-style: normal;\n font-weight: 500;\n line-height: var(--form-field-line-height);\n width: 100%;\n appearance: textfield;\n}\nnv-fieldnumber .input-wrapper .input-container input:focus {\n outline: none;\n}\nnv-fieldnumber .input-wrapper .input-container input::placeholder {\n overflow: hidden;\n color: var(--components-form-field-content-placeholder);\n text-overflow: ellipsis;\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-field-font-size);\n font-style: normal;\n font-weight: 400;\n line-height: var(--form-field-line-height);\n}\nnv-fieldnumber .input-wrapper .input-container input::-webkit-inner-spin-button, nv-fieldnumber .input-wrapper .input-container input::-webkit-outer-spin-button {\n appearance: none;\n margin: 0;\n}\nnv-fieldnumber .input-wrapper .input-container nv-icon.validation {\n color: var(--nv-field-border-default);\n}\nnv-fieldnumber .input-wrapper .input-container .stepper {\n position: absolute;\n right: 0;\n height: 100%;\n display: flex;\n align-items: center;\n border-left: var(--notification-border-width-low-emphasis) solid var(--components-form-field-border-readonly);\n}\nnv-fieldnumber .input-wrapper .input-container .stepper nv-icon {\n color: var(--components-form-field-icon-default);\n height: 100%;\n}\nnv-fieldnumber .input-wrapper .input-container .stepper nv-icon:first-child {\n padding: var(--form-field-inner-button-padding-y) var(--form-field-inner-button-padding-x-int) var(--form-field-inner-button-padding-y) var(--form-field-inner-button-padding-x-ext);\n}\nnv-fieldnumber .input-wrapper .input-container .stepper nv-icon:last-child {\n padding: var(--form-field-inner-button-padding-y) var(--form-field-inner-button-padding-x-ext) var(--form-field-inner-button-padding-y) var(--form-field-inner-button-padding-x-int);\n}\nnv-fieldnumber .input-wrapper .input-container .stepper nv-icon:hover {\n background: var(--color-interaction-neutral-background-hover);\n}\nnv-fieldnumber .input-wrapper .input-container .stepper-spacer {\n width: calc(2 * (var(--form-field-icon-size) + var(--form-field-inner-button-padding-x-ext) + var(--form-field-inner-button-padding-x-int)) + var(--form-field-padding-x) + var(--notification-border-width-low-emphasis));\n}\n@container field-number-input-container (width < 150px) {\n nv-fieldnumber .input-wrapper .input-container .stepper-spacer {\n display: none;\n }\n nv-fieldnumber .input-wrapper .input-container .stepper {\n display: none;\n }\n}\nnv-fieldnumber .description {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n line-height: var(--form-description-line-height);\n}\nnv-fieldnumber .error-description {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n line-height: var(--form-description-line-height);\n color: var(--components-form-text-description-error);\n}";
|
|
5657
5197
|
var NvFieldnumberStyle0 = nvFieldnumberCss;
|
|
5658
5198
|
|
|
@@ -5732,9 +5272,9 @@ class NvFieldnumber {
|
|
|
5732
5272
|
/****************************************************************************/
|
|
5733
5273
|
//#region RENDER
|
|
5734
5274
|
render() {
|
|
5735
|
-
return (hAsync(Host, { key: '
|
|
5736
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5737
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5275
|
+
return (hAsync(Host, { key: 'a150acab0261cad03438abbce43dda76c2fd222f' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '69519f99052729a6a2b62b001694048342b6c0ae', htmlFor: this.inputId }, hAsync("slot", { key: '21427c7b39a7282f14fcbca437f7ca74d59f3cbe', name: "label" }, this.label))), hAsync("div", { key: '23cc57bdefec4c0d200afe9176407d9306cd296f', class: "input-wrapper" }, hAsync("slot", { key: 'd9c83c42093fff848a75d9e79940f19cb945c7ff', name: "before-input" }), hAsync("div", { key: '9edcc27d93280f193e2e7bf51efd63d815ffcf7e', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '8b844a90904874f63965d91a33c2a78b32b4fa96', name: "leading-input" }), hAsync("input", { key: '19520af4e0bea22a5092201270051a97faed62a1', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: '5f5ad3a9e4a6dc88710a6f0714bb3cf7c54bfb27', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '2c81457c414bc282ad602156ee1e17bdc02a87fe', name: "circle-check", class: "validation", size: "md" })), hAsync("div", { key: '56408d1860ffb8f59971b15a5c4155d6f8da027f', class: "stepper-spacer" }), hAsync("div", { key: '237b6d01a886bd2648d8c00d19ef32cce7a8bbd5', class: "stepper" }, hAsync("nv-icon", { key: '7ea54e299fbbbaee4eaaa955057c52f6be47fce3', name: "minus", size: "md", onClick: this.handleMinus, class: clsx({ disabled: this.isMinValueReached() }) }), hAsync("nv-icon", { key: 'fbfd4a9cd3d78bfbeefa99b2a74f0710fb72a60d', name: "plus", size: "md", onClick: this.handlePlus, class: clsx({ disabled: this.isMaxValueReached() }) }))), hAsync("slot", { key: '5d43fe5dabf1eecb3c00ce809e2e4802326f4599', name: "after-input" })), (this.description ||
|
|
5276
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'a76876356c76c22a3189fd4bfb5c50dd80329a67', class: "description" }, hAsync("slot", { key: '91877b6ce1ea6b9c8e1f67e13a733cfa70cd635a', name: "description" }, this.description))), (this.errorDescription ||
|
|
5277
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '2449f25e9fac52a815ece32de6d488044ce78969', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '276537a3e19c182de08c4a48c4f5b4a9bbbdda09', name: "error-description" }, this.errorDescription)))));
|
|
5738
5278
|
}
|
|
5739
5279
|
static get formAssociated() { return true; }
|
|
5740
5280
|
get el() { return getElement(this); }
|
|
@@ -5835,9 +5375,9 @@ class NvFieldpassword {
|
|
|
5835
5375
|
/****************************************************************************/
|
|
5836
5376
|
//#region RENDER
|
|
5837
5377
|
render() {
|
|
5838
|
-
return (hAsync(Host, { key: '
|
|
5839
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5840
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5378
|
+
return (hAsync(Host, { key: '12607b189f41947cc3083d2feb88bd47d2c24327' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '1f4055bc907a3c184c435e1c5d522bb8693d3177', htmlFor: this.inputId }, hAsync("slot", { key: '048db2f8c164b645b4087990731c0f78c14949b3', name: "label" }, this.label))), hAsync("div", { key: 'c519d50463b405c0c887b96b9c2e15276dfcc179', class: "input-wrapper" }, hAsync("slot", { key: 'e2a203745d188c4cf8ec2d68cdc795dafe260c89', name: "before-input" }), hAsync("div", { key: 'c19efd9bfdd1a685d4a77fc8caa43d0a5bc9f0d0', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '18554d4beb2fe523880e14738bbdfb0cf6d90fe2', name: "leading-input" }), hAsync("input", { key: 'b52c85804a3cb9d9705412bbb70aa0d37b4cd000', id: this.inputId, ref: e => (this.inputElement = e), autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), !this.hidePasswordIcon && (hAsync("nv-iconbutton", { key: '8b90cd19d7fcd2b10dcd8bff8862e09b4590f64b', class: "toggle-password-icon", name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, onKeyDown: this.handleKeyDown, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() })), (this.success || this.error) && (hAsync("nv-icon", { key: '7de3d6d824a5e1d8b456a5cdaf44edc0f284a1f1', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" }))), hAsync("slot", { key: 'ef0034098648349218e1de6850c55ee7bac830d3', name: "after-input" })), (this.description ||
|
|
5379
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '00df78e3991f968880006eaca78f957e5e81e932', class: "description" }, hAsync("slot", { key: '4614e4cbdd49380194e337c4fe381cf426dd9be3', name: "description" }, this.description))), (this.errorDescription ||
|
|
5380
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'ef7fa856c04d4dc4751067184a3fd94c18ed5b0f', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '96c24255cf95f9172a1c41f2579106157f2c1b8a', name: "error-description" }, this.errorDescription)))));
|
|
5841
5381
|
}
|
|
5842
5382
|
static get formAssociated() { return true; }
|
|
5843
5383
|
get el() { return getElement(this); }
|
|
@@ -5939,9 +5479,9 @@ class NvFieldradio {
|
|
|
5939
5479
|
/****************************************************************************/
|
|
5940
5480
|
//#region RENDER
|
|
5941
5481
|
render() {
|
|
5942
|
-
return (hAsync(Host, { key: '
|
|
5943
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5944
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5482
|
+
return (hAsync(Host, { key: '923184aa248f433413ecdc49e4da07a60b408047', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("input", { key: '37c0948ac9a100352908a60dd2ad94e1f7fb2bab', type: "radio", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), hAsync("div", { key: 'cb217f7f999396b1b477eb25e5e1db77e941f76a', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '84859686efb45332b5dade8f2cb3147643782588', htmlFor: this.inputId }, hAsync("slot", { key: 'f456892bd1bad003efdd128051989952b1719ca1', name: "label" }, this.label))), (this.description ||
|
|
5483
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f518939cc9f5f2a1bd9ceccbe284484d51ac44fa', class: "description" }, hAsync("slot", { key: 'f6b1c15c9be9d9c87311b7a658358edf1dbd9c8e', name: "description" }, this.description))), (this.errorDescription ||
|
|
5484
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '3f862fccc7e1a85c076e70babca97a74680a462b', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '3d42e75ba035117f90e5c2f924781617a297173a', name: "error-description" }, this.errorDescription))))));
|
|
5945
5485
|
}
|
|
5946
5486
|
static get formAssociated() { return true; }
|
|
5947
5487
|
get el() { return getElement(this); }
|
|
@@ -6243,13 +5783,13 @@ class NvFieldselect {
|
|
|
6243
5783
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
6244
5784
|
*/
|
|
6245
5785
|
render() {
|
|
6246
|
-
return (hAsync(Host, { key: '
|
|
5786
|
+
return (hAsync(Host, { key: 'b610d79592893cf82b0ef164f833cc033f43416d' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'a8232954b2230c8b44d2aadba0aba5cfd71813b5', htmlFor: this.selectId }, hAsync("slot", { key: '457157a4cc3dece0363f13ec6c7d3357505e69f8', name: "label" }, this.label))), hAsync("div", { key: '39b1f61586fb2e5784dba297f5f1080d5f9ab560', class: "select-wrapper" }, hAsync("slot", { key: '9ba008fe7250f95e0158e7b0cb530ae565d6bc7f', name: "before-input" }), hAsync("div", { key: 'e2b0b254fc64d5c33cd0252469fbf9024b6735b2', class: "select-container", onClick: this.handleSelectContainerClick }, hAsync("slot", { key: '9b8158bb110cecc1bd8dd37082b813a1231d7392', name: "leading-input" }), this.internalReadonly && (hAsync("input", { key: '65163fd120b753358bf45aa731be03e1291473c2', id: this.selectId + '-readonly', type: "text", value: this.computedDisplayValue, readOnly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
|
|
6247
5787
|
? `${this.selectId}-error`
|
|
6248
|
-
: `${this.selectId}-description` })), hAsync("select", { key: '
|
|
5788
|
+
: `${this.selectId}-description` })), hAsync("select", { key: '5f38318e3c073e9514c9bd3d429455fc7657b783', id: this.selectId, ref: el => (this.selectElement = el), name: this.name, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
|
|
6249
5789
|
? `${this.selectId}-error`
|
|
6250
|
-
: `${this.selectId}-description` }, hAsync("slot", { key: '
|
|
6251
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6252
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5790
|
+
: `${this.selectId}-description` }, hAsync("slot", { key: 'c8f9b54cd6d88603070e34748b8115ae8ccfd522' })), this.internalReadonly && (hAsync("nv-icon", { key: 'bc0151f125212a1044768a3110982cef8da0b26e', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (hAsync("nv-icon", { key: 'e0883e47712cfc57746ca4167df0924ad1501e57', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: '085c0833541a4ff6e6fbbf3350e4fc4ae570e0ec', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: '436a1faa2b2d6d651f32556f1d69c6e6b9bdb318', name: "after-input" })), (this.description ||
|
|
5791
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c734be03a4741a2dd03406997874cf6044954214', class: "description", id: `${this.selectId}-description` }, hAsync("slot", { key: 'dd91d274fd97401a0dbf9b5f68fe23670b2ccf02', name: "description" }, this.description))), (this.errorDescription ||
|
|
5792
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '45998c6f7ecf2ee9a63c566e1f8826d1e321779c', class: "error-description", id: `${this.selectId}-error` }, hAsync("slot", { key: '807d57d77f557d4f0d920df6ec914c2c559e4431', name: "error-description" }, this.errorDescription)))));
|
|
6253
5793
|
}
|
|
6254
5794
|
static get formAssociated() { return true; }
|
|
6255
5795
|
get el() { return getElement(this); }
|
|
@@ -6359,9 +5899,9 @@ class NvFieldtext {
|
|
|
6359
5899
|
/****************************************************************************/
|
|
6360
5900
|
//#region RENDER
|
|
6361
5901
|
render() {
|
|
6362
|
-
return (hAsync(Host, { key: '
|
|
6363
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6364
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5902
|
+
return (hAsync(Host, { key: '76d1f79b55fe4ec4b09b901537900bcbe1b40f1b' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'cdc3fd4a8f7506bee14be3a3a7c22d86858f96d0', htmlFor: this.inputId }, hAsync("slot", { key: '5b4cf92566b0f4da29dbf84cc7b3128e9229228c', name: "label" }, this.label))), hAsync("div", { key: '3d812356dc59127180bc0dcb1bec604c8fd1f281', class: "input-wrapper" }, hAsync("slot", { key: 'ec9ab2b19178a3008f4582997126e1516c75e80d', name: "before-input" }), hAsync("div", { key: '5b7c78c064e5282ddba000ccc57d90e005c16f50', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'c4a420fc3233fdca8db34ebc430764f30c79e488', name: "leading-input" }), hAsync("input", { key: 'e2e09e3643316bda2e0e718455e050b983b73486', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), this.error && (hAsync("nv-icon", { key: '79ed73de7a55f5c501e175805014512d11fc42b4', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: 'ebd69fb668f3fe391d77faf89a8c2766c88dac34', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: 'c6028274d27b0bce8c1cc314d173934f4c7b1cde', name: "after-input" })), (this.description ||
|
|
5903
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'd0b510a930a7d3bbbd93320b7023bad73eaf507d', class: "description" }, hAsync("slot", { key: 'ae671effb670898267e390cec5e0781190320cd3', name: "description" }, this.description))), (this.errorDescription ||
|
|
5904
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '1d0b68e0ea4ac79077b730f4ac37bf66d9923fb1', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '8e9c3464a32461fe493bc262fe240828aa247e5c', name: "error-description" }, this.errorDescription)))));
|
|
6365
5905
|
}
|
|
6366
5906
|
static get formAssociated() { return true; }
|
|
6367
5907
|
get el() { return getElement(this); }
|
|
@@ -6530,9 +6070,9 @@ class NvFieldtextarea {
|
|
|
6530
6070
|
/****************************************************************************/
|
|
6531
6071
|
//#region RENDER
|
|
6532
6072
|
render() {
|
|
6533
|
-
return (hAsync(Host, { key: '
|
|
6534
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6535
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
6073
|
+
return (hAsync(Host, { key: '05e5be100e389a0d604ef6c6a126a3992c4400d8' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'f0e8d865770ad7249748d76eafc520733a73df61', htmlFor: this.textareaId }, hAsync("slot", { key: '88dc412644dd9ba26c1c4fd6495257071ea9355f', name: "label" }, this.label))), hAsync("div", { key: 'ed27e42a150bacb526fad21c33167e5daa88fbdb', class: "textarea-wrapper" }, hAsync("div", { key: '12afa52b296240e0b8cb7ee3dd68100619a0aaef', class: "textarea-container", onClick: this.handleTextareaContainerClick }, hAsync("textarea", { key: '9269535072a3df3aff0f4d6093618ef3d0b9aed3', id: this.textareaId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.getResize()) }))), (this.description ||
|
|
6074
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f4cbe287f58bcffa17f9175b5507ffd260652805', class: "description" }, hAsync("slot", { key: 'b3df2bfd379089e489173b0c961ce9bc04080892', name: "description" }, this.description))), (this.errorDescription ||
|
|
6075
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'cb194709b15cbe0e4f243161bb34f5e487b2e073', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'de80cb7d6b1ad8e9f33bd17a407604df66b8eda1', name: "error-description" }, this.errorDescription)))));
|
|
6536
6076
|
}
|
|
6537
6077
|
static get formAssociated() { return true; }
|
|
6538
6078
|
get el() { return getElement(this); }
|
|
@@ -6618,8 +6158,8 @@ class NvFieldtoggle {
|
|
|
6618
6158
|
}
|
|
6619
6159
|
/********************************* RENDER ***********************************/
|
|
6620
6160
|
render() {
|
|
6621
|
-
return (hAsync(Host, { key: '
|
|
6622
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6161
|
+
return (hAsync(Host, { key: '32394c2068002d65652918e998a837ed413db2e8', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, hAsync("div", { key: 'd2a037dbf554e6885853e10d1c5097e2900f7594', class: "input-container" }, hAsync("input", { key: 'c9f150ee7742ed49066f2af75e9aa2fbe03750ba', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), hAsync("div", { key: '6b6d95647dcd2eb850c6e78420581d7205707e62', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '00393d9a26ea57a6ecacc0a248d450d5ef8f543c', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: '8e2f5085aea5337d59e753ecd856a3fc6e057269', name: "label" }, this.label))), (this.description ||
|
|
6162
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c44a88b35cab4b2c034a2f29a9bf0ec168b86a50', class: "description" }, hAsync("slot", { key: '5d80f64e1ac6d61025aa54b77f5e7b0860e6cc11', name: "description" }, this.description))))));
|
|
6623
6163
|
}
|
|
6624
6164
|
get el() { return getElement(this); }
|
|
6625
6165
|
static get watchers() { return {
|
|
@@ -6697,7 +6237,7 @@ class NvIcon {
|
|
|
6697
6237
|
//#region RENDER
|
|
6698
6238
|
render() {
|
|
6699
6239
|
//const iconSprite = getAssetPath('assets/icon-sprite.svg');
|
|
6700
|
-
return (hAsync(Host, { key: '
|
|
6240
|
+
return (hAsync(Host, { key: '83ef29b29944ef1a761334ef5738f1073122f5d1', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, hAsync("svg", { key: '63684e8f1e5fc0a102457f5c73d30e4fcc66eb7e', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, hAsync("use", { key: '6c80c9543535b02710b3892e7ca6c94fe24c2186', href: `${this.spriteUrl}#${this.name}` }))));
|
|
6701
6241
|
}
|
|
6702
6242
|
static get style() { return NvIconStyle0; }
|
|
6703
6243
|
static get cmpMeta() { return {
|
|
@@ -6794,7 +6334,7 @@ class NvIconbutton {
|
|
|
6794
6334
|
/****************************************************************************/
|
|
6795
6335
|
//#region RENDER
|
|
6796
6336
|
render() {
|
|
6797
|
-
return (hAsync(Host, { key: '
|
|
6337
|
+
return (hAsync(Host, { key: '3ca84b14312db9e4fff85fac71fbb0cc7ae7db44', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && hAsync("nv-loader", { key: 'bfb6c6ee4dbfa56595b704f436120c3ae18f4fc4', size: this.size }), !this.loading && hAsync("nv-icon", { key: '7e87da2f6d233289bbce12416bf0d39b647f43f3', name: this.name, size: this.size }), hAsync("slot", { key: '43972e79cf4efb921cbc9714110b13590144a268' })));
|
|
6798
6338
|
}
|
|
6799
6339
|
static get formAssociated() { return true; }
|
|
6800
6340
|
get el() { return getElement(this); }
|
|
@@ -6836,7 +6376,7 @@ class NvLoader {
|
|
|
6836
6376
|
//#region RENDER
|
|
6837
6377
|
/* <slot> empty to force rendering change */
|
|
6838
6378
|
render() {
|
|
6839
|
-
return (hAsync(Host, { key: '
|
|
6379
|
+
return (hAsync(Host, { key: 'b4c0dab3c3ea4e2bdd434d779d4b736577bd467e', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
6840
6380
|
}
|
|
6841
6381
|
static get style() { return NvLoaderStyle0; }
|
|
6842
6382
|
static get cmpMeta() { return {
|
|
@@ -7030,7 +6570,7 @@ class NvMenu {
|
|
|
7030
6570
|
/****************************************************************************/
|
|
7031
6571
|
//#region RENDER
|
|
7032
6572
|
render() {
|
|
7033
|
-
return (hAsync(Host, { key: '
|
|
6573
|
+
return (hAsync(Host, { key: '5a3a0645d952724b5c2ddd1f2578201568bf827b' }, hAsync("slot", { key: '65506a9b7035ef645daa87079339ad7e7cd76377', name: "trigger" }), hAsync("nv-popover", { key: 'f5998e3d878671d09ea684de2a54bca504513f48', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, hAsync("slot", { key: '267e0e587177bdb8b6ce9b10f36c43158547d5b2', name: "content" }))));
|
|
7034
6574
|
}
|
|
7035
6575
|
get el() { return getElement(this); }
|
|
7036
6576
|
static get style() { return NvMenuStyle0; }
|
|
@@ -9418,7 +8958,7 @@ class NvPopover {
|
|
|
9418
8958
|
/****************************************************************************/
|
|
9419
8959
|
//#region RENDER
|
|
9420
8960
|
render() {
|
|
9421
|
-
return (hAsync(Host, { key: '
|
|
8961
|
+
return (hAsync(Host, { key: '8d32b4cb618de8d8c88e813b5cb446eb4e667f27' }, hAsync("slot", { key: 'bb4688a7ed334a32c1033c340d765e5abc8aef4a', name: "trigger" }), hAsync("div", { key: '2e3847dd205be87742f3794f806ed1d903d88f14', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (hAsync("div", { key: '8259476267d3c14043c649b95d875452909e1e08', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), hAsync("slot", { key: 'e6d68d89876b7353c0abd349b7c3bc1bfe790a76', name: "content" }))));
|
|
9422
8962
|
}
|
|
9423
8963
|
get el() { return getElement(this); }
|
|
9424
8964
|
static get watchers() { return {
|
|
@@ -9463,7 +9003,7 @@ class NvRow {
|
|
|
9463
9003
|
/****************************************************************************/
|
|
9464
9004
|
//#region RENDER
|
|
9465
9005
|
render() {
|
|
9466
|
-
return (hAsync(Host, { key: '
|
|
9006
|
+
return (hAsync(Host, { key: 'b6a2c143bf767ab622d0305574be11c71a770421' }, hAsync("slot", { key: '8665290a25fdb12165d52436fc64d1a11ff93814' })));
|
|
9467
9007
|
}
|
|
9468
9008
|
static get style() { return NvRowStyle0; }
|
|
9469
9009
|
static get cmpMeta() { return {
|
|
@@ -9496,7 +9036,7 @@ class NvStack {
|
|
|
9496
9036
|
/****************************************************************************/
|
|
9497
9037
|
//#region RENDER
|
|
9498
9038
|
render() {
|
|
9499
|
-
return (hAsync(Host, { key: '
|
|
9039
|
+
return (hAsync(Host, { key: '4c8889bb870137f5c3aa8fc499c26fc77bc6fba1', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gutter-x-${this.gutter}`, this.gutter && this.vertical && `gutter-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, hAsync("slot", { key: 'dbd5b334a0e6ee5aa3bbc0431d44d81933f1c05c' })));
|
|
9500
9040
|
}
|
|
9501
9041
|
static get style() { return NvStackStyle0; }
|
|
9502
9042
|
static get cmpMeta() { return {
|
|
@@ -9541,7 +9081,7 @@ class NvTooltip {
|
|
|
9541
9081
|
/****************************************************************************/
|
|
9542
9082
|
//#region RENDER
|
|
9543
9083
|
render() {
|
|
9544
|
-
return (hAsync(Host, { key: '
|
|
9084
|
+
return (hAsync(Host, { key: '7fbaa673028556f15b8c15a863f066d79b7b844e' }, hAsync("slot", { key: 'b9007b3c3326ed7bb3bea05c2b2ad90d49b25a45' }), hAsync("nv-popover", { key: '9a72b61bf4af4a769ba5ad991925bc982a440f93', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, hAsync("p", { key: 'aa7d584e0db97792915f5460a7760ad16f45c5ba', slot: "content" }, this.message), hAsync("slot", { key: 'fc32501ada94b526adf6e9fcb71ec355f72a163d', name: "content" }))));
|
|
9545
9085
|
}
|
|
9546
9086
|
get el() { return getElement(this); }
|
|
9547
9087
|
static get style() { return NvTooltipStyle0; }
|
|
@@ -9567,8 +9107,6 @@ registerComponents([
|
|
|
9567
9107
|
NvButton,
|
|
9568
9108
|
NvCol,
|
|
9569
9109
|
NvFieldcheckbox,
|
|
9570
|
-
NvFielddropdownitemcheck,
|
|
9571
|
-
NvFieldmultiselect,
|
|
9572
9110
|
NvFieldnumber,
|
|
9573
9111
|
NvFieldpassword,
|
|
9574
9112
|
NvFieldradio,
|