@orangelogic/design-system 3.20.0 → 3.22.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/chunks/{_baseXor.DixEm6JQ.js → _baseXor.BCxbgizO.js} +2 -2
- package/library/chunks/{asset-link-format.BnE0FbUH.js → asset-link-format.B5E00Je6.js} +656 -629
- package/library/chunks/{button.D1YIxtv-.js → button.cbDkxJHn.js} +3 -3
- package/library/chunks/button.styles.D3GdfF7I.js +5 -0
- package/library/chunks/{color-swatch-group.GEu5gVrg.js → color-swatch-group.BxmlqPZe.js} +3354 -2925
- package/library/chunks/color.CIHdfM_a.js +187 -0
- package/library/chunks/{confirm-popover.CJXyEa5A.js → confirm-popover.Dvgoz-oA.js} +4 -4
- package/library/chunks/content-builder.CBBdfVOl.js +55 -0
- package/library/chunks/{dialog.BbQ4Du0M.js → dialog.BvSMV36r.js} +2 -2
- package/library/chunks/{document-viewer.Bkf3JbWk.js → document-viewer.Dm9pcb0o.js} +11 -10
- package/library/chunks/{dom.DL-cNKsj.js → dom.D0lSUoEI.js} +1 -1
- package/library/chunks/{dot-pagination.CJRAtM51.js → dot-pagination.CukHxNBk.js} +1 -1
- package/library/chunks/{folder-select.D8_6pC8Y.js → folder-select.BQqwlVaD.js} +5 -5
- package/library/chunks/form-control.styles.CHC7Q08Q.js +5 -0
- package/library/chunks/{form.DN2v7-DH.js → form.LpappO1d.js} +1 -1
- package/library/chunks/{header.BioJzPlg.js → header.2RH_nPmz.js} +132 -90
- package/library/chunks/{i18n.rtxrs1c1.js → i18n.BSPmBQ73.js} +94 -12
- package/library/chunks/{icon-button.CbUddcgI.js → icon-button.DV5Fks8j.js} +1 -1
- package/library/chunks/{iframe.y7iCAVZP.js → iframe.ddX2kGu3.js} +1 -1
- package/library/chunks/{image.A2hE1WoV.js → image.BM7bPTub.js} +407 -276
- package/library/chunks/index.SMjV3S2z.js +1130 -0
- package/library/chunks/{input.D1FFprPl.js → input.7pumTpdu.js} +3 -3
- package/library/chunks/{markdown.Dd_GFJK8.js → markdown.LHSzm035.js} +3 -3
- package/library/chunks/{menu-item.0TbnDEDp.js → menu-item.DsJZ7i0J.js} +1 -1
- package/library/chunks/{option.CyorNG0S.js → option.C5f7yDqN.js} +1 -1
- package/library/chunks/{pagination.D0BeaEIi.js → pagination.CMwpX60h.js} +36 -32
- package/library/chunks/{position-picker.DjnhxIKF.js → position-picker.qkbJlboF.js} +12 -0
- package/library/chunks/{resizable-component.styles.CAfXABBc.js → resizable-component.styles.kMFDlGgv.js} +2 -2
- package/library/chunks/responsive.BmBJSzC4.js +17 -0
- package/library/chunks/{string.Demn8Xmk.js → string.CfI2ejyR.js} +3 -3
- package/library/chunks/{tab-group.C98CWzEH.js → tab-group.D_QAkP8s.js} +312 -310
- package/library/chunks/toast.D3AW3RWv.js +94 -0
- package/library/chunks/transformation.BwQ_H-4q.js +351 -0
- package/library/chunks/{tree.DB-QLic1.js → tree.BHrf5WIc.js} +1 -1
- package/library/chunks/{types.DrJgdbwu.js → types.BDM-NtAR.js} +58295 -35623
- package/library/chunks/typography.BLYdTF0n.js +102 -0
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +6 -6
- package/library/components/atoms.js +161 -159
- package/library/components/audio.js +4 -4
- package/library/components/bicolor-picker.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/box.d.ts +3 -0
- package/library/components/box.js +22 -0
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +4 -4
- package/library/components/card.js +7 -7
- package/library/components/checkbox.js +2 -2
- package/library/components/color-picker.js +36 -32
- package/library/components/color-swatch-group.js +8 -7
- package/library/components/color-swatch.js +246 -22
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +19 -19
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +5 -5
- 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 +95 -92
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +12 -12
- 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 +6 -3
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +5 -4
- package/library/components/input-group.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +4 -4
- package/library/components/masonry.js +70 -56
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +2 -2
- package/library/components/molecules.js +4 -4
- package/library/components/mutation-observer.js +26 -24
- 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 +1 -1
- package/library/components/position-picker.js +2 -2
- package/library/components/progress-bar.js +1 -1
- package/library/components/progress-ring.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +2 -2
- package/library/components/range.js +3 -3
- package/library/components/rating.js +1 -1
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +5 -5
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +3 -3
- 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 +1 -1
- package/library/components/switch.js +2 -2
- package/library/components/tab-group.js +6 -6
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +16 -16
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +2 -2
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +2 -2
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +3 -3
- package/library/components/types.js +496 -487
- package/library/components/typography.js +3 -2
- package/library/components/video.js +5277 -5209
- package/library/css/ol-base.css +1 -0
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/box/box.d.ts +26 -0
- package/library/packages/atoms/src/components/box/box.styles.d.ts +7 -0
- package/library/packages/atoms/src/components/button/button.d.ts +4 -0
- package/library/packages/atoms/src/components/card/card.d.ts +1 -0
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +11 -0
- package/library/packages/atoms/src/components/copy-button/copy-button.d.ts +1 -0
- package/library/packages/atoms/src/components/details/details.d.ts +6 -1
- package/library/packages/atoms/src/components/header/header.d.ts +38 -2
- package/library/packages/atoms/src/components/image/image.d.ts +30 -0
- package/library/packages/atoms/src/components/mutation-observer/mutation-observer.d.ts +1 -1
- package/library/packages/atoms/src/components/radio-card/radio-card.d.ts +1 -0
- package/library/packages/atoms/src/components/tab/tab.d.ts +17 -0
- package/library/packages/atoms/src/components/typography/typography.d.ts +31 -0
- package/library/packages/atoms/src/components/video/video.d.ts +24 -0
- package/library/packages/atoms/src/index.d.ts +1 -0
- package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
- package/library/packages/events/src/cx-color-swatch-picker-columns-change.d.ts +15 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/components/table-toolbar/table-dropdown-filter.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +45 -5
- package/library/packages/molecules/src/color-swatch/color-swatch.d.ts +35 -1
- package/library/packages/molecules/src/data-tab-group/data-tab-group.d.ts +30 -1
- package/library/packages/molecules/src/details-group/details-group.d.ts +105 -3
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
- package/library/packages/molecules/src/font-picker/font-picker.d.ts +3 -0
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
- package/library/packages/molecules/src/icon-picker/icon-picker.d.ts +5 -6
- package/library/packages/molecules/src/index.d.ts +0 -1
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +6 -0
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +5 -1
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +37 -45
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +210 -10
- package/library/packages/organisms/src/content-builder/blocks/font-kit-advanced/font-kit-advanced.utils.d.ts +85 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +32 -9
- package/library/packages/organisms/src/content-builder/components/block-picker/block-picker.d.ts +24 -8
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +70 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -22
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/configs/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +11 -1
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +19 -1
- package/library/packages/organisms/src/content-builder/configs/column-group.d.ts +11 -2
- package/library/packages/organisms/src/content-builder/configs/column.d.ts +13 -3
- package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/divider.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/document-viewer.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/font-kit-advanced.d.ts +19 -0
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +15 -1
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +3 -1
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +4 -0
- package/library/packages/organisms/src/content-builder/configs/index.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/search-box.d.ts +5 -1
- package/library/packages/organisms/src/content-builder/configs/tab-group.d.ts +7 -4
- package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/video.d.ts +3 -0
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +168 -13
- package/library/packages/organisms/src/content-builder/content-builder-config.d.ts +60 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +27 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +122 -2
- package/library/packages/organisms/src/content-builder/content-builder.sections.utils.d.ts +78 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +33 -2
- package/library/packages/organisms/src/content-builder/plugins/font-kit-advanced.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/plugins/gallery.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/plugins/header.d.ts +7 -1
- package/library/packages/organisms/src/content-builder/plugins/index.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/components/rte-bubble-menu/rte-bubble-menu.d.ts +21 -1
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/extensions/index.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/plugins/rich-text-editor/rte-configs.d.ts +14 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/section-fragment-component.d.ts +22 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/section-host-mounting.d.ts +15 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/sections-canvas-patches.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/plugins/sections/sections-plugin.d.ts +7 -0
- package/library/packages/organisms/src/content-builder/plugins/toolbar.d.ts +10 -1
- package/library/packages/organisms/src/content-builder/plugins/utils/block-width.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +11 -5
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +1 -0
- package/library/packages/organisms/src/form/control-renderer/control-renderer.d.ts +176 -0
- package/library/packages/organisms/src/form/control-renderer/control-renderer.styles.d.ts +9 -0
- package/library/packages/organisms/src/list-editor/list-editor.d.ts +181 -6
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
- package/library/packages/tools/src/tiptap/extensions/metafield/index.d.ts +12 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
- package/library/packages/types/src/asset-link-format.d.ts +0 -1
- package/library/packages/types/src/button.d.ts +1 -1
- package/library/packages/types/src/color-swatch-group.d.ts +56 -0
- package/library/packages/types/src/color-swatch.d.ts +22 -0
- package/library/packages/types/src/column.d.ts +13 -0
- package/library/packages/types/src/content-builder.d.ts +73 -4
- package/library/packages/types/src/details-group.d.ts +80 -0
- package/library/packages/types/src/font-kit-advanced.d.ts +28 -0
- package/library/packages/types/src/font-kit.d.ts +19 -0
- package/library/packages/types/src/font-picker.d.ts +2 -0
- package/library/packages/types/src/gallery-item.d.ts +3 -1
- package/library/packages/types/src/gallery.d.ts +2 -1
- package/library/packages/types/src/index.d.ts +1 -0
- package/library/packages/types/src/masonry.d.ts +1 -0
- package/library/packages/types/src/position-picker.d.ts +6 -0
- package/library/packages/types/src/sb-button.d.ts +7 -0
- package/library/packages/types/src/search-box.d.ts +4 -0
- package/library/packages/utils/src/color/color.d.ts +27 -3
- package/library/packages/utils/src/custom-element/i18n.d.ts +88 -2
- package/library/packages/utils/src/font/font.d.ts +12 -0
- package/library/packages/utils/src/transformation/transformation.d.ts +11 -3
- package/library/react-web-component.d.ts +514 -156
- package/library/utils.js +417 -397
- package/package.json +1 -1
- package/library/chunks/button.styles.BWgHrfLD.js +0 -5
- package/library/chunks/color-swatch.DdsUysbF.js +0 -223
- package/library/chunks/color.LzSGBy7o.js +0 -164
- package/library/chunks/form-control.styles.CaGWmeAS.js +0 -5
- package/library/chunks/index.Ct-dh3Y5.js +0 -20122
- package/library/chunks/toast.CGIDPKV8.js +0 -109
- package/library/chunks/transformation.OaRYixzE.js +0 -385
- package/library/chunks/typography.T72DuoCa.js +0 -52
- package/library/packages/molecules/src/search-box/search-box.d.ts +0 -114
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +0 -4
- /package/library/packages/{molecules/src/search-box/search-box.styles.d.ts → organisms/src/content-builder-viewer/content-builder-viewer.styles.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { n as d, C as rt } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as ut } from "./component.styles.CAS3c9pM.js";
|
|
3
|
-
import { f as ot } from "./form-control.styles.
|
|
3
|
+
import { f as ot } from "./form-control.styles.CHC7Q08Q.js";
|
|
4
4
|
import { c as lt } from "./custom-element.L4WJXn1j.js";
|
|
5
5
|
import { d as ht } from "./default-value.COZopaet.js";
|
|
6
|
-
import { F as pt } from "./form.
|
|
7
|
-
import { L as ct } from "./i18n.
|
|
6
|
+
import { F as pt } from "./form.LpappO1d.js";
|
|
7
|
+
import { L as ct } from "./i18n.BSPmBQ73.js";
|
|
8
8
|
import { H as dt } from "./slot.j5oheLJC.js";
|
|
9
9
|
import { w as V } from "./watch.DJF5K-8U.js";
|
|
10
10
|
import { i as ft, x as E } from "./lit-element.jLBm65_O.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as jn, I as Yn } from "./icon-button.
|
|
1
|
+
import { C as jn, I as Yn } from "./icon-button.DV5Fks8j.js";
|
|
2
2
|
import { C as Un, n as me } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import { c as Gn } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { L as Hn } from "./i18n.
|
|
4
|
+
import { L as Hn } from "./i18n.BSPmBQ73.js";
|
|
5
5
|
import { w as Ne } from "./watch.DJF5K-8U.js";
|
|
6
|
-
import { s as Kn } from "./string.
|
|
6
|
+
import { s as Kn } from "./string.CfI2ejyR.js";
|
|
7
7
|
import { i as mt, x as Wn } from "./lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as Zn } from "./state.CSDxrqLd.js";
|
|
9
9
|
import { o as Vn } from "./unsafe-html.Dff7-rCx.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as r, C as L } from "./lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as M } from "./component.styles.CAS3c9pM.js";
|
|
3
3
|
import { c as E } from "./custom-element.L4WJXn1j.js";
|
|
4
|
-
import { d as k, L as P } from "./i18n.
|
|
4
|
+
import { d as k, L as P } from "./i18n.BSPmBQ73.js";
|
|
5
5
|
import { H as z, g as R } from "./slot.j5oheLJC.js";
|
|
6
6
|
import { w as b } from "./watch.DJF5K-8U.js";
|
|
7
7
|
import { i as D, x as h, E as S } from "./lit-element.jLBm65_O.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.CAS3c9pM.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.BSPmBQ73.js";
|
|
5
5
|
import { w as d } from "./watch.DJF5K-8U.js";
|
|
6
6
|
import { i as b, x as h } from "./lit-element.jLBm65_O.js";
|
|
7
7
|
import { r as f } from "./state.CSDxrqLd.js";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d 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
|
|
4
|
-
import { c as
|
|
5
|
-
import { L as
|
|
3
|
+
import { C as P, I as z } from "./icon-button.DV5Fks8j.js";
|
|
4
|
+
import { c as y } from "./custom-element.L4WJXn1j.js";
|
|
5
|
+
import { L as f } from "./i18n.BSPmBQ73.js";
|
|
6
6
|
import { c as m } from "./math.DuKzLacZ.js";
|
|
7
|
-
import { w as
|
|
7
|
+
import { w as b } from "./watch.DJF5K-8U.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.CFjcER6_.js";
|
|
12
|
-
import { n as
|
|
13
|
-
import { C as w } from "./button.
|
|
14
|
-
import { C as v } from "./input.
|
|
15
|
-
import { C as I } from "./option.
|
|
12
|
+
import { n as c } from "./when.Dr1es41R.js";
|
|
13
|
+
import { C as w } from "./button.cbDkxJHn.js";
|
|
14
|
+
import { C as v } from "./input.7pumTpdu.js";
|
|
15
|
+
import { C as I } from "./option.C5f7yDqN.js";
|
|
16
16
|
import B from "../components/select.js";
|
|
17
17
|
import N from "../components/tooltip.js";
|
|
18
|
-
import { C as k } from "./typography.
|
|
18
|
+
import { C as k } from "./typography.BLYdTF0n.js";
|
|
19
19
|
import { c as F } from "./component.styles.CAS3c9pM.js";
|
|
20
20
|
var u = /* @__PURE__ */ ((t) => (t.Both = "both", t.Pages = "pages", t.Rows = "rows", t))(u || {});
|
|
21
21
|
const p = 1, M = C`
|
|
@@ -89,14 +89,14 @@ const p = 1, M = C`
|
|
|
89
89
|
color: var(--cx-color-primary);
|
|
90
90
|
}
|
|
91
91
|
`;
|
|
92
|
-
var O = Object.defineProperty, D = Object.getOwnPropertyDescriptor, a = (t, i, n,
|
|
93
|
-
for (var r =
|
|
94
|
-
(h = t[l]) && (r = (
|
|
95
|
-
return
|
|
92
|
+
var O = Object.defineProperty, D = Object.getOwnPropertyDescriptor, a = (t, i, n, g) => {
|
|
93
|
+
for (var r = g > 1 ? void 0 : g ? D(i, n) : i, l = t.length - 1, h; l >= 0; l--)
|
|
94
|
+
(h = t[l]) && (r = (g ? h(i, n, r) : h(r)) || r);
|
|
95
|
+
return g && r && O(i, n, r), r;
|
|
96
96
|
};
|
|
97
97
|
let e = class extends _ {
|
|
98
98
|
constructor() {
|
|
99
|
-
super(...arguments), this.localize = new
|
|
99
|
+
super(...arguments), this.localize = new f(this), this.count = 0, this.pageSizeOptions = [10, 20, 50, 100], this.pageSize = this.pageSizeOptions[0], this.label = this.localize.term("rowsPerPage"), this.showFirst = !1, this.showLast = !1, this.showPaginationButtons = !1, this.paginationButtonCount = 5, this.paginationCounter = u.Rows, this.showPaginationInput = !1, this.backIconName = "chevron_left", this.nextIconName = "chevron_right", this.iconButtonSize = z.Medium, this.currentPage = p, this._pageInputValue = p.toString();
|
|
100
100
|
}
|
|
101
101
|
get _pageCount() {
|
|
102
102
|
const t = Number.isFinite(this.pageSize) && this.pageSize > 0 ? this.pageSize : 1;
|
|
@@ -185,35 +185,39 @@ let e = class extends _ {
|
|
|
185
185
|
return s`<cx-button data-page=${t} variant="text" size="small" class=${$({
|
|
186
186
|
pagination__page: !0,
|
|
187
187
|
"pagination__page--active": t === this.currentPage
|
|
188
|
-
})}>${t}</cx-button>`;
|
|
188
|
+
})}>${this.localize.number(t)}</cx-button>`;
|
|
189
189
|
}
|
|
190
190
|
renderPageButtons() {
|
|
191
191
|
const t = Math.floor((this.paginationButtonCount - 1) / 2), i = Math.ceil((this.paginationButtonCount - 1) / 2), n = Math.max(
|
|
192
192
|
p,
|
|
193
193
|
this._pageCount - this.currentPage + t + 1 < this.paginationButtonCount ? this._pageCount - this.paginationButtonCount + 1 : this.currentPage - t
|
|
194
|
-
),
|
|
194
|
+
), g = Math.min(
|
|
195
195
|
this._pageCount,
|
|
196
196
|
this.currentPage <= i ? this.paginationButtonCount : this.currentPage + i
|
|
197
197
|
);
|
|
198
198
|
return s`<div class="pagination__pages" @click=${this.handlePageClick}>${x(
|
|
199
|
-
Array.from({ length:
|
|
199
|
+
Array.from({ length: g - n + 1 }, (r, l) => l + n),
|
|
200
200
|
(r) => r,
|
|
201
201
|
(r) => this.renderPageButton(r)
|
|
202
202
|
)}</div>`;
|
|
203
203
|
}
|
|
204
204
|
renderPageCount() {
|
|
205
|
-
return !this.showPaginationInput || !this.hasMultiplePages ? s`<cx-typography variant="body3" class="pagination_count">${this.localize.term(
|
|
205
|
+
return !this.showPaginationInput || !this.hasMultiplePages ? s`<cx-typography variant="body3" class="pagination_count">${this.localize.term(
|
|
206
|
+
"itemOfTotal",
|
|
207
|
+
this.localize.number(this.currentPage),
|
|
208
|
+
this.localize.number(this._pageCount)
|
|
209
|
+
)}</cx-typography>` : s`<cx-space class="pagination_count">${this.renderCounterInput()}<cx-typography variant="body3">${this.localize.term("itemOfTotal", "", this.localize.number(this._pageCount))}</cx-typography></cx-space>`;
|
|
206
210
|
}
|
|
207
211
|
renderRowCount() {
|
|
208
212
|
return s`<cx-typography variant="body3" class="pagination_count">${this.localize.term(
|
|
209
213
|
"itemRangeOfTotal",
|
|
210
|
-
this.pageStart,
|
|
211
|
-
this.pageEnd,
|
|
212
|
-
this.count
|
|
214
|
+
this.localize.number(this.pageStart),
|
|
215
|
+
this.localize.number(this.pageEnd),
|
|
216
|
+
this.localize.number(this.count)
|
|
213
217
|
)}</cx-typography>`;
|
|
214
218
|
}
|
|
215
219
|
render() {
|
|
216
|
-
return s`<div class="pagination">${
|
|
220
|
+
return s`<div class="pagination">${c(
|
|
217
221
|
this.pageSizeOptions.length > 1,
|
|
218
222
|
() => s`<label class="pagination__label__container"><cx-typography variant="body3" class="pagination__label">${this.label}</cx-typography><cx-select class="pagination__select" size="small" hoist value=${this.pageSize.toString()} @cx-change=${this.handlePageSizeSelectChange}>${x(
|
|
219
223
|
this.pageSizeOptions,
|
|
@@ -221,21 +225,21 @@ let e = class extends _ {
|
|
|
221
225
|
(t) => s`<cx-option value=${t}>${t}</cx-option>`
|
|
222
226
|
)}</cx-select></label>`
|
|
223
227
|
)}
|
|
224
|
-
${
|
|
228
|
+
${c(
|
|
225
229
|
this.paginationCounter === u.Both || this.paginationCounter === u.Rows,
|
|
226
230
|
() => this.renderRowCount(),
|
|
227
231
|
() => this.renderPageCount()
|
|
228
232
|
)}
|
|
229
|
-
${
|
|
233
|
+
${c(
|
|
230
234
|
this.hasMultiplePages,
|
|
231
|
-
() => s`<div class="pagination__navigation-buttons">${
|
|
235
|
+
() => s`<div class="pagination__navigation-buttons">${c(
|
|
232
236
|
this.showFirst,
|
|
233
237
|
() => s`<cx-tooltip hoist content=${this.localize.term("first")}><cx-icon-button class="pagination__first" label=${this.localize.term("first")} name="first_page" size=${this.iconButtonSize} ?disabled=${this.prevDisabled} @click=${this.handleFirst}></cx-icon-button></cx-tooltip>`
|
|
234
|
-
)}<cx-tooltip hoist content=${this.localize.term("previous")}><cx-icon-button part="back-icon" class="pagination__back" label=${this.localize.term("previous")} name=${this.backIconName} size=${this.iconButtonSize} ?disabled=${this.prevDisabled} @click=${this.handleBack}></cx-icon-button></cx-tooltip>${
|
|
238
|
+
)}<cx-tooltip hoist content=${this.localize.term("previous")}><cx-icon-button part="back-icon" class="pagination__back" label=${this.localize.term("previous")} name=${this.backIconName} size=${this.iconButtonSize} ?disabled=${this.prevDisabled} @click=${this.handleBack}></cx-icon-button></cx-tooltip>${c(
|
|
235
239
|
this.paginationCounter === u.Both,
|
|
236
240
|
() => this.renderPageCount()
|
|
237
241
|
)}
|
|
238
|
-
${
|
|
242
|
+
${c(this.showPaginationButtons, () => this.renderPageButtons())}<cx-tooltip hoist content=${this.localize.term("next")}><cx-icon-button part="next-icon" class="pagination__forward" label=${this.localize.term("next")} name=${this.nextIconName} size=${this.iconButtonSize} ?disabled=${this.nextDisabled} @click=${this.handleForward}></cx-icon-button></cx-tooltip>${c(
|
|
239
243
|
this.showLast,
|
|
240
244
|
() => s`<cx-tooltip hoist content=${this.localize.term("last")}><cx-icon-button class="pagination__last" label=${this.localize.term("last")} name="last_page" size=${this.iconButtonSize} ?disabled=${this.nextDisabled} @click=${this.handleLast}></cx-icon-button></cx-tooltip>`
|
|
241
245
|
)}</div>`
|
|
@@ -249,7 +253,7 @@ e.dependencies = {
|
|
|
249
253
|
"cx-input": v,
|
|
250
254
|
"cx-option": I,
|
|
251
255
|
"cx-select": B,
|
|
252
|
-
"cx-space":
|
|
256
|
+
"cx-space": d,
|
|
253
257
|
"cx-tooltip": N,
|
|
254
258
|
"cx-typography": k
|
|
255
259
|
};
|
|
@@ -309,13 +313,13 @@ a([
|
|
|
309
313
|
S()
|
|
310
314
|
], e.prototype, "_pageInputValue", 2);
|
|
311
315
|
a([
|
|
312
|
-
|
|
316
|
+
b("currentPage", { waitUntilFirstUpdate: !0 })
|
|
313
317
|
], e.prototype, "handlePageChange", 1);
|
|
314
318
|
a([
|
|
315
|
-
|
|
319
|
+
b("pageSize", { waitUntilFirstUpdate: !0 })
|
|
316
320
|
], e.prototype, "handlePageSizeChange", 1);
|
|
317
321
|
e = a([
|
|
318
|
-
|
|
322
|
+
y("cx-pagination")
|
|
319
323
|
], e);
|
|
320
324
|
export {
|
|
321
325
|
e as C,
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
var e = /* @__PURE__ */ ((t) => (t.BottomCenter = "bottom-center", t.BottomLeft = "bottom-left", t.BottomRight = "bottom-right", t.CenterCenter = "center-center", t.CenterLeft = "center-left", t.CenterRight = "center-right", t.TopCenter = "top-center", t.TopLeft = "top-left", t.TopRight = "top-right", t))(e || {});
|
|
2
|
+
const r = {
|
|
3
|
+
"top-left": "left top",
|
|
4
|
+
"top-center": "center top",
|
|
5
|
+
"top-right": "right top",
|
|
6
|
+
"center-left": "left center",
|
|
7
|
+
"center-center": "center center",
|
|
8
|
+
"center-right": "right center",
|
|
9
|
+
"bottom-left": "left bottom",
|
|
10
|
+
"bottom-center": "center bottom",
|
|
11
|
+
"bottom-right": "right bottom"
|
|
12
|
+
};
|
|
2
13
|
export {
|
|
14
|
+
r as O,
|
|
3
15
|
e as P
|
|
4
16
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { D as i } from "./content-builder.CBBdfVOl.js";
|
|
2
|
+
function s(r, t = [350, 696, 1024]) {
|
|
3
|
+
const o = getComputedStyle(r), e = [
|
|
4
|
+
Number.parseFloat(o.getPropertyValue("--breakpoint-mobile").trim()),
|
|
5
|
+
Number.parseFloat(o.getPropertyValue("--breakpoint-tablet").trim()),
|
|
6
|
+
1 / 0
|
|
7
|
+
];
|
|
8
|
+
return Number.isNaN(e[0]) ? e[0] = t[0] : e[0]++, Number.isNaN(e[1]) ? e[1] = t[1] : e[1]++, e;
|
|
9
|
+
}
|
|
10
|
+
function a(r) {
|
|
11
|
+
const t = window.innerWidth;
|
|
12
|
+
return t > r[1] ? i.Desktop : t > r[0] && t <= r[1] ? i.Tablet : i.Mobile;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
a,
|
|
16
|
+
s as g
|
|
17
|
+
};
|
|
@@ -207,7 +207,7 @@ function Q(t) {
|
|
|
207
207
|
return r.length === 0 ? "" : ` ${r.join(" ")}`;
|
|
208
208
|
}
|
|
209
209
|
export {
|
|
210
|
-
|
|
210
|
+
S as G,
|
|
211
211
|
u as T,
|
|
212
212
|
B as a,
|
|
213
213
|
H as b,
|
|
@@ -218,8 +218,8 @@ export {
|
|
|
218
218
|
v as g,
|
|
219
219
|
y as h,
|
|
220
220
|
L as i,
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
h as j,
|
|
222
|
+
m as k,
|
|
223
223
|
U as l,
|
|
224
224
|
K as m,
|
|
225
225
|
X as n,
|