@owp/core 2.5.14 → 2.5.15
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/_virtual/index10.js +2 -2
- package/dist/_virtual/index12.js +2 -2
- package/dist/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index5.js +2 -2
- package/dist/components/OwpDialog/OwpAlertDialog.js +46 -0
- package/dist/components/OwpDialog/OwpAlertDialog.js.map +1 -0
- package/dist/components/OwpDialog/OwpDialog.js +41 -38
- package/dist/components/OwpDialog/OwpDialog.js.map +1 -1
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js +145 -137
- package/dist/components/OwpTreeGrid/OwpTreeGrid.js.map +1 -1
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js +195 -160
- package/dist/components/OwpTreeGrid/internal/treeGridRuntime.js.map +1 -1
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js +7 -6
- package/dist/components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js.map +1 -1
- package/dist/features/themePreview/components/ThemePreviewColorField.js +79 -75
- package/dist/features/themePreview/components/ThemePreviewColorField.js.map +1 -1
- package/dist/hooks/useConfirm.js +55 -65
- package/dist/hooks/useConfirm.js.map +1 -1
- package/dist/index.js +69 -67
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE128/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/EAN_UPC/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/GenericBarcode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/constants.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/ITF/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/MSI/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/codabar/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/pharmacode/index.js +1 -1
- package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/renderers/index.js +1 -1
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +1 -1
- package/dist/types/components/OwpDialog/OwpAlertDialog.d.ts +25 -0
- package/dist/types/components/OwpDialog/OwpDialog.d.ts +2 -0
- package/dist/types/components/OwpDialog/index.d.ts +1 -0
- package/dist/types/components/OwpTreeGrid/OwpTreeGrid.d.ts +2 -1
- package/dist/types/components/OwpTreeGrid/internal/treeGridRuntime.d.ts +6 -2
- package/dist/types/hooks/useConfirm.d.ts +7 -14
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemePreviewColorField.js","sources":["../../../../src/features/themePreview/components/ThemePreviewColorField.tsx"],"sourcesContent":["import {\n Box,\n Button,\n Divider,\n IconButton,\n InputAdornment,\n MenuItem,\n Popover,\n TextField,\n Typography,\n} from '@mui/material';\nimport RestartAltOutlinedIcon from '@mui/icons-material/RestartAltOutlined';\nimport {\n amber,\n blue,\n blueGrey,\n cyan,\n deepOrange,\n deepPurple,\n green,\n grey,\n indigo,\n lightBlue,\n orange,\n pink,\n purple,\n red,\n teal,\n} from '@mui/material/colors';\nimport type {\n ThemePreviewFieldDefinition,\n ThemePreviewSectionKey,\n ThemePreviewSettings,\n} from '../types';\nimport {\n applyColorPickerValue,\n getColorAlphaValue,\n getThemePreviewPaletteValue,\n toColorPickerValue,\n} from '../utils';\nimport { useEffect, useRef, useState } from 'react';\n\ninterface ThemePreviewColorFieldProps {\n disabled?: boolean;\n definition: ThemePreviewFieldDefinition;\n resetVersion?: number;\n sectionKey: ThemePreviewSectionKey;\n settings: ThemePreviewSettings;\n onChange: (path: string, value: string) => void;\n onReset?: (path: string) => void;\n}\n\nconst themePreviewInputUnits = {\n 'px-number': 'px',\n 'rem-number': 'rem',\n} as const;\n\ntype ThemePreviewInputUnit = (typeof themePreviewInputUnits)[keyof typeof themePreviewInputUnits];\n\nconst themePreviewMuiColorShades = [\n '50',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n 'A100',\n 'A200',\n 'A400',\n 'A700',\n] as const;\nconst themePreviewMuiColorPalettes = [\n ['Blue', blue],\n ['Light Blue', lightBlue],\n ['Cyan', cyan],\n ['Teal', teal],\n ['Green', green],\n ['Amber', amber],\n ['Orange', orange],\n ['Deep Orange', deepOrange],\n ['Red', red],\n ['Pink', pink],\n ['Purple', purple],\n ['Deep Purple', deepPurple],\n ['Indigo', indigo],\n ['Grey', grey],\n ['Blue Grey', blueGrey],\n] as const;\nconst themePreviewMuiPaletteColorRows = themePreviewMuiColorPalettes.map(([label, palette]) => ({\n label,\n colors: themePreviewMuiColorShades.reduce<Array<{\n key: string;\n shade: string;\n value: string;\n }>>((acc, shade) => {\n const paletteValue = (palette as Record<string, string>)[shade];\n\n if (!paletteValue) {\n return acc;\n }\n\n acc.push({\n key: `${label}-${shade}`,\n shade,\n value: paletteValue,\n });\n\n return acc;\n }, []),\n}));\nconst themePreviewMuiPaletteColorValueSet = new Set(\n themePreviewMuiPaletteColorRows.flatMap((paletteRow) =>\n paletteRow.colors.map((colorItem) => colorItem.value.toLowerCase()),\n ),\n);\nconst THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS = 500;\nconst THEME_PREVIEW_SMALL_FIELD_HEIGHT = 32;\nconst THEME_PREVIEW_PICKER_SWATCH_HEIGHT = 20;\n\nfunction getUnitInputDisplayValue(value: string, unit: ThemePreviewInputUnit) {\n return value.replace(new RegExp(`${unit}$`, 'i'), '');\n}\n\nfunction normalizeUnitInputDisplayValue(value: string) {\n const sanitizedValue = value.replace(/[^0-9.,]/g, '').replace(/,/g, '.');\n const decimalPointIndex = sanitizedValue.indexOf('.');\n\n if (decimalPointIndex < 0) {\n return sanitizedValue;\n }\n\n const integerPart = sanitizedValue.slice(0, decimalPointIndex);\n const decimalPart = sanitizedValue.slice(decimalPointIndex + 1).replace(/\\./g, '');\n\n return `${integerPart}.${decimalPart}`;\n}\n\nfunction normalizeCommittedUnitInputDisplayValue(value: string) {\n const normalizedValue = normalizeUnitInputDisplayValue(value);\n\n if (!normalizedValue || normalizedValue === '.') {\n return '';\n }\n\n if (normalizedValue.startsWith('.')) {\n return `0${normalizedValue}`;\n }\n\n if (normalizedValue.endsWith('.')) {\n return normalizedValue.slice(0, -1);\n }\n\n return normalizedValue;\n}\n\nfunction normalizeUnitInputValue(value: string, unit: ThemePreviewInputUnit) {\n const normalizedValue = normalizeCommittedUnitInputDisplayValue(value);\n\n return normalizedValue ? `${normalizedValue}${unit}` : '';\n}\n\nfunction getUnitValueFormat(valueFormat?: ThemePreviewFieldDefinition['valueFormat']) {\n return (valueFormat ? themePreviewInputUnits[valueFormat] : null) ?? null;\n}\n\nexport function ThemePreviewColorField({\n disabled = false,\n definition,\n resetVersion,\n sectionKey,\n settings,\n onChange,\n onReset,\n}: ThemePreviewColorFieldProps) {\n const [muiPaletteAnchorElement, setMuiPaletteAnchorElement] = useState<HTMLElement | null>(null);\n const muiPaletteContentRef = useRef<HTMLDivElement | null>(null);\n const value = getThemePreviewPaletteValue(settings, sectionKey, definition.path);\n const unitValueFormat = getUnitValueFormat(definition.valueFormat);\n const showColorPicker = definition.showColorPicker !== false;\n const alphaValue = definition.allowAlpha ? getColorAlphaValue(value) : null;\n const helperText = [definition.description];\n\n if (definition.allowAlpha) {\n helperText.push(\n alphaValue\n ? `알파값은 ${alphaValue}로 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.`\n : '알파값은 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.',\n );\n }\n\n const resolvedHelperText = helperText.filter(Boolean).join(' ');\n const hasOptions = Boolean(definition.options?.length);\n const isReadOnlyColorTextInput = Boolean(\n definition.allowAlpha && showColorPicker && !hasOptions && !unitValueFormat,\n );\n const displayValue =\n unitValueFormat ? getUnitInputDisplayValue(value, unitValueFormat) : value;\n const hasPickerControls = showColorPicker;\n const normalizedMuiPaletteValue = hasPickerControls ? toColorPickerValue(value).toLowerCase() : null;\n const matchedMuiPaletteValue =\n normalizedMuiPaletteValue && themePreviewMuiPaletteColorValueSet.has(normalizedMuiPaletteValue)\n ? normalizedMuiPaletteValue\n : null;\n const canBufferTextInput = !hasOptions && !isReadOnlyColorTextInput;\n const [bufferedTextValue, setBufferedTextValue] = useState(displayValue);\n const [isBufferedTextInputFocused, setIsBufferedTextInputFocused] = useState(false);\n const [bufferedPickerValue, setBufferedPickerValue] = useState(toColorPickerValue(value));\n const [isBufferedPickerDirty, setIsBufferedPickerDirty] = useState(false);\n const colorPickerApplyTimeoutRef = useRef<number | null>(null);\n const latestDisplayValueRef = useRef(displayValue);\n const latestValueRef = useRef(value);\n\n latestDisplayValueRef.current = displayValue;\n latestValueRef.current = value;\n\n useEffect(() => {\n if (!canBufferTextInput || isBufferedTextInputFocused) {\n return;\n }\n\n setBufferedTextValue(displayValue);\n }, [canBufferTextInput, displayValue, isBufferedTextInputFocused]);\n\n useEffect(() => {\n if (isBufferedPickerDirty) {\n return;\n }\n\n setBufferedPickerValue(toColorPickerValue(value));\n }, [isBufferedPickerDirty, value]);\n\n useEffect(() => {\n return () => {\n if (!colorPickerApplyTimeoutRef.current) {\n return;\n }\n\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n };\n }, []);\n\n useEffect(() => {\n if (!muiPaletteAnchorElement || !matchedMuiPaletteValue) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n const matchedColorButton = muiPaletteContentRef.current?.querySelector<HTMLElement>(\n `[data-mui-palette-value=\"${matchedMuiPaletteValue}\"]`,\n );\n\n matchedColorButton?.scrollIntoView({\n block: 'center',\n inline: 'nearest',\n });\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [matchedMuiPaletteValue, muiPaletteAnchorElement]);\n\n useEffect(() => {\n if (typeof resetVersion === 'undefined') {\n return;\n }\n\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n colorPickerApplyTimeoutRef.current = null;\n }\n\n setBufferedTextValue(latestDisplayValueRef.current);\n setIsBufferedTextInputFocused(false);\n setBufferedPickerValue(toColorPickerValue(latestValueRef.current));\n setIsBufferedPickerDirty(false);\n }, [resetVersion]);\n\n const commitBufferedTextValue = (nextValue: string) => {\n onChange(\n definition.path,\n unitValueFormat ? normalizeUnitInputValue(nextValue, unitValueFormat) : nextValue,\n );\n };\n const commitBufferedPickerValue = (nextPickerValue: string) => {\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n colorPickerApplyTimeoutRef.current = null;\n }\n\n setIsBufferedPickerDirty(false);\n onChange(definition.path, applyColorPickerValue(value, nextPickerValue));\n };\n const inputEndAdornment = onReset || unitValueFormat ? (\n <InputAdornment position=\"end\">\n <div className=\"flex items-center gap-6 pr-2\">\n {onReset ? (\n <IconButton\n size=\"small\"\n aria-label={`${definition.label} reset`}\n disabled={disabled}\n onMouseDown={(event) => {\n event.preventDefault();\n }}\n onClick={() => {\n onReset(definition.path);\n }}\n sx={{\n border: '1px solid #cbd5e1',\n borderRadius: 1,\n color: '#6b7280',\n p: 0.25,\n }}\n >\n <RestartAltOutlinedIcon sx={{ fontSize: 16 }} />\n </IconButton>\n ) : null}\n {unitValueFormat ? (\n <Typography variant=\"body2\" sx={{ whiteSpace: 'nowrap' }}>\n {unitValueFormat}\n </Typography>\n ) : null}\n </div>\n </InputAdornment>\n ) : undefined;\n\n return (\n <div className=\"grid grid-cols-[minmax(0,1fr)_144px] items-start gap-12\">\n <TextField\n select={hasOptions}\n label={definition.label}\n size=\"small\"\n value={canBufferTextInput ? bufferedTextValue : displayValue}\n disabled={disabled}\n onChange={(event) => {\n if (isReadOnlyColorTextInput) {\n return;\n }\n\n const nextValue = unitValueFormat\n ? normalizeUnitInputDisplayValue(event.target.value)\n : event.target.value;\n\n if (canBufferTextInput) {\n setBufferedTextValue(nextValue);\n return;\n }\n\n onChange(definition.path, nextValue);\n }}\n onFocus={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(true);\n }}\n onBlur={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n }}\n onKeyDown={(event) => {\n if (!canBufferTextInput || event.key !== 'Enter') {\n return;\n }\n\n event.preventDefault();\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n event.currentTarget.blur();\n }}\n helperText={resolvedHelperText}\n slotProps={{\n htmlInput:\n {\n ...(unitValueFormat\n ? {\n inputMode: 'decimal',\n }\n : {}),\n ...(isReadOnlyColorTextInput\n ? {\n readOnly: true,\n }\n : {}),\n },\n input:\n {\n ...(inputEndAdornment\n ? {\n endAdornment: inputEndAdornment,\n }\n : {}),\n },\n }}\n >\n {definition.options?.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n\n {hasPickerControls ? (\n <div className=\"grid grid-cols-2 gap-6\">\n <>\n <Button\n size=\"small\"\n fullWidth\n variant=\"outlined\"\n disabled={disabled}\n sx={{\n fontSize: '1.2rem',\n height: THEME_PREVIEW_SMALL_FIELD_HEIGHT,\n minWidth: 0,\n }}\n onClick={(event) => {\n setMuiPaletteAnchorElement(event.currentTarget);\n }}\n >\n MUI\n </Button>\n <TextField\n hiddenLabel\n type=\"color\"\n size=\"small\"\n value={bufferedPickerValue}\n disabled={disabled}\n onChange={(event) => {\n const nextPickerValue = event.target.value;\n\n setBufferedPickerValue(nextPickerValue);\n setIsBufferedPickerDirty(true);\n\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n }\n\n colorPickerApplyTimeoutRef.current = window.setTimeout(() => {\n commitBufferedPickerValue(nextPickerValue);\n }, THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS);\n }}\n onBlur={() => {\n if (!isBufferedPickerDirty) {\n return;\n }\n\n commitBufferedPickerValue(bufferedPickerValue);\n }}\n slotProps={{\n htmlInput: {\n 'aria-label': 'Pick color',\n },\n }}\n sx={{\n '& .MuiOutlinedInput-root': {\n height: THEME_PREVIEW_SMALL_FIELD_HEIGHT,\n px: 0.5,\n },\n '& input[type=\"color\"]': {\n WebkitAppearance: 'none',\n alignSelf: 'center',\n boxSizing: 'border-box',\n border: 0,\n borderRadius: 0,\n display: 'block',\n height: THEME_PREVIEW_PICKER_SWATCH_HEIGHT,\n minHeight: THEME_PREVIEW_PICKER_SWATCH_HEIGHT,\n overflow: 'hidden',\n padding: 0,\n p: 0,\n width: '100%',\n },\n '& input[type=\"color\"]::-webkit-color-swatch-wrapper': {\n borderRadius: 0,\n p: 0,\n },\n '& input[type=\"color\"]::-webkit-color-swatch': {\n borderColor: '#94a3b8',\n borderRadius: 0,\n },\n '& input[type=\"color\"]::-moz-color-swatch': {\n borderColor: '#94a3b8',\n borderRadius: 0,\n },\n }}\n />\n {muiPaletteAnchorElement ? (\n <Popover\n open\n anchorEl={muiPaletteAnchorElement}\n transitionDuration={0}\n onClose={() => {\n setMuiPaletteAnchorElement(null);\n }}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n slotProps={{\n paper: {\n sx: {\n maxHeight: 'calc(100vh - 32px)',\n maxWidth: 'calc(100vw - 32px)',\n minWidth: 320,\n overflow: 'auto',\n p: 1.5,\n width: 'min(760px, calc(100vw - 32px))',\n },\n },\n }}\n >\n <div ref={muiPaletteContentRef} className=\"flex min-w-0 flex-col gap-10\">\n {themePreviewMuiPaletteColorRows.map((paletteRow, paletteRowIndex) => (\n <Box key={paletteRow.label} className=\"flex flex-col gap-10\">\n {paletteRowIndex > 0 ? <Divider flexItem /> : null}\n <Box\n sx={{\n display: 'grid',\n gap: 1,\n gridTemplateColumns: {\n xs: 'minmax(0, 1fr)',\n sm: '84px minmax(0, 1fr)',\n },\n }}\n >\n <Typography variant=\"caption\" color=\"text.secondary\">\n {paletteRow.label}\n </Typography>\n <Box\n sx={{\n display: 'grid',\n gap: 0.75,\n gridTemplateColumns: 'repeat(auto-fit, minmax(68px, 1fr))',\n minWidth: 0,\n }}\n >\n {paletteRow.colors.map((colorItem) => {\n const isMatchedMuiPaletteColor =\n matchedMuiPaletteValue === colorItem.value.toLowerCase();\n\n return (\n <Box\n key={colorItem.key}\n component=\"button\"\n type=\"button\"\n data-mui-palette-value={colorItem.value.toLowerCase()}\n aria-current={isMatchedMuiPaletteColor ? 'true' : undefined}\n onClick={() => {\n onChange(\n definition.path,\n applyColorPickerValue(value, colorItem.value),\n );\n setMuiPaletteAnchorElement(null);\n }}\n sx={{\n alignItems: 'center',\n backgroundColor: isMatchedMuiPaletteColor\n ? 'action.selected'\n : 'background.paper',\n border: '1px solid',\n borderColor: isMatchedMuiPaletteColor ? 'primary.main' : 'divider',\n borderRadius: 1,\n boxShadow: isMatchedMuiPaletteColor\n ? (theme) => `0 0 0 1px ${theme.palette.primary.main}`\n : 'none',\n color: isMatchedMuiPaletteColor ? 'text.primary' : 'text.secondary',\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n gap: 0.5,\n justifyContent: 'center',\n minWidth: 0,\n p: 0.5,\n transition:\n 'background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease',\n width: '100%',\n '&:hover': {\n backgroundColor: 'action.hover',\n borderColor: isMatchedMuiPaletteColor\n ? 'primary.main'\n : 'text.secondary',\n },\n }}\n >\n <Box\n sx={{\n width: 30,\n height: 30,\n borderRadius: 1,\n backgroundColor: colorItem.value,\n border: '1px solid',\n borderColor: isMatchedMuiPaletteColor\n ? 'primary.main'\n : 'divider',\n }}\n />\n <Box\n component=\"span\"\n sx={{\n fontSize: '0.75rem',\n fontWeight: isMatchedMuiPaletteColor ? 700 : 600,\n lineHeight: 1,\n }}\n >\n {colorItem.shade}\n </Box>\n </Box>\n );\n })}\n </Box>\n </Box>\n </Box>\n ))}\n </div>\n </Popover>\n ) : null}\n </>\n {definition.allowAlpha ? (\n <div className=\"col-span-2 flex flex-col gap-2\">\n <Typography variant=\"caption\" color=\"text.secondary\">\n Current\n </Typography>\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n className=\"truncate whitespace-nowrap\"\n >\n {value || '-'}\n </Typography>\n </div>\n ) : null}\n </div>\n ) : (\n <div />\n )}\n </div>\n );\n}\n"],"names":["themePreviewInputUnits","themePreviewMuiColorShades","themePreviewMuiColorPalettes","blue","lightBlue","cyan","teal","green","amber","orange","deepOrange","red","pink","purple","deepPurple","indigo","grey","blueGrey","themePreviewMuiPaletteColorRows","label","palette","acc","shade","paletteValue","themePreviewMuiPaletteColorValueSet","paletteRow","colorItem","THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS","THEME_PREVIEW_SMALL_FIELD_HEIGHT","THEME_PREVIEW_PICKER_SWATCH_HEIGHT","getUnitInputDisplayValue","value","unit","__name","normalizeUnitInputDisplayValue","sanitizedValue","decimalPointIndex","integerPart","decimalPart","normalizeCommittedUnitInputDisplayValue","normalizedValue","normalizeUnitInputValue","getUnitValueFormat","valueFormat","ThemePreviewColorField","disabled","definition","resetVersion","sectionKey","settings","onChange","onReset","muiPaletteAnchorElement","setMuiPaletteAnchorElement","useState","muiPaletteContentRef","useRef","getThemePreviewPaletteValue","unitValueFormat","showColorPicker","alphaValue","getColorAlphaValue","helperText","resolvedHelperText","hasOptions","_a","isReadOnlyColorTextInput","displayValue","hasPickerControls","normalizedMuiPaletteValue","toColorPickerValue","matchedMuiPaletteValue","canBufferTextInput","bufferedTextValue","setBufferedTextValue","isBufferedTextInputFocused","setIsBufferedTextInputFocused","bufferedPickerValue","setBufferedPickerValue","isBufferedPickerDirty","setIsBufferedPickerDirty","colorPickerApplyTimeoutRef","latestDisplayValueRef","latestValueRef","useEffect","animationFrameId","matchedColorButton","commitBufferedTextValue","nextValue","commitBufferedPickerValue","nextPickerValue","applyColorPickerValue","inputEndAdornment","jsx","InputAdornment","jsxs","IconButton","event","RestartAltOutlinedIcon","Typography","TextField","_b","option","MenuItem","Fragment","Button","Popover","paletteRowIndex","Box","Divider","isMatchedMuiPaletteColor","theme"],"mappings":";;;;;;;;;AAoDA,MAAMA,KAAyB;AAAA,EAC7B,aAAa;AAAA,EACb,cAAc;AAChB,GAIMC,KAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACMC,KAA+B;AAAA,EACnC,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,cAAcC,EAAS;AAAA,EACxB,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,SAASC,EAAK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AA,oBAAA;AAAA,kBACH;AAAA,gBAAA;AAAA,cAAA;AAAA,YACF,KAjGQD,EAAW,KAkGrB,CACD,EAAA,CACH;AAAA,UAAA;AAAA,QAAA,IAEA;AAAA,MAAA,GACN;AAAA,MACCqB,EAAW,aACV,gBAAAiD,EAAC,OAAA,EAAI,WAAU,kCACb,UAAA;AAAA,QAAA,gBAAAF,EAACM,GAAA,EAAW,SAAQ,WAAU,OAAM,kBAAiB,UAAA,WAErD;AAAA,QACA,gBAAAN;AAAA,UAACM;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,OAAM;AAAA,YACN,WAAU;AAAA,YAET,UAAApE,KAAS;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ,EAAA,CACF,IACE;AAAA,IAAA,GACN,sBAEC,OAAA,CAAA,CAAI;AAAA,EAAA,GAET;AAEJ;AAjegBE,EAAAW,IAAA;"}
|
|
1
|
+
{"version":3,"file":"ThemePreviewColorField.js","sources":["../../../../src/features/themePreview/components/ThemePreviewColorField.tsx"],"sourcesContent":["import {\n Box,\n Button,\n Divider,\n IconButton,\n InputAdornment,\n MenuItem,\n Popover,\n TextField,\n Typography,\n} from '@mui/material';\nimport RestartAltOutlinedIcon from '@mui/icons-material/RestartAltOutlined';\nimport { owpDark, skyBlue } from '@/colors';\nimport {\n amber,\n blue,\n blueGrey,\n cyan,\n deepOrange,\n deepPurple,\n green,\n grey,\n indigo,\n lightBlue,\n orange,\n pink,\n purple,\n red,\n teal,\n} from '@mui/material/colors';\nimport type {\n ThemePreviewFieldDefinition,\n ThemePreviewSectionKey,\n ThemePreviewSettings,\n} from '../types';\nimport {\n applyColorPickerValue,\n getColorAlphaValue,\n getThemePreviewPaletteValue,\n toColorPickerValue,\n} from '../utils';\nimport { useEffect, useRef, useState } from 'react';\n\ninterface ThemePreviewColorFieldProps {\n disabled?: boolean;\n definition: ThemePreviewFieldDefinition;\n resetVersion?: number;\n sectionKey: ThemePreviewSectionKey;\n settings: ThemePreviewSettings;\n onChange: (path: string, value: string) => void;\n onReset?: (path: string) => void;\n}\n\nconst themePreviewInputUnits = {\n 'px-number': 'px',\n 'rem-number': 'rem',\n} as const;\n\ntype ThemePreviewInputUnit = (typeof themePreviewInputUnits)[keyof typeof themePreviewInputUnits];\n\nconst themePreviewMuiColorShades = [\n '50',\n '100',\n '200',\n '300',\n '400',\n '500',\n '600',\n '700',\n '800',\n '900',\n 'A100',\n 'A200',\n 'A400',\n 'A700',\n] as const;\nconst themePreviewMuiColorPalettes = [\n ['OWP Dark', owpDark],\n ['OWP Sky Blue', skyBlue],\n ['Blue', blue],\n ['Light Blue', lightBlue],\n ['Cyan', cyan],\n ['Teal', teal],\n ['Green', green],\n ['Amber', amber],\n ['Orange', orange],\n ['Deep Orange', deepOrange],\n ['Red', red],\n ['Pink', pink],\n ['Purple', purple],\n ['Deep Purple', deepPurple],\n ['Indigo', indigo],\n ['Grey', grey],\n ['Blue Grey', blueGrey],\n] as const;\nconst themePreviewMuiPaletteColorRows = themePreviewMuiColorPalettes.map(([label, palette]) => ({\n label,\n colors: themePreviewMuiColorShades.reduce<Array<{\n key: string;\n shade: string;\n value: string;\n }>>((acc, shade) => {\n const paletteValue = (palette as Record<string, string>)[shade];\n\n if (!paletteValue) {\n return acc;\n }\n\n acc.push({\n key: `${label}-${shade}`,\n shade,\n value: paletteValue,\n });\n\n return acc;\n }, []),\n}));\nconst themePreviewMuiPaletteColorValueSet = new Set(\n themePreviewMuiPaletteColorRows.flatMap((paletteRow) =>\n paletteRow.colors.map((colorItem) => colorItem.value.toLowerCase()),\n ),\n);\nconst THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS = 500;\nconst THEME_PREVIEW_SMALL_FIELD_HEIGHT = 32;\nconst THEME_PREVIEW_PICKER_SWATCH_HEIGHT = 20;\n\nfunction getUnitInputDisplayValue(value: string, unit: ThemePreviewInputUnit) {\n return value.replace(new RegExp(`${unit}$`, 'i'), '');\n}\n\nfunction normalizeUnitInputDisplayValue(value: string) {\n const sanitizedValue = value.replace(/[^0-9.,]/g, '').replace(/,/g, '.');\n const decimalPointIndex = sanitizedValue.indexOf('.');\n\n if (decimalPointIndex < 0) {\n return sanitizedValue;\n }\n\n const integerPart = sanitizedValue.slice(0, decimalPointIndex);\n const decimalPart = sanitizedValue.slice(decimalPointIndex + 1).replace(/\\./g, '');\n\n return `${integerPart}.${decimalPart}`;\n}\n\nfunction normalizeCommittedUnitInputDisplayValue(value: string) {\n const normalizedValue = normalizeUnitInputDisplayValue(value);\n\n if (!normalizedValue || normalizedValue === '.') {\n return '';\n }\n\n if (normalizedValue.startsWith('.')) {\n return `0${normalizedValue}`;\n }\n\n if (normalizedValue.endsWith('.')) {\n return normalizedValue.slice(0, -1);\n }\n\n return normalizedValue;\n}\n\nfunction normalizeUnitInputValue(value: string, unit: ThemePreviewInputUnit) {\n const normalizedValue = normalizeCommittedUnitInputDisplayValue(value);\n\n return normalizedValue ? `${normalizedValue}${unit}` : '';\n}\n\nfunction getUnitValueFormat(valueFormat?: ThemePreviewFieldDefinition['valueFormat']) {\n return (valueFormat ? themePreviewInputUnits[valueFormat] : null) ?? null;\n}\n\nexport function ThemePreviewColorField({\n disabled = false,\n definition,\n resetVersion,\n sectionKey,\n settings,\n onChange,\n onReset,\n}: ThemePreviewColorFieldProps) {\n const [muiPaletteAnchorElement, setMuiPaletteAnchorElement] = useState<HTMLElement | null>(null);\n const muiPaletteContentRef = useRef<HTMLDivElement | null>(null);\n const value = getThemePreviewPaletteValue(settings, sectionKey, definition.path);\n const unitValueFormat = getUnitValueFormat(definition.valueFormat);\n const showColorPicker = definition.showColorPicker !== false;\n const alphaValue = definition.allowAlpha ? getColorAlphaValue(value) : null;\n const helperText = [definition.description];\n\n if (definition.allowAlpha) {\n helperText.push(\n alphaValue\n ? `알파값은 ${alphaValue}로 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.`\n : '알파값은 고정되고 색상만 변경됩니다. Pick 또는 MUI로 색상만 변경할 수 있습니다.',\n );\n }\n\n const resolvedHelperText = helperText.filter(Boolean).join(' ');\n const hasOptions = Boolean(definition.options?.length);\n const isReadOnlyColorTextInput = Boolean(\n definition.allowAlpha && showColorPicker && !hasOptions && !unitValueFormat,\n );\n const displayValue =\n unitValueFormat ? getUnitInputDisplayValue(value, unitValueFormat) : value;\n const hasPickerControls = showColorPicker;\n const normalizedMuiPaletteValue = hasPickerControls ? toColorPickerValue(value).toLowerCase() : null;\n const matchedMuiPaletteValue =\n normalizedMuiPaletteValue && themePreviewMuiPaletteColorValueSet.has(normalizedMuiPaletteValue)\n ? normalizedMuiPaletteValue\n : null;\n const canBufferTextInput = !hasOptions && !isReadOnlyColorTextInput;\n const [bufferedTextValue, setBufferedTextValue] = useState(displayValue);\n const [isBufferedTextInputFocused, setIsBufferedTextInputFocused] = useState(false);\n const [bufferedPickerValue, setBufferedPickerValue] = useState(toColorPickerValue(value));\n const [isBufferedPickerDirty, setIsBufferedPickerDirty] = useState(false);\n const colorPickerApplyTimeoutRef = useRef<number | null>(null);\n const latestDisplayValueRef = useRef(displayValue);\n const latestValueRef = useRef(value);\n\n latestDisplayValueRef.current = displayValue;\n latestValueRef.current = value;\n\n useEffect(() => {\n if (!canBufferTextInput || isBufferedTextInputFocused) {\n return;\n }\n\n setBufferedTextValue(displayValue);\n }, [canBufferTextInput, displayValue, isBufferedTextInputFocused]);\n\n useEffect(() => {\n if (isBufferedPickerDirty) {\n return;\n }\n\n setBufferedPickerValue(toColorPickerValue(value));\n }, [isBufferedPickerDirty, value]);\n\n useEffect(() => {\n return () => {\n if (!colorPickerApplyTimeoutRef.current) {\n return;\n }\n\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n };\n }, []);\n\n useEffect(() => {\n if (!muiPaletteAnchorElement || !matchedMuiPaletteValue) {\n return;\n }\n\n const animationFrameId = window.requestAnimationFrame(() => {\n const matchedColorButton = muiPaletteContentRef.current?.querySelector<HTMLElement>(\n `[data-mui-palette-value=\"${matchedMuiPaletteValue}\"]`,\n );\n\n matchedColorButton?.scrollIntoView({\n block: 'center',\n inline: 'nearest',\n });\n });\n\n return () => {\n window.cancelAnimationFrame(animationFrameId);\n };\n }, [matchedMuiPaletteValue, muiPaletteAnchorElement]);\n\n useEffect(() => {\n if (typeof resetVersion === 'undefined') {\n return;\n }\n\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n colorPickerApplyTimeoutRef.current = null;\n }\n\n setBufferedTextValue(latestDisplayValueRef.current);\n setIsBufferedTextInputFocused(false);\n setBufferedPickerValue(toColorPickerValue(latestValueRef.current));\n setIsBufferedPickerDirty(false);\n }, [resetVersion]);\n\n const commitBufferedTextValue = (nextValue: string) => {\n onChange(\n definition.path,\n unitValueFormat ? normalizeUnitInputValue(nextValue, unitValueFormat) : nextValue,\n );\n };\n const commitBufferedPickerValue = (nextPickerValue: string) => {\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n colorPickerApplyTimeoutRef.current = null;\n }\n\n setIsBufferedPickerDirty(false);\n onChange(definition.path, applyColorPickerValue(value, nextPickerValue));\n };\n const inputEndAdornment = onReset || unitValueFormat ? (\n <InputAdornment position=\"end\">\n <div className=\"flex items-center gap-6 pr-2\">\n {onReset ? (\n <IconButton\n size=\"small\"\n aria-label={`${definition.label} reset`}\n disabled={disabled}\n onMouseDown={(event) => {\n event.preventDefault();\n }}\n onClick={() => {\n onReset(definition.path);\n }}\n sx={{\n border: '1px solid #cbd5e1',\n borderRadius: 1,\n color: '#6b7280',\n p: 0.25,\n }}\n >\n <RestartAltOutlinedIcon sx={{ fontSize: 16 }} />\n </IconButton>\n ) : null}\n {unitValueFormat ? (\n <Typography variant=\"body2\" sx={{ whiteSpace: 'nowrap' }}>\n {unitValueFormat}\n </Typography>\n ) : null}\n </div>\n </InputAdornment>\n ) : undefined;\n\n return (\n <div className=\"grid grid-cols-[minmax(0,1fr)_144px] items-start gap-12\">\n <TextField\n select={hasOptions}\n label={definition.label}\n size=\"small\"\n value={canBufferTextInput ? bufferedTextValue : displayValue}\n disabled={disabled}\n onChange={(event) => {\n if (isReadOnlyColorTextInput) {\n return;\n }\n\n const nextValue = unitValueFormat\n ? normalizeUnitInputDisplayValue(event.target.value)\n : event.target.value;\n\n if (canBufferTextInput) {\n setBufferedTextValue(nextValue);\n return;\n }\n\n onChange(definition.path, nextValue);\n }}\n onFocus={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(true);\n }}\n onBlur={() => {\n if (!canBufferTextInput) {\n return;\n }\n\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n }}\n onKeyDown={(event) => {\n if (!canBufferTextInput || event.key !== 'Enter') {\n return;\n }\n\n event.preventDefault();\n setIsBufferedTextInputFocused(false);\n commitBufferedTextValue(bufferedTextValue);\n event.currentTarget.blur();\n }}\n helperText={resolvedHelperText}\n slotProps={{\n htmlInput:\n {\n ...(unitValueFormat\n ? {\n inputMode: 'decimal',\n }\n : {}),\n ...(isReadOnlyColorTextInput\n ? {\n readOnly: true,\n }\n : {}),\n },\n input:\n {\n ...(inputEndAdornment\n ? {\n endAdornment: inputEndAdornment,\n }\n : {}),\n },\n }}\n >\n {definition.options?.map((option) => (\n <MenuItem key={option.value} value={option.value}>\n {option.label}\n </MenuItem>\n ))}\n </TextField>\n\n {hasPickerControls ? (\n <div className=\"grid grid-cols-2 gap-6\">\n <>\n <Button\n size=\"small\"\n fullWidth\n variant=\"outlined\"\n disabled={disabled}\n sx={{\n fontSize: '1.2rem',\n height: THEME_PREVIEW_SMALL_FIELD_HEIGHT,\n minWidth: 0,\n }}\n onClick={(event) => {\n setMuiPaletteAnchorElement(event.currentTarget);\n }}\n >\n MUI\n </Button>\n <TextField\n hiddenLabel\n type=\"color\"\n size=\"small\"\n value={bufferedPickerValue}\n disabled={disabled}\n onChange={(event) => {\n const nextPickerValue = event.target.value;\n\n setBufferedPickerValue(nextPickerValue);\n setIsBufferedPickerDirty(true);\n\n if (colorPickerApplyTimeoutRef.current) {\n window.clearTimeout(colorPickerApplyTimeoutRef.current);\n }\n\n colorPickerApplyTimeoutRef.current = window.setTimeout(() => {\n commitBufferedPickerValue(nextPickerValue);\n }, THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS);\n }}\n onBlur={() => {\n if (!isBufferedPickerDirty) {\n return;\n }\n\n commitBufferedPickerValue(bufferedPickerValue);\n }}\n slotProps={{\n htmlInput: {\n 'aria-label': 'Pick color',\n },\n }}\n sx={{\n '& .MuiOutlinedInput-root': {\n height: THEME_PREVIEW_SMALL_FIELD_HEIGHT,\n px: 0.5,\n },\n '& input[type=\"color\"]': {\n WebkitAppearance: 'none',\n alignSelf: 'center',\n boxSizing: 'border-box',\n border: 0,\n borderRadius: 0,\n display: 'block',\n height: THEME_PREVIEW_PICKER_SWATCH_HEIGHT,\n minHeight: THEME_PREVIEW_PICKER_SWATCH_HEIGHT,\n overflow: 'hidden',\n padding: 0,\n p: 0,\n width: '100%',\n },\n '& input[type=\"color\"]::-webkit-color-swatch-wrapper': {\n borderRadius: 0,\n p: 0,\n },\n '& input[type=\"color\"]::-webkit-color-swatch': {\n borderColor: '#94a3b8',\n borderRadius: 0,\n },\n '& input[type=\"color\"]::-moz-color-swatch': {\n borderColor: '#94a3b8',\n borderRadius: 0,\n },\n }}\n />\n {muiPaletteAnchorElement ? (\n <Popover\n open\n anchorEl={muiPaletteAnchorElement}\n transitionDuration={0}\n onClose={() => {\n setMuiPaletteAnchorElement(null);\n }}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'left',\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'left',\n }}\n slotProps={{\n paper: {\n sx: {\n maxHeight: 'calc(100vh - 32px)',\n maxWidth: 'calc(100vw - 32px)',\n minWidth: 320,\n overflow: 'auto',\n p: 1.5,\n width: 'min(760px, calc(100vw - 32px))',\n },\n },\n }}\n >\n <div ref={muiPaletteContentRef} className=\"flex min-w-0 flex-col gap-10\">\n {themePreviewMuiPaletteColorRows.map((paletteRow, paletteRowIndex) => (\n <Box key={paletteRow.label} className=\"flex flex-col gap-10\">\n {paletteRowIndex > 0 ? <Divider flexItem /> : null}\n <Box\n sx={{\n display: 'grid',\n gap: 1,\n gridTemplateColumns: {\n xs: 'minmax(0, 1fr)',\n sm: '84px minmax(0, 1fr)',\n },\n }}\n >\n <Typography variant=\"caption\" color=\"text.secondary\">\n {paletteRow.label}\n </Typography>\n <Box\n sx={{\n display: 'grid',\n gap: 0.75,\n gridTemplateColumns: 'repeat(auto-fit, minmax(68px, 1fr))',\n minWidth: 0,\n }}\n >\n {paletteRow.colors.map((colorItem) => {\n const isMatchedMuiPaletteColor =\n matchedMuiPaletteValue === colorItem.value.toLowerCase();\n\n return (\n <Box\n key={colorItem.key}\n component=\"button\"\n type=\"button\"\n data-mui-palette-value={colorItem.value.toLowerCase()}\n aria-current={isMatchedMuiPaletteColor ? 'true' : undefined}\n onClick={() => {\n onChange(\n definition.path,\n applyColorPickerValue(value, colorItem.value),\n );\n setMuiPaletteAnchorElement(null);\n }}\n sx={{\n alignItems: 'center',\n backgroundColor: isMatchedMuiPaletteColor\n ? 'action.selected'\n : 'background.paper',\n border: '1px solid',\n borderColor: isMatchedMuiPaletteColor ? 'primary.main' : 'divider',\n borderRadius: 1,\n boxShadow: isMatchedMuiPaletteColor\n ? (theme) => `0 0 0 1px ${theme.palette.primary.main}`\n : 'none',\n color: isMatchedMuiPaletteColor ? 'text.primary' : 'text.secondary',\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'column',\n gap: 0.5,\n justifyContent: 'center',\n minWidth: 0,\n p: 0.5,\n transition:\n 'background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease',\n width: '100%',\n '&:hover': {\n backgroundColor: 'action.hover',\n borderColor: isMatchedMuiPaletteColor\n ? 'primary.main'\n : 'text.secondary',\n },\n }}\n >\n <Box\n sx={{\n width: 30,\n height: 30,\n borderRadius: 1,\n backgroundColor: colorItem.value,\n border: '1px solid',\n borderColor: isMatchedMuiPaletteColor\n ? 'primary.main'\n : 'divider',\n }}\n />\n <Box\n component=\"span\"\n sx={{\n fontSize: '0.75rem',\n fontWeight: isMatchedMuiPaletteColor ? 700 : 600,\n lineHeight: 1,\n }}\n >\n {colorItem.shade}\n </Box>\n </Box>\n );\n })}\n </Box>\n </Box>\n </Box>\n ))}\n </div>\n </Popover>\n ) : null}\n </>\n {definition.allowAlpha ? (\n <div className=\"col-span-2 flex flex-col gap-2\">\n <Typography variant=\"caption\" color=\"text.secondary\">\n Current\n </Typography>\n <Typography\n variant=\"caption\"\n color=\"text.secondary\"\n className=\"truncate whitespace-nowrap\"\n >\n {value || '-'}\n </Typography>\n </div>\n ) : null}\n </div>\n ) : (\n <div />\n )}\n </div>\n );\n}\n"],"names":["themePreviewInputUnits","themePreviewMuiColorShades","themePreviewMuiColorPalettes","owpDark","skyBlue","blue","lightBlue","cyan","teal","green","amber","orange","deepOrange","red","pink","purple","deepPurple","indigo","grey","blueGrey","themePreviewMuiPaletteColorRows","label","palette","acc","shade","paletteValue","themePreviewMuiPaletteColorValueSet","paletteRow","colorItem","THEME_PREVIEW_COLOR_PICKER_APPLY_DELAY_MS","THEME_PREVIEW_SMALL_FIELD_HEIGHT","THEME_PREVIEW_PICKER_SWATCH_HEIGHT","getUnitInputDisplayValue","value","unit","__name","normalizeUnitInputDisplayValue","sanitizedValue","decimalPointIndex","integerPart","decimalPart","normalizeCommittedUnitInputDisplayValue","normalizedValue","normalizeUnitInputValue","getUnitValueFormat","valueFormat","ThemePreviewColorField","disabled","definition","resetVersion","sectionKey","settings","onChange","onReset","muiPaletteAnchorElement","setMuiPaletteAnchorElement","useState","muiPaletteContentRef","useRef","getThemePreviewPaletteValue","unitValueFormat","showColorPicker","alphaValue","getColorAlphaValue","helperText","resolvedHelperText","hasOptions","_a","isReadOnlyColorTextInput","displayValue","hasPickerControls","normalizedMuiPaletteValue","toColorPickerValue","matchedMuiPaletteValue","canBufferTextInput","bufferedTextValue","setBufferedTextValue","isBufferedTextInputFocused","setIsBufferedTextInputFocused","bufferedPickerValue","setBufferedPickerValue","isBufferedPickerDirty","setIsBufferedPickerDirty","colorPickerApplyTimeoutRef","latestDisplayValueRef","latestValueRef","useEffect","animationFrameId","matchedColorButton","commitBufferedTextValue","nextValue","commitBufferedPickerValue","nextPickerValue","applyColorPickerValue","inputEndAdornment","jsx","InputAdornment","jsxs","IconButton","event","RestartAltOutlinedIcon","Typography","TextField","_b","option","MenuItem","Fragment","Button","Popover","paletteRowIndex","Box","Divider","isMatchedMuiPaletteColor","theme"],"mappings":";;;;;;;;;;;AAqDA,MAAMA,KAAyB;AAAA,EAC7B,aAAa;AAAA,EACb,cAAc;AAChB,GAIMC,KAA6B;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GACMC,KAA+B;AAAA,EACnC,CAAC,YAAYC,EAAO;AAAA,EACpB,CAAC,gBAAgBC,EAAO;AAAA,EACxB,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,cAAcC,EAAS;AAAA,EACxB,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,SAASC,EAAK;AAAA,EACf,CAAC,SAASC,EAAK;AAAA,EACf,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,eAAeC,EAAU;AAAA,EAC1B,CAAC,OAAOC,EAAG;AAAA,EACX,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,eAAeC,EAAU;AAAA,EAC1B,CAAC,UAAUC,EAAM;AAAA,EACjB,CAAC,QAAQC,EAAI;AAAA,EACb,CAAC,aAAaC,EAAQ;AACxB,GACMC,KAAkClB,GAA6B,IAAI,CAAC,CAACmB,GAAOC,CA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AM;AAAA,YACN,WAAU;AAAA,YAET,UAAApE,KAAS;AAAA,UAAA;AAAA,QAAA;AAAA,MACZ,EAAA,CACF,IACE;AAAA,IAAA,GACN,sBAEC,OAAA,CAAA,CAAI;AAAA,EAAA,GAET;AAEJ;AAjegBE,EAAAW,IAAA;"}
|
package/dist/hooks/useConfirm.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var n = (t, e) =>
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const i = {
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var n = (t, e) => f(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { useOwpTranslation as m } from "./useOwpTranslation.js";
|
|
4
|
+
import { useDialogs as p } from "@toolpad/core/useDialogs";
|
|
5
|
+
import { OwpAlertDialog as T } from "../components/OwpDialog/OwpAlertDialog.js";
|
|
6
|
+
const s = {
|
|
8
7
|
infoTitle: {
|
|
9
8
|
key: "Message.처리하시겠습니까",
|
|
10
9
|
defaultValue: "처리하시겠습니까?"
|
|
@@ -29,77 +28,68 @@ const i = {
|
|
|
29
28
|
},
|
|
30
29
|
deleteOk: {
|
|
31
30
|
key: "Button.삭제"
|
|
32
|
-
},
|
|
33
|
-
cancel: {
|
|
34
|
-
key: "Button.취소"
|
|
35
31
|
}
|
|
36
|
-
},
|
|
32
|
+
}, i = /* @__PURE__ */ n((t, { key: e, defaultValue: r }) => r ? t(e, { defaultValue: r }) : t(e), "translateConfirmText"), c = /* @__PURE__ */ n((t, e) => t ? {
|
|
37
33
|
color: t,
|
|
38
34
|
...e
|
|
39
|
-
} : e, "mergeOkButtonProps"),
|
|
40
|
-
const t =
|
|
35
|
+
} : e, "mergeOkButtonProps"), B = /* @__PURE__ */ n(() => {
|
|
36
|
+
const t = p(), { t: e } = m(), r = /* @__PURE__ */ n((o) => t.open(T, o), "confirmBase");
|
|
41
37
|
return {
|
|
42
|
-
confirm:
|
|
43
|
-
confirmInfo: /* @__PURE__ */ n(async ({
|
|
44
|
-
title:
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
confirm: r,
|
|
39
|
+
confirmInfo: /* @__PURE__ */ n(async ({
|
|
40
|
+
title: o,
|
|
41
|
+
description: a,
|
|
42
|
+
okText: k,
|
|
43
|
+
severity: u
|
|
44
|
+
} = {}) => r({
|
|
45
|
+
title: o ?? i(e, s.infoTitle),
|
|
46
|
+
description: a,
|
|
47
|
+
okText: k ?? i(e, s.infoOk),
|
|
48
|
+
severity: u ?? "primary",
|
|
47
49
|
useInfo: !0
|
|
48
50
|
}), "confirmInfo"),
|
|
49
51
|
confirmSave: /* @__PURE__ */ n(async ({
|
|
50
|
-
title:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
title: o,
|
|
53
|
+
description: a,
|
|
54
|
+
okText: k,
|
|
55
|
+
cancelText: u,
|
|
56
|
+
okButtonProps: l
|
|
57
|
+
} = {}) => r({
|
|
58
|
+
title: o ?? i(e, s.saveTitle),
|
|
59
|
+
description: a,
|
|
60
|
+
okText: k ?? i(e, s.saveOk),
|
|
61
|
+
cancelText: u,
|
|
62
|
+
okButtonProps: c("secondary", l)
|
|
59
63
|
}), "confirmSave"),
|
|
60
64
|
confirmUpdate: /* @__PURE__ */ n(async ({
|
|
61
|
-
title:
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
65
|
+
title: o,
|
|
66
|
+
description: a,
|
|
67
|
+
okText: k,
|
|
68
|
+
cancelText: u,
|
|
69
|
+
okButtonProps: l
|
|
70
|
+
} = {}) => r({
|
|
71
|
+
title: o ?? i(e, s.updateTitle),
|
|
72
|
+
description: a,
|
|
73
|
+
okText: k ?? i(e, s.updateOk),
|
|
74
|
+
cancelText: u,
|
|
75
|
+
okButtonProps: c("secondary", l)
|
|
70
76
|
}), "confirmUpdate"),
|
|
71
77
|
confirmDelete: /* @__PURE__ */ n(async ({
|
|
72
|
-
title:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
title: o,
|
|
79
|
+
description: a,
|
|
80
|
+
okText: k,
|
|
81
|
+
cancelText: u,
|
|
82
|
+
okButtonProps: l
|
|
83
|
+
} = {}) => r({
|
|
84
|
+
title: o ?? i(e, s.deleteTitle),
|
|
85
|
+
description: a,
|
|
86
|
+
okText: k ?? i(e, s.deleteOk),
|
|
87
|
+
cancelText: u,
|
|
88
|
+
okButtonProps: c("error", l)
|
|
81
89
|
}), "confirmDelete")
|
|
82
90
|
};
|
|
83
|
-
}, "useConfirm")
|
|
84
|
-
const { title: r, okButtonProps: c, cancelButtonProps: l, severity: u, useInfo: O } = t, { t: f } = x(), g = (t == null ? void 0 : t.okText) ?? s(f, i.infoOk), B = (t == null ? void 0 : t.cancelText) ?? s(f, i.cancel);
|
|
85
|
-
return /* @__PURE__ */ m(y, { fullWidth: !0, maxWidth: "xs", open: e, onClose: /* @__PURE__ */ n(() => o(!1), "onClose"), children: [
|
|
86
|
-
/* @__PURE__ */ k(h, { children: /* @__PURE__ */ k(p, { className: "mb-12", variant: "h6", children: r }) }),
|
|
87
|
-
/* @__PURE__ */ m(v, { children: [
|
|
88
|
-
!O && /* @__PURE__ */ k(T, { ...l, variant: "outlined", onClick: /* @__PURE__ */ n(() => o(!1), "onClick"), children: B }),
|
|
89
|
-
/* @__PURE__ */ k(
|
|
90
|
-
T,
|
|
91
|
-
{
|
|
92
|
-
color: u || "primary",
|
|
93
|
-
variant: "contained",
|
|
94
|
-
...c,
|
|
95
|
-
onClick: /* @__PURE__ */ n(() => o(!0), "onClick"),
|
|
96
|
-
children: g
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
] })
|
|
100
|
-
] });
|
|
101
|
-
}, "ConfirmDialog");
|
|
91
|
+
}, "useConfirm");
|
|
102
92
|
export {
|
|
103
|
-
|
|
93
|
+
B as useConfirm
|
|
104
94
|
};
|
|
105
95
|
//# sourceMappingURL=useConfirm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConfirm.js","sources":["../../src/hooks/useConfirm.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"useConfirm.js","sources":["../../src/hooks/useConfirm.tsx"],"sourcesContent":["import { OwpAlertDialog } from '@/components/OwpDialog';\nimport { useOwpTranslation } from '@/hooks/useOwpTranslation';\nimport type { OwpAlertDialogPayload } from '@/components/OwpDialog';\nimport type { ButtonProps } from '@mui/material';\nimport { useDialogs } from '@toolpad/core/useDialogs';\n\nexport interface ConfirmProps extends Omit<OwpAlertDialogPayload, 'cancelButtonProps'> {\n onClose?: (result: boolean) => Promise<void>;\n}\ninterface ConfirmBaseProps extends ConfirmProps {\n cancelButtonProps?: ButtonProps;\n}\n\ninterface ConfirmTranslationConfig {\n key: string;\n defaultValue?: string;\n}\n\n/**\n * 확인 대화상자 번역 설정\n */\nconst CONFIRM_TRANSLATIONS = {\n infoTitle: {\n key: 'Message.처리하시겠습니까',\n defaultValue: '처리하시겠습니까?',\n },\n infoOk: {\n key: 'Button.확인',\n },\n saveTitle: {\n key: 'Message.저장하시겠습니까?',\n },\n saveOk: {\n key: 'Button.저장',\n },\n updateTitle: {\n key: 'Message.수정하시겠습니까?',\n },\n updateOk: {\n key: 'Button.수정',\n },\n deleteTitle: {\n key: 'Message.삭제하시겠습니까?',\n },\n deleteOk: {\n key: 'Button.삭제',\n },\n cancel: {\n key: 'Button.취소',\n },\n} as const;\n\nconst translateConfirmText = (\n translate: (key: string, options?: { defaultValue?: string }) => string,\n { key, defaultValue }: ConfirmTranslationConfig,\n) => (defaultValue ? translate(key, { defaultValue }) : translate(key));\n\n/**\n * 확인 버튼 속성 병합\n * @param defaultColor 기본 버튼 색상\n * @param okButtonProps 사용자 버튼 속성\n */\nconst mergeOkButtonProps = (\n defaultColor: ButtonProps['color'] | undefined,\n okButtonProps?: ButtonProps,\n) => {\n if (!defaultColor) {\n return okButtonProps;\n }\n\n return {\n color: defaultColor,\n ...okButtonProps,\n } as ButtonProps;\n};\n/**\n * 확인 대화상자 훅\n */\nexport const useConfirm = () => {\n const dialogs = useDialogs();\n const { t } = useOwpTranslation();\n\n const confirmBase = (props: ConfirmBaseProps) => dialogs.open(OwpAlertDialog, props);\n\n return {\n confirm: confirmBase,\n confirmInfo: async ({\n title,\n description,\n okText,\n severity,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.infoTitle),\n description,\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.infoOk),\n severity: severity ?? 'primary',\n useInfo: true,\n });\n },\n confirmSave: async ({\n title,\n description,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.saveTitle),\n description,\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.saveOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('secondary', okButtonProps),\n });\n },\n confirmUpdate: async ({\n title,\n description,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.updateTitle),\n description,\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.updateOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('secondary', okButtonProps),\n });\n },\n confirmDelete: async ({\n title,\n description,\n okText,\n cancelText,\n okButtonProps,\n }: ConfirmProps | undefined = {}) => {\n return confirmBase({\n title: title ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.deleteTitle),\n description,\n okText: okText ?? translateConfirmText(t, CONFIRM_TRANSLATIONS.deleteOk),\n cancelText,\n okButtonProps: mergeOkButtonProps('error', okButtonProps),\n });\n },\n };\n};\n"],"names":["CONFIRM_TRANSLATIONS","translateConfirmText","__name","translate","key","defaultValue","mergeOkButtonProps","defaultColor","okButtonProps","useConfirm","dialogs","useDialogs","t","useOwpTranslation","confirmBase","props","OwpAlertDialog","title","description","okText","severity","cancelText"],"mappings":";;;;;AAqBA,MAAMA,IAAuB;AAAA,EAC3B,WAAW;AAAA,IACT,KAAK;AAAA,IACL,cAAc;AAAA,EAAA;AAAA,EAEhB,QAAQ;AAAA,IACN,KAAK;AAAA,EAAA;AAAA,EAEP,WAAW;AAAA,IACT,KAAK;AAAA,EAAA;AAAA,EAEP,QAAQ;AAAA,IACN,KAAK;AAAA,EAAA;AAAA,EAEP,aAAa;AAAA,IACX,KAAK;AAAA,EAAA;AAAA,EAEP,UAAU;AAAA,IACR,KAAK;AAAA,EAAA;AAAA,EAEP,aAAa;AAAA,IACX,KAAK;AAAA,EAAA;AAAA,EAEP,UAAU;AAAA,IACR,KAAK;AAAA,EAAA;AAKT,GAEMC,IAAuB,gBAAAC,EAAA,CAC3BC,GACA,EAAE,KAAAC,GAAK,cAAAC,EAAA,MACHA,IAAeF,EAAUC,GAAK,EAAE,cAAAC,EAAA,CAAc,IAAIF,EAAUC,CAAG,GAHxC,yBAUvBE,IAAqB,gBAAAJ,EAAA,CACzBK,GACAC,MAEKD,IAIE;AAAA,EACL,OAAOA;AAAA,EACP,GAAGC;AAAA,IALIA,GALgB,uBAgBdC,IAAa,gBAAAP,EAAA,MAAM;AAC9B,QAAMQ,IAAUC,EAAA,GACV,EAAE,GAAAC,EAAA,IAAMC,EAAA,GAERC,IAAc,gBAAAZ,EAAA,CAACa,MAA4BL,EAAQ,KAAKM,GAAgBD,CAAK,GAA/D;AAEpB,SAAO;AAAA,IACL,SAASD;AAAA,IACT,aAAa,gBAAAZ,EAAA,OAAO;AAAA,MAClB,OAAAe;AAAA,MACA,aAAAC;AAAA,MACA,QAA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;AAAA,MACxE,aAAAkB;AAAA,MACA,QAAQC,KAAUlB,EAAqBW,GAAGZ,EAAqB,QAAQ;AAAA,MACvE,YAAAqB;AAAA,MACA,eAAef,EAAmB,SAASE,CAAa;AAAA,IAAA,CACzD,GAbY;AAAA,EAcf;AAEJ,GApE0B;"}
|
package/dist/index.js
CHANGED
|
@@ -5,13 +5,13 @@ import { OwpAutoLogoutDialog as c } from "./components/OwpAutoLogoutDialog/OwpAu
|
|
|
5
5
|
import { OwpBarcodeInputField as s } from "./components/OwpBarcodeInput/OwpBarcodeInputField.js";
|
|
6
6
|
import { OwpExportDataToExcelButton as P } from "./components/OwpExportExcelButton/OwpExportExcelButton.js";
|
|
7
7
|
import { OwpFilePickerButton as h } from "./components/OwpFilePickerButton/OwpFilePickerButton.js";
|
|
8
|
-
import { OwpMoreActionsButton as
|
|
8
|
+
import { OwpMoreActionsButton as D } from "./components/OwpMoreActionsButton/OwpMoreActionsButton.js";
|
|
9
9
|
import { OwpDatePicker as B } from "./components/OwpPicker/OwpDatePicker.js";
|
|
10
10
|
import { OwpDateRangePicker as L } from "./components/OwpPicker/OwpDateRangePicker.js";
|
|
11
11
|
import { OwpTimePicker as G } from "./components/OwpPicker/OwpTimePicker.js";
|
|
12
12
|
import { OwpWeekDatePicker as v } from "./components/OwpPicker/OwpWeekDatePicker.js";
|
|
13
13
|
import { OwpYearRangePicker as M } from "./components/OwpPicker/OwpYearRangePicker.js";
|
|
14
|
-
import { OwpDataTable as
|
|
14
|
+
import { OwpDataTable as A } from "./components/OwpTable/OwpDataTable.js";
|
|
15
15
|
import { OwpTable as N, OwpTableTotalCount as W, StyledTable as Y, StyledTableRow as q } from "./components/OwpTable/OwpTable.js";
|
|
16
16
|
import { OwpFieldTable as j } from "./components/OwpTable/OwpFieldTable.js";
|
|
17
17
|
import { OwpTextMaskField as J } from "./components/OwpTextField/OwpTextMaskField.js";
|
|
@@ -21,94 +21,96 @@ import { default as $ } from "./components/OwpPageBreadcrumb/OwpPageBreadcrumb.j
|
|
|
21
21
|
import { OwpErrorBoundary as oe } from "./components/OwpErrorBoundary/OwpErrorBoundary.js";
|
|
22
22
|
import { OwpEventEmitter as te } from "./components/OwpEventEmitter/OwpEventEmitter.js";
|
|
23
23
|
import { OwpLanguageSwitcherSelect as me } from "./components/OwpLanguageSwitcherSelect/OwpLanguageSwitcherSelect.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
24
|
+
import { OwpAlertDialog as xe } from "./components/OwpDialog/OwpAlertDialog.js";
|
|
25
|
+
import { OwpDialog as Oe } from "./components/OwpDialog/OwpDialog.js";
|
|
26
|
+
import { CommonCodeSelector as ie, OwpCommonCodeSelector as le } from "./components/OwpCommonCode/OwpCommonCodeSelector.js";
|
|
27
|
+
import { CommonCodeQuerySelector as de, OwpCommonCodeQuerySelector as ue } from "./components/OwpCommonCode/OwpCommonCodeQuerySelector.js";
|
|
28
|
+
import { CommonCodeRadioGroup as Te, OwpCommonCodeRadioGroup as ce } from "./components/OwpCommonCode/OwpCommonCodeRadioGroup.js";
|
|
29
|
+
import { OwpErrorStatusPage as se } from "./components/OwpErrorStatusPage/OwpErrorStatusPage.js";
|
|
30
|
+
import { OwpFieldHelperText as Pe } from "./components/OwpFieldHelperText/OwpFieldHelperText.js";
|
|
31
|
+
import { OwpLayout as he } from "./components/OwpLayout/OwpLayout.js";
|
|
32
|
+
import { OwpLoading as De } from "./components/OwpLoading/OwpLoading.js";
|
|
33
|
+
import { OwpMrtTable as Be } from "./components/OwpMrtTable/OwpMrtTable.js";
|
|
34
|
+
import { OwpNumberField as Le } from "./components/OwpNumberField/OwpNumberField.js";
|
|
35
|
+
import { OwpOptionSelector as Ge } from "./components/OwpOptionSelector/OwpOptionSelector.js";
|
|
36
|
+
import { OwpPageCarded as ve } from "./components/OwpPageCarded/OwpPageCarded.js";
|
|
37
|
+
import { OwpPageContent as Me } from "./components/OwpPageContent/OwpPageContent.js";
|
|
38
|
+
import { OwpPageLockLoading as Ae } from "./components/OwpPageLockLoading/OwpPageLockLoading.js";
|
|
39
|
+
import { OwpPageTitle as Ne } from "./components/OwpPageTitle/OwpPageTitle.js";
|
|
40
|
+
import { OwpQuerySelector as Ye } from "./components/OwpQuerySelector/OwpQuerySelector.js";
|
|
41
|
+
import { OwpScrollbars as Ze } from "./components/OwpScrollbars/OwpScrollbars.js";
|
|
42
|
+
import { OwpSearchFilter as ze } from "./components/OwpSearchFilter/OwpSearchFilter.js";
|
|
43
|
+
import { OwpSection as Ke } from "./components/OwpSection/OwpSection.js";
|
|
44
|
+
import { OwpStyleProvider as Ve } from "./components/OwpStyleProvider/OwpStyleProvider.js";
|
|
45
|
+
import { OwpSuspense as _e } from "./components/OwpSuspense/OwpSuspense.js";
|
|
46
|
+
import { OwpSvgIcon as eo } from "./components/OwpSvgIcon/OwpSvgIcon.js";
|
|
47
|
+
import { OwpRequiredHelperText as ro } from "./components/OwpRequiredHelperText/OwpRequiredHelperText.js";
|
|
48
|
+
import { OwpTab as po } from "./components/OwpTabs/OwpTab.js";
|
|
49
|
+
import { OwpTabs as ao } from "./components/OwpTabs/OwpTabs.js";
|
|
50
|
+
import { OwpTreeGridExportExcelButton as fo } from "./components/OwpTreeGridExportExcelButton/OwpTreeGridExportExcelButton.js";
|
|
51
|
+
import { OwpTreeGridResetChangesButton as wo } from "./components/OwpTreeGridResetChangesButton/OwpTreeGridResetChangesButton.js";
|
|
52
|
+
import { OwpTreeGrid as lo } from "./components/OwpTreeGrid/OwpTreeGrid.js";
|
|
53
|
+
import { TreeGrid as uo } from "./components/OwpTreeGrid/TreeGrid.js";
|
|
54
|
+
import { OwpYesNoSelector as To } from "./components/OwpYesNoSelector/OwpYesNoSelector.js";
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
de as CommonCodeQuerySelector,
|
|
57
|
+
Te as CommonCodeRadioGroup,
|
|
58
|
+
ie as CommonCodeSelector,
|
|
58
59
|
r as DialogsProvider,
|
|
60
|
+
xe as OwpAlertDialog,
|
|
59
61
|
c as OwpAutoLogoutDialog,
|
|
60
62
|
s as OwpBarcodeInputField,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
ue as OwpCommonCodeQuerySelector,
|
|
64
|
+
ce as OwpCommonCodeRadioGroup,
|
|
65
|
+
le as OwpCommonCodeSelector,
|
|
66
|
+
A as OwpDataTable,
|
|
65
67
|
B as OwpDatePicker,
|
|
66
68
|
L as OwpDateRangePicker,
|
|
67
|
-
|
|
69
|
+
Oe as OwpDialog,
|
|
68
70
|
oe as OwpErrorBoundary,
|
|
69
|
-
|
|
71
|
+
se as OwpErrorStatusPage,
|
|
70
72
|
te as OwpEventEmitter,
|
|
71
73
|
P as OwpExportDataToExcelButton,
|
|
72
|
-
|
|
74
|
+
Pe as OwpFieldHelperText,
|
|
73
75
|
j as OwpFieldTable,
|
|
74
76
|
h as OwpFilePickerButton,
|
|
75
77
|
me as OwpLanguageSwitcherSelect,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
he as OwpLayout,
|
|
79
|
+
De as OwpLoading,
|
|
80
|
+
D as OwpMoreActionsButton,
|
|
81
|
+
Be as OwpMrtTable,
|
|
82
|
+
Le as OwpNumberField,
|
|
83
|
+
Ge as OwpOptionSelector,
|
|
82
84
|
$ as OwpPageBreadcrumb,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
ve as OwpPageCarded,
|
|
86
|
+
Me as OwpPageContent,
|
|
87
|
+
Ae as OwpPageLockLoading,
|
|
88
|
+
Ne as OwpPageTitle,
|
|
89
|
+
Ye as OwpQuerySelector,
|
|
90
|
+
ro as OwpRequiredHelperText,
|
|
91
|
+
Ze as OwpScrollbars,
|
|
92
|
+
ze as OwpSearchFilter,
|
|
93
|
+
Ke as OwpSection,
|
|
94
|
+
Ve as OwpStyleProvider,
|
|
95
|
+
_e as OwpSuspense,
|
|
96
|
+
eo as OwpSvgIcon,
|
|
97
|
+
po as OwpTab,
|
|
96
98
|
N as OwpTable,
|
|
97
99
|
W as OwpTableTotalCount,
|
|
98
|
-
|
|
100
|
+
ao as OwpTabs,
|
|
99
101
|
J as OwpTextMaskField,
|
|
100
102
|
G as OwpTimePicker,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
lo as OwpTreeGrid,
|
|
104
|
+
fo as OwpTreeGridExportExcelButton,
|
|
105
|
+
wo as OwpTreeGridResetChangesButton,
|
|
104
106
|
U as OwpTreeGridToolbar,
|
|
105
107
|
v as OwpWeekDatePicker,
|
|
106
108
|
M as OwpYearRangePicker,
|
|
107
|
-
|
|
109
|
+
To as OwpYesNoSelector,
|
|
108
110
|
X as OwpZoomImageSlider,
|
|
109
111
|
Y as StyledTable,
|
|
110
112
|
q as StyledTableRow,
|
|
111
|
-
|
|
113
|
+
uo as TreeGrid,
|
|
112
114
|
a as createInitialOwpSettings,
|
|
113
115
|
x as defaultSettings,
|
|
114
116
|
f as defaultSnackbarTheme,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var f = Object.defineProperty;
|
|
2
2
|
var t = (e, _) => f(e, "name", { value: _, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/constants4.js";
|
|
4
4
|
var i;
|
|
5
5
|
function E() {
|
|
6
6
|
if (i) return r;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var q = Object.defineProperty;
|
|
2
2
|
var O = (C, _) => q(C, "name", { value: _, configurable: !0 });
|
|
3
|
-
import { __exports as r } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as r } from "../../../../../../../../_virtual/index6.js";
|
|
4
4
|
import { __require as d } from "./CODE128_AUTO.js";
|
|
5
5
|
import { __require as n } from "./CODE128A.js";
|
|
6
6
|
import { __require as m } from "./CODE128B.js";
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE39/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var w = Object.defineProperty;
|
|
2
2
|
var n = (f, a) => w(f, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { __exports as i } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as i } from "../../../../../../../../_virtual/index5.js";
|
|
4
4
|
import { __require as k } from "../Barcode.js";
|
|
5
5
|
var _;
|
|
6
6
|
function P() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var $ = (r, t) => n(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as x } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as x } from "../../../../../../../../_virtual/constants3.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? x : (e = 1, Object.defineProperty(x, "__esModule", {
|
package/dist/node_modules/.pnpm/jsbarcode@3.12.1/node_modules/jsbarcode/bin/barcodes/CODE93/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var D = Object.defineProperty;
|
|
2
2
|
var C = (u, t) => D(u, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as e } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as e } from "../../../../../../../../_virtual/index12.js";
|
|
4
4
|
import { __require as O } from "./CODE93.js";
|
|
5
5
|
import { __require as E } from "./CODE93FullASCII.js";
|
|
6
6
|
var l;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var n = Object.defineProperty;
|
|
2
2
|
var G = (r, t) => n(r, "name", { value: t, configurable: !0 });
|
|
3
|
-
import { __exports as L } from "../../../../../../../../_virtual/
|
|
3
|
+
import { __exports as L } from "../../../../../../../../_virtual/constants.js";
|
|
4
4
|
var e;
|
|
5
5
|
function o() {
|
|
6
6
|
return e ? L : (e = 1, Object.defineProperty(L, "__esModule", {
|