@orangelogic/design-system 2.110.0 → 2.112.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 (159) hide show
  1. package/library/chunks/asset.Ci6rP56l.js +458 -0
  2. package/library/chunks/{button.i88sSbTZ.js → button.BvBgxmvw.js} +3 -3
  3. package/library/chunks/calendar-grid.CXYoS6VA.js +108 -0
  4. package/library/chunks/{color-swatch-group.mIHaCJsh.js → color-swatch-group.D8KPblw2.js} +3 -3
  5. package/library/chunks/{color-swatch.D9vkPoV2.js → color-swatch.DQxReKYX.js} +2 -2
  6. package/library/chunks/{color.vLD2sNTs.js → color.LzSGBy7o.js} +2 -2
  7. package/library/chunks/{confirm-popover.UuBhn8GA.js → confirm-popover.dyPIFLWa.js} +3 -3
  8. package/library/chunks/date-picker.D0SJADN6.js +77 -0
  9. package/library/chunks/{dialog.Bso6gK-8.js → dialog.BoCFGpPO.js} +2 -2
  10. package/library/chunks/{document-viewer.C6eclRvd.js → document-viewer.B90s20gM.js} +8 -7
  11. package/library/chunks/{dot-pagination.CNnUuI-Z.js → dot-pagination.uz9GFrMP.js} +1 -1
  12. package/library/chunks/{file-on-demand.Cf2ujTeF.js → file-on-demand.DLVH0DID.js} +10 -10
  13. package/library/chunks/{folder-select.ByNUfTia.js → folder-select.C2ruplAB.js} +5 -5
  14. package/library/chunks/{form.Ch1cwYzO.js → form.B-5nQJva.js} +46 -34
  15. package/library/chunks/{header.hj2Kw-N7.js → header.By_Mfx47.js} +1 -1
  16. package/library/chunks/{i18n.D6AYDPK-.js → i18n.BcD4Ohsq.js} +46 -13
  17. package/library/chunks/{icon-button.ztYU-DHy.js → icon-button.DO6DHXwo.js} +2 -2
  18. package/library/chunks/icon.DnBh6-56.js +111 -0
  19. package/library/chunks/{iframe.uLxZ6LsL.js → iframe.C4jZSmOr.js} +1 -1
  20. package/library/chunks/{image.DKB6yEQO.js → image.Cx4hbc4L.js} +2 -2
  21. package/library/chunks/input.B7SaYNrr.js +2855 -0
  22. package/library/chunks/{list-editor.GT2kQsmR.js → list-editor.Hag-nXN-.js} +86 -86
  23. package/library/chunks/{option.BAYtHIvG.js → option.CA-HtVdP.js} +2 -2
  24. package/library/chunks/{pagination.CCJD61IB.js → pagination.jgAGwDyt.js} +5 -5
  25. package/library/chunks/{tab-group.BsR8tdVY.js → tab-group.DyxpVNOn.js} +3 -3
  26. package/library/chunks/{table.DL_CEeYh.js → table.Crb35At8.js} +2905 -2306
  27. package/library/chunks/{tree.KmZRWZ0F.js → tree.jg0MjIB8.js} +2 -2
  28. package/library/components/alert.js +2 -2
  29. package/library/components/animated-image.js +15 -15
  30. package/library/components/asset-link-format.js +7 -7
  31. package/library/components/atoms.js +194 -180
  32. package/library/components/audio.js +2 -2
  33. package/library/components/avatar.js +1 -1
  34. package/library/components/border-input-group.js +2 -2
  35. package/library/components/breadcrumb.js +4 -4
  36. package/library/components/button.js +4 -4
  37. package/library/components/checkbox.js +2 -2
  38. package/library/components/color-picker.js +5 -5
  39. package/library/components/color-swatch-group.js +4 -4
  40. package/library/components/color-swatch.js +3 -3
  41. package/library/components/confirm-popover.js +4 -4
  42. package/library/components/copy-button.js +2 -2
  43. package/library/components/corner-position-input-group.js +3 -3
  44. package/library/components/date-calendar.d.ts +3 -0
  45. package/library/components/date-calendar.js +107 -0
  46. package/library/components/details.js +12 -12
  47. package/library/components/dialog.js +3 -3
  48. package/library/components/document-viewer.js +4 -4
  49. package/library/components/dot-pagination.js +2 -2
  50. package/library/components/drawer.js +2 -2
  51. package/library/components/dropdown.js +2 -2
  52. package/library/components/dynamic-select.js +4 -4
  53. package/library/components/e-chart.js +1 -1
  54. package/library/components/element-clamp.js +2 -2
  55. package/library/components/faceted-filter.d.ts +3 -0
  56. package/library/components/faceted-filter.js +295 -0
  57. package/library/components/file-on-demand.js +11 -11
  58. package/library/components/folder-select.js +5 -5
  59. package/library/components/format-bytes.js +1 -1
  60. package/library/components/format-date.js +1 -1
  61. package/library/components/format-number.js +1 -1
  62. package/library/components/format-time.js +1 -1
  63. package/library/components/header.js +2 -2
  64. package/library/components/icon-button.js +3 -3
  65. package/library/components/icon.js +10 -109
  66. package/library/components/iframe.js +2 -2
  67. package/library/components/image-comparer.js +2 -2
  68. package/library/components/image.js +3 -3
  69. package/library/components/input.js +19 -2852
  70. package/library/components/line-clamp.js +1 -1
  71. package/library/components/list-editor.js +7 -7
  72. package/library/components/masonry.js +2 -2
  73. package/library/components/menu-item.js +2 -2
  74. package/library/components/menu.js +2 -2
  75. package/library/components/molecules.js +4 -4
  76. package/library/components/option.js +3 -3
  77. package/library/components/organisms.js +2 -2
  78. package/library/components/padding-input-group.js +9 -9
  79. package/library/components/pagination.js +6 -6
  80. package/library/components/popup.js +1 -1
  81. package/library/components/position-picker.js +1 -1
  82. package/library/components/progress-bar.js +1 -1
  83. package/library/components/progress-ring.js +1 -1
  84. package/library/components/radio-group.js +1 -1
  85. package/library/components/radio.js +1 -1
  86. package/library/components/range.js +2 -2
  87. package/library/components/rating.js +6 -6
  88. package/library/components/relative-time.js +1 -1
  89. package/library/components/select.js +5 -5
  90. package/library/components/shadow-input-group.js +5 -5
  91. package/library/components/share-option-list.js +2 -2
  92. package/library/components/sidebar.js +2 -2
  93. package/library/components/size-input-group.js +3 -3
  94. package/library/components/spinner.js +1 -1
  95. package/library/components/split-panel.js +1 -1
  96. package/library/components/step.js +1 -1
  97. package/library/components/stepper-wizard.js +16 -16
  98. package/library/components/switch.js +1 -1
  99. package/library/components/tab-group.js +4 -4
  100. package/library/components/tab.js +2 -2
  101. package/library/components/table.js +5 -5
  102. package/library/components/tag.js +2 -2
  103. package/library/components/textarea.js +1 -1
  104. package/library/components/tooltip.js +1 -1
  105. package/library/components/tree-item.js +3 -3
  106. package/library/components/tree.js +2 -2
  107. package/library/components/typeface.js +2 -2
  108. package/library/components/types.js +25339 -24757
  109. package/library/components/video.js +2 -2
  110. package/library/package.json +1 -1
  111. package/library/packages/atoms/src/components/date-calendar/date-calendar.d.ts +61 -0
  112. package/library/packages/atoms/src/components/date-calendar/date-calendar.styles.d.ts +2 -0
  113. package/library/packages/atoms/src/components/details/details.d.ts +1 -0
  114. package/library/packages/atoms/src/components/faceted-filter/components/facet/facet.d.ts +58 -0
  115. package/library/packages/atoms/src/components/faceted-filter/components/facet/facet.styles.d.ts +2 -0
  116. package/library/packages/atoms/src/components/faceted-filter/faceted-filter.d.ts +71 -0
  117. package/library/packages/atoms/src/components/faceted-filter/faceted-filter.styles.d.ts +2 -0
  118. package/library/packages/atoms/src/components/icon/font-awesome-icons.d.ts +1 -0
  119. package/library/packages/atoms/src/components/icon/icon.d.ts +1 -0
  120. package/library/packages/atoms/src/components/image/image.d.ts +1 -1
  121. package/library/packages/atoms/src/components/table/table-data-loader.d.ts +13 -0
  122. package/library/packages/atoms/src/components/table/table.d.ts +13 -1
  123. package/library/packages/atoms/src/index.d.ts +3 -0
  124. package/library/packages/events/src/cx-date-select.d.ts +9 -0
  125. package/library/packages/events/src/cx-faceted-filter-change.d.ts +8 -0
  126. package/library/packages/events/src/cx-table-data-load.d.ts +17 -0
  127. package/library/packages/events/src/events.d.ts +3 -0
  128. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ClickableCell/ClickableCell.d.ts +5 -0
  129. package/library/packages/molecules/src/asset-data-display/asset-data-display.d.ts +1 -1
  130. package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +2 -0
  131. package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +73 -13
  132. package/library/packages/molecules/src/index.d.ts +2 -0
  133. package/library/packages/molecules/src/input-date-picker/input-date-picker.d.ts +127 -0
  134. package/library/packages/molecules/src/input-date-picker/input-date-picker.styles.d.ts +2 -0
  135. package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.d.ts +90 -0
  136. package/library/packages/molecules/src/input-date-range-picker/input-date-range-picker.styles.d.ts +2 -0
  137. package/library/packages/molecules/src/timeline/timeline.d.ts +1 -1
  138. package/library/packages/molecules/src/view-and-sort/view-and-sort.d.ts +1 -0
  139. package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +0 -1
  140. package/library/packages/organisms/src/template-switcher/template-switcher.d.ts +6 -0
  141. package/library/packages/services/src/api/asset/asset.d.ts +3 -3
  142. package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +2 -2
  143. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +4 -4
  144. package/library/packages/types/src/date-picker.d.ts +45 -0
  145. package/library/packages/types/src/faceted-filter.d.ts +23 -0
  146. package/library/packages/types/src/icon-picker.d.ts +8 -0
  147. package/library/packages/types/src/index.d.ts +1 -1
  148. package/library/packages/types/src/table.d.ts +12 -0
  149. package/library/packages/utils/src/custom-element/form.d.ts +5 -0
  150. package/library/packages/utils/src/custom-element/i18n.d.ts +33 -0
  151. package/library/packages/utils/src/date/calendar-grid.d.ts +40 -0
  152. package/library/packages/utils/src/date/date-range-preset.d.ts +12 -0
  153. package/library/packages/utils/src/date/date.d.ts +42 -0
  154. package/library/packages/utils/src/date/index.d.ts +3 -0
  155. package/library/packages/utils/src/index.d.ts +1 -0
  156. package/library/react-web-component.d.ts +495 -195
  157. package/library/utils.js +539 -332
  158. package/package.json +1 -1
  159. package/library/chunks/asset.NgymQ3Zx.js +0 -454
@@ -0,0 +1,42 @@
1
+ /** Strict date-only string in YYYY-MM-DD format. No time, no timezone. */
2
+ export type CalendarDate = string;
3
+ /** Returns true only for well-formed, calendar-valid YYYY-MM-DD strings. */
4
+ export declare function isValidIsoDate(value: string): value is CalendarDate;
5
+ /** Builds a CalendarDate from numeric parts. Month is 1-based. */
6
+ export declare function toIsoDate(year: number, month: number, day: number): CalendarDate;
7
+ /** Splits a CalendarDate into numeric year/month/day. Month is 1-based. */
8
+ export declare function parseIsoDate(date: CalendarDate): {
9
+ day: number;
10
+ month: number;
11
+ year: number;
12
+ };
13
+ /** Converts a valid CalendarDate into a local Date object. */
14
+ export declare function isoToDate(value: string): Date | undefined;
15
+ /** Converts YYYY-MM-DD to DD-MM-YYYY for date input display. */
16
+ export declare function isoToDisplay(value: string): string;
17
+ /** Converts complete DD-MM-YYYY display input to YYYY-MM-DD. Returns empty for partial input. */
18
+ export declare function displayToIso(value: string): CalendarDate | '';
19
+ /** Returns today's date as a CalendarDate in the browser's local timezone. */
20
+ export declare function getTodayIsoDate(): CalendarDate;
21
+ /**
22
+ * Adds (or subtracts) months from a given year/month pair.
23
+ * Native Date handles overflow — e.g. month 13 becomes January of next year.
24
+ */
25
+ export declare function addMonths(year: number, month: number, delta: number): {
26
+ month: number;
27
+ year: number;
28
+ };
29
+ /** Formats a year/month pair as a human-readable label, e.g. "June 2026". */
30
+ export declare function formatMonthYearLabel(year: number, month: number): string;
31
+ /** Returns the 0-based day-of-week index for the 1st of the given month. 0 = Sunday. */
32
+ export declare function getFirstDayOfWeek(year: number, month: number): number;
33
+ /**
34
+ * Normalizes a consumer-provided value to a CalendarDate (YYYY-MM-DD).
35
+ *
36
+ * Supported formats:
37
+ * - YYYY-MM-DD → returned as-is after validation
38
+ * - ISO UTC datetime (Z) → converted to the browser's local date
39
+ *
40
+ * Unsupported formats log a warning and return null.
41
+ */
42
+ export declare function normalizeToIsoDate(value: string): CalendarDate | null;
@@ -0,0 +1,3 @@
1
+ export * from './calendar-grid';
2
+ export * from './date';
3
+ export * from './date-range-preset';
@@ -24,6 +24,7 @@ export * from './custom-element/slot';
24
24
  export * from './custom-element/tabbable';
25
25
  export * from './custom-element/user-agent';
26
26
  export * from './custom-element/watch';
27
+ export * from './date';
27
28
  export * from './dom';
28
29
  export * from './drag-scroll';
29
30
  export * from './event';