@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.mjs
CHANGED
|
@@ -124,7 +124,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
const NAMESPACE = 'native';
|
|
127
|
-
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:
|
|
127
|
+
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 };
|
|
128
128
|
|
|
129
129
|
// Prevents the dev components from being bundled in production as a component
|
|
130
130
|
if (Build.isDev) {
|
|
@@ -1592,7 +1592,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1592
1592
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
1593
1593
|
}
|
|
1594
1594
|
endNewInstance();
|
|
1595
|
-
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1596
1595
|
} else {
|
|
1597
1596
|
Cstr = elm.constructor;
|
|
1598
1597
|
const cmpTag = elm.localName;
|
|
@@ -1620,9 +1619,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1620
1619
|
}
|
|
1621
1620
|
};
|
|
1622
1621
|
var fireConnectedCallback = (instance) => {
|
|
1623
|
-
{
|
|
1624
|
-
safeCall(instance, "connectedCallback");
|
|
1625
|
-
}
|
|
1626
1622
|
};
|
|
1627
1623
|
|
|
1628
1624
|
// src/runtime/connected-callback.ts
|
|
@@ -1659,10 +1655,8 @@ var connectedCallback = (elm) => {
|
|
|
1659
1655
|
}
|
|
1660
1656
|
} else {
|
|
1661
1657
|
addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
|
|
1662
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1663
|
-
|
|
1664
|
-
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1665
|
-
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1658
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1659
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1666
1660
|
}
|
|
1667
1661
|
}
|
|
1668
1662
|
endConnected();
|
|
@@ -5195,460 +5189,6 @@ class NvFieldcheckbox {
|
|
|
5195
5189
|
}; }
|
|
5196
5190
|
}
|
|
5197
5191
|
|
|
5198
|
-
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}";
|
|
5199
|
-
var NvFielddropdownitemcheckStyle0 = nvFielddropdownitemcheckCss;
|
|
5200
|
-
|
|
5201
|
-
class NvFielddropdownitemcheck {
|
|
5202
|
-
constructor(hostRef) {
|
|
5203
|
-
registerInstance(this, hostRef);
|
|
5204
|
-
this.itemChecked = createEvent(this, "itemChecked", 7);
|
|
5205
|
-
this.handleCheckboxToggle = () => {
|
|
5206
|
-
if (this.disabled)
|
|
5207
|
-
return; // Ignore interactions si désactivé
|
|
5208
|
-
this.checked = !this.checked;
|
|
5209
|
-
this.itemChecked.emit({
|
|
5210
|
-
value: this.value,
|
|
5211
|
-
checked: this.checked,
|
|
5212
|
-
group: this.group,
|
|
5213
|
-
});
|
|
5214
|
-
console.log('itemChecked emitted:', {
|
|
5215
|
-
value: this.value,
|
|
5216
|
-
checked: this.checked,
|
|
5217
|
-
group: this.group,
|
|
5218
|
-
});
|
|
5219
|
-
};
|
|
5220
|
-
this.checked = false;
|
|
5221
|
-
this.value = undefined;
|
|
5222
|
-
this.label = undefined;
|
|
5223
|
-
this.description = undefined;
|
|
5224
|
-
this.group = undefined;
|
|
5225
|
-
this.disabled = false;
|
|
5226
|
-
}
|
|
5227
|
-
//#endregion EVENTS
|
|
5228
|
-
/****************************************************************************/
|
|
5229
|
-
//#region RENDER
|
|
5230
|
-
render() {
|
|
5231
|
-
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" }))));
|
|
5232
|
-
}
|
|
5233
|
-
get el() { return getElement(this); }
|
|
5234
|
-
static get style() { return NvFielddropdownitemcheckStyle0; }
|
|
5235
|
-
static get cmpMeta() { return {
|
|
5236
|
-
"$flags$": 0,
|
|
5237
|
-
"$tagName$": "nv-fielddropdownitemcheck",
|
|
5238
|
-
"$members$": {
|
|
5239
|
-
"checked": [1540],
|
|
5240
|
-
"value": [513],
|
|
5241
|
-
"label": [513],
|
|
5242
|
-
"description": [513],
|
|
5243
|
-
"group": [513],
|
|
5244
|
-
"disabled": [516]
|
|
5245
|
-
},
|
|
5246
|
-
"$listeners$": undefined,
|
|
5247
|
-
"$lazyBundleId$": "-",
|
|
5248
|
-
"$attrsToReflect$": [["checked", "checked"], ["value", "value"], ["label", "label"], ["description", "description"], ["group", "group"], ["disabled", "disabled"]]
|
|
5249
|
-
}; }
|
|
5250
|
-
}
|
|
5251
|
-
|
|
5252
|
-
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)}";
|
|
5253
|
-
var NvFieldmultiselectStyle0 = nvFieldmultiselectCss;
|
|
5254
|
-
|
|
5255
|
-
// import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitemcheck/DropdownItemSelectedEventDetail';
|
|
5256
|
-
/**
|
|
5257
|
-
* @slot content - The content of the list.
|
|
5258
|
-
* @slot leading-input - Content to be placed before the input text, within the input container.
|
|
5259
|
-
* @slot before-input - Content to be placed before the input text, outside the input container.
|
|
5260
|
-
* @slot after-input - Content to be placed after the input text, outside the input container.
|
|
5261
|
-
* @slot label - Content to be placed as the label, will override the label prop.
|
|
5262
|
-
* @slot description - Content to be placed as the description, will override the description prop.
|
|
5263
|
-
* @slot error-description - Content to be placed as the error description, will override the errorDescription prop.
|
|
5264
|
-
*/
|
|
5265
|
-
class NvFieldmultiselect {
|
|
5266
|
-
constructor(hostRef) {
|
|
5267
|
-
registerInstance(this, hostRef);
|
|
5268
|
-
this.valueChanged = createEvent(this, "valueChanged", 7);
|
|
5269
|
-
this.multiselectChange = createEvent(this, "multiselectChange", 7);
|
|
5270
|
-
/**
|
|
5271
|
-
* Handle click on the input container.
|
|
5272
|
-
* @param {MouseEvent} event - The click event.
|
|
5273
|
-
*/
|
|
5274
|
-
this.handleInputContainerClick = (event) => {
|
|
5275
|
-
if (this.disabled || this.readonly) {
|
|
5276
|
-
return; // Do nothing if the dropdown is disabled or read-only
|
|
5277
|
-
}
|
|
5278
|
-
const target = event.target;
|
|
5279
|
-
// Check if it is the paragraph or another part of the container
|
|
5280
|
-
if (target.tagName === 'P' || target.tagName === 'SPAN') {
|
|
5281
|
-
this.open = true;
|
|
5282
|
-
this.popoverElement.show();
|
|
5283
|
-
// Simulate focus to trigger "focus-within" style
|
|
5284
|
-
const inputContainer = this.el.querySelector('.input-container');
|
|
5285
|
-
if (inputContainer) {
|
|
5286
|
-
inputContainer.classList.add('focus-within');
|
|
5287
|
-
// Remove the "focus-within" class after a delay or when the popover is closed
|
|
5288
|
-
const removeFocusWithin = () => {
|
|
5289
|
-
inputContainer.classList.remove('focus-within');
|
|
5290
|
-
};
|
|
5291
|
-
// Or remove the class when the popover is closed
|
|
5292
|
-
this.popoverElement.addEventListener('hide', removeFocusWithin);
|
|
5293
|
-
}
|
|
5294
|
-
}
|
|
5295
|
-
};
|
|
5296
|
-
/**
|
|
5297
|
-
* Handle input change.
|
|
5298
|
-
* @param {Event} event - The input event.
|
|
5299
|
-
*/
|
|
5300
|
-
this.handleInput = (event) => {
|
|
5301
|
-
if (!this.filterable)
|
|
5302
|
-
return; // Do not filter if `filterable` is false
|
|
5303
|
-
if (this.disabled || this.readonly) {
|
|
5304
|
-
return; // Do not toggle the state if the dropdown is disabled or read-only
|
|
5305
|
-
}
|
|
5306
|
-
const input = event.target;
|
|
5307
|
-
this.filterText = input.value.toLowerCase();
|
|
5308
|
-
this.value = input.value; // Update the value
|
|
5309
|
-
this.valueChanged.emit(input.value); // Emit an event if needed
|
|
5310
|
-
this.filterItems(); // Update the visibility of items
|
|
5311
|
-
};
|
|
5312
|
-
/**
|
|
5313
|
-
* Handle input focus.
|
|
5314
|
-
*/
|
|
5315
|
-
this.handleInputFocus = () => {
|
|
5316
|
-
if (this.disabled || this.readonly) {
|
|
5317
|
-
return; // Do not toggle the state if the dropdown is disabled or read-only
|
|
5318
|
-
}
|
|
5319
|
-
this.open = true; // Force the popover to open
|
|
5320
|
-
};
|
|
5321
|
-
/**
|
|
5322
|
-
* Handle input blur.
|
|
5323
|
-
*/
|
|
5324
|
-
this.handleInputBlur = () => {
|
|
5325
|
-
// Use a delay to check if the focus is still within the popover
|
|
5326
|
-
setTimeout(() => {
|
|
5327
|
-
if (!this.el.contains(document.activeElement)) {
|
|
5328
|
-
this.open = false;
|
|
5329
|
-
this.popoverElement.hide(); // Close the popover if the focus is outside the component
|
|
5330
|
-
}
|
|
5331
|
-
}, 150);
|
|
5332
|
-
};
|
|
5333
|
-
/**
|
|
5334
|
-
* Toggle the dropdown popover.
|
|
5335
|
-
* @returns {void}
|
|
5336
|
-
*/
|
|
5337
|
-
this.togglePopover = () => {
|
|
5338
|
-
if (this.disabled || this.readonly) {
|
|
5339
|
-
return; // Do not toggle if disabled or read-only
|
|
5340
|
-
}
|
|
5341
|
-
this.open = !this.open;
|
|
5342
|
-
if (this.open) {
|
|
5343
|
-
this.popoverElement.show();
|
|
5344
|
-
// Si le dropdown n'est pas filtrable, focus sur le premier élément
|
|
5345
|
-
if (!this.filterable) {
|
|
5346
|
-
this.focusFirstItem();
|
|
5347
|
-
}
|
|
5348
|
-
}
|
|
5349
|
-
else {
|
|
5350
|
-
this.popoverElement.hide();
|
|
5351
|
-
}
|
|
5352
|
-
};
|
|
5353
|
-
this.maxHeight = '200px';
|
|
5354
|
-
this.selectedValues = [];
|
|
5355
|
-
this.badgeLabel = 'selected';
|
|
5356
|
-
this.options = [];
|
|
5357
|
-
this.clearable = false;
|
|
5358
|
-
this.inputId = v4();
|
|
5359
|
-
this.label = undefined;
|
|
5360
|
-
this.description = undefined;
|
|
5361
|
-
this.placeholder = undefined;
|
|
5362
|
-
this.name = undefined;
|
|
5363
|
-
this.open = false;
|
|
5364
|
-
this.autocomplete = 'off';
|
|
5365
|
-
this.value = undefined;
|
|
5366
|
-
this.required = false;
|
|
5367
|
-
this.error = false;
|
|
5368
|
-
this.errorDescription = undefined;
|
|
5369
|
-
this.readonly = false;
|
|
5370
|
-
this.disabled = false;
|
|
5371
|
-
this.emptyresult = 'No results found';
|
|
5372
|
-
this.filterText = '';
|
|
5373
|
-
this.filterable = false;
|
|
5374
|
-
this.isFilterable = this.filterable;
|
|
5375
|
-
}
|
|
5376
|
-
handleOpenChanged(event) {
|
|
5377
|
-
this.open = event.detail; // Update `open` based on the popover state
|
|
5378
|
-
}
|
|
5379
|
-
watchFilterableHandler(newValue) {
|
|
5380
|
-
this.isFilterable = newValue;
|
|
5381
|
-
this.filterable = newValue;
|
|
5382
|
-
}
|
|
5383
|
-
watchValueHandler() {
|
|
5384
|
-
// Handle value change and update the corresponding dropdown item if it exists
|
|
5385
|
-
this.setInitialSelection();
|
|
5386
|
-
}
|
|
5387
|
-
/**
|
|
5388
|
-
* Listen for the `itemChecked` event emitted by child items.
|
|
5389
|
-
* Updates the selected values accordingly.
|
|
5390
|
-
* @param {CustomEvent<{ value: string; checked: boolean }>} event - The event object containing the selected value and its checked state.
|
|
5391
|
-
*/
|
|
5392
|
-
handleItemChecked(event) {
|
|
5393
|
-
if (this.disabled || this.readonly)
|
|
5394
|
-
return;
|
|
5395
|
-
const { value, checked } = event.detail;
|
|
5396
|
-
// Si une valeur est définie, met à jour `selectedValues`.
|
|
5397
|
-
if (value) {
|
|
5398
|
-
if (checked) {
|
|
5399
|
-
// Ajoute la valeur si elle est cochée
|
|
5400
|
-
this.selectedValues = [...this.selectedValues, value];
|
|
5401
|
-
}
|
|
5402
|
-
else {
|
|
5403
|
-
// Retire la valeur si elle est décochée
|
|
5404
|
-
this.selectedValues = this.selectedValues.filter(val => val !== value);
|
|
5405
|
-
}
|
|
5406
|
-
}
|
|
5407
|
-
// Émet l'événement `multiselectChange` avec la nouvelle liste des valeurs sélectionnées
|
|
5408
|
-
this.multiselectChange.emit(this.selectedValues);
|
|
5409
|
-
}
|
|
5410
|
-
//#endregion EVENTS
|
|
5411
|
-
/****************************************************************************/
|
|
5412
|
-
//#region METHODS
|
|
5413
|
-
/**
|
|
5414
|
-
* Subscribe to click outside event.
|
|
5415
|
-
*/
|
|
5416
|
-
connectedCallback() {
|
|
5417
|
-
document.addEventListener('click', this.handleClickOutside.bind(this));
|
|
5418
|
-
// Handle pre-selection during component initialization
|
|
5419
|
-
this.setInitialSelection();
|
|
5420
|
-
// Apply filtering if the dropdown is filterable and there is a value
|
|
5421
|
-
if (this.filterable && this.value) {
|
|
5422
|
-
this.filterText = this.value.toLowerCase();
|
|
5423
|
-
this.filterItems(); // Update the visibility of items
|
|
5424
|
-
}
|
|
5425
|
-
else {
|
|
5426
|
-
// Ensure all items are visible if no filtering is applied
|
|
5427
|
-
this.resetFilter();
|
|
5428
|
-
}
|
|
5429
|
-
}
|
|
5430
|
-
/**
|
|
5431
|
-
* Set the initial selection based on the current value and update the inputElement value.
|
|
5432
|
-
*/
|
|
5433
|
-
setInitialSelection() {
|
|
5434
|
-
var _a;
|
|
5435
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5436
|
-
const selectedItem = items.find(item => {
|
|
5437
|
-
var _a;
|
|
5438
|
-
return item.getAttribute('label') === this.value ||
|
|
5439
|
-
item.getAttribute('value') === this.value ||
|
|
5440
|
-
((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.trim()) === this.value;
|
|
5441
|
-
});
|
|
5442
|
-
// Remove 'selected' from all items first to reset the state
|
|
5443
|
-
items.forEach(item => {
|
|
5444
|
-
item.removeAttribute('selected');
|
|
5445
|
-
item.classList.remove('selected');
|
|
5446
|
-
});
|
|
5447
|
-
if (selectedItem) {
|
|
5448
|
-
// Add the `selected` attribute and `selected` class for visual styling
|
|
5449
|
-
selectedItem.setAttribute('selected', 'true');
|
|
5450
|
-
selectedItem.classList.add('selected');
|
|
5451
|
-
// Update the value and inputElement value to reflect the pre-selected item
|
|
5452
|
-
this.value =
|
|
5453
|
-
selectedItem.getAttribute('label') ||
|
|
5454
|
-
selectedItem.getAttribute('value') ||
|
|
5455
|
-
((_a = selectedItem.textContent) === null || _a === void 0 ? void 0 : _a.trim()) ||
|
|
5456
|
-
'';
|
|
5457
|
-
if (this.inputElement) {
|
|
5458
|
-
this.inputElement.value = this.value;
|
|
5459
|
-
}
|
|
5460
|
-
}
|
|
5461
|
-
}
|
|
5462
|
-
/**
|
|
5463
|
-
* Unsubscribe from click outside event.
|
|
5464
|
-
*/
|
|
5465
|
-
disconnectedCallback() {
|
|
5466
|
-
document.removeEventListener('click', this.handleClickOutside.bind(this));
|
|
5467
|
-
}
|
|
5468
|
-
/**
|
|
5469
|
-
* Filter dropdown items based on the text entered by the user.
|
|
5470
|
-
* If no items are found, display a message indicating no results.
|
|
5471
|
-
*/
|
|
5472
|
-
filterItems() {
|
|
5473
|
-
var _a;
|
|
5474
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5475
|
-
// Remove the "no results found" item if it exists
|
|
5476
|
-
const existingEmptyItem = this.el.querySelector('nv-fielddropdownitemcheck[data-empty]');
|
|
5477
|
-
if (existingEmptyItem) {
|
|
5478
|
-
existingEmptyItem.remove();
|
|
5479
|
-
}
|
|
5480
|
-
let hasVisibleItems = false;
|
|
5481
|
-
// Iterate over all items and adjust their visibility
|
|
5482
|
-
items.forEach(item => {
|
|
5483
|
-
var _a, _b;
|
|
5484
|
-
const textContent = ((_a = item.textContent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || ''; // Get the textual content of the slot
|
|
5485
|
-
const value = ((_b = item.value) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || ''; // Get the value of the `value` attribute
|
|
5486
|
-
// Check if the filtered text is present either in the value or in the textual content
|
|
5487
|
-
const shouldShow = value.includes(this.filterText) ||
|
|
5488
|
-
textContent.includes(this.filterText);
|
|
5489
|
-
item.style.display = shouldShow ? '' : 'none'; // Hide or show the item
|
|
5490
|
-
if (shouldShow) {
|
|
5491
|
-
hasVisibleItems = true;
|
|
5492
|
-
}
|
|
5493
|
-
});
|
|
5494
|
-
// If no items are visible, add the "no results found" item
|
|
5495
|
-
if (!hasVisibleItems) {
|
|
5496
|
-
const emptyItem = document.createElement('nv-fielddropdownitemcheck');
|
|
5497
|
-
emptyItem.setAttribute('data-empty', 'true');
|
|
5498
|
-
emptyItem.setAttribute('disabled', 'true');
|
|
5499
|
-
emptyItem.textContent = this.emptyresult;
|
|
5500
|
-
(_a = this.el.querySelector('ul[slot="content"]')) === null || _a === void 0 ? void 0 : _a.appendChild(emptyItem);
|
|
5501
|
-
}
|
|
5502
|
-
}
|
|
5503
|
-
/**
|
|
5504
|
-
* Reset the filter and make all items visible.
|
|
5505
|
-
*/
|
|
5506
|
-
resetFilter() {
|
|
5507
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5508
|
-
items.forEach(item => {
|
|
5509
|
-
item.style.display = '';
|
|
5510
|
-
});
|
|
5511
|
-
}
|
|
5512
|
-
/**
|
|
5513
|
-
* Retrieves the current filter text entered by the user.
|
|
5514
|
-
* @returns {string} The filter text.
|
|
5515
|
-
*/
|
|
5516
|
-
async getFilterText() {
|
|
5517
|
-
return this.filterText;
|
|
5518
|
-
}
|
|
5519
|
-
/**
|
|
5520
|
-
* Handle click outside the component.
|
|
5521
|
-
* @param {MouseEvent} event - The click event.
|
|
5522
|
-
*/
|
|
5523
|
-
handleClickOutside(event) {
|
|
5524
|
-
if (this.el.contains(event.target) ||
|
|
5525
|
-
(this.inputElement && this.inputElement.contains(event.target))) {
|
|
5526
|
-
// If the click is inside the component or on the input, do not close the popover
|
|
5527
|
-
return;
|
|
5528
|
-
}
|
|
5529
|
-
this.popoverElement.hide(); // Close the popover if the click is outside the component
|
|
5530
|
-
}
|
|
5531
|
-
handleKeyDown(event) {
|
|
5532
|
-
if (!this.open) {
|
|
5533
|
-
if (event.key === 'ArrowDown') {
|
|
5534
|
-
this.open = true;
|
|
5535
|
-
this.popoverElement.show();
|
|
5536
|
-
// Focus sur le premier élément si la liste n'est pas filtrable
|
|
5537
|
-
if (!this.filterable) {
|
|
5538
|
-
this.focusFirstItem();
|
|
5539
|
-
}
|
|
5540
|
-
event.preventDefault();
|
|
5541
|
-
return;
|
|
5542
|
-
}
|
|
5543
|
-
return;
|
|
5544
|
-
}
|
|
5545
|
-
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
5546
|
-
if (items.length === 0) {
|
|
5547
|
-
console.warn('No dropdown items found to navigate');
|
|
5548
|
-
return;
|
|
5549
|
-
}
|
|
5550
|
-
let currentIndex = items.findIndex(item => item.classList.contains('highlighted'));
|
|
5551
|
-
if (event.key === 'ArrowDown') {
|
|
5552
|
-
event.preventDefault();
|
|
5553
|
-
currentIndex = (currentIndex + 1) % items.length;
|
|
5554
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
5555
|
-
}
|
|
5556
|
-
else if (event.key === 'ArrowUp') {
|
|
5557
|
-
event.preventDefault();
|
|
5558
|
-
currentIndex = (currentIndex - 1 + items.length) % items.length;
|
|
5559
|
-
this.updateHighlightedItem(items, currentIndex);
|
|
5560
|
-
}
|
|
5561
|
-
else if (event.key === 'Enter' && currentIndex >= 0) {
|
|
5562
|
-
event.preventDefault();
|
|
5563
|
-
items[currentIndex].click();
|
|
5564
|
-
}
|
|
5565
|
-
else if (event.key === 'Escape') {
|
|
5566
|
-
event.preventDefault();
|
|
5567
|
-
this.open = false;
|
|
5568
|
-
this.popoverElement.hide();
|
|
5569
|
-
if (this.inputElement) {
|
|
5570
|
-
this.inputElement.blur();
|
|
5571
|
-
}
|
|
5572
|
-
}
|
|
5573
|
-
}
|
|
5574
|
-
updateHighlightedItem(items, index) {
|
|
5575
|
-
items.forEach((item, i) => {
|
|
5576
|
-
if (i === index) {
|
|
5577
|
-
item.classList.add('highlighted');
|
|
5578
|
-
item.setAttribute('tabindex', '0');
|
|
5579
|
-
item.focus();
|
|
5580
|
-
}
|
|
5581
|
-
else {
|
|
5582
|
-
item.classList.remove('highlighted');
|
|
5583
|
-
item.setAttribute('tabindex', '-1');
|
|
5584
|
-
}
|
|
5585
|
-
});
|
|
5586
|
-
}
|
|
5587
|
-
focusFirstItem() {
|
|
5588
|
-
const firstItem = this.el.querySelector('nv-fielddropdownitemcheck');
|
|
5589
|
-
if (firstItem) {
|
|
5590
|
-
firstItem.setAttribute('tabindex', '0');
|
|
5591
|
-
firstItem.classList.add('highlighted');
|
|
5592
|
-
firstItem.focus();
|
|
5593
|
-
}
|
|
5594
|
-
else {
|
|
5595
|
-
console.warn('No first item found to focus');
|
|
5596
|
-
}
|
|
5597
|
-
}
|
|
5598
|
-
//#endregion METHODS
|
|
5599
|
-
/****************************************************************************/
|
|
5600
|
-
//#region RENDER
|
|
5601
|
-
render() {
|
|
5602
|
-
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: {
|
|
5603
|
-
'dropdown-item': true,
|
|
5604
|
-
'is-selected': this.selectedValues.includes(option.value),
|
|
5605
|
-
}, "aria-selected": this.selectedValues
|
|
5606
|
-
.includes(option.value)
|
|
5607
|
-
.toString(), role: "option" }, hAsync("nv-fielddropdownitemcheck", { value: option.value, label: option.label, checked: this.selectedValues.includes(option.value) }))))))), (this.description ||
|
|
5608
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '66ce27f7c0ee316381c12664130518e84e080fd4', class: "description" }, hAsync("slot", { key: '9a7bd32d04f2b451fff8d6546273097c7bf8b0cc', name: "description" }, this.description))), (this.errorDescription ||
|
|
5609
|
-
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)))));
|
|
5610
|
-
}
|
|
5611
|
-
static get formAssociated() { return true; }
|
|
5612
|
-
get el() { return getElement(this); }
|
|
5613
|
-
static get watchers() { return {
|
|
5614
|
-
"filterable": ["watchFilterableHandler"],
|
|
5615
|
-
"value": ["watchValueHandler"]
|
|
5616
|
-
}; }
|
|
5617
|
-
static get style() { return NvFieldmultiselectStyle0; }
|
|
5618
|
-
static get cmpMeta() { return {
|
|
5619
|
-
"$flags$": 68,
|
|
5620
|
-
"$tagName$": "nv-fieldmultiselect",
|
|
5621
|
-
"$members$": {
|
|
5622
|
-
"maxHeight": [513, "max-height"],
|
|
5623
|
-
"badgeLabel": [513, "badge-label"],
|
|
5624
|
-
"options": [16],
|
|
5625
|
-
"clearable": [516],
|
|
5626
|
-
"inputId": [513, "input-id"],
|
|
5627
|
-
"label": [513],
|
|
5628
|
-
"description": [513],
|
|
5629
|
-
"placeholder": [513],
|
|
5630
|
-
"name": [513],
|
|
5631
|
-
"open": [1540],
|
|
5632
|
-
"autocomplete": [513],
|
|
5633
|
-
"value": [1537],
|
|
5634
|
-
"required": [516],
|
|
5635
|
-
"error": [516],
|
|
5636
|
-
"errorDescription": [513, "error-description"],
|
|
5637
|
-
"readonly": [516],
|
|
5638
|
-
"disabled": [516],
|
|
5639
|
-
"emptyresult": [513],
|
|
5640
|
-
"filterable": [1540],
|
|
5641
|
-
"selectedValues": [32],
|
|
5642
|
-
"filterText": [32],
|
|
5643
|
-
"isFilterable": [32],
|
|
5644
|
-
"getFilterText": [64]
|
|
5645
|
-
},
|
|
5646
|
-
"$listeners$": [[0, "openChanged", "handleOpenChanged"], [0, "itemChecked", "handleItemChecked"], [0, "keydown", "handleKeyDown"]],
|
|
5647
|
-
"$lazyBundleId$": "-",
|
|
5648
|
-
"$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"]]
|
|
5649
|
-
}; }
|
|
5650
|
-
}
|
|
5651
|
-
|
|
5652
5192
|
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}";
|
|
5653
5193
|
var NvFieldnumberStyle0 = nvFieldnumberCss;
|
|
5654
5194
|
|
|
@@ -5728,9 +5268,9 @@ class NvFieldnumber {
|
|
|
5728
5268
|
/****************************************************************************/
|
|
5729
5269
|
//#region RENDER
|
|
5730
5270
|
render() {
|
|
5731
|
-
return (hAsync(Host, { key: '
|
|
5732
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5733
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5271
|
+
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 ||
|
|
5272
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'a76876356c76c22a3189fd4bfb5c50dd80329a67', class: "description" }, hAsync("slot", { key: '91877b6ce1ea6b9c8e1f67e13a733cfa70cd635a', name: "description" }, this.description))), (this.errorDescription ||
|
|
5273
|
+
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)))));
|
|
5734
5274
|
}
|
|
5735
5275
|
static get formAssociated() { return true; }
|
|
5736
5276
|
get el() { return getElement(this); }
|
|
@@ -5831,9 +5371,9 @@ class NvFieldpassword {
|
|
|
5831
5371
|
/****************************************************************************/
|
|
5832
5372
|
//#region RENDER
|
|
5833
5373
|
render() {
|
|
5834
|
-
return (hAsync(Host, { key: '
|
|
5835
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5836
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5374
|
+
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 ||
|
|
5375
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '00df78e3991f968880006eaca78f957e5e81e932', class: "description" }, hAsync("slot", { key: '4614e4cbdd49380194e337c4fe381cf426dd9be3', name: "description" }, this.description))), (this.errorDescription ||
|
|
5376
|
+
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)))));
|
|
5837
5377
|
}
|
|
5838
5378
|
static get formAssociated() { return true; }
|
|
5839
5379
|
get el() { return getElement(this); }
|
|
@@ -5935,9 +5475,9 @@ class NvFieldradio {
|
|
|
5935
5475
|
/****************************************************************************/
|
|
5936
5476
|
//#region RENDER
|
|
5937
5477
|
render() {
|
|
5938
|
-
return (hAsync(Host, { key: '
|
|
5939
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
5940
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5478
|
+
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 ||
|
|
5479
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f518939cc9f5f2a1bd9ceccbe284484d51ac44fa', class: "description" }, hAsync("slot", { key: 'f6b1c15c9be9d9c87311b7a658358edf1dbd9c8e', name: "description" }, this.description))), (this.errorDescription ||
|
|
5480
|
+
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))))));
|
|
5941
5481
|
}
|
|
5942
5482
|
static get formAssociated() { return true; }
|
|
5943
5483
|
get el() { return getElement(this); }
|
|
@@ -6239,13 +5779,13 @@ class NvFieldselect {
|
|
|
6239
5779
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
6240
5780
|
*/
|
|
6241
5781
|
render() {
|
|
6242
|
-
return (hAsync(Host, { key: '
|
|
5782
|
+
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
|
|
6243
5783
|
? `${this.selectId}-error`
|
|
6244
|
-
: `${this.selectId}-description` })), hAsync("select", { key: '
|
|
5784
|
+
: `${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
|
|
6245
5785
|
? `${this.selectId}-error`
|
|
6246
|
-
: `${this.selectId}-description` }, hAsync("slot", { key: '
|
|
6247
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6248
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5786
|
+
: `${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 ||
|
|
5787
|
+
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 ||
|
|
5788
|
+
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)))));
|
|
6249
5789
|
}
|
|
6250
5790
|
static get formAssociated() { return true; }
|
|
6251
5791
|
get el() { return getElement(this); }
|
|
@@ -6355,9 +5895,9 @@ class NvFieldtext {
|
|
|
6355
5895
|
/****************************************************************************/
|
|
6356
5896
|
//#region RENDER
|
|
6357
5897
|
render() {
|
|
6358
|
-
return (hAsync(Host, { key: '
|
|
6359
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6360
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
5898
|
+
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 ||
|
|
5899
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'd0b510a930a7d3bbbd93320b7023bad73eaf507d', class: "description" }, hAsync("slot", { key: 'ae671effb670898267e390cec5e0781190320cd3', name: "description" }, this.description))), (this.errorDescription ||
|
|
5900
|
+
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)))));
|
|
6361
5901
|
}
|
|
6362
5902
|
static get formAssociated() { return true; }
|
|
6363
5903
|
get el() { return getElement(this); }
|
|
@@ -6526,9 +6066,9 @@ class NvFieldtextarea {
|
|
|
6526
6066
|
/****************************************************************************/
|
|
6527
6067
|
//#region RENDER
|
|
6528
6068
|
render() {
|
|
6529
|
-
return (hAsync(Host, { key: '
|
|
6530
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6531
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
6069
|
+
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 ||
|
|
6070
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f4cbe287f58bcffa17f9175b5507ffd260652805', class: "description" }, hAsync("slot", { key: 'b3df2bfd379089e489173b0c961ce9bc04080892', name: "description" }, this.description))), (this.errorDescription ||
|
|
6071
|
+
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)))));
|
|
6532
6072
|
}
|
|
6533
6073
|
static get formAssociated() { return true; }
|
|
6534
6074
|
get el() { return getElement(this); }
|
|
@@ -6614,8 +6154,8 @@ class NvFieldtoggle {
|
|
|
6614
6154
|
}
|
|
6615
6155
|
/********************************* RENDER ***********************************/
|
|
6616
6156
|
render() {
|
|
6617
|
-
return (hAsync(Host, { key: '
|
|
6618
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
6157
|
+
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 ||
|
|
6158
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c44a88b35cab4b2c034a2f29a9bf0ec168b86a50', class: "description" }, hAsync("slot", { key: '5d80f64e1ac6d61025aa54b77f5e7b0860e6cc11', name: "description" }, this.description))))));
|
|
6619
6159
|
}
|
|
6620
6160
|
get el() { return getElement(this); }
|
|
6621
6161
|
static get watchers() { return {
|
|
@@ -6693,7 +6233,7 @@ class NvIcon {
|
|
|
6693
6233
|
//#region RENDER
|
|
6694
6234
|
render() {
|
|
6695
6235
|
//const iconSprite = getAssetPath('assets/icon-sprite.svg');
|
|
6696
|
-
return (hAsync(Host, { key: '
|
|
6236
|
+
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}` }))));
|
|
6697
6237
|
}
|
|
6698
6238
|
static get style() { return NvIconStyle0; }
|
|
6699
6239
|
static get cmpMeta() { return {
|
|
@@ -6790,7 +6330,7 @@ class NvIconbutton {
|
|
|
6790
6330
|
/****************************************************************************/
|
|
6791
6331
|
//#region RENDER
|
|
6792
6332
|
render() {
|
|
6793
|
-
return (hAsync(Host, { key: '
|
|
6333
|
+
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' })));
|
|
6794
6334
|
}
|
|
6795
6335
|
static get formAssociated() { return true; }
|
|
6796
6336
|
get el() { return getElement(this); }
|
|
@@ -6832,7 +6372,7 @@ class NvLoader {
|
|
|
6832
6372
|
//#region RENDER
|
|
6833
6373
|
/* <slot> empty to force rendering change */
|
|
6834
6374
|
render() {
|
|
6835
|
-
return (hAsync(Host, { key: '
|
|
6375
|
+
return (hAsync(Host, { key: 'b4c0dab3c3ea4e2bdd434d779d4b736577bd467e', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
6836
6376
|
}
|
|
6837
6377
|
static get style() { return NvLoaderStyle0; }
|
|
6838
6378
|
static get cmpMeta() { return {
|
|
@@ -7026,7 +6566,7 @@ class NvMenu {
|
|
|
7026
6566
|
/****************************************************************************/
|
|
7027
6567
|
//#region RENDER
|
|
7028
6568
|
render() {
|
|
7029
|
-
return (hAsync(Host, { key: '
|
|
6569
|
+
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" }))));
|
|
7030
6570
|
}
|
|
7031
6571
|
get el() { return getElement(this); }
|
|
7032
6572
|
static get style() { return NvMenuStyle0; }
|
|
@@ -9414,7 +8954,7 @@ class NvPopover {
|
|
|
9414
8954
|
/****************************************************************************/
|
|
9415
8955
|
//#region RENDER
|
|
9416
8956
|
render() {
|
|
9417
|
-
return (hAsync(Host, { key: '
|
|
8957
|
+
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" }))));
|
|
9418
8958
|
}
|
|
9419
8959
|
get el() { return getElement(this); }
|
|
9420
8960
|
static get watchers() { return {
|
|
@@ -9459,7 +8999,7 @@ class NvRow {
|
|
|
9459
8999
|
/****************************************************************************/
|
|
9460
9000
|
//#region RENDER
|
|
9461
9001
|
render() {
|
|
9462
|
-
return (hAsync(Host, { key: '
|
|
9002
|
+
return (hAsync(Host, { key: 'b6a2c143bf767ab622d0305574be11c71a770421' }, hAsync("slot", { key: '8665290a25fdb12165d52436fc64d1a11ff93814' })));
|
|
9463
9003
|
}
|
|
9464
9004
|
static get style() { return NvRowStyle0; }
|
|
9465
9005
|
static get cmpMeta() { return {
|
|
@@ -9492,7 +9032,7 @@ class NvStack {
|
|
|
9492
9032
|
/****************************************************************************/
|
|
9493
9033
|
//#region RENDER
|
|
9494
9034
|
render() {
|
|
9495
|
-
return (hAsync(Host, { key: '
|
|
9035
|
+
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' })));
|
|
9496
9036
|
}
|
|
9497
9037
|
static get style() { return NvStackStyle0; }
|
|
9498
9038
|
static get cmpMeta() { return {
|
|
@@ -9537,7 +9077,7 @@ class NvTooltip {
|
|
|
9537
9077
|
/****************************************************************************/
|
|
9538
9078
|
//#region RENDER
|
|
9539
9079
|
render() {
|
|
9540
|
-
return (hAsync(Host, { key: '
|
|
9080
|
+
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" }))));
|
|
9541
9081
|
}
|
|
9542
9082
|
get el() { return getElement(this); }
|
|
9543
9083
|
static get style() { return NvTooltipStyle0; }
|
|
@@ -9563,8 +9103,6 @@ registerComponents([
|
|
|
9563
9103
|
NvButton,
|
|
9564
9104
|
NvCol,
|
|
9565
9105
|
NvFieldcheckbox,
|
|
9566
|
-
NvFielddropdownitemcheck,
|
|
9567
|
-
NvFieldmultiselect,
|
|
9568
9106
|
NvFieldnumber,
|
|
9569
9107
|
NvFieldpassword,
|
|
9570
9108
|
NvFieldradio,
|