@nova-design-system/nova-webcomponents 3.0.0-beta.17 → 3.0.0-beta.20
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/cjs/{app-globals-2ceecab2.js → app-globals-8dbc03be.js} +2 -2
- package/dist/cjs/{app-globals-2ceecab2.js.map → app-globals-8dbc03be.js.map} +1 -1
- package/dist/cjs/{index-5d1f2412.js → index-b925c7f5.js} +20 -6
- package/dist/cjs/index-b925c7f5.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-fielddropdownitemcheck.cjs.entry.js +48 -0
- package/dist/cjs/nv-fielddropdownitemcheck.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +368 -0
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -0
- 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 +2 -0
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.css +12 -0
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +6 -0
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +1 -0
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +190 -0
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +1 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.css +195 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +169 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +822 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -0
- 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 +1 -121
- package/dist/components/nv-fieldcheckbox.js.map +1 -1
- package/dist/components/nv-fielddropdownitemcheck.d.ts +11 -0
- package/dist/components/nv-fielddropdownitemcheck.js +8 -0
- package/dist/components/nv-fielddropdownitemcheck.js.map +1 -0
- package/dist/components/nv-fieldmultiselect.d.ts +11 -0
- package/dist/components/nv-fieldmultiselect.js +445 -0
- package/dist/components/nv-fieldmultiselect.js.map +1 -0
- 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-1079b972.js +125 -0
- package/dist/components/p-1079b972.js.map +1 -0
- package/dist/components/{p-50bd2808.js → p-45ffa910.js} +2 -2
- package/dist/components/{p-50bd2808.js.map → p-45ffa910.js.map} +1 -1
- package/dist/components/{p-be79e7bc.js → p-813b38b1.js} +5 -5
- package/dist/components/{p-be79e7bc.js.map → p-813b38b1.js.map} +1 -1
- package/dist/components/{p-6146d4b0.js → p-9cbeeff9.js} +3 -3
- package/dist/components/{p-6146d4b0.js.map → p-9cbeeff9.js.map} +1 -1
- package/dist/components/{p-632bedb8.js → p-c434f2e5.js} +6 -2
- package/dist/components/p-c434f2e5.js.map +1 -0
- package/dist/components/{p-8da6d9a3.js → p-d8a41fbe.js} +3 -3
- package/dist/components/{p-8da6d9a3.js.map → p-d8a41fbe.js.map} +1 -1
- package/dist/components/{p-c711fe67.js → p-d9d56e06.js} +4 -4
- package/dist/components/{p-c711fe67.js.map → p-d9d56e06.js.map} +1 -1
- package/dist/components/p-dbbda3ac.js +72 -0
- package/dist/components/p-dbbda3ac.js.map +1 -0
- package/dist/docs.json +1049 -3
- package/dist/esm/{app-globals-df0a3c8d.js → app-globals-ec286266.js} +2 -2
- package/dist/esm/{app-globals-df0a3c8d.js.map → app-globals-ec286266.js.map} +1 -1
- package/dist/esm/{index-179dfba2.js → index-3762ddc4.js} +20 -6
- package/dist/esm/index-3762ddc4.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-fielddropdownitemcheck.entry.js +44 -0
- package/dist/esm/nv-fielddropdownitemcheck.entry.js.map +1 -0
- package/dist/esm/nv-fieldmultiselect.entry.js +364 -0
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -0
- 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-db2a68f3.js → p-006006b6.js} +3 -3
- package/dist/native/p-006006b6.js.map +1 -0
- package/dist/native/p-056455a2.entry.js +2 -0
- package/dist/native/p-068965e9.entry.js +2 -0
- package/dist/native/{p-6f762ec2.entry.js.map → p-068965e9.entry.js.map} +1 -1
- package/dist/native/{p-89accab1.entry.js → p-09d57171.entry.js} +2 -2
- package/dist/native/p-1392b30f.entry.js +2 -0
- package/dist/native/p-1392b30f.entry.js.map +1 -0
- package/dist/native/{p-8b65b16f.entry.js → p-1adc83f5.entry.js} +2 -2
- package/dist/native/{p-71d6aad8.entry.js → p-1e575590.entry.js} +2 -2
- package/dist/native/{p-b5e4a9e7.entry.js → p-21bc1cf9.entry.js} +2 -2
- package/dist/native/p-21cdc57d.entry.js +2 -0
- package/dist/native/p-21cdc57d.entry.js.map +1 -0
- package/dist/native/{p-43cd42ca.entry.js → p-3935c952.entry.js} +2 -2
- package/dist/native/{p-14c08510.entry.js → p-3bb76528.entry.js} +2 -2
- package/dist/native/{p-830ec54a.entry.js → p-5c0e7fda.entry.js} +2 -2
- package/dist/native/{p-f5acea50.entry.js → p-60679799.entry.js} +2 -2
- package/dist/native/{p-06f64d05.entry.js → p-60f027d4.entry.js} +2 -2
- package/dist/native/p-70c73c72.entry.js +2 -0
- package/dist/native/{p-29d482cd.entry.js.map → p-70c73c72.entry.js.map} +1 -1
- package/dist/native/{p-519e0f59.entry.js → p-8d472724.entry.js} +2 -2
- package/dist/native/{p-124a7067.entry.js → p-95a054ed.entry.js} +2 -2
- package/dist/native/{p-fb6f42b7.entry.js → p-99e17032.entry.js} +2 -2
- package/dist/native/{p-0aa0193b.entry.js → p-a8fe9493.entry.js} +2 -2
- package/dist/native/p-b0955577.js +2 -0
- package/dist/native/{p-b8eb4c31.entry.js → p-c3c9444e.entry.js} +2 -2
- package/dist/native/{p-617d6a09.entry.js → p-c749aafd.entry.js} +2 -2
- package/dist/native/{p-1ceee367.entry.js → p-ce6ff56c.entry.js} +2 -2
- package/dist/native/{p-d5a8b6c4.entry.js → p-e4d12abd.entry.js} +2 -2
- package/dist/native/{p-13d0ab5b.entry.js → p-ee23e820.entry.js} +2 -2
- package/dist/native/{p-13d0ab5b.entry.js.map → p-ee23e820.entry.js.map} +1 -1
- package/dist/native/{p-f9aac71a.entry.js → p-f215822a.entry.js} +2 -2
- package/dist/native/{p-7ce1b712.entry.js → p-fd8ee23e.entry.js} +2 -2
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.d.ts +43 -0
- package/dist/types/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.d.ts +215 -0
- package/dist/types/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.d.ts +4 -0
- package/dist/types/components.d.ts +287 -0
- package/hydrate/index.js +495 -33
- package/hydrate/index.mjs +495 -33
- package/hydrate/package.json +1 -1
- package/package.json +1 -1
- package/dist/blazor-docs.json +0 -9342
- package/dist/cjs/index-5d1f2412.js.map +0 -1
- package/dist/components/p-632bedb8.js.map +0 -1
- package/dist/esm/index-179dfba2.js.map +0 -1
- package/dist/native/p-29d482cd.entry.js +0 -2
- package/dist/native/p-6f762ec2.entry.js +0 -2
- package/dist/native/p-80788ddf.js +0 -2
- package/dist/native/p-b99aa075.entry.js +0 -2
- package/dist/native/p-db2a68f3.js.map +0 -1
- package/dist/vscode-data.json +0 -3179
- /package/dist/native/{p-b99aa075.entry.js.map → p-056455a2.entry.js.map} +0 -0
- /package/dist/native/{p-89accab1.entry.js.map → p-09d57171.entry.js.map} +0 -0
- /package/dist/native/{p-8b65b16f.entry.js.map → p-1adc83f5.entry.js.map} +0 -0
- /package/dist/native/{p-71d6aad8.entry.js.map → p-1e575590.entry.js.map} +0 -0
- /package/dist/native/{p-b5e4a9e7.entry.js.map → p-21bc1cf9.entry.js.map} +0 -0
- /package/dist/native/{p-43cd42ca.entry.js.map → p-3935c952.entry.js.map} +0 -0
- /package/dist/native/{p-14c08510.entry.js.map → p-3bb76528.entry.js.map} +0 -0
- /package/dist/native/{p-830ec54a.entry.js.map → p-5c0e7fda.entry.js.map} +0 -0
- /package/dist/native/{p-f5acea50.entry.js.map → p-60679799.entry.js.map} +0 -0
- /package/dist/native/{p-06f64d05.entry.js.map → p-60f027d4.entry.js.map} +0 -0
- /package/dist/native/{p-519e0f59.entry.js.map → p-8d472724.entry.js.map} +0 -0
- /package/dist/native/{p-124a7067.entry.js.map → p-95a054ed.entry.js.map} +0 -0
- /package/dist/native/{p-fb6f42b7.entry.js.map → p-99e17032.entry.js.map} +0 -0
- /package/dist/native/{p-0aa0193b.entry.js.map → p-a8fe9493.entry.js.map} +0 -0
- /package/dist/native/{p-80788ddf.js.map → p-b0955577.js.map} +0 -0
- /package/dist/native/{p-b8eb4c31.entry.js.map → p-c3c9444e.entry.js.map} +0 -0
- /package/dist/native/{p-617d6a09.entry.js.map → p-c749aafd.entry.js.map} +0 -0
- /package/dist/native/{p-1ceee367.entry.js.map → p-ce6ff56c.entry.js.map} +0 -0
- /package/dist/native/{p-d5a8b6c4.entry.js.map → p-e4d12abd.entry.js.map} +0 -0
- /package/dist/native/{p-f9aac71a.entry.js.map → p-f215822a.entry.js.map} +0 -0
- /package/dist/native/{p-7ce1b712.entry.js.map → p-fd8ee23e.entry.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nv-fieldmultiselect.js","sourceRoot":"","sources":["../../../src/components/nv-fieldmultiselect/nv-fieldmultiselect.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EAEL,KAAK,EACL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,kHAAkH;AAElH;;;;;;;;GAQG;AAQH,MAAM,OAAO,kBAAkB;;QA0S7B;;;WAGG;QACK,8BAAyB,GAAG,CAAC,KAAiB,EAAE,EAAE;YACxD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACnC,OAAO,CAAC,sDAAsD;YAChE,CAAC;YAED,MAAM,MAAM,GAAG,KAAK,CAAC,MAAqB,CAAC;YAE3C,gEAAgE;YAChE,IAAI,MAAM,CAAC,OAAO,KAAK,GAAG,IAAI,MAAM,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;gBACxD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;gBACjB,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;gBAE3B,iDAAiD;gBACjD,MAAM,cAAc,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAC1C,kBAAkB,CACJ,CAAC;gBACjB,IAAI,cAAc,EAAE,CAAC;oBACnB,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;oBAE7C,8EAA8E;oBA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,CAAC,KAAK,CAAC,GACnD,CACC,CACN,CAAC,CACC,CACA,CACI;YAGZ,CAAC,IAAI,CAAC,WAAW;gBAChB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,CAAC,IAAI,CAClD,4DAAK,KAAK,EAAC,aAAa;gBACtB,6DAAM,IAAI,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAQ,CAC9C,CACP;YAGA,CAAC,IAAI,CAAC,gBAAgB;gBACrB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,4BAA4B,CAAC,CAAC,IAAI,CACxD,4DAAK,MAAM,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,mBAAmB;gBACjD,6DAAM,IAAI,EAAC,mBAAmB,IAAE,IAAI,CAAC,gBAAgB,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["import {\n Component,\n Host,\n h,\n Element,\n Prop,\n State,\n Listen,\n Event,\n EventEmitter,\n Watch,\n Method,\n} from '@stencil/core';\n\nimport { v4 as uuidv4 } from 'uuid';\nimport { TextInputAutocomplete } from '../../utils/constants';\n// import { DropdownItemSelectedEventDetail } from '../nv-fielddropdownitemcheck/DropdownItemSelectedEventDetail';\n\n/**\n * @slot content - The content of the list.\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n */\n\n@Component({\n tag: 'nv-fieldmultiselect',\n styleUrl: 'nv-fieldmultiselect.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NvFieldmultiselect {\n @Element() el: HTMLNvFieldmultiselectElement;\n private inputElement!: HTMLInputElement;\n private popoverElement!: HTMLNvPopoverElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Maximum height of the dropdown list when open.\n */\n @Prop({ reflect: true })\n readonly maxHeight: string = '200px';\n\n /**\n * List of selected values in the multiselect.\n */\n @State()\n selectedValues: string[] = [];\n\n /**\n * Text for the badge showing the number of selected items.\n */\n @Prop({ reflect: true })\n readonly badgeLabel: string = 'selected';\n\n /**\n * List of options available in the dropdown.\n */\n @Prop()\n readonly options: Array<{ label: string; value: string }> = [];\n\n /**\n * Enables a clear-all button for the selection.\n */\n @Prop({ reflect: true })\n readonly clearable: boolean = false;\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Lets you define the text that explains what users should enter in the text\n * input field. It’s a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Add helpful hints or extra information under the text input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions, making the form easier to fill out correctly.\n */\n @Prop({ reflect: true })\n readonly description: string;\n\n /**\n * Display temporary text inside the input field to give users a hint about\n * what to type. It’s a great way to provide examples or suggestions directly\n * in the field before they start typing.\n * The placeholder is displayed only when the filterable option is enabled.\n */\n @Prop({ reflect: true })\n readonly placeholder: string;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input’s data in form submissions. It should be\n * unique within the form to avoid conflicts.\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * State of the dropdown popover.\n */\n @Prop({ reflect: true, mutable: true })\n open: boolean = false;\n\n /**\n * The autocomplete prop helps users fill out the input field faster by\n * suggesting entries they’ve used before, like their email or address.\n * You can turn it on to make forms more convenient or off to ensure users\n * always type in fresh data.\n */\n @Prop({ reflect: true })\n readonly autocomplete: `${TextInputAutocomplete}` = 'off';\n\n /**\n * Specifies the value of the input field, which determines the text displayed\n * within the field. This prop is typically used in controlled components\n * where the input’s value is managed by the component’s state.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Alters the input field’s appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the dropdown\n * field.\n * @validator message\n */\n @Prop({ reflect: true })\n readonly errorDescription: string;\n\n /**\n * Display the input field’s content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won’t be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * The disabled prop lets you turn off the input field so that users can’t\n * type in it. When disabled, the field is grayed out and won’t respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * The text to display when no items match the filter.\n */\n @Prop({ reflect: true })\n readonly emptyresult: string = 'No results found';\n\n /**\n * The text entered by the user for filtering dropdown items.\n */\n @State()\n filterText: string = '';\n\n /**\n * Enables or disables the filtering feature for the dropdown items.\n */\n @Prop({ reflect: true, mutable: true })\n filterable: boolean = false;\n\n @State()\n isFilterable: boolean = this.filterable;\n\n // @State()\n // selectedValues: Set<string> = new Set();\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the input value changes.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n @Listen('openChanged')\n handleOpenChanged(event: CustomEvent<boolean>) {\n this.open = event.detail; // Update `open` based on the popover state\n }\n\n @Watch('filterable')\n watchFilterableHandler(newValue: boolean) {\n this.isFilterable = newValue;\n this.filterable = newValue;\n }\n\n @Watch('value')\n watchValueHandler() {\n // Handle value change and update the corresponding dropdown item if it exists\n this.setInitialSelection();\n }\n\n /**\n * Event emitted when the selection changes in the multiselect.\n * Emits the current list of selected values.\n */\n @Event()\n multiselectChange: EventEmitter<string[]>;\n\n /**\n * Listen for the `itemChecked` event emitted by child items.\n * Updates the selected values accordingly.\n * @param {CustomEvent<{ value: string; checked: boolean }>} event - The event object containing the selected value and its checked state.\n */\n @Listen('itemChecked')\n handleItemChecked(\n event: CustomEvent<{ value: string | undefined; checked: boolean }>,\n ) {\n if (this.disabled || this.readonly) return;\n\n const { value, checked } = event.detail;\n\n // Si une valeur est définie, met à jour `selectedValues`.\n if (value) {\n if (checked) {\n // Ajoute la valeur si elle est cochée\n this.selectedValues = [...this.selectedValues, value];\n } else {\n // Retire la valeur si elle est décochée\n this.selectedValues = this.selectedValues.filter(val => val !== value);\n }\n }\n\n // Émet l'événement `multiselectChange` avec la nouvelle liste des valeurs sélectionnées\n this.multiselectChange.emit(this.selectedValues);\n }\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Subscribe to click outside event.\n */\n connectedCallback() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n\n // Handle pre-selection during component initialization\n this.setInitialSelection();\n\n // Apply filtering if the dropdown is filterable and there is a value\n if (this.filterable && this.value) {\n this.filterText = this.value.toLowerCase();\n this.filterItems(); // Update the visibility of items\n } else {\n // Ensure all items are visible if no filtering is applied\n this.resetFilter();\n }\n }\n\n /**\n * Set the initial selection based on the current value and update the inputElement value.\n */\n private setInitialSelection() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitemcheck'),\n ) as HTMLNvFielddropdownitemcheckElement[];\n\n const selectedItem = items.find(\n item =>\n item.getAttribute('label') === this.value ||\n item.getAttribute('value') === this.value ||\n item.textContent?.trim() === this.value,\n );\n\n // Remove 'selected' from all items first to reset the state\n items.forEach(item => {\n item.removeAttribute('selected');\n item.classList.remove('selected');\n });\n\n if (selectedItem) {\n // Add the `selected` attribute and `selected` class for visual styling\n selectedItem.setAttribute('selected', 'true');\n selectedItem.classList.add('selected');\n\n // Update the value and inputElement value to reflect the pre-selected item\n this.value =\n selectedItem.getAttribute('label') ||\n selectedItem.getAttribute('value') ||\n selectedItem.textContent?.trim() ||\n '';\n if (this.inputElement) {\n this.inputElement.value = this.value;\n }\n }\n }\n\n /**\n * Unsubscribe from click outside event.\n */\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n }\n\n /**\n * Handle click on the input container.\n * @param {MouseEvent} event - The click event.\n */\n private handleInputContainerClick = (event: MouseEvent) => {\n if (this.disabled || this.readonly) {\n return; // Do nothing if the dropdown is disabled or read-only\n }\n\n const target = event.target as HTMLElement;\n\n // Check if it is the paragraph or another part of the container\n if (target.tagName === 'P' || target.tagName === 'SPAN') {\n this.open = true;\n this.popoverElement.show();\n\n // Simulate focus to trigger \"focus-within\" style\n const inputContainer = this.el.querySelector(\n '.input-container',\n ) as HTMLElement;\n if (inputContainer) {\n inputContainer.classList.add('focus-within');\n\n // Remove the \"focus-within\" class after a delay or when the popover is closed\n const removeFocusWithin = () => {\n inputContainer.classList.remove('focus-within');\n };\n\n // Or remove the class when the popover is closed\n this.popoverElement.addEventListener('hide', removeFocusWithin);\n }\n }\n };\n\n /**\n * Handle input change.\n * @param {Event} event - The input event.\n */\n private handleInput = (event: Event) => {\n if (!this.filterable) return; // Do not filter if `filterable` is false\n if (this.disabled || this.readonly) {\n return; // Do not toggle the state if the dropdown is disabled or read-only\n }\n const input = event.target as HTMLInputElement;\n this.filterText = input.value.toLowerCase();\n this.value = input.value; // Update the value\n this.valueChanged.emit(input.value); // Emit an event if needed\n this.filterItems(); // Update the visibility of items\n };\n\n /**\n * Filter dropdown items based on the text entered by the user.\n * If no items are found, display a message indicating no results.\n */\n private filterItems() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitemcheck'),\n ) as HTMLNvFielddropdownitemcheckElement[];\n\n // Remove the \"no results found\" item if it exists\n const existingEmptyItem = this.el.querySelector(\n 'nv-fielddropdownitemcheck[data-empty]',\n );\n if (existingEmptyItem) {\n existingEmptyItem.remove();\n }\n\n let hasVisibleItems = false;\n\n // Iterate over all items and adjust their visibility\n items.forEach(item => {\n const textContent = item.textContent?.toLowerCase() || ''; // Get the textual content of the slot\n const value = item.value?.toLowerCase() || ''; // Get the value of the `value` attribute\n\n // Check if the filtered text is present either in the value or in the textual content\n const shouldShow =\n value.includes(this.filterText) ||\n textContent.includes(this.filterText);\n\n item.style.display = shouldShow ? '' : 'none'; // Hide or show the item\n\n if (shouldShow) {\n hasVisibleItems = true;\n }\n });\n\n // If no items are visible, add the \"no results found\" item\n if (!hasVisibleItems) {\n const emptyItem = document.createElement('nv-fielddropdownitemcheck');\n emptyItem.setAttribute('data-empty', 'true');\n emptyItem.setAttribute('disabled', 'true');\n emptyItem.textContent = this.emptyresult;\n this.el.querySelector('ul[slot=\"content\"]')?.appendChild(emptyItem);\n }\n }\n\n /**\n * Reset the filter and make all items visible.\n */\n private resetFilter() {\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitemcheck'),\n ) as HTMLNvFielddropdownitemcheckElement[];\n\n items.forEach(item => {\n item.style.display = '';\n });\n }\n\n /**\n * Retrieves the current filter text entered by the user.\n * @returns {string} The filter text.\n */\n @Method()\n async getFilterText(): Promise<string> {\n return this.filterText;\n }\n\n /**\n * Handle click outside the component.\n * @param {MouseEvent} event - The click event.\n */\n private handleClickOutside(event: MouseEvent) {\n if (\n this.el.contains(event.target as Node) ||\n (this.inputElement && this.inputElement.contains(event.target as Node))\n ) {\n // If the click is inside the component or on the input, do not close the popover\n return;\n }\n\n this.popoverElement.hide(); // Close the popover if the click is outside the component\n }\n\n /**\n * Handle input focus.\n */\n private handleInputFocus = () => {\n if (this.disabled || this.readonly) {\n return; // Do not toggle the state if the dropdown is disabled or read-only\n }\n this.open = true; // Force the popover to open\n };\n\n /**\n * Handle input blur.\n */\n private handleInputBlur = () => {\n // Use a delay to check if the focus is still within the popover\n setTimeout(() => {\n if (!this.el.contains(document.activeElement)) {\n this.open = false;\n this.popoverElement.hide(); // Close the popover if the focus is outside the component\n }\n }, 150);\n };\n\n /**\n * Toggle the dropdown popover.\n * @returns {void}\n */\n private togglePopover = (): void => {\n if (this.disabled || this.readonly) {\n return; // Do not toggle if disabled or read-only\n }\n\n this.open = !this.open;\n if (this.open) {\n this.popoverElement.show();\n\n // Si le dropdown n'est pas filtrable, focus sur le premier élément\n if (!this.filterable) {\n this.focusFirstItem();\n }\n } else {\n this.popoverElement.hide();\n }\n };\n\n @Listen('keydown', { passive: false })\n handleKeyDown(event: KeyboardEvent) {\n if (!this.open) {\n if (event.key === 'ArrowDown') {\n this.open = true;\n this.popoverElement.show();\n\n // Focus sur le premier élément si la liste n'est pas filtrable\n if (!this.filterable) {\n this.focusFirstItem();\n }\n\n event.preventDefault();\n return;\n }\n return;\n }\n\n const items = Array.from(\n this.el.querySelectorAll('nv-fielddropdownitemcheck'),\n ) as HTMLNvFielddropdownitemcheckElement[];\n\n if (items.length === 0) {\n console.warn('No dropdown items found to navigate');\n return;\n }\n\n let currentIndex = items.findIndex(item =>\n item.classList.contains('highlighted'),\n );\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n currentIndex = (currentIndex + 1) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n currentIndex = (currentIndex - 1 + items.length) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'Enter' && currentIndex >= 0) {\n event.preventDefault();\n items[currentIndex].click();\n } else if (event.key === 'Escape') {\n event.preventDefault();\n this.open = false;\n this.popoverElement.hide();\n if (this.inputElement) {\n this.inputElement.blur();\n }\n }\n }\n\n private updateHighlightedItem(\n items: (\n | HTMLNvFielddropdownitemcheckElement\n | HTMLNvFielddropdownitemcheckElement\n )[],\n index: number,\n ) {\n items.forEach((item, i) => {\n if (i === index) {\n item.classList.add('highlighted');\n item.setAttribute('tabindex', '0');\n (item as HTMLElement).focus();\n } else {\n item.classList.remove('highlighted');\n item.setAttribute('tabindex', '-1');\n }\n });\n }\n\n private focusFirstItem() {\n const firstItem = this.el.querySelector(\n 'nv-fielddropdownitemcheck',\n ) as HTMLNvFielddropdownitemcheckElement;\n\n if (firstItem) {\n firstItem.setAttribute('tabindex', '0');\n firstItem.classList.add('highlighted');\n firstItem.focus();\n } else {\n console.warn('No first item found to focus');\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <nv-popover\n ref={el => (this.popoverElement = el as HTMLNvPopoverElement)}\n triggerMode=\"controlled\"\n placement=\"bottom-start\"\n open={this.open}\n >\n {/* <div class=\"input-wrapper\" slot=\"trigger\">\n <slot name=\"before-input\"></slot>\n\n <div\n class=\"input-container\"\n onClick={this.handleInputContainerClick}\n >\n <slot name=\"leading-input\"></slot>\n\n {this.isFilterable ? (\n <input\n id={this.inputId}\n type=\"search\"\n ref={e => (this.inputElement = e)}\n autocomplete={this.autocomplete}\n placeholder={this.placeholder}\n name={this.name}\n value={this.filterText}\n onInput={this.handleInput}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n onKeyDown={this.handleKeyDown}\n disabled={this.disabled}\n readOnly={this.readonly}\n required={this.required}\n />\n ) : (\n <p\n id={this.inputId}\n class=\"non-filterable-text\"\n tabIndex={0}\n onClick={this.handleInputContainerClick}\n onFocus={this.handleInputFocus}\n onKeyDown={this.handleKeyDown}\n >\n <span>\n {this.selectedValues.length > 0\n ? `${this.selectedValues.length} ${this.badgeLabel}`\n : this.placeholder}\n </span>\n </p>\n )}\n\n <nv-iconbutton\n class=\"toggle-dropdown-icon\"\n name={this.open ? 'chevron-top' : 'chevron-down'}\n size=\"md\"\n emphasis=\"lower\"\n aria-label={this.open ? 'Hide dropdown' : 'Show dropdown'}\n aria-pressed={this.open.toString()}\n onClick={this.togglePopover}\n />\n </div>\n\n <slot name=\"after-input\"></slot>\n </div> */}\n\n <div class=\"input-wrapper-multiselect\" slot=\"trigger\">\n <slot name=\"before-input\"></slot>\n\n <div\n class=\"input-container-multiselect\"\n onClick={this.handleInputContainerClick}\n >\n <slot name=\"leading-input\"></slot>\n\n {this.isFilterable || this.disabled || this.readonly ? (\n <input\n id={this.inputId}\n type=\"search\"\n ref={e => (this.inputElement = e)}\n autocomplete={this.autocomplete}\n placeholder={this.placeholder}\n name={this.name}\n value={this.value}\n required={this.required}\n disabled={this.disabled}\n readOnly={this.readonly}\n onInput={this.handleInput}\n onFocus={this.handleInputFocus}\n onBlur={this.handleInputBlur}\n onKeyDown={this.handleKeyDown}\n />\n ) : (\n <p\n id={this.inputId}\n class=\"non-filterable-text\"\n onClick={this.handleInputContainerClick}\n tabIndex={0}\n onKeyDown={this.handleKeyDown}\n onFocus={this.handleInputFocus}\n >\n <span>{this.value || this.placeholder}</span>\n </p>\n )}\n\n <nv-iconbutton\n class=\"toggle-dropdown-icon\"\n name={this.open ? 'chevron-top' : 'chevron-down'}\n size=\"md\"\n emphasis=\"lower\"\n aria-label={this.open ? 'Hide dropdown' : 'Show dropdown'}\n aria-pressed={this.open.toString()}\n onClick={this.togglePopover}\n />\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n <slot name=\"content\">\n <ul>\n {this.options.map(option => (\n <li\n class={{\n 'dropdown-item': true,\n 'is-selected': this.selectedValues.includes(option.value),\n }}\n aria-selected={this.selectedValues\n .includes(option.value)\n .toString()}\n role=\"option\"\n >\n <nv-fielddropdownitemcheck\n value={option.value}\n label={option.label}\n checked={this.selectedValues.includes(option.value)}\n />\n </li>\n ))}\n </ul>\n </slot>\n </nv-popover>\n\n {/* Description */}\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {/* Message d'erreur */}\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
|
|
@@ -75,9 +75,9 @@ export class NvFieldnumber {
|
|
|
75
75
|
/****************************************************************************/
|
|
76
76
|
//#region RENDER
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
79
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
80
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
78
|
+
return (h(Host, { key: 'a3b8d64f764fd236278e67c626327b211a2bc30a' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'bb5d9824708bf35f1b73dbfb4ab30e6fede19f44', htmlFor: this.inputId }, h("slot", { key: 'eda2d2f07714a1095334ba2706ccbb87d815bd33', name: "label" }, this.label))), h("div", { key: '428c24da018c0f4f05343534fea2a37799172fc2', class: "input-wrapper" }, h("slot", { key: '9a58edf56e297b0ebcd184baca8e146b303b6f8e', name: "before-input" }), h("div", { key: '49114d52c107caea529a16f7732b760d988f9afb', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'b3c22781468a05404188d71975803ec11b0fad62', name: "leading-input" }), h("input", { key: '597370e1fa23eb83a1a5f2580870ad462c7cbae1', 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 && (h("nv-icon", { key: '6a875290196c12c777566cf27ec9dcfca6d0c798', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '678953d63353f9c245f2908c82ec24d3b599306a', name: "circle-check", class: "validation", size: "md" })), h("div", { key: '0e9b75ef761a5b82190ba2ad1f5a5fc5b63301fc', class: "stepper-spacer" }), h("div", { key: 'a100967e0c8f985808ee6f221521e85580a22e4b', class: "stepper" }, h("nv-icon", { key: 'd90e5e4f4de5a4f0cdceb5384bf643a42757a84b', name: "minus", size: "md", onClick: this.handleMinus, class: clsx({ disabled: this.isMinValueReached() }) }), h("nv-icon", { key: '09023dc13c43dbe9a75382105bd9bdff1c7aa97c', name: "plus", size: "md", onClick: this.handlePlus, class: clsx({ disabled: this.isMaxValueReached() }) }))), h("slot", { key: '3a558b9d20cc2b28bb8ac08ee1305b8026c5c5b8', name: "after-input" })), (this.description ||
|
|
79
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'c4ab45b3528fd0e21439f8966faf725d6cbbd054', class: "description" }, h("slot", { key: 'f0e4fbf1c6c04476d97034fedea2e9bc4bbc4463', name: "description" }, this.description))), (this.errorDescription ||
|
|
80
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'a639b3720d2cf584d22896676e90ff82ab08e2d6', hidden: !this.error, class: "error-description" }, h("slot", { key: '4e6c53cec245b254207fb57452568306fa7777b7', name: "error-description" }, this.errorDescription)))));
|
|
81
81
|
}
|
|
82
82
|
static get is() { return "nv-fieldnumber"; }
|
|
83
83
|
static get formAssociated() { return true; }
|
|
@@ -60,9 +60,9 @@ export class NvFieldpassword {
|
|
|
60
60
|
/****************************************************************************/
|
|
61
61
|
//#region RENDER
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
64
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
65
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
63
|
+
return (h(Host, { key: '3b83c474000bd8a34aeb5f7363d49de26b2c2680' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '59f247422c68fa70680cd556ff5cbe7d7dd929b2', htmlFor: this.inputId }, h("slot", { key: 'c9bb7201668cf2457f59a55c976a816e5c77252c', name: "label" }, this.label))), h("div", { key: 'd947f2a1b906b101714875ec08a24c7c0d1f4909', class: "input-wrapper" }, h("slot", { key: 'f023af3d9ed156a27eb3623a17670cc8813c5bb8', name: "before-input" }), h("div", { key: '9581ad75398638ebd54d3c7e54510dfbbf8497db', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'c946a46456e237a0f9a40659c453eceb3147f129', name: "leading-input" }), h("input", { key: '47b731bf7a8bd5a9ad37855971fbd8f1efda1677', 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 && (h("nv-iconbutton", { key: '3076ce72bead47d1e903bcbbac0e857020126d58', 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) && (h("nv-icon", { key: '168a6245ce8bd32685c9a628117876987a0d7347', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" }))), h("slot", { key: 'ac33fe20e562dff96ae1554455900b59798be874', name: "after-input" })), (this.description ||
|
|
64
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '2983712f72ee3d5188e5a29893b38010dcea7b6b', class: "description" }, h("slot", { key: 'c6523453b9fb2da50413f5ce643f4d89ab352dcb', name: "description" }, this.description))), (this.errorDescription ||
|
|
65
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '7461dd7d908c3f972776cd22ebd157a32f5b8f3c', hidden: !this.error, class: "error-description" }, h("slot", { key: 'ea012f1732fc455e797aef90f10ea86a6ce947da', name: "error-description" }, this.errorDescription)))));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "nv-fieldpassword"; }
|
|
68
68
|
static get formAssociated() { return true; }
|
|
@@ -59,9 +59,9 @@ export class NvFieldradio {
|
|
|
59
59
|
/****************************************************************************/
|
|
60
60
|
//#region RENDER
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
63
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
64
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
62
|
+
return (h(Host, { key: 'a8b1186795a3dad169078bce07f41255d81ee5c7', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h("input", { key: '6dbd0a12f435706e15ea563f20e09ed07ad7acb5', type: "radio", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), h("div", { key: 'b0dd4b9e94b34746992c999e0670168b9c426fd4', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '3322b627728e3c12e0b964350af8708143029bde', htmlFor: this.inputId }, h("slot", { key: '72e61a533cc32c5cd447d1eaf74f599907b526e8', name: "label" }, this.label))), (this.description ||
|
|
63
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '4e136ff319c090deba878ca3b64939484c1545c2', class: "description" }, h("slot", { key: '41ab10aeac57c627096f06df69ebd1bb7e8d2341', name: "description" }, this.description))), (this.errorDescription ||
|
|
64
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '675e61e361a4a0e1863156838f8580d5fd48b14b', hidden: !this.error, class: "error-description" }, h("slot", { key: '182947d22634957b571a7d9260bde3a7f6f8d8c1', name: "error-description" }, this.errorDescription))))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "nv-fieldradio"; }
|
|
67
67
|
static get formAssociated() { return true; }
|
|
@@ -266,13 +266,13 @@ export class NvFieldselect {
|
|
|
266
266
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
267
267
|
*/
|
|
268
268
|
render() {
|
|
269
|
-
return (h(Host, { key: '
|
|
269
|
+
return (h(Host, { key: '311593e5930fd3ce1f973f351915526783b8a3ec' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '1075e1f17c0ced7dfe2910a26e868d48acb1d42e', htmlFor: this.selectId }, h("slot", { key: '4e302b832bb1024c6a3d7ab5c1eb0a1fcc9c1988', name: "label" }, this.label))), h("div", { key: '5bd2d63555668b337b646ad68cb915391d4c42f3', class: "select-wrapper" }, h("slot", { key: '59f848679390b13a2e6677e5ab80091353a3ce37', name: "before-input" }), h("div", { key: '55621c6e06cc7ce1f47afa70ad94fa1644f10887', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: '14b265ca1217598ca9738983398fec805ca0bb78', name: "leading-input" }), this.internalReadonly && (h("input", { key: '33338c73698f8a032f40e296e02837db8f85bbd6', 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
|
|
270
270
|
? `${this.selectId}-error`
|
|
271
|
-
: `${this.selectId}-description` })), h("select", { key: '
|
|
271
|
+
: `${this.selectId}-description` })), h("select", { key: '6e8e427b566615f893a08e434a4c3f85c06ac2a2', 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
|
|
272
272
|
? `${this.selectId}-error`
|
|
273
|
-
: `${this.selectId}-description` }, h("slot", { key: '
|
|
274
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
275
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
273
|
+
: `${this.selectId}-description` }, h("slot", { key: '32217461d75c0bc91b2fe73e39fd6a493746f0a9' })), this.internalReadonly && (h("nv-icon", { key: 'ec175d87b3367620f20b60155cf4b8be224ab449', name: "chevron-down", class: "readonly-icon", size: "sm" })), this.error && (h("nv-icon", { key: '4fdb2c10f5ed1151431628873b8bf7722e2b68d0', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '0c20543304333b87724f630bf4790ba3d7d16b16', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: '2cd7c2734e2c52233a0d782c76f967af884764e1', name: "after-input" })), (this.description ||
|
|
274
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'd7c4b5632f678d092a5ff95a00d4df3acf8afefc', class: "description", id: `${this.selectId}-description` }, h("slot", { key: 'f0a51369f018fef3b69811726d34634a4274ebab', name: "description" }, this.description))), (this.errorDescription ||
|
|
275
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'c72d98d88fa763042ca6a97a53320d4cfec3ce00', class: "error-description", id: `${this.selectId}-error` }, h("slot", { key: '50de0d322e4a8a0d57231c114186a646529f0276', name: "error-description" }, this.errorDescription)))));
|
|
276
276
|
}
|
|
277
277
|
static get is() { return "nv-fieldselect"; }
|
|
278
278
|
static get formAssociated() { return true; }
|
|
@@ -67,9 +67,9 @@ export class NvFieldtext {
|
|
|
67
67
|
/****************************************************************************/
|
|
68
68
|
//#region RENDER
|
|
69
69
|
render() {
|
|
70
|
-
return (h(Host, { key: '
|
|
71
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
72
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
70
|
+
return (h(Host, { key: '30cccf8007d80765860eb1344d9d280d3b49ea42' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'a2c1726e3102b4d14dd92d02083f7ec6c0cd411e', htmlFor: this.inputId }, h("slot", { key: 'dde6902e511d4436302b1d82bae7799a66120394', name: "label" }, this.label))), h("div", { key: '72ae532cf928fa102e1b22225feffc351f1bc457', class: "input-wrapper" }, h("slot", { key: '52b5464d5de9cbfe95bdd35c4619ed1fc9fe6f78', name: "before-input" }), h("div", { key: '206542310bccb142eeeaf4abda370a308ae254a9', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: '41b1c75e25e18212cd730bff7daee7502c847be7', name: "leading-input" }), h("input", { key: '57e219bb9680e134f741b031958c9463e5d6d24c', 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 && (h("nv-icon", { key: '6fbcacfe2acd35748cff049a011c3c957ee0c909', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '46da7a1c2805c6ad1f7c5ae201d4de3e1adf2e17', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'f2a341dcb2d7bf6cd094812b000023b183cc9c9e', name: "after-input" })), (this.description ||
|
|
71
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'd75de043cf06e26e688fdd799ee3c78bffed7e82', class: "description" }, h("slot", { key: '6f2ca8884fad345357651b798aab559ced31d12c', name: "description" }, this.description))), (this.errorDescription ||
|
|
72
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'ec4ddeeb8677b7483eaef7ddd7c51446d4c8d5aa', hidden: !this.error, class: "error-description" }, h("slot", { key: '077d8437bcb354900cd9d87ec721cb0f627c3877', name: "error-description" }, this.errorDescription)))));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "nv-fieldtext"; }
|
|
75
75
|
static get formAssociated() { return true; }
|
|
@@ -128,9 +128,9 @@ export class NvFieldtextarea {
|
|
|
128
128
|
/****************************************************************************/
|
|
129
129
|
//#region RENDER
|
|
130
130
|
render() {
|
|
131
|
-
return (h(Host, { key: '
|
|
132
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
133
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
131
|
+
return (h(Host, { key: '0598ad37f0c12f0fda513fd7ffe67225d2a44a4d' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '1cd2b826969fea01765369aedd6f4d5bce7c6a70', htmlFor: this.textareaId }, h("slot", { key: 'dc05b50149123674953a9005d6db8f87eafe78ca', name: "label" }, this.label))), h("div", { key: 'd74e98654af707b2fd374f6c7e0f0416a240514d', class: "textarea-wrapper" }, h("div", { key: '8a2314259104f40c7deb4b28bca88e0926803895', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: '7b477d27aa4abdacab00443e45564fd1202bbf9b', 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 ||
|
|
132
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '17b2890bacaae204b5e8f1b9da48038317a16a9c', class: "description" }, h("slot", { key: 'f32d1b730ec843a3c8c19f00983f2c9f041c8fcd', name: "description" }, this.description))), (this.errorDescription ||
|
|
133
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '7ecb127dc057e5d2fb9e330d9c79c0f12ed14b8e', hidden: !this.error, class: "error-description" }, h("slot", { key: '621fd3cb88771242aeb87646e41711f79bfaae17', name: "error-description" }, this.errorDescription)))));
|
|
134
134
|
}
|
|
135
135
|
static get is() { return "nv-fieldtextarea"; }
|
|
136
136
|
static get formAssociated() { return true; }
|
|
@@ -43,8 +43,8 @@ export class NvFieldtoggle {
|
|
|
43
43
|
}
|
|
44
44
|
/********************************* RENDER ***********************************/
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
47
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
46
|
+
return (h(Host, { key: '367c438a430481a14f0b9b772c898f97c8d6da4d', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: 'b1a29fbcab71e95d9ef87088316c600b5467f533', class: "input-container" }, h("input", { key: '7fe8a8c9c2e9e05ba6fb4511606cc90306cf0de4', 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 })), h("div", { key: '0ffb1fd89f31b7710a20340144d52feb93ca4360', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '0086b54008008dadb6d3501d2632fe96e223af03', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: 'cd83067ab5172bd90ddbbd3c925a78576aa6e139', name: "label" }, this.label))), (this.description ||
|
|
47
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'aec1639e7f157d372ec095cda64813b15a9c9c39', class: "description" }, h("slot", { key: '9416422ec7f93b40c199b3202c4546e609313486', name: "description" }, this.description))))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "nv-fieldtoggle"; }
|
|
50
50
|
static get originalStyleUrls() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { SemanticSizes } from "../../utils/constants";
|
|
4
|
-
import iconSprite from "@
|
|
4
|
+
import iconSprite from "@eliagroup-innersource/nova-base/assets/icons/icon-sprite.svg";
|
|
5
5
|
export class NvIcon {
|
|
6
6
|
constructor() {
|
|
7
7
|
this.xsmall = undefined;
|
|
@@ -46,7 +46,7 @@ export class NvIcon {
|
|
|
46
46
|
//#region RENDER
|
|
47
47
|
render() {
|
|
48
48
|
//const iconSprite = getAssetPath('assets/icon-sprite.svg');
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '6831debeaf9f3b8fb3ade7132fa985b01104e423', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, h("svg", { key: '6319922bd5537f4098b226aa9945719ece686fb2', 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}` }, h("use", { key: '47e3a338e2e1e40ccccd70973f55939829b9cde5', href: `${this.spriteUrl}#${this.name}` }))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "nv-icon"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nv-icon.js","sourceRoot":"","sources":["../../../src/components/nv-icon/nv-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAA4B,MAAM,uBAAuB,CAAC;AAEhF,OAAO,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"nv-icon.js","sourceRoot":"","sources":["../../../src/components/nv-icon/nv-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAA4B,MAAM,uBAAuB,CAAC;AAEhF,OAAO,UAAU,MAAM,+DAA+D,CAAC;AAOvF,MAAM,OAAO,MAAM;;;;;;;;;oBA0EU,aAAa,CAAC,MAAM;;;IAjC/C,mBAAmB;QACjB,I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AAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAE,WAAW,IAAI,CAAC,IAAI,EAAE;gBAE7B,4DAAK,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,GAAI,CAC3C,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, State } from '@stencil/core';\nimport clsx from 'clsx';\nimport { SemanticSizes, DeprecatedSemanticColors } from '../../utils/constants';\nimport { IconName } from './nv-icons';\nimport iconSprite from '@eliagroup-innersource/nova-base/assets/icons/icon-sprite.svg';\n\n@Component({\n tag: 'nv-icon',\n styleUrl: 'nv-icon.scss',\n shadow: false,\n})\nexport class NvIcon {\n /****************************************************************************/\n //#region DEPRECATED\n\n /**\n * Set size to ExtraSmall.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xsmall: boolean;\n /**\n * Set size to Small.\n * @deprecated use size instead.\n */\n @Prop()\n readonly small: boolean;\n /**\n * Set size to Medium.\n * @deprecated use size instead.\n */\n @Prop()\n readonly medium: boolean;\n /**\n * Set size to Large.\n * @deprecated use size instead.\n */\n @Prop()\n readonly large: boolean;\n /**\n * Set size to ExtraLarge.\n * @deprecated use size instead.\n */\n @Prop()\n readonly xlarge: boolean;\n /**\n * Set color of the icon.\n * @deprecated use class names instead.\n */\n @Prop()\n readonly color: `${DeprecatedSemanticColors}`;\n\n componentWillRender() {\n if (this.xsmall) {\n this.size = SemanticSizes.ExtraSmall;\n }\n if (this.small) {\n this.size = SemanticSizes.Small;\n }\n if (this.medium) {\n this.size = SemanticSizes.Medium;\n }\n if (this.large) {\n this.size = SemanticSizes.Large;\n }\n if (this.xlarge) {\n this.size = SemanticSizes.ExtraLarge;\n }\n }\n\n //#endregion DEPRECATED\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Choose the icon you want to display. This also sets the aria-label for\n * improved accessibility, helping users who rely on screen readers.\n */\n @Prop({ reflect: true })\n readonly name: `${IconName}` | string;\n\n /**\n * Adjust the size of the icon to fit your design needs.\n */\n @Prop({ mutable: true, reflect: true })\n size: `${SemanticSizes}` = SemanticSizes.Medium;\n\n @State()\n spriteUrl: string;\n\n async componentWillLoad() {\n const response = await fetch(iconSprite);\n const blob = await response.blob();\n this.spriteUrl = URL.createObjectURL(blob);\n }\n\n disconnectedCallback() {\n if (this.spriteUrl) {\n URL.revokeObjectURL(this.spriteUrl);\n }\n }\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region RENDER\n\n render() {\n //const iconSprite = getAssetPath('assets/icon-sprite.svg');\n return (\n <Host\n class={clsx(this.color && `${this.color}`)}\n role=\"img\"\n aria-label={`${this.name}-icon`}\n >\n <svg\n stroke=\"currentColor\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class={`nv-icon-${this.size}`}\n >\n <use href={`${this.spriteUrl}#${this.name}`} />\n </svg>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -63,7 +63,7 @@ export class NvIconbutton {
|
|
|
63
63
|
/****************************************************************************/
|
|
64
64
|
//#region RENDER
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'dc918224a0fcbea4bc0d299fcd86a066c9fb2a6e', 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 && h("nv-loader", { key: '7f2484c41aa8b8dc2d6e40f4174c486e95efe65b', size: this.size }), !this.loading && h("nv-icon", { key: '772c5d352e9eb65911ee68fcbeeb6f1b1ad3606a', name: this.name, size: this.size }), h("slot", { key: 'e4bdc61098a178a8c12a898410b5131105a1b6f4' })));
|
|
67
67
|
}
|
|
68
68
|
static get is() { return "nv-iconbutton"; }
|
|
69
69
|
static get formAssociated() { return true; }
|
|
@@ -10,7 +10,7 @@ export class NvLoader {
|
|
|
10
10
|
//#region RENDER
|
|
11
11
|
/* <slot> empty to force rendering change */
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'd6bc07fa876b14f8332275b0013eb0957463448d', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "nv-loader"; }
|
|
16
16
|
static get originalStyleUrls() {
|
|
@@ -172,7 +172,7 @@ export class NvMenu {
|
|
|
172
172
|
/****************************************************************************/
|
|
173
173
|
//#region RENDER
|
|
174
174
|
render() {
|
|
175
|
-
return (h(Host, { key: '
|
|
175
|
+
return (h(Host, { key: '080871f790f3725ee0c627ff6f2c23b0b9c67ed9' }, h("slot", { key: '8b2b2392d606f14b61c7c3ea799273948b045d0d', name: "trigger" }), h("nv-popover", { key: '33bae39e185e26a23aa0d7d9d2ac7b0f35658fd9', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, h("slot", { key: 'f50743c2ed89866882266413e595a03185bd329e', name: "content" }))));
|
|
176
176
|
}
|
|
177
177
|
static get is() { return "nv-menu"; }
|
|
178
178
|
static get originalStyleUrls() {
|
|
@@ -253,7 +253,7 @@ export class NvPopover {
|
|
|
253
253
|
/****************************************************************************/
|
|
254
254
|
//#region RENDER
|
|
255
255
|
render() {
|
|
256
|
-
return (h(Host, { key: '
|
|
256
|
+
return (h(Host, { key: '305452892fe5a5889aa81ad8a794f91407965a82' }, h("slot", { key: 'c82770ebfafb46c8e5ceb55b71199873ac7ca039', name: "trigger" }), h("div", { key: '02646f26b908fa4103ebb0a44233a833713c57bc', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: 'dc654f5595b1e9b2fae2b8eab2d8716ad8c1fcee', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: '0d2dd2e1fca7f73815add0cd4ff85b41932f01fb', name: "content" }))));
|
|
257
257
|
}
|
|
258
258
|
static get is() { return "nv-popover"; }
|
|
259
259
|
static get originalStyleUrls() {
|
|
@@ -6,7 +6,7 @@ export class NvRow {
|
|
|
6
6
|
/****************************************************************************/
|
|
7
7
|
//#region RENDER
|
|
8
8
|
render() {
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: 'bccdd262d6d7bcec9a25422886173b75e84e8681' }, h("slot", { key: '5e16847683228465a72ec2f5b03de429cb881d41' })));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "nv-row"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -16,7 +16,7 @@ export class NvStack {
|
|
|
16
16
|
/****************************************************************************/
|
|
17
17
|
//#region RENDER
|
|
18
18
|
render() {
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'a06b3c85ea07e19125e1b8b23561869de8c8edcc', 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') }, h("slot", { key: '8d902ed2b636bb6d1d8930c6d89117c7a1081707' })));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "nv-stack"; }
|
|
22
22
|
static get originalStyleUrls() {
|
|
@@ -21,7 +21,7 @@ export class NvTooltip {
|
|
|
21
21
|
/****************************************************************************/
|
|
22
22
|
//#region RENDER
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
return (h(Host, { key: 'adb606648ce4c11bb1293007a640f90603c66317' }, h("slot", { key: 'eef7d009694b5cd1010c3bf2ef40f46e726f1306' }), h("nv-popover", { key: '5ab73b344c52709cae8e27b519e27b9297f9e048', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, h("p", { key: '999764402770b8a19402d2c87c2994aead46ba87', slot: "content" }, this.message), h("slot", { key: '8c4f29a7acb4469ad8a4bced0defc2f8021f125a', name: "content" }))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "nv-tooltip"; }
|
|
27
27
|
static get originalStyleUrls() {
|
package/dist/components/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as useGrow } from './p-
|
|
2
|
-
export { e as eventUtils } from './p-
|
|
3
|
-
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-
|
|
1
|
+
import { u as useGrow } from './p-45ffa910.js';
|
|
2
|
+
export { e as eventUtils } from './p-45ffa910.js';
|
|
3
|
+
export { g as getAssetPath, s as setAssetPath, a as setNonce, b as setPlatformOptions } from './p-c434f2e5.js';
|
|
4
4
|
export { c as constants } from './p-a15ddd42.js';
|
|
5
5
|
import { u as useCollapse, t as timeline } from './p-42301d8f.js';
|
|
6
6
|
import { u as useFade } from './p-1daca48a.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-c434f2e5.js';
|
|
2
2
|
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
3
|
import { F as FeedbackColors } from './p-a15ddd42.js';
|
|
4
4
|
import { u as useCollapse, t as timeline } from './p-42301d8f.js';
|
|
5
5
|
import { u as useFade } from './p-1daca48a.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-9cbeeff9.js';
|
|
7
7
|
|
|
8
8
|
const nvAlertCss = "nv-alert{display:flex !important;align-items:flex-start;position:relative;gap:var(--alert-gap-x);border-radius:var(--alert-radius);font-family:\"TT Norms Pro\", \"Montserrat\", sans-serif}nv-alert>nv-icon{margin-left:var(--alert-icon-position-x);margin-top:var(--alert-icon-position-y)}nv-alert.feedback-information{background-color:var(--components-alert-information-background);border:1px solid var(--components-alert-information-border) !important}nv-alert.feedback-information>.close:focus,nv-alert.feedback-information>.close:focus-within{outline:none}nv-alert.feedback-information>.close:focus-visible,nv-alert.feedback-information>.close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--components-alert-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-warning{background-color:var(--components-alert-warning-background);border:1px solid var(--components-alert-warning-border) !important}nv-alert.feedback-warning>.close:focus,nv-alert.feedback-warning>.close:focus-within{outline:none}nv-alert.feedback-warning>.close:focus-visible,nv-alert.feedback-warning>.close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--components-alert-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-error{background-color:var(--components-alert-error-background);border:1px solid var(--components-alert-error-border) !important}nv-alert.feedback-error>.close:focus,nv-alert.feedback-error>.close:focus-within{outline:none}nv-alert.feedback-error>.close:focus-visible,nv-alert.feedback-error>.close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--components-alert-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-success{background-color:var(--components-alert-success-background);border:1px solid var(--components-alert-success-border) !important}nv-alert.feedback-success>.close:focus,nv-alert.feedback-success>.close:focus-within{outline:none}nv-alert.feedback-success>.close:focus-visible,nv-alert.feedback-success>.close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--components-alert-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-neutral{background-color:var(--components-alert-neutral-background);border:1px solid var(--components-alert-neutral-border) !important}nv-alert.feedback-neutral>.close:focus,nv-alert.feedback-neutral>.close:focus-within{outline:none}nv-alert.feedback-neutral>.close:focus-visible,nv-alert.feedback-neutral>.close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--components-alert-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert>nv-icon.icon-information{color:var(--components-alert-information-icon)}nv-alert>nv-icon.icon-warning{color:var(--components-alert-warning-icon)}nv-alert>nv-icon.icon-error{color:var(--components-alert-error-icon)}nv-alert>nv-icon.icon-success{color:var(--components-alert-success-icon)}nv-alert>nv-icon.icon-neutral{color:var(--components-alert-neutral-icon)}nv-alert>.content{display:flex;padding:var(--alert-padding);padding-left:0;flex-direction:column;gap:var(--alert-gap-y)}nv-alert>.content>.heading{color:var(--components-alert-content-title);font-size:var(--alert-heading-font-size);line-height:var(--alert-heading-line-height);font-weight:var(--alert-heading-font-weight)}nv-alert>.content>.message{color:var(--components-alert-content-description);font-size:var(--alert-message-font-size);line-height:var(--alert-message-line-height)}nv-alert>.close{border-radius:var(--alert-radius);position:absolute;display:flex;top:var(--alert-icon-position-y);right:var(--alert-icon-position-x);padding:0;border:none;background:none;cursor:pointer}";
|
|
9
9
|
const NvAlertStyle0 = nvAlertCss;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-c434f2e5.js';
|
|
2
2
|
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
3
|
import { S as SemanticSizes } from './p-a15ddd42.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-9cbeeff9.js';
|
|
5
5
|
|
|
6
6
|
const nvAvatarCss = "nv-icon{display:inline-block;width:fit-content;height:fit-content;color:inherit}nv-icon>.nv-icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-icon>.nv-icon-sm{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-icon>.nv-icon-md{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-icon>.nv-icon-lg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-icon>.nv-icon-xl{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}nv-avatar{align-items:center !important;background-color:var(--components-avatar-background-1);border-radius:var(--radius-rounded-full) !important;display:flex !important;flex-shrink:0 !important;font-family:\"TT Norms Pro\", sans-serif;font-style:normal;font-weight:var(--font-weight-medium-emphasis);justify-content:center !important;leading-trim:both;line-height:1 !important;text-align:center;text-edge:cap;text-transform:uppercase}nv-avatar.avatar-color-1{background-color:var(--components-avatar-background-1);color:var(--components-avatar-content-1)}nv-avatar.avatar-color-2{background-color:var(--components-avatar-background-2);color:var(--components-avatar-content-2)}nv-avatar.avatar-color-3{background-color:var(--components-avatar-background-3);color:var(--components-avatar-content-3)}nv-avatar.avatar-color-4{background-color:var(--components-avatar-background-4);color:var(--components-avatar-content-4)}nv-avatar.avatar-color-5{background-color:var(--components-avatar-background-5);color:var(--components-avatar-content-5)}nv-avatar.avatar-color-6{background-color:var(--components-avatar-background-6);color:var(--components-avatar-content-6)}nv-avatar.avatar-color-7{background-color:var(--components-avatar-background-7);color:var(--components-avatar-content-7)}nv-avatar.avatar-color-8{background-color:var(--components-avatar-background-8);color:var(--components-avatar-content-8)}nv-avatar.avatar-color-9{background-color:var(--components-avatar-background-9);color:var(--components-avatar-content-9)}nv-avatar.avatar-color-10{background-color:var(--components-avatar-background-10);color:var(--components-avatar-content-10)}nv-avatar img{height:100%;width:100%;object-fit:cover;object-position:center;border-radius:50%}nv-avatar.avatar-xs{width:var(--avatar-xs-size);height:var(--avatar-xs-size);font-size:var(--avatar-xs-font-size);line-height:var(--avatar-xs-font-size)}nv-avatar.avatar-xs nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-avatar.avatar-sm{width:var(--avatar-sm-size);height:var(--avatar-sm-size);font-size:var(--avatar-sm-font-size);line-height:var(--avatar-sm-font-size)}nv-avatar.avatar-sm nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-avatar.avatar-md{width:var(--avatar-md-size);height:var(--avatar-md-size);font-size:var(--avatar-md-font-size);line-height:var(--avatar-md-font-size)}nv-avatar.avatar-md nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-avatar.avatar-lg{width:var(--avatar-lg-size);height:var(--avatar-lg-size);font-size:var(--avatar-lg-font-size);line-height:var(--avatar-lg-font-size)}nv-avatar.avatar-lg nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-avatar.avatar-xl{width:var(--avatar-xl-size);height:var(--avatar-xl-size);font-size:var(--avatar-xl-font-size);line-height:var(--avatar-xl-font-size)}nv-avatar.avatar-xl nv-icon>svg{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}";
|
|
7
7
|
const NvAvatarStyle0 = nvAvatarCss;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-c434f2e5.js';
|
|
2
2
|
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
3
|
import { u as useCollapse, t as timeline } from './p-42301d8f.js';
|
|
4
4
|
import { u as useFade } from './p-1daca48a.js';
|
|
5
|
-
import { d as defineCustomElement$2 } from './p-
|
|
5
|
+
import { d as defineCustomElement$2 } from './p-9cbeeff9.js';
|
|
6
6
|
|
|
7
7
|
const nvBadgeCss = "nv-icon{display:inline-block;width:fit-content;height:fit-content;color:inherit}nv-icon>.nv-icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-icon>.nv-icon-sm{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-icon>.nv-icon-md{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-icon>.nv-icon-lg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-icon>.nv-icon-xl{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}nv-badge{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content}nv-badge.with-gap{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content;gap:var(--badge-gap-x)}nv-badge:not(.with-gap){padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);height:fit-content;width:fit-content}nv-badge.badge-1{color:var(--color-rainbow-1-content);background-color:var(--color-rainbow-1-background)}nv-badge.badge-1 .close:focus,nv-badge.badge-1 .close:focus-within{outline:none}nv-badge.badge-1 .close:focus-visible,nv-badge.badge-1 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-1-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-1 nv-icon{color:var(--color-rainbow-1-content)}nv-badge.badge-2{color:var(--color-rainbow-2-content);background-color:var(--color-rainbow-2-background)}nv-badge.badge-2 .close:focus,nv-badge.badge-2 .close:focus-within{outline:none}nv-badge.badge-2 .close:focus-visible,nv-badge.badge-2 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-2-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-2 nv-icon{color:var(--color-rainbow-2-content)}nv-badge.badge-3{color:var(--color-rainbow-3-content);background-color:var(--color-rainbow-3-background)}nv-badge.badge-3 .close:focus,nv-badge.badge-3 .close:focus-within{outline:none}nv-badge.badge-3 .close:focus-visible,nv-badge.badge-3 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-3-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-3 nv-icon{color:var(--color-rainbow-3-content)}nv-badge.badge-4{color:var(--color-rainbow-4-content);background-color:var(--color-rainbow-4-background)}nv-badge.badge-4 .close:focus,nv-badge.badge-4 .close:focus-within{outline:none}nv-badge.badge-4 .close:focus-visible,nv-badge.badge-4 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-4-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-4 nv-icon{color:var(--color-rainbow-4-content)}nv-badge.badge-5{color:var(--color-rainbow-5-content);background-color:var(--color-rainbow-5-background)}nv-badge.badge-5 .close:focus,nv-badge.badge-5 .close:focus-within{outline:none}nv-badge.badge-5 .close:focus-visible,nv-badge.badge-5 .close:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-rainbow-5-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-5 nv-icon{color:var(--color-rainbow-5-content)}nv-badge span{font-size:var(--font-size-xs);line-height:var(--line-height-xs) !important}nv-badge nv-icon>svg.icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-sm{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-md{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-lg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-xl{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge .close{padding:0;line-height:0;border:none;background:none;cursor:pointer;color:inherit;display:inline-flex;align-items:center;aspect-ratio:1/1;border-radius:var(--radius-rounded-full)}";
|
|
8
8
|
const NvBadgeStyle0 = nvBadgeCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-c434f2e5.js';
|
|
2
2
|
import { B as ButtonSize } from './p-a15ddd42.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-d8a41fbe.js';
|
|
4
4
|
|
|
5
5
|
const nvButtonCss = "nv-icon{display:inline-block;width:fit-content;height:fit-content;color:inherit}nv-icon>.nv-icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-icon>.nv-icon-sm{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-icon>.nv-icon-md{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-icon>.nv-icon-lg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-icon>.nv-icon-xl{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}nv-button{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:\"TT Norms Pro\", sans-serif;transition:background-color 150ms ease-out;user-select:none;cursor:pointer;height:fit-content;width:fit-content}nv-button[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-button[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-button[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-button[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-button[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-button[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-button[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-button[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-button[emphasis=high]{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high]:hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high]:focus,nv-button[emphasis=high]:focus-within{outline:none}nv-button[emphasis=high]:focus-visible,nv-button[emphasis=high]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=high][danger]:not([danger=false]){background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-button[emphasis=high][danger]:not([danger=false]):hover{background:var(--components-button-high-background-hover);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text-hover)}nv-button[emphasis=high][danger]:not([danger=false]):focus,nv-button[emphasis=high][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=high][danger]:not([danger=false]):focus-visible,nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium]:hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium]:focus,nv-button[emphasis=medium]:focus-within{outline:none}nv-button[emphasis=medium]:focus-visible,nv-button[emphasis=medium]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=medium]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=medium][danger]:not([danger=false]){background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-button[emphasis=medium][danger]:not([danger=false]):hover{background:var(--components-button-medium-background-hover);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text-hover)}nv-button[emphasis=medium][danger]:not([danger=false]):focus,nv-button[emphasis=medium][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible,nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low]:focus,nv-button[emphasis=low]:focus-within{outline:none}nv-button[emphasis=low]:focus-visible,nv-button[emphasis=low]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=low][danger]:not([danger=false]){background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-button[emphasis=low][danger]:not([danger=false]):hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-button[emphasis=low][danger]:not([danger=false]):focus,nv-button[emphasis=low][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=low][danger]:not([danger=false]):focus-visible,nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower]:focus,nv-button[emphasis=lower]:focus-within{outline:none}nv-button[emphasis=lower]:focus-visible,nv-button[emphasis=lower]:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[emphasis=lower]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-button[emphasis=lower][danger]:not([danger=false]){background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-button[emphasis=lower][danger]:not([danger=false]):hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-button[emphasis=lower][danger]:not([danger=false]):focus,nv-button[emphasis=lower][danger]:not([danger=false]):focus-within{outline:none}nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible,nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-destructive);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-button[fluid]:not([fluid=false]){width:100%}nv-button[loading]:not([loading=false]) [slot=leading-icon]{display:none}";
|
|
6
6
|
const NvButtonStyle0 = nvButtonCss;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-c434f2e5.js';
|
|
2
2
|
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
3
|
|
|
4
4
|
const nvColCss = "nv-col{display:block;flex:1 1 0%;padding-left:calc(var(--spacing-4) / 2);padding-right:calc(var(--spacing-4) / 2)}nv-col[class*=w-]{flex:none}nv-col.w-1\\/12{width:calc(100% * 1 / 12)}nv-col.w-2\\/12{width:calc(100% * 2 / 12)}nv-col.w-3\\/12{width:calc(100% * 3 / 12)}nv-col.w-4\\/12{width:calc(100% * 4 / 12)}nv-col.w-5\\/12{width:calc(100% * 5 / 12)}nv-col.w-6\\/12{width:calc(100% * 6 / 12)}nv-col.w-7\\/12{width:calc(100% * 7 / 12)}nv-col.w-8\\/12{width:calc(100% * 8 / 12)}nv-col.w-9\\/12{width:calc(100% * 9 / 12)}nv-col.w-10\\/12{width:calc(100% * 10 / 12)}nv-col.w-11\\/12{width:calc(100% * 11 / 12)}nv-col.w-12\\/12{width:calc(100% * 12 / 12)}";
|