|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const incrementSpriteData = (copiedSprite, index) => { | 
|---|
|  |  |  | const incrementAmount = incrementMode === 'descending' ? -(index + 1) : index + 1; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | switch (deviceType) { | 
|---|
|  |  |  | case DEVICE_TYPE.SHELF: | 
|---|
|  |  |  | if (incrementValue === 'row') { | 
|---|
|  |  |  | 
|---|
|  |  |  | copiedSprite.data.no = `${copiedSprite.data.row}-${copiedSprite.data.bay}`; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case DEVICE_TYPE.STATION: | 
|---|
|  |  |  | case DEVICE_TYPE.CHARGE: | 
|---|
|  |  |  | case DEVICE_TYPE.DIRECTION: | 
|---|
|  |  |  | case DEVICE_TYPE.POINT: | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | if (incrementValue === 'no') { | 
|---|
|  |  |  | copiedSprite.data.no = Tool.incrementSpriteNo(sprite.data.no, incrementAmount); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | case DEVICE_TYPE.AGV: | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | default: | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // auto-increment-value | 
|---|
|  |  |  | if (autoIncrement && deviceType) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | incrementSpriteData(copiedSprite, i); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | sx={{ width: '50%' }} | 
|---|
|  |  |  | fullWidth | 
|---|
|  |  |  | inputProps={{ | 
|---|
|  |  |  | min: 0, | 
|---|
|  |  |  | // min: 0, | 
|---|
|  |  |  | step: 1, | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | onChange={(e) => { | 
|---|