@orangelogic/design-system 5.0.0 → 5.1.0

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 (221) hide show
  1. package/library/chunks/{alert.2Esbser8.js → alert.DcLDhp3k.js} +2 -2
  2. package/library/chunks/{array-line-clamp.C0Vo0Zzg.js → array-line-clamp.DXOk4Q3x.js} +2 -2
  3. package/library/chunks/{asset-link-format.COPyGdND.js → asset-link-format.D6L-qc3X.js} +8 -8
  4. package/library/chunks/{asset-link-format.Ce_3Qz6_.js → asset-link-format.DqMFH-AV.js} +387 -382
  5. package/library/chunks/{audio.B0VfXBIx.js → audio.DhBjwOl_.js} +2 -2
  6. package/library/chunks/{bicolor-picker.DS9Uut25.js → bicolor-picker.COIlx1gv.js} +1 -1
  7. package/library/chunks/{block-width.ClbkbtKA.js → block-width.BOCYHUDs.js} +39 -39
  8. package/library/chunks/{border-input-group.B6fqiG6F.js → border-input-group.QyWhH0yj.js} +3 -3
  9. package/library/chunks/{breadcrumb.DkINVxcJ.js → breadcrumb.SMzaqsuX.js} +1 -1
  10. package/library/chunks/{button.DKkHqsUz.js → button.DHmArHfu.js} +2 -2
  11. package/library/chunks/{checkbox.BdSpQlwf.js → checkbox.CA7imbiT.js} +1 -1
  12. package/library/chunks/{color-picker.DZUudAAS.js → color-picker.BERL3UOq.js} +10 -10
  13. package/library/chunks/{color-swatch-group.CuMJc6m8.js → color-swatch-group.C0n7SaJl.js} +22 -22
  14. package/library/chunks/{color-swatch.DXAr2gBg.js → color-swatch.CTbZYqbp.js} +3 -3
  15. package/library/chunks/{config-manager.B6c9XW1s.js → config-manager.C2GBBqS5.js} +29 -29
  16. package/library/chunks/{configs-controller.TQDPq63n.js → configs-controller.BcOmixH6.js} +8 -8
  17. package/library/chunks/{confirm-popover.sZVNhFPh.js → confirm-popover.BiPCxJfb.js} +4 -4
  18. package/library/chunks/{copy-button.CqqKJEh3.js → copy-button.muB45Tao.js} +2 -2
  19. package/library/chunks/{corner-position-input-group.nTlFes0_.js → corner-position-input-group.BKESUGfi.js} +4 -4
  20. package/library/chunks/{cropper.BF32WRyP.js → cropper.D8Uu43xy.js} +1 -1
  21. package/library/chunks/date-calendar.CSrG_jgw.js +188 -0
  22. package/library/chunks/date.kywrEgxd.js +363 -0
  23. package/library/chunks/{details.DSgp6VAD.js → details.BQjEDJPA.js} +1 -1
  24. package/library/chunks/{dialog.D0oTJWFf.js → dialog.BY2wT_Yq.js} +3 -3
  25. package/library/chunks/{document-viewer.L77oYyOp.js → document-viewer.DviPbYQs.js} +14 -14
  26. package/library/chunks/{dot-pagination.C1C6NG8d.js → dot-pagination.Bc4kqtcF.js} +2 -2
  27. package/library/chunks/{drawer.BsKzYqKe.js → drawer.UPV3DrmP.js} +2 -2
  28. package/library/chunks/{dropdown.CKhoP9Cr.js → dropdown.D6MQirjI.js} +15 -6
  29. package/library/chunks/{dynamic-select.Cb3L0dIB.js → dynamic-select.CsuWTgdl.js} +5 -5
  30. package/library/chunks/{e-chart.DKFAToIc.js → e-chart.iJAWfcbZ.js} +2 -2
  31. package/library/chunks/{element-clamp.CGq-62gg.js → element-clamp.fo2t5tv8.js} +2 -2
  32. package/library/chunks/{file-on-demand.BjUW2Ydt.js → file-on-demand.CtYHSqZ8.js} +16 -16
  33. package/library/chunks/{folder-select.DJ5EEod3.js → folder-select.BHMjbJpa.js} +8 -8
  34. package/library/chunks/{format-time.QkJcKYrT.js → format-time.CJc4crvX.js} +1 -1
  35. package/library/chunks/{header.CowQINf-.js → header.BMzrFqrX.js} +2 -2
  36. package/library/chunks/{i18n.Bjg2ubA4.js → i18n.tAD84KB3.js} +39 -0
  37. package/library/chunks/{icon-button.qJd_az6T.js → icon-button.hZj_g6Bt.js} +2 -2
  38. package/library/chunks/{iframe.sl2wnUcC.js → iframe.DESEj5FX.js} +1 -1
  39. package/library/chunks/{image-comparer.BCD6kzLm.js → image-comparer.zps8IR5_.js} +1 -1
  40. package/library/chunks/{image.-lgb634-.js → image.CSmzcQJh.js} +2 -2
  41. package/library/chunks/{input.DZRed6yo.js → input.is3tnNFr.js} +18 -5
  42. package/library/chunks/{line-clamp.Dl3_JdHX.js → line-clamp.iGRr7-Xj.js} +47 -28
  43. package/library/chunks/{markdown.BzDRvv-f.js → markdown.BXDKzr2h.js} +2 -2
  44. package/library/chunks/{masonry.BxNeClR6.js → masonry.DANqZg1j.js} +3 -3
  45. package/library/chunks/{menu-item.au-gTg1F.js → menu-item.DL81yBgV.js} +3 -3
  46. package/library/chunks/{menu.BxBtGPsg.js → menu.CVJpMzSd.js} +2 -2
  47. package/library/chunks/{option.DWE0tark.js → option.y4dln0Vc.js} +1 -1
  48. package/library/chunks/{padding-input-group.D2Qx15Yj.js → padding-input-group.DxO3Jpy_.js} +1 -1
  49. package/library/chunks/{pagination.ByLuPMyE.js → pagination.BNxyfajb.js} +7 -7
  50. package/library/chunks/{popup.w4ZU3jI-.js → popup.CDY1A9dW.js} +2 -2
  51. package/library/chunks/{position-picker.X2hhfGx7.js → position-picker.DTyM69dy.js} +2 -2
  52. package/library/chunks/{progress-bar.CynVLLnY.js → progress-bar.DCx1bJbA.js} +1 -1
  53. package/library/chunks/{progress-ring.Bfdj3-uB.js → progress-ring.CLF04Ukk.js} +1 -1
  54. package/library/chunks/{radio-card.VEsyM8ue.js → radio-card.Z4lQJH5n.js} +2 -2
  55. package/library/chunks/{radio.DhPbmKbQ.js → radio.BmN7pFIX.js} +1 -1
  56. package/library/chunks/{range.ObEMbygm.js → range.9siIIf5L.js} +2 -2
  57. package/library/chunks/{rating.CNeNn996.js → rating.oryYIw6x.js} +1 -1
  58. package/library/chunks/{relative-time.BfE3UOhF.js → relative-time.U8veN742.js} +1 -1
  59. package/library/chunks/{select.BV0Necz7.js → select.Bd8WvUMZ.js} +113 -109
  60. package/library/chunks/{shadow-input-group.Xxuzm8Qe.js → shadow-input-group.CoOi3L__.js} +2 -2
  61. package/library/chunks/{share-option-list.DOaEypfQ.js → share-option-list.DM5dfW9M.js} +2 -2
  62. package/library/chunks/{sidebar.CiZOJ49X.js → sidebar.DfNm5C-n.js} +30 -20
  63. package/library/chunks/{size-input-group.wXuG0-RB.js → size-input-group.BdYSDpsy.js} +5 -5
  64. package/library/chunks/{spinner.Bv06U7NJ.js → spinner.DPl3rjQY.js} +1 -1
  65. package/library/chunks/{split-panel.Cag0lAvv.js → split-panel.D4Hn_Esh.js} +1 -1
  66. package/library/chunks/{src.-wSEUjRV.js → src.BGRU1qh5.js} +49 -49
  67. package/library/chunks/{src.Dia365C9.js → src.DwbXw2Wv.js} +23 -23
  68. package/library/chunks/{step.D93ReCO1.js → step.CmqaPVg_.js} +3 -3
  69. package/library/chunks/{stepper-wizard.CPZ2mSze.js → stepper-wizard.H45UqSLe.js} +2 -2
  70. package/library/chunks/{stepper.D0JB_GVh.js → stepper.CDWfFmPh.js} +1 -1
  71. package/library/chunks/{tab-group.dnnT9Mk6.js → tab-group.6FT_XQDH.js} +7 -7
  72. package/library/chunks/{tab.CYYAua8Y.js → tab.q5aFhnHA.js} +3 -3
  73. package/library/chunks/{tag.DQLauctm.js → tag.BSBIN-rz.js} +3 -3
  74. package/library/chunks/{tooltip.Cc02vm6M.js → tooltip.DurE2LL4.js} +17 -21
  75. package/library/chunks/{tree.BI7r-WnZ.js → tree.C0imvgIg.js} +4 -4
  76. package/library/chunks/{typeface.DTLrIP0B.js → typeface.DPVH5wzi.js} +3 -3
  77. package/library/chunks/{video.DWmHPbXO.js → video.CYO0jBx9.js} +6 -6
  78. package/library/components/alert.js +1 -1
  79. package/library/components/array-line-clamp.js +1 -1
  80. package/library/components/asset-link-format.js +1 -1
  81. package/library/components/atoms.js +50 -50
  82. package/library/components/audio.js +1 -1
  83. package/library/components/bicolor-picker.js +1 -1
  84. package/library/components/border-input-group.js +1 -1
  85. package/library/components/breadcrumb.js +1 -1
  86. package/library/components/button.js +1 -1
  87. package/library/components/checkbox.js +1 -1
  88. package/library/components/color-picker.js +1 -1
  89. package/library/components/color-swatch-group.js +1 -1
  90. package/library/components/color-swatch.js +1 -1
  91. package/library/components/confirm-popover.js +1 -1
  92. package/library/components/copy-button.js +1 -1
  93. package/library/components/corner-position-input-group.js +1 -1
  94. package/library/components/cropper.js +1 -1
  95. package/library/components/date-calendar.js +1 -1
  96. package/library/components/details.js +1 -1
  97. package/library/components/dialog.js +1 -1
  98. package/library/components/document-viewer.js +1 -1
  99. package/library/components/dot-pagination.js +1 -1
  100. package/library/components/drawer.js +1 -1
  101. package/library/components/dropdown.js +1 -1
  102. package/library/components/dynamic-select.js +1 -1
  103. package/library/components/e-chart.js +1 -1
  104. package/library/components/element-clamp.js +1 -1
  105. package/library/components/file-on-demand.js +1 -1
  106. package/library/components/folder-select.js +1 -1
  107. package/library/components/format-bytes.js +1 -1
  108. package/library/components/format-date.js +1 -1
  109. package/library/components/format-number.js +1 -1
  110. package/library/components/format-time.js +1 -1
  111. package/library/components/header.js +1 -1
  112. package/library/components/icon-button.js +1 -1
  113. package/library/components/iframe.js +1 -1
  114. package/library/components/image-comparer.js +1 -1
  115. package/library/components/image.js +1 -1
  116. package/library/components/input.js +1 -1
  117. package/library/components/line-clamp.js +1 -1
  118. package/library/components/markdown.js +1 -1
  119. package/library/components/masonry.js +1 -1
  120. package/library/components/menu-item.js +1 -1
  121. package/library/components/menu.js +1 -1
  122. package/library/components/molecules.js +17 -17
  123. package/library/components/option.js +1 -1
  124. package/library/components/organisms.js +3 -3
  125. package/library/components/padding-input-group.js +1 -1
  126. package/library/components/pagination.js +1 -1
  127. package/library/components/popup.js +1 -1
  128. package/library/components/position-picker.js +1 -1
  129. package/library/components/progress-bar.js +1 -1
  130. package/library/components/progress-ring.js +1 -1
  131. package/library/components/radio-card.js +1 -1
  132. package/library/components/radio.js +1 -1
  133. package/library/components/range.js +1 -1
  134. package/library/components/rating.js +1 -1
  135. package/library/components/relative-time.js +1 -1
  136. package/library/components/select.js +1 -1
  137. package/library/components/shadow-input-group.js +1 -1
  138. package/library/components/share-option-list.js +1 -1
  139. package/library/components/sidebar.js +1 -1
  140. package/library/components/size-input-group.js +1 -1
  141. package/library/components/spinner.js +1 -1
  142. package/library/components/split-panel.js +1 -1
  143. package/library/components/step.js +1 -1
  144. package/library/components/stepper-wizard.js +1 -1
  145. package/library/components/stepper.js +1 -1
  146. package/library/components/tab-group.js +1 -1
  147. package/library/components/tab.js +1 -1
  148. package/library/components/tag.js +1 -1
  149. package/library/components/tooltip.js +1 -1
  150. package/library/components/tree-item.js +1 -1
  151. package/library/components/tree.js +1 -1
  152. package/library/components/typeface.js +1 -1
  153. package/library/components/types.js +21886 -19119
  154. package/library/components/video.js +1 -1
  155. package/library/package.json +1 -1
  156. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +2 -2
  157. package/library/packages/atoms/src/components/date-calendar/date-calendar.d.ts +62 -9
  158. package/library/packages/atoms/src/components/dropdown/dropdown.d.ts +6 -0
  159. package/library/packages/atoms/src/components/input/input.d.ts +20 -1
  160. package/library/packages/atoms/src/components/line-clamp/line-clamp.d.ts +3 -0
  161. package/library/packages/atoms/src/components/radio/radio.d.ts +3 -0
  162. package/library/packages/atoms/src/components/select/select.d.ts +0 -4
  163. package/library/packages/atoms/src/components/tooltip/tooltip.d.ts +4 -1
  164. package/library/packages/events/src/cx-search-facet-date-change.d.ts +11 -0
  165. package/library/packages/events/src/cx-search-facet-focus-title.d.ts +10 -0
  166. package/library/packages/events/src/cx-search-facet-reset.d.ts +12 -0
  167. package/library/packages/events/src/cx-search-facet-select-all.d.ts +13 -0
  168. package/library/packages/events/src/cx-search-facet-show-more.d.ts +12 -0
  169. package/library/packages/events/src/cx-search-facet-toggle.d.ts +11 -0
  170. package/library/packages/events/src/cx-search-facets-apply.d.ts +17 -0
  171. package/library/packages/events/src/cx-search-facets-change-filters.d.ts +6 -0
  172. package/library/packages/events/src/cx-search-facets-clear-all.d.ts +10 -0
  173. package/library/packages/events/src/cx-search-facets-custom.d.ts +10 -0
  174. package/library/packages/events/src/cx-search-facets-facet-expand.d.ts +9 -0
  175. package/library/packages/events/src/cx-search-facets-node-expand.d.ts +11 -0
  176. package/library/packages/events/src/cx-search-facets-refresh.d.ts +6 -0
  177. package/library/packages/events/src/cx-search-facets-show-more.d.ts +8 -0
  178. package/library/packages/events/src/cx-search-facets-summary-expand.d.ts +9 -0
  179. package/library/packages/events/src/cx-search-facets-summary-remove.d.ts +12 -0
  180. package/library/packages/events/src/events.d.ts +16 -0
  181. package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +116 -0
  182. package/library/packages/molecules/src/sidebar/sidebar.d.ts +1 -0
  183. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +7 -2
  184. package/library/packages/organisms/src/index.d.ts +1 -0
  185. package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.d.ts +95 -0
  186. package/library/packages/organisms/src/search-facets/components/search-facet/search-facet.styles.d.ts +2 -0
  187. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/advanced-date-reading.d.ts +90 -0
  188. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.d.ts +85 -0
  189. package/library/packages/organisms/src/search-facets/components/search-facet-advanced-date/search-facet-advanced-date.styles.d.ts +2 -0
  190. package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.d.ts +47 -0
  191. package/library/packages/organisms/src/search-facets/components/search-facet-color/search-facet-color.styles.d.ts +2 -0
  192. package/library/packages/organisms/src/search-facets/components/search-facet-date/date-range-validation.d.ts +67 -0
  193. package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.d.ts +120 -0
  194. package/library/packages/organisms/src/search-facets/components/search-facet-date/search-facet-date.styles.d.ts +2 -0
  195. package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.d.ts +44 -0
  196. package/library/packages/organisms/src/search-facets/components/search-facet-similar/search-facet-similar.styles.d.ts +2 -0
  197. package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.d.ts +104 -0
  198. package/library/packages/organisms/src/search-facets/components/search-facet-tree/search-facet-tree.styles.d.ts +2 -0
  199. package/library/packages/organisms/src/search-facets/components/search-facet-tree/visible-nodes.d.ts +36 -0
  200. package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.d.ts +67 -0
  201. package/library/packages/organisms/src/search-facets/components/search-facets-summary/search-facets-summary.styles.d.ts +2 -0
  202. package/library/packages/organisms/src/search-facets/search-facets.d.ts +198 -0
  203. package/library/packages/organisms/src/search-facets/search-facets.fixtures.d.ts +141 -0
  204. package/library/packages/organisms/src/search-facets/search-facets.styles.d.ts +2 -0
  205. package/library/packages/organisms/src/search-facets/state/date-drafts.d.ts +11 -0
  206. package/library/packages/organisms/src/search-facets/state/long-panel.d.ts +7 -0
  207. package/library/packages/organisms/src/search-facets/state/preview-summary.d.ts +17 -0
  208. package/library/packages/organisms/src/search-facets/state/preview-waiting-changes.d.ts +12 -0
  209. package/library/packages/organisms/src/search-facets/state/response-correlation.d.ts +9 -0
  210. package/library/packages/organisms/src/search-facets/state/waiting-changes.d.ts +179 -0
  211. package/library/packages/organisms/src/search-facets/types.d.ts +347 -0
  212. package/library/packages/types/src/asset-link-format.d.ts +6 -0
  213. package/library/packages/types/src/search-facets.d.ts +104 -0
  214. package/library/packages/utils/src/custom-element/i18n.d.ts +39 -0
  215. package/library/packages/utils/src/date/calendar-grid.d.ts +5 -6
  216. package/library/packages/utils/src/date/date.d.ts +7 -1
  217. package/library/react-web-component.d.ts +87 -5
  218. package/library/utils.js +10 -10
  219. package/package.json +1 -1
  220. package/library/chunks/date-calendar.B7e6WBzh.js +0 -78
  221. package/library/chunks/date.BL4L64Hx.js +0 -358
@@ -7,7 +7,7 @@ import { t as u } from "./custom-element.BEMYNDK1.js";
7
7
  import { t as d } from "./when.BUskJLtZ.js";
8
8
  import { c as f } from "./number.CNp5LKkv.js";
9
9
  import { c as p, l as m, t as h } from "./image.C0s1gL4z.js";
10
- import { l as g } from "./asset-link-format.COPyGdND.js";
10
+ import { u as g } from "./asset-link-format.D6L-qc3X.js";
11
11
  import { a as _, n as v, r as y, t as b } from "./jsx-runtime.BqxT1jD6.js";
12
12
  import { t as x } from "./debounce.DrhImrNP.js";
13
13
  //#region ../../packages/molecules/src/cropper/cropper.styles.ts
@@ -0,0 +1,188 @@
1
+ import { c as e, d as t } from "./lit.CyJqR2kf.js";
2
+ import { a as n, i as r, n as i, r as a, t as o } from "./cortex-element.DTrNUtdr.js";
3
+ import { t as s } from "./query.B1yi7t71.js";
4
+ import { t as c } from "./component.styles.0xM1ZmBs.js";
5
+ import { t as l } from "./custom-element.BEMYNDK1.js";
6
+ import { t as u } from "./i18n.tAD84KB3.js";
7
+ import { t as d } from "./class-map.D8nsNOVJ.js";
8
+ import { t as f } from "./icon-button.hZj_g6Bt.js";
9
+ import { t as p } from "./repeat.CKv9FPlC.js";
10
+ import { C as m, S as h, _ as g, b as _, d as v, u as y, v as b } from "./date.kywrEgxd.js";
11
+ //#region ../../packages/atoms/src/components/date-calendar/date-calendar.styles.ts
12
+ var x = t`:host{display:inline-block}.calendar{--_line:var(--calendar-border-color,color-mix(in srgb, var(--cx-color-neutral-900) 55%, var(--cx-color-neutral-0)));--_disabled-color:color-mix(in srgb, var(--cx-color-neutral-900) 62%, var(--cx-color-neutral-100));background:var(--cx-color-neutral-0);border:1px solid var(--_line);border-radius:var(--cx-border-radius-medium);user-select:none;width:fit-content;overflow:hidden}.calendar__header{padding:var(--cx-spacing-3x-small);background:var(--header-background,var(--cx-color-neutral-100));border-bottom:1px solid var(--_line);justify-content:space-between;align-items:center;display:flex}.calendar__title{font-size:var(--cx-font-size-small);font-weight:var(--cx-font-weight-semibold);color:var(--cx-color-neutral-900)}.calendar__weekdays{grid-template-columns:repeat(7, var(--cell-size,30px));border-bottom:1px solid var(--_line);display:grid}.calendar__weekday{text-align:center;font-size:var(--cx-font-size-2x-small);font-weight:var(--cx-font-weight-regular);color:var(--cx-input-help-text-color);padding-block:var(--cx-spacing-2x-small)}.calendar__grid{border-top:1px solid var(--_line);border-left:1px solid var(--_line);flex-direction:column;display:flex}.calendar__week{grid-template-columns:repeat(7, var(--cell-size,30px));display:grid}.calendar__cell:focus-visible{z-index:1;outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width));outline-color:color-mix(in srgb, var(--cx-focus-ring-color) 85%, var(--cx-color-neutral-900));position:relative}.calendar__cell{height:var(--cell-size,30px);border:none;border-right:1px solid var(--_line);border-bottom:1px solid var(--_line);border-radius:var(--cell-border-radius,0);color:var(--cx-color-neutral-900);font-size:var(--cx-font-size-x-small);cursor:pointer;transition:background var(--cx-transition-x-fast) ease;background:0 0;justify-content:center;align-items:center;padding:0;display:flex}.calendar__cell:hover:not(.calendar__cell--selected):not(.calendar__cell--disabled){background:var(--cell-hover-background,var(--cx-color-primary-50))}.calendar__cell--disabled{background:var(--cx-color-neutral-50);color:var(--_disabled-color);cursor:not-allowed}.calendar__cell--outside{background:var(--cx-color-neutral-100);color:var(--cell-outside-color,color-mix(in srgb, var(--cx-color-neutral-900) 80%, var(--cx-color-neutral-100)))}.calendar__cell--outside.calendar__cell--disabled:not(.calendar__cell--selected){color:var(--_disabled-color)}.calendar__cell--today:not(.calendar__cell--selected){background:var(--cell-today-background,var(--cx-color-primary-200));box-shadow:inset 0 0 0 1px var(--cx-color-primary-700)}.calendar__cell--selected{background:var(--cell-selected-background,var(--cx-color-neutral-600));color:var(--cell-selected-color,var(--cx-color-neutral-0));font-weight:var(--cx-font-weight-bold)}.calendar__cell--selected:hover{background:var(--cell-selected-background,var(--cx-color-neutral-600));opacity:.9}.calendar__cell--selected:focus-visible{box-shadow:inset 0 0 0 calc(var(--cx-focus-ring-width) + 2px) var(--cx-color-neutral-0)}`, S = 7, C = new Date(2026, 0, 4);
13
+ function w(e, t, n) {
14
+ let r = new Date(2e3, 0, 1);
15
+ return r.setFullYear(e, t - 1, n), r;
16
+ }
17
+ function T(e, t) {
18
+ let { day: n, month: r, year: i } = h(e), a = w(i, r, n + t);
19
+ return m(a.getFullYear(), a.getMonth() + 1, a.getDate());
20
+ }
21
+ function E(e, t) {
22
+ let { day: n, month: r, year: i } = h(e), a = v(i, r, t), o = w(a.year, a.month + 1, 0).getDate();
23
+ return m(a.year, a.month, Math.min(n, o));
24
+ }
25
+ function D(e, t) {
26
+ let { month: n, year: r } = h(e), i = t === "start" ? 1 : w(r, n + 1, 0).getDate();
27
+ return m(r, n, i);
28
+ }
29
+ var O = class extends o {
30
+ constructor(...e) {
31
+ super(...e), this.localize = new u(this), this.today = g(), this.cells = [], this.shouldFocusActiveDay = !1, this.value = "", this.min = "", this.max = "", this.firstDayOfWeek = 0, this.trapFocus = !1, this.selectedDate = "", this.viewYear = (/* @__PURE__ */ new Date()).getFullYear(), this.viewMonth = (/* @__PURE__ */ new Date()).getMonth() + 1, this.activeDate = this.today;
32
+ }
33
+ static #e = this.styles = [c, x];
34
+ static #t = this.dependencies = { "cx-icon-button": f };
35
+ willUpdate(e) {
36
+ if (super.willUpdate(e), e.has("value")) {
37
+ let e = _(this.value);
38
+ this.selectedDate = e ?? "", this.setActiveDate(e ?? this.today);
39
+ }
40
+ this.cells = y.generate({
41
+ firstDayOfWeek: this.firstDayOfWeek,
42
+ maxDate: this.max,
43
+ minDate: this.min,
44
+ selectedDate: this.selectedDate,
45
+ todayDate: this.today,
46
+ viewMonth: this.viewMonth,
47
+ viewYear: this.viewYear
48
+ }), this.activeDate = this.nearestEnabledCellDate(this.activeDate);
49
+ }
50
+ get hasEnabledCell() {
51
+ return this.cells.some((e) => !e.isDisabled);
52
+ }
53
+ nearestEnabledCellDate(e) {
54
+ let t = this.cells.filter((e) => !e.isDisabled);
55
+ if (t.some((t) => t.date === e)) return e;
56
+ if (t.length === 0) return m(this.viewYear, this.viewMonth, 1);
57
+ let n = t.filter((e) => !e.isOutside), r = n.length > 0 ? n : t;
58
+ return (r.find((t) => t.date > e) ?? r[r.length - 1]).date;
59
+ }
60
+ updated(e) {
61
+ super.updated(e), this.shouldFocusActiveDay && (this.shouldFocusActiveDay = !1, this.activeCellButton?.focus());
62
+ }
63
+ async focusActiveDay(e) {
64
+ let t = (e && b(e) ? e : "") || this.selectedDate || this.today;
65
+ this.setActiveDate(this.clampToRange(t)), await this.updateComplete, this.activeCellButton?.focus();
66
+ }
67
+ get activeCellButton() {
68
+ return this.shadowRoot?.querySelector(`[data-date="${this.activeDate}"]`);
69
+ }
70
+ setActiveDate(e) {
71
+ let { month: t, year: n } = h(e);
72
+ this.activeDate = e, this.viewYear = n, this.viewMonth = t;
73
+ }
74
+ handlePrevMonth() {
75
+ this.showMonth(-1);
76
+ }
77
+ handleNextMonth() {
78
+ this.showMonth(1);
79
+ }
80
+ showMonth(e) {
81
+ let { month: t, year: n } = v(this.viewYear, this.viewMonth, e);
82
+ this.viewYear = n, this.viewMonth = t, this.activeDate = E(this.activeDate, e);
83
+ }
84
+ handleGridClick(e) {
85
+ let t = e.target.closest("[data-date]");
86
+ t && this.selectDate(t.dataset.date);
87
+ }
88
+ selectDate(e) {
89
+ let t = this.cells.find((t) => t.date === e);
90
+ t && !t.isDisabled && (this.activeDate = t.date, this.selectedDate = t.date, this.emit("cx-date-select", { detail: { value: t.date } }));
91
+ }
92
+ handleGridKeyDown(e) {
93
+ if (e.key === "Enter" || e.key === " ") {
94
+ e.preventDefault(), this.selectDate(this.activeDate);
95
+ return;
96
+ }
97
+ let t = this.dateForKey(e);
98
+ t && (e.preventDefault(), this.setActiveDate(this.clampToRange(t)), this.shouldFocusActiveDay = !0);
99
+ }
100
+ clampToRange(e) {
101
+ return b(this.min) && e < this.min ? this.min : b(this.max) && e > this.max ? this.max : e;
102
+ }
103
+ dateForKey(e) {
104
+ let t = this.activeDate;
105
+ switch (e.key) {
106
+ case "ArrowLeft": return T(t, -1);
107
+ case "ArrowRight": return T(t, 1);
108
+ case "ArrowUp": return T(t, -7);
109
+ case "ArrowDown": return T(t, S);
110
+ case "PageUp": return E(t, e.shiftKey ? -12 : -1);
111
+ case "PageDown": return E(t, e.shiftKey ? 12 : 1);
112
+ case "Home": return D(t, "start");
113
+ case "End": return D(t, "end");
114
+ default: return;
115
+ }
116
+ }
117
+ handleKeyDown(e) {
118
+ if (!this.trapFocus || e.key !== "Tab") return;
119
+ let t = this.hasEnabledCell ? [
120
+ this.prevButton,
121
+ this.nextButton,
122
+ this.gridElement
123
+ ] : [this.prevButton, this.nextButton], n = this.hasEnabledCell ? t.length - 1 : -1, r = this.shadowRoot?.activeElement, i = (t.findIndex((e) => !!e && (e === r || e.contains(r ?? null))) + (e.shiftKey ? t.length - 1 : 1) + t.length) % t.length;
124
+ e.preventDefault(), i === n ? this.activeCellButton?.focus() : t[i]?.focus();
125
+ }
126
+ get weekdays() {
127
+ return Array.from({ length: S }, (e, t) => {
128
+ let n = new Date(C);
129
+ return n.setDate(C.getDate() + (t + this.weekStart) % S), {
130
+ long: this.localize.date(n, { weekday: "long" }),
131
+ short: this.localize.date(n, { weekday: "short" })
132
+ };
133
+ });
134
+ }
135
+ get weekStart() {
136
+ let e = this.firstDayOfWeek;
137
+ return Number.isInteger(e) && e >= 0 && e < S ? e : 0;
138
+ }
139
+ get monthTitle() {
140
+ return this.localize.date(w(this.viewYear, this.viewMonth, 1), {
141
+ month: "long",
142
+ year: "numeric"
143
+ });
144
+ }
145
+ dayLabel(e) {
146
+ return this.localize.date(w(e.year, e.month, e.day), {
147
+ day: "numeric",
148
+ month: "long",
149
+ weekday: "long",
150
+ year: "numeric"
151
+ });
152
+ }
153
+ renderHeader() {
154
+ return e`<div part="header" class="calendar__header"><cx-icon-button class="calendar__nav calendar__nav--prev" name="chevron_left" label=${this.localize.term("previousMonth")} size="small" @click=${this.handlePrevMonth}></cx-icon-button><span class="calendar__title" id="calendar-title" aria-live="polite">${this.monthTitle}</span><cx-icon-button class="calendar__nav calendar__nav--next" name="chevron_right" label=${this.localize.term("nextMonth")} size="small" @click=${this.handleNextMonth}></cx-icon-button></div>`;
155
+ }
156
+ renderWeekdays() {
157
+ let t = this.weekdays.map((t) => e`<div class="calendar__weekday" role="columnheader" aria-label=${t.long}>${t.short}</div>`);
158
+ return e`<div class="calendar__weekdays" role="row">${t}</div>`;
159
+ }
160
+ renderCell(t) {
161
+ let n = t.date === this.activeDate;
162
+ return e`<button part="cell" class=${d({
163
+ calendar__cell: !0,
164
+ "calendar__cell--disabled": t.isDisabled,
165
+ "calendar__cell--outside": t.isOutside,
166
+ "calendar__cell--selected": t.isSelected,
167
+ "calendar__cell--today": t.isToday
168
+ })} type="button" role="gridcell" tabindex=${n && !t.isDisabled ? "0" : "-1"} ?disabled=${t.isDisabled} data-date=${t.date} aria-label=${this.dayLabel(t)} aria-selected=${t.isSelected ? "true" : "false"} aria-current=${t.isToday ? "date" : "false"}>${t.day}</button>`;
169
+ }
170
+ renderWeeks() {
171
+ let t = [];
172
+ for (let e = 0; e < this.cells.length; e += S) t.push(this.cells.slice(e, e + S));
173
+ return p(t, (e) => e[0]?.date, (t) => e`<div class="calendar__week" role="row">${p(t, (e) => e.date, (e) => this.renderCell(e))}</div>`);
174
+ }
175
+ render() {
176
+ return e`<div part="base" class="calendar" @keydown=${this.handleKeyDown}>${this.renderHeader()}<div class="calendar__table" role="grid" aria-labelledby="calendar-title">${this.renderWeekdays()}<div part="grid" class="calendar__grid" role="rowgroup" @click=${this.handleGridClick} @keydown=${this.handleGridKeyDown}>${this.renderWeeks()}</div></div></div>`;
177
+ }
178
+ };
179
+ i([s(".calendar__nav--prev"), a("design:type", f === void 0 ? Object : f)], O.prototype, "prevButton", void 0), i([s(".calendar__nav--next"), a("design:type", f === void 0 ? Object : f)], O.prototype, "nextButton", void 0), i([s(".calendar__grid"), a("design:type", typeof HTMLElement > "u" ? Object : HTMLElement)], O.prototype, "gridElement", void 0), i([n({ type: String }), a("design:type", Object)], O.prototype, "value", void 0), i([n({ type: String }), a("design:type", Object)], O.prototype, "min", void 0), i([n({ type: String }), a("design:type", Object)], O.prototype, "max", void 0), i([n({
180
+ attribute: "first-day-of-week",
181
+ type: Number
182
+ }), a("design:type", Object)], O.prototype, "firstDayOfWeek", void 0), i([n({
183
+ attribute: "trap-focus",
184
+ type: Boolean
185
+ }), a("design:type", Object)], O.prototype, "trapFocus", void 0), i([r(), a("design:type", Object)], O.prototype, "selectedDate", void 0), i([r(), a("design:type", Object)], O.prototype, "viewYear", void 0), i([r(), a("design:type", Object)], O.prototype, "viewMonth", void 0), i([r(), a("design:type", Object)], O.prototype, "activeDate", void 0), O = i([l("cx-date-calendar")], O);
186
+ var k = O;
187
+ //#endregion
188
+ export { k as t };
@@ -0,0 +1,363 @@
1
+ //#region ../../packages/utils/src/date/date.ts
2
+ var e = /^\d{4}-\d{2}-\d{2}$/;
3
+ function t(e, t, n) {
4
+ let r = new Date(2e3, 0, 1);
5
+ return r.setFullYear(e, t, n), r;
6
+ }
7
+ function n(n) {
8
+ if (!e.test(n)) return !1;
9
+ let [r, i, a] = n.split("-").map(Number), o = t(r, i - 1, a);
10
+ return r >= 1 && o.getFullYear() === r && o.getMonth() === i - 1 && o.getDate() === a;
11
+ }
12
+ function r(e, t, n) {
13
+ return [
14
+ String(e).padStart(4, "0"),
15
+ String(t).padStart(2, "0"),
16
+ String(n).padStart(2, "0")
17
+ ].join("-");
18
+ }
19
+ function i(e) {
20
+ let [t, n, r] = e.split("-").map(Number);
21
+ return {
22
+ day: r,
23
+ month: n,
24
+ year: t
25
+ };
26
+ }
27
+ function a(e) {
28
+ if (!n(e)) return;
29
+ let { day: r, month: a, year: o } = i(e);
30
+ return t(o, a - 1, r);
31
+ }
32
+ function o(e) {
33
+ let t = e.includes("/") ? "/" : "-";
34
+ return {
35
+ order: e.split(t),
36
+ separator: t
37
+ };
38
+ }
39
+ function s(e) {
40
+ let { order: t, separator: n } = o(e), r = {
41
+ DD: "d",
42
+ MM: "m",
43
+ YYYY: "Y"
44
+ };
45
+ return t.map((e) => r[e]).join(`{${n}}`);
46
+ }
47
+ function c(e, t) {
48
+ if (!e) return "";
49
+ let [n, r, i] = e.split("-"), { order: a, separator: s } = o(t), c = {
50
+ DD: i,
51
+ MM: r,
52
+ YYYY: n
53
+ };
54
+ return a.map((e) => c[e]).join(s);
55
+ }
56
+ function l(e, t) {
57
+ let { order: n, separator: r } = o(t), i = e.split(r);
58
+ if (i.length !== 3) return "";
59
+ let a = {
60
+ DD: "",
61
+ MM: "",
62
+ YYYY: ""
63
+ };
64
+ n.forEach((e, t) => {
65
+ a[e] = i[t];
66
+ });
67
+ let { DD: s, MM: c, YYYY: l } = a;
68
+ return !s || !c || l.length < 4 ? "" : `${l}-${c.padStart(2, "0")}-${s.padStart(2, "0")}`;
69
+ }
70
+ function u() {
71
+ let e = /* @__PURE__ */ new Date();
72
+ return r(e.getFullYear(), e.getMonth() + 1, e.getDate());
73
+ }
74
+ function d(e, n, r) {
75
+ let i = t(e, n - 1 + r, 1);
76
+ return {
77
+ month: i.getMonth() + 1,
78
+ year: i.getFullYear()
79
+ };
80
+ }
81
+ function f(e, n) {
82
+ return t(e, n - 1, 1).toLocaleDateString("en-US", {
83
+ month: "long",
84
+ year: "numeric"
85
+ });
86
+ }
87
+ function p(e, n) {
88
+ return t(e, n - 1, 1).getDay();
89
+ }
90
+ var m = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/;
91
+ function h(e) {
92
+ let t = new Date(e);
93
+ return isNaN(t.getTime()) ? null : r(t.getFullYear(), t.getMonth() + 1, t.getDate());
94
+ }
95
+ function g(e) {
96
+ return e ? n(e) ? e : m.test(e) ? h(e) : (console.warn(`[normalizeToIsoDate] Unsupported date format: "${e}". Expected YYYY-MM-DD or ISO UTC datetime (e.g. 2026-06-05T00:00:00.000Z).`), null) : null;
97
+ }
98
+ function _(e) {
99
+ return typeof e != "number" || !Number.isInteger(e) ? 0 : e >= 0 && e < 7 ? e : 0;
100
+ }
101
+ var v = class {
102
+ static generate(e) {
103
+ let { maxDate: i, minDate: a, selectedDate: o, todayDate: s, viewMonth: c, viewYear: l } = e, u = _(e.firstDayOfWeek), d = (p(l, c) - u + 7) % 7, f = t(l, c, 0).getDate(), m = Math.ceil((d + f) / 7) * 7, h = t(l, c - 1, 1 - d), g = [];
104
+ for (let e = 0; e < m; e++) {
105
+ let t = new Date(h);
106
+ t.setDate(h.getDate() + e);
107
+ let l = t.getFullYear(), u = t.getMonth() + 1, d = t.getDate(), f = r(l, u, d), p = n(a) && f < a, m = n(i) && f > i;
108
+ g.push({
109
+ date: f,
110
+ day: d,
111
+ isDisabled: p || m,
112
+ isOutside: u !== c,
113
+ isSelected: n(o) && f === o,
114
+ isToday: f === s,
115
+ month: u,
116
+ year: l
117
+ });
118
+ }
119
+ return g;
120
+ }
121
+ }, y = "00:00:00", b = "23:59:59", x = Array.from({ length: 24 }, (e, t) => {
122
+ let n = t < 12 ? "am" : "pm";
123
+ return {
124
+ label: `${t % 12 || 12}${n}`,
125
+ value: String(t).padStart(2, "0")
126
+ };
127
+ }), S = Array.from({ length: 60 }, (e, t) => String(t).padStart(2, "0")), C = {
128
+ last2Days: "last-2-days",
129
+ last30Days: "last-30-days",
130
+ last30Minutes: "last-30-minutes",
131
+ last3Days: "last-3-days",
132
+ lastDay: "last-day",
133
+ lastHalfYear: "last-half-year",
134
+ lastMonth: "last-month",
135
+ lastQuarter: "last-quarter",
136
+ lastWeek: "last-week",
137
+ lastYear: "last-year",
138
+ next30Days: "next-30-days",
139
+ thisHalfYear: "this-half-year",
140
+ thisMonth: "this-month",
141
+ thisQuarter: "this-quarter",
142
+ thisWeek: "this-week",
143
+ thisYear: "this-year",
144
+ today: "today"
145
+ }, w = [
146
+ C.last30Minutes,
147
+ C.today,
148
+ C.lastDay,
149
+ C.last2Days,
150
+ C.last3Days,
151
+ C.last30Days,
152
+ C.next30Days,
153
+ C.thisWeek,
154
+ C.lastWeek,
155
+ C.thisMonth,
156
+ C.lastMonth,
157
+ C.lastQuarter,
158
+ C.lastHalfYear,
159
+ C.thisQuarter,
160
+ C.thisHalfYear,
161
+ C.thisYear,
162
+ C.lastYear
163
+ ], T = {
164
+ [C.last2Days]: "presetLast2Days",
165
+ [C.last3Days]: "presetLast3Days",
166
+ [C.last30Days]: "presetLast30Days",
167
+ [C.last30Minutes]: "presetLast30Minutes",
168
+ [C.lastDay]: "presetLastDay",
169
+ [C.lastHalfYear]: "presetLastHalfYear",
170
+ [C.lastMonth]: "presetLastMonth",
171
+ [C.lastQuarter]: "presetLastQuarter",
172
+ [C.lastWeek]: "presetLastWeek",
173
+ [C.lastYear]: "presetLastYear",
174
+ [C.next30Days]: "presetNext30Days",
175
+ [C.thisHalfYear]: "presetThisHalfYear",
176
+ [C.thisMonth]: "presetThisMonth",
177
+ [C.thisQuarter]: "presetThisQuarter",
178
+ [C.thisWeek]: "presetThisWeek",
179
+ [C.thisYear]: "presetThisYear",
180
+ [C.today]: "presetToday"
181
+ }, E = /* @__PURE__ */ function(e) {
182
+ return e.DdMmYyyy = "ddmmyyyy", e.MmDdYyyy = "mmddyyyy", e.YyyyMmDd = "yyyymmdd", e;
183
+ }({}), D = {
184
+ ddmmyyyy: "DD/MM/YYYY",
185
+ mmddyyyy: "MM/DD/YYYY",
186
+ yyyymmdd: "YYYY/MM/DD"
187
+ };
188
+ function O(e) {
189
+ return D[e] ?? e;
190
+ }
191
+ //#endregion
192
+ //#region ../../packages/utils/src/date/date-range-preset.ts
193
+ function k(e) {
194
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
195
+ }
196
+ function A(e) {
197
+ return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}`;
198
+ }
199
+ function j(e, t) {
200
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate() + t);
201
+ }
202
+ function M(e) {
203
+ let t = e.getDay();
204
+ return j(e, t === 0 ? -6 : 1 - t);
205
+ }
206
+ function N(e) {
207
+ return new Date(e.getFullYear(), e.getMonth(), 1);
208
+ }
209
+ function P(e) {
210
+ return new Date(e.getFullYear(), e.getMonth() + 1, 0);
211
+ }
212
+ function F(e) {
213
+ let t = Math.floor(e.getMonth() / 3) * 3;
214
+ return new Date(e.getFullYear(), t, 1);
215
+ }
216
+ function I(e) {
217
+ let t = Math.floor(e.getMonth() / 3) * 3;
218
+ return new Date(e.getFullYear(), t + 3, 0);
219
+ }
220
+ function L(e) {
221
+ let t = e.getMonth() < 6 ? 0 : 6;
222
+ return new Date(e.getFullYear(), t, 1);
223
+ }
224
+ function R(e) {
225
+ let t = e.getMonth() < 6 ? 0 : 6;
226
+ return new Date(e.getFullYear(), t + 6, 0);
227
+ }
228
+ var z = class {
229
+ static getRange(e, t) {
230
+ let n = k(t);
231
+ switch (e) {
232
+ case C.last30Minutes: {
233
+ let e = /* @__PURE__ */ new Date(t.getTime() - 18e5);
234
+ return {
235
+ fromDate: k(e),
236
+ fromTime: A(e),
237
+ toDate: n,
238
+ toTime: A(t)
239
+ };
240
+ }
241
+ case C.today: return {
242
+ fromDate: n,
243
+ fromTime: y,
244
+ toDate: n,
245
+ toTime: b
246
+ };
247
+ case C.lastDay: {
248
+ let e = k(j(t, -1));
249
+ return {
250
+ fromDate: e,
251
+ fromTime: y,
252
+ toDate: e,
253
+ toTime: b
254
+ };
255
+ }
256
+ case C.last2Days: return {
257
+ fromDate: k(j(t, -1)),
258
+ fromTime: y,
259
+ toDate: n,
260
+ toTime: b
261
+ };
262
+ case C.last3Days: return {
263
+ fromDate: k(j(t, -2)),
264
+ fromTime: y,
265
+ toDate: n,
266
+ toTime: b
267
+ };
268
+ case C.last30Days: return {
269
+ fromDate: k(j(t, -29)),
270
+ fromTime: y,
271
+ toDate: n,
272
+ toTime: b
273
+ };
274
+ case C.next30Days: return {
275
+ fromDate: n,
276
+ fromTime: y,
277
+ toDate: k(j(t, 30)),
278
+ toTime: b
279
+ };
280
+ case C.thisWeek: {
281
+ let e = M(t);
282
+ return {
283
+ fromDate: k(e),
284
+ fromTime: y,
285
+ toDate: k(j(e, 6)),
286
+ toTime: b
287
+ };
288
+ }
289
+ case C.lastWeek: {
290
+ let e = j(M(t), -7);
291
+ return {
292
+ fromDate: k(e),
293
+ fromTime: y,
294
+ toDate: k(j(e, 6)),
295
+ toTime: b
296
+ };
297
+ }
298
+ case C.thisMonth: return {
299
+ fromDate: k(N(t)),
300
+ fromTime: y,
301
+ toDate: k(P(t)),
302
+ toTime: b
303
+ };
304
+ case C.lastMonth: {
305
+ let e = new Date(t.getFullYear(), t.getMonth() - 1, 1);
306
+ return {
307
+ fromDate: k(N(e)),
308
+ fromTime: y,
309
+ toDate: k(P(e)),
310
+ toTime: b
311
+ };
312
+ }
313
+ case C.thisQuarter: return {
314
+ fromDate: k(F(t)),
315
+ fromTime: y,
316
+ toDate: k(I(t)),
317
+ toTime: b
318
+ };
319
+ case C.lastQuarter: {
320
+ let e = new Date(t.getFullYear(), t.getMonth() - 3, 1);
321
+ return {
322
+ fromDate: k(F(e)),
323
+ fromTime: y,
324
+ toDate: k(I(e)),
325
+ toTime: b
326
+ };
327
+ }
328
+ case C.thisHalfYear: return {
329
+ fromDate: k(L(t)),
330
+ fromTime: y,
331
+ toDate: k(R(t)),
332
+ toTime: b
333
+ };
334
+ case C.lastHalfYear: {
335
+ let e = new Date(t.getFullYear(), t.getMonth() - 6, 1);
336
+ return {
337
+ fromDate: k(L(e)),
338
+ fromTime: y,
339
+ toDate: k(R(e)),
340
+ toTime: b
341
+ };
342
+ }
343
+ case C.thisYear: return {
344
+ fromDate: `${t.getFullYear()}-01-01`,
345
+ fromTime: y,
346
+ toDate: `${t.getFullYear()}-12-31`,
347
+ toTime: b
348
+ };
349
+ case C.lastYear: {
350
+ let e = t.getFullYear() - 1;
351
+ return {
352
+ fromDate: `${e}-01-01`,
353
+ fromTime: y,
354
+ toDate: `${e}-12-31`,
355
+ toTime: b
356
+ };
357
+ }
358
+ }
359
+ throw Error(`Unsupported date range preset: ${e}`);
360
+ }
361
+ };
362
+ //#endregion
363
+ export { r as C, i as S, u as _, E as a, g as b, T as c, d, t as f, p as g, s as h, b as i, O as l, f as m, w as n, x as o, c as p, y as r, S as s, z as t, v as u, n as v, l as x, a as y };
@@ -4,7 +4,7 @@ import { t as o } from "./query.B1yi7t71.js";
4
4
  import { t as s } from "./component.styles.0xM1ZmBs.js";
5
5
  import { a as c, n as l, o as u, t as d } from "./event.C11S4obG.js";
6
6
  import { t as f } from "./custom-element.BEMYNDK1.js";
7
- import { t as p } from "./i18n.Bjg2ubA4.js";
7
+ import { t as p } from "./i18n.tAD84KB3.js";
8
8
  import { t as m } from "./watch.Ub5r8btz.js";
9
9
  import { t as h } from "./class-map.D8nsNOVJ.js";
10
10
  import { r as g, t as _ } from "./animation-registry.DKd2AOcC.js";
@@ -1,16 +1,16 @@
1
1
  import { c as e, d as t, r as n } from "./lit.CyJqR2kf.js";
2
2
  import { a as r, i, n as a, r as o, t as s } from "./cortex-element.DTrNUtdr.js";
3
3
  import { t as c } from "./query.B1yi7t71.js";
4
- import { t as l } from "./popup.w4ZU3jI-.js";
4
+ import { t as l } from "./popup.CDY1A9dW.js";
5
5
  import { t as u } from "./component.styles.0xM1ZmBs.js";
6
6
  import { n as d, o as f, t as p } from "./event.C11S4obG.js";
7
7
  import { t as m } from "./custom-element.BEMYNDK1.js";
8
- import { t as h } from "./i18n.Bjg2ubA4.js";
8
+ import { t as h } from "./i18n.tAD84KB3.js";
9
9
  import { t as g } from "./slot.CZUlACxT.js";
10
10
  import { t as _ } from "./watch.Ub5r8btz.js";
11
11
  import { t as v } from "./class-map.D8nsNOVJ.js";
12
12
  import { r as y, t as b } from "./animation-registry.DKd2AOcC.js";
13
- import { t as x } from "./icon-button.qJd_az6T.js";
13
+ import { t as x } from "./icon-button.hZj_g6Bt.js";
14
14
  import { t as S } from "./if-defined.B29V_rEp.js";
15
15
  import { t as C } from "./when.BUskJLtZ.js";
16
16
  import { t as w } from "./style-map.DPGQIxip.js";
@@ -1,35 +1,35 @@
1
1
  import { i as __require, o as __toESM, t as __commonJSMin } from "./rolldown-runtime.CEFd7nDs.js";
2
2
  import { c as x, d as i, r as E } from "./lit.CyJqR2kf.js";
3
3
  import { a as n, i as r$1, n as __decorate, r as __decorateMetadata, t as CortexElement } from "./cortex-element.DTrNUtdr.js";
4
- import { t as popup_default } from "./popup.w4ZU3jI-.js";
4
+ import { t as popup_default } from "./popup.CDY1A9dW.js";
5
5
  import { t as component_styles_default } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as customElement } from "./custom-element.BEMYNDK1.js";
7
- import { t as LocalizeController } from "./i18n.Bjg2ubA4.js";
7
+ import { t as LocalizeController } from "./i18n.tAD84KB3.js";
8
8
  import { t as watch } from "./watch.Ub5r8btz.js";
9
9
  import { t as e } from "./class-map.D8nsNOVJ.js";
10
- import { t as icon_button_default } from "./icon-button.qJd_az6T.js";
10
+ import { t as icon_button_default } from "./icon-button.hZj_g6Bt.js";
11
11
  import { t as n$1 } from "./when.BUskJLtZ.js";
12
12
  import { t as icon_default } from "./icon.CeQpEaQz.js";
13
- import { t as spinner_default } from "./spinner.Bv06U7NJ.js";
14
- import { t as button_default } from "./button.DKkHqsUz.js";
13
+ import { t as spinner_default } from "./spinner.DPl3rjQY.js";
14
+ import { t as button_default } from "./button.DHmArHfu.js";
15
15
  import { a as ResizeDirection, i as HeightMode, n as ResizableElement, t as resizable_component_styles_default } from "./resizable-component.styles.v9pbLDG5.js";
16
16
  import { t as resize_observer_default } from "./resize-observer.D9EHlnZI.js";
17
- import { t as tooltip_default } from "./tooltip.Cc02vm6M.js";
17
+ import { t as tooltip_default } from "./tooltip.DurE2LL4.js";
18
18
  import { a as ObjectFit } from "./src.BJhIYoMP.js";
19
19
  import { t as typography_default } from "./typography.B0mkhqTB.js";
20
- import { t as dropdown_default } from "./dropdown.CKhoP9Cr.js";
20
+ import { t as dropdown_default } from "./dropdown.D6MQirjI.js";
21
21
  import { t as focusWhenVisible } from "./focus-when-visible.DKscgyKo.js";
22
- import { t as input_default } from "./input.DZRed6yo.js";
23
- import { t as menu_default } from "./menu.BxBtGPsg.js";
24
- import { t as menu_item_default } from "./menu-item.au-gTg1F.js";
22
+ import { t as input_default } from "./input.is3tnNFr.js";
23
+ import { t as menu_default } from "./menu.CVJpMzSd.js";
24
+ import { t as menu_item_default } from "./menu-item.DL81yBgV.js";
25
25
  import { t as space_default } from "./space.Dd8jezXK.js";
26
- import { X as fetchCortexApi } from "./src.Dia365C9.js";
27
- import { t as drawer_default } from "./drawer.BsKzYqKe.js";
28
- import { t as progress_bar_default } from "./progress-bar.CynVLLnY.js";
26
+ import { X as fetchCortexApi } from "./src.DwbXw2Wv.js";
27
+ import { t as drawer_default } from "./drawer.UPV3DrmP.js";
28
+ import { t as progress_bar_default } from "./progress-bar.DCx1bJbA.js";
29
29
  import { a as require_react, n as w, r as require_client, t as require_jsx_runtime } from "./jsx-runtime.BqxT1jD6.js";
30
30
  import { t as require___vite_browser_external } from "./__vite-browser-external.CMLby1wp.js";
31
31
  import { i as _extends, r as _assertThisInitialized, t as _inheritsLoose } from "./inheritsLoose.CmL1ZoPA.js";
32
- import { t as image_default } from "./image.-lgb634-.js";
32
+ import { t as image_default } from "./image.CSmzcQJh.js";
33
33
  //#region ../../packages/types/src/book-reader.ts
34
34
  var BookReaderMode$1 = /* @__PURE__ */ function(t) {
35
35
  return t.Image = "Image", t.Pdf = "Pdf", t;
@@ -4,12 +4,12 @@ import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./query-all.NK7qxEbl.js";
5
5
  import { t as l } from "./component.styles.0xM1ZmBs.js";
6
6
  import { t as u } from "./custom-element.BEMYNDK1.js";
7
- import { t as d } from "./i18n.Bjg2ubA4.js";
7
+ import { t as d } from "./i18n.tAD84KB3.js";
8
8
  import { t as f } from "./watch.Ub5r8btz.js";
9
9
  import { t as p } from "./class-map.D8nsNOVJ.js";
10
10
  import { t as m } from "./if-defined.B29V_rEp.js";
11
11
  import { t as h } from "./when.BUskJLtZ.js";
12
- import { t as g } from "./tooltip.Cc02vm6M.js";
12
+ import { t as g } from "./tooltip.DurE2LL4.js";
13
13
  import { o as _ } from "./src.BJhIYoMP.js";
14
14
  import { t as v } from "./map.ByDuLduF.js";
15
15
  //#region ../../packages/atoms/src/components/dot-pagination/dot-pagination.styles.ts
@@ -4,12 +4,12 @@ import { t as s } from "./query.B1yi7t71.js";
4
4
  import { t as c } from "./component.styles.0xM1ZmBs.js";
5
5
  import { n as l, o as u, t as d } from "./event.C11S4obG.js";
6
6
  import { t as f } from "./custom-element.BEMYNDK1.js";
7
- import { t as p } from "./i18n.Bjg2ubA4.js";
7
+ import { t as p } from "./i18n.tAD84KB3.js";
8
8
  import { t as m } from "./slot.CZUlACxT.js";
9
9
  import { t as h } from "./watch.Ub5r8btz.js";
10
10
  import { t as g } from "./class-map.D8nsNOVJ.js";
11
11
  import { r as _, t as v } from "./animation-registry.DKd2AOcC.js";
12
- import { t as y } from "./icon-button.qJd_az6T.js";
12
+ import { t as y } from "./icon-button.hZj_g6Bt.js";
13
13
  import { t as b } from "./if-defined.B29V_rEp.js";
14
14
  import { t as x } from "./when.BUskJLtZ.js";
15
15
  import { t as S } from "./focus-when-visible.DKscgyKo.js";