@orangelogic/design-system 2.117.0 → 2.119.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.
- package/library/assets/diff.worker-ClilI1xm.js +1 -0
- package/library/chunks/{animation.8MjXJybe.js → animation.hpY88RxG.js} +106 -100
- package/library/chunks/{asset.CIWxY-Aw.js → asset.D_MQwP1C.js} +4 -4
- package/library/chunks/browser.BHOCIF_A.js +84 -0
- package/library/chunks/{button.DwJEeW2t.js → button.bufNNyTc.js} +1 -1
- package/library/chunks/{color-swatch-group.BvLicLI4.js → color-swatch-group.CeazdbIe.js} +6 -6
- package/library/chunks/{color-swatch.DVzEaNeL.js → color-swatch.LEvHo5G_.js} +2 -2
- package/library/chunks/{confirm-popover.BifwpSuf.js → confirm-popover.BLQFU6Hs.js} +3 -3
- package/library/chunks/{content-builder.OsUmm8Wu.js → content-builder.BGzxZUgi.js} +1 -1
- package/library/chunks/debounce.DaHuiSGU.js +15 -0
- package/library/chunks/{dialog.BYCWepBc.js → dialog.DdsJ_WqU.js} +2 -2
- package/library/chunks/{document-viewer.CKCX8ueu.js → document-viewer.B5VtBEEP.js} +7 -7
- package/library/chunks/{dot-pagination.C4l5vKor.js → dot-pagination.Bny2T6DA.js} +1 -1
- package/library/chunks/{endpoints.D4h8hp1m.js → endpoints.6E17hFiK.js} +385 -385
- package/library/chunks/{file-on-demand.AwMj4AfO.js → file-on-demand.DDuWnvmy.js} +10 -10
- package/library/chunks/{folder-select.CrWjwQcw.js → folder-select.D1jO1hB_.js} +295 -203
- package/library/chunks/{header.Cf9ujCpg.js → header.CfiA4TRu.js} +1 -1
- package/library/chunks/{i18n.CH-wak_P.js → i18n.DDj5y9px.js} +106 -11
- package/library/chunks/{icon-button.CQiBjznj.js → icon-button.DOrACmes.js} +1 -1
- package/library/chunks/{iframe.BQPVygBJ.js → iframe.qaVD1n1m.js} +1 -1
- package/library/chunks/{image.cT-FziNS.js → image.BugewF1g.js} +129 -146
- package/library/chunks/{input.CH4lKxPM.js → input.BYj6YXcM.js} +1 -1
- package/library/chunks/keyed.C0rkKrxH.js +22 -0
- package/library/chunks/{list-editor.BfpDIsU5.js → list-editor.D5szxqSM.js} +11 -11
- package/library/chunks/math.DuKzLacZ.js +26 -0
- package/library/chunks/{option.Bvh35v8S.js → option.CnxdM30G.js} +1 -1
- package/library/chunks/{pagination.zQ2FFtxB.js → pagination.Dxig0LoI.js} +6 -6
- package/library/chunks/{responsive.C8NCkfCG.js → responsive.Cf65FCWd.js} +1 -1
- package/library/chunks/{tab-group.DvMX02hY.js → tab-group.CGg9lPLP.js} +3 -3
- package/library/chunks/{table.GCs54Y2t.js → table.BkdcDorc.js} +1471 -1400
- package/library/chunks/{tree.Btf2Q4YZ.js → tree.yYbWIRnc.js} +3 -3
- package/library/components/alert.js +2 -2
- package/library/components/animation.js +1 -1
- package/library/components/asset-link-format.js +8 -8
- package/library/components/atoms.js +144 -142
- package/library/components/audio.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +2 -2
- package/library/components/color-picker.js +5 -5
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/diff.d.ts +3 -0
- package/library/components/diff.js +104 -0
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +2 -2
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +282 -211
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +11 -11
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +5 -4
- package/library/components/input.js +2 -2
- package/library/components/line-clamp.js +6 -5
- package/library/components/list-editor.js +8 -8
- package/library/components/masonry.js +2 -2
- package/library/components/menu-item.js +1 -1
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +4 -4
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +7 -7
- package/library/components/popup.js +76 -75
- package/library/components/position-picker.js +1 -1
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/range.js +3 -3
- package/library/components/rating.js +2 -2
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +33 -32
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +1 -1
- package/library/components/size-input-group.js +3 -3
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- package/library/components/tab-group.js +4 -4
- package/library/components/tab.js +2 -2
- package/library/components/table.js +62 -60
- package/library/components/tag.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +35403 -32971
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/animations/index.d.ts +2 -1
- package/library/packages/atoms/src/animations/rotating/rotate.d.ts +4 -0
- package/library/packages/atoms/src/components/diff/diff.d.ts +46 -0
- package/library/packages/atoms/src/components/diff/diff.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/diff/utils/diff-worker-client.d.ts +10 -0
- package/library/packages/atoms/src/components/select/select.d.ts +9 -9
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -1
- package/library/packages/atoms/src/components/table/components/index.d.ts +1 -0
- package/library/packages/atoms/src/components/table/components/table-footer/table-footer.d.ts +25 -0
- package/library/packages/atoms/src/components/table/components/table-footer/table-footer.styles.d.ts +2 -0
- package/library/packages/atoms/src/components/table/components/table-toolbar/table-toolbar.d.ts +7 -1
- package/library/packages/atoms/src/components/table/table.d.ts +14 -3
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-capacity-change.d.ts +20 -0
- package/library/packages/events/src/cx-capacity-week-bar.d.ts +26 -0
- package/library/packages/events/src/cx-folder-select-children-loaded.d.ts +10 -0
- package/library/packages/events/src/cx-list-editor-change.d.ts +1 -1
- package/library/packages/events/src/cx-sb-dam-view-config-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +4 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters/diff.d.ts +5 -0
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Format/defaults/formatters.d.ts +2 -0
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +19 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +11 -0
- package/library/packages/organisms/src/capacity-planner/capacity-core.d.ts +81 -0
- package/library/packages/organisms/src/capacity-planner/capacity-planner.d.ts +194 -0
- package/library/packages/organisms/src/capacity-planner/capacity-planner.styles.d.ts +2 -0
- package/library/packages/organisms/src/capacity-planner/components/capacity-toolbar/capacity-toolbar.d.ts +35 -0
- package/library/packages/organisms/src/capacity-planner/components/capacity-toolbar/capacity-toolbar.styles.d.ts +2 -0
- package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.d.ts +101 -0
- package/library/packages/organisms/src/capacity-planner/components/capacity-week-bar/capacity-week-bar.styles.d.ts +2 -0
- package/library/packages/organisms/src/chatbot/chatbot.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +66 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +110 -0
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/plugins/dam-view.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +7 -3
- package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +176 -0
- package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.styles.d.ts +2 -0
- package/library/packages/organisms/src/index.d.ts +2 -0
- package/library/packages/services/src/api/cms5/cms5.d.ts +17 -1
- package/library/packages/services/src/api/endpoints.d.ts +13 -1
- package/library/packages/services/src/api/metadata/index.d.ts +1 -0
- package/library/packages/services/src/api/metadata/metadata.d.ts +3 -1
- package/library/packages/services/src/api/metadata/metadata.types.d.ts +53 -0
- package/library/packages/styles/src/table-select.styles.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +13 -5
- package/library/packages/types/src/dam-view.d.ts +48 -0
- package/library/packages/types/src/table.d.ts +17 -1
- package/library/packages/utils/src/custom-element/i18n.d.ts +95 -0
- package/library/packages/utils/src/custom-element/math.d.ts +8 -0
- package/library/packages/utils/src/date/index.d.ts +1 -0
- package/library/packages/utils/src/date/iso-week-number.d.ts +9 -0
- package/library/react-web-component.d.ts +545 -438
- package/library/utils.js +267 -253
- package/package.json +1 -1
- package/library/chunks/debounce.CIEhztrj.js +0 -97
- package/library/chunks/math.DqTA6ya4.js +0 -7
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function u(t, d, a) {
|
|
2
|
+
const r = (f) => Object.is(f, -0) ? 0 : f;
|
|
3
|
+
return t < d ? r(d) : t > a ? r(a) : r(t);
|
|
4
|
+
}
|
|
5
|
+
function c(t, d) {
|
|
6
|
+
const a = t.length, r = t.map((e) => Math.floor(e));
|
|
7
|
+
if (a === 0)
|
|
8
|
+
return r;
|
|
9
|
+
let i = Math.round(d) - r.reduce((e, n) => e + n, 0);
|
|
10
|
+
if (i === 0)
|
|
11
|
+
return r;
|
|
12
|
+
const o = t.map((e, n) => ({ index: n, remainder: e - Math.floor(e), value: e })).sort(
|
|
13
|
+
(e, n) => n.remainder - e.remainder || n.value - e.value || e.index - n.index
|
|
14
|
+
);
|
|
15
|
+
if (i > 0)
|
|
16
|
+
for (let e = 0; e < o.length && i > 0; e++)
|
|
17
|
+
r[o[e].index] += 1, i -= 1;
|
|
18
|
+
else
|
|
19
|
+
for (let e = o.length - 1; e >= 0 && i < 0; e--)
|
|
20
|
+
r[o[e].index] > 0 && (r[o[e].index] -= 1, i += 1);
|
|
21
|
+
return r;
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
u as c,
|
|
25
|
+
c as q
|
|
26
|
+
};
|
|
@@ -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.
|
|
4
|
+
import { L as g } from "./i18n.DDj5y9px.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,18 +1,18 @@
|
|
|
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.
|
|
3
|
+
import { C as P, I as y } from "./icon-button.DOrACmes.js";
|
|
4
4
|
import { c as f } from "./custom-element.L4WJXn1j.js";
|
|
5
|
-
import { L as z } from "./i18n.
|
|
6
|
-
import { c as m } from "./math.
|
|
5
|
+
import { L as z } from "./i18n.DDj5y9px.js";
|
|
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";
|
|
9
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.
|
|
14
|
-
import { C as v } from "./input.
|
|
15
|
-
import { C as I } from "./option.
|
|
13
|
+
import { C as w } from "./button.bufNNyTc.js";
|
|
14
|
+
import { C as v } from "./input.BYj6YXcM.js";
|
|
15
|
+
import { C as I } from "./option.CnxdM30G.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.
|
|
5
|
+
import { L as Nn } from "./i18n.DDj5y9px.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.0RpWet6y.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.
|
|
20
|
+
import { C as Yn } from "./button.bufNNyTc.js";
|
|
21
21
|
import Xn from "../components/dropdown.js";
|
|
22
|
-
import { C as qn } from "./icon-button.
|
|
22
|
+
import { C as qn } from "./icon-button.DOrACmes.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";
|