@orangelogic/design-system 2.131.0 → 2.133.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 (138) hide show
  1. package/library/chunks/{asset.D_VITxRH.js → asset.CcxcYY9d.js} +2 -2
  2. package/library/chunks/{button.DcInI7IV.js → button.DYoFn504.js} +1 -1
  3. package/library/chunks/calendar-grid.CvdcwfTo.js +34 -0
  4. package/library/chunks/checkbox.uH0uF0OV.js +198 -0
  5. package/library/chunks/{color-swatch-group.Cy-M_lbx.js → color-swatch-group.DlTVQ3Ul.js} +3 -3
  6. package/library/chunks/{color-swatch.U-wztpLf.js → color-swatch.0zyBEfL_.js} +1 -1
  7. package/library/chunks/{confirm-popover.DfAd2F8S.js → confirm-popover.DpVYvK20.js} +3 -3
  8. package/library/chunks/{date-picker.D0SJADN6.js → date-picker.DTUICGb9.js} +2 -2
  9. package/library/chunks/date.dSYNLBVO.js +77 -0
  10. package/library/chunks/{dialog.BlKHLwFx.js → dialog.BwBD_hJi.js} +2 -2
  11. package/library/chunks/{document-viewer.Dn_vUYCW.js → document-viewer.BM716ovi.js} +6 -6
  12. package/library/chunks/{dot-pagination.CNJWQ4zf.js → dot-pagination.B70lV5Av.js} +1 -1
  13. package/library/chunks/{file-on-demand.Dr05DdkU.js → file-on-demand.D-Ectby2.js} +9 -9
  14. package/library/chunks/{folder-select.DMpO7oQF.js → folder-select.DHV6f6TA.js} +48 -48
  15. package/library/chunks/{header.WRWyUU36.js → header.BMGvKrdP.js} +1 -1
  16. package/library/chunks/{i18n.NAH4U8Lw.js → i18n.DoMIwXr2.js} +61 -45
  17. package/library/chunks/{icon-button.COTH_z-J.js → icon-button.B-Jf9W3v.js} +1 -1
  18. package/library/chunks/{iframe.DvBR4KYU.js → iframe.Cdv6esyS.js} +1 -1
  19. package/library/chunks/image.BzmclWBR.js +150 -0
  20. package/library/chunks/{image.BC_hwk-b.js → image.SLqIVjqc.js} +1 -1
  21. package/library/chunks/{input.BRgVRr2i.js → input.CQNhMu4z.js} +1 -1
  22. package/library/chunks/{list-editor.CdMU7vNF.js → list-editor.BXY4UIAI.js} +9 -9
  23. package/library/chunks/{option.BH13eKSl.js → option.SCVixE2L.js} +1 -1
  24. package/library/chunks/{pagination.tSkuYrqk.js → pagination.BFE6Nk3_.js} +5 -5
  25. package/library/chunks/{tab-group.GA4X3LL2.js → tab-group.C-p2Dljr.js} +3 -3
  26. package/library/chunks/{table.C6YsaNOh.js → table.DuP4v5FN.js} +3581 -2656
  27. package/library/chunks/{tree.CbeHY8pn.js → tree.9PK8ifJd.js} +2 -2
  28. package/library/components/alert.js +2 -2
  29. package/library/components/asset-link-format.js +8 -8
  30. package/library/components/atoms.js +22 -22
  31. package/library/components/audio.js +2 -2
  32. package/library/components/border-input-group.js +2 -2
  33. package/library/components/breadcrumb.js +1 -1
  34. package/library/components/button.js +2 -2
  35. package/library/components/checkbox.js +18 -195
  36. package/library/components/color-picker.js +3 -3
  37. package/library/components/color-swatch-group.js +4 -4
  38. package/library/components/color-swatch.js +2 -2
  39. package/library/components/confirm-popover.js +4 -4
  40. package/library/components/copy-button.js +1 -1
  41. package/library/components/corner-position-input-group.js +3 -3
  42. package/library/components/cropper.js +1 -1
  43. package/library/components/date-calendar.js +10 -9
  44. package/library/components/details.js +1 -1
  45. package/library/components/dialog.js +3 -3
  46. package/library/components/diff.js +77 -51
  47. package/library/components/document-viewer.js +3 -3
  48. package/library/components/dot-pagination.js +2 -2
  49. package/library/components/drawer.js +2 -2
  50. package/library/components/dropdown.js +2 -2
  51. package/library/components/dynamic-select.js +4 -4
  52. package/library/components/e-chart.js +1 -1
  53. package/library/components/element-clamp.js +2 -2
  54. package/library/components/file-on-demand.js +10 -10
  55. package/library/components/folder-select.js +4 -4
  56. package/library/components/format-bytes.js +1 -1
  57. package/library/components/format-date.js +38 -23
  58. package/library/components/format-number.js +1 -1
  59. package/library/components/format-time.js +1 -1
  60. package/library/components/header.js +2 -2
  61. package/library/components/icon-button.js +2 -2
  62. package/library/components/iframe.js +2 -2
  63. package/library/components/image-comparer.js +1 -1
  64. package/library/components/image.js +2 -2
  65. package/library/components/input.js +2 -2
  66. package/library/components/line-clamp.js +1 -1
  67. package/library/components/list-editor.js +7 -7
  68. package/library/components/masonry.js +2 -2
  69. package/library/components/menu-item.js +2 -2
  70. package/library/components/menu.js +1 -1
  71. package/library/components/molecules.js +4 -4
  72. package/library/components/option.js +2 -2
  73. package/library/components/organisms.js +2 -2
  74. package/library/components/padding-input-group.js +1 -1
  75. package/library/components/pagination.js +6 -6
  76. package/library/components/popup.js +1 -1
  77. package/library/components/position-picker.js +1 -1
  78. package/library/components/progress-bar.js +1 -1
  79. package/library/components/progress-ring.js +1 -1
  80. package/library/components/range.js +1 -1
  81. package/library/components/rating.js +1 -1
  82. package/library/components/relative-time.js +1 -1
  83. package/library/components/select.js +2 -2
  84. package/library/components/shadow-input-group.js +1 -1
  85. package/library/components/share-option-list.js +1 -1
  86. package/library/components/sidebar.js +1 -1
  87. package/library/components/size-input-group.js +3 -3
  88. package/library/components/spinner.js +1 -1
  89. package/library/components/split-panel.js +1 -1
  90. package/library/components/tab-group.js +4 -4
  91. package/library/components/tab.js +2 -2
  92. package/library/components/table.js +16 -16
  93. package/library/components/tag.js +2 -2
  94. package/library/components/tooltip.js +1 -1
  95. package/library/components/tree-item.js +3 -3
  96. package/library/components/tree.js +2 -2
  97. package/library/components/typeface.js +2 -2
  98. package/library/components/types.js +38201 -38461
  99. package/library/components/video.js +2 -2
  100. package/library/package.json +1 -1
  101. package/library/packages/atoms/src/components/checkbox/checkbox.d.ts +3 -0
  102. package/library/packages/atoms/src/components/diff/utils/diff-worker-client.d.ts +2 -1
  103. package/library/packages/atoms/src/components/format-date/format-date.d.ts +8 -0
  104. package/library/packages/atoms/src/components/menu-item/menu-item.d.ts +2 -0
  105. package/library/packages/atoms/src/components/table/components/table-toolbar/table-dropdown-filter.d.ts +1 -1
  106. package/library/packages/atoms/src/components/table/components/table-toolbar/table-group-by-dropdown.d.ts +44 -0
  107. package/library/packages/atoms/src/components/table/components/table-toolbar/table-saved-search-dropdown.d.ts +1 -1
  108. package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +33 -1
  109. package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +39 -0
  110. package/library/packages/atoms/src/components/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +27 -0
  111. package/library/packages/atoms/src/components/table/{filter-controller.d.ts → controllers/filter-controller.d.ts} +24 -3
  112. package/library/packages/atoms/src/components/table/controllers/select-all-controller.d.ts +55 -0
  113. package/library/packages/atoms/src/components/table/table.d.ts +70 -1
  114. package/library/packages/events/src/cx-table-dropdown-filter-change.d.ts +1 -1
  115. package/library/packages/events/src/cx-table-export.d.ts +1 -1
  116. package/library/packages/events/src/cx-table-group-by-change.d.ts +8 -0
  117. package/library/packages/events/src/cx-table-select-all-change.d.ts +8 -0
  118. package/library/packages/events/src/events.d.ts +2 -0
  119. package/library/packages/hybrid/table-core/src/tabulator-tables/core/TabulatorFull.d.ts +1 -1
  120. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/avatar.d.ts +5 -0
  121. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/date.d.ts +12 -0
  122. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/diff.d.ts +2 -1
  123. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.d.ts +4 -0
  124. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/Group.d.ts +1 -0
  125. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/GroupRows/GroupRows.d.ts +7 -0
  126. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRow/extensions/formatters/rowSelection.d.ts +1 -1
  127. package/library/packages/molecules/src/faceted-filter/faceted-filter.d.ts +2 -0
  128. package/library/packages/types/src/faceted-filter.d.ts +11 -0
  129. package/library/packages/types/src/format-date.d.ts +12 -0
  130. package/library/packages/types/src/table.d.ts +40 -21
  131. package/library/packages/utils/src/custom-element/i18n-utils.d.ts +7 -0
  132. package/library/packages/utils/src/custom-element/i18n.d.ts +1 -0
  133. package/library/react-web-component.d.ts +278 -246
  134. package/library/utils.js +86 -85
  135. package/package.json +1 -1
  136. package/library/assets/diff.worker-ClilI1xm.js +0 -1
  137. package/library/chunks/calendar-grid.CXYoS6VA.js +0 -108
  138. package/library/chunks/image.9qwbjGNb.js +0 -150
@@ -0,0 +1,150 @@
1
+ import { r as g } from "./number.B4PQLJIg.js";
2
+ function m(e, t, i, o) {
3
+ const a = e / t, n = i / o;
4
+ let c = e, r = t;
5
+ return a > n ? c = Math.round(r * n) : r = Math.round(c / n), {
6
+ height: r,
7
+ width: c
8
+ };
9
+ }
10
+ function p(e, t, i, o, a) {
11
+ const n = new Image();
12
+ return n.src = e, n.crossOrigin = "anonymous", new Promise((c) => {
13
+ n.onload = () => {
14
+ const r = document.createElement("canvas");
15
+ if (t > o || i > a) {
16
+ const h = o / t, l = a / i, u = Math.max(h, l);
17
+ r.width = t * u, r.height = i * u;
18
+ } else
19
+ r.width = t, r.height = i;
20
+ const s = r.getContext("2d");
21
+ s ? (s.fillStyle = "white", s.fillRect(0, 0, r.width, r.height), s.drawImage(n, 0, 0, r.width, r.height), c({
22
+ height: r.height,
23
+ url: r.toDataURL("image/jpeg"),
24
+ width: r.width
25
+ })) : c({
26
+ height: i,
27
+ url: e,
28
+ width: t
29
+ });
30
+ }, n.onerror = () => {
31
+ c({
32
+ height: i,
33
+ url: e,
34
+ width: t
35
+ });
36
+ };
37
+ });
38
+ }
39
+ function R(e, t) {
40
+ const i = new Image();
41
+ return i.src = e.url, i.crossOrigin = "anonymous", new Promise((o) => {
42
+ i.onload = () => {
43
+ const a = document.createElement("canvas");
44
+ a.width = t.width, a.height = t.height;
45
+ const n = a.getContext("2d");
46
+ n ? (n.fillStyle = "white", n.fillRect(0, 0, a.width, a.height), n.drawImage(i, -t.x, -t.y, e.width, e.height), o(a.toDataURL("image/jpeg"))) : o(e.url);
47
+ }, i.onerror = () => {
48
+ o(e.url);
49
+ };
50
+ });
51
+ }
52
+ function S(e, t) {
53
+ const i = new Image();
54
+ return i.src = e.url, i.crossOrigin = "anonymous", new Promise((o) => {
55
+ i.onload = () => {
56
+ const { height: a, width: n } = g(e.width, e.height, t), c = document.createElement("canvas");
57
+ c.width = n, c.height = a;
58
+ const r = c.getContext("2d");
59
+ r ? (r.fillStyle = "white", r.fillRect(0, 0, n, a), r.translate(n / 2, a / 2), r.rotate(t * Math.PI / 180), r.drawImage(
60
+ i,
61
+ -e.width / 2,
62
+ -e.height / 2,
63
+ e.width,
64
+ e.height
65
+ ), r.rotate(-(t * Math.PI) / 180), r.translate(-n / 2, -a / 2), o(c.toDataURL("image/jpeg"))) : o(e.url);
66
+ }, i.onerror = () => {
67
+ o(e.url);
68
+ };
69
+ });
70
+ }
71
+ function y(e) {
72
+ const t = e.getBoundingClientRect(), i = t.width / t.height, o = e.naturalWidth / e.naturalHeight;
73
+ let a, n;
74
+ return o > i ? (a = t.width, n = t.width / o) : (n = t.height, a = t.height * o), { height: n, width: a };
75
+ }
76
+ async function d(e) {
77
+ const t = new Image();
78
+ return t.src = e, await t.decode(), [t.naturalWidth, t.naturalHeight];
79
+ }
80
+ function b(e) {
81
+ const t = e.trim();
82
+ if (!t)
83
+ return !1;
84
+ if (t.startsWith("data:image/") || t.startsWith("blob:"))
85
+ return !0;
86
+ try {
87
+ const i = new URL(t, globalThis.location.href);
88
+ return ["blob:", "data:", "http:", "https:"].includes(i.protocol);
89
+ } catch {
90
+ return !1;
91
+ }
92
+ }
93
+ async function I(e) {
94
+ try {
95
+ const t = await fetch(e), i = t.headers.get("Content-Type");
96
+ if (!i)
97
+ return null;
98
+ const o = i.split("/")[1], a = await t.blob();
99
+ if (!a)
100
+ return null;
101
+ const n = URL.createObjectURL(a), [c, r] = await d(n);
102
+ return {
103
+ fileExtension: o,
104
+ height: r,
105
+ src: n,
106
+ width: c
107
+ };
108
+ } catch {
109
+ return null;
110
+ }
111
+ }
112
+ function w(e = /* @__PURE__ */ new Date()) {
113
+ const i = [
114
+ "Jan",
115
+ "Feb",
116
+ "Mar",
117
+ "Apr",
118
+ "May",
119
+ "Jun",
120
+ "Jul",
121
+ "Aug",
122
+ "Sep",
123
+ "Oct",
124
+ "Nov",
125
+ "Dec"
126
+ ][e.getMonth()], o = e.getDate(), a = e.getFullYear();
127
+ let n = e.getHours();
128
+ const r = n < 12 ? "AM" : "PM";
129
+ n = n % 12, n = n === 0 ? 12 : n;
130
+ const s = e.getMinutes().toString().padStart(2, "0"), h = e.getSeconds().toString().padStart(2, "0"), l = e.getMilliseconds().toString().padStart(3, "0");
131
+ return `Screenshot - ${i} ${o} ${a} ${n}-${s}-${h}-${l} ${r}`;
132
+ }
133
+ function M(e) {
134
+ const t = e.split(".");
135
+ if (t.length <= 1 || e.startsWith(".") && t.length === 2)
136
+ return e.slice(0, 256);
137
+ const i = t.slice(0, -1).join(".").trim();
138
+ return i.length === 0 || i === "image" ? w() : i.slice(0, 256 - t[1].length);
139
+ }
140
+ export {
141
+ S as a,
142
+ R as b,
143
+ m as c,
144
+ d,
145
+ I as e,
146
+ M as f,
147
+ y as g,
148
+ b as i,
149
+ p as r
150
+ };
@@ -3,7 +3,7 @@ import { c as ke } from "./component.styles.CRO4Odto.js";
3
3
  import { a as Le } from "./index.Cpamj0jB.js";
4
4
  import { c as Re } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as Se } from "./debounce.DaHuiSGU.js";
6
- import { L as $e } from "./i18n.NAH4U8Lw.js";
6
+ import { L as $e } from "./i18n.DoMIwXr2.js";
7
7
  import { w as Z } from "./watch.CThbualB.js";
8
8
  import { i as re, E as V, x as E } from "./lit-element.jLBm65_O.js";
9
9
  import { n as y } from "./lib-cortex-element.CVMmyPMC.js";
@@ -4,7 +4,7 @@ import { f as ot } from "./form-control.styles.CaGWmeAS.js";
4
4
  import { c as lt } from "./custom-element.L4WJXn1j.js";
5
5
  import { d as ht } from "./default-value.COZopaet.js";
6
6
  import { F as pt } from "./form.3af0bYrm.js";
7
- import { L as ct } from "./i18n.NAH4U8Lw.js";
7
+ import { L as ct } from "./i18n.DoMIwXr2.js";
8
8
  import { H as dt } from "./slot.j5oheLJC.js";
9
9
  import { w as V } from "./watch.CThbualB.js";
10
10
  import { i as ft, x as E } from "./lit-element.jLBm65_O.js";
@@ -1,22 +1,22 @@
1
- import { C as k } from "./button.DcInI7IV.js";
2
- import { C as G, D as R } from "./dialog.BlKHLwFx.js";
1
+ import { C as k } from "./button.DYoFn504.js";
2
+ import { C as G, D as R } from "./dialog.BwBD_hJi.js";
3
3
  import B from "../components/grid.js";
4
4
  import F from "../components/grid-item.js";
5
- import { C as E } from "./input.BRgVRr2i.js";
5
+ import { C as E } from "./input.CQNhMu4z.js";
6
6
  import P from "../components/line-clamp.js";
7
- import { C as K } from "./option.BH13eKSl.js";
7
+ import { C as K } from "./option.SCVixE2L.js";
8
8
  import U from "../components/radio.js";
9
9
  import H from "../components/radio-group.js";
10
10
  import V from "../components/select.js";
11
11
  import T from "../components/space.js";
12
- import { C as W, H as J } from "./table.C6YsaNOh.js";
12
+ import { C as W, H as J } from "./table.DuP4v5FN.js";
13
13
  import { C as L } from "./typography.DJC_UXgs.js";
14
14
  import { n as r, C as D } from "./lib-cortex-element.CVMmyPMC.js";
15
15
  import X from "../components/dynamic-select.js";
16
16
  import { c as M } from "./component.styles.CRO4Odto.js";
17
17
  import { c as z } from "./custom-element.L4WJXn1j.js";
18
18
  import { d as Y } from "./debounce.DaHuiSGU.js";
19
- import { L as O } from "./i18n.NAH4U8Lw.js";
19
+ import { L as O } from "./i18n.DoMIwXr2.js";
20
20
  import { w as v } from "./watch.CThbualB.js";
21
21
  import { a as Z } from "./_commonjsHelpers.DQNKXVTB.js";
22
22
  import { i as j, x as l } from "./lit-element.jLBm65_O.js";
@@ -28,9 +28,9 @@ import { o as te } from "./map.D8heArFD.js";
28
28
  import { c as x } from "./repeat.DbF2p5ae.js";
29
29
  import { n as N } from "./when.Dr1es41R.js";
30
30
  import { t as ae } from "./toString.CAY8lys2.js";
31
- import { C as ie } from "./icon-button.COTH_z-J.js";
32
- import { C as ne } from "./image.BC_hwk-b.js";
33
- import { a as se, F as I, b as w } from "./asset.D_VITxRH.js";
31
+ import { C as ie } from "./icon-button.B-Jf9W3v.js";
32
+ import { C as ne } from "./image.SLqIVjqc.js";
33
+ import { a as se, F as I, b as w } from "./asset.CcxcYY9d.js";
34
34
  import { a as re } from "./index.Cpamj0jB.js";
35
35
  import { A as g } from "./content-builder.BGzxZUgi.js";
36
36
  import { b as oe, t as $ } from "./string.CbnVBzsd.js";
@@ -1,7 +1,7 @@
1
1
  import { n as s, C as x } from "./lib-cortex-element.CVMmyPMC.js";
2
2
  import { c as m } from "./component.styles.CRO4Odto.js";
3
3
  import { c as v } from "./custom-element.L4WJXn1j.js";
4
- import { L as g } from "./i18n.NAH4U8Lw.js";
4
+ import { L as g } from "./i18n.DoMIwXr2.js";
5
5
  import { w as d } from "./watch.CThbualB.js";
6
6
  import { i as _, x as h } from "./lit-element.jLBm65_O.js";
7
7
  import { r as f } from "./state.CSDxrqLd.js";
@@ -1,8 +1,8 @@
1
1
  import b from "../components/space.js";
2
2
  import { n as o, C as _ } from "./lib-cortex-element.CVMmyPMC.js";
3
- import { C as P, I as y } from "./icon-button.COTH_z-J.js";
3
+ import { C as P, I as y } from "./icon-button.B-Jf9W3v.js";
4
4
  import { c as f } from "./custom-element.L4WJXn1j.js";
5
- import { L as z } from "./i18n.NAH4U8Lw.js";
5
+ import { L as z } from "./i18n.DoMIwXr2.js";
6
6
  import { c as m } from "./math.DuKzLacZ.js";
7
7
  import { w as d } from "./watch.CThbualB.js";
8
8
  import { i as C, x as s } from "./lit-element.jLBm65_O.js";
@@ -10,9 +10,9 @@ import { r as S } from "./state.CSDxrqLd.js";
10
10
  import { e as $ } from "./class-map.BiVq-cVR.js";
11
11
  import { c as x } from "./repeat.DbF2p5ae.js";
12
12
  import { n as g } from "./when.Dr1es41R.js";
13
- import { C as w } from "./button.DcInI7IV.js";
14
- import { C as v } from "./input.BRgVRr2i.js";
15
- import { C as I } from "./option.BH13eKSl.js";
13
+ import { C as w } from "./button.DYoFn504.js";
14
+ import { C as v } from "./input.CQNhMu4z.js";
15
+ import { C as I } from "./option.SCVixE2L.js";
16
16
  import B from "../components/select.js";
17
17
  import N from "../components/tooltip.js";
18
18
  import { C as k } from "./typography.DJC_UXgs.js";
@@ -2,7 +2,7 @@ import In from "../components/resize-observer.js";
2
2
  import { n as wt, C as Fn } from "./lib-cortex-element.CVMmyPMC.js";
3
3
  import { c as Ln } from "./component.styles.CRO4Odto.js";
4
4
  import { c as $n } from "./custom-element.L4WJXn1j.js";
5
- import { L as Nn } from "./i18n.NAH4U8Lw.js";
5
+ import { L as Nn } from "./i18n.DoMIwXr2.js";
6
6
  import { s as Zi } from "./scroll.xtO5yojm.js";
7
7
  import { w as ft } from "./watch.CThbualB.js";
8
8
  import { i as Bn } from "./dom.BXeuEG1b.js";
@@ -17,9 +17,9 @@ import { i as Ji } from "./guard.D4axKaMo.js";
17
17
  import { o as tr } from "./map.D8heArFD.js";
18
18
  import { o as Ue } from "./style-map.llVFPd__.js";
19
19
  import { n as Pe } from "./when.Dr1es41R.js";
20
- import { C as Yn } from "./button.DcInI7IV.js";
20
+ import { C as Yn } from "./button.DYoFn504.js";
21
21
  import Xn from "../components/dropdown.js";
22
- import { C as qn } from "./icon-button.COTH_z-J.js";
22
+ import { C as qn } from "./icon-button.B-Jf9W3v.js";
23
23
  import Gn from "../components/menu.js";
24
24
  import Kn from "../components/menu-item.js";
25
25
  import jn from "../components/tab.js";