@sellmate/design-system 1.0.68 → 1.0.70
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/dist/cjs/design-system.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
- package/dist/cjs/sd-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -1
- package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-button_4.cjs.entry.js +23 -6
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
- package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +3 -2
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
- package/dist/cjs/sd-file-picker.cjs.entry.js +2 -1
- package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
- package/dist/cjs/sd-input_2.cjs.entry.js +3 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-number-input.cjs.entry.js +4 -3
- package/dist/cjs/sd-pagination_2.cjs.entry.js +61 -29
- package/dist/cjs/sd-popover.cjs.entry.js +23 -23
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-radio.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-group.cjs.entry.js +2 -1
- package/dist/cjs/sd-select-multiple-group.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-v2-list-item_4.cjs.entry.js +28 -4
- package/dist/cjs/sd-select.cjs.entry.js +2 -1
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-textarea.cjs.entry.js +2 -1
- package/dist/cjs/table-test.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +29 -1
- package/dist/collection/components/sd-button-v2/sd-button-v2.js +3 -3
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-chip/sd-chip.js +1 -1
- package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
- package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +30 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +30 -2
- package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
- package/dist/collection/components/sd-field/sd-field.config.js +5 -0
- package/dist/collection/components/sd-field/sd-field.css +4 -0
- package/dist/collection/components/sd-field/sd-field.js +39 -5
- package/dist/collection/components/sd-file-picker/sd-file-picker.js +29 -1
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +12 -1
- package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
- package/dist/collection/components/sd-input/sd-input.js +30 -2
- package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
- package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
- package/dist/collection/components/sd-number-input/sd-number-input.js +31 -3
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popover/sd-popover.js +49 -53
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-radio/sd-radio.js +1 -1
- package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
- package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
- package/dist/collection/components/sd-select/sd-select.js +29 -1
- package/dist/collection/components/sd-select-group/sd-select-group.js +29 -1
- package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +1 -1
- package/dist/collection/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js +8 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js +69 -2
- package/dist/collection/components/sd-select-v2/sd-select-v2.js +124 -27
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-textarea/sd-textarea.js +29 -1
- package/dist/collection/components/table-test/table-test.js +1 -1
- package/dist/components/{p-z9MoRjYX.js → p-9HhG23Vy.js} +1 -1
- package/dist/components/p-B8XV0vD8.js +1 -0
- package/dist/components/{p-DlkxQ9Jn.js → p-BLxwBD2G.js} +1 -1
- package/dist/components/{p-B1j9ZWLJ.js → p-BM9Fr6OX.js} +1 -1
- package/dist/components/{p-CEeNVTzW.js → p-BfG60atH.js} +1 -1
- package/dist/components/p-CU7IOtCw.js +1 -0
- package/dist/components/{p-DPCj-bFr.js → p-Cc3bTBBn.js} +1 -1
- package/dist/components/{p-CS62OEXf.js → p-CeHRQb7A.js} +1 -1
- package/dist/components/{p-D21iKAp7.js → p-CoOl8zeX.js} +1 -1
- package/dist/components/p-CscUxW9p.js +1 -0
- package/dist/components/p-CuiFB2yQ.js +1 -0
- package/dist/components/p-D1SaZEYh.js +1 -0
- package/dist/components/{p-BPXQ6DXz.js → p-DM5vbfxB.js} +1 -1
- package/dist/components/{p-T5BGXHZg.js → p-DWJ3CIKO.js} +1 -1
- package/dist/components/{p-BFd54Imz.js → p-D_XZAh9v.js} +1 -1
- package/dist/components/{p-CtrDZYN5.js → p-DboqT9Do.js} +1 -1
- package/dist/components/p-DkHyt3Dz.js +1 -0
- package/dist/components/{p-DIro-Wat.js → p-Dmk-f7qn.js} +1 -1
- package/dist/components/p-DpBU4AWy.js +1 -0
- package/dist/components/p-r8kAA1Su.js +1 -0
- package/dist/components/{p-BaHpEtbz.js → p-raiEivQ1.js} +1 -1
- package/dist/components/sd-action-modal.js +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-button-v2.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-chip.js +1 -1
- package/dist/components/sd-circle-progress.js +1 -1
- package/dist/components/sd-confirm-modal.js +1 -1
- package/dist/components/sd-date-picker-calendar.js +1 -1
- package/dist/components/sd-date-picker-trigger.js +1 -1
- package/dist/components/sd-date-picker.js +1 -1
- package/dist/components/sd-date-range-picker-calendar.js +1 -1
- package/dist/components/sd-date-range-picker.js +1 -1
- package/dist/components/sd-dropdown-button.js +1 -1
- package/dist/components/sd-field.js +1 -1
- package/dist/components/sd-file-picker.js +1 -1
- package/dist/components/sd-floating-portal.js +1 -1
- package/dist/components/sd-ghost-button.js +1 -1
- package/dist/components/sd-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-container.js +1 -1
- package/dist/components/sd-loading-modal.js +1 -1
- package/dist/components/sd-modal-container.js +1 -1
- package/dist/components/sd-number-input.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-radio-button.js +1 -1
- package/dist/components/sd-radio-group.js +1 -1
- package/dist/components/sd-radio.js +1 -1
- package/dist/components/sd-select-dropdown.js +1 -1
- package/dist/components/sd-select-group.js +1 -1
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +1 -1
- package/dist/components/sd-select-search-input.js +1 -1
- package/dist/components/sd-select-v2-listbox.js +1 -1
- package/dist/components/sd-select-v2-trigger.js +1 -1
- package/dist/components/sd-select-v2.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-textarea.js +1 -1
- package/dist/components/sd-thead.js +1 -1
- package/dist/components/sd-toast-container.js +1 -1
- package/dist/components/sd-toast.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/table-test.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/p-06080355.entry.js +1 -0
- package/dist/design-system/{p-1b8e63a6.entry.js → p-0967ef4b.entry.js} +1 -1
- package/dist/design-system/{p-449e58ee.entry.js → p-12f13678.entry.js} +1 -1
- package/dist/design-system/{p-23c31074.entry.js → p-132721ad.entry.js} +1 -1
- package/dist/design-system/{p-8cd1b533.entry.js → p-1af3c5c5.entry.js} +1 -1
- package/dist/design-system/p-2196f439.entry.js +1 -0
- package/dist/design-system/{p-01ac7743.entry.js → p-2319b722.entry.js} +1 -1
- package/dist/design-system/{p-0d485537.entry.js → p-27165b31.entry.js} +1 -1
- package/dist/design-system/{p-4d434794.entry.js → p-3677b3ce.entry.js} +1 -1
- package/dist/design-system/{p-60ece09d.entry.js → p-3c64616c.entry.js} +1 -1
- package/dist/design-system/p-4ba03850.entry.js +1 -0
- package/dist/design-system/p-639d237f.entry.js +1 -0
- package/dist/design-system/{p-35b29182.entry.js → p-7232731b.entry.js} +1 -1
- package/dist/design-system/p-7dc33db0.entry.js +1 -0
- package/dist/design-system/{p-002e10ac.entry.js → p-8cb8444e.entry.js} +1 -1
- package/dist/design-system/p-8d65090b.entry.js +1 -0
- package/dist/design-system/{p-9f0fe1f6.entry.js → p-9960d880.entry.js} +1 -1
- package/dist/design-system/p-9dd7befe.entry.js +1 -0
- package/dist/design-system/{p-92a52f89.entry.js → p-a4e85dba.entry.js} +1 -1
- package/dist/design-system/p-a70ca82b.entry.js +1 -0
- package/dist/design-system/{p-48f1f9ff.entry.js → p-a8e7406e.entry.js} +1 -1
- package/dist/design-system/{p-1a455448.entry.js → p-ac441e78.entry.js} +1 -1
- package/dist/design-system/p-ac9f7551.entry.js +1 -0
- package/dist/design-system/p-b3b1f25d.entry.js +1 -0
- package/dist/design-system/p-beb8d3de.entry.js +1 -0
- package/dist/design-system/{p-4f9f25a1.entry.js → p-c290c0e0.entry.js} +1 -1
- package/dist/design-system/p-c62ad2f4.entry.js +1 -0
- package/dist/design-system/{p-4de3b6b1.entry.js → p-c67ff78d.entry.js} +1 -1
- package/dist/design-system/{p-7dd8beba.entry.js → p-c68e37f2.entry.js} +1 -1
- package/dist/design-system/p-d668fd71.entry.js +1 -0
- package/dist/design-system/{p-6ef2d08f.entry.js → p-d8a48add.entry.js} +1 -1
- package/dist/design-system/{p-cdedac3c.entry.js → p-dc43ebf9.entry.js} +1 -1
- package/dist/design-system/{p-6b478f5c.entry.js → p-f6869087.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-action-modal.entry.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-barcode-input.entry.js +2 -1
- package/dist/esm/sd-button-v2_2.entry.js +3 -3
- package/dist/esm/sd-button_4.entry.js +23 -6
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +1 -1
- package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
- package/dist/esm/sd-date-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-date-picker-trigger.entry.js +2 -2
- package/dist/esm/sd-date-picker.entry.js +3 -2
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-date-range-picker.entry.js +3 -2
- package/dist/esm/sd-dropdown-button.entry.js +3 -3
- package/dist/esm/sd-file-picker.entry.js +2 -1
- package/dist/esm/sd-ghost-button.entry.js +2 -2
- package/dist/esm/sd-input_2.entry.js +3 -2
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-number-input.entry.js +4 -3
- package/dist/esm/sd-pagination_2.entry.js +61 -29
- package/dist/esm/sd-popover.entry.js +24 -24
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-radio-button.entry.js +1 -1
- package/dist/esm/sd-radio-group.entry.js +1 -1
- package/dist/esm/sd-radio.entry.js +1 -1
- package/dist/esm/sd-select-group.entry.js +2 -1
- package/dist/esm/sd-select-multiple-group.entry.js +1 -1
- package/dist/esm/sd-select-v2-list-item_4.entry.js +28 -4
- package/dist/esm/sd-select.entry.js +2 -1
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-textarea.entry.js +2 -1
- package/dist/esm/table-test.entry.js +1 -1
- package/dist/types/components/sd-barcode-input/sd-barcode-input.d.ts +2 -0
- package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
- package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +2 -0
- package/dist/types/components/sd-field/sd-field.config.d.ts +2 -0
- package/dist/types/components/sd-field/sd-field.d.ts +2 -1
- package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +2 -0
- package/dist/types/components/sd-floating-portal/sd-floating-portal.d.ts +1 -0
- package/dist/types/components/sd-input/sd-input.d.ts +2 -0
- package/dist/types/components/sd-number-input/sd-number-input.d.ts +2 -0
- package/dist/types/components/sd-popover/sd-popover.d.ts +12 -8
- package/dist/types/components/sd-select/sd-select.d.ts +2 -0
- package/dist/types/components/sd-select-group/sd-select-group.d.ts +2 -0
- package/dist/types/components/sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts +4 -0
- package/dist/types/components/sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.d.ts +6 -0
- package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +10 -0
- package/dist/types/components/sd-textarea/sd-textarea.d.ts +2 -0
- package/dist/types/components.d.ts +128 -17
- package/hydrate/index.js +207 -114
- package/hydrate/index.mjs +207 -114
- package/package.json +1 -1
- package/dist/components/p-Cb1M05mf.js +0 -1
- package/dist/components/p-CsPyZohK.js +0 -1
- package/dist/components/p-DGPGMB_Z.js +0 -1
- package/dist/components/p-DQLyH3dr.js +0 -1
- package/dist/components/p-DWW5xr6r.js +0 -1
- package/dist/components/p-D_lyw4rN.js +0 -1
- package/dist/components/p-Diis5oCN.js +0 -1
- package/dist/components/p-N_EbEY8s.js +0 -1
- package/dist/design-system/p-07736d67.entry.js +0 -1
- package/dist/design-system/p-0c98676e.entry.js +0 -1
- package/dist/design-system/p-16eae7ae.entry.js +0 -1
- package/dist/design-system/p-23ff6bee.entry.js +0 -1
- package/dist/design-system/p-2a663b3b.entry.js +0 -1
- package/dist/design-system/p-33713805.entry.js +0 -1
- package/dist/design-system/p-5a0b0a1b.entry.js +0 -1
- package/dist/design-system/p-6ca6dfaf.entry.js +0 -1
- package/dist/design-system/p-8281dc36.entry.js +0 -1
- package/dist/design-system/p-87222184.entry.js +0 -1
- package/dist/design-system/p-ca6b4d4a.entry.js +0 -1
- package/dist/design-system/p-e1b307ee.entry.js +0 -1
- package/dist/design-system/p-ebc72b3f.entry.js +0 -1
package/hydrate/index.mjs
CHANGED
|
@@ -5285,7 +5285,7 @@ class DataTable {
|
|
|
5285
5285
|
return el.innerHTML;
|
|
5286
5286
|
}
|
|
5287
5287
|
render() {
|
|
5288
|
-
return (hAsync("div", { key: '
|
|
5288
|
+
return (hAsync("div", { key: '2aaa005ce2516e841fdace352e9d8cf2b98cbde4', class: "table-wrapper" }, hAsync("table", { key: '3b13c885dc0cefd1c2b7de3c336d803099009063', class: { 'data-table': true, 'bordered': this.bordered, 'striped': this.striped } }, hAsync("thead", { key: 'a866c3ce695250fc6b220044955c6fafa68f5647' }, hAsync("tr", { key: '465974d2bd2f39114cabda226aba8645d79b4a68' }, this.columns.map(column => (hAsync("th", { key: column.field, style: { width: column.width } }, this.renderHeaderContent(column)))))), hAsync("tbody", { key: '4b0a96da5bf54404774fca7bb9136561ddc57170' }, this.rows.map((row, rowIndex) => (hAsync("tr", { key: rowIndex }, this.columns.map(column => (hAsync("td", { key: `${rowIndex}-${column.field}` }, this.renderCellContent(column, row, rowIndex))))))))), hAsync("div", { key: '1deba9664748b1953a65b2d7badc4b2e813ab2eb', class: "templates-slot", hidden: true }, hAsync("slot", { key: '782d4ef14b8e6068e1d96a55af5f0b16af33dc0f' }))));
|
|
5289
5289
|
}
|
|
5290
5290
|
static get watchers() { return {
|
|
5291
5291
|
"columns": [{
|
|
@@ -5446,7 +5446,7 @@ class SdActionModal {
|
|
|
5446
5446
|
if (this.height != null && this.height !== '') {
|
|
5447
5447
|
sizeStyle.height = typeof this.height === 'number' ? `${this.height}px` : this.height;
|
|
5448
5448
|
}
|
|
5449
|
-
return (hAsync("div", { key: '
|
|
5449
|
+
return (hAsync("div", { key: '45997c9b1e10845c4d04528911147bc1d7192dd6', class: "sd-action-modal", style: { ...cssVars, ...sizeStyle } }, hAsync("header", { key: '838bfdc66c52fffb7f226a2a1eb0bdd4a2a8addc', class: "sd-action-modal__header" }, hAsync("h2", { key: 'e17e9c7954d0217071e2c21aa030f3abcc0a584f', class: "sd-action-modal__title" }, this.modalTitle), hAsync("div", { key: 'e81bbfa0bcabba237be8364a40a71c38a4120af1', class: "sd-action-modal__header-sub" }, hAsync("slot", { key: 'b98817a60a874897acd209e7184690f04678a5ca', name: "header-sub-title" })), hAsync("sd-ghost-button", { key: '3b99fd3a4f3e795e5192fe9b41de8b97a40f80d0', class: "sd-action-modal__close", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() })), hAsync("div", { key: 'f499d92ecc3adeed3da427ae8bbdc0c6d7edf37b', class: "sd-action-modal__body" }, hAsync("slot", { key: 'dd05e8f95be6aa98a84d5752c89dad9a28695601', name: "body" })), (this.buttonProps != null || this.buttonProps != undefined) && (hAsync("footer", { key: '43b2338654d3a56aced7029749b0e03f0427545f', class: "sd-action-modal__footer" }, hAsync("div", { key: '6308a79ed13017ee2c5a71d7dbf49a7da6bd775f', class: "sd-action-modal__footer-sub" }, hAsync("slot", { key: 'f3764684c374d82a31cbd65333bb0f69eb6f2f1b', name: "bottom-sub-content" })), hAsync("sd-button-v2", { key: '42a2b3068574b56172b0138076f49167da8e6625', ...DEFAULT_BUTTON_PROPS, ...this.buttonProps, onSdClick: () => this.ok.emit() })))));
|
|
5450
5450
|
}
|
|
5451
5451
|
static get style() { return sdActionModalCss(); }
|
|
5452
5452
|
static get cmpMeta() { return {
|
|
@@ -5499,7 +5499,7 @@ class SdBadge {
|
|
|
5499
5499
|
label = '';
|
|
5500
5500
|
render() {
|
|
5501
5501
|
const resolvedColor = BADGE_COLOR_MAP[this.color] ?? BADGE_COLOR_MAP.blue;
|
|
5502
|
-
return (hAsync("div", { key: '
|
|
5502
|
+
return (hAsync("div", { key: '25c24499f0474cad07059347491dd38dc4f59025', class: "sd-badge", style: { '--sd-badge-color': resolvedColor } }, hAsync("div", { key: '7580873ce298cf669a198c277bd4e6812e7c4120', class: "sd-badge__dot" }), hAsync("div", { key: '6c2b8e63a490a3f538cd98749283a5decde63ca6', class: "sd-badge__label" }, this.label)));
|
|
5503
5503
|
}
|
|
5504
5504
|
static get style() { return sdBadgeCss(); }
|
|
5505
5505
|
static get cmpMeta() { return {
|
|
@@ -5613,6 +5613,7 @@ class SdBarcodeInput {
|
|
|
5613
5613
|
value = null;
|
|
5614
5614
|
size = 'sm';
|
|
5615
5615
|
addonLabel = '';
|
|
5616
|
+
addonAlign = 'start';
|
|
5616
5617
|
placeholder = '입력해 주세요.';
|
|
5617
5618
|
disabled = false;
|
|
5618
5619
|
clearable = false;
|
|
@@ -5708,7 +5709,7 @@ class SdBarcodeInput {
|
|
|
5708
5709
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
5709
5710
|
'--sd-system-color-field-bg-default': BARCODE_INPUT_COLORS.bg.barcode,
|
|
5710
5711
|
};
|
|
5711
|
-
return (hAsync("sd-field", { key: '
|
|
5712
|
+
return (hAsync("sd-field", { key: '5e1e5e5ba201ea743fa83df03f7712d7141332e7', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: '4b8d82acd91c247b148d1b16f3b3c9d4e69c178f', class: "sd-barcode-input__content" }, hAsync("slot", { key: '0fb54ff8ebca25f348f1fdbb7b29f5e391beea9e', name: "prefix" }), hAsync("input", { key: '9c1e3fd1bfa35cc663838dc0dc737497525a8aa6', name: this.name, ref: el => (this.nativeEl = el), class: `sd-barcode-input__native ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '6e060c721546d34ce6137986ba7204df90a55f51', name: "suffix" }), this.clearable && this.internalValue && (hAsync("sd-ghost-button", { key: 'ded4ca906d1f25bbc80a7ba8e090eb24f507bb09', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-barcode-input__clear-icon", onClick: async () => {
|
|
5712
5713
|
if (this.disabled)
|
|
5713
5714
|
return;
|
|
5714
5715
|
this.internalValue = '';
|
|
@@ -5731,6 +5732,7 @@ class SdBarcodeInput {
|
|
|
5731
5732
|
"value": [1032],
|
|
5732
5733
|
"size": [1],
|
|
5733
5734
|
"addonLabel": [1, "addon-label"],
|
|
5735
|
+
"addonAlign": [1, "addon-align"],
|
|
5734
5736
|
"placeholder": [1],
|
|
5735
5737
|
"disabled": [4],
|
|
5736
5738
|
"clearable": [4],
|
|
@@ -6431,15 +6433,15 @@ class SdButtonV2 {
|
|
|
6431
6433
|
render() {
|
|
6432
6434
|
const { config, preset } = this.resolvedConfig;
|
|
6433
6435
|
const hasLabel = Boolean(this.label);
|
|
6434
|
-
const iconOnly = !this.label &&
|
|
6436
|
+
const iconOnly = !this.label && Boolean(this.icon) !== Boolean(this.rightIcon);
|
|
6435
6437
|
const accessibleName = iconOnly && this.ariaLabel.trim() ? this.ariaLabel : undefined;
|
|
6436
|
-
return (hAsync("button", { key: '
|
|
6438
|
+
return (hAsync("button", { key: '9e81a8201a521c9c1e14c2c0145607189b8c3838', class: this.getButtonClasses(preset, config.size, hasLabel, iconOnly), type: this.type, disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
6437
6439
|
'--sd-button-v2-bg': config.color,
|
|
6438
6440
|
'--sd-button-v2-bg-hover': PRESET_HOVER_BACKGROUNDS$1[preset],
|
|
6439
6441
|
'--sd-button-v2-border': PRESET_BORDER_COLORS$1[preset],
|
|
6440
6442
|
'--sd-button-v2-content': PRESET_CONTENT_COLORS$1[preset],
|
|
6441
6443
|
'--sd-button-v2-accent': BUTTON_FOCUS_RING_COLOR,
|
|
6442
|
-
}, onClick: this.handleClick }, hAsync("span", { key: '
|
|
6444
|
+
}, onClick: this.handleClick }, hAsync("span", { key: '42d8b7f20ab0b3e8e32a18f2e8b2af9251558413', class: "sd-button-v2__content" }, this.icon && (hAsync("sd-icon", { key: '8430b5aebe8c7d41bddf8378441d4182ee9ab344', class: "sd-button-v2__icon", name: this.icon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })), this.label && hAsync("span", { key: '7a1865fb4472fb1e567c2adeb6a30e09665b6250', class: "sd-button-v2__label" }, this.label), this.rightIcon && (hAsync("sd-icon", { key: '51738c13c5e518cf0d864beb9c6cc680d0b5c867', class: "sd-button-v2__icon sd-button-v2__icon--right", name: this.rightIcon, size: BUTTON_ICON_SIZES[config.size], color: "var(--sd-button-v2-current-icon)" })))));
|
|
6443
6445
|
}
|
|
6444
6446
|
static get style() { return sdButtonV2Css(); }
|
|
6445
6447
|
static get cmpMeta() { return {
|
|
@@ -6677,7 +6679,7 @@ class SdCard {
|
|
|
6677
6679
|
bordered = false;
|
|
6678
6680
|
sdClass = '';
|
|
6679
6681
|
render() {
|
|
6680
|
-
return (hAsync(Fragment, { key: '
|
|
6682
|
+
return (hAsync(Fragment, { key: 'fa3c7ed4a6fb93200c9faacc1aef1db51ed3050f' }, hAsync("div", { key: '2e82506370c7f6873793053248bf28c2b5fe42ce', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.sdClass}` }, hAsync("slot", { key: 'a725bee33ea056e6662485f72dcd08ae96acf03e' }))));
|
|
6681
6683
|
}
|
|
6682
6684
|
static get style() { return sdCardCss(); }
|
|
6683
6685
|
static get cmpMeta() { return {
|
|
@@ -7198,7 +7200,7 @@ class SdChip {
|
|
|
7198
7200
|
'--sd-chip-font-weight': typography.fontWeight,
|
|
7199
7201
|
'--sd-chip-line-height': typography.lineHeight,
|
|
7200
7202
|
};
|
|
7201
|
-
return (hAsync("span", { key: '
|
|
7203
|
+
return (hAsync("span", { key: '70ea5743cf806c5d12f8559bdb12abb2adf2af30', class: {
|
|
7202
7204
|
'sd-chip': true,
|
|
7203
7205
|
[`sd-chip--${state}`]: true,
|
|
7204
7206
|
'sd-chip--disabled': this.disabled,
|
|
@@ -7300,7 +7302,7 @@ class SdCircleProgress {
|
|
|
7300
7302
|
arcStyle.strokeDashoffset = '0';
|
|
7301
7303
|
}
|
|
7302
7304
|
const c = CIRCLE_PROGRESS_VIEWBOX_SIZE / 2;
|
|
7303
|
-
return (hAsync(Host, { key: '
|
|
7305
|
+
return (hAsync(Host, { key: 'ce120476470e03e49d5a50a0395bb21955163019', style: hostStyle }, hAsync("svg", { key: 'ad0916ef87d9a04415d4712e3e84d44fcb8b40d7', class: "sd-circle-progress", viewBox: `0 0 ${CIRCLE_PROGRESS_VIEWBOX_SIZE} ${CIRCLE_PROGRESS_VIEWBOX_SIZE}`, xmlns: "http://www.w3.org/2000/svg" }, hAsync("circle", { key: 'db230e486fe5bfd1325ddb4510558cadea09032f', class: "sd-circle-progress__track", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH }), hAsync("circle", { key: '9e1c53e5d6dc75c6e5c9a3b79b329847b17b10d6', class: "sd-circle-progress__arc", cx: c, cy: c, r: CIRCLE_PROGRESS_RADIUS, fill: "none", "stroke-width": CIRCLE_PROGRESS_STROKE_WIDTH, "stroke-linecap": "round", style: arcStyle }))));
|
|
7304
7306
|
}
|
|
7305
7307
|
static get style() { return sdCircleProgressCss(); }
|
|
7306
7308
|
static get cmpMeta() { return {
|
|
@@ -7410,9 +7412,9 @@ class SdConfirmModal {
|
|
|
7410
7412
|
render() {
|
|
7411
7413
|
const iconName = CONFIRM_MODAL_ICON_MAP[this.type];
|
|
7412
7414
|
const iconColor = CONFIRM_MODAL_ICON_COLOR[this.type];
|
|
7413
|
-
return (hAsync("div", { key: '
|
|
7415
|
+
return (hAsync("div", { key: '527f7377ba0ccf59b2a212a885e05b0cfa3b3431', class: "sd-confirm-modal" }, hAsync("sd-ghost-button", { key: '2423769fb6e746cf1e89a9d28a11cf7fc6d70ded', class: "sd-confirm-modal__close-button", icon: "close", ariaLabel: "close", onClick: () => this.close.emit() }), iconName && (hAsync("sd-icon", { key: '44f12a1fc2b19cf55ac75011af503ae0bab3188d', class: "sd-confirm-modal__icon", name: iconName, size: TITLE_ICON_SIZE, color: iconColor })), hAsync("h2", { key: '50406274eca8bd43fec1cdd50d8e348e2270d11c', class: `sd-confirm-modal__title ${this.titleClass}` }, this.modalTitle), hAsync("div", { key: 'a320636aa68da78881583005d3a2d5af9252f566', class: "sd-confirm-modal__body" }, (this.topMessage ?? []).length > 0 && (hAsync("div", { key: '6702a46ad0d3db59b1bda03e506515ba302dd292', class: "sd-confirm-modal__message" }, (this.topMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: msg }))))), this.showContentBox && (hAsync("div", { key: '1fa38c64b283b38a2b2dd58f772f1968c06be04d', class: "sd-confirm-modal__content-box" }, this.tagContents ? (hAsync("div", { class: "sd-confirm-modal__custom-content", ref: el => {
|
|
7414
7416
|
this.customContentRef = el;
|
|
7415
|
-
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && hAsync("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '
|
|
7417
|
+
} })) : (hAsync("slot", { onSlotchange: () => this.syncHasSlottedContent() }, this.tagLabel && hAsync("sd-tag", { name: this.tagPreset, label: this.tagLabel }), this.slotLabel && (hAsync("span", { class: "sd-confirm-modal__slot-label" }, this.slotLabel)))))), (this.bottomMessage ?? []).length > 0 && (hAsync("div", { key: '217a024876abf99c9eddc7721a71ee7ce2f09308', class: "sd-confirm-modal__message" }, (this.bottomMessage ?? []).map(msg => (hAsync("p", { class: "sd-confirm-modal__message-text", innerHTML: msg })))))), hAsync("div", { key: '58b585e8a4481e12df904e764357d50c30896987', class: "sd-confirm-modal__button" }, this.subButtonLabel && (hAsync("sd-button-v2", { key: 'd066d5deb7a6993fbc7ff38ad9015dc3148b3241', name: SUB_BUTTON_PRESET, label: this.subButtonLabel, onSdClick: () => this.cancel.emit() })), hAsync("sd-button-v2", { key: '920e596824d7fadf478f520f1e7814f5ab27aa95', name: this.resolvedMainButton, label: this.mainButtonLabel, onSdClick: () => this.ok.emit() }))));
|
|
7416
7418
|
}
|
|
7417
7419
|
static get style() { return sdConfirmModalCss(); }
|
|
7418
7420
|
static get cmpMeta() { return {
|
|
@@ -7691,6 +7693,7 @@ class SdDatePicker {
|
|
|
7691
7693
|
label = '';
|
|
7692
7694
|
labelWidth = '';
|
|
7693
7695
|
addonLabel = '';
|
|
7696
|
+
addonAlign = 'start';
|
|
7694
7697
|
hint = '';
|
|
7695
7698
|
errorMessage = '';
|
|
7696
7699
|
fieldName = '';
|
|
@@ -7769,9 +7772,9 @@ class SdDatePicker {
|
|
|
7769
7772
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
7770
7773
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
7771
7774
|
};
|
|
7772
|
-
return (hAsync("sd-field", { key: '
|
|
7775
|
+
return (hAsync("sd-field", { key: 'b8a0f70ce797b4d28997c1870641077d9c067347', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'fe9117f48031e5524e2c751586f4b584a015000c', class: "sd-date-picker", ref: el => {
|
|
7773
7776
|
this.triggerRef = el;
|
|
7774
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
7777
|
+
} }, hAsync("sd-date-picker-trigger", { key: 'd1bbcccf9de8b9aadb56291fdd2fa335af8c82dd', displayText: this.value ?? '', placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '37a5c22f48e077e943a3701d4d686a52c102459e', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-picker-calendar", { key: 'dcc2248ad0963fb924f85aad59a6b24d7f3c23d8', value: this.value, selectable: this.selectable, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
7775
7778
|
}
|
|
7776
7779
|
static get watchers() { return {
|
|
7777
7780
|
"isOpen": [{
|
|
@@ -7792,6 +7795,7 @@ class SdDatePicker {
|
|
|
7792
7795
|
"label": [1],
|
|
7793
7796
|
"labelWidth": [8, "label-width"],
|
|
7794
7797
|
"addonLabel": [1, "addon-label"],
|
|
7798
|
+
"addonAlign": [1, "addon-align"],
|
|
7795
7799
|
"hint": [1],
|
|
7796
7800
|
"errorMessage": [1, "error-message"],
|
|
7797
7801
|
"fieldName": [1, "field-name"],
|
|
@@ -7952,7 +7956,7 @@ class SdDatePickerCalendar {
|
|
|
7952
7956
|
'--calendar-day-font-weight': CALENDAR_LAYOUT.day.fontWeight,
|
|
7953
7957
|
'--calendar-day-bold-font-weight': CALENDAR_LAYOUT.day.boldFontWeight,
|
|
7954
7958
|
};
|
|
7955
|
-
return (hAsync("div", { key: '
|
|
7959
|
+
return (hAsync("div", { key: '8b1562e7be35eefd8b05c66931f6288edc48d4f7', class: "sd-date-picker-calendar", style: cssVars }, hAsync("div", { key: '0a5b4eeeb54eed144fcb89a2030fa33783e187e3', class: "sd-date-picker-calendar__header" }, hAsync("div", { key: '9d522b1a52afba7f035f2898aaec7252340f8f57', class: "sd-date-picker-calendar__nav-group" }, hAsync("sd-ghost-button", { key: '944e17391090faf35e68d39b2c8c8de04ef115e5', ariaLabel: "prevYear", size: "xxs", icon: "chevronLeft", onClick: this.goPrevYear }), hAsync("span", { key: '2b708445cb919ecec6a72b9532a83d09c3324f77', class: "sd-date-picker-calendar__label" }, this.currentYear), hAsync("sd-ghost-button", { key: '501f4ac1ba04fe55856f891b8738454abe358d6b', ariaLabel: "nextYear", size: "xxs", icon: "chevronRight", onClick: this.goNextYear })), hAsync("span", { key: 'dff5ff19a16897c79ac85c887ebe358ecefb910b', class: "sd-date-picker-calendar__divider", "aria-hidden": "true" }), hAsync("div", { key: 'cee819c90306c593e201aefcf278ecb6aeca2ee6', class: "sd-date-picker-calendar__nav-group sd-date-picker-calendar__nav-group-month" }, hAsync("sd-ghost-button", { key: '73c2fddb26e26fed12218a8320dce522c5de1303', ariaLabel: "prevMonth", size: "xxs", icon: "chevronLeft", onClick: this.goPrevMonth }), hAsync("span", { key: 'abaa67ebd52b3e906989b84ead4a74187da7a176', class: "sd-date-picker-calendar__label sd-date-picker-calendar__label-month" }, this.currentMonth, "\uC6D4"), hAsync("sd-ghost-button", { key: 'e90263362f21b2521bea4e587f801fa2994a618d', ariaLabel: "nextMonth", size: "xxs", icon: "chevronRight", onClick: this.goNextMonth }))), hAsync("div", { key: '6913c667bd423d5930f7c3b802b391e15c6522c9', class: "sd-date-picker-calendar__week" }, WEEK_LABELS.map(label => (hAsync("span", { key: label, class: "sd-date-picker-calendar__week-cell" }, label)))), hAsync("div", { key: '7c85954ecc18216ebab15f9249882f88965e6490', class: "sd-date-picker-calendar__grid" }, this.cells.map(cell => {
|
|
7956
7960
|
const isSelected = cell.inCurrentMonth && !!this.value && this.value === cell.date;
|
|
7957
7961
|
const isToday = cell.inCurrentMonth && today === cell.date;
|
|
7958
7962
|
const isDisabled = cell.inCurrentMonth && this.isDisabled(cell.date);
|
|
@@ -8023,10 +8027,10 @@ class SdDatePickerTrigger {
|
|
|
8023
8027
|
? DATEPICKER_COLORS.icon.disabled
|
|
8024
8028
|
: DATEPICKER_COLORS.icon.default,
|
|
8025
8029
|
};
|
|
8026
|
-
return (hAsync("div", { key: '
|
|
8030
|
+
return (hAsync("div", { key: 'b68ee54fcd6dc1fe5aa4e1f157ebd2f7603240c6', class: {
|
|
8027
8031
|
'sd-date-picker-trigger': true,
|
|
8028
8032
|
'sd-date-picker-trigger--disabled': this.disabled,
|
|
8029
|
-
}, style: cssVars, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
8033
|
+
}, style: cssVars, onClick: this.handleClick }, hAsync("sd-icon", { key: '8cf46b98ab2f4839e631af68451185fd849ed45f', name: "date", size: Number(sizeTokens.iconSize), color: "var(--trigger-icon-color)", class: "sd-date-picker-trigger__icon" }), hAsync("span", { key: '971afb2a5c045800ebdd96df579df362ccc950c6', class: "sd-date-picker-trigger__text" }, hasValue ? this.displayText : this.placeholder)));
|
|
8030
8034
|
}
|
|
8031
8035
|
static get style() { return sdDatePickerTriggerCss(); }
|
|
8032
8036
|
static get cmpMeta() { return {
|
|
@@ -8072,6 +8076,7 @@ class SdDateRangePicker {
|
|
|
8072
8076
|
label = '';
|
|
8073
8077
|
labelWidth = '';
|
|
8074
8078
|
addonLabel = '';
|
|
8079
|
+
addonAlign = 'start';
|
|
8075
8080
|
hint = '';
|
|
8076
8081
|
errorMessage = '';
|
|
8077
8082
|
fieldName = '';
|
|
@@ -8155,9 +8160,9 @@ class SdDateRangePicker {
|
|
|
8155
8160
|
'--sd-system-color-field-border-focus': DATEPICKER_COLORS.border.focus,
|
|
8156
8161
|
'--sd-system-color-field-bg-default': DATEPICKER_COLORS.bg.default,
|
|
8157
8162
|
};
|
|
8158
|
-
return (hAsync("sd-field", { key: '
|
|
8163
|
+
return (hAsync("sd-field", { key: '34c4d9ef2ba50f951fc6b6b09215e750ac61cd87', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'c92ab61d144c893077a9c81922ac24eff93314dd', class: "sd-date-range-picker", ref: el => {
|
|
8159
8164
|
this.triggerRef = el;
|
|
8160
|
-
} }, hAsync("sd-date-picker-trigger", { key: '
|
|
8165
|
+
} }, hAsync("sd-date-picker-trigger", { key: '487b8a1af6e8dee063d70ffc030c314037741d74', displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, size: this.size, onSdTriggerClick: this.handleTriggerClick })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: 'f22c979943cebcc82e8d4d9f86037621e8c3983a', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, hAsync("sd-date-range-picker-calendar", { key: 'c19548d0074556f90c740b6ba35338ea4d41dd18', value: this.value, selectable: this.selectable, maxRange: this.maxRange, onSdSelect: this.handleSelect, onSdViewChange: this.handleViewChange })))));
|
|
8161
8166
|
}
|
|
8162
8167
|
static get watchers() { return {
|
|
8163
8168
|
"isOpen": [{
|
|
@@ -8179,6 +8184,7 @@ class SdDateRangePicker {
|
|
|
8179
8184
|
"label": [1],
|
|
8180
8185
|
"labelWidth": [8, "label-width"],
|
|
8181
8186
|
"addonLabel": [1, "addon-label"],
|
|
8187
|
+
"addonAlign": [1, "addon-align"],
|
|
8182
8188
|
"hint": [1],
|
|
8183
8189
|
"errorMessage": [1, "error-message"],
|
|
8184
8190
|
"fieldName": [1, "field-name"],
|
|
@@ -8445,7 +8451,7 @@ class SdDateRangePickerCalendar {
|
|
|
8445
8451
|
'--range-panel-gap': `${RANGE_LAYOUT.panelGap}px`,
|
|
8446
8452
|
'--range-divider': RANGE_LAYOUT.divider,
|
|
8447
8453
|
};
|
|
8448
|
-
return (hAsync(Fragment, { key: '
|
|
8454
|
+
return (hAsync(Fragment, { key: 'e925fa935f807e22b22a2f65b4af5b2568865781' }, hAsync("div", { key: 'be601b16d179d91292b58c3b70ce6a4aa4f5e59a', class: "sd-date-range-picker-calendar", style: cssVars }, this.renderYearNav(), hAsync("div", { key: 'e193b983a7eb75a227ea8e1d13839dcc9e875588', class: "sd-date-range-picker-calendar__panels" }, this.renderPanel(this.currentYear, this.currentMonth, true), hAsync("span", { key: '6f2ea95c2fd490a46ac40f6a526ca028920bc564', class: "sd-date-range-picker-calendar__divider", "aria-hidden": "true" }), this.renderPanel(this.rightYear, this.rightMonth, false)))));
|
|
8449
8455
|
}
|
|
8450
8456
|
static get watchers() { return {
|
|
8451
8457
|
"value": [{
|
|
@@ -8813,7 +8819,7 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
8813
8819
|
}
|
|
8814
8820
|
render() {
|
|
8815
8821
|
const { config, preset } = this.resolvedConfig;
|
|
8816
|
-
return (hAsync("div", { key: '
|
|
8822
|
+
return (hAsync("div", { key: 'ce06d2b7e13cb234bb6e7393939d2ccd834801a5', class: "sd-dropdown-button" }, hAsync("button", { key: '4bd3e86eec90698188a834eb35ff922dee7d1855', type: "button", class: this.getTriggerClasses(preset, config.size, this.disabled, this.isOpen), disabled: this.disabled, "aria-haspopup": "menu", "aria-expanded": String(this.isOpen), onClick: this.toggleDropdown, ref: el => (this.triggerRef = el), style: {
|
|
8817
8823
|
'--sd-dropdown-button-bg': config.color,
|
|
8818
8824
|
'--sd-dropdown-button-bg-hover': PRESET_HOVER_BACKGROUNDS[preset],
|
|
8819
8825
|
'--sd-dropdown-button-border': PRESET_BORDER_COLORS[preset],
|
|
@@ -8823,10 +8829,10 @@ class SdDropdownButton extends BaseDropdownEvent {
|
|
|
8823
8829
|
'--sd-dropdown-button-disabled-bg': DROPDOWN_DISABLED_BACKGROUND,
|
|
8824
8830
|
'--sd-dropdown-button-disabled-content': DROPDOWN_DISABLED_TEXT,
|
|
8825
8831
|
'--sd-dropdown-button-disabled-border': DROPDOWN_DISABLED_BORDER,
|
|
8826
|
-
} }, hAsync("span", { key: '
|
|
8832
|
+
} }, hAsync("span", { key: '2baea4f0777ec766625d4ae1fb14739aa61ca114', class: "sd-dropdown-button__trigger-label" }, this.label), hAsync("span", { key: 'b37a94dd23d26a1444ddccc192b2a5ab2388bc64', class: "sd-dropdown-button__trigger-divider", "aria-hidden": "true" }), hAsync("span", { key: 'b903ff916c3ae1ab189cd08877a57940e45d8aeb', class: {
|
|
8827
8833
|
'sd-dropdown-button__trigger-icon': true,
|
|
8828
8834
|
'sd-dropdown-button__trigger-icon--open': this.isOpen,
|
|
8829
|
-
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '
|
|
8835
|
+
}, "aria-hidden": "true" }, hAsync("sd-icon", { key: '2eac1eabd2677decb0c1cfe4f518a7da9aca60ff', name: "chevronDown", size: DROPDOWN_CHEVRON_ICON_SIZE[config.size], color: "var(--sd-dropdown-button-current-content)" }))), this.renderDropdown(preset)));
|
|
8830
8836
|
}
|
|
8831
8837
|
static get watchers() { return {
|
|
8832
8838
|
"isOpen": [{
|
|
@@ -8897,6 +8903,11 @@ var fieldTokens = {
|
|
|
8897
8903
|
field: field
|
|
8898
8904
|
};
|
|
8899
8905
|
|
|
8906
|
+
const FIELD_ADDON_ALIGN_MAP = {
|
|
8907
|
+
start: 'flex-start',
|
|
8908
|
+
center: 'center',
|
|
8909
|
+
end: 'flex-end',
|
|
8910
|
+
};
|
|
8900
8911
|
const sm$2 = fieldTokens.field.label.sm;
|
|
8901
8912
|
const md$2 = fieldTokens.field.label.md;
|
|
8902
8913
|
const FIELD_LABEL_SIZE_MAP = {
|
|
@@ -8918,7 +8929,7 @@ const FIELD_LABEL_SIZE_MAP = {
|
|
|
8918
8929
|
},
|
|
8919
8930
|
};
|
|
8920
8931
|
|
|
8921
|
-
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;white-space:nowrap;padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8932
|
+
const sdFieldCss = () => `sd-field{display:inline-flex;flex-flow:column nowrap;height:fit-content;width:100%}sd-field .sd-field *:focus,sd-field .sd-field *:focus-visible,sd-field .sd-field *:focus-within{outline:none !important}sd-field .sd-field.sd-field--disabled{cursor:not-allowed}sd-field .sd-field.sd-field--disabled .sd-field__wrapper{cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__label-inside{border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field.sd-field--disabled .sd-field__wrapper .sd-field__control{background-color:#E1E1E1;border-color:#CCCCCC;color:#888888;cursor:not-allowed !important}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label{display:flex;align-items:center;flex-shrink:0;width:var(--sd-field-label-width, auto);height:var(--sd-field-label-height);margin-right:var(--sd-field-label-margin-right)}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__icon{margin-right:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__text{font-size:var(--sd-field-label-font-size);line-height:var(--sd-field-label-line-height);font-weight:var(--sd-field-label-font-weight);color:var(--sd-system-color-field-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}sd-field .sd-field--has-label .sd-field__wrapper .sd-field__label__tooltip{margin-left:var(--sd-field-label-gap);flex-shrink:0}sd-field .sd-field--has-addon .sd-field__control .sd-field__addon{display:flex;gap:var(--sd-field-addon-gap);align-items:center;justify-content:var(--sd-field-addon-justify, flex-start);white-space:nowrap;box-sizing:border-box;flex-shrink:0;width:var(--sd-field-addon-width, auto);padding:0 var(--sd-field-addon-padding-x);font-size:var(--sd-field-addon-font-size);line-height:var(--sd-field-addon-line-height);font-weight:var(--sd-field-addon-font-weight);background:var(--sd-field-addon-bg);border-right:var(--sd-field-addon-border-width) solid var(--sd-field-addon-border-color);border-radius:calc(var(--sd-field-control-radius) - 1px) 0 0 calc(var(--sd-field-control-radius) - 1px)}sd-field .sd-field__wrapper{width:100%;display:flex;align-items:flex-start;flex-flow:row nowrap;position:relative;color:var(--sd-system-color-field-text-default);-webkit-user-select:none;user-select:none}sd-field .sd-field__wrapper .sd-field__main{flex:1;min-width:0;display:flex;flex-direction:column}sd-field .sd-field__wrapper .sd-field__control{position:relative;height:var(--sd-field-wrapper-height);display:flex;min-width:0;border:1px solid var(--sd-system-color-field-border-default);border-radius:var(--sd-field-control-radius);background:var(--sd-system-color-field-bg-default)}sd-field .sd-field--error .sd-field__wrapper .sd-field__control:not(:hover){border:1px solid var(--sd-system-color-field-border-danger) !important}sd-field .sd-field.sd-field--pass .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-success) !important}sd-field .sd-field:not(.sd-field--disabled) .sd-field__wrapper .sd-field__control:hover{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field.sd-field--focus .sd-field__wrapper .sd-field__control{border:1px solid var(--sd-system-color-field-border-focus) !important;box-shadow:0px 0px 4px 0px rgba(0, 113, 255, 0.4)}sd-field .sd-field .sd-field__error-message{color:var(--sd-textinput-textinput-text-error-message);font-size:var(--sd-textinput-textinput-error-message-typography-font-size);line-height:var(--sd-textinput-textinput-error-message-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}sd-field .sd-field .sd-field__hint{color:var(--sd-textinput-textinput-text-hint);font-size:var(--sd-textinput-textinput-hint-typography-font-size);line-height:var(--sd-textinput-textinput-hint-typography-line-height);margin-top:var(--sd-textinput-textinput-contents-gap)}`;
|
|
8922
8933
|
|
|
8923
8934
|
const FORM_PARENT_TAGS = [
|
|
8924
8935
|
'sd-select',
|
|
@@ -8953,6 +8964,7 @@ class SdField {
|
|
|
8953
8964
|
label = '';
|
|
8954
8965
|
labelWidth = '';
|
|
8955
8966
|
addonLabel = '';
|
|
8967
|
+
addonAlign = 'start';
|
|
8956
8968
|
icon = undefined;
|
|
8957
8969
|
labelTooltip = '';
|
|
8958
8970
|
labelTooltipProps = null;
|
|
@@ -9083,22 +9095,28 @@ class SdField {
|
|
|
9083
9095
|
: addonTokens.border.default,
|
|
9084
9096
|
'--sd-field-addon-gap': `${addonTokens.gap}px`,
|
|
9085
9097
|
'--sd-field-addon-border-width': `${addonTokens.border.width}px`,
|
|
9098
|
+
'--sd-field-addon-justify': FIELD_ADDON_ALIGN_MAP[this.addonAlign] ?? FIELD_ADDON_ALIGN_MAP.start,
|
|
9099
|
+
...(this.labelWidth
|
|
9100
|
+
? {
|
|
9101
|
+
'--sd-field-addon-width': typeof this.labelWidth === 'number' ? `${this.labelWidth}px` : this.labelWidth,
|
|
9102
|
+
}
|
|
9103
|
+
: {}),
|
|
9086
9104
|
}
|
|
9087
9105
|
: {};
|
|
9088
|
-
return (hAsync("div", { key: '
|
|
9106
|
+
return (hAsync("div", { key: '1968d09203629bca596f6569720d532cae387654', class: {
|
|
9089
9107
|
'sd-field': true,
|
|
9090
9108
|
'sd-field--has-label': !!this.label,
|
|
9091
9109
|
'sd-field--has-addon': !!addon,
|
|
9092
9110
|
[this.fieldStatus]: !!this.fieldStatus,
|
|
9093
|
-
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: '
|
|
9111
|
+
}, style: { ...sizeCssVars, ...labelCssVars, ...addonCssVars } }, hAsync("div", { key: 'c373b7878033026747c8c4fa5d984d036d391cd8', class: "sd-field__wrapper" }, this.renderLabel(this.label), hAsync("div", { key: 'd6a379920eded2abb88b9f9260108a32c80ca888', class: "sd-field__main", style: this.width
|
|
9094
9112
|
? {
|
|
9095
9113
|
width: typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
9096
9114
|
flex: 'none',
|
|
9097
9115
|
}
|
|
9098
|
-
: {} }, hAsync("div", { key: '
|
|
9116
|
+
: {} }, hAsync("div", { key: '25aa5a21fed7d1482629e1f0c07fc2e3b5440c3e', class: {
|
|
9099
9117
|
'sd-field__control': true,
|
|
9100
9118
|
'sd-field__control--has-addon': !!addon,
|
|
9101
|
-
} }, addon && hAsync("div", { key: '
|
|
9119
|
+
} }, addon && hAsync("div", { key: 'e6b9edaaef227f202b8cd1b0f921dd3a07cbd296', class: "sd-field__addon" }, addon), hAsync("slot", { key: 'ecee94ec7996f99738508165c58afd07eced9d24' })), this.errorMsg || this.errorMessage ? (hAsync("div", { class: "sd-field__error-message" }, this.errorMsg || this.errorMessage)) : (this.hint && hAsync("div", { class: "sd-field__hint" }, this.hint))))));
|
|
9102
9120
|
}
|
|
9103
9121
|
renderLabel(label) {
|
|
9104
9122
|
if (!label)
|
|
@@ -9124,6 +9142,7 @@ class SdField {
|
|
|
9124
9142
|
"label": [1],
|
|
9125
9143
|
"labelWidth": [8, "label-width"],
|
|
9126
9144
|
"addonLabel": [1, "addon-label"],
|
|
9145
|
+
"addonAlign": [1, "addon-align"],
|
|
9127
9146
|
"icon": [16],
|
|
9128
9147
|
"labelTooltip": [1, "label-tooltip"],
|
|
9129
9148
|
"labelTooltipProps": [16],
|
|
@@ -9205,6 +9224,7 @@ class SdFilePicker {
|
|
|
9205
9224
|
label = '';
|
|
9206
9225
|
labelWidth = '';
|
|
9207
9226
|
addonLabel = '';
|
|
9227
|
+
addonAlign = 'start';
|
|
9208
9228
|
hint = '';
|
|
9209
9229
|
errorMessage = '';
|
|
9210
9230
|
width = '';
|
|
@@ -9366,7 +9386,7 @@ class SdFilePicker {
|
|
|
9366
9386
|
'sd-file-picker--inline-disabled': this.disabled,
|
|
9367
9387
|
}, style: cssVars, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false) }, content));
|
|
9368
9388
|
}
|
|
9369
|
-
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, content));
|
|
9389
|
+
return (hAsync("sd-field", { name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, content));
|
|
9370
9390
|
}
|
|
9371
9391
|
static get watchers() { return {
|
|
9372
9392
|
"value": [{
|
|
@@ -9391,6 +9411,7 @@ class SdFilePicker {
|
|
|
9391
9411
|
"label": [1],
|
|
9392
9412
|
"labelWidth": [8, "label-width"],
|
|
9393
9413
|
"addonLabel": [1, "addon-label"],
|
|
9414
|
+
"addonAlign": [1, "addon-align"],
|
|
9394
9415
|
"hint": [1],
|
|
9395
9416
|
"errorMessage": [1, "error-message"],
|
|
9396
9417
|
"width": [8],
|
|
@@ -9568,8 +9589,13 @@ class SdFloatingPopover {
|
|
|
9568
9589
|
return;
|
|
9569
9590
|
this.close.emit();
|
|
9570
9591
|
}
|
|
9592
|
+
handleKeydown(e) {
|
|
9593
|
+
if (e.key === 'Escape') {
|
|
9594
|
+
this.close.emit();
|
|
9595
|
+
}
|
|
9596
|
+
}
|
|
9571
9597
|
render() {
|
|
9572
|
-
return hAsync("slot", { key: '
|
|
9598
|
+
return hAsync("slot", { key: 'c10da1f592b785b1c7540ba76e9d1768abeb0c11' });
|
|
9573
9599
|
}
|
|
9574
9600
|
static get style() { return sdFloatingPortalCss(); }
|
|
9575
9601
|
static get cmpMeta() { return {
|
|
@@ -9583,7 +9609,7 @@ class SdFloatingPopover {
|
|
|
9583
9609
|
"placement": [1],
|
|
9584
9610
|
"open": [4]
|
|
9585
9611
|
},
|
|
9586
|
-
"$listeners$": [[9, "scroll", "updatePosition"], [9, "resize", "updatePosition"], [9, "mousedown", "handleMouseDown"], [8, "click", "handleWindowClick"]],
|
|
9612
|
+
"$listeners$": [[9, "scroll", "updatePosition"], [9, "resize", "updatePosition"], [9, "mousedown", "handleMouseDown"], [8, "click", "handleWindowClick"], [8, "keydown", "handleKeydown"]],
|
|
9587
9613
|
"$lazyBundleId$": "-",
|
|
9588
9614
|
"$attrsToReflect$": []
|
|
9589
9615
|
}; }
|
|
@@ -9826,7 +9852,7 @@ class SdGhostButton {
|
|
|
9826
9852
|
? GHOST_BUTTON_DISABLED_COLORS[this.intent ?? 'default']
|
|
9827
9853
|
: GHOST_BUTTON_CONTENT_COLORS[this.intent ?? 'default'];
|
|
9828
9854
|
const accessibleName = this.ariaLabel.trim() || undefined;
|
|
9829
|
-
return (hAsync("button", { key: '
|
|
9855
|
+
return (hAsync("button", { key: '4d5159cb897b6c468380f18eba1eca218d24920e', class: {
|
|
9830
9856
|
'sd-ghost-button': true,
|
|
9831
9857
|
'sd-ghost-button--disabled': this.disabled,
|
|
9832
9858
|
}, type: "button", disabled: this.disabled, "aria-label": accessibleName, style: {
|
|
@@ -9835,7 +9861,7 @@ class SdGhostButton {
|
|
|
9835
9861
|
'--sd-ghost-button-hover-bg': GHOST_BUTTON_HOVER_BG_COLORS[this.intent ?? 'default'],
|
|
9836
9862
|
'--sd-ghost-button-hover-opacity': GHOST_BUTTON_HOVER_OPACITY,
|
|
9837
9863
|
'--sd-ghost-button-accent': GHOST_BUTTON_FOCUS_RING_COLOR,
|
|
9838
|
-
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '
|
|
9864
|
+
}, onClick: this.handleClick }, hAsync("sd-icon", { key: '0461580c901aea244a3d0e693fb94fd6354873ab', name: this.icon, size: sizeConfig.icon, color: contentColor })));
|
|
9839
9865
|
}
|
|
9840
9866
|
static get style() { return sdGhostButtonCss(); }
|
|
9841
9867
|
static get cmpMeta() { return {
|
|
@@ -10641,6 +10667,7 @@ class SdInput {
|
|
|
10641
10667
|
type = 'text';
|
|
10642
10668
|
size = 'sm';
|
|
10643
10669
|
addonLabel = '';
|
|
10670
|
+
addonAlign = 'start';
|
|
10644
10671
|
placeholder = '입력해 주세요.';
|
|
10645
10672
|
disabled = false;
|
|
10646
10673
|
clearable = false;
|
|
@@ -10745,12 +10772,12 @@ class SdInput {
|
|
|
10745
10772
|
'--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
|
|
10746
10773
|
'--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
|
|
10747
10774
|
};
|
|
10748
|
-
return (hAsync("sd-field", { key: '
|
|
10775
|
+
return (hAsync("sd-field", { key: '6270fb99043a06aa9a4c2ead77007e6c03adafef', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("label", { key: 'aaef18c323710235b41d76b26a21380cadcc6e0f', class: "sd-input__content" }, hAsync("slot", { key: 'fd5d5845acf9d5351dec5af84e09d91246de8a68', name: "prefix" }), hAsync("input", { key: '8b4dd1eab6488a29daec6e6dde5238b319001d5b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-input__native ${this.inputClass}`, type: this.type === 'password' && this.passwordVisible ? 'text' : this.type, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, autocomplete: this.autocomplete || undefined, maxlength: this.maxlength, minlength: this.minlength, inputmode: this.inputmode, enterkeyhint: this.enterkeyhint, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.inputStyle }), hAsync("slot", { key: '79918e68de3045b509a27d8567e095665040689b', name: "suffix" }), this.clearable && this.internalValue && !this.disabled && (hAsync("sd-ghost-button", { key: 'f5358346a20830c1fef955a2bb6783156b251178', icon: "close", ariaLabel: "clear", size: "xxs", disabled: this.disabled, class: "sd-input__clear-icon", onClick: async () => {
|
|
10749
10776
|
if (this.disabled)
|
|
10750
10777
|
return;
|
|
10751
10778
|
this.internalValue = '';
|
|
10752
10779
|
await this.formField?.sdValidate();
|
|
10753
|
-
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '
|
|
10780
|
+
} })), this.type === 'password' && (hAsync("sd-ghost-button", { key: '77108ea21a4b9afc9e9051c98d4d49bcb571cffb', icon: this.passwordVisible ? 'visibilityOn' : 'visibilityOff', ariaLabel: "visibility", size: "xxs", disabled: this.disabled, class: "sd-input__password-icon", onClick: () => {
|
|
10754
10781
|
if (this.disabled)
|
|
10755
10782
|
return;
|
|
10756
10783
|
this.passwordVisible = !this.passwordVisible;
|
|
@@ -10773,6 +10800,7 @@ class SdInput {
|
|
|
10773
10800
|
"type": [1],
|
|
10774
10801
|
"size": [1],
|
|
10775
10802
|
"addonLabel": [1, "addon-label"],
|
|
10803
|
+
"addonAlign": [1, "addon-align"],
|
|
10776
10804
|
"placeholder": [1],
|
|
10777
10805
|
"disabled": [4],
|
|
10778
10806
|
"clearable": [4],
|
|
@@ -10829,10 +10857,10 @@ class SdLoadingContainer {
|
|
|
10829
10857
|
this.visible = false;
|
|
10830
10858
|
}
|
|
10831
10859
|
render() {
|
|
10832
|
-
return (hAsync("div", { key: '
|
|
10860
|
+
return (hAsync("div", { key: '7887102a2b03f911fad57784b3b45b12d2265ae2', class: {
|
|
10833
10861
|
'sd-loading-container': true,
|
|
10834
10862
|
'sd-loading-container--visible': this.visible,
|
|
10835
|
-
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '
|
|
10863
|
+
}, "aria-hidden": this.visible ? 'false' : 'true' }, hAsync("div", { key: '0f815029574907643be52b50a6c8be8e66ced072', class: "sd-loading-container__backdrop" }), hAsync("div", { key: '9ea0faf8ed4094b3fd93a6e29c55130d58b245fe', class: "sd-loading-container__content" }, hAsync("sd-circle-progress", { key: '6e89faad35f282d91098c213879c0ecf8d05a5ed', indeterminate: true, type: "inverse" }), this.message && (hAsync("p", { key: '05d3128ecf91a372a426a2508535c7789aff9bc1', class: "sd-loading-container__message" }, this.message)))));
|
|
10836
10864
|
}
|
|
10837
10865
|
static get style() { return sdLoadingContainerCss(); }
|
|
10838
10866
|
static get cmpMeta() { return {
|
|
@@ -10925,7 +10953,7 @@ class SdLoadingModal {
|
|
|
10925
10953
|
'--sd-loading-modal-width': this.toCssSize(this.width) ?? `${LOADING_MODAL_LAYOUT.minWidth}px`,
|
|
10926
10954
|
'--sd-loading-modal-height': this.toCssSize(this.height) ?? `${LOADING_MODAL_LAYOUT.minHeight}px`,
|
|
10927
10955
|
};
|
|
10928
|
-
return (hAsync(Host, { key: '
|
|
10956
|
+
return (hAsync(Host, { key: 'd7e6e7d81ad63a6ddba6c4db9f49695be96b83f6', style: hostStyle }, hAsync("div", { key: '96a50aa04c7cab1c8797b7a187504107e383182b', class: "sd-loading-modal" }, hAsync("div", { key: '6741f7d180be2a7ffa4588aa73bf0b3831e3c869', class: "sd-loading-modal__content" }, this.state === 'loading' ? (hAsync("sd-circle-progress", { indeterminate: true })) : (hAsync("sd-icon", { class: "sd-loading-modal__icon", name: "warningOutline", size: LOADING_MODAL_LAYOUT.contentSize, color: LOADING_MODAL_COLORS.errorIcon }))), hAsync("p", { key: 'cd7d922fc8c8cd51de0a49e106d78a5254c9c35e', class: "sd-loading-modal__message" }, this.resolvedMessage), this.useButton && (hAsync("div", { key: '78a926af4940be80da984cf4e55e8dfee50d6c31', class: "sd-loading-modal__button" }, hAsync("sd-button-v2", { key: 'a2e4ddf9b4b82fb6cecd9d859e6b95f8dd540137', name: LOADING_MODAL_BUTTON_PRESET, label: this.resolvedButtonLabel, onSdClick: this.handleClick }))))));
|
|
10929
10957
|
}
|
|
10930
10958
|
static get style() { return sdLoadingModalCss(); }
|
|
10931
10959
|
static get cmpMeta() { return {
|
|
@@ -11452,6 +11480,7 @@ class SdNumberInput {
|
|
|
11452
11480
|
label;
|
|
11453
11481
|
labelWidth = '';
|
|
11454
11482
|
addonLabel = '';
|
|
11483
|
+
addonAlign = 'start';
|
|
11455
11484
|
placeholder = '입력해 주세요.';
|
|
11456
11485
|
disabled = false;
|
|
11457
11486
|
width;
|
|
@@ -11710,12 +11739,12 @@ class SdNumberInput {
|
|
|
11710
11739
|
'--sd-textinput-input-hint-typography-line-height': `${NUMBER_INPUT_HINT.typography.lineHeight}px`,
|
|
11711
11740
|
'--sd-textinput-input-contents-gap': `${NUMBER_INPUT_CONTENTS_GAP}px`,
|
|
11712
11741
|
};
|
|
11713
|
-
return (hAsync("sd-field", { key: '
|
|
11742
|
+
return (hAsync("sd-field", { key: '85941d001afd73a10defb7f0728579ce0b8457b1', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, size: this.size, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: '565de4d4a79219bc8d6e9c8f4528ec93a655c376', class: "sd-number-input__content" }, this.useButton && (hAsync("button", { key: 'fa27f209b09a03121eb89959164a4a349d525d9a', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--decrement", disabled: this.isDecrementDisabled(), onClick: this.handleDecrement, tabindex: -1 }, hAsync("sd-icon", { key: '7f4fe23f4b0eba4a06e0153338228710365ce57f', name: "minus", size: iconSize, color: this.isDecrementDisabled()
|
|
11714
11743
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11715
|
-
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '
|
|
11744
|
+
: NUMBER_INPUT_STEPPER.icon.default }))), this.inputPrefix && (hAsync("span", { key: '55a96b32e383cdf8d5b253336130460275373f41', class: "sd-number-input__prefix" }, this.inputPrefix)), hAsync("input", { key: 'e25faa5af70d89ae0266bd9dbf35c72276885a9b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-number-input__native ${this.inputClass}`, type: "text", inputMode: "numeric", value: this.displayValue, placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onKeyDown: this.handleKeyDown, onFocus: this.handleFocus, onBlur: this.handleBlur, style: {
|
|
11716
11745
|
textAlign: this.useButton ? 'center' : 'right',
|
|
11717
11746
|
...this.inputStyle,
|
|
11718
|
-
} }), this.inputSuffix && (hAsync("span", { key: '
|
|
11747
|
+
} }), this.inputSuffix && (hAsync("span", { key: '777730846e62dd03a9193cf582908a059789b329', class: "sd-number-input__suffix" }, this.inputSuffix)), this.useButton && (hAsync("button", { key: 'ef8b471cb1d2cbd3a5b350ddbbf856e3bd104567', type: "button", class: "sd-number-input__stepper sd-number-input__stepper--increment", disabled: this.isIncrementDisabled(), onClick: this.handleIncrement, tabindex: -1 }, hAsync("sd-icon", { key: 'e2440c5a4571b69dc0e91ab0b10dffdd8242b1d8', name: "add", size: iconSize, color: this.isIncrementDisabled()
|
|
11719
11748
|
? NUMBER_INPUT_STEPPER.icon.disabled
|
|
11720
11749
|
: NUMBER_INPUT_STEPPER.icon.default }))))));
|
|
11721
11750
|
}
|
|
@@ -11742,6 +11771,7 @@ class SdNumberInput {
|
|
|
11742
11771
|
"label": [1],
|
|
11743
11772
|
"labelWidth": [8, "label-width"],
|
|
11744
11773
|
"addonLabel": [1, "addon-label"],
|
|
11774
|
+
"addonAlign": [1, "addon-align"],
|
|
11745
11775
|
"placeholder": [1],
|
|
11746
11776
|
"disabled": [4],
|
|
11747
11777
|
"width": [8],
|
|
@@ -11920,13 +11950,13 @@ class SdPagination {
|
|
|
11920
11950
|
'--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
|
|
11921
11951
|
'--sd-pagination-item-width': `${this.buttonWidth}px`,
|
|
11922
11952
|
};
|
|
11923
|
-
return (hAsync("div", { key: '
|
|
11953
|
+
return (hAsync("div", { key: '2b9efc3a0340799a39e7bbfe6f3a270b7cc5f0c7', class: {
|
|
11924
11954
|
'sd-pagination': true,
|
|
11925
11955
|
'sd-pagination--simple': this.simple,
|
|
11926
|
-
}, style: cssVars }, hAsync("div", { key: '
|
|
11956
|
+
}, style: cssVars }, hAsync("div", { key: 'af585a4e9ad2fc25e47cb42fdcc66850d6210fd1', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (hAsync("div", { class: "sd-pagination__info" }, hAsync("span", { class: "sd-pagination__current" }, this.currentPage), hAsync("span", { class: "sd-pagination__divider" }, "/"), hAsync("span", { class: "sd-pagination__last" }, this.lastPage))) : (hAsync("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (hAsync("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
11927
11957
|
'sd-pagination__item': true,
|
|
11928
11958
|
'sd-pagination__item--selected': this.currentPage === n,
|
|
11929
|
-
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '
|
|
11959
|
+
}, onClick: () => this.handlePageChange(n) }, n))))), hAsync("div", { key: '3128e19dee5f2d00fcc5603f96f323afaf2750d4', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
|
|
11930
11960
|
}
|
|
11931
11961
|
static get style() { return sdPaginationCss(); }
|
|
11932
11962
|
static get cmpMeta() { return {
|
|
@@ -11956,6 +11986,7 @@ const sdPopoverCss = () => `sd-popover{position:relative;cursor:pointer;display:
|
|
|
11956
11986
|
class SdPopover {
|
|
11957
11987
|
constructor(hostRef) {
|
|
11958
11988
|
registerInstance(this, hostRef);
|
|
11989
|
+
this.showChange = createEvent(this, "sdShowChange", 7);
|
|
11959
11990
|
}
|
|
11960
11991
|
get el() { return getElement(this); }
|
|
11961
11992
|
show = false;
|
|
@@ -11970,20 +12001,17 @@ class SdPopover {
|
|
|
11970
12001
|
messages = [];
|
|
11971
12002
|
buttons = [];
|
|
11972
12003
|
menuClass = '';
|
|
11973
|
-
noHover = true;
|
|
11974
12004
|
useClose = false;
|
|
11975
|
-
|
|
11976
|
-
slotContent = '';
|
|
11977
|
-
watchShowHandler(newValue) {
|
|
11978
|
-
this.showPopover = newValue;
|
|
11979
|
-
}
|
|
11980
|
-
componentWillLoad() {
|
|
11981
|
-
this.showPopover = this.show;
|
|
11982
|
-
this.slotContent = this.el.innerHTML;
|
|
11983
|
-
}
|
|
12005
|
+
showChange;
|
|
11984
12006
|
buttonEl;
|
|
12007
|
+
setShow = (next) => {
|
|
12008
|
+
if (this.show === next)
|
|
12009
|
+
return;
|
|
12010
|
+
this.show = next;
|
|
12011
|
+
this.showChange.emit(next);
|
|
12012
|
+
};
|
|
11985
12013
|
get popoverOffset() {
|
|
11986
|
-
switch (this.placement) {
|
|
12014
|
+
switch (this.placement ?? 'bottom') {
|
|
11987
12015
|
case 'top':
|
|
11988
12016
|
return [0, -4];
|
|
11989
12017
|
case 'bottom':
|
|
@@ -11994,24 +12022,26 @@ class SdPopover {
|
|
|
11994
12022
|
return [4, 0];
|
|
11995
12023
|
}
|
|
11996
12024
|
}
|
|
11997
|
-
handleClose = () =>
|
|
11998
|
-
this.showPopover = false;
|
|
11999
|
-
};
|
|
12025
|
+
handleClose = () => this.setShow(false);
|
|
12000
12026
|
render() {
|
|
12001
|
-
|
|
12027
|
+
const placement = this.placement ?? 'bottom';
|
|
12028
|
+
const color = this.color ?? '#01BB4B';
|
|
12029
|
+
const icon = this.icon ?? 'helpOutline';
|
|
12030
|
+
const iconSize = this.iconSize ?? 12;
|
|
12031
|
+
const buttonSize = this.buttonSize ?? 'sm';
|
|
12032
|
+
const buttonVariant = this.buttonVariant ?? 'primary';
|
|
12033
|
+
const menuClass = this.menuClass ?? '';
|
|
12034
|
+
const messages = Array.isArray(this.messages) ? this.messages : [];
|
|
12035
|
+
const buttons = Array.isArray(this.buttons) ? this.buttons : [];
|
|
12036
|
+
return (hAsync(Fragment, { key: 'e576deaacba9395c5aeb76fd13baa0dc1e908d38' }, this.label ? (hAsync("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: icon, size: buttonSize, color: color, variant: buttonVariant, class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (hAsync("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (hAsync("sd-floating-portal", { key: '7520067b46527c22108292a659dd7e8fba85397c', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, hAsync("div", { key: 'ba48632dd93359851bd87f4d55f2341653b0caab', class: {
|
|
12002
12037
|
'sd-floating-menu': true,
|
|
12003
12038
|
'sd-floating-menu--popover': true,
|
|
12004
|
-
[`sd-floating-menu--${
|
|
12005
|
-
[
|
|
12039
|
+
[`sd-floating-menu--${placement}`]: true,
|
|
12040
|
+
[menuClass]: !!menuClass,
|
|
12006
12041
|
}, style: {
|
|
12007
12042
|
'--sd-floating-bg': popoverTokens.popover.bg,
|
|
12008
|
-
} }, hAsync("i", { key: '
|
|
12043
|
+
} }, hAsync("i", { key: 'fce80e5bc6f49f5dbc1772f910eae0fb9bc09a6b', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, hAsync(TooltipArrow, { key: '32aaa3b00f7ac77d47fd2bc3c968a7a4c20102c6' })), hAsync("div", { key: '29b3240126412070466acee7ee1d061d235ba51e', class: "sd-floating-menu__content" }, this.menuTitle && hAsync("div", { key: '6cb5cf4531f573e93146a552b34831dc04851661', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (hAsync("div", { key: 'ba15bb4efc4af37dd89b0da61539f516cc31a2f3', class: "sd-floating-menu__messages" }, messages.map((message, i) => (hAsync("div", { key: `msg-${i}` }, message))))), buttons.length > 0 && (hAsync("div", { key: '2656545909634d8c54e9d34155e699041b5512f5', class: `sd-floating-menu__buttons sd-floating-menu__buttons--${buttons.length}` }, buttons.map((button, i) => (hAsync("sd-button", { key: `btn-${i}`, ...button })))))), this.useClose && (hAsync("sd-ghost-button", { key: '315bf10dde1b7cde5727beb101a1a1ad07966138', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
|
|
12009
12044
|
}
|
|
12010
|
-
static get watchers() { return {
|
|
12011
|
-
"show": [{
|
|
12012
|
-
"watchShowHandler": 0
|
|
12013
|
-
}]
|
|
12014
|
-
}; }
|
|
12015
12045
|
static get style() { return sdPopoverCss(); }
|
|
12016
12046
|
static get cmpMeta() { return {
|
|
12017
12047
|
"$flags$": 512,
|
|
@@ -12025,18 +12055,15 @@ class SdPopover {
|
|
|
12025
12055
|
"label": [1],
|
|
12026
12056
|
"buttonSize": [513, "button-size"],
|
|
12027
12057
|
"buttonVariant": [513, "button-variant"],
|
|
12028
|
-
"menuTitle": [
|
|
12058
|
+
"menuTitle": [1, "menu-title"],
|
|
12029
12059
|
"messages": [16],
|
|
12030
12060
|
"buttons": [16],
|
|
12031
12061
|
"menuClass": [1, "menu-class"],
|
|
12032
|
-
"
|
|
12033
|
-
"useClose": [4, "use-close"],
|
|
12034
|
-
"showPopover": [32],
|
|
12035
|
-
"slotContent": [32]
|
|
12062
|
+
"useClose": [4, "use-close"]
|
|
12036
12063
|
},
|
|
12037
12064
|
"$listeners$": undefined,
|
|
12038
12065
|
"$lazyBundleId$": "-",
|
|
12039
|
-
"$attrsToReflect$": [["placement", "placement"], ["color", "color"], ["icon", "icon"], ["iconSize", "icon-size"], ["buttonSize", "button-size"], ["buttonVariant", "button-variant"]
|
|
12066
|
+
"$attrsToReflect$": [["placement", "placement"], ["color", "color"], ["icon", "icon"], ["iconSize", "icon-size"], ["buttonSize", "button-size"], ["buttonVariant", "button-variant"]]
|
|
12040
12067
|
}; }
|
|
12041
12068
|
}
|
|
12042
12069
|
|
|
@@ -12265,7 +12292,7 @@ class SdPortal {
|
|
|
12265
12292
|
this.close.emit();
|
|
12266
12293
|
}
|
|
12267
12294
|
render() {
|
|
12268
|
-
return hAsync("slot", { key: '
|
|
12295
|
+
return hAsync("slot", { key: 'fa3033a01d6c8f6878c91367b9670206ab5c71d7' });
|
|
12269
12296
|
}
|
|
12270
12297
|
static get watchers() { return {
|
|
12271
12298
|
"open": [{
|
|
@@ -12478,7 +12505,7 @@ class SdRadio {
|
|
|
12478
12505
|
'--sd-radio-disabled-dot': RADIO_COLORS.disabled.dot,
|
|
12479
12506
|
'--sd-radio-label-color': RADIO_COLORS.label,
|
|
12480
12507
|
};
|
|
12481
|
-
return (hAsync("label", { key: '
|
|
12508
|
+
return (hAsync("label", { key: '2b809f1f3ce39e6dd2429cf1c48a935500287614', class: this.radioClasses, style: cssVars, "aria-checked": this.isSelected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, hAsync("input", { key: '1f44ab44d741ef40152318ce6fd437bb091c3cfb', type: "radio", name: String(this.val), value: String(this.val), checked: this.isSelected, disabled: this.disabled, "aria-label": this.label || String(this.val), onInput: this.handleRadioChange }), hAsync("span", { key: '941fddbb939a46afbe72c642d3b6f6f252f143f1', class: "sd-radio__circle" }), this.label && hAsync("span", { key: 'e30139892e82b8da251525e3c717549a2b7522d0', class: "sd-radio__label" }, this.label)));
|
|
12482
12509
|
}
|
|
12483
12510
|
static get watchers() { return {
|
|
12484
12511
|
"value": [{
|
|
@@ -12669,7 +12696,7 @@ class SdRadioButton {
|
|
|
12669
12696
|
'--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
|
|
12670
12697
|
'--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
|
|
12671
12698
|
};
|
|
12672
|
-
return (hAsync("div", { key: '
|
|
12699
|
+
return (hAsync("div", { key: '67c8e7ad03fb6ee4cabd06591e3e11e5d38914f0', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
|
|
12673
12700
|
const isSelected = this.isOptionSelected(option);
|
|
12674
12701
|
const isDisabled = this.isOptionDisabled(option);
|
|
12675
12702
|
return (hAsync("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, hAsync("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && hAsync("span", { class: "sd-radio-button__label" }, option.label)));
|
|
@@ -12721,7 +12748,7 @@ class SdRadioGroup {
|
|
|
12721
12748
|
return classes.join(' ');
|
|
12722
12749
|
}
|
|
12723
12750
|
render() {
|
|
12724
|
-
return (hAsync("div", { key: '
|
|
12751
|
+
return (hAsync("div", { key: '5f6559df018e48958103d0a84a0f074f81bd255a', class: this.getGroupClasses(), role: "radiogroup" }, this.options.map(option => {
|
|
12725
12752
|
return (hAsync("sd-radio", { key: `radio-${option.value}`, val: String(option.value), value: String(this.value), label: option.label, disabled: this.disabled || !!option.disabled, onSdUpdate: ({ detail }) => this.handleRadioChange(detail) }));
|
|
12726
12753
|
})));
|
|
12727
12754
|
}
|
|
@@ -12799,6 +12826,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12799
12826
|
label = '';
|
|
12800
12827
|
labelWidth = '';
|
|
12801
12828
|
addonLabel = '';
|
|
12829
|
+
addonAlign = 'start';
|
|
12802
12830
|
icon = undefined;
|
|
12803
12831
|
labelTooltip = '';
|
|
12804
12832
|
labelTooltipProps = null;
|
|
@@ -12916,7 +12944,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12916
12944
|
}
|
|
12917
12945
|
};
|
|
12918
12946
|
render() {
|
|
12919
|
-
return (hAsync("sd-field", { key: '
|
|
12947
|
+
return (hAsync("sd-field", { key: '6939161d0edb5eabca307b3883e02a53a29e66c4', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el) }, hAsync("div", { key: 'a57d17cb3ff775c724f3a6c13025c04e031de45f', class: {
|
|
12920
12948
|
'sd-select': true,
|
|
12921
12949
|
'sd-select--disabled': this.disabled,
|
|
12922
12950
|
'sd-select--error': !!this.error,
|
|
@@ -12961,6 +12989,7 @@ class SdSelect extends BaseDropdownEvent {
|
|
|
12961
12989
|
"label": [1],
|
|
12962
12990
|
"labelWidth": [8, "label-width"],
|
|
12963
12991
|
"addonLabel": [1, "addon-label"],
|
|
12992
|
+
"addonAlign": [1, "addon-align"],
|
|
12964
12993
|
"icon": [16],
|
|
12965
12994
|
"labelTooltip": [1, "label-tooltip"],
|
|
12966
12995
|
"labelTooltipProps": [16],
|
|
@@ -13204,6 +13233,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13204
13233
|
label = '';
|
|
13205
13234
|
labelWidth = '';
|
|
13206
13235
|
addonLabel = '';
|
|
13236
|
+
addonAlign = 'start';
|
|
13207
13237
|
icon = undefined;
|
|
13208
13238
|
labelTooltip = '';
|
|
13209
13239
|
labelTooltipProps = null;
|
|
@@ -13450,7 +13480,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13450
13480
|
});
|
|
13451
13481
|
}
|
|
13452
13482
|
render() {
|
|
13453
|
-
return (hAsync("sd-field", { key: '
|
|
13483
|
+
return (hAsync("sd-field", { key: '698b76ed0785f475a099fac99e3564b20c252c01', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, addonLabel: this.addonLabel, addonAlign: this.addonAlign, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: 'aa449fda5e32d0519792dc2e713d3c59658c86fa', class: {
|
|
13454
13484
|
'sd-select-group': true,
|
|
13455
13485
|
'sd-select-group--open': this.isOpen,
|
|
13456
13486
|
'sd-select-group--disabled': this.disabled,
|
|
@@ -13517,6 +13547,7 @@ class SdSelectGroup extends BaseDropdownEvent {
|
|
|
13517
13547
|
"label": [1],
|
|
13518
13548
|
"labelWidth": [8, "label-width"],
|
|
13519
13549
|
"addonLabel": [1, "addon-label"],
|
|
13550
|
+
"addonAlign": [1, "addon-align"],
|
|
13520
13551
|
"icon": [16],
|
|
13521
13552
|
"labelTooltip": [1, "label-tooltip"],
|
|
13522
13553
|
"labelTooltipProps": [16],
|
|
@@ -14165,7 +14196,7 @@ class SdSelectMultipleGroup extends BaseDropdownEvent {
|
|
|
14165
14196
|
});
|
|
14166
14197
|
}
|
|
14167
14198
|
render() {
|
|
14168
|
-
return (hAsync("sd-field", { key: '
|
|
14199
|
+
return (hAsync("sd-field", { key: '4140b6529565f97fa65d81ae1462108476d52bcc', label: this.label, labelWidth: this.labelWidth, name: this.name, rules: this.rules, error: this.error, disabled: this.disabled, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), style: { '--field-width': this.width || '200px' } }, hAsync("div", { key: '2dab2697f3e375d214b66464b0f57aa32e77757b', class: {
|
|
14169
14200
|
'sd-select-multiple-group': true,
|
|
14170
14201
|
'sd-select-multiple-group--open': this.isOpen,
|
|
14171
14202
|
'sd-select-multiple-group--disabled': this.disabled,
|
|
@@ -14496,6 +14527,7 @@ class SdSelectV2 {
|
|
|
14496
14527
|
label = '';
|
|
14497
14528
|
labelWidth = '';
|
|
14498
14529
|
addonLabel = '';
|
|
14530
|
+
addonAlign = 'start';
|
|
14499
14531
|
error = false;
|
|
14500
14532
|
hint = '';
|
|
14501
14533
|
errorMessage = '';
|
|
@@ -14515,11 +14547,29 @@ class SdSelectV2 {
|
|
|
14515
14547
|
hovered = false;
|
|
14516
14548
|
update;
|
|
14517
14549
|
dropDownShow;
|
|
14550
|
+
async sdFocus() {
|
|
14551
|
+
if (this.disabled)
|
|
14552
|
+
return;
|
|
14553
|
+
await this.triggerComponentRef?.sdFocus();
|
|
14554
|
+
}
|
|
14555
|
+
async sdOpen() {
|
|
14556
|
+
// sdFocus 직후 호출 시 트리거 ref/레이아웃이 안정될 때까지 한 틱 대기
|
|
14557
|
+
await new Promise(resolve => setTimeout(resolve, 0));
|
|
14558
|
+
if (this.disabled || this.isOpen)
|
|
14559
|
+
return;
|
|
14560
|
+
this.prepareDropdownGeometry();
|
|
14561
|
+
if (this.closeAnimationTimer)
|
|
14562
|
+
clearTimeout(this.closeAnimationTimer);
|
|
14563
|
+
this.isAnimatingOut = false;
|
|
14564
|
+
this.isOpen = true;
|
|
14565
|
+
}
|
|
14518
14566
|
triggerRef;
|
|
14567
|
+
triggerComponentRef;
|
|
14519
14568
|
closeAnimationTimer;
|
|
14520
14569
|
internalName = nanoid$1();
|
|
14570
|
+
triggerHasFocus = false;
|
|
14521
14571
|
watchIsOpen(newValue) {
|
|
14522
|
-
this.
|
|
14572
|
+
this.syncFocusedState(newValue);
|
|
14523
14573
|
this.dropDownShow.emit({ isOpen: newValue });
|
|
14524
14574
|
}
|
|
14525
14575
|
get isMulti() {
|
|
@@ -14527,19 +14577,19 @@ class SdSelectV2 {
|
|
|
14527
14577
|
}
|
|
14528
14578
|
get displayText() {
|
|
14529
14579
|
if (this.isMulti) {
|
|
14530
|
-
if (!this.value ||
|
|
14531
|
-
return '';
|
|
14532
|
-
if (this.emitValue) {
|
|
14533
|
-
const flat = this.flattenOptions(this.options);
|
|
14534
|
-
return this.value
|
|
14535
|
-
.map(v => flat.find(o => o.value === v)?.label ?? '')
|
|
14536
|
-
.filter(Boolean)
|
|
14537
|
-
.join(', ');
|
|
14538
|
-
}
|
|
14539
|
-
const selected = this.value;
|
|
14540
|
-
if (selected.length === 0)
|
|
14580
|
+
if (!Array.isArray(this.value) || this.value.length === 0)
|
|
14541
14581
|
return '';
|
|
14542
|
-
|
|
14582
|
+
const flat = this.flattenOptions(this.options);
|
|
14583
|
+
return this.value
|
|
14584
|
+
.map(item => {
|
|
14585
|
+
if (item != null && typeof item === 'object') {
|
|
14586
|
+
const opt = item;
|
|
14587
|
+
return opt.label ?? flat.find(o => o.value === opt.value)?.label ?? '';
|
|
14588
|
+
}
|
|
14589
|
+
return flat.find(o => o.value === item)?.label ?? '';
|
|
14590
|
+
})
|
|
14591
|
+
.filter(Boolean)
|
|
14592
|
+
.join(', ');
|
|
14543
14593
|
}
|
|
14544
14594
|
if (this.value == null)
|
|
14545
14595
|
return '';
|
|
@@ -14614,20 +14664,33 @@ class SdSelectV2 {
|
|
|
14614
14664
|
this.isAnimatingOut = false;
|
|
14615
14665
|
}, SdSelectV2.CLOSE_ANIMATION_DURATION);
|
|
14616
14666
|
}
|
|
14617
|
-
|
|
14667
|
+
prepareDropdownGeometry() {
|
|
14618
14668
|
if (this.triggerRef) {
|
|
14619
14669
|
this.triggerWidth = `${this.triggerRef.offsetWidth}px`;
|
|
14620
14670
|
}
|
|
14621
14671
|
this.updateDropdownViewportConstraints();
|
|
14672
|
+
}
|
|
14673
|
+
syncFocusedState(isOpen = this.isOpen) {
|
|
14674
|
+
this.focused = isOpen || this.triggerHasFocus;
|
|
14675
|
+
}
|
|
14676
|
+
handleTriggerFocus = () => {
|
|
14677
|
+
this.triggerHasFocus = true;
|
|
14678
|
+
this.syncFocusedState();
|
|
14679
|
+
};
|
|
14680
|
+
handleTriggerBlur = () => {
|
|
14681
|
+
this.triggerHasFocus = false;
|
|
14682
|
+
this.syncFocusedState();
|
|
14683
|
+
};
|
|
14684
|
+
handleTriggerClick = () => {
|
|
14622
14685
|
if (this.isOpen) {
|
|
14623
14686
|
this.closeDropdown();
|
|
14687
|
+
return;
|
|
14624
14688
|
}
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
}
|
|
14689
|
+
this.prepareDropdownGeometry();
|
|
14690
|
+
if (this.closeAnimationTimer)
|
|
14691
|
+
clearTimeout(this.closeAnimationTimer);
|
|
14692
|
+
this.isAnimatingOut = false;
|
|
14693
|
+
this.isOpen = true;
|
|
14631
14694
|
};
|
|
14632
14695
|
emitUpdate(value) {
|
|
14633
14696
|
this.update.emit(value);
|
|
@@ -14664,9 +14727,7 @@ class SdSelectV2 {
|
|
|
14664
14727
|
}
|
|
14665
14728
|
else {
|
|
14666
14729
|
const exists = selected.some(s => s.value === option.value);
|
|
14667
|
-
newSelected = exists
|
|
14668
|
-
? selected.filter(s => s.value !== option.value)
|
|
14669
|
-
: [...selected, option];
|
|
14730
|
+
newSelected = exists ? selected.filter(s => s.value !== option.value) : [...selected, option];
|
|
14670
14731
|
}
|
|
14671
14732
|
this.value = this.toMultiValue(newSelected);
|
|
14672
14733
|
this.emitUpdate(this.value);
|
|
@@ -14688,13 +14749,15 @@ class SdSelectV2 {
|
|
|
14688
14749
|
this.closeDropdown();
|
|
14689
14750
|
},
|
|
14690
14751
|
};
|
|
14691
|
-
return (hAsync("sd-field", { key: '
|
|
14752
|
+
return (hAsync("sd-field", { key: '8c9b5a1414bd0bb068acd53e07a61767b6904c62', name: this.fieldName || this.internalName, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
14692
14753
|
this.hovered = true;
|
|
14693
14754
|
}, onMouseLeave: () => {
|
|
14694
14755
|
this.hovered = false;
|
|
14695
|
-
} }, hAsync("div", { key: '
|
|
14756
|
+
} }, hAsync("div", { key: '47677529c530f06cb3a35a30dd4cc9f9a34d8759', class: "sd-select-v2", ref: el => {
|
|
14696
14757
|
this.triggerRef = el;
|
|
14697
|
-
} }, hAsync("sd-select-v2-trigger", { key: '
|
|
14758
|
+
} }, hAsync("sd-select-v2-trigger", { key: '3aae441a7ec1a6d8faa0f04f41881f515b641853', ref: el => {
|
|
14759
|
+
this.triggerComponentRef = el;
|
|
14760
|
+
}, displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (hAsync("sd-portal", { key: '7c92db46231f4c46ce94668ac220dc7ec14ad118', ...portalProps }, hAsync("sd-select-v2-listbox", { key: 'af3fc60a9554573e50145edeb0ea8f412116fd76', name: this.name, options: this.options, value: this.value, emitValue: this.emitValue, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
14698
14761
|
}
|
|
14699
14762
|
static get watchers() { return {
|
|
14700
14763
|
"isOpen": [{
|
|
@@ -14716,6 +14779,7 @@ class SdSelectV2 {
|
|
|
14716
14779
|
"label": [1],
|
|
14717
14780
|
"labelWidth": [8, "label-width"],
|
|
14718
14781
|
"addonLabel": [1, "addon-label"],
|
|
14782
|
+
"addonAlign": [1, "addon-align"],
|
|
14719
14783
|
"error": [1028],
|
|
14720
14784
|
"hint": [1],
|
|
14721
14785
|
"errorMessage": [1, "error-message"],
|
|
@@ -14732,7 +14796,9 @@ class SdSelectV2 {
|
|
|
14732
14796
|
"resolvedDropdownHeight": [32],
|
|
14733
14797
|
"resolvedMaxDropdownWidth": [32],
|
|
14734
14798
|
"focused": [32],
|
|
14735
|
-
"hovered": [32]
|
|
14799
|
+
"hovered": [32],
|
|
14800
|
+
"sdFocus": [64],
|
|
14801
|
+
"sdOpen": [64]
|
|
14736
14802
|
},
|
|
14737
14803
|
"$listeners$": undefined,
|
|
14738
14804
|
"$lazyBundleId$": "-",
|
|
@@ -15191,13 +15257,19 @@ class SdSelectV2Listbox {
|
|
|
15191
15257
|
* `children` is emptied by `filterTree`; in that case we fall back to the
|
|
15192
15258
|
* full original subtree because the user has no way to deselect descendants
|
|
15193
15259
|
* individually.
|
|
15260
|
+
*
|
|
15261
|
+
* disabled 항목은 사용자가 토글할 수 없으므로 leaves 집합에서 제외한다.
|
|
15262
|
+
* 호출처(그룹 토글 / 카운트 / indeterminate 판정)가 모두 동일하게 "실제
|
|
15263
|
+
* 토글 가능한 leaves" 만 보도록 통일한다.
|
|
15194
15264
|
*/
|
|
15195
15265
|
collectVisibleLeaves(option) {
|
|
15266
|
+
if (option.disabled)
|
|
15267
|
+
return [];
|
|
15196
15268
|
if (!option.children)
|
|
15197
15269
|
return [option];
|
|
15198
15270
|
if (option.children.length === 0) {
|
|
15199
15271
|
const original = this.findOriginalOption(option.value, this.options);
|
|
15200
|
-
return original ? this.collectLeaves(original) : [];
|
|
15272
|
+
return original ? this.collectLeaves(original).filter(l => !l.disabled) : [];
|
|
15201
15273
|
}
|
|
15202
15274
|
return option.children.flatMap(child => this.collectVisibleLeaves(child));
|
|
15203
15275
|
}
|
|
@@ -15367,7 +15439,7 @@ class SdSelectV2Listbox {
|
|
|
15367
15439
|
'--listbox-max-height': this.maxHeight,
|
|
15368
15440
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
15369
15441
|
};
|
|
15370
|
-
return (hAsync("div", { key: '
|
|
15442
|
+
return (hAsync("div", { key: '17ebae1a1589245944d7db5a05f2c011ad13e391', class: "sd-select-v2-listbox", style: cssVars }, this.showSearch && (hAsync("sd-select-v2-list-item-search", { key: '181ddd3a11ebe3b81353d66111459c7929c5af0b', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), hAsync("div", { key: '91114e82f60a6bdeb74142d6d7abea2871e6678e', class: "sd-select-v2-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
15371
15443
|
this.listEl = el;
|
|
15372
15444
|
} }, this.isEmpty ? (hAsync("div", { class: "sd-select-v2-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (hAsync("sd-select-v2-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
15373
15445
|
}
|
|
@@ -15404,17 +15476,33 @@ class SdSelectV2Trigger {
|
|
|
15404
15476
|
constructor(hostRef) {
|
|
15405
15477
|
registerInstance(this, hostRef);
|
|
15406
15478
|
this.triggerClick = createEvent(this, "sdTriggerClick", 7);
|
|
15479
|
+
this.triggerFocus = createEvent(this, "sdTriggerFocus", 7);
|
|
15480
|
+
this.triggerBlur = createEvent(this, "sdTriggerBlur", 7);
|
|
15407
15481
|
}
|
|
15408
15482
|
displayText = '';
|
|
15409
15483
|
placeholder = '선택';
|
|
15410
15484
|
disabled = false;
|
|
15411
15485
|
isOpen = false;
|
|
15412
15486
|
triggerClick;
|
|
15487
|
+
triggerFocus;
|
|
15488
|
+
triggerBlur;
|
|
15489
|
+
triggerEl;
|
|
15490
|
+
async sdFocus() {
|
|
15491
|
+
if (this.disabled)
|
|
15492
|
+
return;
|
|
15493
|
+
this.triggerEl?.focus();
|
|
15494
|
+
}
|
|
15413
15495
|
handleClick = () => {
|
|
15414
15496
|
if (this.disabled)
|
|
15415
15497
|
return;
|
|
15416
15498
|
this.triggerClick.emit();
|
|
15417
15499
|
};
|
|
15500
|
+
handleFocus = () => {
|
|
15501
|
+
this.triggerFocus.emit();
|
|
15502
|
+
};
|
|
15503
|
+
handleBlur = () => {
|
|
15504
|
+
this.triggerBlur.emit();
|
|
15505
|
+
};
|
|
15418
15506
|
render() {
|
|
15419
15507
|
const hasValue = !!this.displayText;
|
|
15420
15508
|
const cssVars = {
|
|
@@ -15432,11 +15520,13 @@ class SdSelectV2Trigger {
|
|
|
15432
15520
|
? SELECT_COLORS.icon.disabled
|
|
15433
15521
|
: SELECT_COLORS.icon.default,
|
|
15434
15522
|
};
|
|
15435
|
-
return (hAsync("div", { key: '
|
|
15523
|
+
return (hAsync("div", { key: 'e5c4db3cfbaa29c0af7efd0376a972dee0e9db56', ref: el => {
|
|
15524
|
+
this.triggerEl = el;
|
|
15525
|
+
}, tabindex: this.disabled ? -1 : 0, class: {
|
|
15436
15526
|
'sd-select-v2-trigger': true,
|
|
15437
15527
|
'sd-select-v2-trigger--open': this.isOpen,
|
|
15438
15528
|
'sd-select-v2-trigger--disabled': this.disabled,
|
|
15439
|
-
}, style: cssVars, onClick: this.handleClick }, hAsync("div", { key: '
|
|
15529
|
+
}, style: cssVars, onClick: this.handleClick, onFocus: this.handleFocus, onBlur: this.handleBlur }, hAsync("div", { key: '76a946a587f6245f8a21ecbf25c5a21895f35970', class: "sd-select-v2-trigger__content" }, hAsync("span", { key: '3224e13cc49371e7bcd8095a8b08bd62d4f8b295', class: "sd-select-v2-trigger__text" }, hasValue ? this.displayText : this.placeholder), hAsync("sd-icon", { key: 'ea81dc671b63b14040292ed2ff4084a9c9fc6fca', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
15440
15530
|
'sd-select-v2-trigger__icon': true,
|
|
15441
15531
|
'sd-select-v2-trigger__icon--open': this.isOpen,
|
|
15442
15532
|
} }))));
|
|
@@ -15449,7 +15539,8 @@ class SdSelectV2Trigger {
|
|
|
15449
15539
|
"displayText": [1, "display-text"],
|
|
15450
15540
|
"placeholder": [1],
|
|
15451
15541
|
"disabled": [4],
|
|
15452
|
-
"isOpen": [4, "is-open"]
|
|
15542
|
+
"isOpen": [4, "is-open"],
|
|
15543
|
+
"sdFocus": [64]
|
|
15453
15544
|
},
|
|
15454
15545
|
"$listeners$": undefined,
|
|
15455
15546
|
"$lazyBundleId$": "-",
|
|
@@ -16263,7 +16354,7 @@ class SdTabs {
|
|
|
16263
16354
|
return `square_xs_${color}`;
|
|
16264
16355
|
}
|
|
16265
16356
|
render() {
|
|
16266
|
-
return (hAsync("div", { key: '
|
|
16357
|
+
return (hAsync("div", { key: '85326c946694a115b466f07395872429c467d72f', class: this.getContainerClasses() }, this.tabs.map((tab, index) => {
|
|
16267
16358
|
const badgeName = this.getBadgeName(tab);
|
|
16268
16359
|
return (hAsync("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab.value) }, hAsync("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge && hAsync("sd-tag", { name: badgeName, label: tab.badge.toString() })));
|
|
16269
16360
|
})));
|
|
@@ -16762,6 +16853,7 @@ class SdTextarea {
|
|
|
16762
16853
|
label = '';
|
|
16763
16854
|
labelWidth = '';
|
|
16764
16855
|
addonLabel = '';
|
|
16856
|
+
addonAlign = 'start';
|
|
16765
16857
|
hint = '';
|
|
16766
16858
|
errorMessage = '';
|
|
16767
16859
|
icon = undefined;
|
|
@@ -16848,7 +16940,7 @@ class SdTextarea {
|
|
|
16848
16940
|
'--sd-system-size-field-sm-height': 'auto',
|
|
16849
16941
|
'--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
|
|
16850
16942
|
};
|
|
16851
|
-
return (hAsync("sd-field", { key: '
|
|
16943
|
+
return (hAsync("sd-field", { key: '9f456eb1b18d0d83fb40f0b6b66125d587bcb4c6', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, hAsync("div", { key: 'f201962ed64908c97d24923b62e97c33b356170a', class: "sd-textarea__content" }, hAsync("textarea", { key: '826e4b3c4743dbf16387b68317bd09ca7c75746d', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
|
|
16852
16944
|
}
|
|
16853
16945
|
static get watchers() { return {
|
|
16854
16946
|
"value": [{
|
|
@@ -16877,6 +16969,7 @@ class SdTextarea {
|
|
|
16877
16969
|
"label": [1],
|
|
16878
16970
|
"labelWidth": [8, "label-width"],
|
|
16879
16971
|
"addonLabel": [1, "addon-label"],
|
|
16972
|
+
"addonAlign": [1, "addon-align"],
|
|
16880
16973
|
"hint": [1],
|
|
16881
16974
|
"errorMessage": [1, "error-message"],
|
|
16882
16975
|
"icon": [16],
|