@sellmate/design-system 1.4.0 → 1.5.0
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/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sanitize-inline-html-BZCCwH_U.js +65 -0
- package/dist/cjs/sd-calendar_2.cjs.entry.js +7 -6
- package/dist/cjs/sd-callout.cjs.entry.js +152 -0
- package/dist/cjs/sd-card.cjs.entry.js +1 -1
- package/dist/cjs/sd-checkbox.cjs.entry.js +9 -4
- package/dist/cjs/sd-chip.cjs.entry.js +1 -1
- package/dist/cjs/sd-circle-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -3
- package/dist/cjs/sd-date-picker_7.cjs.entry.js +9 -9
- package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +1 -1
- package/dist/cjs/sd-dropdown-button.cjs.entry.js +6 -5
- package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
- package/dist/cjs/sd-guide.cjs.entry.js +5 -4
- package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
- package/dist/cjs/sd-linear-progress.cjs.entry.js +2 -2
- package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
- package/dist/cjs/sd-pagination_4.cjs.entry.js +10 -10
- package/dist/cjs/sd-popup.cjs.entry.js +6 -5
- package/dist/cjs/sd-portal.cjs.entry.js +1 -1
- package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
- package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
- package/dist/cjs/sd-switch.cjs.entry.js +1 -1
- package/dist/cjs/sd-table.cjs.entry.js +19 -16
- package/dist/cjs/{sd-table.config-B7psrvV4.js → sd-table.config-DqgNOdXO.js} +1 -1
- package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
- package/dist/cjs/sd-tag.cjs.entry.js +4 -2
- package/dist/cjs/sd-td.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
- package/dist/cjs/sd-toast.cjs.entry.js +2 -2
- package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
- package/dist/cjs/{system-VmZRYp6V.js → system-wrt-tcOq.js} +12 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/sd-calendar/sd-calendar.css +3 -1
- package/dist/collection/components/sd-calendar/sd-calendar.js +24 -3
- package/dist/collection/components/sd-callout/sd-callout.config.js +45 -0
- package/dist/collection/components/sd-callout/sd-callout.css +87 -0
- package/dist/collection/components/sd-callout/sd-callout.js +114 -0
- package/dist/collection/components/sd-card/sd-card.js +1 -1
- package/dist/collection/components/sd-checkbox/sd-checkbox.js +9 -4
- 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 +3 -2
- 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 +2 -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-dropdown-button/sd-dropdown-button.js +5 -4
- package/dist/collection/components/sd-field/sd-field.js +4 -4
- package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
- package/dist/collection/components/sd-guide/sd-guide.js +4 -3
- package/dist/collection/components/sd-input/sd-input.js +2 -2
- package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
- 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-modal-container/sd-modal-container.js +8 -0
- package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
- package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
- package/dist/collection/components/sd-popup/sd-popup.config.js +3 -4
- package/dist/collection/components/sd-popup/sd-popup.js +4 -2
- package/dist/collection/components/sd-portal/sd-portal.js +1 -1
- package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
- package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
- package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
- package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
- package/dist/collection/components/sd-select/sd-select.js +4 -4
- package/dist/collection/components/sd-switch/sd-switch.js +1 -1
- package/dist/collection/components/sd-table/sd-table.js +17 -14
- package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
- package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
- package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
- package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
- package/dist/collection/components/sd-tag/sd-tag.js +4 -2
- package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
- package/dist/collection/components/sd-toast/sd-toast.js +2 -2
- package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
- package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
- package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
- package/dist/collection/utils/html/sanitize-inline-html.js +61 -0
- package/dist/collection/utils/modal.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Da5i_Sa6.js → p-AO2RGdjH.js} +1 -1
- package/dist/components/{p-X-8I-A3g.js → p-B3sb3aIX.js} +1 -1
- package/dist/components/{p-CIUE4qr7.js → p-BGb86o0p.js} +1 -1
- package/dist/components/{p-C3fqSH7A.js → p-BLhu2So8.js} +1 -1
- package/dist/components/{p-INdVvadB.js → p-BSQsJHnV.js} +1 -1
- package/dist/components/{p-xX3QT-8K.js → p-BZCvsLRf.js} +1 -1
- package/dist/components/{p-BFC3Etk2.js → p-BqrZA_Nl.js} +1 -1
- package/dist/components/{p-DS7Ypvt5.js → p-C54v30vB.js} +1 -1
- package/dist/components/{p-DlREBZ-C.js → p-CJ-QHG0F.js} +1 -1
- package/dist/components/{p-kSfaCwf1.js → p-CbXb6ylI.js} +1 -1
- package/dist/components/{p-BRxXhFqt.js → p-CgYjGJEh.js} +1 -1
- package/dist/components/{p-CLxVZFEG.js → p-Co3H5873.js} +1 -1
- package/dist/components/{p-BRk9YZBe.js → p-Cvk-Luhs.js} +1 -1
- package/dist/components/{p-BeBiPTbd.js → p-D5inekTL.js} +1 -1
- package/dist/components/{p-Bs1Z5QtN.js → p-DChOBMCc.js} +1 -1
- package/dist/components/p-DGlmvjGc.js +1 -0
- package/dist/components/{p-DwgaMhOM.js → p-DUcbofDO.js} +1 -1
- package/dist/components/{p-DykVq5VY.js → p-DZbc1mgp.js} +1 -1
- package/dist/components/{p-t161LJqb.js → p-DeK3og10.js} +1 -1
- package/dist/components/{p-BjpbUGud.js → p-DmaopssQ.js} +1 -1
- package/dist/components/p-DopVneZA.js +1 -0
- package/dist/components/p-DrrsZftV.js +1 -0
- package/dist/components/{p-CpgTSxf0.js → p-DyZNk1VT.js} +1 -1
- package/dist/components/{p-oyZgWRnC.js → p-HK6Bwtz8.js} +1 -1
- package/dist/components/{p-Z5Vk33zf.js → p-IThoLpLs.js} +1 -1
- package/dist/components/{p-JlZdKw4C.js → p-J3eT660D.js} +1 -1
- package/dist/components/p-fpzgqVv1.js +1 -0
- package/dist/components/{p-DiP0LJGq.js → p-iCuIUhaK.js} +1 -1
- package/dist/components/p-m_OtjUs1.js +1 -0
- package/dist/components/{p-BwPmM1Pm.js → p-uHITnW_J.js} +1 -1
- package/dist/components/{p-Cx_d5vsS.js → p-yH47DvUh.js} +1 -1
- package/dist/components/sd-barcode-input.js +1 -1
- package/dist/components/sd-calendar.js +1 -1
- package/dist/components/sd-callout.d.ts +11 -0
- package/dist/components/sd-callout.js +1 -0
- package/dist/components/sd-card.js +1 -1
- package/dist/components/sd-checkbox.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-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-guide.js +1 -1
- package/dist/components/sd-input.js +1 -1
- package/dist/components/sd-key-value-table.js +1 -1
- package/dist/components/sd-linear-progress.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-popup.js +1 -1
- package/dist/components/sd-portal.js +1 -1
- package/dist/components/sd-select-list-item-search.js +1 -1
- package/dist/components/sd-select-list-item.js +1 -1
- package/dist/components/sd-select-listbox.js +1 -1
- package/dist/components/sd-select-trigger.js +1 -1
- package/dist/components/sd-select.js +1 -1
- package/dist/components/sd-switch.js +1 -1
- package/dist/components/sd-table.js +1 -1
- package/dist/components/sd-tabs.js +1 -1
- package/dist/components/sd-tag.js +1 -1
- package/dist/components/sd-tbody.js +1 -1
- package/dist/components/sd-td.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-toggle.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/components/sd-tr.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/index.esm.js +1 -1
- package/dist/design-system/{p-74bf0ed9.entry.js → p-06a6798d.entry.js} +1 -1
- package/dist/design-system/{p-e611dcd4.entry.js → p-0894c492.entry.js} +1 -1
- package/dist/design-system/p-14e30f67.entry.js +1 -0
- package/dist/design-system/{p-9b9bf9db.entry.js → p-1e530c87.entry.js} +1 -1
- package/dist/design-system/{p-84a94775.entry.js → p-2bdceecb.entry.js} +1 -1
- package/dist/design-system/{p-a98f9a29.entry.js → p-339cb954.entry.js} +1 -1
- package/dist/design-system/{p-a7ea1cf0.entry.js → p-352c68ae.entry.js} +1 -1
- package/dist/design-system/p-3d61e68f.entry.js +1 -0
- package/dist/design-system/{p-fe3ae346.entry.js → p-3f4a281f.entry.js} +1 -1
- package/dist/design-system/p-40bdbe5a.entry.js +1 -0
- package/dist/design-system/{p-481e6934.entry.js → p-435ae69e.entry.js} +1 -1
- package/dist/design-system/p-4473c051.entry.js +1 -0
- package/dist/design-system/p-61f4238b.entry.js +1 -0
- package/dist/design-system/p-786c72e9.entry.js +1 -0
- package/dist/design-system/{p-d890a680.entry.js → p-78de36f2.entry.js} +1 -1
- package/dist/design-system/p-795bae4c.entry.js +1 -0
- package/dist/design-system/{p-522d1481.entry.js → p-819e28fe.entry.js} +1 -1
- package/dist/design-system/{p-32e2d71e.entry.js → p-843d4b16.entry.js} +1 -1
- package/dist/design-system/{p-cc97f4b4.entry.js → p-8ee990bd.entry.js} +1 -1
- package/dist/design-system/{p-42f7febe.entry.js → p-9404ab06.entry.js} +1 -1
- package/dist/design-system/p-DGlmvjGc.js +1 -0
- package/dist/design-system/{p-DykVq5VY.js → p-DZbc1mgp.js} +1 -1
- package/dist/design-system/p-DopVneZA.js +1 -0
- package/dist/design-system/{p-e8e64511.entry.js → p-aac84d22.entry.js} +1 -1
- package/dist/design-system/{p-f7074386.entry.js → p-b868d747.entry.js} +1 -1
- package/dist/design-system/{p-3b8954d9.entry.js → p-b8e34533.entry.js} +1 -1
- package/dist/design-system/p-c3e4853c.entry.js +1 -0
- package/dist/design-system/{p-11b904a3.entry.js → p-d226bd61.entry.js} +1 -1
- package/dist/design-system/{p-dbeaeb31.entry.js → p-d3cc8538.entry.js} +1 -1
- package/dist/design-system/{p-ae117afa.entry.js → p-eae21a79.entry.js} +1 -1
- package/dist/design-system/{p-e23dac79.entry.js → p-fa670cc4.entry.js} +1 -1
- package/dist/esm/design-system.js +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sanitize-inline-html-DopVneZA.js +63 -0
- package/dist/esm/sd-calendar_2.entry.js +7 -6
- package/dist/esm/sd-callout.entry.js +150 -0
- package/dist/esm/sd-card.entry.js +1 -1
- package/dist/esm/sd-checkbox.entry.js +9 -4
- package/dist/esm/sd-chip.entry.js +1 -1
- package/dist/esm/sd-circle-progress.entry.js +2 -2
- package/dist/esm/sd-confirm-modal_2.entry.js +4 -3
- package/dist/esm/sd-date-picker_7.entry.js +9 -9
- package/dist/esm/sd-date-range-picker-calendar.entry.js +1 -1
- package/dist/esm/sd-dropdown-button.entry.js +6 -5
- package/dist/esm/sd-field_3.entry.js +7 -7
- package/dist/esm/sd-guide.entry.js +5 -4
- package/dist/esm/sd-key-value-table.entry.js +1 -1
- package/dist/esm/sd-linear-progress.entry.js +2 -2
- package/dist/esm/sd-loading-container.entry.js +2 -2
- package/dist/esm/sd-pagination_4.entry.js +10 -10
- package/dist/esm/sd-popup.entry.js +6 -5
- package/dist/esm/sd-portal.entry.js +1 -1
- package/dist/esm/sd-select-list-item_2.entry.js +6 -6
- package/dist/esm/sd-select_3.entry.js +8 -8
- package/dist/esm/sd-switch.entry.js +1 -1
- package/dist/esm/{sd-table.config-DU7Pc6YH.js → sd-table.config-CFHtQ8LX.js} +1 -1
- package/dist/esm/sd-table.entry.js +19 -16
- package/dist/esm/sd-tabs.entry.js +1 -1
- package/dist/esm/sd-tag.entry.js +4 -2
- package/dist/esm/sd-td.entry.js +1 -1
- package/dist/esm/sd-toast-container.entry.js +1 -1
- package/dist/esm/sd-toast.entry.js +2 -2
- package/dist/esm/sd-toggle.entry.js +1 -1
- package/dist/esm/{system-GBlVDmy4.js → system-DGlmvjGc.js} +12 -1
- package/dist/types/components/sd-calendar/sd-calendar.d.ts +1 -0
- package/dist/types/components/sd-callout/sd-callout.config.d.ts +34 -0
- package/dist/types/components/sd-callout/sd-callout.d.ts +11 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/utils/html/sanitize-inline-html.d.ts +1 -0
- package/hydrate/index.js +338 -95
- package/hydrate/index.mjs +338 -95
- package/package.json +1 -1
- package/dist/components/p-BDVrZ5mV.js +0 -1
- package/dist/components/p-CETxX4-M.js +0 -1
- package/dist/components/p-CyObYB-g.js +0 -1
- package/dist/components/p-GBlVDmy4.js +0 -1
- package/dist/design-system/p-29fd86d8.entry.js +0 -1
- package/dist/design-system/p-36d744fb.entry.js +0 -1
- package/dist/design-system/p-8f4ccae4.entry.js +0 -1
- package/dist/design-system/p-9f7f1b8b.entry.js +0 -1
- package/dist/design-system/p-GBlVDmy4.js +0 -1
- package/dist/design-system/p-a640e509.entry.js +0 -1
- package/dist/design-system/p-a97033a2.entry.js +0 -1
- package/dist/design-system/p-fc5c4f85.entry.js +0 -1
|
@@ -263,15 +263,15 @@ const SdSelect = class {
|
|
|
263
263
|
this.closeDropdown();
|
|
264
264
|
},
|
|
265
265
|
};
|
|
266
|
-
return (h("sd-field", { key: '
|
|
266
|
+
return (h("sd-field", { key: '21849c194994f51c36b2fa5eafd606230b21e365', 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
|
|
267
267
|
this.hovered = true;
|
|
268
268
|
}, onMouseLeave: () => {
|
|
269
269
|
this.hovered = false;
|
|
270
|
-
} }, h("div", { key: '
|
|
270
|
+
} }, h("div", { key: 'bcba54ed8d325a540d14af14c9b3bf332f631ce8', class: "sd-select", ref: el => {
|
|
271
271
|
this.triggerRef = el;
|
|
272
|
-
} }, h("sd-select-trigger", { key: '
|
|
272
|
+
} }, h("sd-select-trigger", { key: '72e361ca6e162eee56b82398902e89226e980d3d', ref: el => {
|
|
273
273
|
this.triggerComponentRef = el;
|
|
274
|
-
}, 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) && (h("sd-portal", { key: '
|
|
274
|
+
}, 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) && (h("sd-portal", { key: '0ff55857cbc146db57caa53d560752d0fae8413b', ...portalProps }, h("sd-select-listbox", { key: '20c103309dc7f2eaf4bee6abae271606b64ace8b', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
|
|
275
275
|
}
|
|
276
276
|
static get watchers() { return {
|
|
277
277
|
"isOpen": [{
|
|
@@ -635,9 +635,9 @@ const SdSelectListbox = class {
|
|
|
635
635
|
'--listbox-max-height': this.maxHeight ?? '260px',
|
|
636
636
|
'--listbox-radius': `${LIST_BOX_LAYOUT.radius}px`,
|
|
637
637
|
};
|
|
638
|
-
return (h("div", { key: '
|
|
638
|
+
return (h("div", { key: '1834dbfee219988e78ad47d3640ebafb9983298c', class: "sd-select-listbox", style: cssVars }, this.showSearch && (h("sd-select-list-item-search", { key: '28fbfce57184f2a8c090d628c5b33cecf9337c3c', isScrolled: this.isScrolled, onSdSearchFilter: this.handleSearchFilter })), h("div", { key: 'b7430d72cdb26cad59b226af8cf98d796645390c', class: "sd-select-listbox__list", onScroll: this.handleScroll, ref: el => {
|
|
639
639
|
this.listEl = el;
|
|
640
|
-
} }, this.showSelectAll && (h("sd-select-list-item", { key: '
|
|
640
|
+
} }, this.showSelectAll && (h("sd-select-list-item", { key: '8f159cdef838c0f39bb7aad1717a88c04c75dbda', option: SdSelectListbox.SELECT_ALL_OPTION, depth: 1, isSelected: this.selectAllState, isFocused: this.isOptionFocused(SdSelectListbox.SELECT_ALL_OPTION), useCheckbox: true, onSdListItemClick: this.handleSelectAllClick, onMouseEnter: () => this.handleOptionHover(SdSelectListbox.SELECT_ALL_OPTION) })), this.isEmpty ? (h("div", { class: "sd-select-listbox__empty" }, EMPTY_MESSAGE)) : this.isDepth ? (this.renderOptions(this.filteredOptions)) : (this.filteredOptions.map(option => (h("sd-select-list-item", { option: option, depth: 1, isSelected: this.isOptionSelected(option), isFocused: this.isOptionFocused(option), useCheckbox: this.isMulti, onSdListItemClick: this.handleOptionClick, onMouseEnter: () => this.handleOptionHover(option) })))))));
|
|
641
641
|
}
|
|
642
642
|
static get watchers() { return {
|
|
643
643
|
"searchKeyword": [{
|
|
@@ -697,7 +697,7 @@ const SdSelectTrigger = class {
|
|
|
697
697
|
? SELECT_COLORS.icon.disabled
|
|
698
698
|
: SELECT_COLORS.icon.default,
|
|
699
699
|
};
|
|
700
|
-
return (h("div", { key: '
|
|
700
|
+
return (h("div", { key: '645d8e7ff5065664a3510b127628cb54d97fb613', ref: el => {
|
|
701
701
|
this.triggerEl = el;
|
|
702
702
|
}, role: "button", "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? 'true' : 'false', tabindex: this.disabled ? -1 : 0, class: {
|
|
703
703
|
'sd-select-trigger': true,
|
|
@@ -708,7 +708,7 @@ const SdSelectTrigger = class {
|
|
|
708
708
|
e.preventDefault();
|
|
709
709
|
this.handleClick();
|
|
710
710
|
}
|
|
711
|
-
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '
|
|
711
|
+
}, onFocus: this.handleFocus, onBlur: this.handleBlur }, h("div", { key: '515dda6d98ad09b0854e0ef0e04f0bf8c9592d1a', class: "sd-select-trigger__content" }, h("span", { key: '9d92577675d0c7e6ba32174ae0cdd754788dbccb', class: "sd-select-trigger__text" }, hasValue ? this.displayText : (this.placeholder ?? '선택')), h("sd-icon", { key: '347532a73d9ff2929d9f716fb8d2e314af7d7069', name: "chevronDown", size: 12, color: "var(--trigger-icon-color)", class: {
|
|
712
712
|
'sd-select-trigger__icon': true,
|
|
713
713
|
'sd-select-trigger__icon--open': this.isOpen,
|
|
714
714
|
} }))));
|
|
@@ -100,7 +100,7 @@ const SdSwitch = class {
|
|
|
100
100
|
'--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
|
|
101
101
|
'--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
|
|
102
102
|
};
|
|
103
|
-
return (h("label", { key: '
|
|
103
|
+
return (h("label", { key: '3d9449733d73dcbd2d7a95505b6afd930a43a114', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'f8d35ea743b5f85697d9d4de8fe915ce2d8f7b56', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: 'b62a6bfa60c488270184698610337926b688baff', class: "sd-switch__track" }, h("div", { key: 'da7764fe4a4202366fe0a922de687ece121eb73f', class: "sd-switch__knob" })), this.label && h("span", { key: '924c2939f0cb2196ff69be560e1c7f113590c73b', class: "sd-switch__label" }, this.label)));
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
SdSwitch.style = sdSwitchCss();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, a as getElement, d as readTask, f as forceUpdate, h, H as Host } from './index-0U6dRjlq.js';
|
|
2
2
|
import { T as TABLE_ID_ATTR } from './constants-sZMi_32I.js';
|
|
3
|
-
import { T as TABLE_BODY_LAYOUT, a as TABLE_BODY_TYPOGRAPHY, b as TABLE_BORDER, c as TABLE_RADIUS } from './sd-table.config-
|
|
3
|
+
import { T as TABLE_BODY_LAYOUT, a as TABLE_BODY_TYPOGRAPHY, b as TABLE_BORDER, c as TABLE_RADIUS } from './sd-table.config-CFHtQ8LX.js';
|
|
4
4
|
import './component.table-DQFHAKL_.js';
|
|
5
|
-
import './system-
|
|
5
|
+
import './system-DGlmvjGc.js';
|
|
6
6
|
|
|
7
7
|
let urlAlphabet =
|
|
8
8
|
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
@@ -234,6 +234,10 @@ const SdTable = class {
|
|
|
234
234
|
if (this.pagination?.rowsPerPage != null) {
|
|
235
235
|
this.innerRowsPerPage = this.pagination.rowsPerPage;
|
|
236
236
|
}
|
|
237
|
+
// host element 에 자식 컴포넌트(sd-thead/sd-tbody/sd-tr) 가 직접 접근하는 internal sync helpers 를 monkey-patch.
|
|
238
|
+
// 28개 메서드 전체를 typed interface 로 노출하면 코드 비용이 크고, 어차피 internal 이라 외부 사용자가 호출하지 않는다.
|
|
239
|
+
// 정식 @Method 노출로 옮기는 작업은 별도 이슈로 분리.
|
|
240
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
237
241
|
const el = this.el;
|
|
238
242
|
el.isRowSelectedSync = this.isRowSelectedSync.bind(this);
|
|
239
243
|
el.updateRowSelectSync = this.updateRowSelectSync.bind(this);
|
|
@@ -350,7 +354,6 @@ const SdTable = class {
|
|
|
350
354
|
}
|
|
351
355
|
});
|
|
352
356
|
}
|
|
353
|
-
// light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
|
|
354
357
|
queryChildEl(selector) {
|
|
355
358
|
return (this.el.querySelector(selector) ??
|
|
356
359
|
this.el.shadowRoot?.querySelector(selector) ??
|
|
@@ -378,12 +381,12 @@ const SdTable = class {
|
|
|
378
381
|
refreshChildrenSelection() {
|
|
379
382
|
const thead = this.queryChildEl('sd-thead');
|
|
380
383
|
thead?.refreshSelection?.();
|
|
381
|
-
this.queryAllTr().forEach(tr => tr
|
|
384
|
+
this.queryAllTr().forEach(tr => tr.refreshSelection?.());
|
|
382
385
|
}
|
|
383
386
|
refreshChildrenConfig() {
|
|
384
387
|
const thead = this.queryChildEl('sd-thead');
|
|
385
388
|
thead?.refreshConfig?.();
|
|
386
|
-
this.queryAllTr().forEach(tr => tr
|
|
389
|
+
this.queryAllTr().forEach(tr => tr.refreshConfig?.());
|
|
387
390
|
}
|
|
388
391
|
maybeEmitVirtualReachEnd(start, end) {
|
|
389
392
|
const threshold = Math.max(1, this.virtualEndThreshold);
|
|
@@ -415,6 +418,7 @@ const SdTable = class {
|
|
|
415
418
|
this.vsEnd = end;
|
|
416
419
|
const topHeight = start * this.effectiveRowHeight;
|
|
417
420
|
const bottomHeight = Math.max(0, (this.rowCount - end) * this.effectiveRowHeight);
|
|
421
|
+
// setSpacersSync 는 sd-tbody 가 host element 에 monkey-patch 하는 internal sync helper.
|
|
418
422
|
const tbody = this.queryChildEl('sd-tbody');
|
|
419
423
|
tbody?.setSpacersSync?.(topHeight, bottomHeight);
|
|
420
424
|
if (rangeChanged) {
|
|
@@ -535,7 +539,7 @@ const SdTable = class {
|
|
|
535
539
|
this.updateRowsVisibility();
|
|
536
540
|
}
|
|
537
541
|
updateRowsVisibility() {
|
|
538
|
-
this.queryAllTr().forEach(tr => tr
|
|
542
|
+
this.queryAllTr().forEach(tr => tr.updateVisibility?.());
|
|
539
543
|
}
|
|
540
544
|
changeRowsPerPage(perPage) {
|
|
541
545
|
const changedRowsPerPage = perPage != null && perPage !== '' ? Number(perPage) : 0;
|
|
@@ -574,7 +578,7 @@ const SdTable = class {
|
|
|
574
578
|
this.columnWidths = this.columnWidths.map((width, idx) => (idx === index ? newWidth : width));
|
|
575
579
|
const thead = this.queryChildEl('sd-thead');
|
|
576
580
|
thead?.setColumnWidths?.(this.columnWidths);
|
|
577
|
-
this.queryAllTr().forEach(tr => tr
|
|
581
|
+
this.queryAllTr().forEach(tr => tr.setColumnWidths?.(this.columnWidths));
|
|
578
582
|
const stickyRightCount = this.stickyColumn?.right || 0;
|
|
579
583
|
const visibleColCount = this.columns.filter(c => c.visible !== false).length;
|
|
580
584
|
const isRightStickyEdgeResizer = stickyRightCount > 0 && index === visibleColCount - stickyRightCount;
|
|
@@ -629,9 +633,8 @@ const SdTable = class {
|
|
|
629
633
|
// 경우가 있어, sd-tr의 @State (spansVersion)을 통해 재렌더를 강제한다.
|
|
630
634
|
requestAllTrUpdate() {
|
|
631
635
|
this.queryAllTr().forEach(tr => {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
trAny.bumpSpansVersion();
|
|
636
|
+
if (typeof tr.bumpSpansVersion === 'function') {
|
|
637
|
+
tr.bumpSpansVersion();
|
|
635
638
|
}
|
|
636
639
|
else {
|
|
637
640
|
forceUpdate(tr);
|
|
@@ -871,25 +874,25 @@ const SdTable = class {
|
|
|
871
874
|
'--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
|
|
872
875
|
'--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
|
|
873
876
|
};
|
|
874
|
-
return (h(Host, { key: '
|
|
877
|
+
return (h(Host, { key: '9ee5b528b330f9edf406ff40ec089136c0807653', style: hostStyle }, h("div", { key: '9ac6cbba84b7ef7d0897474168748811fb15af92', class: "sd-table__container", style: {
|
|
875
878
|
'--table-width': this.width,
|
|
876
879
|
'--table-height': effectiveTableHeight,
|
|
877
880
|
'--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
|
|
878
|
-
} }, h("div", { key: '
|
|
881
|
+
} }, h("div", { key: '11f916debfd443e1d243bfa2335dbb0a3cb094bc', class: {
|
|
879
882
|
'sd-table__wrapper': true,
|
|
880
883
|
'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
|
|
881
|
-
} }, h("div", { key: '
|
|
884
|
+
} }, h("div", { key: '3cad3d86f731a3edc0d2b5a680bcaf6ad6be7399', class: {
|
|
882
885
|
'sd-table__scroll-container': true,
|
|
883
886
|
'sd-table__scroll-container--loading': this.isLoading,
|
|
884
887
|
'sd-table__scroll-container--no-data': isNoData,
|
|
885
|
-
} }, this.isLoading && (h("div", { key: '
|
|
888
|
+
} }, this.isLoading && (h("div", { key: '6f0aac84dcb3d9ca721ed82cd45214b3956d3f94', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '8bb6b8025fceee6ef856efd9cafefe925fc95272', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '69e6e22b68261832a299de470c8ca7f5a16205dd', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'c797a2d41c752698bed1f034beefddc4bf8b951d', class: "sd-table__no-data" }, h("div", { key: '0f0306bc89b5d9046de2aec935822eab0c3ca36c', class: "sd-table__no-data-content", ref: el => {
|
|
886
889
|
this.noDataContentEl = el;
|
|
887
890
|
if (el)
|
|
888
891
|
this.syncNoDataContentObserver();
|
|
889
|
-
} }, h("slot", { key: '
|
|
892
|
+
} }, h("slot", { key: '042671d4c65c4031a756da386ed010146c17f736', name: "no-data" }, h("span", { key: '5994f656dbea3fd1dea69c105907b188658f8c41' }, this.resolvedNoDataLabel)))))), h("table", { key: '16bb3a7c6b32e5312eda79015cd7d90bef37bdff', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
|
|
890
893
|
this.pagination.rowsPerPage > 0 &&
|
|
891
894
|
this.rowCount > 0 &&
|
|
892
|
-
!this.useVirtualScroll && (h("div", { key: '
|
|
895
|
+
!this.useVirtualScroll && (h("div", { key: '6c3ee5d93fb395154c4c42c914669af535c1a5bc', class: "sd-table__pagination" }, h("sd-pagination", { key: '46053012374e1255037706a8fa4d068dbc60f2d9', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'df04b19e857e823be8237148d84456d492575ce3', value: this.useInternalPagination
|
|
893
896
|
? this.innerRowsPerPage
|
|
894
897
|
: this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
|
|
895
898
|
if (!this.isRowsPerPageValue(e.detail))
|
|
@@ -186,7 +186,7 @@ const SdTabs = class {
|
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
render() {
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: '181916a72512a6802a06dc56fca418a806d18a0e', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
|
|
190
190
|
const badgeName = this.getBadgeName(tab);
|
|
191
191
|
return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
|
|
192
192
|
if (e.key === 'Enter' || e.key === ' ') {
|
package/dist/esm/sd-tag.entry.js
CHANGED
|
@@ -184,6 +184,8 @@ const SdTag = class {
|
|
|
184
184
|
name = 'square_sm_grey';
|
|
185
185
|
label = '';
|
|
186
186
|
icon;
|
|
187
|
+
// 아이콘이 좌측 배치되는 게 자연스러운 default. prop 이름 변경(isRight 등)은 public API breaking 이라 별도 이슈로 분리.
|
|
188
|
+
// eslint-disable-next-line stencil/ban-default-true
|
|
187
189
|
isLeft = true;
|
|
188
190
|
componentWillLoad() {
|
|
189
191
|
this.name = this.name ?? 'square_sm_grey';
|
|
@@ -205,7 +207,7 @@ const SdTag = class {
|
|
|
205
207
|
render() {
|
|
206
208
|
const config = this.resolvedConfig;
|
|
207
209
|
const iconNode = this.renderIcon(config.icon, config.iconSize);
|
|
208
|
-
return (h("span", { key: '
|
|
210
|
+
return (h("span", { key: 'c8b8b88e2c83401bb9d3e05004b0517d7e4a3a6a', class: "sd-tag", style: {
|
|
209
211
|
'--sd-tag-background': config.background,
|
|
210
212
|
'--sd-tag-content': config.content,
|
|
211
213
|
'--sd-tag-height': config.height,
|
|
@@ -215,7 +217,7 @@ const SdTag = class {
|
|
|
215
217
|
'--sd-tag-font-weight': config.fontWeight,
|
|
216
218
|
'--sd-tag-line-height': config.lineHeight,
|
|
217
219
|
'--sd-tag-radius': config.radius,
|
|
218
|
-
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '
|
|
220
|
+
}, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '67094b09ab1d7b7e865c9f6b8017f8c5c3f8274a', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
|
|
219
221
|
}
|
|
220
222
|
};
|
|
221
223
|
SdTag.style = sdTagCss();
|
package/dist/esm/sd-td.entry.js
CHANGED
|
@@ -156,7 +156,7 @@ const SdTd = class {
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
render() {
|
|
159
|
-
return (h(Host, { key: '
|
|
159
|
+
return (h(Host, { key: '91c033a0c4c3a6c3c9b29c0be99912c5ac1283ee', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'abfbc911c707012bc7d924e328ba07d71b96f9a9' })));
|
|
160
160
|
}
|
|
161
161
|
static get watchers() { return {
|
|
162
162
|
"field": [{
|
|
@@ -232,7 +232,7 @@ const SdToastContainer = class {
|
|
|
232
232
|
const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
|
|
233
233
|
const indexMap = new Map();
|
|
234
234
|
activeToasts.forEach((t, i) => indexMap.set(t.id, i));
|
|
235
|
-
return (h("div", { key: '
|
|
235
|
+
return (h("div", { key: 'c80d46b63f50591d4d92b810c0625701e4741e3a', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
|
|
236
236
|
this.expanded = true;
|
|
237
237
|
this.pauseTimers();
|
|
238
238
|
}, onMouseLeave: () => {
|
|
@@ -82,12 +82,12 @@ const SdToast = class {
|
|
|
82
82
|
const linkColor = typeConfig.linkColor ?? typeConfig.content;
|
|
83
83
|
const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
|
|
84
84
|
const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '82579581897d7845b95456ccb5e2a1745c84bcc5', style: {
|
|
86
86
|
'--sd-toast-bg': typeConfig.bg,
|
|
87
87
|
'--sd-toast-text': typeConfig.content,
|
|
88
88
|
'--sd-toast-icon': iconColor,
|
|
89
89
|
'--sd-toast-link': linkColor,
|
|
90
|
-
} }, h("div", { key: '
|
|
90
|
+
} }, h("div", { key: '5f41392a25dee4e53917255453c97c2203940f21', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '8f38f7c9842ec295510135589a63994011a856f4', class: "sd-toast__icon" }, h("sd-icon", { key: '62ef897ddfc3b47fe7b640d430d0baf95bdb5b51', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: 'f6db6cb9776cb41400c9a9052cdea94990245298', class: "sd-toast__content" }, h("span", { key: 'fbd7cdd72422e9ad08f99302b4dcd607d058926f', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'f599928ad9d0d7536086d7dd2d1ce65b429fd8f4', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '2be68a412c4b6b9dac64dbd89447c4905fa7512f', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '065030362b37383ee7ae31e9b8a771b160427cbe', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdToast.style = sdToastCss();
|
|
@@ -118,7 +118,7 @@ const SdToggle = class {
|
|
|
118
118
|
'--sd-toggle-content-select': TOGGLE_COLORS.content.select,
|
|
119
119
|
'--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
|
|
120
120
|
};
|
|
121
|
-
return (h("label", { key: '
|
|
121
|
+
return (h("label", { key: 'c5c8b9448dabb6619e80fd55b11f94bf78706994', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: 'bd43e7f286da217653461ec3128998c5f5a821d9', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
SdToggle.style = sdToggleCss();
|
|
@@ -17,7 +17,18 @@ const color = {
|
|
|
17
17
|
strong: "#006AC1"},
|
|
18
18
|
grey: {
|
|
19
19
|
strong: "#737373"}};
|
|
20
|
+
const shadow = {
|
|
21
|
+
spread: {
|
|
22
|
+
md: {
|
|
23
|
+
x: "0",
|
|
24
|
+
y: "0",
|
|
25
|
+
blur: "24",
|
|
26
|
+
spread: "0",
|
|
27
|
+
color: "rgba(34,34,34,0.2)"}
|
|
28
|
+
}};
|
|
20
29
|
var systemTokens = {
|
|
21
|
-
color: color
|
|
30
|
+
color: color,
|
|
31
|
+
shadow: shadow
|
|
32
|
+
};
|
|
22
33
|
|
|
23
34
|
export { systemTokens as s };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type CalloutType = 'default' | 'danger';
|
|
2
|
+
export declare const CALLOUT_LAYOUT: {
|
|
3
|
+
readonly radius: `${string}px`;
|
|
4
|
+
readonly borderWidth: `${string}px`;
|
|
5
|
+
readonly bodyPaddingX: `${string}px`;
|
|
6
|
+
readonly bodyPaddingY: `${string}px`;
|
|
7
|
+
readonly bodyGap: `${string}px`;
|
|
8
|
+
readonly titlePaddingX: `${string}px`;
|
|
9
|
+
readonly titleGap: `${string}px`;
|
|
10
|
+
readonly titleIconSize: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const CALLOUT_TYPOGRAPHY: {
|
|
13
|
+
readonly body: {
|
|
14
|
+
readonly fontFamily: string;
|
|
15
|
+
readonly fontSize: `${string}px`;
|
|
16
|
+
readonly fontWeight: string;
|
|
17
|
+
readonly lineHeight: `${string}px`;
|
|
18
|
+
};
|
|
19
|
+
readonly title: {
|
|
20
|
+
readonly fontFamily: string;
|
|
21
|
+
readonly fontSize: `${string}px`;
|
|
22
|
+
readonly fontWeight: string;
|
|
23
|
+
readonly lineHeight: `${string}px`;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const CALLOUT_TYPE_CONFIG: Record<CalloutType, {
|
|
27
|
+
bg: string;
|
|
28
|
+
border: string;
|
|
29
|
+
content: string;
|
|
30
|
+
titleBg?: string;
|
|
31
|
+
titleColor?: string;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const DANGER_TITLE_LABEL = "\uC8FC\uC758\uC0AC\uD56D";
|
|
34
|
+
export declare const TYPE_ICON: Record<CalloutType, IconName | undefined>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type CalloutType } from './sd-callout.config';
|
|
2
|
+
export declare class SdCallout {
|
|
3
|
+
type: CalloutType;
|
|
4
|
+
message: (string | string[])[];
|
|
5
|
+
private get calloutStyle();
|
|
6
|
+
private renderListItem;
|
|
7
|
+
private renderLi;
|
|
8
|
+
private renderBody;
|
|
9
|
+
private renderTitle;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -13,6 +13,7 @@ import { Rule } from "./types/form";
|
|
|
13
13
|
import { SdTooltipProps, TooltipType } from "./components/sd-tooltip/sd-tooltip.config";
|
|
14
14
|
import { Event } from "./stencil-public-runtime";
|
|
15
15
|
import { CalendarEventGroup } from "./components/sd-calendar/sd-calendar.config";
|
|
16
|
+
import { CalloutType } from "./components/sd-callout/sd-callout.config";
|
|
16
17
|
import { CheckedType } from "./components/sd-checkbox/sd-checkbox";
|
|
17
18
|
import { CircleProgressType } from "./components/sd-circle-progress/sd-circle-progress.config";
|
|
18
19
|
import { ConfirmModalMainButton, ConfirmModalType, TagName } from "./components/sd-confirm-modal/sd-confirm-modal.config";
|
|
@@ -51,6 +52,7 @@ export { Rule } from "./types/form";
|
|
|
51
52
|
export { SdTooltipProps, TooltipType } from "./components/sd-tooltip/sd-tooltip.config";
|
|
52
53
|
export { Event } from "./stencil-public-runtime";
|
|
53
54
|
export { CalendarEventGroup } from "./components/sd-calendar/sd-calendar.config";
|
|
55
|
+
export { CalloutType } from "./components/sd-callout/sd-callout.config";
|
|
54
56
|
export { CheckedType } from "./components/sd-checkbox/sd-checkbox";
|
|
55
57
|
export { CircleProgressType } from "./components/sd-circle-progress/sd-circle-progress.config";
|
|
56
58
|
export { ConfirmModalMainButton, ConfirmModalType, TagName } from "./components/sd-confirm-modal/sd-confirm-modal.config";
|
|
@@ -226,6 +228,10 @@ export namespace Components {
|
|
|
226
228
|
"type": ButtonType;
|
|
227
229
|
}
|
|
228
230
|
interface SdCalendar {
|
|
231
|
+
/**
|
|
232
|
+
* @default false
|
|
233
|
+
*/
|
|
234
|
+
"elevated": boolean;
|
|
229
235
|
"events"?: CalendarEventGroup[];
|
|
230
236
|
"selectable"?: [string, string];
|
|
231
237
|
/**
|
|
@@ -233,6 +239,16 @@ export namespace Components {
|
|
|
233
239
|
*/
|
|
234
240
|
"value": string | null;
|
|
235
241
|
}
|
|
242
|
+
interface SdCallout {
|
|
243
|
+
/**
|
|
244
|
+
* @default []
|
|
245
|
+
*/
|
|
246
|
+
"message": (string | string[])[];
|
|
247
|
+
/**
|
|
248
|
+
* @default 'default'
|
|
249
|
+
*/
|
|
250
|
+
"type": CalloutType;
|
|
251
|
+
}
|
|
236
252
|
interface SdCard {
|
|
237
253
|
/**
|
|
238
254
|
* @default false
|
|
@@ -2171,6 +2187,12 @@ declare global {
|
|
|
2171
2187
|
prototype: HTMLSdCalendarElement;
|
|
2172
2188
|
new (): HTMLSdCalendarElement;
|
|
2173
2189
|
};
|
|
2190
|
+
interface HTMLSdCalloutElement extends Components.SdCallout, HTMLStencilElement {
|
|
2191
|
+
}
|
|
2192
|
+
var HTMLSdCalloutElement: {
|
|
2193
|
+
prototype: HTMLSdCalloutElement;
|
|
2194
|
+
new (): HTMLSdCalloutElement;
|
|
2195
|
+
};
|
|
2174
2196
|
interface HTMLSdCardElement extends Components.SdCard, HTMLStencilElement {
|
|
2175
2197
|
}
|
|
2176
2198
|
var HTMLSdCardElement: {
|
|
@@ -2941,6 +2963,7 @@ declare global {
|
|
|
2941
2963
|
"sd-barcode-input": HTMLSdBarcodeInputElement;
|
|
2942
2964
|
"sd-button": HTMLSdButtonElement;
|
|
2943
2965
|
"sd-calendar": HTMLSdCalendarElement;
|
|
2966
|
+
"sd-callout": HTMLSdCalloutElement;
|
|
2944
2967
|
"sd-card": HTMLSdCardElement;
|
|
2945
2968
|
"sd-checkbox": HTMLSdCheckboxElement;
|
|
2946
2969
|
"sd-chip": HTMLSdChipElement;
|
|
@@ -3142,6 +3165,10 @@ declare namespace LocalJSX {
|
|
|
3142
3165
|
"type"?: ButtonType;
|
|
3143
3166
|
}
|
|
3144
3167
|
interface SdCalendar {
|
|
3168
|
+
/**
|
|
3169
|
+
* @default false
|
|
3170
|
+
*/
|
|
3171
|
+
"elevated"?: boolean;
|
|
3145
3172
|
"events"?: CalendarEventGroup[];
|
|
3146
3173
|
"onSdUpdate"?: (event: SdCalendarCustomEvent<string>) => void;
|
|
3147
3174
|
"onSdViewChange"?: (event: SdCalendarCustomEvent<{ year: number; month: number }>) => void;
|
|
@@ -3151,6 +3178,16 @@ declare namespace LocalJSX {
|
|
|
3151
3178
|
*/
|
|
3152
3179
|
"value"?: string | null;
|
|
3153
3180
|
}
|
|
3181
|
+
interface SdCallout {
|
|
3182
|
+
/**
|
|
3183
|
+
* @default []
|
|
3184
|
+
*/
|
|
3185
|
+
"message"?: (string | string[])[];
|
|
3186
|
+
/**
|
|
3187
|
+
* @default 'default'
|
|
3188
|
+
*/
|
|
3189
|
+
"type"?: CalloutType;
|
|
3190
|
+
}
|
|
3154
3191
|
interface SdCard {
|
|
3155
3192
|
/**
|
|
3156
3193
|
* @default false
|
|
@@ -4895,6 +4932,10 @@ declare namespace LocalJSX {
|
|
|
4895
4932
|
}
|
|
4896
4933
|
interface SdCalendarAttributes {
|
|
4897
4934
|
"value": string | null;
|
|
4935
|
+
"elevated": boolean;
|
|
4936
|
+
}
|
|
4937
|
+
interface SdCalloutAttributes {
|
|
4938
|
+
"type": CalloutType;
|
|
4898
4939
|
}
|
|
4899
4940
|
interface SdCardAttributes {
|
|
4900
4941
|
"bordered": boolean;
|
|
@@ -5368,6 +5409,7 @@ declare namespace LocalJSX {
|
|
|
5368
5409
|
"sd-barcode-input": Omit<SdBarcodeInput, keyof SdBarcodeInputAttributes> & { [K in keyof SdBarcodeInput & keyof SdBarcodeInputAttributes]?: SdBarcodeInput[K] } & { [K in keyof SdBarcodeInput & keyof SdBarcodeInputAttributes as `attr:${K}`]?: SdBarcodeInputAttributes[K] } & { [K in keyof SdBarcodeInput & keyof SdBarcodeInputAttributes as `prop:${K}`]?: SdBarcodeInput[K] };
|
|
5369
5410
|
"sd-button": Omit<SdButton, keyof SdButtonAttributes> & { [K in keyof SdButton & keyof SdButtonAttributes]?: SdButton[K] } & { [K in keyof SdButton & keyof SdButtonAttributes as `attr:${K}`]?: SdButtonAttributes[K] } & { [K in keyof SdButton & keyof SdButtonAttributes as `prop:${K}`]?: SdButton[K] };
|
|
5370
5411
|
"sd-calendar": Omit<SdCalendar, keyof SdCalendarAttributes> & { [K in keyof SdCalendar & keyof SdCalendarAttributes]?: SdCalendar[K] } & { [K in keyof SdCalendar & keyof SdCalendarAttributes as `attr:${K}`]?: SdCalendarAttributes[K] } & { [K in keyof SdCalendar & keyof SdCalendarAttributes as `prop:${K}`]?: SdCalendar[K] };
|
|
5412
|
+
"sd-callout": Omit<SdCallout, keyof SdCalloutAttributes> & { [K in keyof SdCallout & keyof SdCalloutAttributes]?: SdCallout[K] } & { [K in keyof SdCallout & keyof SdCalloutAttributes as `attr:${K}`]?: SdCalloutAttributes[K] } & { [K in keyof SdCallout & keyof SdCalloutAttributes as `prop:${K}`]?: SdCallout[K] };
|
|
5371
5413
|
"sd-card": Omit<SdCard, keyof SdCardAttributes> & { [K in keyof SdCard & keyof SdCardAttributes]?: SdCard[K] } & { [K in keyof SdCard & keyof SdCardAttributes as `attr:${K}`]?: SdCardAttributes[K] } & { [K in keyof SdCard & keyof SdCardAttributes as `prop:${K}`]?: SdCard[K] };
|
|
5372
5414
|
"sd-checkbox": Omit<SdCheckbox, keyof SdCheckboxAttributes> & { [K in keyof SdCheckbox & keyof SdCheckboxAttributes]?: SdCheckbox[K] } & { [K in keyof SdCheckbox & keyof SdCheckboxAttributes as `attr:${K}`]?: SdCheckboxAttributes[K] } & { [K in keyof SdCheckbox & keyof SdCheckboxAttributes as `prop:${K}`]?: SdCheckbox[K] } & OneOf<"value", SdCheckbox["value"], SdCheckboxAttributes["value"]>;
|
|
5373
5415
|
"sd-chip": Omit<SdChip, keyof SdChipAttributes> & { [K in keyof SdChip & keyof SdChipAttributes]?: SdChip[K] } & { [K in keyof SdChip & keyof SdChipAttributes as `attr:${K}`]?: SdChipAttributes[K] } & { [K in keyof SdChip & keyof SdChipAttributes as `prop:${K}`]?: SdChip[K] };
|
|
@@ -5430,6 +5472,7 @@ declare module "@stencil/core" {
|
|
|
5430
5472
|
"sd-barcode-input": LocalJSX.IntrinsicElements["sd-barcode-input"] & JSXBase.HTMLAttributes<HTMLSdBarcodeInputElement>;
|
|
5431
5473
|
"sd-button": LocalJSX.IntrinsicElements["sd-button"] & JSXBase.HTMLAttributes<HTMLSdButtonElement>;
|
|
5432
5474
|
"sd-calendar": LocalJSX.IntrinsicElements["sd-calendar"] & JSXBase.HTMLAttributes<HTMLSdCalendarElement>;
|
|
5475
|
+
"sd-callout": LocalJSX.IntrinsicElements["sd-callout"] & JSXBase.HTMLAttributes<HTMLSdCalloutElement>;
|
|
5433
5476
|
"sd-card": LocalJSX.IntrinsicElements["sd-card"] & JSXBase.HTMLAttributes<HTMLSdCardElement>;
|
|
5434
5477
|
"sd-checkbox": LocalJSX.IntrinsicElements["sd-checkbox"] & JSXBase.HTMLAttributes<HTMLSdCheckboxElement>;
|
|
5435
5478
|
"sd-chip": LocalJSX.IntrinsicElements["sd-chip"] & JSXBase.HTMLAttributes<HTMLSdChipElement>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sanitizeInlineHtml: (value: string) => string;
|