@daeryun/dr_components 0.8.83 → 0.8.84

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.
@@ -109,34 +109,35 @@ const ChatMessage = ({ message, object, handelObjectBack, chatInquiryNumber, wor
109
109
  `}>
110
110
  {renderText(message, isObject)}
111
111
  {/* 오브젝트 박스 */}
112
- {inquiryStatus === InquiryStatusEnum.OPEN ||
113
- (inquiryStatus === InquiryStatusEnum.PERSONAL_INFO && object && object.exposeObjectListYn && (<div className={`mt-[10px] flex w-[calc(100%-35px)] flex-col gap-[10px] `}>
112
+ {(inquiryStatus === InquiryStatusEnum.OPEN || inquiryStatus === InquiryStatusEnum.PERSONAL_INFO) &&
113
+ object &&
114
+ object.exposeObjectListYn && (<div className={`mt-[10px] flex w-[calc(100%-35px)] flex-col gap-[10px] `}>
114
115
  <div className={`
115
116
  ${WorkFlowButtonUiCode.TILE_BUTTON === (object === null || object === void 0 ? void 0 : object.objectGroupUiCode)
116
- ? 'flex flex-row flex-wrap gap-x-[4px] gap-y-[8px]'
117
- : 'flex flex-col gap-[8px]'}
117
+ ? 'flex flex-row flex-wrap gap-x-[4px] gap-y-[8px]'
118
+ : 'flex flex-col gap-[8px]'}
118
119
  `}>
119
120
  {WorkFlowButtonUiCode.TILE_BUTTON !== (object === null || object === void 0 ? void 0 : object.objectGroupUiCode)
120
- ? (_b = (_a = object.objectList) === null || _a === void 0 ? void 0 : _a.sort((a, b) => a.sequence - b.sequence)) === null || _b === void 0 ? void 0 : _b.map((item, index) => {
121
- var _a;
122
- return (<ObjectButton key={`object-expose-${index}`} object={item} messageNumber={(object === null || object === void 0 ? void 0 : object.messageNumber) || ''} workFlowNumber={((_a = message === null || message === void 0 ? void 0 : message.workFlow) === null || _a === void 0 ? void 0 : _a.workFlowNumber) || ''} isFirstObject={objectFirstQuestionCheck} objectGroupUiCode={(object === null || object === void 0 ? void 0 : object.objectGroupUiCode) || ''}/>);
123
- })
124
- : null}
121
+ ? (_b = (_a = object.objectList) === null || _a === void 0 ? void 0 : _a.sort((a, b) => a.sequence - b.sequence)) === null || _b === void 0 ? void 0 : _b.map((item, index) => {
122
+ var _a;
123
+ return (<ObjectButton key={`object-expose-${index}`} object={item} messageNumber={(object === null || object === void 0 ? void 0 : object.messageNumber) || ''} workFlowNumber={((_a = message === null || message === void 0 ? void 0 : message.workFlow) === null || _a === void 0 ? void 0 : _a.workFlowNumber) || ''} isFirstObject={objectFirstQuestionCheck} objectGroupUiCode={(object === null || object === void 0 ? void 0 : object.objectGroupUiCode) || ''}/>);
124
+ })
125
+ : null}
125
126
  {/* 더보기 들어간 타입 */}
126
127
  {WorkFlowButtonUiCode.TILE_BUTTON === (object === null || object === void 0 ? void 0 : object.objectGroupUiCode) && (<FieldWorkObject object={object} message={message} isFirstObject={objectFirstQuestionCheck} scrollEnd={scrollEnd}/>)}
127
128
  </div>
128
129
  {!objectFirstQuestionCheck && (<ObjectBack isBack={objectIsBack} handleBtn={() => __awaiter(void 0, void 0, void 0, function* () {
129
- if (handelObjectBack) {
130
- yield handelObjectBack({
131
- chatInquiryNumber: chatInquiryNumber,
132
- messageNumber: (object === null || object === void 0 ? void 0 : object.messageNumber) || '',
133
- workFlowNavigationCode: objectIsBack
134
- ? WorkFlowBackOrInit.BACK
135
- : WorkFlowBackOrInit.INIT
136
- });
137
- }
138
- })}/>)}
139
- </div>))}
130
+ if (handelObjectBack) {
131
+ yield handelObjectBack({
132
+ chatInquiryNumber: chatInquiryNumber,
133
+ messageNumber: (object === null || object === void 0 ? void 0 : object.messageNumber) || '',
134
+ workFlowNavigationCode: objectIsBack
135
+ ? WorkFlowBackOrInit.BACK
136
+ : WorkFlowBackOrInit.INIT
137
+ });
138
+ }
139
+ })}/>)}
140
+ </div>)}
140
141
  </div>);
141
142
  };
142
143
  return (<div className={`mb-[20px] flex ${isOperator ? 'justify-start' : 'justify-end'}`}>
@@ -166,8 +166,9 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
166
166
  >
167
167
  {renderText(message, isObject)}
168
168
  {/* 오브젝트 박스 */}
169
- {inquiryStatus === InquiryStatusEnum.OPEN ||
170
- (inquiryStatus === InquiryStatusEnum.PERSONAL_INFO && object && object.exposeObjectListYn && (
169
+ {(inquiryStatus === InquiryStatusEnum.OPEN || inquiryStatus === InquiryStatusEnum.PERSONAL_INFO) &&
170
+ object &&
171
+ object.exposeObjectListYn && (
171
172
  <div className={`mt-[10px] flex w-[calc(100%-35px)] flex-col gap-[10px] `}>
172
173
  <div
173
174
  className={`
@@ -221,7 +222,7 @@ const ChatMessage: React.FC<ChatMessageProps> = ({
221
222
  />
222
223
  )}
223
224
  </div>
224
- ))}
225
+ )}
225
226
  </div>
226
227
  );
227
228
  };