smarthr-ui 99.3.0 → 99.3.2

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.
Files changed (218) hide show
  1. package/lib/_virtual/index.cjs +2 -2
  2. package/lib/_virtual/index.js +2 -2
  3. package/lib/_virtual/index2.cjs +2 -2
  4. package/lib/_virtual/index2.js +2 -2
  5. package/lib/components/Checkbox/Checkbox.cjs +1 -1
  6. package/lib/components/Checkbox/Checkbox.cjs.map +1 -1
  7. package/lib/components/Checkbox/Checkbox.js +1 -1
  8. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  9. package/lib/components/Combobox/ItemButton.cjs +11 -2
  10. package/lib/components/Combobox/ItemButton.cjs.map +1 -1
  11. package/lib/components/Combobox/ItemButton.js +11 -2
  12. package/lib/components/Combobox/ItemButton.js.map +1 -1
  13. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs +2 -2
  14. package/lib/components/Combobox/MultiCombobox/MultiCombobox.cjs.map +1 -1
  15. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js +2 -2
  16. package/lib/components/Combobox/MultiCombobox/MultiCombobox.js.map +1 -1
  17. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs +2 -2
  18. package/lib/components/Combobox/SingleCombobox/SingleCombobox.cjs.map +1 -1
  19. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js +2 -2
  20. package/lib/components/Combobox/SingleCombobox/SingleCombobox.js.map +1 -1
  21. package/lib/components/DatePicker/DatePicker.cjs +2 -2
  22. package/lib/components/DatePicker/DatePicker.cjs.map +1 -1
  23. package/lib/components/DatePicker/DatePicker.js +2 -2
  24. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  25. package/lib/components/DatePicker/Portal.cjs +1 -1
  26. package/lib/components/DatePicker/Portal.cjs.map +1 -1
  27. package/lib/components/DatePicker/Portal.js +1 -1
  28. package/lib/components/DatePicker/Portal.js.map +1 -1
  29. package/lib/components/Dialog/FocusTrap.cjs +8 -8
  30. package/lib/components/Dialog/FocusTrap.cjs.map +1 -1
  31. package/lib/components/Dialog/FocusTrap.js +9 -9
  32. package/lib/components/Dialog/FocusTrap.js.map +1 -1
  33. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs +2 -1
  34. package/lib/components/Dialog/ModelessDialog/ModelessDialog.cjs.map +1 -1
  35. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js +2 -1
  36. package/lib/components/Dialog/ModelessDialog/ModelessDialog.js.map +1 -1
  37. package/lib/components/DropZone/DropZone.cjs +1 -1
  38. package/lib/components/DropZone/DropZone.cjs.map +1 -1
  39. package/lib/components/DropZone/DropZone.js +1 -1
  40. package/lib/components/DropZone/DropZone.js.map +1 -1
  41. package/lib/components/Heading/PageHeading/PageHeading.cjs +1 -1
  42. package/lib/components/Heading/PageHeading/PageHeading.cjs.map +1 -1
  43. package/lib/components/Heading/PageHeading/PageHeading.js +1 -1
  44. package/lib/components/Heading/PageHeading/PageHeading.js.map +1 -1
  45. package/lib/components/Input/CurrencyInput/CurrencyInput.cjs +3 -3
  46. package/lib/components/Input/CurrencyInput/CurrencyInput.cjs.map +1 -1
  47. package/lib/components/Input/CurrencyInput/CurrencyInput.js +3 -3
  48. package/lib/components/Input/CurrencyInput/CurrencyInput.js.map +1 -1
  49. package/lib/components/Input/Input.cjs +15 -17
  50. package/lib/components/Input/Input.cjs.map +1 -1
  51. package/lib/components/Input/Input.js +15 -17
  52. package/lib/components/Input/Input.js.map +1 -1
  53. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs +8 -7
  54. package/lib/components/InputFile/InputFileMultiplyAppendable.cjs.map +1 -1
  55. package/lib/components/InputFile/InputFileMultiplyAppendable.js +8 -7
  56. package/lib/components/InputFile/InputFileMultiplyAppendable.js.map +1 -1
  57. package/lib/components/InputFile/InputFileNative.cjs +6 -5
  58. package/lib/components/InputFile/InputFileNative.cjs.map +1 -1
  59. package/lib/components/InputFile/InputFileNative.js +6 -5
  60. package/lib/components/InputFile/InputFileNative.js.map +1 -1
  61. package/lib/components/Layout/Container/Container.cjs.map +1 -1
  62. package/lib/components/Layout/Container/Container.js.map +1 -1
  63. package/lib/components/Pagination/Pagination.cjs +3 -2
  64. package/lib/components/Pagination/Pagination.cjs.map +1 -1
  65. package/lib/components/Pagination/Pagination.js +2 -1
  66. package/lib/components/Pagination/Pagination.js.map +1 -1
  67. package/lib/components/Panel/Groupbox/Groupbox.cjs +1 -0
  68. package/lib/components/Panel/Groupbox/Groupbox.cjs.map +1 -1
  69. package/lib/components/Panel/Groupbox/Groupbox.js +1 -0
  70. package/lib/components/Panel/Groupbox/Groupbox.js.map +1 -1
  71. package/lib/components/Scroller/Scroller.cjs +3 -1
  72. package/lib/components/Scroller/Scroller.cjs.map +1 -1
  73. package/lib/components/Scroller/Scroller.js +3 -1
  74. package/lib/components/Scroller/Scroller.js.map +1 -1
  75. package/lib/components/Select/Select.cjs +12 -14
  76. package/lib/components/Select/Select.cjs.map +1 -1
  77. package/lib/components/Select/Select.js +12 -14
  78. package/lib/components/Select/Select.js.map +1 -1
  79. package/lib/components/Table/TableReel.cjs +67 -3
  80. package/lib/components/Table/TableReel.cjs.map +1 -1
  81. package/lib/components/Table/TableReel.js +68 -4
  82. package/lib/components/Table/TableReel.js.map +1 -1
  83. package/lib/components/Table/TableScroller.cjs +13 -15
  84. package/lib/components/Table/TableScroller.cjs.map +1 -1
  85. package/lib/components/Table/TableScroller.js +14 -16
  86. package/lib/components/Table/TableScroller.js.map +1 -1
  87. package/lib/components/Textarea/Textarea.cjs +18 -12
  88. package/lib/components/Textarea/Textarea.cjs.map +1 -1
  89. package/lib/components/Textarea/Textarea.js +19 -13
  90. package/lib/components/Textarea/Textarea.js.map +1 -1
  91. package/lib/components/Tooltip/TooltipPortal.cjs +1 -0
  92. package/lib/components/Tooltip/TooltipPortal.cjs.map +1 -1
  93. package/lib/components/Tooltip/TooltipPortal.js +1 -0
  94. package/lib/components/Tooltip/TooltipPortal.js.map +1 -1
  95. package/lib/hooks/useClick.cjs +7 -4
  96. package/lib/hooks/useClick.cjs.map +1 -1
  97. package/lib/hooks/useClick.js +7 -4
  98. package/lib/hooks/useClick.js.map +1 -1
  99. package/lib/hooks/useOuterClick.cjs +5 -6
  100. package/lib/hooks/useOuterClick.cjs.map +1 -1
  101. package/lib/hooks/useOuterClick.js +6 -7
  102. package/lib/hooks/useOuterClick.js.map +1 -1
  103. package/lib/hooks/usePortal.cjs +24 -17
  104. package/lib/hooks/usePortal.cjs.map +1 -1
  105. package/lib/hooks/usePortal.d.ts +1 -1
  106. package/lib/hooks/usePortal.js +25 -18
  107. package/lib/hooks/usePortal.js.map +1 -1
  108. package/lib/hooks/useResponseStatus.cjs +20 -23
  109. package/lib/hooks/useResponseStatus.cjs.map +1 -1
  110. package/lib/hooks/useResponseStatus.js +20 -23
  111. package/lib/hooks/useResponseStatus.js.map +1 -1
  112. package/lib/intl/locales/en_us.json.cjs +1 -0
  113. package/lib/intl/locales/en_us.json.cjs.map +1 -1
  114. package/lib/intl/locales/en_us.json.js +1 -0
  115. package/lib/intl/locales/en_us.json.js.map +1 -1
  116. package/lib/intl/locales/id_id.json.cjs +0 -8
  117. package/lib/intl/locales/id_id.json.cjs.map +1 -1
  118. package/lib/intl/locales/id_id.json.js +0 -8
  119. package/lib/intl/locales/id_id.json.js.map +1 -1
  120. package/lib/intl/locales/index.d.ts +6 -16
  121. package/lib/intl/locales/ja_easy.json.cjs +1 -0
  122. package/lib/intl/locales/ja_easy.json.cjs.map +1 -1
  123. package/lib/intl/locales/ja_easy.json.js +1 -0
  124. package/lib/intl/locales/ja_easy.json.js.map +1 -1
  125. package/lib/intl/locales/ko_kr.json.cjs +1 -0
  126. package/lib/intl/locales/ko_kr.json.cjs.map +1 -1
  127. package/lib/intl/locales/ko_kr.json.js +1 -0
  128. package/lib/intl/locales/ko_kr.json.js.map +1 -1
  129. package/lib/intl/locales/pt_br.json.cjs +0 -8
  130. package/lib/intl/locales/pt_br.json.cjs.map +1 -1
  131. package/lib/intl/locales/pt_br.json.js +0 -8
  132. package/lib/intl/locales/pt_br.json.js.map +1 -1
  133. package/lib/intl/locales/vi_vn.json.cjs +1 -0
  134. package/lib/intl/locales/vi_vn.json.cjs.map +1 -1
  135. package/lib/intl/locales/vi_vn.json.js +1 -0
  136. package/lib/intl/locales/vi_vn.json.js.map +1 -1
  137. package/lib/intl/locales/zh_hans_cn.json.cjs +1 -0
  138. package/lib/intl/locales/zh_hans_cn.json.cjs.map +1 -1
  139. package/lib/intl/locales/zh_hans_cn.json.js +1 -0
  140. package/lib/intl/locales/zh_hans_cn.json.js.map +1 -1
  141. package/lib/intl/locales/zh_hant_tw.json.cjs +1 -0
  142. package/lib/intl/locales/zh_hant_tw.json.cjs.map +1 -1
  143. package/lib/intl/locales/zh_hant_tw.json.js +1 -0
  144. package/lib/intl/locales/zh_hant_tw.json.js.map +1 -1
  145. package/lib/intl/useDateFormat.cjs +1 -2
  146. package/lib/intl/useDateFormat.cjs.map +1 -1
  147. package/lib/intl/useDateFormat.js +1 -2
  148. package/lib/intl/useDateFormat.js.map +1 -1
  149. package/lib/intl/useIntl.cjs +2 -4
  150. package/lib/intl/useIntl.cjs.map +1 -1
  151. package/lib/intl/useIntl.js +2 -4
  152. package/lib/intl/useIntl.js.map +1 -1
  153. package/lib/libs/debounce.cjs +10 -2
  154. package/lib/libs/debounce.cjs.map +1 -1
  155. package/lib/libs/debounce.d.ts +4 -2
  156. package/lib/libs/debounce.js +10 -2
  157. package/lib/libs/debounce.js.map +1 -1
  158. package/lib/libs/lodash.cjs +3 -4
  159. package/lib/libs/lodash.cjs.map +1 -1
  160. package/lib/libs/lodash.d.ts +2 -11
  161. package/lib/libs/lodash.js +2 -7
  162. package/lib/libs/lodash.js.map +1 -1
  163. package/lib/libs/map.cjs +1 -5
  164. package/lib/libs/map.cjs.map +1 -1
  165. package/lib/libs/map.js +1 -5
  166. package/lib/libs/map.js.map +1 -1
  167. package/lib/themes/createBackgroundColor.cjs +3 -2
  168. package/lib/themes/createBackgroundColor.cjs.map +1 -1
  169. package/lib/themes/createBackgroundColor.js +2 -1
  170. package/lib/themes/createBackgroundColor.js.map +1 -1
  171. package/lib/themes/createBorder.cjs +3 -2
  172. package/lib/themes/createBorder.cjs.map +1 -1
  173. package/lib/themes/createBorder.js +2 -1
  174. package/lib/themes/createBorder.js.map +1 -1
  175. package/lib/themes/createBreakpoint.cjs +3 -2
  176. package/lib/themes/createBreakpoint.cjs.map +1 -1
  177. package/lib/themes/createBreakpoint.js +2 -1
  178. package/lib/themes/createBreakpoint.js.map +1 -1
  179. package/lib/themes/createColor.cjs +3 -2
  180. package/lib/themes/createColor.cjs.map +1 -1
  181. package/lib/themes/createColor.js +2 -1
  182. package/lib/themes/createColor.js.map +1 -1
  183. package/lib/themes/createFontSize.cjs +3 -2
  184. package/lib/themes/createFontSize.cjs.map +1 -1
  185. package/lib/themes/createFontSize.js +2 -1
  186. package/lib/themes/createFontSize.js.map +1 -1
  187. package/lib/themes/createInteraction.cjs +3 -2
  188. package/lib/themes/createInteraction.cjs.map +1 -1
  189. package/lib/themes/createInteraction.js +2 -1
  190. package/lib/themes/createInteraction.js.map +1 -1
  191. package/lib/themes/createLeading.cjs +3 -2
  192. package/lib/themes/createLeading.cjs.map +1 -1
  193. package/lib/themes/createLeading.js +2 -1
  194. package/lib/themes/createLeading.js.map +1 -1
  195. package/lib/themes/createRadius.cjs +3 -2
  196. package/lib/themes/createRadius.cjs.map +1 -1
  197. package/lib/themes/createRadius.js +2 -1
  198. package/lib/themes/createRadius.js.map +1 -1
  199. package/lib/themes/createShadow/createShadow.cjs +3 -2
  200. package/lib/themes/createShadow/createShadow.cjs.map +1 -1
  201. package/lib/themes/createShadow/createShadow.js +2 -1
  202. package/lib/themes/createShadow/createShadow.js.map +1 -1
  203. package/lib/themes/createTextColor.cjs +3 -2
  204. package/lib/themes/createTextColor.cjs.map +1 -1
  205. package/lib/themes/createTextColor.js +2 -1
  206. package/lib/themes/createTextColor.js.map +1 -1
  207. package/lib/themes/createZIndex.cjs +3 -2
  208. package/lib/themes/createZIndex.cjs.map +1 -1
  209. package/lib/themes/createZIndex.js +2 -1
  210. package/lib/themes/createZIndex.js.map +1 -1
  211. package/metadata.json +1 -1
  212. package/package.json +1 -1
  213. package/smarthr-ui.css +27 -7
  214. package/lib/components/Table/useReelCells.cjs +0 -83
  215. package/lib/components/Table/useReelCells.cjs.map +0 -1
  216. package/lib/components/Table/useReelCells.d.ts +0 -3
  217. package/lib/components/Table/useReelCells.js +0 -81
  218. package/lib/components/Table/useReelCells.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"usePortal.cjs","sources":["../../src/hooks/usePortal.tsx"],"sourcesContent":["import {\n type FC,\n type ReactNode,\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n} from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEnhancedEffect } from './useEnhancedEffect'\n\ntype ParentContextValue = {\n seqs: number[]\n}\n\nconst ParentContext = createContext<ParentContextValue>({\n seqs: [],\n})\n\nlet portalSeq = 0\n\nexport function usePortal({ rootId }: { rootId?: string } = {}) {\n const [portalRoot, setPortalRoot] = useState<HTMLDivElement | null>(null)\n const currentSeq = useMemo(() => ++portalSeq, [])\n const parent = useContext(ParentContext)\n\n const calculatedSeqs = useMemo(() => {\n const parentSeqs = parent.seqs.concat(currentSeq)\n\n return {\n parentSeqs,\n portalChildOf: parentSeqs.join(','),\n }\n }, [currentSeq, parent.seqs])\n\n useEnhancedEffect(() => {\n // Next.jsのhydration error回避のため、初回レンダリング時にdivを作成する\n setPortalRoot((current) => {\n const root = current || document.createElement('div')\n\n if (rootId) {\n root.setAttribute('id', rootId)\n }\n\n return root\n })\n }, [rootId])\n\n useEnhancedEffect(() => {\n if (!portalRoot) {\n return\n }\n\n portalRoot.dataset.portalChildOf = calculatedSeqs.portalChildOf\n document.body.appendChild(portalRoot)\n\n return () => {\n portalRoot.remove()\n }\n }, [portalRoot, calculatedSeqs.portalChildOf])\n\n const isChildPortal = useCallback(\n (element: HTMLElement | null) => _isChildPortal(element, new RegExp(`(^|,)${currentSeq}(,|$)`)),\n [currentSeq],\n )\n\n const PortalParentProvider: FC<{ children: ReactNode }> = useCallback(\n ({ children }) => {\n const value: ParentContextValue = {\n seqs: calculatedSeqs.parentSeqs,\n }\n\n return <ParentContext.Provider value={value}>{children}</ParentContext.Provider>\n },\n [calculatedSeqs.parentSeqs],\n )\n\n const wrappedCreatePortal = useCallback(\n (children: ReactNode) => {\n if (portalRoot === null) {\n return null\n }\n\n return createPortal(children, portalRoot)\n },\n [portalRoot],\n )\n\n return {\n portalRoot,\n isChildPortal,\n PortalParentProvider,\n createPortal: wrappedCreatePortal,\n }\n}\n\nfunction _isChildPortal(element: HTMLElement | SVGElement | null, seqRegex: RegExp): boolean {\n if (!element) return false\n\n let includesSeq = false\n const childOf = element.dataset?.portalChildOf\n\n if (childOf) {\n includesSeq = seqRegex.test(childOf)\n }\n\n return includesSeq || _isChildPortal(element.parentElement, seqRegex)\n}\n"],"names":["createContext","useState","useMemo","useContext","useEnhancedEffect","useCallback","_jsx","createPortal"],"mappings":";;;;;;;AAiBA,MAAM,aAAa,GAAGA,mBAAa,CAAqB;AACtD,IAAA,IAAI,EAAE,EAAE;AACT,CAAA,CAAC;AAEF,IAAI,SAAS,GAAG,CAAC;SAED,SAAS,CAAC,EAAE,MAAM,KAA0B,EAAE,EAAA;IAC5D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAGC,cAAQ,CAAwB,IAAI,CAAC;AACzE,IAAA,MAAM,UAAU,GAAGC,aAAO,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC;AACjD,IAAA,MAAM,MAAM,GAAGC,gBAAU,CAAC,aAAa,CAAC;AAExC,IAAA,MAAM,cAAc,GAAGD,aAAO,CAAC,MAAK;QAClC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QAEjD,OAAO;YACL,UAAU;AACV,YAAA,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CAAC,EACD,CAAC,cAAc,CAAC,UAAU,CAAC,CAC5B;AAED,IAAA,MAAM,mBAAmB,GAAGD,iBAAW,CACrC,CAAC,QAAmB,KAAI;AACtB,QAAA,IAAI,UAAU,KAAK,IAAI,EAAE;AACvB,YAAA,OAAO,IAAI;QACb;AAEA,QAAA,OAAOE,qBAAY,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC3C,IAAA,CAAC,EACD,CAAC,UAAU,CAAC,CACb;IAED,OAAO;QACL,UAAU;QACV,aAAa;QACb,oBAAoB;AACpB,QAAA,YAAY,EAAE,mBAAmB;KAClC;AACH;AAEA,SAAS,cAAc,CAAC,OAAwC,EAAE,QAAgB,EAAA;AAChF,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,KAAK;IAE1B,IAAI,WAAW,GAAG,KAAK;AACvB,IAAA,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,aAAa;IAE9C,IAAI,OAAO,EAAE;AACX,QAAA,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;IACtC;IAEA,OAAO,WAAW,IAAI,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC;AACvE;;;;"}
1
+ {"version":3,"file":"usePortal.cjs","sources":["../../src/hooks/usePortal.tsx"],"sourcesContent":["import { type FC, type ReactNode, createContext, useContext, useMemo, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEnhancedEffect } from './useEnhancedEffect'\nimport { useLatest } from './useLatest'\n\ntype ParentContextValue = {\n seqs: number[]\n}\n\nconst ParentContext = createContext<ParentContextValue>({\n seqs: [],\n})\n\nlet portalSeq = 0\n\nexport function usePortal({ rootId }: { rootId?: string } = {}) {\n const [portalRoot, setPortalRoot] = useState<HTMLDivElement | null>(null)\n const [currentSeq] = useState(() => ++portalSeq)\n const parent = useContext(ParentContext)\n\n const calculatedSeqs = useMemo(() => {\n const parentSeqs = parent.seqs.concat(currentSeq)\n\n return {\n parentSeqs,\n portalChildOf: parentSeqs.join(','),\n }\n }, [currentSeq, parent.seqs])\n\n const latest = useLatest({ currentSeq, portalRoot, calculatedSeqs })\n\n const functions = useMemo(() => {\n const PortalParentProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const value: ParentContextValue = {\n seqs: latest.calculatedSeqs.parentSeqs,\n }\n\n return <ParentContext.Provider value={value}>{children}</ParentContext.Provider>\n }\n\n return {\n PortalParentProvider,\n isChildPortal: (element: HTMLElement | null) =>\n _isChildPortal(element, new RegExp(`(^|,)${latest.currentSeq}(,|$)`)),\n createPortal: (children: ReactNode) => {\n if (latest.portalRoot === null) {\n return null\n }\n\n return createPortal(children, latest.portalRoot)\n },\n }\n }, [latest])\n\n useEnhancedEffect(() => {\n // Next.jsのhydration error回避のため、初回レンダリング時にdivを作成する\n setPortalRoot((current) => {\n const root = current || document.createElement('div')\n\n if (rootId) {\n root.setAttribute('id', rootId)\n }\n\n return root\n })\n }, [rootId])\n\n useEnhancedEffect(() => {\n if (!portalRoot) {\n return\n }\n\n portalRoot.dataset.portalChildOf = calculatedSeqs.portalChildOf\n document.body.appendChild(portalRoot)\n\n return () => {\n portalRoot.remove()\n }\n }, [portalRoot, calculatedSeqs.portalChildOf])\n\n return {\n portalRoot,\n isChildPortal: functions.isChildPortal,\n createPortal: functions.createPortal,\n PortalParentProvider: functions.PortalParentProvider,\n }\n}\n\nfunction _isChildPortal(element: HTMLElement | SVGElement | null, seqRegex: RegExp): boolean {\n if (!element) return false\n\n let includesSeq = false\n const childOf = element.dataset?.portalChildOf\n\n if (childOf) {\n includesSeq = seqRegex.test(childOf)\n }\n\n return includesSeq || _isChildPortal(element.parentElement, seqRegex)\n}\n"],"names":["createContext","useState","useContext","useMemo","useLatest","_jsx","createPortal","useEnhancedEffect"],"mappings":";;;;;;;;AAUA,MAAM,aAAa,GAAGA,mBAAa,CAAqB;AACtD,IAAA,IAAI,EAAE,EAAE;AACT,CAAA,CAAC;AAEF,IAAI,SAAS,GAAG,CAAC;SA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,IAAI,CAAC,OAAO,CAAC;IACtC;IAEA,OAAO,WAAW,IAAI,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC;AACvE;;;;"}
@@ -4,8 +4,8 @@ export declare function usePortal({ rootId }?: {
4
4
  }): {
5
5
  portalRoot: HTMLDivElement | null;
6
6
  isChildPortal: (element: HTMLElement | null) => boolean;
7
+ createPortal: (children: ReactNode) => import("react").ReactPortal | null;
7
8
  PortalParentProvider: FC<{
8
9
  children: ReactNode;
9
10
  }>;
10
- createPortal: (children: ReactNode) => import("react").ReactPortal | null;
11
11
  };
@@ -1,7 +1,8 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { createContext, useState, useMemo, useContext, useCallback } from 'react';
2
+ import { createContext, useState, useContext, useMemo } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { useEnhancedEffect } from './useEnhancedEffect.js';
5
+ import { useLatest } from './useLatest.js';
5
6
 
6
7
  const ParentContext = createContext({
7
8
  seqs: [],
@@ -9,7 +10,7 @@ const ParentContext = createContext({
9
10
  let portalSeq = 0;
10
11
  function usePortal({ rootId } = {}) {
11
12
  const [portalRoot, setPortalRoot] = useState(null);
12
- const currentSeq = useMemo(() => ++portalSeq, []);
13
+ const [currentSeq] = useState(() => ++portalSeq);
13
14
  const parent = useContext(ParentContext);
14
15
  const calculatedSeqs = useMemo(() => {
15
16
  const parentSeqs = parent.seqs.concat(currentSeq);
@@ -18,6 +19,25 @@ function usePortal({ rootId } = {}) {
18
19
  portalChildOf: parentSeqs.join(','),
19
20
  };
20
21
  }, [currentSeq, parent.seqs]);
22
+ const latest = useLatest({ currentSeq, portalRoot, calculatedSeqs });
23
+ const functions = useMemo(() => {
24
+ const PortalParentProvider = ({ children }) => {
25
+ const value = {
26
+ seqs: latest.calculatedSeqs.parentSeqs,
27
+ };
28
+ return jsx(ParentContext.Provider, { value: value, children: children });
29
+ };
30
+ return {
31
+ PortalParentProvider,
32
+ isChildPortal: (element) => _isChildPortal(element, new RegExp(`(^|,)${latest.currentSeq}(,|$)`)),
33
+ createPortal: (children) => {
34
+ if (latest.portalRoot === null) {
35
+ return null;
36
+ }
37
+ return createPortal(children, latest.portalRoot);
38
+ },
39
+ };
40
+ }, [latest]);
21
41
  useEnhancedEffect(() => {
22
42
  // Next.jsのhydration error回避のため、初回レンダリング時にdivを作成する
23
43
  setPortalRoot((current) => {
@@ -38,24 +58,11 @@ function usePortal({ rootId } = {}) {
38
58
  portalRoot.remove();
39
59
  };
40
60
  }, [portalRoot, calculatedSeqs.portalChildOf]);
41
- const isChildPortal = useCallback((element) => _isChildPortal(element, new RegExp(`(^|,)${currentSeq}(,|$)`)), [currentSeq]);
42
- const PortalParentProvider = useCallback(({ children }) => {
43
- const value = {
44
- seqs: calculatedSeqs.parentSeqs,
45
- };
46
- return jsx(ParentContext.Provider, { value: value, children: children });
47
- }, [calculatedSeqs.parentSeqs]);
48
- const wrappedCreatePortal = useCallback((children) => {
49
- if (portalRoot === null) {
50
- return null;
51
- }
52
- return createPortal(children, portalRoot);
53
- }, [portalRoot]);
54
61
  return {
55
62
  portalRoot,
56
- isChildPortal,
57
- PortalParentProvider,
58
- createPortal: wrappedCreatePortal,
63
+ isChildPortal: functions.isChildPortal,
64
+ createPortal: functions.createPortal,
65
+ PortalParentProvider: functions.PortalParentProvider,
59
66
  };
60
67
  }
61
68
  function _isChildPortal(element, seqRegex) {
@@ -1 +1 @@
1
- {"version":3,"file":"usePortal.js","sources":["../../src/hooks/usePortal.tsx"],"sourcesContent":["import {\n type FC,\n type ReactNode,\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n} from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEnhancedEffect } from './useEnhancedEffect'\n\ntype ParentContextValue = {\n seqs: number[]\n}\n\nconst ParentContext = createContext<ParentContextValue>({\n seqs: [],\n})\n\nlet portalSeq = 0\n\nexport function usePortal({ rootId }: { rootId?: string } = {}) {\n const [portalRoot, setPortalRoot] = useState<HTMLDivElement | null>(null)\n const currentSeq = useMemo(() => ++portalSeq, [])\n const parent = useContext(ParentContext)\n\n const calculatedSeqs = useMemo(() => {\n const parentSeqs = parent.seqs.concat(currentSeq)\n\n return {\n parentSeqs,\n portalChildOf: parentSeqs.join(','),\n }\n }, [currentSeq, parent.seqs])\n\n useEnhancedEffect(() => {\n // Next.jsのhydration error回避のため、初回レンダリング時にdivを作成する\n setPortalRoot((current) => {\n const root = current || document.createElement('div')\n\n if (rootId) {\n root.setAttribute('id', rootId)\n }\n\n return root\n })\n }, [rootId])\n\n useEnhancedEffect(() => {\n if (!portalRoot) {\n return\n }\n\n portalRoot.dataset.portalChildOf = calculatedSeqs.portalChildOf\n document.body.appendChild(portalRoot)\n\n return () => {\n portalRoot.remove()\n }\n }, [portalRoot, calculatedSeqs.portalChildOf])\n\n const isChildPortal = useCallback(\n (element: HTMLElement | null) => _isChildPortal(element, new RegExp(`(^|,)${currentSeq}(,|$)`)),\n [currentSeq],\n )\n\n const PortalParentProvider: FC<{ children: ReactNode }> = useCallback(\n ({ children }) => {\n const value: ParentContextValue = {\n seqs: calculatedSeqs.parentSeqs,\n }\n\n return <ParentContext.Provider value={value}>{children}</ParentContext.Provider>\n },\n [calculatedSeqs.parentSeqs],\n )\n\n const wrappedCreatePortal = useCallback(\n (children: ReactNode) => {\n if (portalRoot === null) {\n return null\n }\n\n return createPortal(children, portalRoot)\n },\n [portalRoot],\n )\n\n return {\n portalRoot,\n isChildPortal,\n PortalParentProvider,\n createPortal: wrappedCreatePortal,\n }\n}\n\nfunction _isChildPortal(element: HTMLElement | SVGElement | null, seqRegex: RegExp): boolean {\n if (!element) return false\n\n let includesSeq = false\n const childOf = element.dataset?.portalChildOf\n\n if (childOf) {\n includesSeq = seqRegex.test(childOf)\n }\n\n return includesSeq || _isChildPortal(element.parentElement, seqRegex)\n}\n"],"names":["_jsx"],"mappings":";;;;;AAiBA,MAAM,aAAa,GAAG,aAAa,CAAqB;AACtD,IAAA,IAAI,EAAE,EAAE;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src/hooks/usePortal.tsx"],"sourcesContent":["import { type FC, type ReactNode, createContext, useContext, useMemo, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEnhancedEffect } from './useEnhancedEffect'\nimport { useLatest } from './useLatest'\n\ntype ParentContextValue = {\n seqs: number[]\n}\n\nconst ParentContext = createContext<ParentContextValue>({\n seqs: [],\n})\n\nlet portalSeq = 0\n\nexport function usePortal({ rootId }: { rootId?: string } = {}) {\n const [portalRoot, setPortalRoot] = useState<HTMLDivElement | null>(null)\n const [currentSeq] = useState(() => ++portalSeq)\n const parent = useContext(ParentContext)\n\n const calculatedSeqs = useMemo(() => {\n const parentSeqs = parent.seqs.concat(currentSeq)\n\n return {\n parentSeqs,\n portalChildOf: parentSeqs.join(','),\n }\n }, [currentSeq, parent.seqs])\n\n const latest = useLatest({ currentSeq, portalRoot, calculatedSeqs })\n\n const functions = useMemo(() => {\n const PortalParentProvider: FC<{ children: ReactNode }> = ({ children }) => {\n const value: ParentContextValue = {\n seqs: latest.calculatedSeqs.parentSeqs,\n }\n\n return <ParentContext.Provider value={value}>{children}</ParentContext.Provider>\n }\n\n return {\n PortalParentProvider,\n isChildPortal: (element: HTMLElement | null) =>\n _isChildPortal(element, new RegExp(`(^|,)${latest.currentSeq}(,|$)`)),\n createPortal: (children: ReactNode) => {\n if (latest.portalRoot === null) {\n return null\n }\n\n return createPortal(children, latest.portalRoot)\n },\n }\n }, [latest])\n\n useEnhancedEffect(() => {\n // Next.jsのhydration error回避のため、初回レンダリング時にdivを作成する\n setPortalRoot((current) => {\n const root = current || document.createElement('div')\n\n if (rootId) {\n root.setAttribute('id', rootId)\n }\n\n return root\n })\n }, [rootId])\n\n useEnhancedEffect(() => {\n if (!portalRoot) {\n return\n }\n\n portalRoot.dataset.portalChildOf = calculatedSeqs.portalChildOf\n document.body.appendChild(portalRoot)\n\n return () => {\n portalRoot.remove()\n }\n }, [portalRoot, calculatedSeqs.portalChildOf])\n\n return {\n portalRoot,\n isChildPortal: functions.isChildPortal,\n createPortal: functions.createPortal,\n PortalParentProvider: functions.PortalParentProvider,\n }\n}\n\nfunction _isChildPortal(element: HTMLElement | SVGElement | null, seqRegex: RegExp): boolean {\n if (!element) return false\n\n let includesSeq = false\n const childOf = element.dataset?.portalChildOf\n\n if (childOf) {\n includesSeq = seqRegex.test(childOf)\n }\n\n return includesSeq || _isChildPortal(element.parentElement, seqRegex)\n}\n"],"names":["_jsx"],"mappings":";;;;;;AAUA,MAAM,aAAa,GAAG,aAAa,CAAqB;AACtD,IAAA,IAAI,EAAE,EAAE;AACT,CAAA,CAAC;AAEF,IAAI,SAAS,GAAG,CAAC;SAED,SAAS,CAAC,EAAE,MAAM,KAA0B,EAAE,EAAA;IAC5D,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAwB,IAAI,CAAC;AACzE,IAAA,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;AAChD,IAAA,MAAM,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC;AAExC,IAAA,MAAM,cAAc,GAAG,OAAO,CAAC,MAAK;QAClC,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;QAEjD,OAAO;YACL,UAAU;AACV,YAAA,aAAa,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC;SACpC;IACH,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;AAE7B,IAAA,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC;AAEpE,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,MAAK;AAC7B,QAAA,MAAM,oBAAoB,GAAgC,CAAC,EAAE,QAAQ,EAAE,KAAI;AACzE,YAAA,MAAM,KAAK,GAAuB;AAChC,gBAAA,IAAI,EAAE,MAAM,CAAC,cAAc,CAAC,UAAU;aACvC;YAED,O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UAAU;QACV,aAAa,EAAE,SAAS,CAAC,aAAa;QACtC,YAAY,EAAE,SAAS,CAAC,YAAY;QACpC,oBAAoB,EAAE,SAAS,CAAC,oBAAoB;KACrD;AACH;AAEA,SAAS,cAAc,CAAC,OAAwC,EAAE,QAAgB,EAAA;AAChF,IAAA,IAAI,CAAC,OAAO;AAAE,QAAA,OAAO,KAAK;IAE1B,IAAI,WAAW,GAAG,KAAK;AACvB,IAAA,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,aAAa;IAE9C,IAAI,OAAO,EAAE;AACX,QAAA,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;IACtC;IAEA,OAAO,WAAW,IAAI,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC;AACvE;;;;"}
@@ -2,32 +2,29 @@
2
2
 
3
3
  var React = require('react');
4
4
 
5
- const useResponseStatus = (responseStatus) => {
6
- const calculated = React.useMemo(() => {
7
- if (!responseStatus) {
8
- return {
9
- isProcessing: false,
10
- status: undefined,
11
- message: '',
12
- };
13
- }
14
- if (responseStatus.status === 'processing') {
15
- return {
16
- isProcessing: true,
17
- status: undefined,
18
- message: '',
19
- };
20
- }
5
+ const useResponseStatus = (responseStatus) => React.useMemo(() => {
6
+ if (!responseStatus) {
21
7
  return {
22
8
  isProcessing: false,
23
- // HINT: statusがprocessingではない === success or errorであることが確定する
24
- // success or error の場合、text属性も必ず存在する
25
- status: responseStatus.status,
26
- message: responseStatus.text,
9
+ status: undefined,
10
+ message: '',
27
11
  };
28
- }, [responseStatus]);
29
- return calculated;
30
- };
12
+ }
13
+ if (responseStatus.status === 'processing') {
14
+ return {
15
+ isProcessing: true,
16
+ status: undefined,
17
+ message: '',
18
+ };
19
+ }
20
+ return {
21
+ isProcessing: false,
22
+ // HINT: statusがprocessingではない === success or errorであることが確定する
23
+ // success or error の場合、text属性も必ず存在する
24
+ status: responseStatus.status,
25
+ message: responseStatus.text,
26
+ };
27
+ }, [responseStatus]);
31
28
 
32
29
  exports.useResponseStatus = useResponseStatus;
33
30
  //# sourceMappingURL=useResponseStatus.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useResponseStatus.cjs","sources":["../../src/hooks/useResponseStatus.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type ResponseStatusWithoutProcessing = {\n status: 'success' | 'error'\n text: ReactNode\n}\n\nexport type ResponseStatus =\n | ResponseStatusWithoutProcessing\n | {\n status: 'processing'\n }\n\nexport const useResponseStatus = (responseStatus: ResponseStatus | undefined) => {\n const calculated = useMemo(() => {\n if (!responseStatus) {\n return {\n isProcessing: false,\n status: undefined,\n message: '',\n }\n }\n\n if (responseStatus.status === 'processing') {\n return {\n isProcessing: true,\n status: undefined,\n message: '',\n }\n }\n\n return {\n isProcessing: false,\n // HINT: statusがprocessingではない === success or errorであることが確定する\n // success or error の場合、text属性も必ず存在する\n status: responseStatus.status,\n message: responseStatus.text,\n }\n }, [responseStatus])\n\n return calculated\n}\n"],"names":["useMemo"],"mappings":";;;;AAaO,MAAM,iBAAiB,GAAG,CAAC,cAA0C,KAAI;AAC9E,IAAA,MAAM,UAAU,GAAGA,aAAO,CAAC,MAAK;QAC9B,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;AACL,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,OAAO,EAAE,EAAE;aACZ;QACH;AAEA,QAAA,IAAI,cAAc,CAAC,MAAM,KAAK,YAAY,EAAE;YAC1C,OAAO;AACL,gBAAA,YAAY,EAAE,IAAI;AAClB,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,OAAO,EAAE,EAAE;aACZ;QACH;QAEA,OAAO;AACL,YAAA,YAAY,EAAE,KAAK;;;YAGnB,MAAM,EAAE,cAAc,CAAC,MAAM;YAC7B,OAAO,EAAE,cAAc,CAAC,IAAI;SAC7B;AACH,IAAA,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;AAEpB,IAAA,OAAO,UAAU;AACnB;;;;"}
1
+ {"version":3,"file":"useResponseStatus.cjs","sources":["../../src/hooks/useResponseStatus.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type ResponseStatusWithoutProcessing = {\n status: 'success' | 'error'\n text: ReactNode\n}\n\nexport type ResponseStatus =\n | ResponseStatusWithoutProcessing\n | {\n status: 'processing'\n }\n\nexport const useResponseStatus = (responseStatus: ResponseStatus | undefined) =>\n useMemo(() => {\n if (!responseStatus) {\n return {\n isProcessing: false,\n status: undefined,\n message: '',\n }\n }\n\n if (responseStatus.status === 'processing') {\n return {\n isProcessing: true,\n status: undefined,\n message: '',\n }\n }\n\n return {\n isProcessing: false,\n // HINT: statusがprocessingではない === success or errorであることが確定する\n // success or error の場合、text属性も必ず存在する\n status: responseStatus.status,\n message: responseStatus.text,\n }\n }, [responseStatus])\n"],"names":["useMemo"],"mappings":";;;;AAaO,MAAM,iBAAiB,GAAG,CAAC,cAA0C,KAC1EA,aAAO,CAAC,MAAK;IACX,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO;AACL,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,OAAO,EAAE,EAAE;SACZ;IACH;AAEA,IAAA,IAAI,cAAc,CAAC,MAAM,KAAK,YAAY,EAAE;QAC1C,OAAO;AACL,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,OAAO,EAAE,EAAE;SACZ;IACH;IAEA,OAAO;AACL,QAAA,YAAY,EAAE,KAAK;;;QAGnB,MAAM,EAAE,cAAc,CAAC,MAAM;QAC7B,OAAO,EAAE,cAAc,CAAC,IAAI;KAC7B;AACH,CAAC,EAAE,CAAC,cAAc,CAAC;;;;"}
@@ -1,31 +1,28 @@
1
1
  import { useMemo } from 'react';
2
2
 
3
- const useResponseStatus = (responseStatus) => {
4
- const calculated = useMemo(() => {
5
- if (!responseStatus) {
6
- return {
7
- isProcessing: false,
8
- status: undefined,
9
- message: '',
10
- };
11
- }
12
- if (responseStatus.status === 'processing') {
13
- return {
14
- isProcessing: true,
15
- status: undefined,
16
- message: '',
17
- };
18
- }
3
+ const useResponseStatus = (responseStatus) => useMemo(() => {
4
+ if (!responseStatus) {
19
5
  return {
20
6
  isProcessing: false,
21
- // HINT: statusがprocessingではない === success or errorであることが確定する
22
- // success or error の場合、text属性も必ず存在する
23
- status: responseStatus.status,
24
- message: responseStatus.text,
7
+ status: undefined,
8
+ message: '',
25
9
  };
26
- }, [responseStatus]);
27
- return calculated;
28
- };
10
+ }
11
+ if (responseStatus.status === 'processing') {
12
+ return {
13
+ isProcessing: true,
14
+ status: undefined,
15
+ message: '',
16
+ };
17
+ }
18
+ return {
19
+ isProcessing: false,
20
+ // HINT: statusがprocessingではない === success or errorであることが確定する
21
+ // success or error の場合、text属性も必ず存在する
22
+ status: responseStatus.status,
23
+ message: responseStatus.text,
24
+ };
25
+ }, [responseStatus]);
29
26
 
30
27
  export { useResponseStatus };
31
28
  //# sourceMappingURL=useResponseStatus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useResponseStatus.js","sources":["../../src/hooks/useResponseStatus.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type ResponseStatusWithoutProcessing = {\n status: 'success' | 'error'\n text: ReactNode\n}\n\nexport type ResponseStatus =\n | ResponseStatusWithoutProcessing\n | {\n status: 'processing'\n }\n\nexport const useResponseStatus = (responseStatus: ResponseStatus | undefined) => {\n const calculated = useMemo(() => {\n if (!responseStatus) {\n return {\n isProcessing: false,\n status: undefined,\n message: '',\n }\n }\n\n if (responseStatus.status === 'processing') {\n return {\n isProcessing: true,\n status: undefined,\n message: '',\n }\n }\n\n return {\n isProcessing: false,\n // HINT: statusがprocessingではない === success or errorであることが確定する\n // success or error の場合、text属性も必ず存在する\n status: responseStatus.status,\n message: responseStatus.text,\n }\n }, [responseStatus])\n\n return calculated\n}\n"],"names":[],"mappings":";;AAaO,MAAM,iBAAiB,GAAG,CAAC,cAA0C,KAAI;AAC9E,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,MAAK;QAC9B,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;AACL,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,OAAO,EAAE,EAAE;aACZ;QACH;AAEA,QAAA,IAAI,cAAc,CAAC,MAAM,KAAK,YAAY,EAAE;YAC1C,OAAO;AACL,gBAAA,YAAY,EAAE,IAAI;AAClB,gBAAA,MAAM,EAAE,SAAS;AACjB,gBAAA,OAAO,EAAE,EAAE;aACZ;QACH;QAEA,OAAO;AACL,YAAA,YAAY,EAAE,KAAK;;;YAGnB,MAAM,EAAE,cAAc,CAAC,MAAM;YAC7B,OAAO,EAAE,cAAc,CAAC,IAAI;SAC7B;AACH,IAAA,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;AAEpB,IAAA,OAAO,UAAU;AACnB;;;;"}
1
+ {"version":3,"file":"useResponseStatus.js","sources":["../../src/hooks/useResponseStatus.ts"],"sourcesContent":["import { type ReactNode, useMemo } from 'react'\n\nexport type ResponseStatusWithoutProcessing = {\n status: 'success' | 'error'\n text: ReactNode\n}\n\nexport type ResponseStatus =\n | ResponseStatusWithoutProcessing\n | {\n status: 'processing'\n }\n\nexport const useResponseStatus = (responseStatus: ResponseStatus | undefined) =>\n useMemo(() => {\n if (!responseStatus) {\n return {\n isProcessing: false,\n status: undefined,\n message: '',\n }\n }\n\n if (responseStatus.status === 'processing') {\n return {\n isProcessing: true,\n status: undefined,\n message: '',\n }\n }\n\n return {\n isProcessing: false,\n // HINT: statusがprocessingではない === success or errorであることが確定する\n // success or error の場合、text属性も必ず存在する\n status: responseStatus.status,\n message: responseStatus.text,\n }\n }, [responseStatus])\n"],"names":[],"mappings":";;AAaO,MAAM,iBAAiB,GAAG,CAAC,cAA0C,KAC1E,OAAO,CAAC,MAAK;IACX,IAAI,CAAC,cAAc,EAAE;QACnB,OAAO;AACL,YAAA,YAAY,EAAE,KAAK;AACnB,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,OAAO,EAAE,EAAE;SACZ;IACH;AAEA,IAAA,IAAI,cAAc,CAAC,MAAM,KAAK,YAAY,EAAE;QAC1C,OAAO;AACL,YAAA,YAAY,EAAE,IAAI;AAClB,YAAA,MAAM,EAAE,SAAS;AACjB,YAAA,OAAO,EAAE,EAAE;SACZ;IACH;IAEA,OAAO;AACL,QAAA,YAAY,EAAE,KAAK;;;QAGnB,MAAM,EAAE,cAAc,CAAC,MAAM;QAC7B,OAAO,EAAE,cAAc,CAAC,IAAI;KAC7B;AACH,CAAC,EAAE,CAAC,cAAc,CAAC;;;;"}
@@ -66,6 +66,7 @@ var enUs = {
66
66
  "smarthr-ui/InputFile/download": "Download",
67
67
  "smarthr-ui/InputFile/previewLabel": "Open preview for {fileName}",
68
68
  "smarthr-ui/InputFile/downloadLabel": "Download {fileName}",
69
+ "smarthr-ui/InputFile/closePreview": "Close",
69
70
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "Selected",
70
71
  "smarthr-ui/Loader/alt": "In Progress",
71
72
  "smarthr-ui/MessageDialog/closeButtonLabel": "Close",
@@ -1 +1 @@
1
- {"version":3,"file":"en_us.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en_us.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -64,6 +64,7 @@ var enUs = {
64
64
  "smarthr-ui/InputFile/download": "Download",
65
65
  "smarthr-ui/InputFile/previewLabel": "Open preview for {fileName}",
66
66
  "smarthr-ui/InputFile/downloadLabel": "Download {fileName}",
67
+ "smarthr-ui/InputFile/closePreview": "Close",
67
68
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "Selected",
68
69
  "smarthr-ui/Loader/alt": "In Progress",
69
70
  "smarthr-ui/MessageDialog/closeButtonLabel": "Close",
@@ -1 +1 @@
1
- {"version":3,"file":"en_us.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"en_us.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -46,13 +46,10 @@ var idId = {
46
46
  "smarthr-ui/DropdownMenuButton/triggerActive": "Tutup pilihan",
47
47
  "smarthr-ui/DropdownMenuButton/triggerInactive": "Buka pilihan",
48
48
  "smarthr-ui/DropZone/selectButtonLabel": "Pilih file",
49
- "smarthr-ui/FileViewer/nextMatchAlt": "",
50
- "smarthr-ui/FileViewer/previousMatchAlt": "",
51
49
  "smarthr-ui/FileViewer/rotateAlt": "Putar ke kiri",
52
50
  "smarthr-ui/FileViewer/scaleDownAlt": "Perkecil",
53
51
  "smarthr-ui/FileViewer/scaleRateLabel": "Skala pembesaran",
54
52
  "smarthr-ui/FileViewer/scaleUpAlt": "Perbesar",
55
- "smarthr-ui/FileViewer/searchInputTooltipMessage": "",
56
53
  "smarthr-ui/FileViewer/unsupportedFileText": "Format file tidak didukung.",
57
54
  "smarthr-ui/FilterDropdown/applyText": "Terapkan",
58
55
  "smarthr-ui/FilterDropdown/cancelText": "Batal",
@@ -63,9 +60,6 @@ var idId = {
63
60
  "smarthr-ui/InformationPanel/closeButtonLabel": "Tutup",
64
61
  "smarthr-ui/InformationPanel/openButtonLabel": "Buka",
65
62
  "smarthr-ui/InputFile/destroy": "Hapus",
66
- "smarthr-ui/InputFile/download": "",
67
- "smarthr-ui/InputFile/previewLabel": "",
68
- "smarthr-ui/InputFile/downloadLabel": "",
69
63
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "Dipilih",
70
64
  "smarthr-ui/Loader/alt": "Sedang diproses",
71
65
  "smarthr-ui/MessageDialog/closeButtonLabel": "Tutup",
@@ -115,10 +109,8 @@ var idId = {
115
109
  "smarthr-ui/NotFoundErrorScreen/title": "Halaman yang Anda cari tidak ditemukan.",
116
110
  "smarthr-ui/NotFoundErrorScreen/description": "Halaman yang Anda cari mungkin tidak dapat diakses untuk sementara, atau mungkin telah dipindahkan atau dihapus.",
117
111
  "smarthr-ui/UnauthorizedErrorScreen/title": "Anda telah logout karena tidak ada aktivitas selama jangka waktu tertentu.",
118
- "smarthr-ui/UnauthorizedErrorScreen/description": "",
119
112
  "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": "Login ulang",
120
113
  "smarthr-ui/UnexpectedErrorScreen/title": "Terjadi kesalahan yang tidak terduga.",
121
- "smarthr-ui/UnexpectedErrorScreen/description": "",
122
114
  "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": "Kami mohon maaf, tetapi silakan coba yang berikut ini.",
123
115
  "smarthr-ui/UnexpectedErrorScreen/retryItem1": "Silakan tunggu beberapa saat dan coba lagi.",
124
116
  "smarthr-ui/UnexpectedErrorScreen/retryItem2": "Silakan periksa {maintenanceLink} (mungkin memerlukan waktu hingga informasi ditampilkan).",
@@ -1 +1 @@
1
- {"version":3,"file":"id_id.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"id_id.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -44,13 +44,10 @@ var idId = {
44
44
  "smarthr-ui/DropdownMenuButton/triggerActive": "Tutup pilihan",
45
45
  "smarthr-ui/DropdownMenuButton/triggerInactive": "Buka pilihan",
46
46
  "smarthr-ui/DropZone/selectButtonLabel": "Pilih file",
47
- "smarthr-ui/FileViewer/nextMatchAlt": "",
48
- "smarthr-ui/FileViewer/previousMatchAlt": "",
49
47
  "smarthr-ui/FileViewer/rotateAlt": "Putar ke kiri",
50
48
  "smarthr-ui/FileViewer/scaleDownAlt": "Perkecil",
51
49
  "smarthr-ui/FileViewer/scaleRateLabel": "Skala pembesaran",
52
50
  "smarthr-ui/FileViewer/scaleUpAlt": "Perbesar",
53
- "smarthr-ui/FileViewer/searchInputTooltipMessage": "",
54
51
  "smarthr-ui/FileViewer/unsupportedFileText": "Format file tidak didukung.",
55
52
  "smarthr-ui/FilterDropdown/applyText": "Terapkan",
56
53
  "smarthr-ui/FilterDropdown/cancelText": "Batal",
@@ -61,9 +58,6 @@ var idId = {
61
58
  "smarthr-ui/InformationPanel/closeButtonLabel": "Tutup",
62
59
  "smarthr-ui/InformationPanel/openButtonLabel": "Buka",
63
60
  "smarthr-ui/InputFile/destroy": "Hapus",
64
- "smarthr-ui/InputFile/download": "",
65
- "smarthr-ui/InputFile/previewLabel": "",
66
- "smarthr-ui/InputFile/downloadLabel": "",
67
61
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "Dipilih",
68
62
  "smarthr-ui/Loader/alt": "Sedang diproses",
69
63
  "smarthr-ui/MessageDialog/closeButtonLabel": "Tutup",
@@ -113,10 +107,8 @@ var idId = {
113
107
  "smarthr-ui/NotFoundErrorScreen/title": "Halaman yang Anda cari tidak ditemukan.",
114
108
  "smarthr-ui/NotFoundErrorScreen/description": "Halaman yang Anda cari mungkin tidak dapat diakses untuk sementara, atau mungkin telah dipindahkan atau dihapus.",
115
109
  "smarthr-ui/UnauthorizedErrorScreen/title": "Anda telah logout karena tidak ada aktivitas selama jangka waktu tertentu.",
116
- "smarthr-ui/UnauthorizedErrorScreen/description": "",
117
110
  "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": "Login ulang",
118
111
  "smarthr-ui/UnexpectedErrorScreen/title": "Terjadi kesalahan yang tidak terduga.",
119
- "smarthr-ui/UnexpectedErrorScreen/description": "",
120
112
  "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": "Kami mohon maaf, tetapi silakan coba yang berikut ini.",
121
113
  "smarthr-ui/UnexpectedErrorScreen/retryItem1": "Silakan tunggu beberapa saat dan coba lagi.",
122
114
  "smarthr-ui/UnexpectedErrorScreen/retryItem2": "Silakan periksa {maintenanceLink} (mungkin memerlukan waktu hingga informasi ditampilkan).",
@@ -1 +1 @@
1
- {"version":3,"file":"id_id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"id_id.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -199,6 +199,7 @@ export declare const locales: {
199
199
  "smarthr-ui/InputFile/download": string;
200
200
  "smarthr-ui/InputFile/previewLabel": string;
201
201
  "smarthr-ui/InputFile/downloadLabel": string;
202
+ "smarthr-ui/InputFile/closePreview": string;
202
203
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
203
204
  "smarthr-ui/Loader/alt": string;
204
205
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -311,13 +312,10 @@ export declare const locales: {
311
312
  "smarthr-ui/DropdownMenuButton/triggerActive": string;
312
313
  "smarthr-ui/DropdownMenuButton/triggerInactive": string;
313
314
  "smarthr-ui/DropZone/selectButtonLabel": string;
314
- "smarthr-ui/FileViewer/nextMatchAlt": string;
315
- "smarthr-ui/FileViewer/previousMatchAlt": string;
316
315
  "smarthr-ui/FileViewer/rotateAlt": string;
317
316
  "smarthr-ui/FileViewer/scaleDownAlt": string;
318
317
  "smarthr-ui/FileViewer/scaleRateLabel": string;
319
318
  "smarthr-ui/FileViewer/scaleUpAlt": string;
320
- "smarthr-ui/FileViewer/searchInputTooltipMessage": string;
321
319
  "smarthr-ui/FileViewer/unsupportedFileText": string;
322
320
  "smarthr-ui/FilterDropdown/applyText": string;
323
321
  "smarthr-ui/FilterDropdown/cancelText": string;
@@ -328,9 +326,6 @@ export declare const locales: {
328
326
  "smarthr-ui/InformationPanel/closeButtonLabel": string;
329
327
  "smarthr-ui/InformationPanel/openButtonLabel": string;
330
328
  "smarthr-ui/InputFile/destroy": string;
331
- "smarthr-ui/InputFile/download": string;
332
- "smarthr-ui/InputFile/previewLabel": string;
333
- "smarthr-ui/InputFile/downloadLabel": string;
334
329
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
335
330
  "smarthr-ui/Loader/alt": string;
336
331
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -380,10 +375,8 @@ export declare const locales: {
380
375
  "smarthr-ui/NotFoundErrorScreen/title": string;
381
376
  "smarthr-ui/NotFoundErrorScreen/description": string;
382
377
  "smarthr-ui/UnauthorizedErrorScreen/title": string;
383
- "smarthr-ui/UnauthorizedErrorScreen/description": string;
384
378
  "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": string;
385
379
  "smarthr-ui/UnexpectedErrorScreen/title": string;
386
- "smarthr-ui/UnexpectedErrorScreen/description": string;
387
380
  "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": string;
388
381
  "smarthr-ui/UnexpectedErrorScreen/retryItem1": string;
389
382
  "smarthr-ui/UnexpectedErrorScreen/retryItem2": string;
@@ -443,13 +436,10 @@ export declare const locales: {
443
436
  "smarthr-ui/DropdownMenuButton/triggerActive": string;
444
437
  "smarthr-ui/DropdownMenuButton/triggerInactive": string;
445
438
  "smarthr-ui/DropZone/selectButtonLabel": string;
446
- "smarthr-ui/FileViewer/nextMatchAlt": string;
447
- "smarthr-ui/FileViewer/previousMatchAlt": string;
448
439
  "smarthr-ui/FileViewer/rotateAlt": string;
449
440
  "smarthr-ui/FileViewer/scaleDownAlt": string;
450
441
  "smarthr-ui/FileViewer/scaleRateLabel": string;
451
442
  "smarthr-ui/FileViewer/scaleUpAlt": string;
452
- "smarthr-ui/FileViewer/searchInputTooltipMessage": string;
453
443
  "smarthr-ui/FileViewer/unsupportedFileText": string;
454
444
  "smarthr-ui/FilterDropdown/applyText": string;
455
445
  "smarthr-ui/FilterDropdown/cancelText": string;
@@ -460,9 +450,6 @@ export declare const locales: {
460
450
  "smarthr-ui/InformationPanel/closeButtonLabel": string;
461
451
  "smarthr-ui/InformationPanel/openButtonLabel": string;
462
452
  "smarthr-ui/InputFile/destroy": string;
463
- "smarthr-ui/InputFile/download": string;
464
- "smarthr-ui/InputFile/previewLabel": string;
465
- "smarthr-ui/InputFile/downloadLabel": string;
466
453
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
467
454
  "smarthr-ui/Loader/alt": string;
468
455
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -512,10 +499,8 @@ export declare const locales: {
512
499
  "smarthr-ui/NotFoundErrorScreen/title": string;
513
500
  "smarthr-ui/NotFoundErrorScreen/description": string;
514
501
  "smarthr-ui/UnauthorizedErrorScreen/title": string;
515
- "smarthr-ui/UnauthorizedErrorScreen/description": string;
516
502
  "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": string;
517
503
  "smarthr-ui/UnexpectedErrorScreen/title": string;
518
- "smarthr-ui/UnexpectedErrorScreen/description": string;
519
504
  "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": string;
520
505
  "smarthr-ui/UnexpectedErrorScreen/retryItem1": string;
521
506
  "smarthr-ui/UnexpectedErrorScreen/retryItem2": string;
@@ -595,6 +580,7 @@ export declare const locales: {
595
580
  "smarthr-ui/InputFile/download": string;
596
581
  "smarthr-ui/InputFile/previewLabel": string;
597
582
  "smarthr-ui/InputFile/downloadLabel": string;
583
+ "smarthr-ui/InputFile/closePreview": string;
598
584
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
599
585
  "smarthr-ui/Loader/alt": string;
600
586
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -727,6 +713,7 @@ export declare const locales: {
727
713
  "smarthr-ui/InputFile/download": string;
728
714
  "smarthr-ui/InputFile/previewLabel": string;
729
715
  "smarthr-ui/InputFile/downloadLabel": string;
716
+ "smarthr-ui/InputFile/closePreview": string;
730
717
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
731
718
  "smarthr-ui/Loader/alt": string;
732
719
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -859,6 +846,7 @@ export declare const locales: {
859
846
  "smarthr-ui/InputFile/download": string;
860
847
  "smarthr-ui/InputFile/previewLabel": string;
861
848
  "smarthr-ui/InputFile/downloadLabel": string;
849
+ "smarthr-ui/InputFile/closePreview": string;
862
850
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
863
851
  "smarthr-ui/Loader/alt": string;
864
852
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -991,6 +979,7 @@ export declare const locales: {
991
979
  "smarthr-ui/InputFile/download": string;
992
980
  "smarthr-ui/InputFile/previewLabel": string;
993
981
  "smarthr-ui/InputFile/downloadLabel": string;
982
+ "smarthr-ui/InputFile/closePreview": string;
994
983
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
995
984
  "smarthr-ui/Loader/alt": string;
996
985
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -1123,6 +1112,7 @@ export declare const locales: {
1123
1112
  "smarthr-ui/InputFile/download": string;
1124
1113
  "smarthr-ui/InputFile/previewLabel": string;
1125
1114
  "smarthr-ui/InputFile/downloadLabel": string;
1115
+ "smarthr-ui/InputFile/closePreview": string;
1126
1116
  "smarthr-ui/LanguageSwitcher/checkIconAlt": string;
1127
1117
  "smarthr-ui/Loader/alt": string;
1128
1118
  "smarthr-ui/MessageDialog/closeButtonLabel": string;
@@ -66,6 +66,7 @@ var jaEasy = {
66
66
  "smarthr-ui/InputFile/download": "ダウンロード",
67
67
  "smarthr-ui/InputFile/previewLabel": "{fileName}の プレビューを 開く",
68
68
  "smarthr-ui/InputFile/downloadLabel": "{fileName}を ダウンロード\"",
69
+ "smarthr-ui/InputFile/closePreview": "閉じる",
69
70
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "えらんだ",
70
71
  "smarthr-ui/Loader/alt": "処理している",
71
72
  "smarthr-ui/MessageDialog/closeButtonLabel": "閉じる",
@@ -1 +1 @@
1
- {"version":3,"file":"ja_easy.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ja_easy.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -64,6 +64,7 @@ var jaEasy = {
64
64
  "smarthr-ui/InputFile/download": "ダウンロード",
65
65
  "smarthr-ui/InputFile/previewLabel": "{fileName}の プレビューを 開く",
66
66
  "smarthr-ui/InputFile/downloadLabel": "{fileName}を ダウンロード\"",
67
+ "smarthr-ui/InputFile/closePreview": "閉じる",
67
68
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "えらんだ",
68
69
  "smarthr-ui/Loader/alt": "処理している",
69
70
  "smarthr-ui/MessageDialog/closeButtonLabel": "閉じる",
@@ -1 +1 @@
1
- {"version":3,"file":"ja_easy.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ja_easy.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -66,6 +66,7 @@ var ko = {
66
66
  "smarthr-ui/InputFile/download": "다운로드",
67
67
  "smarthr-ui/InputFile/previewLabel": "{fileName}의 미리보기 열기",
68
68
  "smarthr-ui/InputFile/downloadLabel": "{fileName} 다운로드",
69
+ "smarthr-ui/InputFile/closePreview": "닫기",
69
70
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "선택중",
70
71
  "smarthr-ui/Loader/alt": "처리중",
71
72
  "smarthr-ui/MessageDialog/closeButtonLabel": "닫기",
@@ -1 +1 @@
1
- {"version":3,"file":"ko_kr.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ko_kr.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -64,6 +64,7 @@ var ko = {
64
64
  "smarthr-ui/InputFile/download": "다운로드",
65
65
  "smarthr-ui/InputFile/previewLabel": "{fileName}의 미리보기 열기",
66
66
  "smarthr-ui/InputFile/downloadLabel": "{fileName} 다운로드",
67
+ "smarthr-ui/InputFile/closePreview": "닫기",
67
68
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "선택중",
68
69
  "smarthr-ui/Loader/alt": "처리중",
69
70
  "smarthr-ui/MessageDialog/closeButtonLabel": "닫기",
@@ -1 +1 @@
1
- {"version":3,"file":"ko_kr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ko_kr.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -46,13 +46,10 @@ var pt = {
46
46
  "smarthr-ui/DropdownMenuButton/triggerActive": "Fechar opções",
47
47
  "smarthr-ui/DropdownMenuButton/triggerInactive": "Abrir opções",
48
48
  "smarthr-ui/DropZone/selectButtonLabel": "Selecionar arquivo para upload",
49
- "smarthr-ui/FileViewer/nextMatchAlt": "",
50
- "smarthr-ui/FileViewer/previousMatchAlt": "",
51
49
  "smarthr-ui/FileViewer/rotateAlt": "Girar para esquerda",
52
50
  "smarthr-ui/FileViewer/scaleDownAlt": "Reduzir",
53
51
  "smarthr-ui/FileViewer/scaleRateLabel": "Escala de ampliação (%)",
54
52
  "smarthr-ui/FileViewer/scaleUpAlt": "Ampliar",
55
- "smarthr-ui/FileViewer/searchInputTooltipMessage": "",
56
53
  "smarthr-ui/FileViewer/unsupportedFileText": "Tipo de arquivo não compatível.",
57
54
  "smarthr-ui/FilterDropdown/applyText": "Aplicar",
58
55
  "smarthr-ui/FilterDropdown/cancelText": "Cancelar",
@@ -63,9 +60,6 @@ var pt = {
63
60
  "smarthr-ui/InformationPanel/closeButtonLabel": "Fechar",
64
61
  "smarthr-ui/InformationPanel/openButtonLabel": "Abrir",
65
62
  "smarthr-ui/InputFile/destroy": "Apagar",
66
- "smarthr-ui/InputFile/download": "",
67
- "smarthr-ui/InputFile/previewLabel": "",
68
- "smarthr-ui/InputFile/downloadLabel": "",
69
63
  "smarthr-ui/LanguageSwitcher/checkIconAlt": "Selecionando",
70
64
  "smarthr-ui/Loader/alt": "Processando",
71
65
  "smarthr-ui/MessageDialog/closeButtonLabel": "Fechar",
@@ -115,10 +109,8 @@ var pt = {
115
109
  "smarthr-ui/NotFoundErrorScreen/title": "A página procurada não foi encontrada",
116
110
  "smarthr-ui/NotFoundErrorScreen/description": "A página procurada está temporariamente indisponível ou pode ter sido transferida ou apagada.",
117
111
  "smarthr-ui/UnauthorizedErrorScreen/title": "Sessão encerrada por inatividade",
118
- "smarthr-ui/UnauthorizedErrorScreen/description": "",
119
112
  "smarthr-ui/UnauthorizedErrorScreen/reLoginButton": "Fazer login novamente",
120
113
  "smarthr-ui/UnexpectedErrorScreen/title": "Ocorreu um erro inesperado",
121
- "smarthr-ui/UnexpectedErrorScreen/description": "",
122
114
  "smarthr-ui/UnexpectedErrorScreen/pleaseRetry": "Por favor, tente o seguinte:",
123
115
  "smarthr-ui/UnexpectedErrorScreen/retryItem1": "Aguarde um pouco e tente novamente.",
124
116
  "smarthr-ui/UnexpectedErrorScreen/retryItem2": "Verifique {maintenanceLink} (pode demorar até as informações serem divulgadas).",
@@ -1 +1 @@
1
- {"version":3,"file":"pt_br.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"pt_br.json.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}