diff --git a/package-lock.json b/package-lock.json index ef70d4d6..c6a0ccad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4088,7 +4088,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-android-arm64": { "version": "4.27.3", @@ -4102,7 +4103,8 @@ "optional": true, "os": [ "android" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-darwin-arm64": { "version": "4.27.3", @@ -4116,7 +4118,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-darwin-x64": { "version": "4.27.3", @@ -4130,7 +4133,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-freebsd-arm64": { "version": "4.27.3", @@ -4144,7 +4148,8 @@ "optional": true, "os": [ "freebsd" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-freebsd-x64": { "version": "4.27.3", @@ -4158,7 +4163,8 @@ "optional": true, "os": [ "freebsd" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { "version": "4.27.3", @@ -4172,7 +4178,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { "version": "4.27.3", @@ -4186,7 +4193,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm64-gnu": { "version": "4.27.3", @@ -4200,7 +4208,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-arm64-musl": { "version": "4.27.3", @@ -4214,7 +4223,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { "version": "4.27.3", @@ -4228,7 +4238,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { "version": "4.27.3", @@ -4242,7 +4253,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-s390x-gnu": { "version": "4.27.3", @@ -4256,7 +4268,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-x64-gnu": { "version": "4.27.3", @@ -4270,7 +4283,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-linux-x64-musl": { "version": "4.27.3", @@ -4284,7 +4298,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-arm64-msvc": { "version": "4.27.3", @@ -4298,7 +4313,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-ia32-msvc": { "version": "4.27.3", @@ -4312,7 +4328,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rollup/rollup-win32-x64-msvc": { "version": "4.27.3", @@ -4326,7 +4343,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@rushstack/node-core-library": { "version": "5.10.0", @@ -9125,6 +9143,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } @@ -13008,6 +13027,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13025,6 +13045,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13042,6 +13063,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13059,6 +13081,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13076,6 +13099,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13093,6 +13117,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13110,6 +13135,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13127,6 +13153,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13144,6 +13171,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13161,6 +13189,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13178,6 +13207,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13195,6 +13225,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13212,6 +13243,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13229,6 +13261,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13246,6 +13279,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13263,6 +13297,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13280,6 +13315,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13297,6 +13333,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13314,6 +13351,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -13331,6 +13369,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=14.0.0" } @@ -14407,7 +14446,7 @@ "version": "5.6.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz", "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==", - "dev": true, + "devOptional": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -14973,6 +15012,7 @@ "os": [ "aix" ], + "peer": true, "engines": { "node": ">=12" } @@ -14990,6 +15030,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -15007,6 +15048,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -15024,6 +15066,7 @@ "os": [ "android" ], + "peer": true, "engines": { "node": ">=12" } @@ -15041,6 +15084,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=12" } @@ -15058,6 +15102,7 @@ "os": [ "darwin" ], + "peer": true, "engines": { "node": ">=12" } @@ -15075,6 +15120,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -15092,6 +15138,7 @@ "os": [ "freebsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -15109,6 +15156,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15126,6 +15174,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15143,6 +15192,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15160,6 +15210,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15177,6 +15228,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15194,6 +15246,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15211,6 +15264,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15228,6 +15282,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15245,6 +15300,7 @@ "os": [ "linux" ], + "peer": true, "engines": { "node": ">=12" } @@ -15262,6 +15318,7 @@ "os": [ "netbsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -15279,6 +15336,7 @@ "os": [ "openbsd" ], + "peer": true, "engines": { "node": ">=12" } @@ -15296,6 +15354,7 @@ "os": [ "sunos" ], + "peer": true, "engines": { "node": ">=12" } @@ -15313,6 +15372,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } @@ -15330,6 +15390,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } @@ -15347,6 +15408,7 @@ "os": [ "win32" ], + "peer": true, "engines": { "node": ">=12" } diff --git a/packages/core/src/components/inputs/BaseSelect/BaseSelect.spec.ts b/packages/core/src/components/inputs/BaseSelect/BaseSelect.spec.ts index f5c66252..6416f52d 100644 --- a/packages/core/src/components/inputs/BaseSelect/BaseSelect.spec.ts +++ b/packages/core/src/components/inputs/BaseSelect/BaseSelect.spec.ts @@ -44,7 +44,8 @@ describe('BaseSelect.vue', () => { const expectedOptions = [ new SelectOption('key1', 'label1'), new SelectOption('key2', 'label2'), - new SelectOption('key3', 'label3') + new SelectOption('key3', 'label3'), + new SelectOption(true, 'true') ] await wrapper.setProps({ options: expectedOptions }) @@ -55,6 +56,8 @@ describe('BaseSelect.vue', () => { expect(options.at(1).text()).toBe(expectedOptions[1].label) expect(options.at(2).attributes('value')).toBe(expectedOptions[2].key) expect(options.at(2).text()).toBe(expectedOptions[2].label) + expect(options.at(3).attributes('value')).toBe(expectedOptions[3].key?.toString()) + expect(options.at(3).text()).toBe(expectedOptions[3].label) }) it(':optionsLabel - options label not rendered if not set', async () => { const expectedOptionsLabel = '' diff --git a/packages/core/src/components/inputs/BaseSelect/BaseSelect.vue b/packages/core/src/components/inputs/BaseSelect/BaseSelect.vue index f03088eb..20156941 100644 --- a/packages/core/src/components/inputs/BaseSelect/BaseSelect.vue +++ b/packages/core/src/components/inputs/BaseSelect/BaseSelect.vue @@ -1,7 +1,17 @@