@sellmate/design-system 0.0.30 → 0.0.31
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-button_13.cjs.entry.js +6 -6
- package/dist/cjs/sd-progress.cjs.entry.js +44 -0
- package/dist/cjs/sd-progress.entry.cjs.js.map +1 -0
- 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/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sd-progress/sd-progress.css +61 -0
- package/dist/collection/components/sd-progress/sd-progress.js +194 -0
- package/dist/collection/components/sd-progress/sd-progress.js.map +1 -0
- 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-tooltip/sd-tooltip.js +4 -4
- package/dist/collection/components/sd-tooltip-portal/sd-tooltip-portal.js +1 -1
- package/dist/components/{p-CSxmWyJx.js → p-B18yJb2O.js} +5 -5
- package/dist/components/{p-CSxmWyJx.js.map → p-B18yJb2O.js.map} +1 -1
- package/dist/components/{p-c8NhJgfj.js → p-BLVHOrsi.js} +3 -3
- package/dist/components/{p-c8NhJgfj.js.map → p-BLVHOrsi.js.map} +1 -1
- package/dist/components/{p-B0JdV6r1.js → p-BNY55XpQ.js} +3 -3
- package/dist/components/{p-B0JdV6r1.js.map → p-BNY55XpQ.js.map} +1 -1
- package/dist/components/{p-Mc5Mv8aH.js → p-Dvtwm2UI.js} +7 -7
- package/dist/components/{p-Mc5Mv8aH.js.map → p-Dvtwm2UI.js.map} +1 -1
- package/dist/components/{p-DOUuhGVo.js → p-T0Fd7Ziu.js} +3 -3
- package/dist/components/{p-DOUuhGVo.js.map → p-T0Fd7Ziu.js.map} +1 -1
- package/dist/components/sd-popover.js +1 -1
- package/dist/components/sd-progress.d.ts +11 -0
- package/dist/components/sd-progress.js +70 -0
- package/dist/components/sd-progress.js.map +1 -0
- package/dist/components/sd-select-multiple-group.js +1 -1
- package/dist/components/sd-select-multiple.js +3 -3
- 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.js +4 -4
- package/dist/components/sd-tooltip-portal.js +1 -1
- package/dist/components/sd-tooltip.js +1 -1
- package/dist/design-system/design-system.esm.js +1 -1
- package/dist/design-system/{p-ff4feeff.entry.js → p-1b6b3344.entry.js} +2 -2
- package/dist/design-system/p-6d1c2089.entry.js +2 -0
- package/dist/design-system/p-6d1c2089.entry.js.map +1 -0
- package/dist/design-system/{p-7a7cdc36.entry.js → p-760dafe5.entry.js} +2 -2
- package/dist/design-system/{p-e2a11135.entry.js → p-e9800353.entry.js} +2 -2
- package/dist/design-system/sd-progress.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-button_13.entry.js +6 -6
- package/dist/esm/sd-progress.entry.js +42 -0
- package/dist/esm/sd-progress.entry.js.map +1 -0
- package/dist/esm/sd-select-multiple.entry.js +2 -2
- package/dist/esm/sd-select-option-group.entry.js +3 -3
- package/dist/types/components/sd-progress/sd-progress.d.ts +12 -0
- package/dist/types/components.d.ts +55 -0
- package/hydrate/index.js +65 -11
- package/hydrate/index.mjs +65 -11
- package/package.json +2 -2
- /package/dist/design-system/{p-ff4feeff.entry.js.map → p-1b6b3344.entry.js.map} +0 -0
- /package/dist/design-system/{p-7a7cdc36.entry.js.map → p-760dafe5.entry.js.map} +0 -0
- /package/dist/design-system/{p-e2a11135.entry.js.map → p-e9800353.entry.js.map} +0 -0
|
@@ -18,7 +18,7 @@ var patchBrowser = () => {
|
|
|
18
18
|
|
|
19
19
|
patchBrowser().then(async (options) => {
|
|
20
20
|
await index.globalScripts();
|
|
21
|
-
return index.bootstrapLazy([["sd-select-multiple.cjs",[[772,"sd-select-multiple",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-select-multiple-group.cjs",[[772,"sd-select-multiple-group",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"containerStyle":[16],"triggerStyle":[16],"dropdownStyle":[16],"optionStyle":[16],"labelStyle":[16],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-date-picker.cjs",[[770,"sd-date-picker",{"date":[1],"label":[1],"selectable":[16],"disabled":[4],"isOpen":[32],"currentDate":[32],"currentYear":[32],"currentMonth":[32]}]]],["sd-date-range-picker.cjs",[[770,"sd-date-range-picker",{"date":[16],"label":[1],"selectable":[16],"maxRange":[2,"max-range"],"disabled":[4],"isOpen":[32],"dateRange":[32],"hoverDate":[32],"prevYear":[32],"prevMonth":[32]}]]],["sd-popover.cjs",[[769,"sd-popover",{"show":[1028],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"menuTitle":[513,"title"],"messages":[16],"buttons":[16],"menuClass":[1,"menu-class"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showPopover":[32],"slotContent":[32]},null,{"show":["watchShowHandler"]}]]],["sd-badge.cjs",[[770,"sd-badge",{"size":[1],"color":[1],"label":[1]}]]],["sd-card.cjs",[[772,"sd-card",{"bordered":[4],"class":[1]}]]],["sd-
|
|
21
|
+
return index.bootstrapLazy([["sd-select-multiple.cjs",[[772,"sd-select-multiple",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-select-multiple-group.cjs",[[772,"sd-select-multiple-group",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"containerStyle":[16],"triggerStyle":[16],"dropdownStyle":[16],"optionStyle":[16],"labelStyle":[16],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-date-picker.cjs",[[770,"sd-date-picker",{"date":[1],"label":[1],"selectable":[16],"disabled":[4],"isOpen":[32],"currentDate":[32],"currentYear":[32],"currentMonth":[32]}]]],["sd-date-range-picker.cjs",[[770,"sd-date-range-picker",{"date":[16],"label":[1],"selectable":[16],"maxRange":[2,"max-range"],"disabled":[4],"isOpen":[32],"dateRange":[32],"hoverDate":[32],"prevYear":[32],"prevMonth":[32]}]]],["sd-popover.cjs",[[769,"sd-popover",{"show":[1028],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"menuTitle":[513,"title"],"messages":[16],"buttons":[16],"menuClass":[1,"menu-class"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showPopover":[32],"slotContent":[32]},null,{"show":["watchShowHandler"]}]]],["sd-badge.cjs",[[770,"sd-badge",{"size":[1],"color":[1],"label":[1]}]]],["sd-card.cjs",[[772,"sd-card",{"bordered":[4],"class":[1]}]]],["sd-progress.cjs",[[768,"sd-progress",{"type":[1],"status":[1],"percentage":[2],"size":[2],"strokeWidth":[2,"stroke-width"],"label":[1]}]]],["sd-tag.cjs",[[769,"sd-tag",{"size":[1],"color":[1],"rounded":[4],"label":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"]}]]],["sd-button_13.cjs",[[772,"sd-table",{"columns":[16],"rows":[1040],"selected":[1040],"rowKey":[1,"row-key"],"selectable":[4],"resizable":[4],"width":[1],"height":[1],"stickyHeader":[4,"sticky-header"],"stickyColumn":[16],"noDataLabel":[1,"no-data-label"],"isLoading":[4,"is-loading"],"pagination":[16],"bodyCellRenderer":[16],"useInternalPagination":[4,"use-internal-pagination"],"useRowsPerPageSelect":[4,"use-rows-per-page-select"],"rowsPerPageOption":[16],"currentPage":[32],"innerRows":[32],"innerSelected":[32],"columnWidths":[32],"scrolledLeft":[32],"scrolledRight":[32]},null,{"columns":["handleColumnsChange"],"rows":["handleRowsChange"],"selected":["handleSelectedChange"],"pagination":["handlePaginationChange"]}],[768,"sd-guide",{"type":[1],"label":[1],"message":[1],"guideUrl":[1,"guide-url"],"popupWidth":[2,"popup-width"],"popupShow":[32]}],[772,"sd-select",{"value":[1032],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}],[768,"sd-tooltip",{"trigger":[1],"placement":[1],"color":[1],"type":[1],"icon":[1],"iconSize":[2,"icon-size"],"label":[1],"buttonSize":[1,"button-size"],"buttonVariant":[1,"button-variant"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showTooltip":[32],"slotContent":[32]}],[768,"sd-pagination",{"currentPage":[2,"current-page"],"lastPage":[2,"last-page"],"simple":[4]},null,{"currentPage":["onPropChange"],"lastPage":["onPropChange"]}],[256,"sd-loading-spinner"],[768,"sd-select-option",{"option":[16],"index":[2],"isSelected":[4,"is-selected"],"isFocused":[4,"is-focused"],"optionStyle":[16],"disabled":[4],"useCheckbox":[4,"use-checkbox"],"isHovered":[32],"isDisabled":[64]}],[769,"sd-tooltip-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"placement":[1],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]],[768,"sd-button",{"variant":[1],"size":[1],"color":[1],"label":[1],"disabled":[4],"type":[1],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"],"iconRight":[1,"icon-right"],"noHover":[4,"no-hover"],"class":[1]}],[768,"sd-checkbox",{"checked":[4],"val":[8],"disabled":[4],"label":[1],"isChecked":[32]},null,{"checked":["watchValueHandler"]}],[772,"sd-input",{"value":[1032],"label":[1],"placeholder":[1],"disabled":[4],"clearable":[4],"width":[8],"barcode":[4],"rules":[16],"autoFocus":[4,"auto-focus"],"status":[1],"inputClass":[1,"input-class"],"readonly":[4],"inputStyle":[16],"internalValue":[32],"error":[32],"focused":[32],"hovered":[32],"getNativeElement":[64]},null,{"value":["valueChanged"],"internalValue":["internalValueChanged"]}],[772,"sd-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]],[768,"sd-icon",{"name":[1],"size":[8],"color":[1],"rotate":[2],"label":[1],"iconStyle":[16]}]]],["sd-select-option-group.cjs",[[768,"sd-select-option-group",{"option":[16],"index":[2],"isSelected":[4,"is-selected"],"isFocused":[4,"is-focused"],"optionStyle":[16],"disabled":[4],"useCheckbox":[4,"use-checkbox"],"useIndicator":[4,"use-indicator"],"countInfo":[16],"isHovered":[32],"isDisabled":[64]}]]],["sd-date-box.cjs",[[770,"sd-date-box",{"date":[8],"disabled":[4],"selected":[4],"isStartDate":[4,"is-start-date"],"isEndDate":[4,"is-end-date"],"isToday":[4,"is-today"],"inRange":[4,"in-range"],"type":[1]}]]]], options);
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
exports.setNonce = index.setNonce;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -5,7 +5,7 @@ var index = require('./index-DXo1Fhkn.js');
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["sd-select-multiple.cjs",[[772,"sd-select-multiple",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-select-multiple-group.cjs",[[772,"sd-select-multiple-group",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"containerStyle":[16],"triggerStyle":[16],"dropdownStyle":[16],"optionStyle":[16],"labelStyle":[16],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-date-picker.cjs",[[770,"sd-date-picker",{"date":[1],"label":[1],"selectable":[16],"disabled":[4],"isOpen":[32],"currentDate":[32],"currentYear":[32],"currentMonth":[32]}]]],["sd-date-range-picker.cjs",[[770,"sd-date-range-picker",{"date":[16],"label":[1],"selectable":[16],"maxRange":[2,"max-range"],"disabled":[4],"isOpen":[32],"dateRange":[32],"hoverDate":[32],"prevYear":[32],"prevMonth":[32]}]]],["sd-popover.cjs",[[769,"sd-popover",{"show":[1028],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"menuTitle":[513,"title"],"messages":[16],"buttons":[16],"menuClass":[1,"menu-class"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showPopover":[32],"slotContent":[32]},null,{"show":["watchShowHandler"]}]]],["sd-badge.cjs",[[770,"sd-badge",{"size":[1],"color":[1],"label":[1]}]]],["sd-card.cjs",[[772,"sd-card",{"bordered":[4],"class":[1]}]]],["sd-
|
|
8
|
+
return index.bootstrapLazy([["sd-select-multiple.cjs",[[772,"sd-select-multiple",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-select-multiple-group.cjs",[[772,"sd-select-multiple-group",{"value":[1040],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"useCheckbox":[4,"use-checkbox"],"containerStyle":[16],"triggerStyle":[16],"dropdownStyle":[16],"optionStyle":[16],"labelStyle":[16],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}]]],["sd-date-picker.cjs",[[770,"sd-date-picker",{"date":[1],"label":[1],"selectable":[16],"disabled":[4],"isOpen":[32],"currentDate":[32],"currentYear":[32],"currentMonth":[32]}]]],["sd-date-range-picker.cjs",[[770,"sd-date-range-picker",{"date":[16],"label":[1],"selectable":[16],"maxRange":[2,"max-range"],"disabled":[4],"isOpen":[32],"dateRange":[32],"hoverDate":[32],"prevYear":[32],"prevMonth":[32]}]]],["sd-popover.cjs",[[769,"sd-popover",{"show":[1028],"placement":[513],"color":[513],"icon":[513],"iconSize":[514,"icon-size"],"label":[1],"buttonSize":[513,"button-size"],"buttonVariant":[513,"button-variant"],"menuTitle":[513,"title"],"messages":[16],"buttons":[16],"menuClass":[1,"menu-class"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showPopover":[32],"slotContent":[32]},null,{"show":["watchShowHandler"]}]]],["sd-badge.cjs",[[770,"sd-badge",{"size":[1],"color":[1],"label":[1]}]]],["sd-card.cjs",[[772,"sd-card",{"bordered":[4],"class":[1]}]]],["sd-progress.cjs",[[768,"sd-progress",{"type":[1],"status":[1],"percentage":[2],"size":[2],"strokeWidth":[2,"stroke-width"],"label":[1]}]]],["sd-tag.cjs",[[769,"sd-tag",{"size":[1],"color":[1],"rounded":[4],"label":[1],"bgColor":[1,"bg-color"],"textColor":[1,"text-color"]}]]],["sd-button_13.cjs",[[772,"sd-table",{"columns":[16],"rows":[1040],"selected":[1040],"rowKey":[1,"row-key"],"selectable":[4],"resizable":[4],"width":[1],"height":[1],"stickyHeader":[4,"sticky-header"],"stickyColumn":[16],"noDataLabel":[1,"no-data-label"],"isLoading":[4,"is-loading"],"pagination":[16],"bodyCellRenderer":[16],"useInternalPagination":[4,"use-internal-pagination"],"useRowsPerPageSelect":[4,"use-rows-per-page-select"],"rowsPerPageOption":[16],"currentPage":[32],"innerRows":[32],"innerSelected":[32],"columnWidths":[32],"scrolledLeft":[32],"scrolledRight":[32]},null,{"columns":["handleColumnsChange"],"rows":["handleRowsChange"],"selected":["handleSelectedChange"],"pagination":["handlePaginationChange"]}],[768,"sd-guide",{"type":[1],"label":[1],"message":[1],"guideUrl":[1,"guide-url"],"popupWidth":[2,"popup-width"],"popupShow":[32]}],[772,"sd-select",{"value":[1032],"label":[1],"options":[1040],"placeholder":[1],"optionPlaceholder":[1,"option-placeholder"],"width":[1],"dropdownHeight":[1,"dropdown-height"],"disabled":[4],"clearable":[4],"searchable":[4],"optionRenderer":[16],"filteredOptions":[32],"isOpen":[32],"searchText":[32],"itemIndex":[32],"isScrolled":[32]},null,{"value":["valueChanged"],"options":["optionsChanged"],"searchText":["searchTextChanged"],"itemIndex":["itemIndexChanged"],"isOpen":["isOpenChanged"]}],[768,"sd-tooltip",{"trigger":[1],"placement":[1],"color":[1],"type":[1],"icon":[1],"iconSize":[2,"icon-size"],"label":[1],"buttonSize":[1,"button-size"],"buttonVariant":[1,"button-variant"],"noHover":[4,"no-hover"],"useClose":[4,"use-close"],"showTooltip":[32],"slotContent":[32]}],[768,"sd-pagination",{"currentPage":[2,"current-page"],"lastPage":[2,"last-page"],"simple":[4]},null,{"currentPage":["onPropChange"],"lastPage":["onPropChange"]}],[256,"sd-loading-spinner"],[768,"sd-select-option",{"option":[16],"index":[2],"isSelected":[4,"is-selected"],"isFocused":[4,"is-focused"],"optionStyle":[16],"disabled":[4],"useCheckbox":[4,"use-checkbox"],"isHovered":[32],"isDisabled":[64]}],[769,"sd-tooltip-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"placement":[1],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]],[768,"sd-button",{"variant":[1],"size":[1],"color":[1],"label":[1],"disabled":[4],"type":[1],"icon":[1],"iconColor":[1,"icon-color"],"iconSize":[2,"icon-size"],"iconRight":[1,"icon-right"],"noHover":[4,"no-hover"],"class":[1]}],[768,"sd-checkbox",{"checked":[4],"val":[8],"disabled":[4],"label":[1],"isChecked":[32]},null,{"checked":["watchValueHandler"]}],[772,"sd-input",{"value":[1032],"label":[1],"placeholder":[1],"disabled":[4],"clearable":[4],"width":[8],"barcode":[4],"rules":[16],"autoFocus":[4,"auto-focus"],"status":[1],"inputClass":[1,"input-class"],"readonly":[4],"inputStyle":[16],"internalValue":[32],"error":[32],"focused":[32],"hovered":[32],"getNativeElement":[64]},null,{"value":["valueChanged"],"internalValue":["internalValueChanged"]}],[772,"sd-portal",{"to":[1],"parentRef":[16],"offset":[16],"zIndex":[2,"z-index"],"open":[4]},[[9,"scroll","updatePosition"],[9,"resize","updatePosition"],[9,"mousedown","handleMouseDown"],[8,"click","handleWindowClick"]]],[768,"sd-icon",{"name":[1],"size":[8],"color":[1],"rotate":[2],"label":[1],"iconStyle":[16]}]]],["sd-select-option-group.cjs",[[768,"sd-select-option-group",{"option":[16],"index":[2],"isSelected":[4,"is-selected"],"isFocused":[4,"is-focused"],"optionStyle":[16],"disabled":[4],"useCheckbox":[4,"use-checkbox"],"useIndicator":[4,"use-indicator"],"countInfo":[16],"isHovered":[32],"isDisabled":[64]}]]],["sd-date-box.cjs",[[770,"sd-date-box",{"date":[8],"disabled":[4],"selected":[4],"isStartDate":[4,"is-start-date"],"isEndDate":[4,"is-end-date"],"isToday":[4,"is-today"],"inRange":[4,"in-range"],"type":[1]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -1393,7 +1393,7 @@ const SdSelectOption = class {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
};
|
|
1395
1395
|
render() {
|
|
1396
|
-
return (index.h(index.Host, { key: '
|
|
1396
|
+
return (index.h(index.Host, { key: '57acf795fbb642249d9716fc8fa4123f2d939d2b' }, index.h("div", { key: '6653deafa3142a3bf9b67290dae411c29fc38f41', class: {
|
|
1397
1397
|
'sd-select__option': true,
|
|
1398
1398
|
'sd-select__option--selected': this.isSelected,
|
|
1399
1399
|
'sd-select__option--disabled': !!this.option.disabled,
|
|
@@ -1722,20 +1722,20 @@ const SdTooltip = class {
|
|
|
1722
1722
|
: {
|
|
1723
1723
|
onClick: () => (this.showTooltip = !this.showTooltip),
|
|
1724
1724
|
};
|
|
1725
|
-
return (index.h(index.Fragment, { key: '
|
|
1725
|
+
return (index.h(index.Fragment, { key: '45dbef1d93b082f8fe42c003f997aa80ad297ee5' }, this.label ? (index.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-tooltip", ...handleTrigger })) : (index.h("sd-icon", { ref: el => (this.buttonEl = el), name: this.icon, size: this.iconSize, color: this.color, class: "sd-tooltip", ...handleTrigger })), this.showTooltip && (index.h("sd-tooltip-portal", { key: '7357fe6678832a74c567b24e404d14d75a77b13f', parentRef: this.buttonEl, onSdClose: () => this.handleClose(), placement: this.placement }, index.h("div", { key: '3add41a611cb55fddaae7733b6db9ec996561723', class: {
|
|
1726
1726
|
'sd-tooltip-menu': true,
|
|
1727
1727
|
[`sd-tooltip-menu--${this.type}`]: true,
|
|
1728
1728
|
[`sd-tooltip-menu--${this.placement}`]: true,
|
|
1729
1729
|
'sd-tooltip-menu--with-close': this.useClose,
|
|
1730
1730
|
[`bg-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
1731
1731
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].text}`]: true,
|
|
1732
|
-
} }, index.h("i", { key: '
|
|
1732
|
+
} }, index.h("i", { key: 'f62cfc386831412cb958da88a41e0487be40d119', class: `sd-tooltip-menu__arrow sd-tooltip-menu__arrow--${this.placement}` }, index.h(tooltipArrow.TooltipArrow, { key: 'daab1b1028832d95fb05456b96981cdeb1e31c4e', class: {
|
|
1733
1733
|
[`text-${SdTooltip.COLOR_OF_TYPE[this.type].background}`]: true,
|
|
1734
|
-
} })), index.h("div", { key: '
|
|
1734
|
+
} })), index.h("div", { key: 'ab7ca38aa68cf8279ff0d372651a4e26b217781c', class: "sd-tooltip-menu__content", ref: el => {
|
|
1735
1735
|
if (el && this.slotContent && !el.hasChildNodes()) {
|
|
1736
1736
|
el.appendChild(this.slotContent.cloneNode(true));
|
|
1737
1737
|
}
|
|
1738
|
-
} }, !this.slotContent && index.h("span", { key: '
|
|
1738
|
+
} }, !this.slotContent && index.h("span", { key: 'f5768e8b7e3033f64797aba77a504d57236e51e3' }, this.el.textContent)), this.useClose && (index.h("div", { key: '94bdf692fabf190912a64d6051957031b2964ae5', class: "sd-tooltip-menu__close-button" }, index.h("button", { key: '8826745fb1dab139358bc0d430d622abca333e5e', type: "button", "aria-label": "Close tooltip", title: "Close tooltip", onClick: () => this.handleClose() }, index.h("sd-icon", { key: '863f114251ec302425224a7385dd23292f7f6340', name: "close", size: "12", color: "#AAAAAA" })))))))));
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
1741
|
SdTooltip.style = sdTooltipCss;
|
|
@@ -1888,7 +1888,7 @@ const SdTooltipPortal = class {
|
|
|
1888
1888
|
this.sdClose.emit();
|
|
1889
1889
|
}
|
|
1890
1890
|
render() {
|
|
1891
|
-
return index.h("slot", { key: '
|
|
1891
|
+
return index.h("slot", { key: '96e22fb7cd79afbef7bcb1a9b055e6a2bf54dd76' });
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
1894
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DXo1Fhkn.js');
|
|
4
|
+
|
|
5
|
+
const sdProgressCss = "sd-progress{display:block}sd-progress .sd-progress__bar{position:relative;width:360px;height:20px;overflow:hidden;border-radius:4px;background-color:#eeeeee;text-align:center}sd-progress .sd-progress__bar__percent{width:var(--progress-percentage);height:100%;border-radius:4px;background-color:var(--progress-color, #0075ff);transition:all 0.5s}sd-progress .sd-progress__bar__percent.proceed{border-top-right-radius:50%}sd-progress .sd-progress__bar__indicator{position:absolute;left:0;top:0;height:20px;width:100%;background-color:#eeeeee;line-height:21px;z-index:1}sd-progress .sd-progress__bar__indicator--left{color:var(--progress-color, #0075ff);clip-path:inset(0 0 0 var(--progress-percentage))}sd-progress .sd-progress__bar__indicator--right{color:white;background-color:var(--progress-color, #0075ff);clip-path:inset(0 calc(100% - var(--progress-percentage)) 0 0)}sd-progress .sd-progress__spinner{display:flex;flex-direction:column;align-items:center;justify-content:center}sd-progress .sd-progress__spinner svg{transform:rotate(-90deg)}sd-progress .sd-progress__spinner__label{margin-top:4px;font-size:16px;color:var(--progress-color, #0075ff)}sd-progress .sd-progress__label{margin-top:4px;font-size:12px;color:#222222;text-align:center}";
|
|
6
|
+
|
|
7
|
+
const SdProgress = class {
|
|
8
|
+
constructor(hostRef) {
|
|
9
|
+
index.registerInstance(this, hostRef);
|
|
10
|
+
}
|
|
11
|
+
type = 'bar';
|
|
12
|
+
status = 'default';
|
|
13
|
+
percentage = 0;
|
|
14
|
+
size = 80;
|
|
15
|
+
strokeWidth = 12;
|
|
16
|
+
label;
|
|
17
|
+
statusColor = {
|
|
18
|
+
default: '#aaaaaa',
|
|
19
|
+
progress: '#0075ff',
|
|
20
|
+
complete: '#12B553',
|
|
21
|
+
error: '#FB4444',
|
|
22
|
+
};
|
|
23
|
+
render() {
|
|
24
|
+
return (index.h(index.Host, { key: '2e2f7cf77bbc63dfb15910a3bc50ac45601020cd', style: {
|
|
25
|
+
'--progress-color': this.statusColor[this.status],
|
|
26
|
+
'--progress-percentage': `${this.percentage}%`,
|
|
27
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && index.h("div", { key: '3e72a490e148886c59345e5ac3161f760e0f4e85', class: "sd-progress__label" }, this.label)));
|
|
28
|
+
}
|
|
29
|
+
renderBarProgress() {
|
|
30
|
+
return (index.h("div", { class: `sd-progress__bar sd-progress__bar--${this.status}` }, index.h("div", { class: ['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ') }), index.h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--left" }, this.percentage, "%"), index.h("div", { class: "sd-progress__bar__indicator sd-progress__bar__indicator--right" }, this.percentage, "%")));
|
|
31
|
+
}
|
|
32
|
+
renderSpinnerProgress() {
|
|
33
|
+
const radius = (this.size - this.strokeWidth) / 2; // 원의 반지름
|
|
34
|
+
const circumference = 2 * Math.PI * radius; // 원의 둘레
|
|
35
|
+
const offset = circumference - (this.percentage / 100) * circumference; // 진행률에 따른 offset
|
|
36
|
+
const progressBgSize = `${this.size}px`;
|
|
37
|
+
const progressSize = `${this.size / 2}px`;
|
|
38
|
+
return (index.h("div", { class: `sd-progress__spinner sd-progress__spinner--${this.status}` }, index.h("svg", { width: progressBgSize, height: progressBgSize }, index.h("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: "#EEEEEE", "stroke-width": this.strokeWidth, fill: "transparent" }), index.h("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: this.statusColor[this.status], "stroke-width": this.strokeWidth, fill: "transparent", "stroke-dasharray": circumference, "stroke-dashoffset": offset, "stroke-linecap": "round", class: "transition-all duration-500" })), index.h("strong", { class: "sd-progress__spinner__label" }, this.percentage, " %")));
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
SdProgress.style = sdProgressCss;
|
|
42
|
+
|
|
43
|
+
exports.sd_progress = SdProgress;
|
|
44
|
+
//# sourceMappingURL=sd-progress.entry.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-progress.entry.cjs.js","sources":["src/components/sd-progress/sd-progress.scss?tag=sd-progress","src/components/sd-progress/sd-progress.tsx"],"sourcesContent":["@import 'variables';\n\nsd-progress {\n display: block;\n\n .sd-progress__bar {\n position: relative;\n width: 360px;\n height: 20px;\n overflow: hidden;\n border-radius: 4px;\n background-color: $grey_20;\n text-align: center;\n\n &__percent {\n width: var(--progress-percentage);\n height: 100%;\n border-radius: 4px;\n background-color: var(--progress-color, $brilliantblue_75);\n transition: all 0.5s;\n &.proceed {\n border-top-right-radius: 50%;\n }\n }\n &__indicator {\n position: absolute;\n left: 0;\n top: 0;\n height: 20px;\n width: 100%;\n background-color: $grey_20;\n line-height: 21px;\n z-index: 1;\n }\n\n &__indicator--left {\n color: var(--progress-color, $brilliantblue_75);\n clip-path: inset(0 0 0 var(--progress-percentage));\n }\n\n &__indicator--right {\n color: white;\n background-color: var(--progress-color, $brilliantblue_75);\n clip-path: inset(0 calc(100% - var(--progress-percentage)) 0 0);\n }\n }\n\n .sd-progress__spinner {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n svg {\n transform: rotate(-90deg);\n }\n\n &__label {\n margin-top: 4px;\n font-size: 16px;\n color: var(--progress-color, $brilliantblue_75);\n }\n }\n\n .sd-progress__label {\n margin-top: 4px;\n font-size: 12px;\n color: $grey_95;\n text-align: center;\n }\n}\n","import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-progress',\n styleUrl: 'sd-progress.scss',\n})\nexport class SdProgress {\n @Prop() type: 'bar' | 'spinner' = 'bar';\n @Prop() status: 'default' | 'progress' | 'complete' | 'error' = 'default';\n @Prop() percentage: number = 0;\n @Prop() size: number = 80;\n @Prop() strokeWidth: number = 12;\n @Prop() label?: string;\n\n private statusColor = {\n default: '#aaaaaa',\n progress: '#0075ff',\n complete: '#12B553',\n error: '#FB4444',\n };\n\n render() {\n return (\n <Host\n style={{\n '--progress-color': this.statusColor[this.status],\n '--progress-percentage': `${this.percentage}%`,\n }}\n >\n {this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress()}\n {this.label && <div class=\"sd-progress__label\">{this.label}</div>}\n </Host>\n );\n }\n\n renderBarProgress() {\n return (\n <div class={`sd-progress__bar sd-progress__bar--${this.status}`}>\n <div\n class={['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ')}\n ></div>\n <div class=\"sd-progress__bar__indicator sd-progress__bar__indicator--left\">\n {this.percentage}%\n </div>\n <div class=\"sd-progress__bar__indicator sd-progress__bar__indicator--right\">\n {this.percentage}%\n </div>\n </div>\n );\n }\n\n renderSpinnerProgress() {\n const radius = (this.size - this.strokeWidth) / 2; // 원의 반지름\n const circumference = 2 * Math.PI * radius; // 원의 둘레\n const offset = circumference - (this.percentage / 100) * circumference; // 진행률에 따른 offset\n const progressBgSize = `${this.size}px`;\n const progressSize = `${this.size / 2}px`;\n\n return (\n <div class={`sd-progress__spinner sd-progress__spinner--${this.status}`}>\n <svg width={progressBgSize} height={progressBgSize}>\n <circle\n cx={progressSize}\n cy={progressSize}\n r={radius}\n stroke=\"#EEEEEE\"\n stroke-width={this.strokeWidth}\n fill=\"transparent\"\n />\n <circle\n cx={progressSize}\n cy={progressSize}\n r={radius}\n stroke={this.statusColor[this.status]}\n stroke-width={this.strokeWidth}\n fill=\"transparent\"\n stroke-dasharray={circumference}\n stroke-dashoffset={offset}\n stroke-linecap=\"round\"\n class=\"transition-all duration-500\"\n />\n </svg>\n <strong class=\"sd-progress__spinner__label\">{this.percentage} %</strong>\n </div>\n );\n }\n}\n\n// <sd-progress id=\"sd-progress-1\"></sd-progress>\n// <sd-progress id=\"sd-progress-2\" type=\"spinner\"></sd-progress>\n// <sd-progress id=\"sd-progress-3\" type=\"spinner\"></sd-progress>\n// <script>\n// document.addEventListener('DOMContentLoaded', event => {\n// progress = document.getElementById('sd-progress-1');\n// progress2 = document.getElementById('sd-progress-2');\n// progress3 = document.getElementById('sd-progress-3');\n// progress2.label = 'test label...';\n// progress3.percentage = 50;\n// progress3.status = 'error';\n// let percentage = 0;\n// const interval = setInterval(() => {\n// if (percentage >= 100) {\n// clearInterval(interval);\n// progress.status = 'complete';\n// progress2.status = 'complete';\n// return;\n// }\n// percentage += 10;\n// progress.status = 'progress';\n// progress.percentage = percentage;\n// progress2.status = 'progress';\n// progress2.percentage = percentage;\n// }, 500);\n// });\n// </script>\n"],"names":["h","Host"],"mappings":";;;;AAAA,MAAM,aAAa,GAAG,kuCAAkuC;;MCM3uC,UAAU,GAAA,MAAA;;;;IACd,IAAI,GAAsB,KAAK;IAC/B,MAAM,GAAkD,SAAS;IACjE,UAAU,GAAW,CAAC;IACtB,IAAI,GAAW,EAAE;IACjB,WAAW,GAAW,EAAE;AACxB,IAAA,KAAK;AAEL,IAAA,WAAW,GAAG;AACrB,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,QAAQ,EAAE,SAAS;AACnB,QAAA,KAAK,EAAE,SAAS;KAChB;IAED,MAAM,GAAA;QACL,QACCA,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EACJ,KAAK,EAAE;gBACN,kBAAkB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC;AACjD,gBAAA,uBAAuB,EAAE,CAAA,EAAG,IAAI,CAAC,UAAU,CAAG,CAAA,CAAA;aAC9C,EAAA,EAEA,IAAI,CAAC,IAAI,KAAK,KAAK,GAAG,IAAI,CAAC,iBAAiB,EAAE,GAAG,IAAI,CAAC,qBAAqB,EAAE,EAC7E,IAAI,CAAC,KAAK,IAAID,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,oBAAoB,EAAE,EAAA,IAAI,CAAC,KAAK,CAAO,CAC3D;;IAIT,iBAAiB,GAAA;AAChB,QAAA,QACCA,iBAAK,KAAK,EAAE,CAAsC,mCAAA,EAAA,IAAI,CAAC,MAAM,CAAA,CAAE,EAAA,EAC9DA,OACC,CAAA,KAAA,EAAA,EAAA,KAAK,EAAE,CAAC,2BAA2B,EAAE,IAAI,CAAC,UAAU,GAAG,GAAG,GAAG,SAAS,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAChF,CAAA,EACPA,OAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,+DAA+D,EAAA,EACxE,IAAI,CAAC,UAAU,EACX,GAAA,CAAA,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,gEAAgE,EAAA,EACzE,IAAI,CAAC,UAAU,EACX,GAAA,CAAA,CACD;;IAIR,qBAAqB,GAAA;AACpB,QAAA,MAAM,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC;QAClD,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC;AAC3C,QAAA,MAAM,MAAM,GAAG,aAAa,GAAG,CAAC,IAAI,CAAC,UAAU,GAAG,GAAG,IAAI,aAAa,CAAC;AACvE,QAAA,MAAM,cAAc,GAAG,CAAA,EAAG,IAAI,CAAC,IAAI,IAAI;QACvC,MAAM,YAAY,GAAG,CAAG,EAAA,IAAI,CAAC,IAAI,GAAG,CAAC,CAAA,EAAA,CAAI;AAEzC,QAAA,QACCA,iBAAK,KAAK,EAAE,CAA8C,2CAAA,EAAA,IAAI,CAAC,MAAM,EAAE,EAAA,EACtEA,OAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,cAAc,EAAA,EACjDA,OACC,CAAA,QAAA,EAAA,EAAA,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,CAAC,EAAE,MAAM,EACT,MAAM,EAAC,SAAS,EAAA,cAAA,EACF,IAAI,CAAC,WAAW,EAC9B,IAAI,EAAC,aAAa,EACjB,CAAA,EACFA,OAAA,CAAA,QAAA,EAAA,EACC,EAAE,EAAE,YAAY,EAChB,EAAE,EAAE,YAAY,EAChB,CAAC,EAAE,MAAM,EACT,MAAM,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,kBACvB,IAAI,CAAC,WAAW,EAC9B,IAAI,EAAC,aAAa,EAAA,kBAAA,EACA,aAAa,EACZ,mBAAA,EAAA,MAAM,oBACV,OAAO,EACtB,KAAK,EAAC,6BAA6B,GAClC,CACG,EACNA,OAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAC,6BAA6B,EAAA,EAAE,IAAI,CAAC,UAAU,EAAY,IAAA,CAAA,CACnE;;;;;;;"}
|
|
@@ -215,11 +215,11 @@ const SdSelectMultiple = class extends selectKeyboardNavigation.BaseDropdownEven
|
|
|
215
215
|
'--select-width': this.width || '200px',
|
|
216
216
|
'--select-dropdown-height': this.dropdownHeight || '260px',
|
|
217
217
|
};
|
|
218
|
-
return (index.h(index.Host, { key: '
|
|
218
|
+
return (index.h(index.Host, { key: 'c569bb885003048b6ec22bfb0688c671a70a27d5', style: style }, index.h("div", { key: '94b43199502f44f7d663981c320696c6e8cf968f', class: {
|
|
219
219
|
'sd-select-multiple': true,
|
|
220
220
|
'sd-select-multiple--open': this.isOpen,
|
|
221
221
|
'sd-select-multiple--disabled': this.disabled,
|
|
222
|
-
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), index.h("div", { key: '
|
|
222
|
+
}, ref: el => (this.selectRef = el) }, this.renderLabel(this.label), index.h("div", { key: 'd4fd6929b78add118c01d7b52c1c1e0be9867924', class: "sd-select-multiple__container" }, this.renderTrigger(), this.renderDropdown()))));
|
|
223
223
|
}
|
|
224
224
|
renderLabel(label) {
|
|
225
225
|
if (!label)
|
|
@@ -48,7 +48,7 @@ const SdSelectOptionGroup = class {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: 'ab10e48405e8457f1319518f9790c5dd94d1b5e6', class: {
|
|
52
52
|
'sd-select__option-group': true,
|
|
53
53
|
'sd-select__option-group--selected': !!this.isSelected,
|
|
54
54
|
'sd-select__option-group--disabled': !!this.option.disabled,
|
|
@@ -57,10 +57,10 @@ const SdSelectOptionGroup = class {
|
|
|
57
57
|
'sd-select__option-group--group': this.option.type === 'group',
|
|
58
58
|
'sd-select__option-group--subgroup': this.option.type === 'subgroup',
|
|
59
59
|
'sd-select__option-group--item': this.option.type === 'item',
|
|
60
|
-
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, index.h("div", { key: '
|
|
60
|
+
}, onMouseEnter: () => (this.isHovered = true), onMouseLeave: () => (this.isHovered = false), style: this.optionStyle, "data-index": this.index, onClick: event => this.handleClick(this.option, this.isSelected, event) }, index.h("div", { key: 'e9b0636bc98818aa48b5d486c3e5b4c216b76046', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (index.h("sd-checkbox", { key: 'b7495da88ddad187588569c64235ccc1697466fe', checked: this.isSelected, disabled: this.option.disabled, onClick: e => {
|
|
61
61
|
e.preventDefault();
|
|
62
62
|
this.handleClick(this.option, this.isSelected, e);
|
|
63
|
-
} })), index.h("span", { key: '
|
|
63
|
+
} })), index.h("span", { key: 'f8a51d2ea1a99ae17a1ba79fb6f802f0c2a27be1', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (index.h("span", { key: 'ee29e4503321462981c6d6fe497d70f271e5f814', class: "sd-select__option-group__count-indicator" }, `(${this.countInfo?.selectedCount}/${this.countInfo?.totalCount})`)))));
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
SdSelectOptionGroup.style = sdSelectOptionGroupCss;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"components/sd-pagination/sd-pagination.js",
|
|
19
19
|
"components/sd-popover/sd-popover.js",
|
|
20
20
|
"components/sd-portal/sd-portal.js",
|
|
21
|
+
"components/sd-progress/sd-progress.js",
|
|
21
22
|
"components/sd-select/sd-select-option/sd-select-option.js",
|
|
22
23
|
"components/sd-select-multiple/sd-select-multiple.js",
|
|
23
24
|
"components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js",
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
sd-progress {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
sd-progress .sd-progress__bar {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 360px;
|
|
7
|
+
height: 20px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: 4px;
|
|
10
|
+
background-color: #eeeeee;
|
|
11
|
+
text-align: center;
|
|
12
|
+
}
|
|
13
|
+
sd-progress .sd-progress__bar__percent {
|
|
14
|
+
width: var(--progress-percentage);
|
|
15
|
+
height: 100%;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
background-color: var(--progress-color, #0075ff);
|
|
18
|
+
transition: all 0.5s;
|
|
19
|
+
}
|
|
20
|
+
sd-progress .sd-progress__bar__percent.proceed {
|
|
21
|
+
border-top-right-radius: 50%;
|
|
22
|
+
}
|
|
23
|
+
sd-progress .sd-progress__bar__indicator {
|
|
24
|
+
position: absolute;
|
|
25
|
+
left: 0;
|
|
26
|
+
top: 0;
|
|
27
|
+
height: 20px;
|
|
28
|
+
width: 100%;
|
|
29
|
+
background-color: #eeeeee;
|
|
30
|
+
line-height: 21px;
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
33
|
+
sd-progress .sd-progress__bar__indicator--left {
|
|
34
|
+
color: var(--progress-color, #0075ff);
|
|
35
|
+
clip-path: inset(0 0 0 var(--progress-percentage));
|
|
36
|
+
}
|
|
37
|
+
sd-progress .sd-progress__bar__indicator--right {
|
|
38
|
+
color: white;
|
|
39
|
+
background-color: var(--progress-color, #0075ff);
|
|
40
|
+
clip-path: inset(0 calc(100% - var(--progress-percentage)) 0 0);
|
|
41
|
+
}
|
|
42
|
+
sd-progress .sd-progress__spinner {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
}
|
|
48
|
+
sd-progress .sd-progress__spinner svg {
|
|
49
|
+
transform: rotate(-90deg);
|
|
50
|
+
}
|
|
51
|
+
sd-progress .sd-progress__spinner__label {
|
|
52
|
+
margin-top: 4px;
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
color: var(--progress-color, #0075ff);
|
|
55
|
+
}
|
|
56
|
+
sd-progress .sd-progress__label {
|
|
57
|
+
margin-top: 4px;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
color: #222222;
|
|
60
|
+
text-align: center;
|
|
61
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
export class SdProgress {
|
|
3
|
+
type = 'bar';
|
|
4
|
+
status = 'default';
|
|
5
|
+
percentage = 0;
|
|
6
|
+
size = 80;
|
|
7
|
+
strokeWidth = 12;
|
|
8
|
+
label;
|
|
9
|
+
statusColor = {
|
|
10
|
+
default: '#aaaaaa',
|
|
11
|
+
progress: '#0075ff',
|
|
12
|
+
complete: '#12B553',
|
|
13
|
+
error: '#FB4444',
|
|
14
|
+
};
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, { key: '2e2f7cf77bbc63dfb15910a3bc50ac45601020cd', style: {
|
|
17
|
+
'--progress-color': this.statusColor[this.status],
|
|
18
|
+
'--progress-percentage': `${this.percentage}%`,
|
|
19
|
+
} }, this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress(), this.label && h("div", { key: '3e72a490e148886c59345e5ac3161f760e0f4e85', class: "sd-progress__label" }, this.label)));
|
|
20
|
+
}
|
|
21
|
+
renderBarProgress() {
|
|
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, "%")));
|
|
23
|
+
}
|
|
24
|
+
renderSpinnerProgress() {
|
|
25
|
+
const radius = (this.size - this.strokeWidth) / 2; // 원의 반지름
|
|
26
|
+
const circumference = 2 * Math.PI * radius; // 원의 둘레
|
|
27
|
+
const offset = circumference - (this.percentage / 100) * circumference; // 진행률에 따른 offset
|
|
28
|
+
const progressBgSize = `${this.size}px`;
|
|
29
|
+
const progressSize = `${this.size / 2}px`;
|
|
30
|
+
return (h("div", { class: `sd-progress__spinner sd-progress__spinner--${this.status}` }, h("svg", { width: progressBgSize, height: progressBgSize }, h("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: "#EEEEEE", "stroke-width": this.strokeWidth, fill: "transparent" }), h("circle", { cx: progressSize, cy: progressSize, r: radius, stroke: this.statusColor[this.status], "stroke-width": this.strokeWidth, fill: "transparent", "stroke-dasharray": circumference, "stroke-dashoffset": offset, "stroke-linecap": "round", class: "transition-all duration-500" })), h("strong", { class: "sd-progress__spinner__label" }, this.percentage, " %")));
|
|
31
|
+
}
|
|
32
|
+
static get is() { return "sd-progress"; }
|
|
33
|
+
static get originalStyleUrls() {
|
|
34
|
+
return {
|
|
35
|
+
"$": ["sd-progress.scss"]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
static get styleUrls() {
|
|
39
|
+
return {
|
|
40
|
+
"$": ["sd-progress.css"]
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static get properties() {
|
|
44
|
+
return {
|
|
45
|
+
"type": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"mutable": false,
|
|
48
|
+
"complexType": {
|
|
49
|
+
"original": "'bar' | 'spinner'",
|
|
50
|
+
"resolved": "\"bar\" | \"spinner\"",
|
|
51
|
+
"references": {}
|
|
52
|
+
},
|
|
53
|
+
"required": false,
|
|
54
|
+
"optional": false,
|
|
55
|
+
"docs": {
|
|
56
|
+
"tags": [],
|
|
57
|
+
"text": ""
|
|
58
|
+
},
|
|
59
|
+
"getter": false,
|
|
60
|
+
"setter": false,
|
|
61
|
+
"reflect": false,
|
|
62
|
+
"attribute": "type",
|
|
63
|
+
"defaultValue": "'bar'"
|
|
64
|
+
},
|
|
65
|
+
"status": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"mutable": false,
|
|
68
|
+
"complexType": {
|
|
69
|
+
"original": "'default' | 'progress' | 'complete' | 'error'",
|
|
70
|
+
"resolved": "\"complete\" | \"default\" | \"error\" | \"progress\"",
|
|
71
|
+
"references": {}
|
|
72
|
+
},
|
|
73
|
+
"required": false,
|
|
74
|
+
"optional": false,
|
|
75
|
+
"docs": {
|
|
76
|
+
"tags": [],
|
|
77
|
+
"text": ""
|
|
78
|
+
},
|
|
79
|
+
"getter": false,
|
|
80
|
+
"setter": false,
|
|
81
|
+
"reflect": false,
|
|
82
|
+
"attribute": "status",
|
|
83
|
+
"defaultValue": "'default'"
|
|
84
|
+
},
|
|
85
|
+
"percentage": {
|
|
86
|
+
"type": "number",
|
|
87
|
+
"mutable": false,
|
|
88
|
+
"complexType": {
|
|
89
|
+
"original": "number",
|
|
90
|
+
"resolved": "number",
|
|
91
|
+
"references": {}
|
|
92
|
+
},
|
|
93
|
+
"required": false,
|
|
94
|
+
"optional": false,
|
|
95
|
+
"docs": {
|
|
96
|
+
"tags": [],
|
|
97
|
+
"text": ""
|
|
98
|
+
},
|
|
99
|
+
"getter": false,
|
|
100
|
+
"setter": false,
|
|
101
|
+
"reflect": false,
|
|
102
|
+
"attribute": "percentage",
|
|
103
|
+
"defaultValue": "0"
|
|
104
|
+
},
|
|
105
|
+
"size": {
|
|
106
|
+
"type": "number",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "number",
|
|
110
|
+
"resolved": "number",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": ""
|
|
118
|
+
},
|
|
119
|
+
"getter": false,
|
|
120
|
+
"setter": false,
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"attribute": "size",
|
|
123
|
+
"defaultValue": "80"
|
|
124
|
+
},
|
|
125
|
+
"strokeWidth": {
|
|
126
|
+
"type": "number",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "number",
|
|
130
|
+
"resolved": "number",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": ""
|
|
138
|
+
},
|
|
139
|
+
"getter": false,
|
|
140
|
+
"setter": false,
|
|
141
|
+
"reflect": false,
|
|
142
|
+
"attribute": "stroke-width",
|
|
143
|
+
"defaultValue": "12"
|
|
144
|
+
},
|
|
145
|
+
"label": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string | undefined",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": true,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": ""
|
|
158
|
+
},
|
|
159
|
+
"getter": false,
|
|
160
|
+
"setter": false,
|
|
161
|
+
"reflect": false,
|
|
162
|
+
"attribute": "label"
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// <sd-progress id="sd-progress-1"></sd-progress>
|
|
168
|
+
// <sd-progress id="sd-progress-2" type="spinner"></sd-progress>
|
|
169
|
+
// <sd-progress id="sd-progress-3" type="spinner"></sd-progress>
|
|
170
|
+
// <script>
|
|
171
|
+
// document.addEventListener('DOMContentLoaded', event => {
|
|
172
|
+
// progress = document.getElementById('sd-progress-1');
|
|
173
|
+
// progress2 = document.getElementById('sd-progress-2');
|
|
174
|
+
// progress3 = document.getElementById('sd-progress-3');
|
|
175
|
+
// progress2.label = 'test label...';
|
|
176
|
+
// progress3.percentage = 50;
|
|
177
|
+
// progress3.status = 'error';
|
|
178
|
+
// let percentage = 0;
|
|
179
|
+
// const interval = setInterval(() => {
|
|
180
|
+
// if (percentage >= 100) {
|
|
181
|
+
// clearInterval(interval);
|
|
182
|
+
// progress.status = 'complete';
|
|
183
|
+
// progress2.status = 'complete';
|
|
184
|
+
// return;
|
|
185
|
+
// }
|
|
186
|
+
// percentage += 10;
|
|
187
|
+
// progress.status = 'progress';
|
|
188
|
+
// progress.percentage = percentage;
|
|
189
|
+
// progress2.status = 'progress';
|
|
190
|
+
// progress2.percentage = percentage;
|
|
191
|
+
// }, 500);
|
|
192
|
+
// });
|
|
193
|
+
// </script>
|
|
194
|
+
//# sourceMappingURL=sd-progress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sd-progress.js","sourceRoot":"","sources":["../../../src/components/sd-progress/sd-progress.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'sd-progress',\n styleUrl: 'sd-progress.scss',\n})\nexport class SdProgress {\n @Prop() type: 'bar' | 'spinner' = 'bar';\n @Prop() status: 'default' | 'progress' | 'complete' | 'error' = 'default';\n @Prop() percentage: number = 0;\n @Prop() size: number = 80;\n @Prop() strokeWidth: number = 12;\n @Prop() label?: string;\n\n private statusColor = {\n default: '#aaaaaa',\n progress: '#0075ff',\n complete: '#12B553',\n error: '#FB4444',\n };\n\n render() {\n return (\n <Host\n style={{\n '--progress-color': this.statusColor[this.status],\n '--progress-percentage': `${this.percentage}%`,\n }}\n >\n {this.type === 'bar' ? this.renderBarProgress() : this.renderSpinnerProgress()}\n {this.label && <div class=\"sd-progress__label\">{this.label}</div>}\n </Host>\n );\n }\n\n renderBarProgress() {\n return (\n <div class={`sd-progress__bar sd-progress__bar--${this.status}`}>\n <div\n class={['sd-progress__bar__percent', this.percentage < 100 ? 'proceed' : ''].join(' ')}\n ></div>\n <div class=\"sd-progress__bar__indicator sd-progress__bar__indicator--left\">\n {this.percentage}%\n </div>\n <div class=\"sd-progress__bar__indicator sd-progress__bar__indicator--right\">\n {this.percentage}%\n </div>\n </div>\n );\n }\n\n renderSpinnerProgress() {\n const radius = (this.size - this.strokeWidth) / 2; // 원의 반지름\n const circumference = 2 * Math.PI * radius; // 원의 둘레\n const offset = circumference - (this.percentage / 100) * circumference; // 진행률에 따른 offset\n const progressBgSize = `${this.size}px`;\n const progressSize = `${this.size / 2}px`;\n\n return (\n <div class={`sd-progress__spinner sd-progress__spinner--${this.status}`}>\n <svg width={progressBgSize} height={progressBgSize}>\n <circle\n cx={progressSize}\n cy={progressSize}\n r={radius}\n stroke=\"#EEEEEE\"\n stroke-width={this.strokeWidth}\n fill=\"transparent\"\n />\n <circle\n cx={progressSize}\n cy={progressSize}\n r={radius}\n stroke={this.statusColor[this.status]}\n stroke-width={this.strokeWidth}\n fill=\"transparent\"\n stroke-dasharray={circumference}\n stroke-dashoffset={offset}\n stroke-linecap=\"round\"\n class=\"transition-all duration-500\"\n />\n </svg>\n <strong class=\"sd-progress__spinner__label\">{this.percentage} %</strong>\n </div>\n );\n }\n}\n\n// <sd-progress id=\"sd-progress-1\"></sd-progress>\n// <sd-progress id=\"sd-progress-2\" type=\"spinner\"></sd-progress>\n// <sd-progress id=\"sd-progress-3\" type=\"spinner\"></sd-progress>\n// <script>\n// document.addEventListener('DOMContentLoaded', event => {\n// progress = document.getElementById('sd-progress-1');\n// progress2 = document.getElementById('sd-progress-2');\n// progress3 = document.getElementById('sd-progress-3');\n// progress2.label = 'test label...';\n// progress3.percentage = 50;\n// progress3.status = 'error';\n// let percentage = 0;\n// const interval = setInterval(() => {\n// if (percentage >= 100) {\n// clearInterval(interval);\n// progress.status = 'complete';\n// progress2.status = 'complete';\n// return;\n// }\n// percentage += 10;\n// progress.status = 'progress';\n// progress.percentage = percentage;\n// progress2.status = 'progress';\n// progress2.percentage = percentage;\n// }, 500);\n// });\n// </script>\n"]}
|
|
@@ -24,7 +24,7 @@ export class SdSelectOption {
|
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
render() {
|
|
27
|
-
return (h(Host, { key: '
|
|
27
|
+
return (h(Host, { key: '57acf795fbb642249d9716fc8fa4123f2d939d2b' }, h("div", { key: '6653deafa3142a3bf9b67290dae411c29fc38f41', 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: 'c569bb885003048b6ec22bfb0688c671a70a27d5', style: style }, h("div", { key: '94b43199502f44f7d663981c320696c6e8cf968f', 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: 'd4fd6929b78add118c01d7b52c1c1e0be9867924', 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: 'ab10e48405e8457f1319518f9790c5dd94d1b5e6', 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: 'e9b0636bc98818aa48b5d486c3e5b4c216b76046', class: "sd-select__option-group__label-wrapper" }, this.useCheckbox && (h("sd-checkbox", { key: 'b7495da88ddad187588569c64235ccc1697466fe', 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: 'f8a51d2ea1a99ae17a1ba79fb6f802f0c2a27be1', class: "sd-select__option-group-label" }, this.option.label), this.useIndicator && this.option.type !== 'item' && (h("span", { key: 'ee29e4503321462981c6d6fe497d70f271e5f814', 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() {
|