@db-ux/wc-core-components 4.5.4-mcp-server-migrate-tool-test-1-eb724df → 4.5.4-postcss2-6de35db
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/README.md +11 -9
- package/dist/cjs/db-custom-select-dropdown_5.cjs.entry.js +7 -9
- package/dist/cjs/db-select.cjs.entry.js +4 -4
- package/dist/cjs/db-textarea.cjs.entry.js +4 -6
- package/dist/collection/components/input/input.js +7 -9
- package/dist/collection/components/select/select.js +4 -4
- package/dist/collection/components/textarea/textarea.js +4 -6
- package/dist/collection/utils/form-components.js +25 -3
- package/dist/custom-elements.json +133 -133
- package/dist/db-ux/db-ux.esm.js +1 -1
- package/dist/db-ux/{p-4f519859.entry.js → p-af15c7c1.entry.js} +1 -1
- package/dist/db-ux/p-b5902b40.entry.js +1 -0
- package/dist/db-ux/{p-fc9fb7cd.entry.js → p-fa61a750.entry.js} +1 -1
- package/dist/esm/db-custom-select-dropdown_5.entry.js +7 -9
- package/dist/esm/db-select.entry.js +4 -4
- package/dist/esm/db-textarea.entry.js +4 -6
- package/dist/types/utils/form-components.d.ts +1 -1
- package/dist/vscode.html-custom-data.json +20 -20
- package/dist/web-types.json +43 -43
- package/package.json +3 -3
- package/dist/db-ux/p-2c30a356.entry.js +0 -1
package/dist/web-types.json
CHANGED
|
@@ -7399,118 +7399,118 @@
|
|
|
7399
7399
|
}
|
|
7400
7400
|
},
|
|
7401
7401
|
{
|
|
7402
|
-
"name": "
|
|
7402
|
+
"name": "radio-checked",
|
|
7403
7403
|
"description": "\n---\n",
|
|
7404
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7404
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-checked/properties",
|
|
7405
7405
|
"attributes": [],
|
|
7406
7406
|
"events": [],
|
|
7407
7407
|
"js": { "properties": [], "events": [] }
|
|
7408
7408
|
},
|
|
7409
7409
|
{
|
|
7410
|
-
"name": "
|
|
7410
|
+
"name": "radio-density",
|
|
7411
7411
|
"description": "\n---\n",
|
|
7412
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7412
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-density/properties",
|
|
7413
7413
|
"attributes": [],
|
|
7414
7414
|
"events": [],
|
|
7415
7415
|
"js": { "properties": [], "events": [] }
|
|
7416
7416
|
},
|
|
7417
7417
|
{
|
|
7418
|
-
"name": "
|
|
7418
|
+
"name": "radio-disabled",
|
|
7419
7419
|
"description": "\n---\n",
|
|
7420
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7420
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-disabled/properties",
|
|
7421
7421
|
"attributes": [],
|
|
7422
7422
|
"events": [],
|
|
7423
7423
|
"js": { "properties": [], "events": [] }
|
|
7424
7424
|
},
|
|
7425
7425
|
{
|
|
7426
|
-
"name": "
|
|
7426
|
+
"name": "radio-required",
|
|
7427
7427
|
"description": "\n---\n",
|
|
7428
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7429
|
-
"attributes": [
|
|
7430
|
-
{
|
|
7431
|
-
"name": "is-patternhub",
|
|
7432
|
-
"value": { "type": "PatternhubProps[\"isPatternhub\"]" }
|
|
7433
|
-
}
|
|
7434
|
-
],
|
|
7428
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-required/properties",
|
|
7429
|
+
"attributes": [],
|
|
7435
7430
|
"events": [],
|
|
7436
|
-
"js": {
|
|
7437
|
-
"properties": [
|
|
7438
|
-
{
|
|
7439
|
-
"name": "isPatternhub",
|
|
7440
|
-
"type": "PatternhubProps[\"isPatternhub\"]"
|
|
7441
|
-
}
|
|
7442
|
-
],
|
|
7443
|
-
"events": []
|
|
7444
|
-
}
|
|
7431
|
+
"js": { "properties": [], "events": [] }
|
|
7445
7432
|
},
|
|
7446
7433
|
{
|
|
7447
|
-
"name": "radio-
|
|
7434
|
+
"name": "radio-show-label",
|
|
7448
7435
|
"description": "\n---\n",
|
|
7449
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-
|
|
7436
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-show-label/properties",
|
|
7450
7437
|
"attributes": [],
|
|
7451
7438
|
"events": [],
|
|
7452
7439
|
"js": { "properties": [], "events": [] }
|
|
7453
7440
|
},
|
|
7454
7441
|
{
|
|
7455
|
-
"name": "radio-
|
|
7442
|
+
"name": "radio-show-required-asterisk",
|
|
7456
7443
|
"description": "\n---\n",
|
|
7457
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-
|
|
7444
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-show-required-asterisk/properties",
|
|
7458
7445
|
"attributes": [],
|
|
7459
7446
|
"events": [],
|
|
7460
7447
|
"js": { "properties": [], "events": [] }
|
|
7461
7448
|
},
|
|
7462
7449
|
{
|
|
7463
|
-
"name": "radio-
|
|
7450
|
+
"name": "radio-size",
|
|
7464
7451
|
"description": "\n---\n",
|
|
7465
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-
|
|
7452
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-size/properties",
|
|
7466
7453
|
"attributes": [],
|
|
7467
7454
|
"events": [],
|
|
7468
7455
|
"js": { "properties": [], "events": [] }
|
|
7469
7456
|
},
|
|
7470
7457
|
{
|
|
7471
|
-
"name": "radio-
|
|
7458
|
+
"name": "radio-validation",
|
|
7472
7459
|
"description": "\n---\n",
|
|
7473
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-
|
|
7460
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-validation/properties",
|
|
7474
7461
|
"attributes": [],
|
|
7475
7462
|
"events": [],
|
|
7476
7463
|
"js": { "properties": [], "events": [] }
|
|
7477
7464
|
},
|
|
7478
7465
|
{
|
|
7479
|
-
"name": "radio-
|
|
7466
|
+
"name": "radio-showcase",
|
|
7480
7467
|
"description": "\n---\n",
|
|
7481
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-
|
|
7482
|
-
"attributes": [
|
|
7468
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/radio-showcase/properties",
|
|
7469
|
+
"attributes": [
|
|
7470
|
+
{
|
|
7471
|
+
"name": "is-patternhub",
|
|
7472
|
+
"value": { "type": "PatternhubProps[\"isPatternhub\"]" }
|
|
7473
|
+
}
|
|
7474
|
+
],
|
|
7483
7475
|
"events": [],
|
|
7484
|
-
"js": {
|
|
7476
|
+
"js": {
|
|
7477
|
+
"properties": [
|
|
7478
|
+
{
|
|
7479
|
+
"name": "isPatternhub",
|
|
7480
|
+
"type": "PatternhubProps[\"isPatternhub\"]"
|
|
7481
|
+
}
|
|
7482
|
+
],
|
|
7483
|
+
"events": []
|
|
7484
|
+
}
|
|
7485
7485
|
},
|
|
7486
7486
|
{
|
|
7487
|
-
"name": "
|
|
7487
|
+
"name": "section-density",
|
|
7488
7488
|
"description": "\n---\n",
|
|
7489
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7489
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/section-density/properties",
|
|
7490
7490
|
"attributes": [],
|
|
7491
7491
|
"events": [],
|
|
7492
7492
|
"js": { "properties": [], "events": [] }
|
|
7493
7493
|
},
|
|
7494
7494
|
{
|
|
7495
|
-
"name": "
|
|
7495
|
+
"name": "section-spacing",
|
|
7496
7496
|
"description": "\n---\n",
|
|
7497
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7497
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/section-spacing/properties",
|
|
7498
7498
|
"attributes": [],
|
|
7499
7499
|
"events": [],
|
|
7500
7500
|
"js": { "properties": [], "events": [] }
|
|
7501
7501
|
},
|
|
7502
7502
|
{
|
|
7503
|
-
"name": "
|
|
7503
|
+
"name": "section-width",
|
|
7504
7504
|
"description": "\n---\n",
|
|
7505
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7505
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/section-width/properties",
|
|
7506
7506
|
"attributes": [],
|
|
7507
7507
|
"events": [],
|
|
7508
7508
|
"js": { "properties": [], "events": [] }
|
|
7509
7509
|
},
|
|
7510
7510
|
{
|
|
7511
|
-
"name": "
|
|
7511
|
+
"name": "section-showcase",
|
|
7512
7512
|
"description": "\n---\n",
|
|
7513
|
-
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/
|
|
7513
|
+
"doc-url": "https://design-system.deutschebahn.com/core-web/review/main/components/section-showcase/properties",
|
|
7514
7514
|
"attributes": [
|
|
7515
7515
|
{
|
|
7516
7516
|
"name": "is-patternhub",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/wc-core-components",
|
|
3
|
-
"version": "4.5.4-
|
|
3
|
+
"version": "4.5.4-postcss2-6de35db",
|
|
4
4
|
"description": "Stencil components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"web-types": "./dist/web-types.json",
|
|
49
49
|
"customElements": "dist/custom-elements.json",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@db-ux/core-components": "4.5.4-
|
|
52
|
-
"@db-ux/core-foundations": "4.5.4-
|
|
51
|
+
"@db-ux/core-components": "4.5.4-postcss2-6de35db",
|
|
52
|
+
"@db-ux/core-foundations": "4.5.4-postcss2-6de35db"
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as i,c as t,h as s}from"./p-kHKR5QG5.js";import{l as h,f as a,g as e,h as d,k as l,b as n,r as o,a as r}from"./p-BdL-nI5y.js";import{h as c,d as v,s as u,u as f,f as b,e as m,l as w,c as p}from"./p-xkoBSP8R.js";import{c as y}from"./p-D5mInaY7.js";const k=class{constructor(s){i(this,s),this.input=t(this,"input"),this.change=t(this,"change"),this.blur=t(this,"blur"),this.focus=t(this,"focus"),this._id=void 0,this._messageId=void 0,this._validMessageId=void 0,this._invalidMessageId=void 0,this._invalidMessage=void 0,this._descByIds=void 0,this._value="",this._voiceOverFallback="",this.abortController=void 0}hasValidState(){var i;return!!(null!==(i=this.validMessage)&&void 0!==i?i:"valid"===this.validation)}handleValidation(){var i,t,s,a;(null===(i=this._ref)||void 0===i?void 0:i.validity.valid)&&"invalid"!==this.validation?this.hasValidState()&&(null===(s=this._ref)||void 0===s?void 0:s.validity.valid)&&(this.required||this.minLength||this.maxLength)?(this._descByIds=this._validMessageId,c()&&(this._voiceOverFallback=null!==(a=this.validMessage)&&void 0!==a?a:l,v((()=>this._voiceOverFallback=""),1e3))):this._descByIds=u(this.message,this.showMessage)?this._messageId:void 0:(this._descByIds=this._invalidMessageId,this._invalidMessage=this.invalidMessage||(null===(t=this._ref)||void 0===t?void 0:t.validationMessage)||h,c()&&(this._voiceOverFallback=this._invalidMessage,v((()=>this._voiceOverFallback=""),1e3)))}handleInput(i,t){this.input&&this.input.emit(i),this.handleValidation()}handleChange(i,t){this.change&&this.change.emit(i),this.handleValidation()}handleBlur(i){this.blur&&this.blur.emit(i)}handleFocus(i){this.focus&&this.focus.emit(i)}resetIds(){var i,t,s;const h=null!==(s=null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&void 0!==s?s:`textarea-${f()}`;this._id=h,this._messageId=h+a,this._validMessageId=h+e,this._invalidMessageId=h+d}enableAttributePassing(i,t){const s=null==i?void 0:i.closest(t);if(i&&s){const t=s.attributes;for(let h=0;h<t.length;h++){const a=t.item(h);if(a&&"data-density"!==a.name&&(a.name.startsWith("data-")||a.name.startsWith("aria-")))i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"data-density"!==a.name&&"class"!==a.name&&"style"===a.name)i.setAttribute(a.name,a.value),s.removeAttribute(a.name);else if(a&&"class"===a.name){const t=a.value.includes("hydrated"),h=a.value.replace("hydrated","").trim(),e=i.getAttribute("class");i.setAttribute(a.name,`${e?`${e} `:""}${h}`),t?s.setAttribute("class","hydrated"):s.removeAttribute(a.name)}}}}watch0Fn(){var i,t;(null!==(i=this.id)&&void 0!==i?i:null===(t=this.propOverrides)||void 0===t?void 0:t.id)&&this.resetIds()}watch0(){this.watch0Fn()}watch1Fn(){var i;this._invalidMessage=this.invalidMessage||(null===(i=this._ref)||void 0===i?void 0:i.validationMessage)||h}watch1(){this.watch1Fn()}watch2Fn(){if(this._id){const i=this._id+a;this._messageId=i,this._validMessageId=this._id+e,this._invalidMessageId=this._id+d,u(this.message,this.showMessage)&&(this._descByIds=i),this.handleValidation()}}watch2(){this.watch2Fn()}watch3Fn(){void 0!==this.value&&(this._value=this.value)}watch3(){this.watch3Fn()}watch4Fn(){if(this._ref){const i=void 0;let t=this.abortController;t||(t=new AbortController,this.abortController=t),y(this._ref,{value:this.value,defaultValue:i},(i=>{this.handleChange(i,!0),this.handleInput(i,!0)}),t.signal)}}watch4(){this.watch4Fn()}componentDidLoad(){this.enableAttributePassing(this._ref,"db-textarea"),this.resetIds(),this._invalidMessage=this.invalidMessage||h,this.watch0Fn(),this.watch1Fn(),this.watch2Fn(),this.watch3Fn(),this.watch4Fn()}disconnectedCallback(){var i;null===(i=this.abortController)||void 0===i||i.abort()}render(){var i,t,h,a,e;return s("div",{key:"acb23abfb477beeceebdf88503a51a6aa90e268e",class:p("db-textarea",this.className),"data-variant":this.variant,"data-hide-asterisk":w(this.showRequiredAsterisk),"data-hide-label":w(this.showLabel)},s("label",{key:"03df1963dce7436d616df5f26c8fbff37243421f",htmlFor:this._id},null!==(i=this.label)&&void 0!==i?i:r),s("textarea",{key:"b09e8a714ee44c18a2af738d90c6939309eb143c","aria-invalid":"invalid"===this.validation,"data-custom-validity":this.validation,"data-field-sizing":this.fieldSizing,ref:i=>{this._ref=i},id:this._id,"data-resize":this.resize,"data-hide-resizer":w(null===(t=this.showResizer)||void 0===t||t),disabled:m(this.disabled,"disabled"),required:m(this.required,"required"),readOnly:m(this.readOnly,"readOnly")||m(this.readonly,"readonly"),form:this.form,maxLength:b(this.maxLength,this.maxlength),minLength:b(this.minLength,this.minlength),name:this.name,wrap:this.wrap,spellcheck:this.spellCheck,autocomplete:this.autocomplete,onInput:i=>this.handleInput(i),onChange:i=>this.handleChange(i),onBlur:i=>this.handleBlur(i),onFocus:i=>this.handleFocus(i),value:null!==(h=this.value)&&void 0!==h?h:this._value,"aria-describedby":null!==(a=this.ariaDescribedBy)&&void 0!==a?a:this._descByIds,placeholder:null!==(e=this.placeholder)&&void 0!==e?e:n,rows:b(this.rows,o),cols:b(this.cols)}),u(this.message,this.showMessage)?s("db-infotext",{size:"small",icon:this.messageIcon,id:this._messageId},this.message):null,this.hasValidState()?s("db-infotext",{size:"small",semantic:"successful",id:this._validMessageId},this.validMessage||l):null,s("db-infotext",{key:"c62d3e639536d955cc454b43c289b0ad11e9d7b3",size:"small",semantic:"critical",id:this._invalidMessageId},this._invalidMessage),s("span",{key:"430d5b39be9fa9eb29c7720f46be601fa1f25161","data-visually-hidden":"true",role:"status"},this._voiceOverFallback))}static get watchers(){return{id:[{watch0:0}],"propOverrides?.id":[{watch0:0}],_ref:[{watch1:0},{watch4:0}],invalidMessage:[{watch1:0}],_id:[{watch2:0}],value:[{watch3:0}]}}};export{k as db_textarea}
|