@paperless/core 0.1.0-alpha.43 → 0.1.0-alpha.430

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 (1091) hide show
  1. package/CHANGELOG.md +4109 -0
  2. package/README.md +9 -1
  3. package/dist/assets/i18n/page-size-select.i18n.en.json +4 -0
  4. package/dist/assets/i18n/page-size-select.i18n.nl.json +4 -0
  5. package/dist/assets/i18n/table-footer.i18n.en.json +3 -0
  6. package/dist/assets/i18n/table-footer.i18n.nl.json +3 -0
  7. package/dist/assets/i18n/table-header.i18n.en.json +6 -0
  8. package/dist/assets/i18n/table-header.i18n.nl.json +6 -0
  9. package/dist/assets/i18n/table.i18n.en.json +13 -0
  10. package/dist/assets/i18n/table.i18n.nl.json +13 -0
  11. package/dist/assets/icons/camera.svg +10 -0
  12. package/dist/assets/icons/filter.svg +6 -13
  13. package/dist/assets/icons/menu.svg +25 -0
  14. package/dist/assets/icons/more.svg +18 -0
  15. package/dist/assets/icons/notification.svg +10 -0
  16. package/dist/assets/icons/reload.svg +10 -0
  17. package/dist/assets/icons/signout.svg +23 -0
  18. package/dist/assets/icons/switch.svg +20 -0
  19. package/dist/assets/illustrations/e-mail.svg +1 -0
  20. package/dist/assets/illustrations/empty-state-add.svg +65 -0
  21. package/dist/assets/illustrations/empty-state-overview.svg +58 -0
  22. package/dist/assets/illustrations/empty-state-search.svg +88 -0
  23. package/dist/assets/images/helper/helper-hover.svg +6 -6
  24. package/dist/assets/images/helper/helper.svg +2 -2
  25. package/dist/build/index.esm.js +2 -0
  26. package/dist/build/index.esm.js.map +1 -0
  27. package/dist/build/p-09ea2a1a.js +2 -0
  28. package/dist/build/p-09ea2a1a.js.map +1 -0
  29. package/dist/build/p-0a3f2fe8.entry.js +2 -0
  30. package/dist/build/p-0a3f2fe8.entry.js.map +1 -0
  31. package/dist/build/p-0cb97c5e.entry.js +2 -0
  32. package/dist/build/p-0cb97c5e.entry.js.map +1 -0
  33. package/dist/build/p-0e0bffb3.entry.js +2 -0
  34. package/dist/build/p-0e0bffb3.entry.js.map +1 -0
  35. package/dist/build/p-10ad607e.entry.js +2 -0
  36. package/dist/build/p-10ad607e.entry.js.map +1 -0
  37. package/dist/build/p-1b5292a3.entry.js +2 -0
  38. package/dist/build/p-1b5292a3.entry.js.map +1 -0
  39. package/dist/build/p-3d8b5cc4.entry.js +2 -0
  40. package/dist/build/p-3d8b5cc4.entry.js.map +1 -0
  41. package/dist/build/p-3dcc02d8.entry.js +2 -0
  42. package/dist/build/p-3dcc02d8.entry.js.map +1 -0
  43. package/dist/build/p-45dfd940.entry.js +2 -0
  44. package/dist/build/p-45dfd940.entry.js.map +1 -0
  45. package/dist/build/p-464569dc.entry.js +2 -0
  46. package/dist/build/p-464569dc.entry.js.map +1 -0
  47. package/dist/build/p-4e650fe4.js +2 -0
  48. package/dist/build/p-4e650fe4.js.map +1 -0
  49. package/dist/build/p-5236b565.entry.js +2 -0
  50. package/dist/build/p-5236b565.entry.js.map +1 -0
  51. package/dist/build/p-57411b2b.entry.js +2 -0
  52. package/dist/build/p-57411b2b.entry.js.map +1 -0
  53. package/dist/build/p-58b52568.entry.js +2 -0
  54. package/dist/build/p-58b52568.entry.js.map +1 -0
  55. package/dist/build/p-5d118f66.entry.js +2 -0
  56. package/dist/build/p-5d118f66.entry.js.map +1 -0
  57. package/dist/build/p-6b7d2d41.entry.js +2 -0
  58. package/dist/build/p-6b7d2d41.entry.js.map +1 -0
  59. package/dist/build/p-6c60fd3d.js +2 -0
  60. package/dist/build/p-6c60fd3d.js.map +1 -0
  61. package/dist/build/p-6f82a1e7.entry.js +2 -0
  62. package/dist/build/p-6f82a1e7.entry.js.map +1 -0
  63. package/dist/build/p-6fd261ab.entry.js +2 -0
  64. package/dist/build/p-6fd261ab.entry.js.map +1 -0
  65. package/dist/build/p-7010541f.entry.js +2 -0
  66. package/dist/build/p-7010541f.entry.js.map +1 -0
  67. package/dist/build/p-756c06ec.entry.js +2 -0
  68. package/dist/build/p-756c06ec.entry.js.map +1 -0
  69. package/dist/build/p-78948e08.entry.js +2 -0
  70. package/dist/build/p-78948e08.entry.js.map +1 -0
  71. package/dist/build/p-78ce77d2.entry.js +2 -0
  72. package/dist/build/p-78ce77d2.entry.js.map +1 -0
  73. package/dist/build/p-7b94bc6a.entry.js +2 -0
  74. package/dist/build/p-7b94bc6a.entry.js.map +1 -0
  75. package/dist/build/p-8a6728d5.js +2 -0
  76. package/dist/build/p-8a6728d5.js.map +1 -0
  77. package/dist/build/p-8fb43cc7.entry.js +2 -0
  78. package/dist/build/p-8fb43cc7.entry.js.map +1 -0
  79. package/dist/build/p-93fb216c.entry.js +2 -0
  80. package/dist/build/p-93fb216c.entry.js.map +1 -0
  81. package/dist/build/p-9ee7b088.entry.js +2 -0
  82. package/dist/build/p-9ee7b088.entry.js.map +1 -0
  83. package/dist/build/p-a2bd1a79.entry.js +2 -0
  84. package/dist/build/p-a2bd1a79.entry.js.map +1 -0
  85. package/dist/build/p-a3fcf8b6.entry.js +2 -0
  86. package/dist/build/p-a3fcf8b6.entry.js.map +1 -0
  87. package/dist/build/p-a89bc06c.entry.js +2 -0
  88. package/dist/build/p-a89bc06c.entry.js.map +1 -0
  89. package/dist/build/p-ac1af618.js +3 -0
  90. package/dist/build/p-ac1af618.js.map +1 -0
  91. package/dist/build/p-ac7b48ff.entry.js +2 -0
  92. package/dist/build/p-ac7b48ff.entry.js.map +1 -0
  93. package/dist/build/p-b13a0ee4.entry.js +2 -0
  94. package/dist/build/p-b13a0ee4.entry.js.map +1 -0
  95. package/dist/build/p-b273ac6d.js +2 -0
  96. package/dist/build/p-b273ac6d.js.map +1 -0
  97. package/dist/build/p-b450d46f.entry.js +2 -0
  98. package/dist/build/p-b450d46f.entry.js.map +1 -0
  99. package/dist/build/p-b7b1de31.entry.js +2 -0
  100. package/dist/build/p-b7b1de31.entry.js.map +1 -0
  101. package/dist/build/p-bd85ff72.entry.js +2 -0
  102. package/dist/build/p-bd85ff72.entry.js.map +1 -0
  103. package/dist/build/p-befde602.entry.js +2 -0
  104. package/dist/build/p-befde602.entry.js.map +1 -0
  105. package/dist/build/p-c6ef7b79.entry.js +2 -0
  106. package/dist/build/p-c6ef7b79.entry.js.map +1 -0
  107. package/dist/build/p-cccc37c0.entry.js +2 -0
  108. package/dist/build/p-cccc37c0.entry.js.map +1 -0
  109. package/dist/build/p-d7d7f5d0.entry.js +2 -0
  110. package/dist/build/p-d7d7f5d0.entry.js.map +1 -0
  111. package/dist/build/p-dc01e9eb.entry.js +2 -0
  112. package/dist/build/p-dc01e9eb.entry.js.map +1 -0
  113. package/dist/build/p-dd2a50d0.entry.js +2 -0
  114. package/dist/build/p-dd2a50d0.entry.js.map +1 -0
  115. package/dist/build/p-e0f41dd5.entry.js +2 -0
  116. package/dist/build/p-e0f41dd5.entry.js.map +1 -0
  117. package/dist/build/p-e621e34c.js +2 -0
  118. package/dist/build/p-e621e34c.js.map +1 -0
  119. package/dist/build/p-ea824ef3.entry.js +2 -0
  120. package/dist/build/p-ea824ef3.entry.js.map +1 -0
  121. package/dist/build/p-ebc2ae62.entry.js +2 -0
  122. package/dist/build/p-ebc2ae62.entry.js.map +1 -0
  123. package/dist/build/p-f07793f6.entry.js +2 -0
  124. package/dist/build/p-f07793f6.entry.js.map +1 -0
  125. package/dist/build/paperless.css +1 -92
  126. package/dist/build/paperless.esm.js +2 -1
  127. package/dist/build/paperless.esm.js.map +1 -0
  128. package/dist/cjs/child-of-e472f812.js +11 -0
  129. package/dist/cjs/child-of-e472f812.js.map +1 -0
  130. package/dist/cjs/constants-a4459ec9.js +9 -0
  131. package/dist/cjs/constants-a4459ec9.js.map +1 -0
  132. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js +1324 -0
  133. package/dist/cjs/floating-ui.dom.esm-4cb215a4.js.map +1 -0
  134. package/dist/cjs/index-040ec3f9.js +2483 -0
  135. package/dist/cjs/index-040ec3f9.js.map +1 -0
  136. package/dist/cjs/{index-f9c302b6.js → index-13ea09e0.js} +975 -294
  137. package/dist/cjs/index-13ea09e0.js.map +1 -0
  138. package/dist/cjs/index.cjs.js +19 -0
  139. package/dist/cjs/index.cjs.js.map +1 -0
  140. package/dist/cjs/loader.cjs.js +6 -3
  141. package/dist/cjs/loader.cjs.js.map +1 -0
  142. package/dist/cjs/localization-9e2ac7f3.js +62 -0
  143. package/dist/cjs/localization-9e2ac7f3.js.map +1 -0
  144. package/dist/cjs/object-get-by-path-6dc21ed5.js +14 -0
  145. package/dist/cjs/object-get-by-path-6dc21ed5.js.map +1 -0
  146. package/dist/cjs/p-accordion.cjs.entry.js +36 -0
  147. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -0
  148. package/dist/cjs/p-attachment.cjs.entry.js +39 -0
  149. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -0
  150. package/dist/cjs/p-avatar-group.cjs.entry.js +22 -0
  151. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -0
  152. package/dist/cjs/p-avatar.cjs.entry.js +20 -10
  153. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -0
  154. package/dist/cjs/p-backdrop.cjs.entry.js +43 -0
  155. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -0
  156. package/dist/cjs/p-button_3.cjs.entry.js +212 -109
  157. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  158. package/dist/cjs/p-calendar.cjs.entry.js +710 -0
  159. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -0
  160. package/dist/cjs/p-card-body.cjs.entry.js +5 -6
  161. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -0
  162. package/dist/cjs/p-card-container.cjs.entry.js +6 -6
  163. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -0
  164. package/dist/cjs/p-card-header.cjs.entry.js +6 -6
  165. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -0
  166. package/dist/cjs/p-content-slider.cjs.entry.js +212 -0
  167. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -0
  168. package/dist/cjs/p-counter.cjs.entry.js +7 -3
  169. package/dist/cjs/p-counter.cjs.entry.js.map +1 -0
  170. package/dist/cjs/p-datepicker.cjs.entry.js +4083 -0
  171. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -0
  172. package/dist/cjs/p-divider.cjs.entry.js +8 -3
  173. package/dist/cjs/p-divider.cjs.entry.js.map +1 -0
  174. package/dist/cjs/p-drawer-body_3.cjs.entry.js +51 -0
  175. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -0
  176. package/dist/cjs/p-drawer.cjs.entry.js +65 -0
  177. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -0
  178. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +7 -3
  179. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -0
  180. package/dist/cjs/p-dropdown_2.cjs.entry.js +165 -0
  181. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -0
  182. package/dist/cjs/p-helper_3.cjs.entry.js +144 -0
  183. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -0
  184. package/dist/cjs/p-illustration_6.cjs.entry.js +2798 -0
  185. package/dist/cjs/p-illustration_6.cjs.entry.js.map +1 -0
  186. package/dist/cjs/p-info-panel.cjs.entry.js +6 -8
  187. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -0
  188. package/dist/cjs/p-label_3.cjs.entry.js +65 -0
  189. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -0
  190. package/dist/cjs/p-layout.cjs.entry.js +22 -0
  191. package/dist/cjs/p-layout.cjs.entry.js.map +1 -0
  192. package/dist/cjs/p-modal-body_4.cjs.entry.js +79 -0
  193. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -0
  194. package/dist/cjs/p-modal.cjs.entry.js +36 -14
  195. package/dist/cjs/p-modal.cjs.entry.js.map +1 -0
  196. package/dist/cjs/p-navbar.cjs.entry.js +30 -0
  197. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -0
  198. package/dist/cjs/p-navigation-item.cjs.entry.js +9 -6
  199. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -0
  200. package/dist/cjs/p-page-size-select_3.cjs.entry.js +224 -0
  201. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -0
  202. package/dist/cjs/p-profile.cjs.entry.js +45 -0
  203. package/dist/cjs/p-profile.cjs.entry.js.map +1 -0
  204. package/dist/cjs/p-select.cjs.entry.js +246 -0
  205. package/dist/cjs/p-select.cjs.entry.js.map +1 -0
  206. package/dist/cjs/p-slider-indicator.cjs.entry.js +22 -0
  207. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -0
  208. package/dist/cjs/p-status.cjs.entry.js +7 -5
  209. package/dist/cjs/p-status.cjs.entry.js.map +1 -0
  210. package/dist/cjs/p-stepper-item.cjs.entry.js +26 -0
  211. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -0
  212. package/dist/cjs/p-stepper-line.cjs.entry.js +23 -0
  213. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -0
  214. package/dist/cjs/p-stepper.cjs.entry.js +80 -0
  215. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -0
  216. package/dist/cjs/p-tab-group.cjs.entry.js +20 -0
  217. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -0
  218. package/dist/cjs/p-tab-item.cjs.entry.js +22 -0
  219. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -0
  220. package/dist/cjs/p-table-column.cjs.entry.js +28 -0
  221. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -0
  222. package/dist/cjs/p-table.cjs.entry.js +352 -0
  223. package/dist/cjs/p-table.cjs.entry.js.map +1 -0
  224. package/dist/cjs/p-toast-container.cjs.entry.js +22 -0
  225. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -0
  226. package/dist/cjs/p-toast.cjs.entry.js +35 -0
  227. package/dist/cjs/p-toast.cjs.entry.js.map +1 -0
  228. package/dist/cjs/p-tooltip.cjs.entry.js +56 -55
  229. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -0
  230. package/dist/cjs/paperless.cjs.js +12 -3
  231. package/dist/cjs/paperless.cjs.js.map +1 -0
  232. package/dist/collection/assets/icons/camera.svg +10 -0
  233. package/dist/collection/assets/icons/filter.svg +6 -13
  234. package/dist/collection/assets/icons/menu.svg +25 -0
  235. package/dist/collection/assets/icons/more.svg +18 -0
  236. package/dist/collection/assets/icons/notification.svg +10 -0
  237. package/dist/collection/assets/icons/reload.svg +10 -0
  238. package/dist/collection/assets/icons/signout.svg +23 -0
  239. package/dist/collection/assets/icons/switch.svg +20 -0
  240. package/dist/collection/assets/illustrations/e-mail.svg +1 -0
  241. package/dist/collection/assets/illustrations/empty-state-add.svg +65 -0
  242. package/dist/collection/assets/illustrations/empty-state-overview.svg +58 -0
  243. package/dist/collection/assets/illustrations/empty-state-search.svg +88 -0
  244. package/dist/collection/assets/images/helper/helper-hover.svg +6 -6
  245. package/dist/collection/assets/images/helper/helper.svg +2 -2
  246. package/dist/collection/collection-manifest.json +38 -5
  247. package/dist/collection/components/atoms/avatar/avatar.component.css +1 -31
  248. package/dist/collection/components/atoms/avatar/avatar.component.js +107 -89
  249. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -0
  250. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +1 -0
  251. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +42 -0
  252. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -0
  253. package/dist/collection/components/atoms/backdrop/backdrop.component.css +1 -0
  254. package/dist/collection/components/atoms/backdrop/backdrop.component.js +149 -0
  255. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -0
  256. package/dist/collection/components/atoms/button/button.component.css +1 -93
  257. package/dist/collection/components/atoms/button/button.component.js +305 -297
  258. package/dist/collection/components/atoms/button/button.component.js.map +1 -0
  259. package/dist/collection/components/atoms/card-body/card-body.component.css +1 -9
  260. package/dist/collection/components/atoms/card-body/card-body.component.js +35 -32
  261. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -0
  262. package/dist/collection/components/atoms/card-container/card-container.component.css +1 -13
  263. package/dist/collection/components/atoms/card-container/card-container.component.js +53 -31
  264. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -0
  265. package/dist/collection/components/atoms/card-header/card-header.component.css +1 -17
  266. package/dist/collection/components/atoms/card-header/card-header.component.js +52 -50
  267. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -0
  268. package/dist/collection/components/atoms/counter/counter.component.css +1 -5
  269. package/dist/collection/components/atoms/counter/counter.component.js +57 -9
  270. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -0
  271. package/dist/collection/components/atoms/divider/divider.component.css +1 -3
  272. package/dist/collection/components/atoms/divider/divider.component.js +16 -8
  273. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -0
  274. package/dist/collection/components/atoms/drawer-body/drawer-body.component.css +1 -0
  275. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +44 -0
  276. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -0
  277. package/dist/collection/components/atoms/drawer-container/drawer-container.component.css +1 -0
  278. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +48 -0
  279. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -0
  280. package/dist/collection/components/atoms/drawer-header/drawer-header.component.css +1 -0
  281. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +66 -0
  282. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -0
  283. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +1 -5
  284. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +57 -9
  285. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -0
  286. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -13
  287. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +75 -30
  288. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -0
  289. package/dist/collection/components/atoms/helper/helper.component.css +1 -7
  290. package/dist/collection/components/atoms/helper/helper.component.js +43 -12
  291. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -0
  292. package/dist/collection/components/atoms/icon/icon.component.css +1 -1
  293. package/dist/collection/components/atoms/icon/icon.component.js +103 -101
  294. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -0
  295. package/dist/collection/components/atoms/illustration/illustration.component.js +30 -23
  296. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -0
  297. package/dist/collection/components/atoms/info-panel/info-panel.component.css +1 -28
  298. package/dist/collection/components/atoms/info-panel/info-panel.component.js +86 -89
  299. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -0
  300. package/dist/collection/components/atoms/label/label.component.css +1 -0
  301. package/dist/collection/components/atoms/label/label.component.js +171 -0
  302. package/dist/collection/components/atoms/label/label.component.js.map +1 -0
  303. package/dist/collection/components/atoms/layout/layout.component.css +1 -0
  304. package/dist/collection/components/atoms/layout/layout.component.js +44 -0
  305. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -0
  306. package/dist/collection/components/atoms/loader/loader.component.css +1 -26
  307. package/dist/collection/components/atoms/loader/loader.component.js +113 -114
  308. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -0
  309. package/dist/collection/components/atoms/modal-body/modal-body.component.css +1 -7
  310. package/dist/collection/components/atoms/modal-body/modal-body.component.js +53 -31
  311. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -0
  312. package/dist/collection/components/atoms/modal-container/modal-container.component.css +1 -6
  313. package/dist/collection/components/atoms/modal-container/modal-container.component.js +58 -36
  314. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -0
  315. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +1 -4
  316. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +13 -10
  317. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -0
  318. package/dist/collection/components/atoms/modal-header/modal-header.component.css +1 -6
  319. package/dist/collection/components/atoms/modal-header/modal-header.component.js +60 -9
  320. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -0
  321. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +1 -16
  322. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +35 -32
  323. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -0
  324. package/dist/collection/components/atoms/segment-container/segment-container.component.css +1 -5
  325. package/dist/collection/components/atoms/segment-container/segment-container.component.js +13 -9
  326. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -0
  327. package/dist/collection/components/atoms/segment-item/segment-item.component.css +1 -21
  328. package/dist/collection/components/atoms/segment-item/segment-item.component.js +98 -91
  329. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -0
  330. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.css +1 -0
  331. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +44 -0
  332. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -0
  333. package/dist/collection/components/atoms/status/status.component.css +1 -16
  334. package/dist/collection/components/atoms/status/status.component.js +98 -93
  335. package/dist/collection/components/atoms/status/status.component.js.map +1 -0
  336. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +1 -0
  337. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +120 -0
  338. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -0
  339. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +1 -0
  340. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +63 -0
  341. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -0
  342. package/dist/collection/components/atoms/tab-group/tab-group.component.js +9 -0
  343. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -0
  344. package/dist/collection/components/atoms/tab-item/tab-item.component.css +1 -0
  345. package/dist/collection/components/atoms/tab-item/tab-item.component.js +44 -0
  346. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -0
  347. package/dist/collection/components/atoms/table-container/table-container.component.css +1 -0
  348. package/dist/collection/components/atoms/table-container/table-container.component.js +19 -0
  349. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -0
  350. package/dist/collection/components/atoms/toast-container/toast-container.component.css +1 -0
  351. package/dist/collection/components/atoms/toast-container/toast-container.component.js +44 -0
  352. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -0
  353. package/dist/collection/components/atoms/tooltip/tooltip.component.css +1 -40
  354. package/dist/collection/components/atoms/tooltip/tooltip.component.js +236 -192
  355. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -0
  356. package/dist/collection/components/helpers/table-column/table-column.component.js +151 -0
  357. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -0
  358. package/dist/collection/components/molecules/accordion/accordion.component.css +1 -0
  359. package/dist/collection/components/molecules/accordion/accordion.component.js +128 -0
  360. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -0
  361. package/dist/collection/components/molecules/attachment/attachment.component.css +1 -0
  362. package/dist/collection/components/molecules/attachment/attachment.component.js +145 -0
  363. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -0
  364. package/dist/collection/components/molecules/calendar/calendar.component.css +1 -0
  365. package/dist/collection/components/molecules/calendar/calendar.component.js +503 -0
  366. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -0
  367. package/dist/collection/components/molecules/content-slider/content-slider.component.css +1 -0
  368. package/dist/collection/components/molecules/content-slider/content-slider.component.js +317 -0
  369. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -0
  370. package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -0
  371. package/dist/collection/components/molecules/datepicker/datepicker.component.js +509 -0
  372. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -0
  373. package/dist/collection/components/molecules/dropdown/dropdown.component.css +1 -9
  374. package/dist/collection/components/molecules/dropdown/dropdown.component.js +294 -156
  375. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -0
  376. package/dist/collection/components/molecules/input-error/input-error.component.js +60 -0
  377. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -0
  378. package/dist/collection/components/molecules/input-group/input-group.component.css +1 -0
  379. package/dist/collection/components/molecules/input-group/input-group.component.js +379 -0
  380. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -0
  381. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -28
  382. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +107 -104
  383. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -0
  384. package/dist/collection/components/molecules/page-size-select/constants.js +3 -0
  385. package/dist/collection/components/molecules/page-size-select/constants.js.map +1 -0
  386. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +207 -0
  387. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -0
  388. package/dist/collection/components/molecules/pagination/pagination.component.css +1 -3
  389. package/dist/collection/components/molecules/pagination/pagination.component.js +119 -94
  390. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -0
  391. package/dist/collection/components/molecules/profile/profile.component.css +1 -0
  392. package/dist/collection/components/molecules/profile/profile.component.js +90 -0
  393. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -0
  394. package/dist/collection/components/molecules/select/select.component.css +1 -0
  395. package/dist/collection/components/molecules/select/select.component.js +724 -0
  396. package/dist/collection/components/molecules/select/select.component.js.map +1 -0
  397. package/dist/collection/components/molecules/stepper/stepper.component.css +1 -0
  398. package/dist/collection/components/molecules/stepper/stepper.component.js +141 -0
  399. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -0
  400. package/dist/collection/components/molecules/table-cell/table-cell.component.css +1 -0
  401. package/dist/collection/components/molecules/table-cell/table-cell.component.js +263 -0
  402. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -0
  403. package/dist/collection/components/molecules/table-footer/table-footer.component.css +1 -0
  404. package/dist/collection/components/molecules/table-footer/table-footer.component.js +276 -0
  405. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -0
  406. package/dist/collection/components/molecules/table-header/table-header.component.css +1 -0
  407. package/dist/collection/components/molecules/table-header/table-header.component.js +452 -0
  408. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -0
  409. package/dist/collection/components/molecules/table-row/table-row.component.css +1 -0
  410. package/dist/collection/components/molecules/table-row/table-row.component.js +65 -0
  411. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -0
  412. package/dist/collection/components/molecules/toast/toast.component.css +1 -0
  413. package/dist/collection/components/molecules/toast/toast.component.js +197 -0
  414. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -0
  415. package/dist/collection/components/organisms/drawer/drawer.component.css +1 -0
  416. package/dist/collection/components/organisms/drawer/drawer.component.js +234 -0
  417. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -0
  418. package/dist/collection/components/organisms/modal/modal.component.js +259 -0
  419. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -0
  420. package/dist/collection/components/organisms/navbar/navbar.component.css +1 -0
  421. package/dist/collection/components/organisms/navbar/navbar.component.js +90 -0
  422. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -0
  423. package/dist/collection/components/organisms/table/table.component.css +1 -0
  424. package/dist/collection/components/organisms/table/table.component.js +1292 -0
  425. package/dist/collection/components/organisms/table/table.component.js.map +1 -0
  426. package/dist/collection/index.js +3 -1
  427. package/dist/collection/index.js.map +1 -0
  428. package/dist/collection/tailwind/animation.js +72 -2
  429. package/dist/collection/tailwind/border-radius.js +1 -0
  430. package/dist/collection/tailwind/height.js +5 -0
  431. package/dist/collection/tailwind/plugins/safe-area.js +98 -0
  432. package/dist/collection/tailwind/screens.js +8 -0
  433. package/dist/collection/tailwind/shadows.js +11 -5
  434. package/dist/collection/tailwind/spacing.js +10 -0
  435. package/dist/collection/tailwind/width.js +20 -0
  436. package/dist/collection/tailwind/z-index.js +15 -1
  437. package/dist/collection/tailwind.config.js +14 -3
  438. package/dist/collection/types/index.js +3 -0
  439. package/dist/collection/types/index.js.map +1 -0
  440. package/dist/collection/types/table.js +2 -0
  441. package/dist/collection/types/table.js.map +1 -0
  442. package/dist/collection/types/tailwind.js +2 -0
  443. package/dist/collection/types/tailwind.js.map +1 -0
  444. package/dist/collection/utils/child-of.js +1 -0
  445. package/dist/collection/utils/child-of.js.map +1 -0
  446. package/dist/collection/utils/icons.js +15 -0
  447. package/dist/collection/utils/icons.js.map +1 -0
  448. package/dist/collection/utils/illustrations.js +9 -0
  449. package/dist/collection/utils/illustrations.js.map +1 -0
  450. package/dist/collection/utils/index.js +7 -0
  451. package/dist/collection/utils/index.js.map +1 -0
  452. package/dist/collection/utils/localization.js +56 -0
  453. package/dist/collection/utils/localization.js.map +1 -0
  454. package/dist/collection/utils/object-get-by-path.js +9 -0
  455. package/dist/collection/utils/object-get-by-path.js.map +1 -0
  456. package/dist/collection/utils/transformers.js +5 -0
  457. package/dist/collection/utils/transformers.js.map +1 -0
  458. package/dist/components/backdrop.component.js +59 -0
  459. package/dist/components/backdrop.component.js.map +1 -0
  460. package/dist/components/button.component.js +102 -0
  461. package/dist/components/button.component.js.map +1 -0
  462. package/dist/components/calendar.component.js +3198 -0
  463. package/dist/components/calendar.component.js.map +1 -0
  464. package/dist/components/child-of.js +9 -0
  465. package/dist/components/child-of.js.map +1 -0
  466. package/dist/components/counter.component.js +11 -4
  467. package/dist/components/counter.component.js.map +1 -0
  468. package/dist/components/divider.component.js +8 -3
  469. package/dist/components/divider.component.js.map +1 -0
  470. package/dist/components/drawer-body.component.js +35 -0
  471. package/dist/components/drawer-body.component.js.map +1 -0
  472. package/dist/components/drawer-container.component.js +34 -0
  473. package/dist/components/drawer-container.component.js.map +1 -0
  474. package/dist/components/drawer-header.component.js +54 -0
  475. package/dist/components/drawer-header.component.js.map +1 -0
  476. package/dist/components/dropdown-menu-container.component.js +11 -4
  477. package/dist/components/dropdown-menu-container.component.js.map +1 -0
  478. package/dist/components/dropdown-menu-item.component.js +45 -0
  479. package/dist/components/dropdown-menu-item.component.js.map +1 -0
  480. package/dist/components/dropdown.component.js +177 -0
  481. package/dist/components/dropdown.component.js.map +1 -0
  482. package/dist/components/floating-ui.dom.esm.js +1317 -0
  483. package/dist/components/floating-ui.dom.esm.js.map +1 -0
  484. package/dist/components/helper.component.js +41 -0
  485. package/dist/components/helper.component.js.map +1 -0
  486. package/dist/components/icon.component.js +147 -25
  487. package/dist/components/icon.component.js.map +1 -0
  488. package/dist/{cjs/p-illustration.cjs.entry.js → components/illustration.component.js} +250 -16
  489. package/dist/components/illustration.component.js.map +1 -0
  490. package/dist/components/index.d.ts +9 -31
  491. package/dist/components/index.js +13 -29
  492. package/dist/components/index.js.map +1 -0
  493. package/dist/components/input-error.component.js +50 -0
  494. package/dist/components/input-error.component.js.map +1 -0
  495. package/dist/components/input-group.component.js +165 -0
  496. package/dist/components/input-group.component.js.map +1 -0
  497. package/dist/components/label.component.js +54 -0
  498. package/dist/components/label.component.js.map +1 -0
  499. package/dist/components/loader.component.js +12 -14
  500. package/dist/components/loader.component.js.map +1 -0
  501. package/dist/components/localization.js +59 -0
  502. package/dist/components/localization.js.map +1 -0
  503. package/dist/components/modal-body.component.js +8 -7
  504. package/dist/components/modal-body.component.js.map +1 -0
  505. package/dist/components/modal-container.component.js +13 -12
  506. package/dist/components/modal-container.component.js.map +1 -0
  507. package/dist/components/modal-footer.component.js +5 -3
  508. package/dist/components/modal-footer.component.js.map +1 -0
  509. package/dist/components/modal-header.component.js +30 -6
  510. package/dist/components/modal-header.component.js.map +1 -0
  511. package/dist/components/object-get-by-path.js +12 -0
  512. package/dist/components/object-get-by-path.js.map +1 -0
  513. package/dist/components/p-accordion.d.ts +11 -0
  514. package/dist/components/p-accordion.js +67 -0
  515. package/dist/components/p-accordion.js.map +1 -0
  516. package/dist/components/p-attachment.d.ts +11 -0
  517. package/dist/components/p-attachment.js +88 -0
  518. package/dist/components/p-attachment.js.map +1 -0
  519. package/dist/components/p-avatar-group.d.ts +11 -0
  520. package/dist/components/p-avatar-group.js +37 -0
  521. package/dist/components/p-avatar-group.js.map +1 -0
  522. package/dist/components/p-avatar.js +23 -14
  523. package/dist/components/p-avatar.js.map +1 -0
  524. package/dist/components/p-backdrop.d.ts +11 -0
  525. package/dist/components/p-backdrop.js +8 -0
  526. package/dist/components/p-backdrop.js.map +1 -0
  527. package/dist/components/p-button.js +3 -112
  528. package/dist/components/p-button.js.map +1 -0
  529. package/dist/components/p-calendar.d.ts +11 -0
  530. package/dist/components/p-calendar.js +8 -0
  531. package/dist/components/p-calendar.js.map +1 -0
  532. package/dist/components/p-card-body.js +6 -7
  533. package/dist/components/p-card-body.js.map +1 -0
  534. package/dist/components/p-card-container.js +8 -7
  535. package/dist/components/p-card-container.js.map +1 -0
  536. package/dist/components/p-card-header.js +7 -7
  537. package/dist/components/p-card-header.js.map +1 -0
  538. package/dist/components/{p-modal-backdrop.d.ts → p-content-slider.d.ts} +4 -4
  539. package/dist/components/p-content-slider.js +241 -0
  540. package/dist/components/p-content-slider.js.map +1 -0
  541. package/dist/components/p-counter.js +2 -0
  542. package/dist/components/p-counter.js.map +1 -0
  543. package/dist/components/p-datepicker.d.ts +11 -0
  544. package/dist/components/p-datepicker.js +4164 -0
  545. package/dist/components/p-datepicker.js.map +1 -0
  546. package/dist/components/p-divider.js +2 -0
  547. package/dist/components/p-divider.js.map +1 -0
  548. package/dist/components/p-drawer-body.d.ts +11 -0
  549. package/dist/components/p-drawer-body.js +8 -0
  550. package/dist/components/p-drawer-body.js.map +1 -0
  551. package/dist/components/p-drawer-container.d.ts +11 -0
  552. package/dist/components/p-drawer-container.js +8 -0
  553. package/dist/components/p-drawer-container.js.map +1 -0
  554. package/dist/components/p-drawer-header.d.ts +11 -0
  555. package/dist/components/p-drawer-header.js +8 -0
  556. package/dist/components/p-drawer-header.js.map +1 -0
  557. package/dist/components/p-drawer.d.ts +11 -0
  558. package/dist/components/p-drawer.js +130 -0
  559. package/dist/components/p-drawer.js.map +1 -0
  560. package/dist/components/p-dropdown-menu-container.js +2 -0
  561. package/dist/components/p-dropdown-menu-container.js.map +1 -0
  562. package/dist/components/p-dropdown-menu-item.js +3 -34
  563. package/dist/components/p-dropdown-menu-item.js.map +1 -0
  564. package/dist/components/p-dropdown.js +3 -161
  565. package/dist/components/p-dropdown.js.map +1 -0
  566. package/dist/components/p-helper.js +3 -34
  567. package/dist/components/p-helper.js.map +1 -0
  568. package/dist/components/p-icon.js +2 -0
  569. package/dist/components/p-icon.js.map +1 -0
  570. package/dist/components/p-illustration.js +3 -1432
  571. package/dist/components/p-illustration.js.map +1 -0
  572. package/dist/components/p-info-panel.js +6 -8
  573. package/dist/components/p-info-panel.js.map +1 -0
  574. package/dist/components/p-input-error.d.ts +11 -0
  575. package/dist/components/p-input-error.js +8 -0
  576. package/dist/components/p-input-error.js.map +1 -0
  577. package/dist/components/p-input-group.d.ts +11 -0
  578. package/dist/components/p-input-group.js +8 -0
  579. package/dist/components/p-input-group.js.map +1 -0
  580. package/dist/components/p-label.d.ts +11 -0
  581. package/dist/components/p-label.js +8 -0
  582. package/dist/components/p-label.js.map +1 -0
  583. package/dist/components/p-layout.d.ts +11 -0
  584. package/dist/components/p-layout.js +38 -0
  585. package/dist/components/p-layout.js.map +1 -0
  586. package/dist/components/p-loader.js +2 -0
  587. package/dist/components/p-loader.js.map +1 -0
  588. package/dist/components/p-modal-body.js +2 -0
  589. package/dist/components/p-modal-body.js.map +1 -0
  590. package/dist/components/p-modal-container.js +2 -0
  591. package/dist/components/p-modal-container.js.map +1 -0
  592. package/dist/components/p-modal-footer.js +2 -0
  593. package/dist/components/p-modal-footer.js.map +1 -0
  594. package/dist/components/p-modal-header.js +2 -0
  595. package/dist/components/p-modal-header.js.map +1 -0
  596. package/dist/components/p-modal.js +67 -21
  597. package/dist/components/p-modal.js.map +1 -0
  598. package/dist/components/p-navbar.d.ts +11 -0
  599. package/dist/components/p-navbar.js +72 -0
  600. package/dist/components/p-navbar.js.map +1 -0
  601. package/dist/components/p-navigation-item.js +9 -6
  602. package/dist/components/p-navigation-item.js.map +1 -0
  603. package/dist/components/p-page-size-select.d.ts +11 -0
  604. package/dist/components/p-page-size-select.js +8 -0
  605. package/dist/components/p-page-size-select.js.map +1 -0
  606. package/dist/components/p-pagination-item.js +2 -0
  607. package/dist/components/p-pagination-item.js.map +1 -0
  608. package/dist/components/p-pagination.js +3 -195
  609. package/dist/components/p-pagination.js.map +1 -0
  610. package/dist/components/p-profile.d.ts +11 -0
  611. package/dist/components/p-profile.js +81 -0
  612. package/dist/components/p-profile.js.map +1 -0
  613. package/dist/components/p-segment-container.js +3 -27
  614. package/dist/components/p-segment-container.js.map +1 -0
  615. package/dist/components/p-segment-item.js +3 -49
  616. package/dist/components/p-segment-item.js.map +1 -0
  617. package/dist/components/p-select.d.ts +11 -0
  618. package/dist/components/p-select.js +341 -0
  619. package/dist/components/p-select.js.map +1 -0
  620. package/dist/components/p-slider-indicator.d.ts +11 -0
  621. package/dist/components/p-slider-indicator.js +8 -0
  622. package/dist/components/p-slider-indicator.js.map +1 -0
  623. package/dist/components/p-status.js +7 -5
  624. package/dist/components/p-status.js.map +1 -0
  625. package/dist/components/p-stepper-item.d.ts +11 -0
  626. package/dist/components/p-stepper-item.js +52 -0
  627. package/dist/components/p-stepper-item.js.map +1 -0
  628. package/dist/components/p-stepper-line.d.ts +11 -0
  629. package/dist/components/p-stepper-line.js +8 -0
  630. package/dist/components/p-stepper-line.js.map +1 -0
  631. package/dist/components/p-stepper.d.ts +11 -0
  632. package/dist/components/p-stepper.js +104 -0
  633. package/dist/components/p-stepper.js.map +1 -0
  634. package/dist/components/p-tab-group.d.ts +11 -0
  635. package/dist/components/p-tab-group.js +38 -0
  636. package/dist/components/p-tab-group.js.map +1 -0
  637. package/dist/components/p-tab-item.d.ts +11 -0
  638. package/dist/components/p-tab-item.js +38 -0
  639. package/dist/components/p-tab-item.js.map +1 -0
  640. package/dist/components/p-table-cell.d.ts +11 -0
  641. package/dist/components/p-table-cell.js +8 -0
  642. package/dist/components/p-table-cell.js.map +1 -0
  643. package/dist/components/p-table-column.d.ts +11 -0
  644. package/dist/components/p-table-column.js +48 -0
  645. package/dist/components/p-table-column.js.map +1 -0
  646. package/dist/components/p-table-container.d.ts +11 -0
  647. package/dist/components/p-table-container.js +8 -0
  648. package/dist/components/p-table-container.js.map +1 -0
  649. package/dist/components/p-table-footer.d.ts +11 -0
  650. package/dist/components/p-table-footer.js +8 -0
  651. package/dist/components/p-table-footer.js.map +1 -0
  652. package/dist/components/p-table-header.d.ts +11 -0
  653. package/dist/components/p-table-header.js +8 -0
  654. package/dist/components/p-table-header.js.map +1 -0
  655. package/dist/components/p-table-row.d.ts +11 -0
  656. package/dist/components/p-table-row.js +8 -0
  657. package/dist/components/p-table-row.js.map +1 -0
  658. package/dist/components/p-table.d.ts +11 -0
  659. package/dist/components/p-table.js +544 -0
  660. package/dist/components/p-table.js.map +1 -0
  661. package/dist/components/p-toast-container.d.ts +11 -0
  662. package/dist/components/p-toast-container.js +38 -0
  663. package/dist/components/p-toast-container.js.map +1 -0
  664. package/dist/components/p-toast.d.ts +11 -0
  665. package/dist/components/p-toast.js +75 -0
  666. package/dist/components/p-toast.js.map +1 -0
  667. package/dist/components/p-tooltip.js +2 -0
  668. package/dist/components/p-tooltip.js.map +1 -0
  669. package/dist/components/page-size-select.component.js +107 -0
  670. package/dist/components/page-size-select.component.js.map +1 -0
  671. package/dist/components/pagination-item.component.js +4 -5
  672. package/dist/components/pagination-item.component.js.map +1 -0
  673. package/dist/components/pagination.component.js +196 -0
  674. package/dist/components/pagination.component.js.map +1 -0
  675. package/dist/components/segment-container.component.js +31 -0
  676. package/dist/components/segment-container.component.js.map +1 -0
  677. package/dist/components/segment-item.component.js +53 -0
  678. package/dist/components/segment-item.component.js.map +1 -0
  679. package/dist/components/slider-indicator.component.js +35 -0
  680. package/dist/components/slider-indicator.component.js.map +1 -0
  681. package/dist/components/stepper-line.component.js +37 -0
  682. package/dist/components/stepper-line.component.js.map +1 -0
  683. package/dist/components/table-cell.component.js +137 -0
  684. package/dist/components/table-cell.component.js.map +1 -0
  685. package/dist/components/table-container.component.js +32 -0
  686. package/dist/components/table-container.component.js.map +1 -0
  687. package/dist/components/table-footer.component.js +129 -0
  688. package/dist/components/table-footer.component.js.map +1 -0
  689. package/dist/components/table-header.component.js +1070 -0
  690. package/dist/components/table-header.component.js.map +1 -0
  691. package/dist/components/table-row.component.js +45 -0
  692. package/dist/components/table-row.component.js.map +1 -0
  693. package/dist/components/tooltip.component.js +58 -56
  694. package/dist/components/tooltip.component.js.map +1 -0
  695. package/dist/esm/child-of-90a8c4b5.js +9 -0
  696. package/dist/esm/child-of-90a8c4b5.js.map +1 -0
  697. package/dist/esm/constants-826f9460.js +6 -0
  698. package/dist/esm/constants-826f9460.js.map +1 -0
  699. package/dist/esm/floating-ui.dom.esm-82b72251.js +1317 -0
  700. package/dist/esm/floating-ui.dom.esm-82b72251.js.map +1 -0
  701. package/dist/esm/index-340e085c.js +2460 -0
  702. package/dist/esm/index-340e085c.js.map +1 -0
  703. package/dist/esm/{index-fff70567.js → index-94339e77.js} +975 -295
  704. package/dist/esm/index-94339e77.js.map +1 -0
  705. package/dist/esm/index.js +11 -0
  706. package/dist/esm/index.js.map +1 -0
  707. package/dist/esm/loader.js +6 -3
  708. package/dist/esm/loader.js.map +1 -0
  709. package/dist/esm/localization-901dc2d3.js +59 -0
  710. package/dist/esm/localization-901dc2d3.js.map +1 -0
  711. package/dist/esm/object-get-by-path-d6427a61.js +12 -0
  712. package/dist/esm/object-get-by-path-d6427a61.js.map +1 -0
  713. package/dist/esm/p-accordion.entry.js +32 -0
  714. package/dist/esm/p-accordion.entry.js.map +1 -0
  715. package/dist/esm/p-attachment.entry.js +35 -0
  716. package/dist/esm/p-attachment.entry.js.map +1 -0
  717. package/dist/esm/p-avatar-group.entry.js +18 -0
  718. package/dist/esm/p-avatar-group.entry.js.map +1 -0
  719. package/dist/esm/p-avatar.entry.js +20 -10
  720. package/dist/esm/p-avatar.entry.js.map +1 -0
  721. package/dist/esm/p-backdrop.entry.js +39 -0
  722. package/dist/esm/p-backdrop.entry.js.map +1 -0
  723. package/dist/esm/p-button_3.entry.js +212 -109
  724. package/dist/esm/p-button_3.entry.js.map +1 -0
  725. package/dist/esm/p-calendar.entry.js +706 -0
  726. package/dist/esm/p-calendar.entry.js.map +1 -0
  727. package/dist/esm/p-card-body.entry.js +5 -6
  728. package/dist/esm/p-card-body.entry.js.map +1 -0
  729. package/dist/esm/p-card-container.entry.js +6 -6
  730. package/dist/esm/p-card-container.entry.js.map +1 -0
  731. package/dist/esm/p-card-header.entry.js +6 -6
  732. package/dist/esm/p-card-header.entry.js.map +1 -0
  733. package/dist/esm/p-content-slider.entry.js +208 -0
  734. package/dist/esm/p-content-slider.entry.js.map +1 -0
  735. package/dist/esm/p-counter.entry.js +7 -3
  736. package/dist/esm/p-counter.entry.js.map +1 -0
  737. package/dist/esm/p-datepicker.entry.js +4079 -0
  738. package/dist/esm/p-datepicker.entry.js.map +1 -0
  739. package/dist/esm/p-divider.entry.js +8 -3
  740. package/dist/esm/p-divider.entry.js.map +1 -0
  741. package/dist/esm/p-drawer-body_3.entry.js +45 -0
  742. package/dist/esm/p-drawer-body_3.entry.js.map +1 -0
  743. package/dist/esm/p-drawer.entry.js +61 -0
  744. package/dist/esm/p-drawer.entry.js.map +1 -0
  745. package/dist/esm/p-dropdown-menu-container.entry.js +7 -3
  746. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -0
  747. package/dist/esm/p-dropdown_2.entry.js +160 -0
  748. package/dist/esm/p-dropdown_2.entry.js.map +1 -0
  749. package/dist/esm/p-helper_3.entry.js +138 -0
  750. package/dist/esm/p-helper_3.entry.js.map +1 -0
  751. package/dist/esm/{p-illustration.entry.js → p-illustration_6.entry.js} +1378 -8
  752. package/dist/esm/p-illustration_6.entry.js.map +1 -0
  753. package/dist/esm/p-info-panel.entry.js +6 -8
  754. package/dist/esm/p-info-panel.entry.js.map +1 -0
  755. package/dist/esm/p-label_3.entry.js +59 -0
  756. package/dist/esm/p-label_3.entry.js.map +1 -0
  757. package/dist/esm/p-layout.entry.js +18 -0
  758. package/dist/esm/p-layout.entry.js.map +1 -0
  759. package/dist/esm/p-modal-body_4.entry.js +72 -0
  760. package/dist/esm/p-modal-body_4.entry.js.map +1 -0
  761. package/dist/esm/p-modal.entry.js +36 -14
  762. package/dist/esm/p-modal.entry.js.map +1 -0
  763. package/dist/esm/p-navbar.entry.js +26 -0
  764. package/dist/esm/p-navbar.entry.js.map +1 -0
  765. package/dist/esm/p-navigation-item.entry.js +9 -6
  766. package/dist/esm/p-navigation-item.entry.js.map +1 -0
  767. package/dist/esm/p-page-size-select_3.entry.js +218 -0
  768. package/dist/esm/p-page-size-select_3.entry.js.map +1 -0
  769. package/dist/esm/p-profile.entry.js +41 -0
  770. package/dist/esm/p-profile.entry.js.map +1 -0
  771. package/dist/esm/p-select.entry.js +242 -0
  772. package/dist/esm/p-select.entry.js.map +1 -0
  773. package/dist/esm/p-slider-indicator.entry.js +18 -0
  774. package/dist/esm/p-slider-indicator.entry.js.map +1 -0
  775. package/dist/esm/p-status.entry.js +7 -5
  776. package/dist/esm/p-status.entry.js.map +1 -0
  777. package/dist/esm/p-stepper-item.entry.js +22 -0
  778. package/dist/esm/p-stepper-item.entry.js.map +1 -0
  779. package/dist/esm/p-stepper-line.entry.js +19 -0
  780. package/dist/esm/p-stepper-line.entry.js.map +1 -0
  781. package/dist/esm/p-stepper.entry.js +76 -0
  782. package/dist/esm/p-stepper.entry.js.map +1 -0
  783. package/dist/esm/p-tab-group.entry.js +16 -0
  784. package/dist/esm/p-tab-group.entry.js.map +1 -0
  785. package/dist/esm/p-tab-item.entry.js +18 -0
  786. package/dist/esm/p-tab-item.entry.js.map +1 -0
  787. package/dist/esm/p-table-column.entry.js +24 -0
  788. package/dist/esm/p-table-column.entry.js.map +1 -0
  789. package/dist/esm/p-table.entry.js +348 -0
  790. package/dist/esm/p-table.entry.js.map +1 -0
  791. package/dist/esm/p-toast-container.entry.js +18 -0
  792. package/dist/esm/p-toast-container.entry.js.map +1 -0
  793. package/dist/esm/p-toast.entry.js +31 -0
  794. package/dist/esm/p-toast.entry.js.map +1 -0
  795. package/dist/esm/p-tooltip.entry.js +56 -55
  796. package/dist/esm/p-tooltip.entry.js.map +1 -0
  797. package/dist/esm/paperless.js +9 -3
  798. package/dist/esm/paperless.js.map +1 -0
  799. package/dist/esm/polyfills/core-js.js +0 -0
  800. package/dist/esm/polyfills/css-shim.js +1 -1
  801. package/dist/esm/polyfills/dom.js +0 -0
  802. package/dist/esm/polyfills/es5-html-element.js +0 -0
  803. package/dist/esm/polyfills/index.js +0 -0
  804. package/dist/esm/polyfills/system.js +0 -0
  805. package/dist/index.html +1 -1
  806. package/dist/paperless/index.esm.js +2 -0
  807. package/dist/paperless/index.esm.js.map +1 -0
  808. package/dist/paperless/p-09ea2a1a.js +2 -0
  809. package/dist/paperless/p-09ea2a1a.js.map +1 -0
  810. package/dist/paperless/p-0a3f2fe8.entry.js +2 -0
  811. package/dist/paperless/p-0a3f2fe8.entry.js.map +1 -0
  812. package/dist/paperless/p-0cb97c5e.entry.js +2 -0
  813. package/dist/paperless/p-0cb97c5e.entry.js.map +1 -0
  814. package/dist/paperless/p-0e0bffb3.entry.js +2 -0
  815. package/dist/paperless/p-0e0bffb3.entry.js.map +1 -0
  816. package/dist/paperless/p-10ad607e.entry.js +2 -0
  817. package/dist/paperless/p-10ad607e.entry.js.map +1 -0
  818. package/dist/paperless/p-1b5292a3.entry.js +2 -0
  819. package/dist/paperless/p-1b5292a3.entry.js.map +1 -0
  820. package/dist/paperless/p-3d8b5cc4.entry.js +2 -0
  821. package/dist/paperless/p-3d8b5cc4.entry.js.map +1 -0
  822. package/dist/paperless/p-3dcc02d8.entry.js +2 -0
  823. package/dist/paperless/p-3dcc02d8.entry.js.map +1 -0
  824. package/dist/paperless/p-45dfd940.entry.js +2 -0
  825. package/dist/paperless/p-45dfd940.entry.js.map +1 -0
  826. package/dist/paperless/p-464569dc.entry.js +2 -0
  827. package/dist/paperless/p-464569dc.entry.js.map +1 -0
  828. package/dist/paperless/p-4e650fe4.js +2 -0
  829. package/dist/paperless/p-4e650fe4.js.map +1 -0
  830. package/dist/paperless/p-5236b565.entry.js +2 -0
  831. package/dist/paperless/p-5236b565.entry.js.map +1 -0
  832. package/dist/paperless/p-57411b2b.entry.js +2 -0
  833. package/dist/paperless/p-57411b2b.entry.js.map +1 -0
  834. package/dist/paperless/p-58b52568.entry.js +2 -0
  835. package/dist/paperless/p-58b52568.entry.js.map +1 -0
  836. package/dist/paperless/p-5d118f66.entry.js +2 -0
  837. package/dist/paperless/p-5d118f66.entry.js.map +1 -0
  838. package/dist/paperless/p-6b7d2d41.entry.js +2 -0
  839. package/dist/paperless/p-6b7d2d41.entry.js.map +1 -0
  840. package/dist/paperless/p-6c60fd3d.js +2 -0
  841. package/dist/paperless/p-6c60fd3d.js.map +1 -0
  842. package/dist/paperless/p-6f82a1e7.entry.js +2 -0
  843. package/dist/paperless/p-6f82a1e7.entry.js.map +1 -0
  844. package/dist/paperless/p-6fd261ab.entry.js +2 -0
  845. package/dist/paperless/p-6fd261ab.entry.js.map +1 -0
  846. package/dist/paperless/p-7010541f.entry.js +2 -0
  847. package/dist/paperless/p-7010541f.entry.js.map +1 -0
  848. package/dist/paperless/p-756c06ec.entry.js +2 -0
  849. package/dist/paperless/p-756c06ec.entry.js.map +1 -0
  850. package/dist/paperless/p-78948e08.entry.js +2 -0
  851. package/dist/paperless/p-78948e08.entry.js.map +1 -0
  852. package/dist/paperless/p-78ce77d2.entry.js +2 -0
  853. package/dist/paperless/p-78ce77d2.entry.js.map +1 -0
  854. package/dist/paperless/p-7b94bc6a.entry.js +2 -0
  855. package/dist/paperless/p-7b94bc6a.entry.js.map +1 -0
  856. package/dist/paperless/p-8a6728d5.js +2 -0
  857. package/dist/paperless/p-8a6728d5.js.map +1 -0
  858. package/dist/paperless/p-8fb43cc7.entry.js +2 -0
  859. package/dist/paperless/p-8fb43cc7.entry.js.map +1 -0
  860. package/dist/paperless/p-93fb216c.entry.js +2 -0
  861. package/dist/paperless/p-93fb216c.entry.js.map +1 -0
  862. package/dist/paperless/p-9ee7b088.entry.js +2 -0
  863. package/dist/paperless/p-9ee7b088.entry.js.map +1 -0
  864. package/dist/paperless/p-a2bd1a79.entry.js +2 -0
  865. package/dist/paperless/p-a2bd1a79.entry.js.map +1 -0
  866. package/dist/paperless/p-a3fcf8b6.entry.js +2 -0
  867. package/dist/paperless/p-a3fcf8b6.entry.js.map +1 -0
  868. package/dist/paperless/p-a89bc06c.entry.js +2 -0
  869. package/dist/paperless/p-a89bc06c.entry.js.map +1 -0
  870. package/dist/paperless/p-ac1af618.js +3 -0
  871. package/dist/paperless/p-ac1af618.js.map +1 -0
  872. package/dist/paperless/p-ac7b48ff.entry.js +2 -0
  873. package/dist/paperless/p-ac7b48ff.entry.js.map +1 -0
  874. package/dist/paperless/p-b13a0ee4.entry.js +2 -0
  875. package/dist/paperless/p-b13a0ee4.entry.js.map +1 -0
  876. package/dist/paperless/p-b273ac6d.js +2 -0
  877. package/dist/paperless/p-b273ac6d.js.map +1 -0
  878. package/dist/paperless/p-b450d46f.entry.js +2 -0
  879. package/dist/paperless/p-b450d46f.entry.js.map +1 -0
  880. package/dist/paperless/p-b7b1de31.entry.js +2 -0
  881. package/dist/paperless/p-b7b1de31.entry.js.map +1 -0
  882. package/dist/paperless/p-bd85ff72.entry.js +2 -0
  883. package/dist/paperless/p-bd85ff72.entry.js.map +1 -0
  884. package/dist/paperless/p-befde602.entry.js +2 -0
  885. package/dist/paperless/p-befde602.entry.js.map +1 -0
  886. package/dist/paperless/p-c6ef7b79.entry.js +2 -0
  887. package/dist/paperless/p-c6ef7b79.entry.js.map +1 -0
  888. package/dist/paperless/p-cccc37c0.entry.js +2 -0
  889. package/dist/paperless/p-cccc37c0.entry.js.map +1 -0
  890. package/dist/paperless/p-d7d7f5d0.entry.js +2 -0
  891. package/dist/paperless/p-d7d7f5d0.entry.js.map +1 -0
  892. package/dist/paperless/p-dc01e9eb.entry.js +2 -0
  893. package/dist/paperless/p-dc01e9eb.entry.js.map +1 -0
  894. package/dist/paperless/p-dd2a50d0.entry.js +2 -0
  895. package/dist/paperless/p-dd2a50d0.entry.js.map +1 -0
  896. package/dist/paperless/p-e0f41dd5.entry.js +2 -0
  897. package/dist/paperless/p-e0f41dd5.entry.js.map +1 -0
  898. package/dist/paperless/p-e621e34c.js +2 -0
  899. package/dist/paperless/p-e621e34c.js.map +1 -0
  900. package/dist/paperless/p-ea824ef3.entry.js +2 -0
  901. package/dist/paperless/p-ea824ef3.entry.js.map +1 -0
  902. package/dist/paperless/p-ebc2ae62.entry.js +2 -0
  903. package/dist/paperless/p-ebc2ae62.entry.js.map +1 -0
  904. package/dist/paperless/p-f07793f6.entry.js +2 -0
  905. package/dist/paperless/p-f07793f6.entry.js.map +1 -0
  906. package/dist/paperless/paperless.css +980 -576
  907. package/dist/paperless/paperless.esm.js +2 -1
  908. package/dist/paperless/paperless.esm.js.map +1 -0
  909. package/dist/style/_fonts.scss +70 -0
  910. package/dist/style/_helpers.scss +5 -0
  911. package/dist/style/_mixins.scss +1 -0
  912. package/dist/style/_reset.scss +30 -0
  913. package/dist/style/_tailwind.scss +3 -0
  914. package/dist/style/_typograhpy.scss +29 -0
  915. package/dist/style/_variables.scss +2 -0
  916. package/dist/style/form/_checkbox.scss +111 -0
  917. package/dist/style/form/_input.scss +31 -0
  918. package/dist/style/form/_mixins.scss +108 -0
  919. package/dist/style/form/_radio.scss +58 -0
  920. package/dist/style/form/_textarea.scss +18 -0
  921. package/dist/style/form/index.scss +4 -0
  922. package/dist/style/mixins/_scrollbar.scss +32 -0
  923. package/dist/style/paperless.scss +12 -0
  924. package/dist/sw.js +2 -906
  925. package/dist/sw.js.map +1 -0
  926. package/dist/tailwind/animation.js +72 -2
  927. package/dist/tailwind/border-radius.js +1 -0
  928. package/dist/tailwind/height.js +5 -0
  929. package/dist/tailwind/plugins/safe-area.js +98 -0
  930. package/dist/tailwind/screens.js +8 -0
  931. package/dist/tailwind/shadows.js +11 -5
  932. package/dist/tailwind/spacing.js +10 -0
  933. package/dist/tailwind/width.js +20 -0
  934. package/dist/tailwind/z-index.js +15 -1
  935. package/dist/tailwind.config.js +14 -3
  936. package/dist/types/components/atoms/avatar/avatar.component.d.ts +3 -1
  937. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  938. package/dist/types/components/atoms/backdrop/backdrop.component.d.ts +31 -0
  939. package/dist/types/components/atoms/button/button.component.d.ts +5 -1
  940. package/dist/types/components/atoms/card-container/card-container.component.d.ts +4 -0
  941. package/dist/types/components/atoms/card-header/card-header.component.d.ts +2 -2
  942. package/dist/types/components/atoms/counter/counter.component.d.ts +8 -0
  943. package/dist/types/components/atoms/divider/divider.component.d.ts +4 -0
  944. package/dist/types/components/atoms/drawer-body/drawer-body.component.d.ts +7 -0
  945. package/dist/types/components/atoms/drawer-container/drawer-container.component.d.ts +7 -0
  946. package/dist/types/components/atoms/drawer-header/drawer-header.component.d.ts +12 -0
  947. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +8 -0
  948. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +9 -0
  949. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  950. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  951. package/dist/types/components/atoms/illustration/illustration.component.d.ts +1 -1
  952. package/dist/types/components/atoms/label/label.component.d.ts +33 -0
  953. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  954. package/dist/types/components/atoms/loader/loader.component.d.ts +1 -1
  955. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +4 -0
  956. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +4 -0
  957. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +9 -0
  958. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +1 -1
  959. package/dist/types/components/atoms/slider-indicator/slider-indicator.component.d.ts +7 -0
  960. package/dist/types/components/atoms/status/status.component.d.ts +1 -1
  961. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +23 -0
  962. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  963. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  964. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  965. package/dist/types/components/atoms/table-container/table-container.component.d.ts +3 -0
  966. package/dist/types/components/atoms/toast-container/toast-container.component.d.ts +7 -0
  967. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +14 -4
  968. package/dist/types/components/helpers/table-column/table-column.component.d.ts +34 -0
  969. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  970. package/dist/types/components/molecules/attachment/attachment.component.d.ts +28 -0
  971. package/dist/types/components/molecules/calendar/calendar.component.d.ts +76 -0
  972. package/dist/types/components/molecules/content-slider/content-slider.component.d.ts +53 -0
  973. package/dist/types/components/molecules/datepicker/datepicker.component.d.ts +93 -0
  974. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +33 -5
  975. package/dist/types/components/molecules/input-error/input-error.component.d.ts +12 -0
  976. package/dist/types/components/molecules/input-group/input-group.component.d.ts +68 -0
  977. package/dist/types/components/molecules/page-size-select/constants.d.ts +2 -0
  978. package/dist/types/components/molecules/page-size-select/page-size-select.component.d.ts +50 -0
  979. package/dist/types/components/molecules/pagination/pagination.component.d.ts +7 -0
  980. package/dist/types/components/molecules/profile/profile.component.d.ts +20 -0
  981. package/dist/types/components/molecules/select/select.component.d.ts +139 -0
  982. package/dist/types/components/molecules/stepper/stepper.component.d.ts +21 -0
  983. package/dist/types/components/molecules/table-cell/table-cell.component.d.ts +42 -0
  984. package/dist/types/components/molecules/table-footer/table-footer.component.d.ts +63 -0
  985. package/dist/types/components/molecules/table-header/table-header.component.d.ts +101 -0
  986. package/dist/types/components/molecules/table-row/table-row.component.d.ts +11 -0
  987. package/dist/types/components/molecules/toast/toast.component.d.ts +39 -0
  988. package/dist/types/components/organisms/drawer/drawer.component.d.ts +52 -0
  989. package/dist/types/components/organisms/modal/modal.component.d.ts +58 -0
  990. package/dist/types/components/organisms/navbar/navbar.component.d.ts +14 -0
  991. package/dist/types/components/organisms/table/table.component.d.ts +240 -0
  992. package/dist/types/components.d.ts +2788 -275
  993. package/dist/types/index.d.ts +2 -0
  994. package/dist/types/stencil-public-runtime.d.ts +91 -19
  995. package/dist/types/types/index.d.ts +2 -0
  996. package/dist/types/types/table.d.ts +27 -0
  997. package/dist/types/types/tailwind.d.ts +2 -0
  998. package/dist/types/utils/icons.d.ts +7 -0
  999. package/dist/types/utils/illustrations.d.ts +4 -0
  1000. package/dist/types/utils/index.d.ts +6 -0
  1001. package/dist/types/utils/localization.d.ts +2 -0
  1002. package/dist/types/utils/object-get-by-path.d.ts +1 -0
  1003. package/dist/types/utils/transformers.d.ts +2 -0
  1004. package/dist/workbox-5b279812.js +2 -0
  1005. package/dist/workbox-5b279812.js.map +1 -0
  1006. package/hydrate/index.d.ts +218 -0
  1007. package/hydrate/index.js +22266 -0
  1008. package/hydrate/package.json +6 -0
  1009. package/loader/index.d.ts +9 -0
  1010. package/loader/package.json +1 -0
  1011. package/package.json +28 -22
  1012. package/dist/build/p-0100c1a2.js +0 -2
  1013. package/dist/build/p-11d24001.entry.js +0 -1
  1014. package/dist/build/p-19d84fe7.entry.js +0 -1
  1015. package/dist/build/p-2120a0b7.entry.js +0 -1
  1016. package/dist/build/p-3b491ca2.entry.js +0 -1
  1017. package/dist/build/p-3f6d3736.entry.js +0 -1
  1018. package/dist/build/p-463f354c.entry.js +0 -1
  1019. package/dist/build/p-4a85b858.entry.js +0 -1
  1020. package/dist/build/p-5101f35f.entry.js +0 -1
  1021. package/dist/build/p-5438d70e.entry.js +0 -1
  1022. package/dist/build/p-63e5f5e1.entry.js +0 -1
  1023. package/dist/build/p-67fc89a6.entry.js +0 -1
  1024. package/dist/build/p-6e60b92a.entry.js +0 -1
  1025. package/dist/build/p-7784ee14.entry.js +0 -1
  1026. package/dist/build/p-864ac423.entry.js +0 -1
  1027. package/dist/build/p-94cef335.entry.js +0 -1
  1028. package/dist/build/p-a7086ffa.js +0 -1
  1029. package/dist/build/p-b68368f3.entry.js +0 -1
  1030. package/dist/build/p-c64e2313.entry.js +0 -1
  1031. package/dist/build/p-ccbddcbb.entry.js +0 -1
  1032. package/dist/build/p-d069673f.entry.js +0 -1
  1033. package/dist/build/p-f50c6e5b.entry.js +0 -1
  1034. package/dist/build/p-fb1e33eb.entry.js +0 -1
  1035. package/dist/build/p-ffeed7c6.entry.js +0 -1
  1036. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +0 -23
  1037. package/dist/cjs/p-dropdown.cjs.entry.js +0 -141
  1038. package/dist/cjs/p-helper.cjs.entry.js +0 -19
  1039. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +0 -92
  1040. package/dist/cjs/p-pagination-item.cjs.entry.js +0 -23
  1041. package/dist/cjs/p-pagination.cjs.entry.js +0 -171
  1042. package/dist/cjs/p-segment-container.cjs.entry.js +0 -19
  1043. package/dist/cjs/p-segment-item.cjs.entry.js +0 -29
  1044. package/dist/cjs/popper-e0c4ed4c.js +0 -1790
  1045. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +0 -7
  1046. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +0 -15
  1047. package/dist/collection/components/molecules/modal/modal.component.js +0 -111
  1048. package/dist/collection/tailwind/grid.js +0 -26
  1049. package/dist/collection/utils/types.js +0 -1
  1050. package/dist/collection/utils/utils.js +0 -3
  1051. package/dist/components/modal-backdrop.component.js +0 -30
  1052. package/dist/components/p-modal-backdrop.js +0 -6
  1053. package/dist/components/popper.js +0 -1788
  1054. package/dist/esm/p-dropdown-menu-item.entry.js +0 -19
  1055. package/dist/esm/p-dropdown.entry.js +0 -137
  1056. package/dist/esm/p-helper.entry.js +0 -15
  1057. package/dist/esm/p-modal-backdrop_5.entry.js +0 -84
  1058. package/dist/esm/p-pagination-item.entry.js +0 -19
  1059. package/dist/esm/p-pagination.entry.js +0 -167
  1060. package/dist/esm/p-segment-container.entry.js +0 -15
  1061. package/dist/esm/p-segment-item.entry.js +0 -25
  1062. package/dist/esm/popper-41c6f9cd.js +0 -1788
  1063. package/dist/paperless/p-0100c1a2.js +0 -2
  1064. package/dist/paperless/p-11d24001.entry.js +0 -1
  1065. package/dist/paperless/p-19d84fe7.entry.js +0 -1
  1066. package/dist/paperless/p-2120a0b7.entry.js +0 -1
  1067. package/dist/paperless/p-3b491ca2.entry.js +0 -1
  1068. package/dist/paperless/p-3f6d3736.entry.js +0 -1
  1069. package/dist/paperless/p-463f354c.entry.js +0 -1
  1070. package/dist/paperless/p-4a85b858.entry.js +0 -1
  1071. package/dist/paperless/p-5101f35f.entry.js +0 -1
  1072. package/dist/paperless/p-5438d70e.entry.js +0 -1
  1073. package/dist/paperless/p-63e5f5e1.entry.js +0 -1
  1074. package/dist/paperless/p-67fc89a6.entry.js +0 -1
  1075. package/dist/paperless/p-6e60b92a.entry.js +0 -1
  1076. package/dist/paperless/p-7784ee14.entry.js +0 -1
  1077. package/dist/paperless/p-864ac423.entry.js +0 -1
  1078. package/dist/paperless/p-94cef335.entry.js +0 -1
  1079. package/dist/paperless/p-a7086ffa.js +0 -1
  1080. package/dist/paperless/p-b68368f3.entry.js +0 -1
  1081. package/dist/paperless/p-c64e2313.entry.js +0 -1
  1082. package/dist/paperless/p-ccbddcbb.entry.js +0 -1
  1083. package/dist/paperless/p-d069673f.entry.js +0 -1
  1084. package/dist/paperless/p-f50c6e5b.entry.js +0 -1
  1085. package/dist/paperless/p-fb1e33eb.entry.js +0 -1
  1086. package/dist/paperless/p-ffeed7c6.entry.js +0 -1
  1087. package/dist/tailwind/grid.js +0 -26
  1088. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +0 -3
  1089. package/dist/types/components/molecules/modal/modal.component.d.ts +0 -25
  1090. package/dist/types/utils/types.d.ts +0 -2
  1091. package/dist/types/utils/utils.d.ts +0 -1
@@ -0,0 +1,2483 @@
1
+ 'use strict';
2
+
3
+ function toInteger(dirtyNumber) {
4
+ if (dirtyNumber === null || dirtyNumber === true || dirtyNumber === false) {
5
+ return NaN;
6
+ }
7
+
8
+ var number = Number(dirtyNumber);
9
+
10
+ if (isNaN(number)) {
11
+ return number;
12
+ }
13
+
14
+ return number < 0 ? Math.ceil(number) : Math.floor(number);
15
+ }
16
+
17
+ function requiredArgs(required, args) {
18
+ if (args.length < required) {
19
+ throw new TypeError(required + ' argument' + (required > 1 ? 's' : '') + ' required, but only ' + args.length + ' present');
20
+ }
21
+ }
22
+
23
+ function _typeof$1(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$1(obj); }
24
+ /**
25
+ * @name toDate
26
+ * @category Common Helpers
27
+ * @summary Convert the given argument to an instance of Date.
28
+ *
29
+ * @description
30
+ * Convert the given argument to an instance of Date.
31
+ *
32
+ * If the argument is an instance of Date, the function returns its clone.
33
+ *
34
+ * If the argument is a number, it is treated as a timestamp.
35
+ *
36
+ * If the argument is none of the above, the function returns Invalid Date.
37
+ *
38
+ * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.
39
+ *
40
+ * @param {Date|Number} argument - the value to convert
41
+ * @returns {Date} the parsed date in the local time zone
42
+ * @throws {TypeError} 1 argument required
43
+ *
44
+ * @example
45
+ * // Clone the date:
46
+ * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))
47
+ * //=> Tue Feb 11 2014 11:30:30
48
+ *
49
+ * @example
50
+ * // Convert the timestamp to date:
51
+ * const result = toDate(1392098430000)
52
+ * //=> Tue Feb 11 2014 11:30:30
53
+ */
54
+
55
+ function toDate(argument) {
56
+ requiredArgs(1, arguments);
57
+ var argStr = Object.prototype.toString.call(argument); // Clone the date
58
+
59
+ if (argument instanceof Date || _typeof$1(argument) === 'object' && argStr === '[object Date]') {
60
+ // Prevent the date to lose the milliseconds when passed to new Date() in IE10
61
+ return new Date(argument.getTime());
62
+ } else if (typeof argument === 'number' || argStr === '[object Number]') {
63
+ return new Date(argument);
64
+ } else {
65
+ if ((typeof argument === 'string' || argStr === '[object String]') && typeof console !== 'undefined') {
66
+ // eslint-disable-next-line no-console
67
+ console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"); // eslint-disable-next-line no-console
68
+
69
+ console.warn(new Error().stack);
70
+ }
71
+
72
+ return new Date(NaN);
73
+ }
74
+ }
75
+
76
+ /**
77
+ * @name addMilliseconds
78
+ * @category Millisecond Helpers
79
+ * @summary Add the specified number of milliseconds to the given date.
80
+ *
81
+ * @description
82
+ * Add the specified number of milliseconds to the given date.
83
+ *
84
+ * @param {Date|Number} date - the date to be changed
85
+ * @param {Number} amount - the amount of milliseconds to be added. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
86
+ * @returns {Date} the new date with the milliseconds added
87
+ * @throws {TypeError} 2 arguments required
88
+ *
89
+ * @example
90
+ * // Add 750 milliseconds to 10 July 2014 12:45:30.000:
91
+ * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
92
+ * //=> Thu Jul 10 2014 12:45:30.750
93
+ */
94
+
95
+ function addMilliseconds(dirtyDate, dirtyAmount) {
96
+ requiredArgs(2, arguments);
97
+ var timestamp = toDate(dirtyDate).getTime();
98
+ var amount = toInteger(dirtyAmount);
99
+ return new Date(timestamp + amount);
100
+ }
101
+
102
+ var defaultOptions = {};
103
+ function getDefaultOptions() {
104
+ return defaultOptions;
105
+ }
106
+
107
+ /**
108
+ * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.
109
+ * They usually appear for dates that denote time before the timezones were introduced
110
+ * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891
111
+ * and GMT+01:00:00 after that date)
112
+ *
113
+ * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,
114
+ * which would lead to incorrect calculations.
115
+ *
116
+ * This function returns the timezone offset in milliseconds that takes seconds in account.
117
+ */
118
+ function getTimezoneOffsetInMilliseconds(date) {
119
+ var utcDate = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours(), date.getMinutes(), date.getSeconds(), date.getMilliseconds()));
120
+ utcDate.setUTCFullYear(date.getFullYear());
121
+ return date.getTime() - utcDate.getTime();
122
+ }
123
+
124
+ /**
125
+ * @name startOfDay
126
+ * @category Day Helpers
127
+ * @summary Return the start of a day for the given date.
128
+ *
129
+ * @description
130
+ * Return the start of a day for the given date.
131
+ * The result will be in the local timezone.
132
+ *
133
+ * @param {Date|Number} date - the original date
134
+ * @returns {Date} the start of a day
135
+ * @throws {TypeError} 1 argument required
136
+ *
137
+ * @example
138
+ * // The start of a day for 2 September 2014 11:55:00:
139
+ * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))
140
+ * //=> Tue Sep 02 2014 00:00:00
141
+ */
142
+
143
+ function startOfDay(dirtyDate) {
144
+ requiredArgs(1, arguments);
145
+ var date = toDate(dirtyDate);
146
+ date.setHours(0, 0, 0, 0);
147
+ return date;
148
+ }
149
+
150
+ /**
151
+ * @name isSameDay
152
+ * @category Day Helpers
153
+ * @summary Are the given dates in the same day (and year and month)?
154
+ *
155
+ * @description
156
+ * Are the given dates in the same day (and year and month)?
157
+ *
158
+ * @param {Date|Number} dateLeft - the first date to check
159
+ * @param {Date|Number} dateRight - the second date to check
160
+ * @returns {Boolean} the dates are in the same day (and year and month)
161
+ * @throws {TypeError} 2 arguments required
162
+ *
163
+ * @example
164
+ * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?
165
+ * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))
166
+ * //=> true
167
+ *
168
+ * @example
169
+ * // Are 4 September and 4 October in the same day?
170
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))
171
+ * //=> false
172
+ *
173
+ * @example
174
+ * // Are 4 September, 2014 and 4 September, 2015 in the same day?
175
+ * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))
176
+ * //=> false
177
+ */
178
+
179
+ function isSameDay(dirtyDateLeft, dirtyDateRight) {
180
+ requiredArgs(2, arguments);
181
+ var dateLeftStartOfDay = startOfDay(dirtyDateLeft);
182
+ var dateRightStartOfDay = startOfDay(dirtyDateRight);
183
+ return dateLeftStartOfDay.getTime() === dateRightStartOfDay.getTime();
184
+ }
185
+
186
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
187
+ /**
188
+ * @name isDate
189
+ * @category Common Helpers
190
+ * @summary Is the given value a date?
191
+ *
192
+ * @description
193
+ * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.
194
+ *
195
+ * @param {*} value - the value to check
196
+ * @returns {boolean} true if the given value is a date
197
+ * @throws {TypeError} 1 arguments required
198
+ *
199
+ * @example
200
+ * // For a valid date:
201
+ * const result = isDate(new Date())
202
+ * //=> true
203
+ *
204
+ * @example
205
+ * // For an invalid date:
206
+ * const result = isDate(new Date(NaN))
207
+ * //=> true
208
+ *
209
+ * @example
210
+ * // For some value:
211
+ * const result = isDate('2014-02-31')
212
+ * //=> false
213
+ *
214
+ * @example
215
+ * // For an object:
216
+ * const result = isDate({})
217
+ * //=> false
218
+ */
219
+
220
+ function isDate(value) {
221
+ requiredArgs(1, arguments);
222
+ return value instanceof Date || _typeof(value) === 'object' && Object.prototype.toString.call(value) === '[object Date]';
223
+ }
224
+
225
+ /**
226
+ * @name isValid
227
+ * @category Common Helpers
228
+ * @summary Is the given date valid?
229
+ *
230
+ * @description
231
+ * Returns false if argument is Invalid Date and true otherwise.
232
+ * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}
233
+ * Invalid Date is a Date, whose time value is NaN.
234
+ *
235
+ * Time value of Date: http://es5.github.io/#x15.9.1.1
236
+ *
237
+ * @param {*} date - the date to check
238
+ * @returns {Boolean} the date is valid
239
+ * @throws {TypeError} 1 argument required
240
+ *
241
+ * @example
242
+ * // For the valid date:
243
+ * const result = isValid(new Date(2014, 1, 31))
244
+ * //=> true
245
+ *
246
+ * @example
247
+ * // For the value, convertable into a date:
248
+ * const result = isValid(1393804800000)
249
+ * //=> true
250
+ *
251
+ * @example
252
+ * // For the invalid date:
253
+ * const result = isValid(new Date(''))
254
+ * //=> false
255
+ */
256
+
257
+ function isValid(dirtyDate) {
258
+ requiredArgs(1, arguments);
259
+
260
+ if (!isDate(dirtyDate) && typeof dirtyDate !== 'number') {
261
+ return false;
262
+ }
263
+
264
+ var date = toDate(dirtyDate);
265
+ return !isNaN(Number(date));
266
+ }
267
+
268
+ /**
269
+ * @name subMilliseconds
270
+ * @category Millisecond Helpers
271
+ * @summary Subtract the specified number of milliseconds from the given date.
272
+ *
273
+ * @description
274
+ * Subtract the specified number of milliseconds from the given date.
275
+ *
276
+ * @param {Date|Number} date - the date to be changed
277
+ * @param {Number} amount - the amount of milliseconds to be subtracted. Positive decimals will be rounded using `Math.floor`, decimals less than zero will be rounded using `Math.ceil`.
278
+ * @returns {Date} the new date with the milliseconds subtracted
279
+ * @throws {TypeError} 2 arguments required
280
+ *
281
+ * @example
282
+ * // Subtract 750 milliseconds from 10 July 2014 12:45:30.000:
283
+ * const result = subMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)
284
+ * //=> Thu Jul 10 2014 12:45:29.250
285
+ */
286
+
287
+ function subMilliseconds(dirtyDate, dirtyAmount) {
288
+ requiredArgs(2, arguments);
289
+ var amount = toInteger(dirtyAmount);
290
+ return addMilliseconds(dirtyDate, -amount);
291
+ }
292
+
293
+ var MILLISECONDS_IN_DAY = 86400000;
294
+ function getUTCDayOfYear(dirtyDate) {
295
+ requiredArgs(1, arguments);
296
+ var date = toDate(dirtyDate);
297
+ var timestamp = date.getTime();
298
+ date.setUTCMonth(0, 1);
299
+ date.setUTCHours(0, 0, 0, 0);
300
+ var startOfYearTimestamp = date.getTime();
301
+ var difference = timestamp - startOfYearTimestamp;
302
+ return Math.floor(difference / MILLISECONDS_IN_DAY) + 1;
303
+ }
304
+
305
+ function startOfUTCISOWeek(dirtyDate) {
306
+ requiredArgs(1, arguments);
307
+ var weekStartsOn = 1;
308
+ var date = toDate(dirtyDate);
309
+ var day = date.getUTCDay();
310
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
311
+ date.setUTCDate(date.getUTCDate() - diff);
312
+ date.setUTCHours(0, 0, 0, 0);
313
+ return date;
314
+ }
315
+
316
+ function getUTCISOWeekYear(dirtyDate) {
317
+ requiredArgs(1, arguments);
318
+ var date = toDate(dirtyDate);
319
+ var year = date.getUTCFullYear();
320
+ var fourthOfJanuaryOfNextYear = new Date(0);
321
+ fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);
322
+ fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);
323
+ var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear);
324
+ var fourthOfJanuaryOfThisYear = new Date(0);
325
+ fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);
326
+ fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);
327
+ var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear);
328
+
329
+ if (date.getTime() >= startOfNextYear.getTime()) {
330
+ return year + 1;
331
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
332
+ return year;
333
+ } else {
334
+ return year - 1;
335
+ }
336
+ }
337
+
338
+ function startOfUTCISOWeekYear(dirtyDate) {
339
+ requiredArgs(1, arguments);
340
+ var year = getUTCISOWeekYear(dirtyDate);
341
+ var fourthOfJanuary = new Date(0);
342
+ fourthOfJanuary.setUTCFullYear(year, 0, 4);
343
+ fourthOfJanuary.setUTCHours(0, 0, 0, 0);
344
+ var date = startOfUTCISOWeek(fourthOfJanuary);
345
+ return date;
346
+ }
347
+
348
+ var MILLISECONDS_IN_WEEK$1 = 604800000;
349
+ function getUTCISOWeek(dirtyDate) {
350
+ requiredArgs(1, arguments);
351
+ var date = toDate(dirtyDate);
352
+ var diff = startOfUTCISOWeek(date).getTime() - startOfUTCISOWeekYear(date).getTime(); // Round the number of days to the nearest integer
353
+ // because the number of milliseconds in a week is not constant
354
+ // (e.g. it's different in the week of the daylight saving time clock shift)
355
+
356
+ return Math.round(diff / MILLISECONDS_IN_WEEK$1) + 1;
357
+ }
358
+
359
+ function startOfUTCWeek(dirtyDate, options) {
360
+ var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
361
+
362
+ requiredArgs(1, arguments);
363
+ var defaultOptions = getDefaultOptions();
364
+ var weekStartsOn = toInteger((_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
365
+
366
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
367
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
368
+ }
369
+
370
+ var date = toDate(dirtyDate);
371
+ var day = date.getUTCDay();
372
+ var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
373
+ date.setUTCDate(date.getUTCDate() - diff);
374
+ date.setUTCHours(0, 0, 0, 0);
375
+ return date;
376
+ }
377
+
378
+ function getUTCWeekYear(dirtyDate, options) {
379
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
380
+
381
+ requiredArgs(1, arguments);
382
+ var date = toDate(dirtyDate);
383
+ var year = date.getUTCFullYear();
384
+ var defaultOptions = getDefaultOptions();
385
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
386
+
387
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
388
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
389
+ }
390
+
391
+ var firstWeekOfNextYear = new Date(0);
392
+ firstWeekOfNextYear.setUTCFullYear(year + 1, 0, firstWeekContainsDate);
393
+ firstWeekOfNextYear.setUTCHours(0, 0, 0, 0);
394
+ var startOfNextYear = startOfUTCWeek(firstWeekOfNextYear, options);
395
+ var firstWeekOfThisYear = new Date(0);
396
+ firstWeekOfThisYear.setUTCFullYear(year, 0, firstWeekContainsDate);
397
+ firstWeekOfThisYear.setUTCHours(0, 0, 0, 0);
398
+ var startOfThisYear = startOfUTCWeek(firstWeekOfThisYear, options);
399
+
400
+ if (date.getTime() >= startOfNextYear.getTime()) {
401
+ return year + 1;
402
+ } else if (date.getTime() >= startOfThisYear.getTime()) {
403
+ return year;
404
+ } else {
405
+ return year - 1;
406
+ }
407
+ }
408
+
409
+ function startOfUTCWeekYear(dirtyDate, options) {
410
+ var _ref, _ref2, _ref3, _options$firstWeekCon, _options$locale, _options$locale$optio, _defaultOptions$local, _defaultOptions$local2;
411
+
412
+ requiredArgs(1, arguments);
413
+ var defaultOptions = getDefaultOptions();
414
+ var firstWeekContainsDate = toInteger((_ref = (_ref2 = (_ref3 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale = options.locale) === null || _options$locale === void 0 ? void 0 : (_options$locale$optio = _options$locale.options) === null || _options$locale$optio === void 0 ? void 0 : _options$locale$optio.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref !== void 0 ? _ref : 1);
415
+ var year = getUTCWeekYear(dirtyDate, options);
416
+ var firstWeek = new Date(0);
417
+ firstWeek.setUTCFullYear(year, 0, firstWeekContainsDate);
418
+ firstWeek.setUTCHours(0, 0, 0, 0);
419
+ var date = startOfUTCWeek(firstWeek, options);
420
+ return date;
421
+ }
422
+
423
+ var MILLISECONDS_IN_WEEK = 604800000;
424
+ function getUTCWeek(dirtyDate, options) {
425
+ requiredArgs(1, arguments);
426
+ var date = toDate(dirtyDate);
427
+ var diff = startOfUTCWeek(date, options).getTime() - startOfUTCWeekYear(date, options).getTime(); // Round the number of days to the nearest integer
428
+ // because the number of milliseconds in a week is not constant
429
+ // (e.g. it's different in the week of the daylight saving time clock shift)
430
+
431
+ return Math.round(diff / MILLISECONDS_IN_WEEK) + 1;
432
+ }
433
+
434
+ function addLeadingZeros(number, targetLength) {
435
+ var sign = number < 0 ? '-' : '';
436
+ var output = Math.abs(number).toString();
437
+
438
+ while (output.length < targetLength) {
439
+ output = '0' + output;
440
+ }
441
+
442
+ return sign + output;
443
+ }
444
+
445
+ /*
446
+ * | | Unit | | Unit |
447
+ * |-----|--------------------------------|-----|--------------------------------|
448
+ * | a | AM, PM | A* | |
449
+ * | d | Day of month | D | |
450
+ * | h | Hour [1-12] | H | Hour [0-23] |
451
+ * | m | Minute | M | Month |
452
+ * | s | Second | S | Fraction of second |
453
+ * | y | Year (abs) | Y | |
454
+ *
455
+ * Letters marked by * are not implemented but reserved by Unicode standard.
456
+ */
457
+
458
+ var formatters$1 = {
459
+ // Year
460
+ y: function y(date, token) {
461
+ // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens
462
+ // | Year | y | yy | yyy | yyyy | yyyyy |
463
+ // |----------|-------|----|-------|-------|-------|
464
+ // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |
465
+ // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |
466
+ // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |
467
+ // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |
468
+ // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |
469
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
470
+
471
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
472
+ return addLeadingZeros(token === 'yy' ? year % 100 : year, token.length);
473
+ },
474
+ // Month
475
+ M: function M(date, token) {
476
+ var month = date.getUTCMonth();
477
+ return token === 'M' ? String(month + 1) : addLeadingZeros(month + 1, 2);
478
+ },
479
+ // Day of the month
480
+ d: function d(date, token) {
481
+ return addLeadingZeros(date.getUTCDate(), token.length);
482
+ },
483
+ // AM or PM
484
+ a: function a(date, token) {
485
+ var dayPeriodEnumValue = date.getUTCHours() / 12 >= 1 ? 'pm' : 'am';
486
+
487
+ switch (token) {
488
+ case 'a':
489
+ case 'aa':
490
+ return dayPeriodEnumValue.toUpperCase();
491
+
492
+ case 'aaa':
493
+ return dayPeriodEnumValue;
494
+
495
+ case 'aaaaa':
496
+ return dayPeriodEnumValue[0];
497
+
498
+ case 'aaaa':
499
+ default:
500
+ return dayPeriodEnumValue === 'am' ? 'a.m.' : 'p.m.';
501
+ }
502
+ },
503
+ // Hour [1-12]
504
+ h: function h(date, token) {
505
+ return addLeadingZeros(date.getUTCHours() % 12 || 12, token.length);
506
+ },
507
+ // Hour [0-23]
508
+ H: function H(date, token) {
509
+ return addLeadingZeros(date.getUTCHours(), token.length);
510
+ },
511
+ // Minute
512
+ m: function m(date, token) {
513
+ return addLeadingZeros(date.getUTCMinutes(), token.length);
514
+ },
515
+ // Second
516
+ s: function s(date, token) {
517
+ return addLeadingZeros(date.getUTCSeconds(), token.length);
518
+ },
519
+ // Fraction of second
520
+ S: function S(date, token) {
521
+ var numberOfDigits = token.length;
522
+ var milliseconds = date.getUTCMilliseconds();
523
+ var fractionalSeconds = Math.floor(milliseconds * Math.pow(10, numberOfDigits - 3));
524
+ return addLeadingZeros(fractionalSeconds, token.length);
525
+ }
526
+ };
527
+
528
+ var dayPeriodEnum = {
529
+ am: 'am',
530
+ pm: 'pm',
531
+ midnight: 'midnight',
532
+ noon: 'noon',
533
+ morning: 'morning',
534
+ afternoon: 'afternoon',
535
+ evening: 'evening',
536
+ night: 'night'
537
+ };
538
+
539
+ /*
540
+ * | | Unit | | Unit |
541
+ * |-----|--------------------------------|-----|--------------------------------|
542
+ * | a | AM, PM | A* | Milliseconds in day |
543
+ * | b | AM, PM, noon, midnight | B | Flexible day period |
544
+ * | c | Stand-alone local day of week | C* | Localized hour w/ day period |
545
+ * | d | Day of month | D | Day of year |
546
+ * | e | Local day of week | E | Day of week |
547
+ * | f | | F* | Day of week in month |
548
+ * | g* | Modified Julian day | G | Era |
549
+ * | h | Hour [1-12] | H | Hour [0-23] |
550
+ * | i! | ISO day of week | I! | ISO week of year |
551
+ * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |
552
+ * | k | Hour [1-24] | K | Hour [0-11] |
553
+ * | l* | (deprecated) | L | Stand-alone month |
554
+ * | m | Minute | M | Month |
555
+ * | n | | N | |
556
+ * | o! | Ordinal number modifier | O | Timezone (GMT) |
557
+ * | p! | Long localized time | P! | Long localized date |
558
+ * | q | Stand-alone quarter | Q | Quarter |
559
+ * | r* | Related Gregorian year | R! | ISO week-numbering year |
560
+ * | s | Second | S | Fraction of second |
561
+ * | t! | Seconds timestamp | T! | Milliseconds timestamp |
562
+ * | u | Extended year | U* | Cyclic year |
563
+ * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |
564
+ * | w | Local week of year | W* | Week of month |
565
+ * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |
566
+ * | y | Year (abs) | Y | Local week-numbering year |
567
+ * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |
568
+ *
569
+ * Letters marked by * are not implemented but reserved by Unicode standard.
570
+ *
571
+ * Letters marked by ! are non-standard, but implemented by date-fns:
572
+ * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)
573
+ * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,
574
+ * i.e. 7 for Sunday, 1 for Monday, etc.
575
+ * - `I` is ISO week of year, as opposed to `w` which is local week of year.
576
+ * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.
577
+ * `R` is supposed to be used in conjunction with `I` and `i`
578
+ * for universal ISO week-numbering date, whereas
579
+ * `Y` is supposed to be used in conjunction with `w` and `e`
580
+ * for week-numbering date specific to the locale.
581
+ * - `P` is long localized date format
582
+ * - `p` is long localized time format
583
+ */
584
+ var formatters = {
585
+ // Era
586
+ G: function G(date, token, localize) {
587
+ var era = date.getUTCFullYear() > 0 ? 1 : 0;
588
+
589
+ switch (token) {
590
+ // AD, BC
591
+ case 'G':
592
+ case 'GG':
593
+ case 'GGG':
594
+ return localize.era(era, {
595
+ width: 'abbreviated'
596
+ });
597
+ // A, B
598
+
599
+ case 'GGGGG':
600
+ return localize.era(era, {
601
+ width: 'narrow'
602
+ });
603
+ // Anno Domini, Before Christ
604
+
605
+ case 'GGGG':
606
+ default:
607
+ return localize.era(era, {
608
+ width: 'wide'
609
+ });
610
+ }
611
+ },
612
+ // Year
613
+ y: function y(date, token, localize) {
614
+ // Ordinal number
615
+ if (token === 'yo') {
616
+ var signedYear = date.getUTCFullYear(); // Returns 1 for 1 BC (which is year 0 in JavaScript)
617
+
618
+ var year = signedYear > 0 ? signedYear : 1 - signedYear;
619
+ return localize.ordinalNumber(year, {
620
+ unit: 'year'
621
+ });
622
+ }
623
+
624
+ return formatters$1.y(date, token);
625
+ },
626
+ // Local week-numbering year
627
+ Y: function Y(date, token, localize, options) {
628
+ var signedWeekYear = getUTCWeekYear(date, options); // Returns 1 for 1 BC (which is year 0 in JavaScript)
629
+
630
+ var weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear; // Two digit year
631
+
632
+ if (token === 'YY') {
633
+ var twoDigitYear = weekYear % 100;
634
+ return addLeadingZeros(twoDigitYear, 2);
635
+ } // Ordinal number
636
+
637
+
638
+ if (token === 'Yo') {
639
+ return localize.ordinalNumber(weekYear, {
640
+ unit: 'year'
641
+ });
642
+ } // Padding
643
+
644
+
645
+ return addLeadingZeros(weekYear, token.length);
646
+ },
647
+ // ISO week-numbering year
648
+ R: function R(date, token) {
649
+ var isoWeekYear = getUTCISOWeekYear(date); // Padding
650
+
651
+ return addLeadingZeros(isoWeekYear, token.length);
652
+ },
653
+ // Extended year. This is a single number designating the year of this calendar system.
654
+ // The main difference between `y` and `u` localizers are B.C. years:
655
+ // | Year | `y` | `u` |
656
+ // |------|-----|-----|
657
+ // | AC 1 | 1 | 1 |
658
+ // | BC 1 | 1 | 0 |
659
+ // | BC 2 | 2 | -1 |
660
+ // Also `yy` always returns the last two digits of a year,
661
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
662
+ u: function u(date, token) {
663
+ var year = date.getUTCFullYear();
664
+ return addLeadingZeros(year, token.length);
665
+ },
666
+ // Quarter
667
+ Q: function Q(date, token, localize) {
668
+ var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
669
+
670
+ switch (token) {
671
+ // 1, 2, 3, 4
672
+ case 'Q':
673
+ return String(quarter);
674
+ // 01, 02, 03, 04
675
+
676
+ case 'QQ':
677
+ return addLeadingZeros(quarter, 2);
678
+ // 1st, 2nd, 3rd, 4th
679
+
680
+ case 'Qo':
681
+ return localize.ordinalNumber(quarter, {
682
+ unit: 'quarter'
683
+ });
684
+ // Q1, Q2, Q3, Q4
685
+
686
+ case 'QQQ':
687
+ return localize.quarter(quarter, {
688
+ width: 'abbreviated',
689
+ context: 'formatting'
690
+ });
691
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
692
+
693
+ case 'QQQQQ':
694
+ return localize.quarter(quarter, {
695
+ width: 'narrow',
696
+ context: 'formatting'
697
+ });
698
+ // 1st quarter, 2nd quarter, ...
699
+
700
+ case 'QQQQ':
701
+ default:
702
+ return localize.quarter(quarter, {
703
+ width: 'wide',
704
+ context: 'formatting'
705
+ });
706
+ }
707
+ },
708
+ // Stand-alone quarter
709
+ q: function q(date, token, localize) {
710
+ var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);
711
+
712
+ switch (token) {
713
+ // 1, 2, 3, 4
714
+ case 'q':
715
+ return String(quarter);
716
+ // 01, 02, 03, 04
717
+
718
+ case 'qq':
719
+ return addLeadingZeros(quarter, 2);
720
+ // 1st, 2nd, 3rd, 4th
721
+
722
+ case 'qo':
723
+ return localize.ordinalNumber(quarter, {
724
+ unit: 'quarter'
725
+ });
726
+ // Q1, Q2, Q3, Q4
727
+
728
+ case 'qqq':
729
+ return localize.quarter(quarter, {
730
+ width: 'abbreviated',
731
+ context: 'standalone'
732
+ });
733
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
734
+
735
+ case 'qqqqq':
736
+ return localize.quarter(quarter, {
737
+ width: 'narrow',
738
+ context: 'standalone'
739
+ });
740
+ // 1st quarter, 2nd quarter, ...
741
+
742
+ case 'qqqq':
743
+ default:
744
+ return localize.quarter(quarter, {
745
+ width: 'wide',
746
+ context: 'standalone'
747
+ });
748
+ }
749
+ },
750
+ // Month
751
+ M: function M(date, token, localize) {
752
+ var month = date.getUTCMonth();
753
+
754
+ switch (token) {
755
+ case 'M':
756
+ case 'MM':
757
+ return formatters$1.M(date, token);
758
+ // 1st, 2nd, ..., 12th
759
+
760
+ case 'Mo':
761
+ return localize.ordinalNumber(month + 1, {
762
+ unit: 'month'
763
+ });
764
+ // Jan, Feb, ..., Dec
765
+
766
+ case 'MMM':
767
+ return localize.month(month, {
768
+ width: 'abbreviated',
769
+ context: 'formatting'
770
+ });
771
+ // J, F, ..., D
772
+
773
+ case 'MMMMM':
774
+ return localize.month(month, {
775
+ width: 'narrow',
776
+ context: 'formatting'
777
+ });
778
+ // January, February, ..., December
779
+
780
+ case 'MMMM':
781
+ default:
782
+ return localize.month(month, {
783
+ width: 'wide',
784
+ context: 'formatting'
785
+ });
786
+ }
787
+ },
788
+ // Stand-alone month
789
+ L: function L(date, token, localize) {
790
+ var month = date.getUTCMonth();
791
+
792
+ switch (token) {
793
+ // 1, 2, ..., 12
794
+ case 'L':
795
+ return String(month + 1);
796
+ // 01, 02, ..., 12
797
+
798
+ case 'LL':
799
+ return addLeadingZeros(month + 1, 2);
800
+ // 1st, 2nd, ..., 12th
801
+
802
+ case 'Lo':
803
+ return localize.ordinalNumber(month + 1, {
804
+ unit: 'month'
805
+ });
806
+ // Jan, Feb, ..., Dec
807
+
808
+ case 'LLL':
809
+ return localize.month(month, {
810
+ width: 'abbreviated',
811
+ context: 'standalone'
812
+ });
813
+ // J, F, ..., D
814
+
815
+ case 'LLLLL':
816
+ return localize.month(month, {
817
+ width: 'narrow',
818
+ context: 'standalone'
819
+ });
820
+ // January, February, ..., December
821
+
822
+ case 'LLLL':
823
+ default:
824
+ return localize.month(month, {
825
+ width: 'wide',
826
+ context: 'standalone'
827
+ });
828
+ }
829
+ },
830
+ // Local week of year
831
+ w: function w(date, token, localize, options) {
832
+ var week = getUTCWeek(date, options);
833
+
834
+ if (token === 'wo') {
835
+ return localize.ordinalNumber(week, {
836
+ unit: 'week'
837
+ });
838
+ }
839
+
840
+ return addLeadingZeros(week, token.length);
841
+ },
842
+ // ISO week of year
843
+ I: function I(date, token, localize) {
844
+ var isoWeek = getUTCISOWeek(date);
845
+
846
+ if (token === 'Io') {
847
+ return localize.ordinalNumber(isoWeek, {
848
+ unit: 'week'
849
+ });
850
+ }
851
+
852
+ return addLeadingZeros(isoWeek, token.length);
853
+ },
854
+ // Day of the month
855
+ d: function d(date, token, localize) {
856
+ if (token === 'do') {
857
+ return localize.ordinalNumber(date.getUTCDate(), {
858
+ unit: 'date'
859
+ });
860
+ }
861
+
862
+ return formatters$1.d(date, token);
863
+ },
864
+ // Day of year
865
+ D: function D(date, token, localize) {
866
+ var dayOfYear = getUTCDayOfYear(date);
867
+
868
+ if (token === 'Do') {
869
+ return localize.ordinalNumber(dayOfYear, {
870
+ unit: 'dayOfYear'
871
+ });
872
+ }
873
+
874
+ return addLeadingZeros(dayOfYear, token.length);
875
+ },
876
+ // Day of week
877
+ E: function E(date, token, localize) {
878
+ var dayOfWeek = date.getUTCDay();
879
+
880
+ switch (token) {
881
+ // Tue
882
+ case 'E':
883
+ case 'EE':
884
+ case 'EEE':
885
+ return localize.day(dayOfWeek, {
886
+ width: 'abbreviated',
887
+ context: 'formatting'
888
+ });
889
+ // T
890
+
891
+ case 'EEEEE':
892
+ return localize.day(dayOfWeek, {
893
+ width: 'narrow',
894
+ context: 'formatting'
895
+ });
896
+ // Tu
897
+
898
+ case 'EEEEEE':
899
+ return localize.day(dayOfWeek, {
900
+ width: 'short',
901
+ context: 'formatting'
902
+ });
903
+ // Tuesday
904
+
905
+ case 'EEEE':
906
+ default:
907
+ return localize.day(dayOfWeek, {
908
+ width: 'wide',
909
+ context: 'formatting'
910
+ });
911
+ }
912
+ },
913
+ // Local day of week
914
+ e: function e(date, token, localize, options) {
915
+ var dayOfWeek = date.getUTCDay();
916
+ var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
917
+
918
+ switch (token) {
919
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
920
+ case 'e':
921
+ return String(localDayOfWeek);
922
+ // Padded numerical value
923
+
924
+ case 'ee':
925
+ return addLeadingZeros(localDayOfWeek, 2);
926
+ // 1st, 2nd, ..., 7th
927
+
928
+ case 'eo':
929
+ return localize.ordinalNumber(localDayOfWeek, {
930
+ unit: 'day'
931
+ });
932
+
933
+ case 'eee':
934
+ return localize.day(dayOfWeek, {
935
+ width: 'abbreviated',
936
+ context: 'formatting'
937
+ });
938
+ // T
939
+
940
+ case 'eeeee':
941
+ return localize.day(dayOfWeek, {
942
+ width: 'narrow',
943
+ context: 'formatting'
944
+ });
945
+ // Tu
946
+
947
+ case 'eeeeee':
948
+ return localize.day(dayOfWeek, {
949
+ width: 'short',
950
+ context: 'formatting'
951
+ });
952
+ // Tuesday
953
+
954
+ case 'eeee':
955
+ default:
956
+ return localize.day(dayOfWeek, {
957
+ width: 'wide',
958
+ context: 'formatting'
959
+ });
960
+ }
961
+ },
962
+ // Stand-alone local day of week
963
+ c: function c(date, token, localize, options) {
964
+ var dayOfWeek = date.getUTCDay();
965
+ var localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;
966
+
967
+ switch (token) {
968
+ // Numerical value (same as in `e`)
969
+ case 'c':
970
+ return String(localDayOfWeek);
971
+ // Padded numerical value
972
+
973
+ case 'cc':
974
+ return addLeadingZeros(localDayOfWeek, token.length);
975
+ // 1st, 2nd, ..., 7th
976
+
977
+ case 'co':
978
+ return localize.ordinalNumber(localDayOfWeek, {
979
+ unit: 'day'
980
+ });
981
+
982
+ case 'ccc':
983
+ return localize.day(dayOfWeek, {
984
+ width: 'abbreviated',
985
+ context: 'standalone'
986
+ });
987
+ // T
988
+
989
+ case 'ccccc':
990
+ return localize.day(dayOfWeek, {
991
+ width: 'narrow',
992
+ context: 'standalone'
993
+ });
994
+ // Tu
995
+
996
+ case 'cccccc':
997
+ return localize.day(dayOfWeek, {
998
+ width: 'short',
999
+ context: 'standalone'
1000
+ });
1001
+ // Tuesday
1002
+
1003
+ case 'cccc':
1004
+ default:
1005
+ return localize.day(dayOfWeek, {
1006
+ width: 'wide',
1007
+ context: 'standalone'
1008
+ });
1009
+ }
1010
+ },
1011
+ // ISO day of week
1012
+ i: function i(date, token, localize) {
1013
+ var dayOfWeek = date.getUTCDay();
1014
+ var isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;
1015
+
1016
+ switch (token) {
1017
+ // 2
1018
+ case 'i':
1019
+ return String(isoDayOfWeek);
1020
+ // 02
1021
+
1022
+ case 'ii':
1023
+ return addLeadingZeros(isoDayOfWeek, token.length);
1024
+ // 2nd
1025
+
1026
+ case 'io':
1027
+ return localize.ordinalNumber(isoDayOfWeek, {
1028
+ unit: 'day'
1029
+ });
1030
+ // Tue
1031
+
1032
+ case 'iii':
1033
+ return localize.day(dayOfWeek, {
1034
+ width: 'abbreviated',
1035
+ context: 'formatting'
1036
+ });
1037
+ // T
1038
+
1039
+ case 'iiiii':
1040
+ return localize.day(dayOfWeek, {
1041
+ width: 'narrow',
1042
+ context: 'formatting'
1043
+ });
1044
+ // Tu
1045
+
1046
+ case 'iiiiii':
1047
+ return localize.day(dayOfWeek, {
1048
+ width: 'short',
1049
+ context: 'formatting'
1050
+ });
1051
+ // Tuesday
1052
+
1053
+ case 'iiii':
1054
+ default:
1055
+ return localize.day(dayOfWeek, {
1056
+ width: 'wide',
1057
+ context: 'formatting'
1058
+ });
1059
+ }
1060
+ },
1061
+ // AM or PM
1062
+ a: function a(date, token, localize) {
1063
+ var hours = date.getUTCHours();
1064
+ var dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1065
+
1066
+ switch (token) {
1067
+ case 'a':
1068
+ case 'aa':
1069
+ return localize.dayPeriod(dayPeriodEnumValue, {
1070
+ width: 'abbreviated',
1071
+ context: 'formatting'
1072
+ });
1073
+
1074
+ case 'aaa':
1075
+ return localize.dayPeriod(dayPeriodEnumValue, {
1076
+ width: 'abbreviated',
1077
+ context: 'formatting'
1078
+ }).toLowerCase();
1079
+
1080
+ case 'aaaaa':
1081
+ return localize.dayPeriod(dayPeriodEnumValue, {
1082
+ width: 'narrow',
1083
+ context: 'formatting'
1084
+ });
1085
+
1086
+ case 'aaaa':
1087
+ default:
1088
+ return localize.dayPeriod(dayPeriodEnumValue, {
1089
+ width: 'wide',
1090
+ context: 'formatting'
1091
+ });
1092
+ }
1093
+ },
1094
+ // AM, PM, midnight, noon
1095
+ b: function b(date, token, localize) {
1096
+ var hours = date.getUTCHours();
1097
+ var dayPeriodEnumValue;
1098
+
1099
+ if (hours === 12) {
1100
+ dayPeriodEnumValue = dayPeriodEnum.noon;
1101
+ } else if (hours === 0) {
1102
+ dayPeriodEnumValue = dayPeriodEnum.midnight;
1103
+ } else {
1104
+ dayPeriodEnumValue = hours / 12 >= 1 ? 'pm' : 'am';
1105
+ }
1106
+
1107
+ switch (token) {
1108
+ case 'b':
1109
+ case 'bb':
1110
+ return localize.dayPeriod(dayPeriodEnumValue, {
1111
+ width: 'abbreviated',
1112
+ context: 'formatting'
1113
+ });
1114
+
1115
+ case 'bbb':
1116
+ return localize.dayPeriod(dayPeriodEnumValue, {
1117
+ width: 'abbreviated',
1118
+ context: 'formatting'
1119
+ }).toLowerCase();
1120
+
1121
+ case 'bbbbb':
1122
+ return localize.dayPeriod(dayPeriodEnumValue, {
1123
+ width: 'narrow',
1124
+ context: 'formatting'
1125
+ });
1126
+
1127
+ case 'bbbb':
1128
+ default:
1129
+ return localize.dayPeriod(dayPeriodEnumValue, {
1130
+ width: 'wide',
1131
+ context: 'formatting'
1132
+ });
1133
+ }
1134
+ },
1135
+ // in the morning, in the afternoon, in the evening, at night
1136
+ B: function B(date, token, localize) {
1137
+ var hours = date.getUTCHours();
1138
+ var dayPeriodEnumValue;
1139
+
1140
+ if (hours >= 17) {
1141
+ dayPeriodEnumValue = dayPeriodEnum.evening;
1142
+ } else if (hours >= 12) {
1143
+ dayPeriodEnumValue = dayPeriodEnum.afternoon;
1144
+ } else if (hours >= 4) {
1145
+ dayPeriodEnumValue = dayPeriodEnum.morning;
1146
+ } else {
1147
+ dayPeriodEnumValue = dayPeriodEnum.night;
1148
+ }
1149
+
1150
+ switch (token) {
1151
+ case 'B':
1152
+ case 'BB':
1153
+ case 'BBB':
1154
+ return localize.dayPeriod(dayPeriodEnumValue, {
1155
+ width: 'abbreviated',
1156
+ context: 'formatting'
1157
+ });
1158
+
1159
+ case 'BBBBB':
1160
+ return localize.dayPeriod(dayPeriodEnumValue, {
1161
+ width: 'narrow',
1162
+ context: 'formatting'
1163
+ });
1164
+
1165
+ case 'BBBB':
1166
+ default:
1167
+ return localize.dayPeriod(dayPeriodEnumValue, {
1168
+ width: 'wide',
1169
+ context: 'formatting'
1170
+ });
1171
+ }
1172
+ },
1173
+ // Hour [1-12]
1174
+ h: function h(date, token, localize) {
1175
+ if (token === 'ho') {
1176
+ var hours = date.getUTCHours() % 12;
1177
+ if (hours === 0) hours = 12;
1178
+ return localize.ordinalNumber(hours, {
1179
+ unit: 'hour'
1180
+ });
1181
+ }
1182
+
1183
+ return formatters$1.h(date, token);
1184
+ },
1185
+ // Hour [0-23]
1186
+ H: function H(date, token, localize) {
1187
+ if (token === 'Ho') {
1188
+ return localize.ordinalNumber(date.getUTCHours(), {
1189
+ unit: 'hour'
1190
+ });
1191
+ }
1192
+
1193
+ return formatters$1.H(date, token);
1194
+ },
1195
+ // Hour [0-11]
1196
+ K: function K(date, token, localize) {
1197
+ var hours = date.getUTCHours() % 12;
1198
+
1199
+ if (token === 'Ko') {
1200
+ return localize.ordinalNumber(hours, {
1201
+ unit: 'hour'
1202
+ });
1203
+ }
1204
+
1205
+ return addLeadingZeros(hours, token.length);
1206
+ },
1207
+ // Hour [1-24]
1208
+ k: function k(date, token, localize) {
1209
+ var hours = date.getUTCHours();
1210
+ if (hours === 0) hours = 24;
1211
+
1212
+ if (token === 'ko') {
1213
+ return localize.ordinalNumber(hours, {
1214
+ unit: 'hour'
1215
+ });
1216
+ }
1217
+
1218
+ return addLeadingZeros(hours, token.length);
1219
+ },
1220
+ // Minute
1221
+ m: function m(date, token, localize) {
1222
+ if (token === 'mo') {
1223
+ return localize.ordinalNumber(date.getUTCMinutes(), {
1224
+ unit: 'minute'
1225
+ });
1226
+ }
1227
+
1228
+ return formatters$1.m(date, token);
1229
+ },
1230
+ // Second
1231
+ s: function s(date, token, localize) {
1232
+ if (token === 'so') {
1233
+ return localize.ordinalNumber(date.getUTCSeconds(), {
1234
+ unit: 'second'
1235
+ });
1236
+ }
1237
+
1238
+ return formatters$1.s(date, token);
1239
+ },
1240
+ // Fraction of second
1241
+ S: function S(date, token) {
1242
+ return formatters$1.S(date, token);
1243
+ },
1244
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1245
+ X: function X(date, token, _localize, options) {
1246
+ var originalDate = options._originalDate || date;
1247
+ var timezoneOffset = originalDate.getTimezoneOffset();
1248
+
1249
+ if (timezoneOffset === 0) {
1250
+ return 'Z';
1251
+ }
1252
+
1253
+ switch (token) {
1254
+ // Hours and optional minutes
1255
+ case 'X':
1256
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
1257
+ // Hours, minutes and optional seconds without `:` delimiter
1258
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1259
+ // so this token always has the same output as `XX`
1260
+
1261
+ case 'XXXX':
1262
+ case 'XX':
1263
+ // Hours and minutes without `:` delimiter
1264
+ return formatTimezone(timezoneOffset);
1265
+ // Hours, minutes and optional seconds with `:` delimiter
1266
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1267
+ // so this token always has the same output as `XXX`
1268
+
1269
+ case 'XXXXX':
1270
+ case 'XXX': // Hours and minutes with `:` delimiter
1271
+
1272
+ default:
1273
+ return formatTimezone(timezoneOffset, ':');
1274
+ }
1275
+ },
1276
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1277
+ x: function x(date, token, _localize, options) {
1278
+ var originalDate = options._originalDate || date;
1279
+ var timezoneOffset = originalDate.getTimezoneOffset();
1280
+
1281
+ switch (token) {
1282
+ // Hours and optional minutes
1283
+ case 'x':
1284
+ return formatTimezoneWithOptionalMinutes(timezoneOffset);
1285
+ // Hours, minutes and optional seconds without `:` delimiter
1286
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1287
+ // so this token always has the same output as `xx`
1288
+
1289
+ case 'xxxx':
1290
+ case 'xx':
1291
+ // Hours and minutes without `:` delimiter
1292
+ return formatTimezone(timezoneOffset);
1293
+ // Hours, minutes and optional seconds with `:` delimiter
1294
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1295
+ // so this token always has the same output as `xxx`
1296
+
1297
+ case 'xxxxx':
1298
+ case 'xxx': // Hours and minutes with `:` delimiter
1299
+
1300
+ default:
1301
+ return formatTimezone(timezoneOffset, ':');
1302
+ }
1303
+ },
1304
+ // Timezone (GMT)
1305
+ O: function O(date, token, _localize, options) {
1306
+ var originalDate = options._originalDate || date;
1307
+ var timezoneOffset = originalDate.getTimezoneOffset();
1308
+
1309
+ switch (token) {
1310
+ // Short
1311
+ case 'O':
1312
+ case 'OO':
1313
+ case 'OOO':
1314
+ return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1315
+ // Long
1316
+
1317
+ case 'OOOO':
1318
+ default:
1319
+ return 'GMT' + formatTimezone(timezoneOffset, ':');
1320
+ }
1321
+ },
1322
+ // Timezone (specific non-location)
1323
+ z: function z(date, token, _localize, options) {
1324
+ var originalDate = options._originalDate || date;
1325
+ var timezoneOffset = originalDate.getTimezoneOffset();
1326
+
1327
+ switch (token) {
1328
+ // Short
1329
+ case 'z':
1330
+ case 'zz':
1331
+ case 'zzz':
1332
+ return 'GMT' + formatTimezoneShort(timezoneOffset, ':');
1333
+ // Long
1334
+
1335
+ case 'zzzz':
1336
+ default:
1337
+ return 'GMT' + formatTimezone(timezoneOffset, ':');
1338
+ }
1339
+ },
1340
+ // Seconds timestamp
1341
+ t: function t(date, token, _localize, options) {
1342
+ var originalDate = options._originalDate || date;
1343
+ var timestamp = Math.floor(originalDate.getTime() / 1000);
1344
+ return addLeadingZeros(timestamp, token.length);
1345
+ },
1346
+ // Milliseconds timestamp
1347
+ T: function T(date, token, _localize, options) {
1348
+ var originalDate = options._originalDate || date;
1349
+ var timestamp = originalDate.getTime();
1350
+ return addLeadingZeros(timestamp, token.length);
1351
+ }
1352
+ };
1353
+
1354
+ function formatTimezoneShort(offset, dirtyDelimiter) {
1355
+ var sign = offset > 0 ? '-' : '+';
1356
+ var absOffset = Math.abs(offset);
1357
+ var hours = Math.floor(absOffset / 60);
1358
+ var minutes = absOffset % 60;
1359
+
1360
+ if (minutes === 0) {
1361
+ return sign + String(hours);
1362
+ }
1363
+
1364
+ var delimiter = dirtyDelimiter || '';
1365
+ return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);
1366
+ }
1367
+
1368
+ function formatTimezoneWithOptionalMinutes(offset, dirtyDelimiter) {
1369
+ if (offset % 60 === 0) {
1370
+ var sign = offset > 0 ? '-' : '+';
1371
+ return sign + addLeadingZeros(Math.abs(offset) / 60, 2);
1372
+ }
1373
+
1374
+ return formatTimezone(offset, dirtyDelimiter);
1375
+ }
1376
+
1377
+ function formatTimezone(offset, dirtyDelimiter) {
1378
+ var delimiter = dirtyDelimiter || '';
1379
+ var sign = offset > 0 ? '-' : '+';
1380
+ var absOffset = Math.abs(offset);
1381
+ var hours = addLeadingZeros(Math.floor(absOffset / 60), 2);
1382
+ var minutes = addLeadingZeros(absOffset % 60, 2);
1383
+ return sign + hours + delimiter + minutes;
1384
+ }
1385
+
1386
+ var dateLongFormatter = function dateLongFormatter(pattern, formatLong) {
1387
+ switch (pattern) {
1388
+ case 'P':
1389
+ return formatLong.date({
1390
+ width: 'short'
1391
+ });
1392
+
1393
+ case 'PP':
1394
+ return formatLong.date({
1395
+ width: 'medium'
1396
+ });
1397
+
1398
+ case 'PPP':
1399
+ return formatLong.date({
1400
+ width: 'long'
1401
+ });
1402
+
1403
+ case 'PPPP':
1404
+ default:
1405
+ return formatLong.date({
1406
+ width: 'full'
1407
+ });
1408
+ }
1409
+ };
1410
+
1411
+ var timeLongFormatter = function timeLongFormatter(pattern, formatLong) {
1412
+ switch (pattern) {
1413
+ case 'p':
1414
+ return formatLong.time({
1415
+ width: 'short'
1416
+ });
1417
+
1418
+ case 'pp':
1419
+ return formatLong.time({
1420
+ width: 'medium'
1421
+ });
1422
+
1423
+ case 'ppp':
1424
+ return formatLong.time({
1425
+ width: 'long'
1426
+ });
1427
+
1428
+ case 'pppp':
1429
+ default:
1430
+ return formatLong.time({
1431
+ width: 'full'
1432
+ });
1433
+ }
1434
+ };
1435
+
1436
+ var dateTimeLongFormatter = function dateTimeLongFormatter(pattern, formatLong) {
1437
+ var matchResult = pattern.match(/(P+)(p+)?/) || [];
1438
+ var datePattern = matchResult[1];
1439
+ var timePattern = matchResult[2];
1440
+
1441
+ if (!timePattern) {
1442
+ return dateLongFormatter(pattern, formatLong);
1443
+ }
1444
+
1445
+ var dateTimeFormat;
1446
+
1447
+ switch (datePattern) {
1448
+ case 'P':
1449
+ dateTimeFormat = formatLong.dateTime({
1450
+ width: 'short'
1451
+ });
1452
+ break;
1453
+
1454
+ case 'PP':
1455
+ dateTimeFormat = formatLong.dateTime({
1456
+ width: 'medium'
1457
+ });
1458
+ break;
1459
+
1460
+ case 'PPP':
1461
+ dateTimeFormat = formatLong.dateTime({
1462
+ width: 'long'
1463
+ });
1464
+ break;
1465
+
1466
+ case 'PPPP':
1467
+ default:
1468
+ dateTimeFormat = formatLong.dateTime({
1469
+ width: 'full'
1470
+ });
1471
+ break;
1472
+ }
1473
+
1474
+ return dateTimeFormat.replace('{{date}}', dateLongFormatter(datePattern, formatLong)).replace('{{time}}', timeLongFormatter(timePattern, formatLong));
1475
+ };
1476
+
1477
+ var longFormatters = {
1478
+ p: timeLongFormatter,
1479
+ P: dateTimeLongFormatter
1480
+ };
1481
+
1482
+ var protectedDayOfYearTokens = ['D', 'DD'];
1483
+ var protectedWeekYearTokens = ['YY', 'YYYY'];
1484
+ function isProtectedDayOfYearToken(token) {
1485
+ return protectedDayOfYearTokens.indexOf(token) !== -1;
1486
+ }
1487
+ function isProtectedWeekYearToken(token) {
1488
+ return protectedWeekYearTokens.indexOf(token) !== -1;
1489
+ }
1490
+ function throwProtectedError(token, format, input) {
1491
+ if (token === 'YYYY') {
1492
+ throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1493
+ } else if (token === 'YY') {
1494
+ throw new RangeError("Use `yy` instead of `YY` (in `".concat(format, "`) for formatting years to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1495
+ } else if (token === 'D') {
1496
+ throw new RangeError("Use `d` instead of `D` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1497
+ } else if (token === 'DD') {
1498
+ throw new RangeError("Use `dd` instead of `DD` (in `".concat(format, "`) for formatting days of the month to the input `").concat(input, "`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));
1499
+ }
1500
+ }
1501
+
1502
+ var formatDistanceLocale = {
1503
+ lessThanXSeconds: {
1504
+ one: 'less than a second',
1505
+ other: 'less than {{count}} seconds'
1506
+ },
1507
+ xSeconds: {
1508
+ one: '1 second',
1509
+ other: '{{count}} seconds'
1510
+ },
1511
+ halfAMinute: 'half a minute',
1512
+ lessThanXMinutes: {
1513
+ one: 'less than a minute',
1514
+ other: 'less than {{count}} minutes'
1515
+ },
1516
+ xMinutes: {
1517
+ one: '1 minute',
1518
+ other: '{{count}} minutes'
1519
+ },
1520
+ aboutXHours: {
1521
+ one: 'about 1 hour',
1522
+ other: 'about {{count}} hours'
1523
+ },
1524
+ xHours: {
1525
+ one: '1 hour',
1526
+ other: '{{count}} hours'
1527
+ },
1528
+ xDays: {
1529
+ one: '1 day',
1530
+ other: '{{count}} days'
1531
+ },
1532
+ aboutXWeeks: {
1533
+ one: 'about 1 week',
1534
+ other: 'about {{count}} weeks'
1535
+ },
1536
+ xWeeks: {
1537
+ one: '1 week',
1538
+ other: '{{count}} weeks'
1539
+ },
1540
+ aboutXMonths: {
1541
+ one: 'about 1 month',
1542
+ other: 'about {{count}} months'
1543
+ },
1544
+ xMonths: {
1545
+ one: '1 month',
1546
+ other: '{{count}} months'
1547
+ },
1548
+ aboutXYears: {
1549
+ one: 'about 1 year',
1550
+ other: 'about {{count}} years'
1551
+ },
1552
+ xYears: {
1553
+ one: '1 year',
1554
+ other: '{{count}} years'
1555
+ },
1556
+ overXYears: {
1557
+ one: 'over 1 year',
1558
+ other: 'over {{count}} years'
1559
+ },
1560
+ almostXYears: {
1561
+ one: 'almost 1 year',
1562
+ other: 'almost {{count}} years'
1563
+ }
1564
+ };
1565
+
1566
+ var formatDistance = function formatDistance(token, count, options) {
1567
+ var result;
1568
+ var tokenValue = formatDistanceLocale[token];
1569
+
1570
+ if (typeof tokenValue === 'string') {
1571
+ result = tokenValue;
1572
+ } else if (count === 1) {
1573
+ result = tokenValue.one;
1574
+ } else {
1575
+ result = tokenValue.other.replace('{{count}}', count.toString());
1576
+ }
1577
+
1578
+ if (options !== null && options !== void 0 && options.addSuffix) {
1579
+ if (options.comparison && options.comparison > 0) {
1580
+ return 'in ' + result;
1581
+ } else {
1582
+ return result + ' ago';
1583
+ }
1584
+ }
1585
+
1586
+ return result;
1587
+ };
1588
+
1589
+ function buildFormatLongFn(args) {
1590
+ return function () {
1591
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
1592
+ // TODO: Remove String()
1593
+ var width = options.width ? String(options.width) : args.defaultWidth;
1594
+ var format = args.formats[width] || args.formats[args.defaultWidth];
1595
+ return format;
1596
+ };
1597
+ }
1598
+
1599
+ var dateFormats = {
1600
+ full: 'EEEE, MMMM do, y',
1601
+ long: 'MMMM do, y',
1602
+ medium: 'MMM d, y',
1603
+ short: 'MM/dd/yyyy'
1604
+ };
1605
+ var timeFormats = {
1606
+ full: 'h:mm:ss a zzzz',
1607
+ long: 'h:mm:ss a z',
1608
+ medium: 'h:mm:ss a',
1609
+ short: 'h:mm a'
1610
+ };
1611
+ var dateTimeFormats = {
1612
+ full: "{{date}} 'at' {{time}}",
1613
+ long: "{{date}} 'at' {{time}}",
1614
+ medium: '{{date}}, {{time}}',
1615
+ short: '{{date}}, {{time}}'
1616
+ };
1617
+ var formatLong = {
1618
+ date: buildFormatLongFn({
1619
+ formats: dateFormats,
1620
+ defaultWidth: 'full'
1621
+ }),
1622
+ time: buildFormatLongFn({
1623
+ formats: timeFormats,
1624
+ defaultWidth: 'full'
1625
+ }),
1626
+ dateTime: buildFormatLongFn({
1627
+ formats: dateTimeFormats,
1628
+ defaultWidth: 'full'
1629
+ })
1630
+ };
1631
+
1632
+ var formatRelativeLocale = {
1633
+ lastWeek: "'last' eeee 'at' p",
1634
+ yesterday: "'yesterday at' p",
1635
+ today: "'today at' p",
1636
+ tomorrow: "'tomorrow at' p",
1637
+ nextWeek: "eeee 'at' p",
1638
+ other: 'P'
1639
+ };
1640
+
1641
+ var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
1642
+ return formatRelativeLocale[token];
1643
+ };
1644
+
1645
+ function buildLocalizeFn(args) {
1646
+ return function (dirtyIndex, options) {
1647
+ var context = options !== null && options !== void 0 && options.context ? String(options.context) : 'standalone';
1648
+ var valuesArray;
1649
+
1650
+ if (context === 'formatting' && args.formattingValues) {
1651
+ var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
1652
+ var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
1653
+ valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
1654
+ } else {
1655
+ var _defaultWidth = args.defaultWidth;
1656
+
1657
+ var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
1658
+
1659
+ valuesArray = args.values[_width] || args.values[_defaultWidth];
1660
+ }
1661
+
1662
+ var index = args.argumentCallback ? args.argumentCallback(dirtyIndex) : dirtyIndex; // @ts-ignore: For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
1663
+
1664
+ return valuesArray[index];
1665
+ };
1666
+ }
1667
+
1668
+ var eraValues = {
1669
+ narrow: ['B', 'A'],
1670
+ abbreviated: ['BC', 'AD'],
1671
+ wide: ['Before Christ', 'Anno Domini']
1672
+ };
1673
+ var quarterValues = {
1674
+ narrow: ['1', '2', '3', '4'],
1675
+ abbreviated: ['Q1', 'Q2', 'Q3', 'Q4'],
1676
+ wide: ['1st quarter', '2nd quarter', '3rd quarter', '4th quarter']
1677
+ }; // Note: in English, the names of days of the week and months are capitalized.
1678
+ // If you are making a new locale based on this one, check if the same is true for the language you're working on.
1679
+ // Generally, formatted dates should look like they are in the middle of a sentence,
1680
+ // e.g. in Spanish language the weekdays and months should be in the lowercase.
1681
+
1682
+ var monthValues = {
1683
+ narrow: ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
1684
+ abbreviated: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
1685
+ wide: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
1686
+ };
1687
+ var dayValues = {
1688
+ narrow: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
1689
+ short: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
1690
+ abbreviated: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
1691
+ wide: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
1692
+ };
1693
+ var dayPeriodValues = {
1694
+ narrow: {
1695
+ am: 'a',
1696
+ pm: 'p',
1697
+ midnight: 'mi',
1698
+ noon: 'n',
1699
+ morning: 'morning',
1700
+ afternoon: 'afternoon',
1701
+ evening: 'evening',
1702
+ night: 'night'
1703
+ },
1704
+ abbreviated: {
1705
+ am: 'AM',
1706
+ pm: 'PM',
1707
+ midnight: 'midnight',
1708
+ noon: 'noon',
1709
+ morning: 'morning',
1710
+ afternoon: 'afternoon',
1711
+ evening: 'evening',
1712
+ night: 'night'
1713
+ },
1714
+ wide: {
1715
+ am: 'a.m.',
1716
+ pm: 'p.m.',
1717
+ midnight: 'midnight',
1718
+ noon: 'noon',
1719
+ morning: 'morning',
1720
+ afternoon: 'afternoon',
1721
+ evening: 'evening',
1722
+ night: 'night'
1723
+ }
1724
+ };
1725
+ var formattingDayPeriodValues = {
1726
+ narrow: {
1727
+ am: 'a',
1728
+ pm: 'p',
1729
+ midnight: 'mi',
1730
+ noon: 'n',
1731
+ morning: 'in the morning',
1732
+ afternoon: 'in the afternoon',
1733
+ evening: 'in the evening',
1734
+ night: 'at night'
1735
+ },
1736
+ abbreviated: {
1737
+ am: 'AM',
1738
+ pm: 'PM',
1739
+ midnight: 'midnight',
1740
+ noon: 'noon',
1741
+ morning: 'in the morning',
1742
+ afternoon: 'in the afternoon',
1743
+ evening: 'in the evening',
1744
+ night: 'at night'
1745
+ },
1746
+ wide: {
1747
+ am: 'a.m.',
1748
+ pm: 'p.m.',
1749
+ midnight: 'midnight',
1750
+ noon: 'noon',
1751
+ morning: 'in the morning',
1752
+ afternoon: 'in the afternoon',
1753
+ evening: 'in the evening',
1754
+ night: 'at night'
1755
+ }
1756
+ };
1757
+
1758
+ var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
1759
+ var number = Number(dirtyNumber); // If ordinal numbers depend on context, for example,
1760
+ // if they are different for different grammatical genders,
1761
+ // use `options.unit`.
1762
+ //
1763
+ // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
1764
+ // 'day', 'hour', 'minute', 'second'.
1765
+
1766
+ var rem100 = number % 100;
1767
+
1768
+ if (rem100 > 20 || rem100 < 10) {
1769
+ switch (rem100 % 10) {
1770
+ case 1:
1771
+ return number + 'st';
1772
+
1773
+ case 2:
1774
+ return number + 'nd';
1775
+
1776
+ case 3:
1777
+ return number + 'rd';
1778
+ }
1779
+ }
1780
+
1781
+ return number + 'th';
1782
+ };
1783
+
1784
+ var localize = {
1785
+ ordinalNumber: ordinalNumber,
1786
+ era: buildLocalizeFn({
1787
+ values: eraValues,
1788
+ defaultWidth: 'wide'
1789
+ }),
1790
+ quarter: buildLocalizeFn({
1791
+ values: quarterValues,
1792
+ defaultWidth: 'wide',
1793
+ argumentCallback: function argumentCallback(quarter) {
1794
+ return quarter - 1;
1795
+ }
1796
+ }),
1797
+ month: buildLocalizeFn({
1798
+ values: monthValues,
1799
+ defaultWidth: 'wide'
1800
+ }),
1801
+ day: buildLocalizeFn({
1802
+ values: dayValues,
1803
+ defaultWidth: 'wide'
1804
+ }),
1805
+ dayPeriod: buildLocalizeFn({
1806
+ values: dayPeriodValues,
1807
+ defaultWidth: 'wide',
1808
+ formattingValues: formattingDayPeriodValues,
1809
+ defaultFormattingWidth: 'wide'
1810
+ })
1811
+ };
1812
+
1813
+ function buildMatchFn(args) {
1814
+ return function (string) {
1815
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1816
+ var width = options.width;
1817
+ var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
1818
+ var matchResult = string.match(matchPattern);
1819
+
1820
+ if (!matchResult) {
1821
+ return null;
1822
+ }
1823
+
1824
+ var matchedString = matchResult[0];
1825
+ var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
1826
+ var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {
1827
+ return pattern.test(matchedString);
1828
+ }) : findKey(parsePatterns, function (pattern) {
1829
+ return pattern.test(matchedString);
1830
+ });
1831
+ var value;
1832
+ value = args.valueCallback ? args.valueCallback(key) : key;
1833
+ value = options.valueCallback ? options.valueCallback(value) : value;
1834
+ var rest = string.slice(matchedString.length);
1835
+ return {
1836
+ value: value,
1837
+ rest: rest
1838
+ };
1839
+ };
1840
+ }
1841
+
1842
+ function findKey(object, predicate) {
1843
+ for (var key in object) {
1844
+ if (object.hasOwnProperty(key) && predicate(object[key])) {
1845
+ return key;
1846
+ }
1847
+ }
1848
+
1849
+ return undefined;
1850
+ }
1851
+
1852
+ function findIndex(array, predicate) {
1853
+ for (var key = 0; key < array.length; key++) {
1854
+ if (predicate(array[key])) {
1855
+ return key;
1856
+ }
1857
+ }
1858
+
1859
+ return undefined;
1860
+ }
1861
+
1862
+ function buildMatchPatternFn(args) {
1863
+ return function (string) {
1864
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1865
+ var matchResult = string.match(args.matchPattern);
1866
+ if (!matchResult) return null;
1867
+ var matchedString = matchResult[0];
1868
+ var parseResult = string.match(args.parsePattern);
1869
+ if (!parseResult) return null;
1870
+ var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
1871
+ value = options.valueCallback ? options.valueCallback(value) : value;
1872
+ var rest = string.slice(matchedString.length);
1873
+ return {
1874
+ value: value,
1875
+ rest: rest
1876
+ };
1877
+ };
1878
+ }
1879
+
1880
+ var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
1881
+ var parseOrdinalNumberPattern = /\d+/i;
1882
+ var matchEraPatterns = {
1883
+ narrow: /^(b|a)/i,
1884
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
1885
+ wide: /^(before christ|before common era|anno domini|common era)/i
1886
+ };
1887
+ var parseEraPatterns = {
1888
+ any: [/^b/i, /^(a|c)/i]
1889
+ };
1890
+ var matchQuarterPatterns = {
1891
+ narrow: /^[1234]/i,
1892
+ abbreviated: /^q[1234]/i,
1893
+ wide: /^[1234](th|st|nd|rd)? quarter/i
1894
+ };
1895
+ var parseQuarterPatterns = {
1896
+ any: [/1/i, /2/i, /3/i, /4/i]
1897
+ };
1898
+ var matchMonthPatterns = {
1899
+ narrow: /^[jfmasond]/i,
1900
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
1901
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
1902
+ };
1903
+ var parseMonthPatterns = {
1904
+ narrow: [/^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
1905
+ any: [/^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i]
1906
+ };
1907
+ var matchDayPatterns = {
1908
+ narrow: /^[smtwf]/i,
1909
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
1910
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
1911
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
1912
+ };
1913
+ var parseDayPatterns = {
1914
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
1915
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
1916
+ };
1917
+ var matchDayPeriodPatterns = {
1918
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
1919
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
1920
+ };
1921
+ var parseDayPeriodPatterns = {
1922
+ any: {
1923
+ am: /^a/i,
1924
+ pm: /^p/i,
1925
+ midnight: /^mi/i,
1926
+ noon: /^no/i,
1927
+ morning: /morning/i,
1928
+ afternoon: /afternoon/i,
1929
+ evening: /evening/i,
1930
+ night: /night/i
1931
+ }
1932
+ };
1933
+ var match = {
1934
+ ordinalNumber: buildMatchPatternFn({
1935
+ matchPattern: matchOrdinalNumberPattern,
1936
+ parsePattern: parseOrdinalNumberPattern,
1937
+ valueCallback: function valueCallback(value) {
1938
+ return parseInt(value, 10);
1939
+ }
1940
+ }),
1941
+ era: buildMatchFn({
1942
+ matchPatterns: matchEraPatterns,
1943
+ defaultMatchWidth: 'wide',
1944
+ parsePatterns: parseEraPatterns,
1945
+ defaultParseWidth: 'any'
1946
+ }),
1947
+ quarter: buildMatchFn({
1948
+ matchPatterns: matchQuarterPatterns,
1949
+ defaultMatchWidth: 'wide',
1950
+ parsePatterns: parseQuarterPatterns,
1951
+ defaultParseWidth: 'any',
1952
+ valueCallback: function valueCallback(index) {
1953
+ return index + 1;
1954
+ }
1955
+ }),
1956
+ month: buildMatchFn({
1957
+ matchPatterns: matchMonthPatterns,
1958
+ defaultMatchWidth: 'wide',
1959
+ parsePatterns: parseMonthPatterns,
1960
+ defaultParseWidth: 'any'
1961
+ }),
1962
+ day: buildMatchFn({
1963
+ matchPatterns: matchDayPatterns,
1964
+ defaultMatchWidth: 'wide',
1965
+ parsePatterns: parseDayPatterns,
1966
+ defaultParseWidth: 'any'
1967
+ }),
1968
+ dayPeriod: buildMatchFn({
1969
+ matchPatterns: matchDayPeriodPatterns,
1970
+ defaultMatchWidth: 'any',
1971
+ parsePatterns: parseDayPeriodPatterns,
1972
+ defaultParseWidth: 'any'
1973
+ })
1974
+ };
1975
+
1976
+ /**
1977
+ * @type {Locale}
1978
+ * @category Locales
1979
+ * @summary English locale (United States).
1980
+ * @language English
1981
+ * @iso-639-2 eng
1982
+ * @author Sasha Koss [@kossnocorp]{@link https://github.com/kossnocorp}
1983
+ * @author Lesha Koss [@leshakoss]{@link https://github.com/leshakoss}
1984
+ */
1985
+ var locale = {
1986
+ code: 'en-US',
1987
+ formatDistance: formatDistance,
1988
+ formatLong: formatLong,
1989
+ formatRelative: formatRelative,
1990
+ localize: localize,
1991
+ match: match,
1992
+ options: {
1993
+ weekStartsOn: 0
1994
+ /* Sunday */
1995
+ ,
1996
+ firstWeekContainsDate: 1
1997
+ }
1998
+ };
1999
+
2000
+ // - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token
2001
+ // (one of the certain letters followed by `o`)
2002
+ // - (\w)\1* matches any sequences of the same letter
2003
+ // - '' matches two quote characters in a row
2004
+ // - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),
2005
+ // except a single quote symbol, which ends the sequence.
2006
+ // Two quote characters do not end the sequence.
2007
+ // If there is no matching single quote
2008
+ // then the sequence will continue until the end of the string.
2009
+ // - . matches any single character unmatched by previous parts of the RegExps
2010
+
2011
+ var formattingTokensRegExp = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g; // This RegExp catches symbols escaped by quotes, and also
2012
+ // sequences of symbols P, p, and the combinations like `PPPPPPPppppp`
2013
+
2014
+ var longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;
2015
+ var escapedStringRegExp = /^'([^]*?)'?$/;
2016
+ var doubleQuoteRegExp = /''/g;
2017
+ var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2018
+ /**
2019
+ * @name format
2020
+ * @category Common Helpers
2021
+ * @summary Format the date.
2022
+ *
2023
+ * @description
2024
+ * Return the formatted date string in the given format. The result may vary by locale.
2025
+ *
2026
+ * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.
2027
+ * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2028
+ *
2029
+ * The characters wrapped between two single quotes characters (') are escaped.
2030
+ * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.
2031
+ * (see the last example)
2032
+ *
2033
+ * Format of the string is based on Unicode Technical Standard #35:
2034
+ * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
2035
+ * with a few additions (see note 7 below the table).
2036
+ *
2037
+ * Accepted patterns:
2038
+ * | Unit | Pattern | Result examples | Notes |
2039
+ * |---------------------------------|---------|-----------------------------------|-------|
2040
+ * | Era | G..GGG | AD, BC | |
2041
+ * | | GGGG | Anno Domini, Before Christ | 2 |
2042
+ * | | GGGGG | A, B | |
2043
+ * | Calendar year | y | 44, 1, 1900, 2017 | 5 |
2044
+ * | | yo | 44th, 1st, 0th, 17th | 5,7 |
2045
+ * | | yy | 44, 01, 00, 17 | 5 |
2046
+ * | | yyy | 044, 001, 1900, 2017 | 5 |
2047
+ * | | yyyy | 0044, 0001, 1900, 2017 | 5 |
2048
+ * | | yyyyy | ... | 3,5 |
2049
+ * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |
2050
+ * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |
2051
+ * | | YY | 44, 01, 00, 17 | 5,8 |
2052
+ * | | YYY | 044, 001, 1900, 2017 | 5 |
2053
+ * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |
2054
+ * | | YYYYY | ... | 3,5 |
2055
+ * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |
2056
+ * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |
2057
+ * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |
2058
+ * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |
2059
+ * | | RRRRR | ... | 3,5,7 |
2060
+ * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |
2061
+ * | | uu | -43, 01, 1900, 2017 | 5 |
2062
+ * | | uuu | -043, 001, 1900, 2017 | 5 |
2063
+ * | | uuuu | -0043, 0001, 1900, 2017 | 5 |
2064
+ * | | uuuuu | ... | 3,5 |
2065
+ * | Quarter (formatting) | Q | 1, 2, 3, 4 | |
2066
+ * | | Qo | 1st, 2nd, 3rd, 4th | 7 |
2067
+ * | | QQ | 01, 02, 03, 04 | |
2068
+ * | | QQQ | Q1, Q2, Q3, Q4 | |
2069
+ * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |
2070
+ * | | QQQQQ | 1, 2, 3, 4 | 4 |
2071
+ * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |
2072
+ * | | qo | 1st, 2nd, 3rd, 4th | 7 |
2073
+ * | | qq | 01, 02, 03, 04 | |
2074
+ * | | qqq | Q1, Q2, Q3, Q4 | |
2075
+ * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |
2076
+ * | | qqqqq | 1, 2, 3, 4 | 4 |
2077
+ * | Month (formatting) | M | 1, 2, ..., 12 | |
2078
+ * | | Mo | 1st, 2nd, ..., 12th | 7 |
2079
+ * | | MM | 01, 02, ..., 12 | |
2080
+ * | | MMM | Jan, Feb, ..., Dec | |
2081
+ * | | MMMM | January, February, ..., December | 2 |
2082
+ * | | MMMMM | J, F, ..., D | |
2083
+ * | Month (stand-alone) | L | 1, 2, ..., 12 | |
2084
+ * | | Lo | 1st, 2nd, ..., 12th | 7 |
2085
+ * | | LL | 01, 02, ..., 12 | |
2086
+ * | | LLL | Jan, Feb, ..., Dec | |
2087
+ * | | LLLL | January, February, ..., December | 2 |
2088
+ * | | LLLLL | J, F, ..., D | |
2089
+ * | Local week of year | w | 1, 2, ..., 53 | |
2090
+ * | | wo | 1st, 2nd, ..., 53th | 7 |
2091
+ * | | ww | 01, 02, ..., 53 | |
2092
+ * | ISO week of year | I | 1, 2, ..., 53 | 7 |
2093
+ * | | Io | 1st, 2nd, ..., 53th | 7 |
2094
+ * | | II | 01, 02, ..., 53 | 7 |
2095
+ * | Day of month | d | 1, 2, ..., 31 | |
2096
+ * | | do | 1st, 2nd, ..., 31st | 7 |
2097
+ * | | dd | 01, 02, ..., 31 | |
2098
+ * | Day of year | D | 1, 2, ..., 365, 366 | 9 |
2099
+ * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |
2100
+ * | | DD | 01, 02, ..., 365, 366 | 9 |
2101
+ * | | DDD | 001, 002, ..., 365, 366 | |
2102
+ * | | DDDD | ... | 3 |
2103
+ * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |
2104
+ * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |
2105
+ * | | EEEEE | M, T, W, T, F, S, S | |
2106
+ * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |
2107
+ * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |
2108
+ * | | io | 1st, 2nd, ..., 7th | 7 |
2109
+ * | | ii | 01, 02, ..., 07 | 7 |
2110
+ * | | iii | Mon, Tue, Wed, ..., Sun | 7 |
2111
+ * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |
2112
+ * | | iiiii | M, T, W, T, F, S, S | 7 |
2113
+ * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |
2114
+ * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |
2115
+ * | | eo | 2nd, 3rd, ..., 1st | 7 |
2116
+ * | | ee | 02, 03, ..., 01 | |
2117
+ * | | eee | Mon, Tue, Wed, ..., Sun | |
2118
+ * | | eeee | Monday, Tuesday, ..., Sunday | 2 |
2119
+ * | | eeeee | M, T, W, T, F, S, S | |
2120
+ * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |
2121
+ * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |
2122
+ * | | co | 2nd, 3rd, ..., 1st | 7 |
2123
+ * | | cc | 02, 03, ..., 01 | |
2124
+ * | | ccc | Mon, Tue, Wed, ..., Sun | |
2125
+ * | | cccc | Monday, Tuesday, ..., Sunday | 2 |
2126
+ * | | ccccc | M, T, W, T, F, S, S | |
2127
+ * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |
2128
+ * | AM, PM | a..aa | AM, PM | |
2129
+ * | | aaa | am, pm | |
2130
+ * | | aaaa | a.m., p.m. | 2 |
2131
+ * | | aaaaa | a, p | |
2132
+ * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |
2133
+ * | | bbb | am, pm, noon, midnight | |
2134
+ * | | bbbb | a.m., p.m., noon, midnight | 2 |
2135
+ * | | bbbbb | a, p, n, mi | |
2136
+ * | Flexible day period | B..BBB | at night, in the morning, ... | |
2137
+ * | | BBBB | at night, in the morning, ... | 2 |
2138
+ * | | BBBBB | at night, in the morning, ... | |
2139
+ * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |
2140
+ * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |
2141
+ * | | hh | 01, 02, ..., 11, 12 | |
2142
+ * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |
2143
+ * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |
2144
+ * | | HH | 00, 01, 02, ..., 23 | |
2145
+ * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |
2146
+ * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |
2147
+ * | | KK | 01, 02, ..., 11, 00 | |
2148
+ * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |
2149
+ * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |
2150
+ * | | kk | 24, 01, 02, ..., 23 | |
2151
+ * | Minute | m | 0, 1, ..., 59 | |
2152
+ * | | mo | 0th, 1st, ..., 59th | 7 |
2153
+ * | | mm | 00, 01, ..., 59 | |
2154
+ * | Second | s | 0, 1, ..., 59 | |
2155
+ * | | so | 0th, 1st, ..., 59th | 7 |
2156
+ * | | ss | 00, 01, ..., 59 | |
2157
+ * | Fraction of second | S | 0, 1, ..., 9 | |
2158
+ * | | SS | 00, 01, ..., 99 | |
2159
+ * | | SSS | 000, 001, ..., 999 | |
2160
+ * | | SSSS | ... | 3 |
2161
+ * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |
2162
+ * | | XX | -0800, +0530, Z | |
2163
+ * | | XXX | -08:00, +05:30, Z | |
2164
+ * | | XXXX | -0800, +0530, Z, +123456 | 2 |
2165
+ * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |
2166
+ * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |
2167
+ * | | xx | -0800, +0530, +0000 | |
2168
+ * | | xxx | -08:00, +05:30, +00:00 | 2 |
2169
+ * | | xxxx | -0800, +0530, +0000, +123456 | |
2170
+ * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |
2171
+ * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |
2172
+ * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |
2173
+ * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |
2174
+ * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |
2175
+ * | Seconds timestamp | t | 512969520 | 7 |
2176
+ * | | tt | ... | 3,7 |
2177
+ * | Milliseconds timestamp | T | 512969520900 | 7 |
2178
+ * | | TT | ... | 3,7 |
2179
+ * | Long localized date | P | 04/29/1453 | 7 |
2180
+ * | | PP | Apr 29, 1453 | 7 |
2181
+ * | | PPP | April 29th, 1453 | 7 |
2182
+ * | | PPPP | Friday, April 29th, 1453 | 2,7 |
2183
+ * | Long localized time | p | 12:00 AM | 7 |
2184
+ * | | pp | 12:00:00 AM | 7 |
2185
+ * | | ppp | 12:00:00 AM GMT+2 | 7 |
2186
+ * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |
2187
+ * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |
2188
+ * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |
2189
+ * | | PPPppp | April 29th, 1453 at ... | 7 |
2190
+ * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |
2191
+ * Notes:
2192
+ * 1. "Formatting" units (e.g. formatting quarter) in the default en-US locale
2193
+ * are the same as "stand-alone" units, but are different in some languages.
2194
+ * "Formatting" units are declined according to the rules of the language
2195
+ * in the context of a date. "Stand-alone" units are always nominative singular:
2196
+ *
2197
+ * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`
2198
+ *
2199
+ * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`
2200
+ *
2201
+ * 2. Any sequence of the identical letters is a pattern, unless it is escaped by
2202
+ * the single quote characters (see below).
2203
+ * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)
2204
+ * the output will be the same as default pattern for this unit, usually
2205
+ * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units
2206
+ * are marked with "2" in the last column of the table.
2207
+ *
2208
+ * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`
2209
+ *
2210
+ * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`
2211
+ *
2212
+ * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`
2213
+ *
2214
+ * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`
2215
+ *
2216
+ * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`
2217
+ *
2218
+ * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).
2219
+ * The output will be padded with zeros to match the length of the pattern.
2220
+ *
2221
+ * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`
2222
+ *
2223
+ * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.
2224
+ * These tokens represent the shortest form of the quarter.
2225
+ *
2226
+ * 5. The main difference between `y` and `u` patterns are B.C. years:
2227
+ *
2228
+ * | Year | `y` | `u` |
2229
+ * |------|-----|-----|
2230
+ * | AC 1 | 1 | 1 |
2231
+ * | BC 1 | 1 | 0 |
2232
+ * | BC 2 | 2 | -1 |
2233
+ *
2234
+ * Also `yy` always returns the last two digits of a year,
2235
+ * while `uu` pads single digit years to 2 characters and returns other years unchanged:
2236
+ *
2237
+ * | Year | `yy` | `uu` |
2238
+ * |------|------|------|
2239
+ * | 1 | 01 | 01 |
2240
+ * | 14 | 14 | 14 |
2241
+ * | 376 | 76 | 376 |
2242
+ * | 1453 | 53 | 1453 |
2243
+ *
2244
+ * The same difference is true for local and ISO week-numbering years (`Y` and `R`),
2245
+ * except local week-numbering years are dependent on `options.weekStartsOn`
2246
+ * and `options.firstWeekContainsDate` (compare [getISOWeekYear]{@link https://date-fns.org/docs/getISOWeekYear}
2247
+ * and [getWeekYear]{@link https://date-fns.org/docs/getWeekYear}).
2248
+ *
2249
+ * 6. Specific non-location timezones are currently unavailable in `date-fns`,
2250
+ * so right now these tokens fall back to GMT timezones.
2251
+ *
2252
+ * 7. These patterns are not in the Unicode Technical Standard #35:
2253
+ * - `i`: ISO day of week
2254
+ * - `I`: ISO week of year
2255
+ * - `R`: ISO week-numbering year
2256
+ * - `t`: seconds timestamp
2257
+ * - `T`: milliseconds timestamp
2258
+ * - `o`: ordinal number modifier
2259
+ * - `P`: long localized date
2260
+ * - `p`: long localized time
2261
+ *
2262
+ * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.
2263
+ * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2264
+ *
2265
+ * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.
2266
+ * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2267
+ *
2268
+ * @param {Date|Number} date - the original date
2269
+ * @param {String} format - the string of tokens
2270
+ * @param {Object} [options] - an object with options.
2271
+ * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}
2272
+ * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)
2273
+ * @param {Number} [options.firstWeekContainsDate=1] - the day of January, which is
2274
+ * @param {Boolean} [options.useAdditionalWeekYearTokens=false] - if true, allows usage of the week-numbering year tokens `YY` and `YYYY`;
2275
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2276
+ * @param {Boolean} [options.useAdditionalDayOfYearTokens=false] - if true, allows usage of the day of year tokens `D` and `DD`;
2277
+ * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2278
+ * @returns {String} the formatted date string
2279
+ * @throws {TypeError} 2 arguments required
2280
+ * @throws {RangeError} `date` must not be Invalid Date
2281
+ * @throws {RangeError} `options.locale` must contain `localize` property
2282
+ * @throws {RangeError} `options.locale` must contain `formatLong` property
2283
+ * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6
2284
+ * @throws {RangeError} `options.firstWeekContainsDate` must be between 1 and 7
2285
+ * @throws {RangeError} use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2286
+ * @throws {RangeError} use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2287
+ * @throws {RangeError} use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2288
+ * @throws {RangeError} use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md
2289
+ * @throws {RangeError} format string contains an unescaped latin alphabet character
2290
+ *
2291
+ * @example
2292
+ * // Represent 11 February 2014 in middle-endian format:
2293
+ * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')
2294
+ * //=> '02/11/2014'
2295
+ *
2296
+ * @example
2297
+ * // Represent 2 July 2014 in Esperanto:
2298
+ * import { eoLocale } from 'date-fns/locale/eo'
2299
+ * const result = format(new Date(2014, 6, 2), "do 'de' MMMM yyyy", {
2300
+ * locale: eoLocale
2301
+ * })
2302
+ * //=> '2-a de julio 2014'
2303
+ *
2304
+ * @example
2305
+ * // Escape string by single quote characters:
2306
+ * const result = format(new Date(2014, 6, 2, 15), "h 'o''clock'")
2307
+ * //=> "3 o'clock"
2308
+ */
2309
+
2310
+ function format(dirtyDate, dirtyFormatStr, options) {
2311
+ var _ref, _options$locale, _ref2, _ref3, _ref4, _options$firstWeekCon, _options$locale2, _options$locale2$opti, _defaultOptions$local, _defaultOptions$local2, _ref5, _ref6, _ref7, _options$weekStartsOn, _options$locale3, _options$locale3$opti, _defaultOptions$local3, _defaultOptions$local4;
2312
+
2313
+ requiredArgs(2, arguments);
2314
+ var formatStr = String(dirtyFormatStr);
2315
+ var defaultOptions = getDefaultOptions();
2316
+ var locale$1 = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : locale;
2317
+ var firstWeekContainsDate = toInteger((_ref2 = (_ref3 = (_ref4 = (_options$firstWeekCon = options === null || options === void 0 ? void 0 : options.firstWeekContainsDate) !== null && _options$firstWeekCon !== void 0 ? _options$firstWeekCon : options === null || options === void 0 ? void 0 : (_options$locale2 = options.locale) === null || _options$locale2 === void 0 ? void 0 : (_options$locale2$opti = _options$locale2.options) === null || _options$locale2$opti === void 0 ? void 0 : _options$locale2$opti.firstWeekContainsDate) !== null && _ref4 !== void 0 ? _ref4 : defaultOptions.firstWeekContainsDate) !== null && _ref3 !== void 0 ? _ref3 : (_defaultOptions$local = defaultOptions.locale) === null || _defaultOptions$local === void 0 ? void 0 : (_defaultOptions$local2 = _defaultOptions$local.options) === null || _defaultOptions$local2 === void 0 ? void 0 : _defaultOptions$local2.firstWeekContainsDate) !== null && _ref2 !== void 0 ? _ref2 : 1); // Test if weekStartsOn is between 1 and 7 _and_ is not NaN
2318
+
2319
+ if (!(firstWeekContainsDate >= 1 && firstWeekContainsDate <= 7)) {
2320
+ throw new RangeError('firstWeekContainsDate must be between 1 and 7 inclusively');
2321
+ }
2322
+
2323
+ var weekStartsOn = toInteger((_ref5 = (_ref6 = (_ref7 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 ? void 0 : (_options$locale3 = options.locale) === null || _options$locale3 === void 0 ? void 0 : (_options$locale3$opti = _options$locale3.options) === null || _options$locale3$opti === void 0 ? void 0 : _options$locale3$opti.weekStartsOn) !== null && _ref7 !== void 0 ? _ref7 : defaultOptions.weekStartsOn) !== null && _ref6 !== void 0 ? _ref6 : (_defaultOptions$local3 = defaultOptions.locale) === null || _defaultOptions$local3 === void 0 ? void 0 : (_defaultOptions$local4 = _defaultOptions$local3.options) === null || _defaultOptions$local4 === void 0 ? void 0 : _defaultOptions$local4.weekStartsOn) !== null && _ref5 !== void 0 ? _ref5 : 0); // Test if weekStartsOn is between 0 and 6 _and_ is not NaN
2324
+
2325
+ if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {
2326
+ throw new RangeError('weekStartsOn must be between 0 and 6 inclusively');
2327
+ }
2328
+
2329
+ if (!locale$1.localize) {
2330
+ throw new RangeError('locale must contain localize property');
2331
+ }
2332
+
2333
+ if (!locale$1.formatLong) {
2334
+ throw new RangeError('locale must contain formatLong property');
2335
+ }
2336
+
2337
+ var originalDate = toDate(dirtyDate);
2338
+
2339
+ if (!isValid(originalDate)) {
2340
+ throw new RangeError('Invalid time value');
2341
+ } // Convert the date in system timezone to the same date in UTC+00:00 timezone.
2342
+ // This ensures that when UTC functions will be implemented, locales will be compatible with them.
2343
+ // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376
2344
+
2345
+
2346
+ var timezoneOffset = getTimezoneOffsetInMilliseconds(originalDate);
2347
+ var utcDate = subMilliseconds(originalDate, timezoneOffset);
2348
+ var formatterOptions = {
2349
+ firstWeekContainsDate: firstWeekContainsDate,
2350
+ weekStartsOn: weekStartsOn,
2351
+ locale: locale$1,
2352
+ _originalDate: originalDate
2353
+ };
2354
+ var result = formatStr.match(longFormattingTokensRegExp).map(function (substring) {
2355
+ var firstCharacter = substring[0];
2356
+
2357
+ if (firstCharacter === 'p' || firstCharacter === 'P') {
2358
+ var longFormatter = longFormatters[firstCharacter];
2359
+ return longFormatter(substring, locale$1.formatLong);
2360
+ }
2361
+
2362
+ return substring;
2363
+ }).join('').match(formattingTokensRegExp).map(function (substring) {
2364
+ // Replace two single quote characters with one single quote character
2365
+ if (substring === "''") {
2366
+ return "'";
2367
+ }
2368
+
2369
+ var firstCharacter = substring[0];
2370
+
2371
+ if (firstCharacter === "'") {
2372
+ return cleanEscapedString(substring);
2373
+ }
2374
+
2375
+ var formatter = formatters[firstCharacter];
2376
+
2377
+ if (formatter) {
2378
+ if (!(options !== null && options !== void 0 && options.useAdditionalWeekYearTokens) && isProtectedWeekYearToken(substring)) {
2379
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2380
+ }
2381
+
2382
+ if (!(options !== null && options !== void 0 && options.useAdditionalDayOfYearTokens) && isProtectedDayOfYearToken(substring)) {
2383
+ throwProtectedError(substring, dirtyFormatStr, String(dirtyDate));
2384
+ }
2385
+
2386
+ return formatter(utcDate, substring, locale$1.localize, formatterOptions);
2387
+ }
2388
+
2389
+ if (firstCharacter.match(unescapedLatinCharacterRegExp)) {
2390
+ throw new RangeError('Format string contains an unescaped latin alphabet character `' + firstCharacter + '`');
2391
+ }
2392
+
2393
+ return substring;
2394
+ }).join('');
2395
+ return result;
2396
+ }
2397
+
2398
+ function cleanEscapedString(input) {
2399
+ var matched = input.match(escapedStringRegExp);
2400
+
2401
+ if (!matched) {
2402
+ return input;
2403
+ }
2404
+
2405
+ return matched[1].replace(doubleQuoteRegExp, "'");
2406
+ }
2407
+
2408
+ /**
2409
+ * @name isAfter
2410
+ * @category Common Helpers
2411
+ * @summary Is the first date after the second one?
2412
+ *
2413
+ * @description
2414
+ * Is the first date after the second one?
2415
+ *
2416
+ * @param {Date|Number} date - the date that should be after the other one to return true
2417
+ * @param {Date|Number} dateToCompare - the date to compare with
2418
+ * @returns {Boolean} the first date is after the second date
2419
+ * @throws {TypeError} 2 arguments required
2420
+ *
2421
+ * @example
2422
+ * // Is 10 July 1989 after 11 February 1987?
2423
+ * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))
2424
+ * //=> true
2425
+ */
2426
+
2427
+ function isAfter(dirtyDate, dirtyDateToCompare) {
2428
+ requiredArgs(2, arguments);
2429
+ var date = toDate(dirtyDate);
2430
+ var dateToCompare = toDate(dirtyDateToCompare);
2431
+ return date.getTime() > dateToCompare.getTime();
2432
+ }
2433
+
2434
+ /**
2435
+ * @name isBefore
2436
+ * @category Common Helpers
2437
+ * @summary Is the first date before the second one?
2438
+ *
2439
+ * @description
2440
+ * Is the first date before the second one?
2441
+ *
2442
+ * @param {Date|Number} date - the date that should be before the other one to return true
2443
+ * @param {Date|Number} dateToCompare - the date to compare with
2444
+ * @returns {Boolean} the first date is before the second date
2445
+ * @throws {TypeError} 2 arguments required
2446
+ *
2447
+ * @example
2448
+ * // Is 10 July 1989 before 11 February 1987?
2449
+ * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))
2450
+ * //=> false
2451
+ */
2452
+
2453
+ function isBefore(dirtyDate, dirtyDateToCompare) {
2454
+ requiredArgs(2, arguments);
2455
+ var date = toDate(dirtyDate);
2456
+ var dateToCompare = toDate(dirtyDateToCompare);
2457
+ return date.getTime() < dateToCompare.getTime();
2458
+ }
2459
+
2460
+ exports.format = format;
2461
+ exports.getDefaultOptions = getDefaultOptions;
2462
+ exports.getTimezoneOffsetInMilliseconds = getTimezoneOffsetInMilliseconds;
2463
+ exports.getUTCISOWeek = getUTCISOWeek;
2464
+ exports.getUTCWeek = getUTCWeek;
2465
+ exports.getUTCWeekYear = getUTCWeekYear;
2466
+ exports.isAfter = isAfter;
2467
+ exports.isBefore = isBefore;
2468
+ exports.isProtectedDayOfYearToken = isProtectedDayOfYearToken;
2469
+ exports.isProtectedWeekYearToken = isProtectedWeekYearToken;
2470
+ exports.isSameDay = isSameDay;
2471
+ exports.isValid = isValid;
2472
+ exports.locale = locale;
2473
+ exports.longFormatters = longFormatters;
2474
+ exports.requiredArgs = requiredArgs;
2475
+ exports.startOfDay = startOfDay;
2476
+ exports.startOfUTCISOWeek = startOfUTCISOWeek;
2477
+ exports.startOfUTCWeek = startOfUTCWeek;
2478
+ exports.subMilliseconds = subMilliseconds;
2479
+ exports.throwProtectedError = throwProtectedError;
2480
+ exports.toDate = toDate;
2481
+ exports.toInteger = toInteger;
2482
+
2483
+ //# sourceMappingURL=index-040ec3f9.js.map