@sellmate/design-system 0.0.34 → 0.0.35
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-badge.cjs.entry.js +1 -1
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.cjs.js.map +1 -0
- package/dist/cjs/{sd-button_13.cjs.entry.js → sd-button_15.cjs.entry.js} +81 -78
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-spinner.cjs.entry.js +18 -0
- package/dist/cjs/sd-loading-spinner.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-popover.cjs.entry.js +2 -2
- package/dist/cjs/sd-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-multiple.cjs.entry.js +2 -2
- package/dist/cjs/sd-select-option-group.cjs.entry.js +3 -3
- package/dist/cjs/sd-table-backup.cjs.entry.js +265 -0
- package/dist/cjs/sd-table-backup.entry.cjs.js.map +1 -0
- package/dist/cjs/sd-tag.cjs.entry.js +1 -1
- package/dist/cjs/sd-td.cjs.entry.js +26 -0
- package/dist/cjs/sd-td.entry.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +5 -0
- package/dist/collection/components/sd-badge/sd-badge.js +1 -1
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
- package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
- package/dist/collection/components/sd-guide/sd-guide.js +3 -3
- package/dist/collection/components/sd-icon/sd-icon.js +1 -1
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-loading-spinner/sd-loading-spinner.js +1 -1
- package/dist/collection/components/sd-pagination/sd-pagination.js +2 -2
- package/dist/collection/components/sd-popover/sd-popover.js +2 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-progress/sd-progress.js +2 -2
- package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +1 -1
- package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +2 -2
- package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +3 -3
- package/dist/collection/components/sd-table/sd-table-backup.js +2743 -0
- package/dist/collection/components/sd-table/sd-table-backup.js.map +1 -0
- package/dist/collection/components/sd-table/sd-table.css +17 -15
- package/dist/collection/components/sd-table/sd-table.js +24 -2087
- package/dist/collection/components/sd-table/sd-table.js.map +1 -1
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +3 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +18 -0
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js.map +1 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.css +9 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -0
- package/dist/collection/components/sd-table/sd-td/sd-td.js.map +1 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.css +8 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.js +18 -0
- package/dist/collection/components/sd-table/sd-th/sd-th.js.map +1 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.css +3 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js +18 -0
- package/dist/collection/components/sd-table/sd-tr/sd-tr.js.map +1 -0
- package/dist/collection/components/sd-tag/sd-tag.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +4 -5
- package/dist/collection/components/sd-tooltip/sd-tooltip.js.map +1 -1
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-Bry2vtXF.js → p-5yzkkdZ2.js} +3 -3
- package/dist/components/{p-Bry2vtXF.js.map → p-5yzkkdZ2.js.map} +1 -1
- package/dist/components/{p-B5jkeFCb.js → p-B8lMIjWB.js} +7 -7
- package/dist/components/{p-B5jkeFCb.js.map → p-B8lMIjWB.js.map} +1 -1
- package/dist/components/{p-BoIp700J.js → p-BEDQ2CIp.js} +5 -5
- package/dist/components/{p-BoIp700J.js.map → p-BEDQ2CIp.js.map} +1 -1
- package/dist/components/{p-DXyjyA0e.js → p-BEq3cGoC.js} +3 -3
- package/dist/components/{p-DXyjyA0e.js.map → p-BEq3cGoC.js.map} +1 -1
- package/dist/components/{p-BLVHOrsi.js → p-BG0UE2wL.js} +3 -3
- package/dist/components/{p-BLVHOrsi.js.map → p-BG0UE2wL.js.map} +1 -1
- package/dist/components/p-BeBw4eSm.js +34 -0
- package/dist/components/p-BeBw4eSm.js.map +1 -0
- package/dist/components/{p-DKW5kNQD.js → p-BzdIpn5T.js} +11 -11
- package/dist/components/p-BzdIpn5T.js.map +1 -0
- package/dist/components/{p-cZZiWgpx.js → p-CSnKPDQz.js} +5 -5
- package/dist/components/{p-cZZiWgpx.js.map → p-CSnKPDQz.js.map} +1 -1
- package/dist/components/{p-CHw7bav7.js → p-CqpahWAy.js} +3 -3
- package/dist/components/{p-CHw7bav7.js.map → p-CqpahWAy.js.map} +1 -1
- package/dist/components/p-CrmdI2cD.js +34 -0
- package/dist/components/p-CrmdI2cD.js.map +1 -0
- package/dist/components/p-D-s8kK6P.js +34 -0
- package/dist/components/p-D-s8kK6P.js.map +1 -0
- package/dist/components/{p-DR6QXFmO.js → p-Du8-vyL0.js} +3 -3
- package/dist/components/{p-DR6QXFmO.js.map → p-Du8-vyL0.js.map} +1 -1
- package/dist/components/{p-CsP5aJ3N.js → p-GNK9vrin.js} +3 -3
- package/dist/components/{p-CsP5aJ3N.js.map → p-GNK9vrin.js.map} +1 -1
- package/dist/components/{p-D60I2CpC.js → p-ntW8MKYi.js} +5 -5
- package/dist/components/{p-D60I2CpC.js.map → p-ntW8MKYi.js.map} +1 -1
- package/dist/components/{p-CVmIv1LY.js → p-ybbnPl4X.js} +7 -7
- package/dist/components/{p-CVmIv1LY.js.map → p-ybbnPl4X.js.map} +1 -1
- package/dist/components/sd-badge.js +1 -1
- package/dist/components/sd-button.js +1 -1
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.js +1 -1
- package/dist/components/sd-date-picker.js +5 -5
- package/dist/components/sd-date-range-picker.js +5 -5
- package/dist/components/sd-guide.js +6 -6
- package/dist/components/sd-icon.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-loading-spinner.js +1 -1
- package/dist/components/sd-pagination.js +1 -1
- package/dist/components/sd-popover.js +5 -5
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-progress.js +2 -2
- package/dist/components/sd-select-multiple-group.js +5 -5
- package/dist/components/sd-select-multiple.js +7 -7
- package/dist/components/sd-select-option-group.js +1 -1
- package/dist/components/sd-select-option.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-table-backup.d.ts +11 -0
- package/dist/components/sd-table-backup.js +379 -0
- package/dist/components/sd-table-backup.js.map +1 -0
- package/dist/components/sd-table.js +59 -70
- package/dist/components/sd-table.js.map +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.d.ts +11 -0
- package/dist/components/sd-tbody.js +9 -0
- package/dist/components/sd-tbody.js.map +1 -0
- package/dist/components/sd-td.d.ts +11 -0
- package/dist/components/sd-td.js +50 -0
- package/dist/components/sd-td.js.map +1 -0
- package/dist/components/sd-th.d.ts +11 -0
- package/dist/components/sd-th.js +9 -0
- package/dist/components/sd-th.js.map +1 -0
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.d.ts +11 -0
- package/dist/components/sd-tr.js +9 -0
- package/dist/components/sd-tr.js.map +1 -0
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-ac7dbf3c.entry.js → p-01f44c51.entry.js} +2 -2
- package/dist/design-system/p-49f98f09.entry.js +2 -0
- package/dist/design-system/p-671a08a6.entry.js +2 -0
- package/dist/design-system/p-671a08a6.entry.js.map +1 -0
- package/dist/design-system/p-6a624672.entry.js +2 -0
- package/dist/design-system/{p-e9800353.entry.js → p-78f90517.entry.js} +2 -2
- package/dist/design-system/{p-048f83bb.entry.js → p-7e18d4cf.entry.js} +2 -2
- package/dist/design-system/p-7e18d4cf.entry.js.map +1 -0
- package/dist/design-system/{p-6d769a19.entry.js → p-88745dfe.entry.js} +2 -2
- package/dist/design-system/{p-eeed34eb.entry.js → p-8b60af66.entry.js} +2 -2
- package/dist/design-system/p-985be35d.entry.js +2 -0
- package/dist/design-system/{p-d492a315.entry.js.map → p-985be35d.entry.js.map} +1 -1
- package/dist/design-system/{p-cdc6b2c8.entry.js → p-a72c4b0c.entry.js} +2 -2
- package/dist/design-system/{p-56b88d9b.entry.js → p-d003ee3d.entry.js} +2 -2
- package/dist/design-system/p-d74bfbe4.entry.js +2 -0
- package/dist/design-system/p-d74bfbe4.entry.js.map +1 -0
- package/dist/design-system/p-ef5ffaa2.entry.js +2 -0
- package/dist/design-system/p-ef5ffaa2.entry.js.map +1 -0
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.esm.js.map +1 -0
- package/dist/design-system/sd-loading-spinner.entry.esm.js.map +1 -0
- package/dist/design-system/sd-table-backup.entry.esm.js.map +1 -0
- package/dist/design-system/sd-td.entry.esm.js.map +1 -0
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sd-badge.entry.js +1 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tbody.sd-th.sd-tooltip.sd-tooltip-portal.sd-tr.entry.js.map +1 -0
- package/dist/esm/{sd-button_13.entry.js → sd-button_15.entry.js} +79 -78
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-date-picker.entry.js +2 -2
- package/dist/esm/sd-date-range-picker.entry.js +2 -2
- package/dist/esm/sd-loading-spinner.entry.js +16 -0
- package/dist/esm/sd-loading-spinner.entry.js.map +1 -0
- package/dist/esm/sd-popover.entry.js +2 -2
- package/dist/esm/sd-progress.entry.js +2 -2
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/esm/sd-table-backup.entry.js +263 -0
- package/dist/esm/sd-table-backup.entry.js.map +1 -0
- package/dist/esm/sd-tag.entry.js +1 -1
- package/dist/esm/sd-td.entry.js +24 -0
- package/dist/esm/sd-td.entry.js.map +1 -0
- package/dist/types/components/sd-table/sd-table-backup.d.ts +80 -0
- package/dist/types/components/sd-table/sd-table.d.ts +0 -4
- package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +3 -0
- package/dist/types/components/sd-table/sd-td/sd-td.d.ts +7 -0
- package/dist/types/components/sd-table/sd-th/sd-th.d.ts +3 -0
- package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +3 -0
- package/dist/types/components.d.ts +221 -0
- package/hydrate/index.js +405 -39
- package/hydrate/index.mjs +405 -39
- package/package.json +2 -2
- package/dist/cjs/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.cjs.js.map +0 -1
- package/dist/components/p-DKW5kNQD.js.map +0 -1
- package/dist/design-system/p-048f83bb.entry.js.map +0 -1
- package/dist/design-system/p-c1e64ba9.entry.js +0 -2
- package/dist/design-system/p-ce01c171.entry.js +0 -2
- package/dist/design-system/p-d492a315.entry.js +0 -2
- package/dist/design-system/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.esm.js.map +0 -1
- package/dist/esm/sd-button.sd-checkbox.sd-guide.sd-icon.sd-input.sd-loading-spinner.sd-pagination.sd-portal.sd-select.sd-select-option.sd-table.sd-tooltip.sd-tooltip-portal.entry.js.map +0 -1
- /package/dist/design-system/{p-ac7dbf3c.entry.js.map → p-01f44c51.entry.js.map} +0 -0
- /package/dist/design-system/{p-ce01c171.entry.js.map → p-49f98f09.entry.js.map} +0 -0
- /package/dist/design-system/{p-c1e64ba9.entry.js.map → p-6a624672.entry.js.map} +0 -0
- /package/dist/design-system/{p-e9800353.entry.js.map → p-78f90517.entry.js.map} +0 -0
- /package/dist/design-system/{p-6d769a19.entry.js.map → p-88745dfe.entry.js.map} +0 -0
- /package/dist/design-system/{p-eeed34eb.entry.js.map → p-8b60af66.entry.js.map} +0 -0
- /package/dist/design-system/{p-cdc6b2c8.entry.js.map → p-a72c4b0c.entry.js.map} +0 -0
- /package/dist/design-system/{p-56b88d9b.entry.js.map → p-d003ee3d.entry.js.map} +0 -0
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
"components/sd-select/sd-select.js",
|
|
7
7
|
"components/sd-select-multiple-group/sd-select-multiple-group.js",
|
|
8
8
|
"components/sd-table/sd-table.js",
|
|
9
|
+
"components/sd-table/sd-table-backup.js",
|
|
9
10
|
"components/sd-tag/sd-tag.js",
|
|
10
11
|
"components/sd-badge/sd-badge.js",
|
|
11
12
|
"components/sd-card/sd-card.js",
|
|
@@ -22,6 +23,10 @@
|
|
|
22
23
|
"components/sd-select/sd-select-option/sd-select-option.js",
|
|
23
24
|
"components/sd-select-multiple/sd-select-multiple.js",
|
|
24
25
|
"components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js",
|
|
26
|
+
"components/sd-table/sd-tbody/sd-tbody.js",
|
|
27
|
+
"components/sd-table/sd-td/sd-td.js",
|
|
28
|
+
"components/sd-table/sd-th/sd-th.js",
|
|
29
|
+
"components/sd-table/sd-tr/sd-tr.js",
|
|
25
30
|
"components/sd-tooltip/sd-tooltip.js",
|
|
26
31
|
"components/sd-tooltip-portal/sd-tooltip-portal.js"
|
|
27
32
|
],
|
|
@@ -6,7 +6,7 @@ export class SdBadge {
|
|
|
6
6
|
label = '';
|
|
7
7
|
render() {
|
|
8
8
|
const resolvedColor = resolveColor(this.color);
|
|
9
|
-
return (h(Host, { key: '
|
|
9
|
+
return (h(Host, { key: '0eb736c6520c69a3b46d7ace56cd49d33afeec81' }, h("div", { key: 'f321c100d3703be8ea3c60448233bc81c8f5c117', class: `sd-badge sd-badge--${this.size}`, style: { '--sd-badge-color': resolvedColor } }, h("div", { key: 'f7970257ffcf0ad5bd90f7e5d0dbbfb18a35e535', class: "sd-badge__dot" }), h("div", { key: '117d13f51ff77d9d240c297bfd9a3251ad220d92', class: "sd-badge__label" }, this.label))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "sd-badge"; }
|
|
12
12
|
static get encapsulation() { return "scoped"; }
|
|
@@ -3,7 +3,7 @@ export class SdCard {
|
|
|
3
3
|
bordered = true;
|
|
4
4
|
class = '';
|
|
5
5
|
render() {
|
|
6
|
-
return (h(Host, { key: '
|
|
6
|
+
return (h(Host, { key: '42ba538ab9341ea02415932b7d9332571bbb13e7' }, h("div", { key: 'b1f7b23f18b070adb2f42eea1ccdf4bc2a5ab092', class: `sd-card ${this.bordered ? 'sd-card--bordered' : ''} ${this.class}` }, h("slot", { key: 'bcb88ca0c2916e6dce00f7b503e32f522245dc4c' }))));
|
|
7
7
|
}
|
|
8
8
|
static get is() { return "sd-card"; }
|
|
9
9
|
static get originalStyleUrls() {
|
|
@@ -74,9 +74,9 @@ export class SdDatePicker {
|
|
|
74
74
|
this.isOpen = false;
|
|
75
75
|
};
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '9f910fccd26ab417911edb655d63608045d5c41e', class: "sd-date-picker" }, h("sd-input", { key: '45a1a6ad305af7d47fe599baa4d037776db96150', ref: el => (this.inputEl = el), value: this.date, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
78
78
|
margin: '0 0 0 8px',
|
|
79
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
79
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '16e1f67a61cd25816347f0bb8d89f402dbc1a203', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: 'f5fa53258f895e9c5052e9812e08a1175caddf4d', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: '072a2ae86e666678581d35f3e357fe5b756646ff', class: "sd-date-picker__menu" }, h("div", { key: 'c81834631a65d4f3b91939748051b3687addaeed', class: "sd-date-picker__header" }, h("div", { key: '817d4e0279ac94ab83f0ca654f0cc57670457f2e', class: "year-nav" }, h("button", { key: '50c420fa3bc7f2959f66ca0f85aefaa404b19a9e', type: "button", name: "prev-year", title: "Previous Year", onClick: () => this.setCurrentYear(this.currentYear - 1) }, h("sd-icon", { key: '33079e3ffd9d5d4152c88b57ce0ba37e6ab8ab41', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '93a7065db1490dc60585c94ab0bac376bce0180e', class: "year-nav__current" }, this.currentYear), h("button", { key: 'c16a36aa9a036789efb45dd957eec6e96b82d04c', type: "button", name: "next-year", title: "Next Year", onClick: () => this.setCurrentYear(this.currentYear + 1) }, h("sd-icon", { key: '421b6366168d75c9e02eba4f3c7f207bbb42cb4d', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '3c9cebfb11efcf592f02ff007462ff13d332f7d3', class: "month-nav" }, h("button", { key: 'aa0ec3de458a3f0b0ac5f16c8a74a0caa8c9fb12', type: "button", name: "prev-month", title: "Previous ", onClick: () => this.handleUpdateMonth('prev') }, h("sd-icon", { key: '7c5b1ddb7c3c0d77c6cc1037429ee1f9f3750854', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("span", { key: '2560f52cdc0d9200dfca89fac02e8ca8be0c57d5', class: "month-nav__current" }, this.currentMonth, "\uC6D4"), h("button", { key: 'f4245f1dbf538225f30221d2a51cf44bca9457bf', type: "button", name: "next-month", title: "Next Month", onClick: () => this.handleUpdateMonth('next') }, h("sd-icon", { key: 'b2f721184bc7f863bd372e3fe2bdf57903324f8f', name: "arrowRight", size: "12", color: "#CCCCCC" })))), h("div", { key: '0e9b74e1ef69dd639a883b762fa974659f9c544e', class: "sd-date-picker__days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("div", { key: day, class: "day" }, day)))), h("div", { key: 'dcef9e0f8ee2a31c52c6807882c85a14aa03d1c3', class: "sd-date-picker__body" }, [
|
|
80
80
|
...this.calendar.prevMonthDays,
|
|
81
81
|
...this.calendar.days,
|
|
82
82
|
...this.calendar.afterMonthDays,
|
|
@@ -137,9 +137,9 @@ export class SdDateRangePicker {
|
|
|
137
137
|
this.isOpen = false;
|
|
138
138
|
};
|
|
139
139
|
render() {
|
|
140
|
-
return (h(Host, { key: '
|
|
140
|
+
return (h(Host, { key: '32819a4bb1098493ff7eeeb5c01f3d76e5b1bcbc', class: "sd-date-range-picker" }, h("sd-input", { key: '3ce75d2544e24fb09b6ed853f35295834ad48c0d', ref: el => (this.inputEl = el), value: `${this.dateRange[0]} ~ ${this.dateRange[1]}`, label: this.label, "inside-label": true, readonly: true, disabled: this.disabled, inputClass: "text-center", inputStyle: {
|
|
141
141
|
margin: '0 0 0 8px',
|
|
142
|
-
}, onClick: () => this.openMenu() }, h("sd-icon", { key: '
|
|
142
|
+
}, onClick: () => this.openMenu() }, h("sd-icon", { key: 'a38e381819ac1c469cfab99e8da3eca641d9dff5', slot: "prefix", name: "date", size: "16", color: "#737373", class: "date-icon", onClick: () => this.openMenu() })), this.isOpen && (h("sd-portal", { key: '05ea74ce59f9bfbe14404eea31a877fc007ab105', open: this.isOpen, parentRef: this.inputEl, onSdClose: this.handleClose }, h("div", { key: 'ec87b0e8dc56d880ad21f8bd233ba04b150bb6f0', class: "sd-date-range-picker__menu" }, h("div", { key: 'e6115593eef709220a1d0cf100b8896741b16553', class: "sd-date-range-picker__header mb-16pxr flex flex-nowrap items-center justify-center" }, h("button", { key: 'a823d93eaf49bd691bf6e851056b5e2a95be3af9', type: "button", name: "prev", title: "Previous", onClick: () => this.setPrevYear(this.prevYear - 1) }, h("sd-icon", { key: 'ebfad0c30a3a6847eb7fc3420a41c421560a83b1', name: "arrowLeft", size: "12", color: "#CCCCCC" })), h("div", { key: '4f65c1f3b510d7c527fcd61369046944186a101b', class: "header-label" }, this.prevYear), h("button", { key: '61d7903a7ee28d864f8d92dc6e79642ea5100660', type: "button", name: "next", title: "Next", onClick: () => this.setPrevYear(this.prevYear + 1) }, h("sd-icon", { key: '3a18bb2fc66635ac7313a533b484a339be121e41', name: "arrowRight", size: "12", color: "#CCCCCC" }))), h("div", { key: '579d6c2ec0866798b19f0bc2f5a3d23d1beea64a', class: "sd-date-range-picker__body" }, [this.prevCalendar, this.nextCalendar].map((calendar, index) => (h(Fragment, null, index === 1 && h("div", { class: "separator" }), h("div", { key: index, class: "calendar-container" }, h("div", { class: "calendar-header" }, h("button", { type: "button", name: "month", title: "Month", class: index === 0 ? 'header-button-prev' : 'header-button-next', onClick: () => this.updateYearMonth(index === 0 ? 'prev' : 'next') }, h("sd-icon", { name: index === 0 ? 'arrowLeft' : 'arrowRight', size: "12", color: "#CCCCCC" })), index === 0
|
|
143
143
|
? `${this.prevYear}.${String(this.prevMonth).padStart(2, '0')}`
|
|
144
144
|
: `${this.nextYear}.${String(this.nextMonth).padStart(2, '0')}`), h("div", { class: "calendar-days" }, ['일', '월', '화', '수', '목', '금', '토'].map(day => (h("sd-date-box", { key: day, date: day, disabled: true, class: "day" })))), h("div", { class: "calendar-body mt-12pxr grid grid-cols-7 gap-y-8pxr" }, [...calendar.prevMonthDays, ...calendar.days, ...calendar.afterMonthDays].map((day, idx) => (h("sd-date-box", { key: `prev${day}_${idx}`, date: !day ? '' : Number(day), selected: this.dateRange.some(date => date ===
|
|
145
145
|
this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), type: this.getDateBoxType(this.dateUtil.formatDate(index === 0 ? this.prevYear : this.nextYear, index === 0 ? this.prevMonth : this.nextMonth, Number(day))), isToday: today ===
|
|
@@ -47,11 +47,11 @@ export class SdGuide {
|
|
|
47
47
|
};
|
|
48
48
|
render() {
|
|
49
49
|
const { name: iconName, size: iconSize, color: iconColor } = GUIDE_ICON[this.type];
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '456a4ced90ec49ddf4969c1e9a87d68fc503355c', style: {
|
|
51
51
|
'--sd-guide-color': GUIDE_ICON[this.type].color,
|
|
52
|
-
} }, h("sd-button", { key: '
|
|
52
|
+
} }, h("sd-button", { key: '64e61ca7e8d475abac27191f6f7e2ee33d7b8bc8', ref: el => (this.guideRef = el), class: this.guideClass, variant: this.popupShow ? 'primary' : 'outline', label: GUIDE_LABEL[this.type], size: "sm", color: this.popupShow ? GUIDE_ICON[this.type].color : 'grey_45', icon: iconName, iconColor: this.popupShow ? 'white' : iconColor, iconSize: iconSize, noHover: this.popupShow, onSdClick: this.handleClickGuide }), this.type === 'help' && this.popupShow && (h("sd-portal", { key: '6139d4b7436c3d90e1b0228e1d105a15be240b60', open: this.popupShow, parentRef: this.guideRef, onSdClose: this.closeDropdown, offset: [0, 4] }, h("div", { key: 'b83b58048bc943f28decd421eca8eca78cfb87fd', class: "sd-guide__popup", style: { width: this.popupWidth ? this.popupWidth + 'px' : '426px' } }, h("sd-button", { key: 'd5a27f011f1ef48f7b02cd1a12684a322b077dbf', class: "sd-guide__popup__close", icon: "close", color: colors.grey_65, size: "md", variant: "ghost", noHover: true,
|
|
53
53
|
// buttonStyle={{ padding: '0px', minHeight: '0px' }}
|
|
54
|
-
onSdClick: this.closeDropdown }), h("div", { key: '
|
|
54
|
+
onSdClick: this.closeDropdown }), h("div", { key: '400884e7c9d5bc84a21a45bb6eb8bf83974d65a6', class: "sd-guide__popup__header" }, h("sd-icon", { key: '87c70c74d58100ab13de6daa338760856b20bebe', name: "helpOutline", size: 24, color: colors.green_65 }), h("h3", { key: '1ac10ed9ddc9fad160df651e4f6df90929c75b96', class: "sd-guide__popup__title" }, this.label || GUIDE_LABEL[this.type])), h("ul", { key: '17aebdd0710223e0ddfe6502ebb14c74f3e6cdb2', class: "sd-guide__popup__list" }, this.renderListItem(this.message)))))));
|
|
55
55
|
}
|
|
56
56
|
// 현재 2depth까지만 스타일 적용
|
|
57
57
|
renderListItem(message, depth = 0) {
|
|
@@ -25,7 +25,7 @@ export class SdIcon {
|
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
27
|
const IconComponent = Icons[this.name]?.[this.size];
|
|
28
|
-
return (h("i", { key: '
|
|
28
|
+
return (h("i", { key: '4a6dcce190786e6871983bace12e3b83626cf34f', class: this.getIconClasses(), style: this.iconStyle }, h(IconComponent, { key: '8e8d9e8bdbde174e7fee37d2ac669bb5bdcc2d69', color: this.resolvedColor })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "sd-icon"; }
|
|
31
31
|
static get originalStyleUrls() {
|
|
@@ -89,11 +89,11 @@ export class SdInput {
|
|
|
89
89
|
'--input-width': typeof this.width === 'number' ? `${this.width}px` : this.width,
|
|
90
90
|
}
|
|
91
91
|
: {};
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: 'b32d1ffee0333ce2bf7cfc4ea6157bd05e8072c8', style: inputWidth }, this.label && h("div", { key: '886bf269148fdf6539e47840ae769ea21a0c2b32', class: "sd-input__label" }, this.label), h("label", { key: '9879bcdf3f2d70e15470154210f222398fedcb24', class: {
|
|
93
93
|
'sd-input': true,
|
|
94
94
|
[this.getInputStatus()]: true,
|
|
95
95
|
'sd-input--barcode': !!this.barcode,
|
|
96
|
-
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '
|
|
96
|
+
}, onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: this.inputStyle }, h("slot", { key: '7af6869c5e833133e596a36b6431756e72778eda', name: "prefix" }), h("input", { key: '7e512876904fc73c7dcf7ff67f0d3cca4c9bff6c', ref: el => (this.nativeEl = el), class: `sd-input__native_element ${this.inputClass}`, type: "text", value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readonly: this.readonly, autofocus: this.autoFocus, onInput: this.handleInput, onChange: this.handleChange, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event) }), h("slot", { key: '98cf2e1011b873fe0aaa352351a1fe669a6ab095', name: "suffix" }), this.clearable && this.internalValue && (h("sd-icon", { key: '3cf6dbe1ab1bad476a636a634ebed6120902216b', name: "close", color: "#888", class: "sd-input__clear-icon", onClick: () => {
|
|
97
97
|
this.internalValue = '';
|
|
98
98
|
this.sdChange?.emit(this.internalValue);
|
|
99
99
|
this.sdInput?.emit(this.internalValue);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
export class SdLoadingSpinner {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: 'ba76870b7aa2e0f15d17e58bcd61a3650a38065b' }, h("svg", { key: '0e36eec7e7c7a0de28c734502da028f08ab2cdb8', class: "sd-loading-spinner text-positive", width: "72px", height: "72px", viewBox: "25 25 50 50" }, h("circle", { key: 'c74a1e3e6aa6a00bc0cfde588d07fc13e47c1ba3', class: "path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "5", "stroke-miterlimit": "10" }))));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "sd-loading-spinner"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -73,12 +73,12 @@ export class SdPagination {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h("div", { key: '
|
|
76
|
+
return (h("div", { key: '32ceb425c836a4051dec25cdb69aa4a3b189acd5', class: this.paginationClasses }, h("div", { key: '19ad8d6a74f2f658efa5a6bdcb6cae1458412a88', class: "prepend-btns" }, this.renderPrevButtons()), this.simple ? (h("div", { class: "pagination-info" }, h("span", { class: "current-page" }, this.currentPage), h("span", null, "/"), h("span", { class: "last-page" }, this.lastPage))) : (this.pageNumbers.map(n => (h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
|
|
77
77
|
'pagination-btn': true,
|
|
78
78
|
'pagination-btn--selected': this.currentPage === n,
|
|
79
79
|
}, disabled: this.currentPage === n, style: {
|
|
80
80
|
'--pagination-btn-width': `${this.buttonWidth}px`,
|
|
81
|
-
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: '
|
|
81
|
+
}, onClick: () => this.handlePageChange(n) }, n)))), h("div", { key: 'c78801a4c1db43f2fefca6e2684297a5c4ab366f', class: "append-btns" }, this.renderNextButtons())));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "sd-pagination"; }
|
|
84
84
|
static get originalStyleUrls() {
|
|
@@ -31,11 +31,11 @@ export class SdPopover {
|
|
|
31
31
|
this.showPopover = false;
|
|
32
32
|
};
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Fragment, { key: '
|
|
34
|
+
return (h(Fragment, { key: 'c589194a99064c6d4dcba4a3041fabc86e629190' }, this.label ? (h("sd-button", { ref: el => (this.buttonEl = el), label: this.label, icon: this.icon, size: this.buttonSize, color: this.color, variant: this.buttonVariant, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-popover", onClick: () => (console.log('click popover'), (this.showPopover = !this.showPopover)) })), this.showPopover && (h("sd-tooltip-portal", { key: '8ad8df3d02c2889a404366a7a1486ee001415423', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: this.placement }, h("div", { key: 'a45f59c40dfbdbe3ad70ea4733459841ddbd6ca2', class: {
|
|
35
35
|
'sd-popover-menu': true,
|
|
36
36
|
[`sd-popover-menu--${this.placement}`]: true,
|
|
37
37
|
[this.menuClass]: !!this.menuClass,
|
|
38
|
-
} }, h("i", { key: '
|
|
38
|
+
} }, h("i", { key: '37666b148d9638512cdcf9880b4d4f928c617398', class: `sd-popover-menu__arrow sd-popover-menu__arrow--${this.placement}` }, h(TooltipArrow, { key: '34801580a143b2a9a0e4fd2a754e3b7df84715bb' })), h("div", { key: 'f6ed764d4c50b2573188164f387df4ec4df04430', class: "sd-popover-menu__content" }, this.menuTitle && h("div", { key: 'd038bbede4912070b58772daac3f264908c7b0ef', class: "sd-popover-menu__title" }, this.menuTitle), this.messages.length > 0 && (h("div", { key: '0bc6407b1deb2fdc2194fe8b45af199c797ad9de', class: "sd-popover-menu__messages" }, this.messages.map(message => (h("div", null, message))))), this.buttons.length > 0 && (h("div", { key: '77f310b36aabbd66ed92cbf3caa9edf619875f0e', class: `sd-popover-menu__buttons sd-popover-menu__buttons--${this.buttons.length}` }, this.buttons.map(button => (h("sd-button", { ...button })))))), this.useClose && (h("button", { key: 'd48a8945ff2419ff4f45f62bddc4b56cccf608e2', class: "sd-popover-menu__close-button", onClick: () => this.handleClose() }, h("sd-icon", { key: '821ce775843d2958b2288f7deba565b1b5aa4cda', name: "close", size: "12", color: "#AAAAAA" }))))))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "sd-popover"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -113,7 +113,7 @@ export class SdPortal {
|
|
|
113
113
|
this.sdClose.emit();
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
|
-
return h("slot", { key: '
|
|
116
|
+
return h("slot", { key: '00d9c45ad016f874250e3ca637abee455860d479' });
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "sd-portal"; }
|
|
119
119
|
static get properties() {
|
|
@@ -13,10 +13,10 @@ export class SdProgress {
|
|
|
13
13
|
error: '#FB4444',
|
|
14
14
|
};
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'f086ff0b5357c038b83f8b8b457cd7aa3c99ba03', style: {
|
|
17
17
|
'--progress-color': this.statusColor[this.status],
|
|
18
18
|
'--progress-percentage': `${this.percentage}%`,
|
|
19
|
-
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '
|
|
19
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '2e8ce5a1fe1206f95f4268eaa571264f7daa7b8f', class: "sd-progress__label" }, this.label)));
|
|
20
20
|
}
|
|
21
21
|
renderBarProgress() {
|
|
22
22
|
return (h("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, h("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '87e4810a3c5058cc0969748d6cdf83b0fdcf9d8e' }, h("div", { key: '8d502e3a2ebdd8810abfdfd8ed317554e1e89f6f', class: {
|
|
28
28
|
'sd-select__option': true,
|
|
29
29
|
'sd-select__option--selected': this.isSelected,
|
|
30
30
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -208,11 +208,11 @@ export class SdSelectMultiple extends BaseDropdownEvent {
|
|
|
208
208
|
'--select-width': this.width || '200px',
|
|
209
209
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
210
210
|
};
|
|
211
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: '3c3cd8714a8d2a7e3f7ca5057c19b281488aa159', style: style }, h("div", { key: '877950e58b715002bb1976b11ead8abd41984534', class: {
|
|
212
212
|
'sd-select-multiple': true,
|
|
213
213
|
'sd-select-multiple--open': this.isOpen,
|
|
214
214
|
'sd-select-multiple--disabled': this.disabled,
|
|
215
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: '
|
|
215
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), h("div", { key: '2839ca7bfa830226ace0a32e8deb62c03f1feb62', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
216
216
|
}
|
|
217
217
|
renderLabel(label) {
|
|
218
218
|
if (!label)
|
|
@@ -39,7 +39,7 @@ export class SdSelectOptionGroup {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: '4ce025571bbc415a03d2ec9a2c27d6867571bbe1', class: {
|
|
43
43
|
'sd-select__option-group': true,
|
|
44
44
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
45
45
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -48,10 +48,10 @@ export class SdSelectOptionGroup {
|
|
|
48
48
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
49
49
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
50
50
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
51
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: '
|
|
51
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, h("div", { key: 'ea7682119a423a0a49fb69ef4ae775330552ffc5', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'd8ba6537c8ebdbc3b3a1a132b1c0d2e53a23aac1', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
52
52
|
e.preventDefault();
|
|
53
53
|
this.handleClick(this.option, this.isSelected, e);
|
|
54
|
-
} })), h("span", { key: '
|
|
54
|
+
} })), h("span", { key: 'd15d031152d6e10f47068567ab3fc954766a7557', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: '82c8efa653a4b32a2991b2416996f67ea9b33bae', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "sd-select-option-group"; }
|
|
57
57
|
static get originalStyleUrls() {
|