Compare commits

..
Author SHA1 Message Date
Paul Bottein 3204eeb75f Disable chips of a disabled multiple select 2026-12-02 20:22:35 +01:00
6 changed files with 78 additions and 86 deletions

No files matched your search

+2 -2
View File
@@ -189,7 +189,7 @@
"fancy-log": "2.0.0",
"fs-extra": "11.4.1",
"generate-license-file": "4.2.5",
"glob": "14.0.7",
"glob": "14.0.6",
"globals": "17.14.0",
"gulp": "5.0.1",
"gulp-json-transform": "0.5.0",
@@ -223,7 +223,7 @@
"webpackbar": "7.0.0",
"workbox-build": "7.4.1"
},
"packageManager": "[email protected]5.1",
"packageManager": "[email protected]4.0",
"volta": {
"node": "24.22.3"
}
+74 -74
View File
@@ -7,172 +7,172 @@ importers:
configDependencies: {}
packageManagerDependencies:
pnpm:
specifier: 12.25.1
version: 12.25.1
specifier: 12.24.0
version: 12.24.0
packages:
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-QHXIyWMsuntq05xq9twYS6upQZS2TYeJIfmBWDFw1Xyi8XQxiaD06DSTWwZYjR38GwOP/dveeMC2jk2Y68IAAg==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-X22iCSEW/KDoYthnl5DXWv/ikFBuXHx91Gl6sjCcSVVIN3emVFQYkezWzaYYyG/I82e3jXEpZei4ItBGMtxxCA==}
cpu: [arm64]
os: [android]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-bOJZTzi5c0MrI8xn6qU+0QzYu3gHMUtwLxb8ZRzuk/by7u6XhGXpn+gfppw7BF3te+rxpqK/mSR2PXb40d/7kg==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-gRJtKBWbmztU5GEpUIPNR2oHDKljHsyKyUrJK9JBDnwVDdnabVUHCNYeO+wukkiYSvWt7zkRBtOP3IXMDDiNLQ==}
cpu: [x64]
os: [android]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-NXG2kaXA7ui3T7aznhAmG8AwWZ/BmKkxqT9DIIQJ0jU1jLKkRhGce1gbyJ+RAeGKx0HcRHAJbRi38lcHgpCteA==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-0BT++Bo1b5cHULSRiKAiNwwh5KNFlVvA+qupw+MjhkOfKdVY7iSztUeHqQT3pwkE/Ls3Sv7PhszBdaB7j6T20g==}
cpu: [arm64]
os: [darwin]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-cDnnUeocsg6ESvgjxTs9az5SUt9MEaINaMKGzAEqrfFMCRvaYgkC+0Ct7eYb/41i9WYPvd9DFv8H29LHECwcVA==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-zRT0h/538rJgoxSaYRccWPVlEh/v/vsE0VhfiOuNCxTnX9GCi//ttM7F+gkb5uD5Anspj52SR1iUU8C3oqmpbw==}
cpu: [x64]
os: [darwin]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-LEDM+BE5BdYEetfEHKSD9f5IhOWmMAHix9bMqhds6dn3cMICNQeJZQaoimwUDeVVAR8yMtvaDwRZGuWXOq5gJw==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-irpbUEPP8LCGlX7SElqZrzcTIZ/B1pgwO0uYlf1DiedVBnsYM9COoWuoXnbudtFpuwCtWGSOOhsMNGGOsiAonA==}
cpu: [x64]
os: [freebsd]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-LtURUp1sJoS0ENQtKLk+oTI7oSlcEDHl3SOxxS8AUD/FTmP1AM1htwYwxi+91J+MTinOYqcUFrgb1f87Zn1Vfw==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-LCvWPUR1+/EQ/AVp9U1zLKMOo2i0G9+6jSSw1xaL59VR13KEPbTFsKFDO8fmn2o1BAQG5rh9lx+KHVinTSDWpQ==}
cpu: [arm64]
os: [linux]
libc: [musl]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-55Ni6+zebnL2zdvKq23tZCEWbtPSMKeQ1MwJAwqDqS/VjD/Z6hT0BlJSTFvHKUgrWOBxnH501iTIyQgLVD+Cfw==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-xSu3krlF1mW+v20odelPYs56om88VGZp6pE0vJKmUtPJ+8EUB6OA4WbVyyxEuqtubhkvFxyZiWDN/cvDKF2OWw==}
cpu: [arm64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-52Fzal3IdcqsJ1kChNZC00JoFcwA9tDem/qTuZxpeJcc0KTALXTI5U/LbVF1+OXBfn72ADjS0Hxewkng7Q1iBA==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-xuIEolHGrT9LbKhLeSrjCT3xlC62kNrEHGjkuUJIHCdgWCRSVoH4Xh0jvVn29/ArKN7aFurqnl8EQoQ7leVJuw==}
cpu: [loong64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-x3b9VQyrmHi1IIejDGqZWrdmgbtTV/qgE3Sca0NVYmY6gT1cAvkKFq6tQvHJEgeEdny7hGKl+1sk6YkKRs1Sfg==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-OQxi46cY9uc91A6yv7qz6l1NlyVCTsWxbbgk0oKzhMIQuCt+U7OCHcwbfly5Y9FJSsERJVz2MYwVGvy4sgRtPw==}
cpu: [ppc64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-lPQ5PjYog/N07VsOBEZr661GgZ7y39wQLRCviHcL4RfpMBpe4XeJKK3W7YKl9NJz6+5/nzMYYfTcvZPFLWuMvA==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-uIFs1byuK2ZRcqmb6+9/KddZdHE+JUYM3yjxnN7H+x9A237EoGRnw8UeruWFW9OYMMfFTGRAxuq2b0DiYx4gHQ==}
cpu: [riscv64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-5kdJeOXns1O/PYqdR2Zk/0ci/0mCz1LhaJDIA6NiqNdgFxwCC6ufRTBiu9u4FB/F2MWBLPDtyHxwzpcbBFCP9Q==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-Ct1ggli4DyL/LnasrhqgEc8PDlzmhKx0DculRiWygyN+STzQWA/qwHtuMzgbLQd84CNUJGZfTrUkBYaXmLifKw==}
cpu: [s390x]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-GRsFj54bSmdhceZwrA+zReMfGJw6X6qpC4pJh6iLaUcy3p0fG7A7Zqr70AKmtzvW1Zm2VGkeeIzja6QSkN09Vw==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-NeIW64Azg/b+QFj6Z14BYb84pUKVIrvf15JhhuV7YmouaZbiMRG/8nDwIvEIRvwLqXacd4gVdcsGqUcO7oIYhQ==}
cpu: [x64]
os: [linux]
libc: [musl]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-Db2T6CtSNO8hjG6FISkOaZ2PW/OpynoXcT+jWEh44xDgSBt68rgbjGIbzjXSKJ+vH2mkoUxaUZCcLLusBVqelw==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-5As5an12DTY8MlssTLCaMtRDYpn9C3hxcasEDCJQC0VqS6ZnRmlLWsL8dI0ocqdh3ejW6o6F0esucP5MECo1nA==}
cpu: [x64]
os: [linux]
libc: [glibc]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-2hU5yNM/C8FT5eqbrNzB+0yGw/SS3oMJ1afk8pXEDsGU4vWdiiWxSqQ0kM8GHIvCDa/qRyw9ns98XWu5KZxxiA==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-bZxzTQU8hqBoLzjb6VELvxJNDnWUrNf3/xSbl7ewIPfVgvs8+R77Rc+30ynxWndr3tD6zJB/iEYIdxuGZB/bnQ==}
cpu: [x64]
os: [netbsd]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-v7YduE+TgEid1AiIThVBmYBnF0dj6vtk3ymcCkcM5FvanAM8MXoZhSiQYayQruh8xDwTXf5n8Zgn1OOi8WtqDg==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-TzhbjiypYbZ7HejRPjxzJreWVymMFtxcm9pvxOY7DUCmYxEcOqR0iJruzLXJL7STJ6O+KrpwpcybmiKPrhOZyg==}
cpu: [arm64]
os: [win32]
'@pnpm/[email protected]5.1':
resolution: {integrity: sha512-cMfLsOE4zxSYBZYWyK1tr6BvCKVDyC81CnZg953t/6MEL592D8gk0eGdHQilEcd+yO+o6Ey1W9LLQdjl7pglsQ==}
'@pnpm/[email protected]4.0':
resolution: {integrity: sha512-h0s1cTRBVxKLv7uDQaN0YIXRc6itKv3mbuw5m093HL9bqy7Ys+FPZ8gvR/+cABheg64ke1xwmqO4QbuBI+qbhQ==}
cpu: [x64]
os: [win32]
[email protected]5.1:
resolution: {integrity: sha512-psZ31wNNPXmvE28z2zPNbUEz1z+lZaBr1kqPCW0lN92HoI1o4Y/zd3cf9RwY4uwxvgO0RnDrGeJBiQ6uOu0Bag==}
[email protected]4.0:
resolution: {integrity: sha512-X5D1CkiqQPAdxDvTrLUoki/YmdO5CQFf2yOvc7sxxXjynOspvppNbwFGrbNCBqrDMnlgQ8xQJLgV73YojLrHZw==}
engines: {node: '>=18'}
hasBin: true
snapshots:
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
'@pnpm/[email protected]5.1':
'@pnpm/[email protected]4.0':
optional: true
[email protected]5.1:
[email protected]4.0:
optionalDependencies:
'@pnpm/exe.android-arm64': 12.25.1
'@pnpm/exe.android-x64': 12.25.1
'@pnpm/exe.darwin-arm64': 12.25.1
'@pnpm/exe.darwin-x64': 12.25.1
'@pnpm/exe.freebsd-x64': 12.25.1
'@pnpm/exe.linux-arm64': 12.25.1
'@pnpm/exe.linux-arm64-musl': 12.25.1
'@pnpm/exe.linux-loong64': 12.25.1
'@pnpm/exe.linux-ppc64': 12.25.1
'@pnpm/exe.linux-riscv64': 12.25.1
'@pnpm/exe.linux-s390x': 12.25.1
'@pnpm/exe.linux-x64': 12.25.1
'@pnpm/exe.linux-x64-musl': 12.25.1
'@pnpm/exe.netbsd-x64': 12.25.1
'@pnpm/exe.win32-arm64': 12.25.1
'@pnpm/exe.win32-x64': 12.25.1
'@pnpm/exe.android-arm64': 12.24.0
'@pnpm/exe.android-x64': 12.24.0
'@pnpm/exe.darwin-arm64': 12.24.0
'@pnpm/exe.darwin-x64': 12.24.0
'@pnpm/exe.freebsd-x64': 12.24.0
'@pnpm/exe.linux-arm64': 12.24.0
'@pnpm/exe.linux-arm64-musl': 12.24.0
'@pnpm/exe.linux-loong64': 12.24.0
'@pnpm/exe.linux-ppc64': 12.24.0
'@pnpm/exe.linux-riscv64': 12.24.0
'@pnpm/exe.linux-s390x': 12.24.0
'@pnpm/exe.linux-x64': 12.24.0
'@pnpm/exe.linux-x64-musl': 12.24.0
'@pnpm/exe.netbsd-x64': 12.24.0
'@pnpm/exe.win32-arm64': 12.24.0
'@pnpm/exe.win32-x64': 12.24.0
---
lockfileVersion: '9.0'
@@ -641,8 +641,8 @@ importers:
specifier: 4.2.5
version: 4.2.5([email protected])
glob:
specifier: 14.0.7
version: 14.0.7
specifier: 14.0.6
version: 14.0.6
globals:
specifier: 17.14.0
version: 17.14.0
@@ -5424,8 +5424,8 @@ packages:
resolution: {integrity: sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==}
engines: {node: 18 || 20 || >=22}
[email protected].7:
resolution: {integrity: sha512-ob8P0VbyEjcLG2ycNYmzYhZj65kkcN5b7tt5moGhTq3rkXtuU8MB+i0GIzPtLnSHVF2DkK4M+nQRojDvsOGVJw==}
[email protected].6:
resolution: {integrity: sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw==}
engines: {node: 18 || 20 || >=22}
[email protected]:
@@ -13409,7 +13409,7 @@ snapshots:
minipass: 7.1.3
path-scurry: 2.0.2
[email protected].7:
[email protected].6:
dependencies:
minimatch: 11.0.5
minipass: 7.1.3
@@ -36,8 +36,6 @@ export class HaFormExpandable extends LitElement implements HaFormElement {
key: string
) => string;
@property({ attribute: false }) public context?: Record<string, any>;
@query("ha-form", true) private _form?: HaForm;
public reportValidity(): boolean {
@@ -111,7 +109,6 @@ export class HaFormExpandable extends LitElement implements HaFormElement {
.computeLabel=${this._computeLabel}
.computeHelper=${this._computeHelper}
.localizeValue=${this.localizeValue}
.context=${this.context}
></ha-form>
</div>
</ha-expansion-panel>
-3
View File
@@ -35,8 +35,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
key: string
) => string;
@property({ attribute: false }) public context?: Record<string, any>;
@queryAll("ha-form", true) private _forms?: HaForm[];
static shadowRootOptions = {
@@ -85,7 +83,6 @@ export class HaFormGrid extends LitElement implements HaFormElement {
.computeLabel=${this.computeLabel}
.computeHelper=${this.computeHelper}
.localizeValue=${this.localizeValue}
.context=${this.context}
></ha-form>
`
)}
@@ -54,8 +54,6 @@ export class HaFormOptionalActions extends LitElement implements HaFormElement {
key: string
) => string;
@property({ attribute: false }) public context?: Record<string, any>;
@state() private _displayActions?: string[];
@query("ha-form") private _form?: HaForm;
@@ -132,7 +130,6 @@ export class HaFormOptionalActions extends LitElement implements HaFormElement {
.computeLabel=${this.computeLabel}
.computeHelper=${this.computeHelper}
.localizeValue=${this.localizeValue}
.context=${this.context}
></ha-form>
`
: nothing
@@ -206,7 +206,7 @@ export class HaSelectSelector extends LitElement {
<ha-sortable
slot="field"
no-style
.disabled=${!this.selector.select.reorder}
.disabled=${!this.selector.select.reorder || this.disabled}
@item-moved=${this._itemMoved}
draggable-selector="ha-input-chip"
handle-selector="button.primary.action"
@@ -225,6 +225,7 @@ export class HaSelectSelector extends LitElement {
<ha-input-chip
.idx=${idx}
@remove=${this._removeItem}
.disabled=${this.disabled}
.label=${label}
.title=${label}
selected