diff --git a/apps/showcase/doc/common/apidoc/index.json b/apps/showcase/doc/common/apidoc/index.json index f04069608..3b7ad22e8 100644 --- a/apps/showcase/doc/common/apidoc/index.json +++ b/apps/showcase/doc/common/apidoc/index.json @@ -36154,6 +36154,29 @@ ], "methods": [] }, + "InputOtpChangeEvent": { + "description": "Custom change event.", + "relatedProp": "InputOtpEmitsOptions.change", + "props": [ + { + "name": "originalEvent", + "optional": false, + "readonly": false, + "type": "Event", + "default": "", + "description": "Browser event" + }, + { + "name": "value", + "optional": false, + "readonly": false, + "type": "string", + "default": "", + "description": "Value of the input" + } + ], + "methods": [] + }, "InputOtpSharedPassThroughMethodOptions": { "description": "Custom shared passthrough(pt) option method.", "relatedProp": "", @@ -36466,7 +36489,7 @@ { "name": "value", "optional": false, - "type": "boolean", + "type": "string", "description": "New value." } ], @@ -36479,7 +36502,7 @@ { "name": "value", "optional": false, - "type": "boolean", + "type": "string", "description": "New value." } ], @@ -36492,8 +36515,8 @@ { "name": "event", "optional": false, - "type": "Event", - "description": "Browser event." + "type": "InputOtpChangeEvent", + "description": "Custom change event." } ], "returnType": "void", @@ -36536,6 +36559,10 @@ "description": "Custom passthrough(pt) option method.", "props": [] }, + "InputOtpChangeEvent": { + "description": "Custom change event.", + "props": [] + }, "InputOtpSharedPassThroughMethodOptions": { "description": "Custom shared passthrough(pt) option method.", "props": [] diff --git a/packages/primevue/src/tree/Tree.spec.js b/packages/primevue/src/tree/Tree.spec.js index d2b0b507a..848212857 100644 --- a/packages/primevue/src/tree/Tree.spec.js +++ b/packages/primevue/src/tree/Tree.spec.js @@ -47,17 +47,17 @@ describe('Tree.vue', () => { filter: true } }); - - let searchField = wrapper.find('input.p-inputtext'); - const key = 't'; - searchField.element.value = key; + + let searchField = wrapper.find('input.p-inputtext'); + const key = 't'; + searchField.element.value = key; await searchField.trigger('keyup', { - key - }); + key + }); expect(wrapper.emitted('filter')).toBeTruthy(); - expect(wrapper.emitted('filter')[0][0].value).toEqual(key); + expect(wrapper.emitted('filter')[0][0].value).toEqual(key); }); it('should render icon', ({ expect }) => { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0d0c6d76d..3b2eef468 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -231,7 +231,7 @@ importers: devDependencies: '@nuxt/devtools': specifier: ^0.8.5 - version: 0.8.5(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1) + version: 0.8.5(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)) '@nuxt/eslint-config': specifier: ^0.2.0 version: 0.2.0(eslint@8.57.1) @@ -3014,8 +3014,8 @@ packages: consola@2.15.3: resolution: {integrity: sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==} - consola@3.3.1: - resolution: {integrity: sha512-GyKnPG3/I+a4RtJxgHquJXWr70g9I3c4NT3dvqh0LPHQP2nZFQBOBszb7a5u/pGzqr40AKplQA6UxM1BSynSXg==} + consola@3.3.3: + resolution: {integrity: sha512-Qil5KwghMzlqd51UXM0b6fyaGHtOC22scxrwrz4A2882LyUMwQjnvaedN1HAeXzphspQ6CpHkzMAWxBTUruDLg==} engines: {node: ^14.18.0 || >=16.10.0} console-control-strings@1.1.0: @@ -3413,8 +3413,8 @@ packages: error-stack-parser-es@0.1.5: resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} - es-module-lexer@1.5.4: - resolution: {integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==} + es-module-lexer@1.6.0: + resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==} esbuild@0.17.19: resolution: {integrity: sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==} @@ -6229,8 +6229,8 @@ packages: resolution: {integrity: sha512-us4j03/499KhbGP8BU7Hrzrgseo+KdfJYWcbcajCOqsAyb8Gk0Yn2kiUIcZISYCb1JFaZfIuG3b42HmguVOKCQ==} engines: {node: '>=18.12.0'} - unstorage@1.14.1: - resolution: {integrity: sha512-0MBKpoVhNLL/Ixvue9lIsrHkwwWW9/f3TRftsYu1R7nZJJyHSdgPMBDjny2op07nirnS3OX6H3u+YDFGld+1Bg==} + unstorage@1.14.3: + resolution: {integrity: sha512-nj1rtc2XWCck2fDB39sboAajqooj9LmxZ9/eBM1XR+iUQAFctKvLl0FcPP5f4vzRgU1dmJ03SZhqZMLc9RDXIA==} peerDependencies: '@azure/app-configuration': ^1.8.0 '@azure/cosmos': ^4.2.0 @@ -6248,7 +6248,7 @@ packages: aws4fetch: ^1.0.20 db0: '>=0.2.1' idb-keyval: ^6.2.1 - ioredis: ^5.4.1 + ioredis: ^5.4.2 uploadthing: ^7.4.1 peerDependenciesMeta: '@azure/app-configuration': @@ -8069,7 +8069,7 @@ snapshots: '@mapbox/node-pre-gyp@2.0.0-rc.0(encoding@0.1.13)': dependencies: - consola: 3.3.1 + consola: 3.3.3 detect-libc: 2.0.3 https-proxy-agent: 7.0.6(supports-color@9.4.0) node-fetch: 2.7.0(encoding@0.1.13) @@ -8177,12 +8177,13 @@ snapshots: '@nuxt/devalue@2.0.2': {} - '@nuxt/devtools-kit@0.8.5(magicast@0.3.5)(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)': + '@nuxt/devtools-kit@0.8.5(magicast@0.3.5)(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0))': dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) execa: 7.2.0 nuxt: 3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2) + vite: 5.4.11(@types/node@18.19.68)(terser@5.37.0) transitivePeerDependencies: - magicast - rollup @@ -8190,7 +8191,7 @@ snapshots: '@nuxt/devtools-wizard@0.8.5': dependencies: - consola: 3.3.1 + consola: 3.3.3 diff: 5.2.0 execa: 7.2.0 global-dirs: 3.0.1 @@ -8201,14 +8202,14 @@ snapshots: rc9: 2.1.2 semver: 7.6.3 - '@nuxt/devtools@0.8.5(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)': + '@nuxt/devtools@0.8.5(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0))': dependencies: '@antfu/utils': 0.7.10 - '@nuxt/devtools-kit': 0.8.5(magicast@0.3.5)(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1) + '@nuxt/devtools-kit': 0.8.5(magicast@0.3.5)(nuxt@3.3.2(@types/node@18.19.68)(db0@0.2.1)(encoding@0.1.13)(eslint@8.57.1)(ioredis@5.4.2)(magicast@0.3.5)(optionator@0.9.4)(rollup@4.29.1)(terser@5.37.0)(typescript@5.7.2))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)) '@nuxt/devtools-wizard': 0.8.5 '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) birpc: 0.2.19 - consola: 3.3.1 + consola: 3.3.3 error-stack-parser-es: 0.1.5 execa: 7.2.0 fast-glob: 3.3.2 @@ -8235,8 +8236,9 @@ snapshots: simple-git: 3.27.0 sirv: 2.0.4 unimport: 3.14.5(rollup@4.29.1) - vite-plugin-inspect: 0.7.42(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1) - vite-plugin-vue-inspector: 3.7.2 + vite: 5.4.11(@types/node@18.19.68)(terser@5.37.0) + vite-plugin-inspect: 0.7.42(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)) + vite-plugin-vue-inspector: 3.7.2(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)) wait-on: 7.2.0 which: 3.0.1 ws: 8.18.0 @@ -8263,7 +8265,7 @@ snapshots: dependencies: '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@3.29.5) c12: 2.0.1(magicast@0.3.5) - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 destr: 2.0.3 globby: 14.0.2 @@ -8290,7 +8292,7 @@ snapshots: dependencies: '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) c12: 2.0.1(magicast@0.3.5) - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 destr: 2.0.3 globby: 14.0.2 @@ -8317,7 +8319,7 @@ snapshots: dependencies: '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) c12: 2.0.1(magicast@0.3.5) - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 destr: 2.0.3 globby: 14.0.2 @@ -8395,7 +8397,7 @@ snapshots: dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 magic-regexp: 0.8.0 mlly: 1.7.3 @@ -8414,7 +8416,7 @@ snapshots: dependencies: c12: 2.0.1(magicast@0.3.5) compatx: 0.1.8 - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 hookable: 5.5.3 pathe: 1.1.2 @@ -8434,7 +8436,7 @@ snapshots: dependencies: c12: 2.0.1(magicast@0.3.5) compatx: 0.1.8 - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 hookable: 5.5.3 pathe: 1.1.2 @@ -8494,7 +8496,7 @@ snapshots: dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@3.29.5) citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 destr: 2.0.3 dotenv: 16.4.7 git-url-parse: 16.0.0 @@ -8515,7 +8517,7 @@ snapshots: dependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 destr: 2.0.3 dotenv: 16.4.7 git-url-parse: 16.0.0 @@ -8537,7 +8539,7 @@ snapshots: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) '@nuxt/schema': 3.15.0(magicast@0.3.5)(rollup@4.29.1) c12: 2.0.1(magicast@0.3.5) - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 destr: 2.0.3 estree-walker: 3.0.3 @@ -9933,7 +9935,7 @@ snapshots: dependencies: c12: 1.11.2(magicast@0.3.5) colorette: 2.0.20 - consola: 3.3.1 + consola: 3.3.3 convert-gitmoji: 0.1.5 mri: 1.2.0 node-fetch-native: 1.6.4 @@ -9978,7 +9980,7 @@ snapshots: citty@0.1.6: dependencies: - consola: 3.3.1 + consola: 3.3.3 clean-stack@2.2.0: {} @@ -10071,7 +10073,7 @@ snapshots: consola@2.15.3: {} - consola@3.3.1: {} + consola@3.3.3: {} console-control-strings@1.1.0: {} @@ -10460,7 +10462,7 @@ snapshots: error-stack-parser-es@0.1.5: {} - es-module-lexer@1.5.4: {} + es-module-lexer@1.6.0: {} esbuild@0.17.19: optionalDependencies: @@ -10909,7 +10911,7 @@ snapshots: giget@1.2.3: dependencies: citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 node-fetch-native: 1.6.4 nypm: 0.3.12 @@ -11412,7 +11414,7 @@ snapshots: '@parcel/watcher-wasm': 2.5.0 citty: 0.1.6 clipboardy: 4.0.0 - consola: 3.3.1 + consola: 3.3.3 crossws: 0.3.1 defu: 6.1.4 get-port-please: 3.1.2 @@ -11736,7 +11738,7 @@ snapshots: citty: 0.1.6 compatx: 0.1.8 confbox: 0.1.8 - consola: 3.3.1 + consola: 3.3.3 cookie-es: 1.2.2 croner: 9.0.0 crossws: 0.3.1 @@ -11783,7 +11785,7 @@ snapshots: unctx: 2.4.1 unenv: 1.10.0 unimport: 3.14.5(rollup@4.29.1) - unstorage: 1.14.1(db0@0.2.1)(ioredis@5.4.2) + unstorage: 1.14.3(db0@0.2.1)(ioredis@5.4.2) untyped: 1.5.2 unwasm: 0.3.9 transitivePeerDependencies: @@ -11830,7 +11832,7 @@ snapshots: c12: 1.11.2(magicast@0.3.5) chalk: 5.4.1 chokidar: 3.6.0 - consola: 3.3.1 + consola: 3.3.3 cookie-es: 0.5.0 defu: 6.1.4 destr: 1.2.2 @@ -11871,7 +11873,7 @@ snapshots: ufo: 1.5.4 unenv: 1.10.0 unimport: 3.14.5(rollup@3.29.5) - unstorage: 1.14.1(db0@0.2.1)(ioredis@5.4.2) + unstorage: 1.14.3(db0@0.2.1)(ioredis@5.4.2) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -12190,7 +12192,7 @@ snapshots: nypm@0.3.12: dependencies: citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 execa: 8.0.1 pathe: 1.1.2 pkg-types: 1.2.1 @@ -13615,7 +13617,7 @@ snapshots: bundle-require: 5.1.0(esbuild@0.24.2) cac: 6.7.14 chokidar: 4.0.3 - consola: 3.3.1 + consola: 3.3.3 debug: 4.4.0(supports-color@9.4.0) esbuild: 0.24.2 joycon: 3.1.1 @@ -13685,7 +13687,7 @@ snapshots: '@rollup/pluginutils': 5.1.4(rollup@3.29.5) chalk: 5.4.1 citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 esbuild: 0.19.12 globby: 13.2.2 @@ -13721,7 +13723,7 @@ snapshots: unenv@1.10.0: dependencies: - consola: 3.3.1 + consola: 3.3.3 defu: 6.1.4 mime: 3.0.0 node-fetch-native: 1.6.4 @@ -13847,14 +13849,12 @@ snapshots: acorn: 8.14.0 webpack-virtual-modules: 0.6.2 - unstorage@1.14.1(db0@0.2.1)(ioredis@5.4.2): + unstorage@1.14.3(db0@0.2.1)(ioredis@5.4.2): dependencies: anymatch: 3.1.3 chokidar: 3.6.0 - citty: 0.1.6 destr: 2.0.3 h3: 1.13.0 - listhen: 1.9.0 lru-cache: 10.4.3 node-fetch-native: 1.6.4 ofetch: 1.4.1 @@ -13868,7 +13868,7 @@ snapshots: untun@0.1.3: dependencies: citty: 0.1.6 - consola: 3.3.1 + consola: 3.3.3 pathe: 1.1.2 untyped@1.5.2: @@ -14011,7 +14011,7 @@ snapshots: optionator: 0.9.4 typescript: 5.7.2 - vite-plugin-inspect@0.7.42(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1): + vite-plugin-inspect@0.7.42(@nuxt/kit@3.15.0(magicast@0.3.5)(rollup@4.29.1))(rollup@4.29.1)(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)): dependencies: '@antfu/utils': 0.7.10 '@rollup/pluginutils': 5.1.4(rollup@4.29.1) @@ -14021,13 +14021,14 @@ snapshots: open: 9.1.0 picocolors: 1.1.1 sirv: 2.0.4 + vite: 5.4.11(@types/node@18.19.68)(terser@5.37.0) optionalDependencies: '@nuxt/kit': 3.15.0(magicast@0.3.5)(rollup@4.29.1) transitivePeerDependencies: - rollup - supports-color - vite-plugin-vue-inspector@3.7.2: + vite-plugin-vue-inspector@3.7.2(vite@5.4.11(@types/node@18.19.68)(terser@5.37.0)): dependencies: '@babel/core': 7.26.0 '@babel/plugin-proposal-decorators': 7.25.9(@babel/core@7.26.0) @@ -14038,6 +14039,7 @@ snapshots: '@vue/compiler-dom': 3.5.13 kolorist: 1.8.0 magic-string: 0.30.17 + vite: 5.4.11(@types/node@18.19.68)(terser@5.37.0) transitivePeerDependencies: - supports-color @@ -14294,7 +14296,7 @@ snapshots: browserslist: 4.24.3 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.0 - es-module-lexer: 1.5.4 + es-module-lexer: 1.6.0 eslint-scope: 5.1.1 events: 3.3.0 glob-to-regexp: 0.4.1