@pine-ds/core 2.1.2 → 2.1.3
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/components/index2.js +1 -1
- package/components/index2.js.map +1 -1
- package/components/pds-button2.js +1 -1
- package/components/pds-button2.js.map +1 -1
- package/components/pds-input.js +3 -3
- package/components/pds-input.js.map +1 -1
- package/components/pds-row.js +1 -1
- package/components/pds-row.js.map +1 -1
- package/components/pds-table-cell2.js +2 -2
- package/components/pds-table-cell2.js.map +1 -1
- package/components/pds-table-head-cell2.js +2 -2
- package/components/pds-table-head-cell2.js.map +1 -1
- package/components/pds-table-head.js +1 -1
- package/components/pds-table-head.js.map +1 -1
- package/components/pds-table-row.js +1 -1
- package/components/pds-table-row.js.map +1 -1
- package/components/pds-table.js +1 -1
- package/components/pds-table.js.map +1 -1
- package/components/pds-textarea.js +4 -4
- package/components/pds-textarea.js.map +1 -1
- package/dist/cjs/{index-0079013c.js → index-3ad62856.js} +2 -2
- package/dist/cjs/index-3ad62856.js.map +1 -0
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +2 -2
- package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-input.cjs.entry.js +4 -4
- package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-switch.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
- package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
- package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-table.cjs.entry.js +1 -1
- package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +5 -5
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/collection/components/pds-button/pds-button.js +17 -11
- package/dist/collection/components/pds-button/pds-button.js.map +1 -1
- package/dist/collection/components/pds-input/pds-input.js +8 -8
- package/dist/collection/components/pds-input/pds-input.js.map +1 -1
- package/dist/collection/components/pds-row/pds-row.css +7 -5
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +7 -4
- package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
- package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +3 -3
- package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
- package/dist/collection/components/pds-table/pds-table.js +4 -4
- package/dist/collection/components/pds-table/pds-table.js.map +1 -1
- package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.js +16 -16
- package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
- package/dist/docs.json +54 -39
- package/dist/esm/{index-3ca52e8f.js → index-56752d25.js} +2 -2
- package/dist/esm/index-56752d25.js.map +1 -0
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-button.entry.js +2 -2
- package/dist/esm/pds-button.entry.js.map +1 -1
- package/dist/esm/pds-checkbox.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-input.entry.js +4 -4
- package/dist/esm/pds-input.entry.js.map +1 -1
- package/dist/esm/pds-link.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-row.entry.js +1 -1
- package/dist/esm/pds-row.entry.js.map +1 -1
- package/dist/esm/pds-sortable-item.entry.js +1 -1
- package/dist/esm/pds-switch.entry.js +1 -1
- package/dist/esm/pds-table-cell.entry.js +2 -2
- package/dist/esm/pds-table-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +3 -3
- package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm/pds-table-head.entry.js +1 -1
- package/dist/esm/pds-table-head.entry.js.map +1 -1
- package/dist/esm/pds-table-row.entry.js +1 -1
- package/dist/esm/pds-table-row.entry.js.map +1 -1
- package/dist/esm/pds-table.entry.js +1 -1
- package/dist/esm/pds-table.entry.js.map +1 -1
- package/dist/esm/pds-textarea.entry.js +5 -5
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/{index-3ca52e8f.js → index-56752d25.js} +1 -1
- package/dist/esm-es5/index-56752d25.js.map +1 -0
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-button.entry.js.map +1 -1
- package/dist/esm-es5/pds-checkbox.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js +1 -1
- package/dist/esm-es5/pds-input.entry.js.map +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-switch.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-head.entry.js +1 -1
- package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
- package/dist/esm-es5/pds-table-row.entry.js +1 -1
- package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-table.entry.js +1 -1
- package/dist/esm-es5/pds-table.entry.js.map +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/pine-core/{p-e936e948.entry.js → p-00c8d6d8.entry.js} +2 -2
- package/dist/pine-core/{p-e936e948.entry.js.map → p-00c8d6d8.entry.js.map} +1 -1
- package/dist/pine-core/{p-953e6fde.entry.js → p-031ac651.entry.js} +2 -2
- package/dist/pine-core/{p-06593922.system.entry.js → p-0ad64b9d.system.entry.js} +2 -2
- package/dist/pine-core/{p-1010d12b.system.entry.js → p-1164c32c.system.entry.js} +2 -2
- package/dist/pine-core/{p-1010d12b.system.entry.js.map → p-1164c32c.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-d6d8a21a.entry.js → p-1351489d.entry.js} +2 -2
- package/dist/pine-core/{p-d6d8a21a.entry.js.map → p-1351489d.entry.js.map} +1 -1
- package/dist/pine-core/{p-239891e6.entry.js → p-1712d594.entry.js} +2 -2
- package/dist/pine-core/{p-84a4930d.entry.js → p-196f615c.entry.js} +2 -2
- package/dist/pine-core/{p-84a4930d.entry.js.map → p-196f615c.entry.js.map} +1 -1
- package/dist/pine-core/{p-08c4f190.system.entry.js → p-1a548198.system.entry.js} +2 -2
- package/dist/pine-core/{p-06513fe5.entry.js → p-1a78ee21.entry.js} +2 -2
- package/dist/pine-core/{p-06513fe5.entry.js.map → p-1a78ee21.entry.js.map} +1 -1
- package/dist/pine-core/{p-172464c1.system.entry.js → p-2e1dc5e5.system.entry.js} +2 -2
- package/dist/pine-core/{p-172464c1.system.entry.js.map → p-2e1dc5e5.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-b7890a73.system.entry.js → p-34cda8d5.system.entry.js} +2 -2
- package/dist/pine-core/{p-b7890a73.system.entry.js.map → p-34cda8d5.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-59327483.system.entry.js → p-364a7555.system.entry.js} +2 -2
- package/dist/pine-core/{p-a51098dd.entry.js → p-37a3c235.entry.js} +2 -2
- package/dist/pine-core/p-37a3c235.entry.js.map +1 -0
- package/dist/pine-core/{p-6e079be2.entry.js → p-396014d3.entry.js} +2 -2
- package/dist/pine-core/{p-d37d900e.entry.js → p-3ae15266.entry.js} +2 -2
- package/dist/pine-core/{p-d37d900e.entry.js.map → p-3ae15266.entry.js.map} +1 -1
- package/dist/pine-core/{p-34f84589.entry.js → p-4a10164f.entry.js} +2 -2
- package/dist/pine-core/{p-88410213.entry.js → p-5380ad4f.entry.js} +2 -2
- package/dist/pine-core/{p-88410213.entry.js.map → p-5380ad4f.entry.js.map} +1 -1
- package/dist/pine-core/{p-c4aec6ce.system.entry.js → p-539fe011.system.entry.js} +2 -2
- package/dist/pine-core/p-5b9d6ad1.entry.js +2 -0
- package/dist/pine-core/p-5b9d6ad1.entry.js.map +1 -0
- package/dist/pine-core/p-5c04aee0.system.js +1 -1
- package/dist/pine-core/{p-ece8530d.system.entry.js → p-5cb59e3f.system.entry.js} +2 -2
- package/dist/pine-core/{p-ece8530d.system.entry.js.map → p-5cb59e3f.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-efbe2dc5.system.entry.js → p-605dc33a.system.entry.js} +2 -2
- package/dist/pine-core/{p-efbe2dc5.system.entry.js.map → p-605dc33a.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-d5c90be4.entry.js → p-630b1802.entry.js} +2 -2
- package/dist/pine-core/{p-e64594ae.system.entry.js → p-6d447614.system.entry.js} +2 -2
- package/dist/pine-core/{p-e64594ae.system.entry.js.map → p-6d447614.system.entry.js.map} +1 -1
- package/dist/pine-core/{p-f9719887.system.entry.js → p-84d36583.system.entry.js} +2 -2
- package/dist/pine-core/{p-3e4225fc.entry.js → p-892b4a4c.entry.js} +2 -2
- package/dist/pine-core/{p-6f8f471b.system.entry.js → p-a24fa762.system.entry.js} +2 -2
- package/dist/pine-core/{p-3ff2642d.entry.js → p-a6713696.entry.js} +2 -2
- package/dist/pine-core/{p-ce91ca6a.system.entry.js → p-adda8682.system.entry.js} +2 -2
- package/dist/pine-core/{p-4043cf6e.system.entry.js → p-ae19532d.system.entry.js} +2 -2
- package/dist/pine-core/{p-59214c8b.system.entry.js → p-b3e36d77.system.entry.js} +2 -2
- package/dist/pine-core/{p-00cccccb.entry.js → p-b9cebd24.entry.js} +2 -2
- package/dist/pine-core/{p-00cccccb.entry.js.map → p-b9cebd24.entry.js.map} +1 -1
- package/dist/pine-core/{p-dc4a6d88.js → p-d83716fb.js} +1 -1
- package/dist/pine-core/p-d83716fb.js.map +1 -0
- package/dist/pine-core/{p-5c942465.system.entry.js → p-d95b2469.system.entry.js} +2 -2
- package/dist/pine-core/{p-5c942465.system.entry.js.map → p-d95b2469.system.entry.js.map} +1 -1
- package/dist/pine-core/p-da5a1e2c.system.entry.js +2 -0
- package/dist/pine-core/p-da5a1e2c.system.entry.js.map +1 -0
- package/dist/pine-core/{p-ff20b191.entry.js → p-de301890.entry.js} +2 -2
- package/dist/pine-core/{p-e90b2c75.system.js → p-dec11fa5.system.js} +1 -1
- package/dist/pine-core/p-dec11fa5.system.js.map +1 -0
- package/dist/pine-core/{p-0ff89cf4.entry.js → p-e2badc55.entry.js} +2 -2
- package/dist/pine-core/{p-ee21fa25.system.entry.js → p-faa2bf05.system.entry.js} +2 -2
- package/dist/pine-core/p-faa2bf05.system.entry.js.map +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/svg/file-search.svg +1 -0
- package/dist/pine-core/svg/logo-snapchat.svg +1 -0
- package/dist/types/components/pds-button/pds-button.d.ts +11 -8
- package/dist/types/components/pds-input/pds-input.d.ts +5 -5
- package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +4 -0
- package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +5 -2
- package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +9 -1
- package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +3 -3
- package/dist/types/components/pds-table/pds-table.d.ts +11 -3
- package/dist/types/components/pds-textarea/pds-textarea.d.ts +12 -12
- package/dist/types/components.d.ts +62 -56
- package/hydrate/index.js +20 -20
- package/hydrate/index.mjs +20 -20
- package/package.json +2 -2
- package/dist/cjs/index-0079013c.js.map +0 -1
- package/dist/esm/index-3ca52e8f.js.map +0 -1
- package/dist/esm-es5/index-3ca52e8f.js.map +0 -1
- package/dist/pine-core/p-624de926.entry.js +0 -2
- package/dist/pine-core/p-624de926.entry.js.map +0 -1
- package/dist/pine-core/p-81bdf676.system.entry.js +0 -2
- package/dist/pine-core/p-81bdf676.system.entry.js.map +0 -1
- package/dist/pine-core/p-a51098dd.entry.js.map +0 -1
- package/dist/pine-core/p-dc4a6d88.js.map +0 -1
- package/dist/pine-core/p-e90b2c75.system.js.map +0 -1
- package/dist/pine-core/p-ee21fa25.system.entry.js.map +0 -1
- /package/dist/pine-core/{p-953e6fde.entry.js.map → p-031ac651.entry.js.map} +0 -0
- /package/dist/pine-core/{p-06593922.system.entry.js.map → p-0ad64b9d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-239891e6.entry.js.map → p-1712d594.entry.js.map} +0 -0
- /package/dist/pine-core/{p-08c4f190.system.entry.js.map → p-1a548198.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-59327483.system.entry.js.map → p-364a7555.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6e079be2.entry.js.map → p-396014d3.entry.js.map} +0 -0
- /package/dist/pine-core/{p-34f84589.entry.js.map → p-4a10164f.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c4aec6ce.system.entry.js.map → p-539fe011.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d5c90be4.entry.js.map → p-630b1802.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f9719887.system.entry.js.map → p-84d36583.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3e4225fc.entry.js.map → p-892b4a4c.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6f8f471b.system.entry.js.map → p-a24fa762.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-3ff2642d.entry.js.map → p-a6713696.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ce91ca6a.system.entry.js.map → p-adda8682.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-4043cf6e.system.entry.js.map → p-ae19532d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-59214c8b.system.entry.js.map → p-b3e36d77.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ff20b191.entry.js.map → p-de301890.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0ff89cf4.entry.js.map → p-e2badc55.entry.js.map} +0 -0
|
@@ -45,7 +45,7 @@ export class PdsTableRow {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '9dceed18de8775f4356afec4bafe85b8e01d784d', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: 'a56e002c28377096430b6370744dc32726f578d3', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '5d7d6b2632d619bc7e7447f1eaf6ec7d9a2e2318', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '9dcbe00aba5b4bba6318a301609ce2226c303178' })));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "pds-table-row"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,7 +73,7 @@ export class PdsTableRow {
|
|
|
73
73
|
"optional": true,
|
|
74
74
|
"docs": {
|
|
75
75
|
"tags": [],
|
|
76
|
-
"text": "
|
|
76
|
+
"text": "Determines if the row selected is in an indeterminate state."
|
|
77
77
|
},
|
|
78
78
|
"attribute": "indeterminate",
|
|
79
79
|
"reflect": false
|
|
@@ -90,7 +90,7 @@ export class PdsTableRow {
|
|
|
90
90
|
"optional": true,
|
|
91
91
|
"docs": {
|
|
92
92
|
"tags": [],
|
|
93
|
-
"text": "
|
|
93
|
+
"text": "Determines if the table row is currently selected."
|
|
94
94
|
},
|
|
95
95
|
"attribute": "is-selected",
|
|
96
96
|
"reflect": false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-table-row.js","sourceRoot":"","sources":["../../../../src/components/pds-table/pds-table-row/pds-table-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOjD,MAAM,OAAO,WAAW;;QAmBd,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,4BAA4B;YAChE,IAAI,CAAC,YAAY,CAAC,IAAI,C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AQ,CAAC,WAAW,EAAE,CAAC;YAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;YACnE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrC,CAAC;IACH,CAAC;IAUD,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,KAAK;YAET,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,CAC5C,uEAAgB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE;gBAC3H,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB;YACD,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\n\nimport { closest } from '../../../utils/closest';\n\n@Component({\n tag: 'pds-table-row',\n styleUrls: ['../../../global/styles/base.scss', 'pds-table-row.scss'],\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n
|
|
1
|
+
{"version":3,"file":"pds-table-row.js","sourceRoot":"","sources":["../../../../src/components/pds-table/pds-table-row/pds-table-row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvF,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAOjD,MAAM,OAAO,WAAW;;QAmBd,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,4BAA4B;YAChE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrC,CAAC,CAAA;QAEO,iBAAY,GAAG,CAAC,UAAmB,EAAE,EAAE;YAC7C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;YAE3B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;gBACjD,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;gBAC3F,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC;oBAC5B,QAAQ;oBACR,UAAU;iBACX,CAAC,CAAA;YACJ,CAAC;QACH,CAAC,CAAA;QA2BO,qBAAgB,GAAG,GAAG,EAAE;YAC9B,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAChE,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,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c,CAAC,CAAC,CAAC,EAAE;gBAC3H,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,KAAK,EAAE,YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB;YACD,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\n\nimport { closest } from '../../../utils/closest';\n\n@Component({\n tag: 'pds-table-row',\n styleUrls: ['../../../global/styles/base.scss', 'pds-table-row.scss'],\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n * Determines if the row selected is in an indeterminate state.\n */\n @Prop({ mutable: true }) indeterminate?: boolean;\n\n /**\n * Determines if the table row is currently selected.\n */\n @Prop({ mutable: true }) isSelected?: boolean;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n private handleClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n this.handleSelect(this.isSelected);\n }\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false;\n\n if (!closest('pds-table-head', this.hostElement)) {\n const rowIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement)\n this.pdsTableRowSelected.emit({\n rowIndex,\n isSelected,\n })\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected);\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : ''} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleClick}\n indeterminate={this.indeterminate}\n label={\"Select Row\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -80,7 +80,7 @@ export class PdsTable {
|
|
|
80
80
|
headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;
|
|
81
81
|
}
|
|
82
82
|
render() {
|
|
83
|
-
return (h(Host, { key: '
|
|
83
|
+
return (h(Host, { key: '1525beac2ebdb255e34f834c57755f3bb7e0735b', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: '2e04d93fe72d2d91ab80037ec42d805f8b472a0f' })));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "pds-table"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,7 +108,7 @@ export class PdsTable {
|
|
|
108
108
|
"optional": false,
|
|
109
109
|
"docs": {
|
|
110
110
|
"tags": [],
|
|
111
|
-
"text": "Determines if table displays
|
|
111
|
+
"text": "Determines if the table displays with reduced table cell padding."
|
|
112
112
|
},
|
|
113
113
|
"attribute": "compact",
|
|
114
114
|
"reflect": false
|
|
@@ -159,7 +159,7 @@ export class PdsTable {
|
|
|
159
159
|
"optional": false,
|
|
160
160
|
"docs": {
|
|
161
161
|
"tags": [],
|
|
162
|
-
"text": "Determines if
|
|
162
|
+
"text": "Determines if the should display a fixed first column."
|
|
163
163
|
},
|
|
164
164
|
"attribute": "fixed-column",
|
|
165
165
|
"reflect": false
|
|
@@ -176,7 +176,7 @@ export class PdsTable {
|
|
|
176
176
|
"optional": false,
|
|
177
177
|
"docs": {
|
|
178
178
|
"tags": [],
|
|
179
|
-
"text": "Determines if table displays checkboxes for selectable rows."
|
|
179
|
+
"text": "Determines if the table displays checkboxes for selectable rows."
|
|
180
180
|
},
|
|
181
181
|
"attribute": "selectable",
|
|
182
182
|
"reflect": false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-table.js","sourceRoot":"","sources":["../../../src/components/pds-table/pds-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAOtG,MAAM,OAAO,QAAQ;;;;;;;
|
|
1
|
+
{"version":3,"file":"pds-table.js","sourceRoot":"","sources":["../../../src/components/pds-table/pds-table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAOtG,MAAM,OAAO,QAAQ;;;;;;;6BAgCqB,IAAI;gCAMA,KAAK;;IAajD,iBAAiB;QACf,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;IAC5B,CAAC;IAEO,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,WAAW,CAAC,CAAC;QAEjC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;QAED,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CAAC,CAAC;QAC/D,MAAM,eAAe,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAChF,MAAM,gBAAgB,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAClF,MAAM,YAAY,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAC7D,IAAI,CAAC,YAAY;YAAE,OAAO;QAE1B,MAAM,cAAc,GAAG,YAAY,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;QAC7E,cAAc,CAAC,OAAO,GAAG,eAAe,CAAC;QACzC,cAAc,CAAC,aAAa,GAAG,CAAC,eAAe,IAAI,CAAC,gBAAgB,CAAC;IACvE,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,IAAI,CAAC,UAAU,EAC3B,QAAQ,EAAC,GAAG;YAEZ,8DAAa,CACR,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, h, Prop, State, Listen } from '@stencil/core';\n\n@Component({\n tag: 'pds-table',\n styleUrls: ['../../global/styles/base.scss', 'pds-table.scss'],\n shadow: true,\n})\nexport class PdsTable {\n @Element() el: HTMLPdsTableElement;\n\n /**\n * Determines if the table displays with reduced table cell padding.\n */\n @Prop() compact: boolean;\n\n /**\n * A unique identifier used for the table `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Enables the table to be responsive by horizontally scrolling on smaller screens.\n */\n @Prop() responsive: boolean;\n\n /**\n * Determines if the should display a fixed first column.\n */\n @Prop() fixedColumn: boolean;\n\n /**\n * Determines if the table displays checkboxes for selectable rows.\n */\n @Prop() selectable: boolean;\n\n /**\n * The name of the column being sorted.\n * @defaultValue null\n */\n @State() sortingColumn: string | null = null;\n\n /**\n * The direction of sorting.\n * @defaultValue 'asc'\n */\n @State() sortingDirection: 'asc' | 'desc' = 'asc';\n\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the rowIndex and selected value.\n */\n @Event() pdsTableSelect: EventEmitter<{ rowIndex: number; isSelected: boolean }>;\n\n /**\n * Event that is emitted when the select all checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableSelectAll: EventEmitter<{ isSelected: boolean }>;\n\n componentWillLoad() {\n this.sortingColumn = null;\n }\n\n private classNames() {\n const classNames = ['pds-table'];\n\n if (this.compact) {\n classNames.push('is-compact');\n }\n\n if (this.responsive) {\n classNames.push('is-responsive');\n }\n\n return classNames.join(' ');\n }\n\n private sortTable(column: string, direction: 'asc' | 'desc') {\n const tableBody = this.el.querySelector('pds-table-body');\n\n // Get the rows in the table body\n const tableRows = Array.from(tableBody.querySelectorAll('pds-table-row'));\n\n // Find the column index based on the column name\n const columnHeaderCells: HTMLElement[] = Array.from(\n this.el.querySelectorAll('pds-table-head-cell[sortable]')\n );\n\n const columnHeaderCell = columnHeaderCells.find(\n (cell) => cell.innerText.trim() === column\n );\n\n if (!columnHeaderCell) {\n console.warn(`Column \"${column}\" not found.`);\n return;\n }\n\n const columnIndex = columnHeaderCells.indexOf(columnHeaderCell);\n\n // Sort the rows based on the content of the specified column\n tableRows.sort((a, b) => {\n const valueA = a.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n const valueB = b.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n\n if (direction === 'asc') {\n return valueA.localeCompare(valueB);\n } else {\n return valueB.localeCompare(valueA);\n }\n });\n\n // Clear and append the sorted rows back to the table body\n tableBody.innerHTML = '';\n tableRows.forEach((row) => {\n tableBody.appendChild(row);\n });\n }\n\n @Listen('pdsTableSort')\n handleTableSort(event: CustomEvent<{ column: string; direction: 'asc' | 'desc' }>) {\n const { direction } = event.detail;\n this.sortTable(event.detail.column, direction);\n this.sortingColumn = event.detail.column;\n this.sortingDirection = direction;\n }\n\n @Listen('pdsTableSelectAll')\n handleTableSelectAll(event: CustomEvent<{ isSelected: boolean }>) {\n if (event.defaultPrevented) return;\n\n const pdsTableBody = this.el.querySelector('pds-table-body');\n const tableRows = Array.from(pdsTableBody.querySelectorAll('pds-table-row'));\n\n tableRows.forEach((row) => {\n row.isSelected = event.detail.isSelected;\n });\n }\n\n @Listen('pdsTableRowSelected')\n async handleTableSelect(event: CustomEvent<{ rowIndex: number; isSelected: boolean }>) {\n if (event.defaultPrevented) return;\n\n const allTableRows = this.el.querySelectorAll('pds-table-row');\n const allSelectedRows = Array.from(allTableRows).every((row) => row.isSelected);\n const noneSelectedRows = Array.from(allTableRows).every((row) => !row.isSelected);\n const pdsTableHead = this.el.querySelector('pds-table-head');\n if (!pdsTableHead) return;\n\n const headerCheckbox = pdsTableHead.shadowRoot.querySelector('pds-checkbox');\n headerCheckbox.checked = allSelectedRows;\n headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n id={this.componentId}\n role=\"grid\"\n selectable={this.selectable}\n tabindex=\"0\"\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
decorators: [withActions],
|
|
9
9
|
parameters: {
|
|
10
10
|
actions: {
|
|
11
|
-
handles: ['onclick', 'pdsTableRowSelected', 'onclick', 'pdsTableSelectAll'],
|
|
11
|
+
handles: ['onclick', 'pdsTableRowSelected', 'onclick', 'pdsTableSelectAll', 'pdsTableSort'],
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
14
|
title: 'components/Table',
|
|
@@ -34,10 +34,10 @@ export class PdsTextarea {
|
|
|
34
34
|
return classNames.join(' ');
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
38
|
-
h(PdsLabel, { key: '
|
|
39
|
-
h("p", { key: '
|
|
40
|
-
h("p", { key: '
|
|
37
|
+
return (h(Host, { key: '461039704016b1b3858af80440863f1fc4930ceb', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'de68ba7ca3b6714e1da8594e76f60bab2a3de1fb', class: "pds-textarea" }, this.label &&
|
|
38
|
+
h(PdsLabel, { key: '102802b8244a929492731700fdde06a053f3e2d5', htmlFor: this.componentId, text: this.label }), h("textarea", { key: '55a3fde040749bd03a5e681dafad7db0717f4a7f', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
|
|
39
|
+
h("p", { key: '552e0c1240cdc51c215f5ddfc51f250156d8a4b2', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
|
|
40
|
+
h("p", { key: 'a7e6f4a0d926203f5ac56a8f99d03fd9b5f3647b', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '53a40e204e076147b27c921cdbe54336ca50d9e3', icon: danger, size: "small" }), this.errorMessage))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "pds-textarea"; }
|
|
43
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -102,7 +102,7 @@ export class PdsTextarea {
|
|
|
102
102
|
"name": "defaultValue",
|
|
103
103
|
"text": "false"
|
|
104
104
|
}],
|
|
105
|
-
"text": "
|
|
105
|
+
"text": "Determines whether or not the textarea is disabled."
|
|
106
106
|
},
|
|
107
107
|
"attribute": "disabled",
|
|
108
108
|
"reflect": false,
|
|
@@ -120,7 +120,7 @@ export class PdsTextarea {
|
|
|
120
120
|
"optional": true,
|
|
121
121
|
"docs": {
|
|
122
122
|
"tags": [],
|
|
123
|
-
"text": "
|
|
123
|
+
"text": "Displays an error message below the textarea field."
|
|
124
124
|
},
|
|
125
125
|
"attribute": "error-message",
|
|
126
126
|
"reflect": false
|
|
@@ -137,7 +137,7 @@ export class PdsTextarea {
|
|
|
137
137
|
"optional": true,
|
|
138
138
|
"docs": {
|
|
139
139
|
"tags": [],
|
|
140
|
-
"text": "Displays a
|
|
140
|
+
"text": "Displays a message or hint below the textarea field."
|
|
141
141
|
},
|
|
142
142
|
"attribute": "helper-message",
|
|
143
143
|
"reflect": false
|
|
@@ -157,7 +157,7 @@ export class PdsTextarea {
|
|
|
157
157
|
"name": "defaultValue",
|
|
158
158
|
"text": "false"
|
|
159
159
|
}],
|
|
160
|
-
"text": "
|
|
160
|
+
"text": "Determines whether or not the textarea is invalid or throws an error."
|
|
161
161
|
},
|
|
162
162
|
"attribute": "invalid",
|
|
163
163
|
"reflect": false,
|
|
@@ -175,7 +175,7 @@ export class PdsTextarea {
|
|
|
175
175
|
"optional": true,
|
|
176
176
|
"docs": {
|
|
177
177
|
"tags": [],
|
|
178
|
-
"text": "Text to be displayed as the textarea label"
|
|
178
|
+
"text": "Text to be displayed as the textarea label."
|
|
179
179
|
},
|
|
180
180
|
"attribute": "label",
|
|
181
181
|
"reflect": false
|
|
@@ -192,7 +192,7 @@ export class PdsTextarea {
|
|
|
192
192
|
"optional": false,
|
|
193
193
|
"docs": {
|
|
194
194
|
"tags": [],
|
|
195
|
-
"text": "Specifies the name
|
|
195
|
+
"text": "Specifies the name. Submitted with the form name/value pair. This value will mirror the componentId."
|
|
196
196
|
},
|
|
197
197
|
"attribute": "name",
|
|
198
198
|
"reflect": false,
|
|
@@ -210,7 +210,7 @@ export class PdsTextarea {
|
|
|
210
210
|
"optional": true,
|
|
211
211
|
"docs": {
|
|
212
212
|
"tags": [],
|
|
213
|
-
"text": "Specifies a short hint that describes the expected value of the textarea"
|
|
213
|
+
"text": "Specifies a short hint that describes the expected value of the textarea."
|
|
214
214
|
},
|
|
215
215
|
"attribute": "placeholder",
|
|
216
216
|
"reflect": false
|
|
@@ -230,7 +230,7 @@ export class PdsTextarea {
|
|
|
230
230
|
"name": "defaultValue",
|
|
231
231
|
"text": "false"
|
|
232
232
|
}],
|
|
233
|
-
"text": "
|
|
233
|
+
"text": "Determines whether or not the textarea is readonly."
|
|
234
234
|
},
|
|
235
235
|
"attribute": "readonly",
|
|
236
236
|
"reflect": false,
|
|
@@ -251,7 +251,7 @@ export class PdsTextarea {
|
|
|
251
251
|
"name": "defaultValue",
|
|
252
252
|
"text": "false"
|
|
253
253
|
}],
|
|
254
|
-
"text": "
|
|
254
|
+
"text": "Determines whether or not the textarea is required."
|
|
255
255
|
},
|
|
256
256
|
"attribute": "required",
|
|
257
257
|
"reflect": false,
|
|
@@ -269,7 +269,7 @@ export class PdsTextarea {
|
|
|
269
269
|
"optional": true,
|
|
270
270
|
"docs": {
|
|
271
271
|
"tags": [],
|
|
272
|
-
"text": "Sets number of rows of text visible without needing to scroll in the textarea"
|
|
272
|
+
"text": "Sets number of rows of text visible without needing to scroll in the textarea."
|
|
273
273
|
},
|
|
274
274
|
"attribute": "rows",
|
|
275
275
|
"reflect": false
|
|
@@ -286,7 +286,7 @@ export class PdsTextarea {
|
|
|
286
286
|
"optional": true,
|
|
287
287
|
"docs": {
|
|
288
288
|
"tags": [],
|
|
289
|
-
"text": "The value of the textarea"
|
|
289
|
+
"text": "The value of the textarea."
|
|
290
290
|
},
|
|
291
291
|
"attribute": "value",
|
|
292
292
|
"reflect": false
|
|
@@ -302,7 +302,7 @@ export class PdsTextarea {
|
|
|
302
302
|
"composed": true,
|
|
303
303
|
"docs": {
|
|
304
304
|
"tags": [],
|
|
305
|
-
"text": "Event emitted whenever the value of the textarea changes"
|
|
305
|
+
"text": "Event emitted whenever the value of the textarea changes."
|
|
306
306
|
},
|
|
307
307
|
"complexType": {
|
|
308
308
|
"original": "TextareaChangeEventDetail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pds-textarea.js","sourceRoot":"","sources":["../../../src/components/pds-textarea/pds-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,WAAW;;QA6Ed,qBAAgB,GAAG,CAAC,EAAS,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAA6B,CAAC;YAClD,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAE3B,IAAI,QAAQ,EAAE,CAAC;gBACb,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;YAC9B,CAAC;YAED,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC,CAAC;QAC9D,CAAC,CAAC;;;wBArEiB,KAAK;;;uBAgBS,KAAK;;oBAUf,IAAI,CAAC,WAAW;;wBAWpB,KAAK;wBAML,KAAK;;;;IA4BhB,kBAAkB;QACxB,MAAM,UAAU,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAE3C,IAAI,IA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BACX,uEACY,WAAW,EACrB,KAAK,EAAC,6BAA6B,EACnC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;wBAExC,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG;wBACtC,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: ['../../global/styles/base.scss', 'pds-textarea.scss'],\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n *
|
|
1
|
+
{"version":3,"file":"pds-textarea.js","sourceRoot":"","sources":["../../../src/components/pds-textarea/pds-textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,iBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: ['../../global/styles/base.scss', 'pds-textarea.scss'],\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the textarea is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays an error message below the textarea field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the textarea field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines whether or not the textarea is invalid or throws an error.\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair. This value will mirror the componentId.\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea.\n */\n @Prop() placeholder?: string;\n\n /**\n * Determines whether or not the textarea is readonly.\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Determines whether or not the textarea is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea.\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea.\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes.\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.value;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "
|
|
2
|
+
"timestamp": "2025-01-14T18:20:12",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.22.2",
|
|
@@ -1858,15 +1858,15 @@
|
|
|
1858
1858
|
"docsTags": [
|
|
1859
1859
|
{
|
|
1860
1860
|
"name": "part",
|
|
1861
|
-
"text": "button -
|
|
1861
|
+
"text": "button - Exposes the button element for styling."
|
|
1862
1862
|
},
|
|
1863
1863
|
{
|
|
1864
1864
|
"name": "part",
|
|
1865
|
-
"text": "caret -
|
|
1865
|
+
"text": "caret - Exposes the caret icon component for styling. Appears only on the disclosure variant."
|
|
1866
1866
|
},
|
|
1867
1867
|
{
|
|
1868
1868
|
"name": "part",
|
|
1869
|
-
"text": "icon -
|
|
1869
|
+
"text": "icon - Exposes the icon component for styling."
|
|
1870
1870
|
}
|
|
1871
1871
|
],
|
|
1872
1872
|
"usage": {},
|
|
@@ -1903,7 +1903,7 @@
|
|
|
1903
1903
|
"mutable": false,
|
|
1904
1904
|
"attr": "disabled",
|
|
1905
1905
|
"reflectToAttr": false,
|
|
1906
|
-
"docs": "
|
|
1906
|
+
"docs": "Determines the button's disabled state.",
|
|
1907
1907
|
"docsTags": [
|
|
1908
1908
|
{
|
|
1909
1909
|
"name": "defaultValue",
|
|
@@ -1930,8 +1930,13 @@
|
|
|
1930
1930
|
"mutable": false,
|
|
1931
1931
|
"attr": "icon",
|
|
1932
1932
|
"reflectToAttr": false,
|
|
1933
|
-
"docs": "Displays icon before text when icon string matches an icon name",
|
|
1934
|
-
"docsTags": [
|
|
1933
|
+
"docs": "Displays an icon before the text when\nthe icon string matches an icon name.",
|
|
1934
|
+
"docsTags": [
|
|
1935
|
+
{
|
|
1936
|
+
"name": "defaultValue",
|
|
1937
|
+
"text": "null"
|
|
1938
|
+
}
|
|
1939
|
+
],
|
|
1935
1940
|
"default": "null",
|
|
1936
1941
|
"values": [
|
|
1937
1942
|
{
|
|
@@ -1952,7 +1957,7 @@
|
|
|
1952
1957
|
"mutable": false,
|
|
1953
1958
|
"attr": "name",
|
|
1954
1959
|
"reflectToAttr": false,
|
|
1955
|
-
"docs": "Provides button with a submittable name",
|
|
1960
|
+
"docs": "Provides the button with a submittable name.",
|
|
1956
1961
|
"docsTags": [],
|
|
1957
1962
|
"values": [
|
|
1958
1963
|
{
|
|
@@ -1973,7 +1978,7 @@
|
|
|
1973
1978
|
"mutable": false,
|
|
1974
1979
|
"attr": "type",
|
|
1975
1980
|
"reflectToAttr": false,
|
|
1976
|
-
"docs": "Provides button with a type",
|
|
1981
|
+
"docs": "Provides button with a type.",
|
|
1977
1982
|
"docsTags": [
|
|
1978
1983
|
{
|
|
1979
1984
|
"name": "defaultValue",
|
|
@@ -2030,8 +2035,13 @@
|
|
|
2030
2035
|
"mutable": false,
|
|
2031
2036
|
"attr": "variant",
|
|
2032
2037
|
"reflectToAttr": false,
|
|
2033
|
-
"docs": "Sets
|
|
2034
|
-
"docsTags": [
|
|
2038
|
+
"docs": "Sets the style variant of the button.",
|
|
2039
|
+
"docsTags": [
|
|
2040
|
+
{
|
|
2041
|
+
"name": "defaultValue",
|
|
2042
|
+
"text": "primary"
|
|
2043
|
+
}
|
|
2044
|
+
],
|
|
2035
2045
|
"default": "'primary'",
|
|
2036
2046
|
"values": [
|
|
2037
2047
|
{
|
|
@@ -2086,15 +2096,15 @@
|
|
|
2086
2096
|
"parts": [
|
|
2087
2097
|
{
|
|
2088
2098
|
"name": "button",
|
|
2089
|
-
"docs": "
|
|
2099
|
+
"docs": "Exposes the button element for styling."
|
|
2090
2100
|
},
|
|
2091
2101
|
{
|
|
2092
2102
|
"name": "caret",
|
|
2093
|
-
"docs": "
|
|
2103
|
+
"docs": "Exposes the caret icon component for styling. Appears only on the disclosure variant."
|
|
2094
2104
|
},
|
|
2095
2105
|
{
|
|
2096
2106
|
"name": "icon",
|
|
2097
|
-
"docs": "
|
|
2107
|
+
"docs": "Exposes the icon component for styling."
|
|
2098
2108
|
}
|
|
2099
2109
|
],
|
|
2100
2110
|
"dependents": [
|
|
@@ -3218,7 +3228,7 @@
|
|
|
3218
3228
|
"mutable": false,
|
|
3219
3229
|
"attr": "disabled",
|
|
3220
3230
|
"reflectToAttr": false,
|
|
3221
|
-
"docs": "
|
|
3231
|
+
"docs": "Determines whether or not the input field is disabled.",
|
|
3222
3232
|
"docsTags": [],
|
|
3223
3233
|
"values": [
|
|
3224
3234
|
{
|
|
@@ -3281,7 +3291,7 @@
|
|
|
3281
3291
|
"mutable": false,
|
|
3282
3292
|
"attr": "invalid",
|
|
3283
3293
|
"reflectToAttr": false,
|
|
3284
|
-
"docs": "
|
|
3294
|
+
"docs": "Determines whether or not the input field is invalid or throws an error.",
|
|
3285
3295
|
"docsTags": [],
|
|
3286
3296
|
"values": [
|
|
3287
3297
|
{
|
|
@@ -3365,7 +3375,7 @@
|
|
|
3365
3375
|
"mutable": false,
|
|
3366
3376
|
"attr": "readonly",
|
|
3367
3377
|
"reflectToAttr": false,
|
|
3368
|
-
"docs": "
|
|
3378
|
+
"docs": "Determines whether or not the input field is readonly.",
|
|
3369
3379
|
"docsTags": [],
|
|
3370
3380
|
"values": [
|
|
3371
3381
|
{
|
|
@@ -3386,7 +3396,7 @@
|
|
|
3386
3396
|
"mutable": false,
|
|
3387
3397
|
"attr": "required",
|
|
3388
3398
|
"reflectToAttr": false,
|
|
3389
|
-
"docs": "
|
|
3399
|
+
"docs": "Determines whether or not the input field is required.",
|
|
3390
3400
|
"docsTags": [],
|
|
3391
3401
|
"values": [
|
|
3392
3402
|
{
|
|
@@ -3463,7 +3473,7 @@
|
|
|
3463
3473
|
},
|
|
3464
3474
|
"cancelable": true,
|
|
3465
3475
|
"composed": true,
|
|
3466
|
-
"docs": "Emitted when a keyboard input
|
|
3476
|
+
"docs": "Emitted when a keyboard input occurs.",
|
|
3467
3477
|
"docsTags": []
|
|
3468
3478
|
}
|
|
3469
3479
|
],
|
|
@@ -5582,7 +5592,7 @@
|
|
|
5582
5592
|
"mutable": false,
|
|
5583
5593
|
"attr": "compact",
|
|
5584
5594
|
"reflectToAttr": false,
|
|
5585
|
-
"docs": "Determines if table displays
|
|
5595
|
+
"docs": "Determines if the table displays with reduced table cell padding.",
|
|
5586
5596
|
"docsTags": [],
|
|
5587
5597
|
"values": [
|
|
5588
5598
|
{
|
|
@@ -5624,7 +5634,7 @@
|
|
|
5624
5634
|
"mutable": false,
|
|
5625
5635
|
"attr": "fixed-column",
|
|
5626
5636
|
"reflectToAttr": false,
|
|
5627
|
-
"docs": "Determines if
|
|
5637
|
+
"docs": "Determines if the should display a fixed first column.",
|
|
5628
5638
|
"docsTags": [],
|
|
5629
5639
|
"values": [
|
|
5630
5640
|
{
|
|
@@ -5666,7 +5676,7 @@
|
|
|
5666
5676
|
"mutable": false,
|
|
5667
5677
|
"attr": "selectable",
|
|
5668
5678
|
"reflectToAttr": false,
|
|
5669
|
-
"docs": "Determines if table displays checkboxes for selectable rows.",
|
|
5679
|
+
"docs": "Determines if the table displays checkboxes for selectable rows.",
|
|
5670
5680
|
"docsTags": [],
|
|
5671
5681
|
"values": [
|
|
5672
5682
|
{
|
|
@@ -5818,7 +5828,7 @@
|
|
|
5818
5828
|
"mutable": true,
|
|
5819
5829
|
"attr": "indeterminate",
|
|
5820
5830
|
"reflectToAttr": false,
|
|
5821
|
-
"docs": "
|
|
5831
|
+
"docs": "Determines if the select all checkbox is in an indeterminate state.",
|
|
5822
5832
|
"docsTags": [],
|
|
5823
5833
|
"values": [
|
|
5824
5834
|
{
|
|
@@ -5839,8 +5849,13 @@
|
|
|
5839
5849
|
"mutable": true,
|
|
5840
5850
|
"attr": "is-selected",
|
|
5841
5851
|
"reflectToAttr": false,
|
|
5842
|
-
"docs": "
|
|
5843
|
-
"docsTags": [
|
|
5852
|
+
"docs": "Determines if the table row is currently selected.",
|
|
5853
|
+
"docsTags": [
|
|
5854
|
+
{
|
|
5855
|
+
"name": "defaultValue",
|
|
5856
|
+
"text": "false"
|
|
5857
|
+
}
|
|
5858
|
+
],
|
|
5844
5859
|
"values": [
|
|
5845
5860
|
{
|
|
5846
5861
|
"type": "boolean"
|
|
@@ -5976,7 +5991,7 @@
|
|
|
5976
5991
|
"mutable": true,
|
|
5977
5992
|
"attr": "indeterminate",
|
|
5978
5993
|
"reflectToAttr": false,
|
|
5979
|
-
"docs": "
|
|
5994
|
+
"docs": "Determines if the row selected is in an indeterminate state.",
|
|
5980
5995
|
"docsTags": [],
|
|
5981
5996
|
"values": [
|
|
5982
5997
|
{
|
|
@@ -5997,7 +6012,7 @@
|
|
|
5997
6012
|
"mutable": true,
|
|
5998
6013
|
"attr": "is-selected",
|
|
5999
6014
|
"reflectToAttr": false,
|
|
6000
|
-
"docs": "
|
|
6015
|
+
"docs": "Determines if the table row is currently selected.",
|
|
6001
6016
|
"docsTags": [],
|
|
6002
6017
|
"values": [
|
|
6003
6018
|
{
|
|
@@ -6602,7 +6617,7 @@
|
|
|
6602
6617
|
"mutable": false,
|
|
6603
6618
|
"attr": "disabled",
|
|
6604
6619
|
"reflectToAttr": false,
|
|
6605
|
-
"docs": "
|
|
6620
|
+
"docs": "Determines whether or not the textarea is disabled.",
|
|
6606
6621
|
"docsTags": [
|
|
6607
6622
|
{
|
|
6608
6623
|
"name": "defaultValue",
|
|
@@ -6629,7 +6644,7 @@
|
|
|
6629
6644
|
"mutable": false,
|
|
6630
6645
|
"attr": "error-message",
|
|
6631
6646
|
"reflectToAttr": false,
|
|
6632
|
-
"docs": "
|
|
6647
|
+
"docs": "Displays an error message below the textarea field.",
|
|
6633
6648
|
"docsTags": [],
|
|
6634
6649
|
"values": [
|
|
6635
6650
|
{
|
|
@@ -6650,7 +6665,7 @@
|
|
|
6650
6665
|
"mutable": false,
|
|
6651
6666
|
"attr": "helper-message",
|
|
6652
6667
|
"reflectToAttr": false,
|
|
6653
|
-
"docs": "Displays a
|
|
6668
|
+
"docs": "Displays a message or hint below the textarea field.",
|
|
6654
6669
|
"docsTags": [],
|
|
6655
6670
|
"values": [
|
|
6656
6671
|
{
|
|
@@ -6671,7 +6686,7 @@
|
|
|
6671
6686
|
"mutable": true,
|
|
6672
6687
|
"attr": "invalid",
|
|
6673
6688
|
"reflectToAttr": false,
|
|
6674
|
-
"docs": "
|
|
6689
|
+
"docs": "Determines whether or not the textarea is invalid or throws an error.",
|
|
6675
6690
|
"docsTags": [
|
|
6676
6691
|
{
|
|
6677
6692
|
"name": "defaultValue",
|
|
@@ -6698,7 +6713,7 @@
|
|
|
6698
6713
|
"mutable": false,
|
|
6699
6714
|
"attr": "label",
|
|
6700
6715
|
"reflectToAttr": false,
|
|
6701
|
-
"docs": "Text to be displayed as the textarea label",
|
|
6716
|
+
"docs": "Text to be displayed as the textarea label.",
|
|
6702
6717
|
"docsTags": [],
|
|
6703
6718
|
"values": [
|
|
6704
6719
|
{
|
|
@@ -6719,7 +6734,7 @@
|
|
|
6719
6734
|
"mutable": false,
|
|
6720
6735
|
"attr": "name",
|
|
6721
6736
|
"reflectToAttr": false,
|
|
6722
|
-
"docs": "Specifies the name
|
|
6737
|
+
"docs": "Specifies the name. Submitted with the form name/value pair. This value will mirror the componentId.",
|
|
6723
6738
|
"docsTags": [],
|
|
6724
6739
|
"default": "this.componentId",
|
|
6725
6740
|
"values": [
|
|
@@ -6741,7 +6756,7 @@
|
|
|
6741
6756
|
"mutable": false,
|
|
6742
6757
|
"attr": "placeholder",
|
|
6743
6758
|
"reflectToAttr": false,
|
|
6744
|
-
"docs": "Specifies a short hint that describes the expected value of the textarea",
|
|
6759
|
+
"docs": "Specifies a short hint that describes the expected value of the textarea.",
|
|
6745
6760
|
"docsTags": [],
|
|
6746
6761
|
"values": [
|
|
6747
6762
|
{
|
|
@@ -6762,7 +6777,7 @@
|
|
|
6762
6777
|
"mutable": false,
|
|
6763
6778
|
"attr": "readonly",
|
|
6764
6779
|
"reflectToAttr": false,
|
|
6765
|
-
"docs": "
|
|
6780
|
+
"docs": "Determines whether or not the textarea is readonly.",
|
|
6766
6781
|
"docsTags": [
|
|
6767
6782
|
{
|
|
6768
6783
|
"name": "defaultValue",
|
|
@@ -6789,7 +6804,7 @@
|
|
|
6789
6804
|
"mutable": false,
|
|
6790
6805
|
"attr": "required",
|
|
6791
6806
|
"reflectToAttr": false,
|
|
6792
|
-
"docs": "
|
|
6807
|
+
"docs": "Determines whether or not the textarea is required.",
|
|
6793
6808
|
"docsTags": [
|
|
6794
6809
|
{
|
|
6795
6810
|
"name": "defaultValue",
|
|
@@ -6816,7 +6831,7 @@
|
|
|
6816
6831
|
"mutable": false,
|
|
6817
6832
|
"attr": "rows",
|
|
6818
6833
|
"reflectToAttr": false,
|
|
6819
|
-
"docs": "Sets number of rows of text visible without needing to scroll in the textarea",
|
|
6834
|
+
"docs": "Sets number of rows of text visible without needing to scroll in the textarea.",
|
|
6820
6835
|
"docsTags": [],
|
|
6821
6836
|
"values": [
|
|
6822
6837
|
{
|
|
@@ -6837,7 +6852,7 @@
|
|
|
6837
6852
|
"mutable": true,
|
|
6838
6853
|
"attr": "value",
|
|
6839
6854
|
"reflectToAttr": false,
|
|
6840
|
-
"docs": "The value of the textarea",
|
|
6855
|
+
"docs": "The value of the textarea.",
|
|
6841
6856
|
"docsTags": [],
|
|
6842
6857
|
"values": [
|
|
6843
6858
|
{
|
|
@@ -6867,7 +6882,7 @@
|
|
|
6867
6882
|
},
|
|
6868
6883
|
"cancelable": true,
|
|
6869
6884
|
"composed": true,
|
|
6870
|
-
"docs": "Event emitted whenever the value of the textarea changes",
|
|
6885
|
+
"docs": "Event emitted whenever the value of the textarea changes.",
|
|
6871
6886
|
"docsTags": []
|
|
6872
6887
|
}
|
|
6873
6888
|
],
|