@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
|
@@ -3,6 +3,7 @@ import { default as CxColorPicker } from '../../../../../atoms/src/components/co
|
|
|
3
3
|
import { default as CxDialog } from '../../../../../atoms/src/components/dialog/dialog.ts';
|
|
4
4
|
import { default as CxGrid } from '../../../../../atoms/src/components/grid/grid.ts';
|
|
5
5
|
import { default as CxGridItem } from '../../../../../atoms/src/components/grid-item/grid-item.ts';
|
|
6
|
+
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
6
7
|
import { default as CxIconButton } from '../../../../../atoms/src/components/icon-button/icon-button.ts';
|
|
7
8
|
import { default as CxInput } from '../../../../../atoms/src/components/input/input.ts';
|
|
8
9
|
import { default as CxOption } from '../../../../../atoms/src/components/option/option.ts';
|
|
@@ -13,6 +14,7 @@ import { default as CxTypography } from '../../../../../atoms/src/components/typ
|
|
|
13
14
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
14
15
|
import { default as CxTable } from '../../../../../hybrid/table-core/src/index.ts';
|
|
15
16
|
import { ColorSwatchData } from '../../../../../types/src/color-swatch';
|
|
17
|
+
import { ColorSwatchCustomColumn } from '../../../../../types/src/color-swatch-group';
|
|
16
18
|
|
|
17
19
|
export type CxContentBuilderColorSwatchSelectEvent = CustomEvent<ColorSwatchData | ColorSwatchData[]>;
|
|
18
20
|
export type CxContentBuilderColorSwatchDeleteEvent = CustomEvent<void>;
|
|
@@ -34,6 +36,7 @@ export default class CxColorSwatchPicker extends CortexElement {
|
|
|
34
36
|
'cx-dialog': typeof CxDialog;
|
|
35
37
|
'cx-grid': typeof CxGrid;
|
|
36
38
|
'cx-grid-item': typeof CxGridItem;
|
|
39
|
+
'cx-icon': typeof CxIcon;
|
|
37
40
|
'cx-icon-button': typeof CxIconButton;
|
|
38
41
|
'cx-input': typeof CxInput;
|
|
39
42
|
'cx-option': typeof CxOption;
|
|
@@ -68,6 +71,15 @@ export default class CxColorSwatchPicker extends CortexElement {
|
|
|
68
71
|
* The default language of the content builder.
|
|
69
72
|
*/
|
|
70
73
|
defaultLanguage: string;
|
|
74
|
+
/**
|
|
75
|
+
* The block's custom columns, one labelled input each in the color dialog.
|
|
76
|
+
*/
|
|
77
|
+
customColumns: ColorSwatchCustomColumn[];
|
|
78
|
+
/**
|
|
79
|
+
* Shows the Meta data section. Off by default: a metadata field is a table
|
|
80
|
+
* column, which only the Table variant renders.
|
|
81
|
+
*/
|
|
82
|
+
showMetadata: boolean;
|
|
71
83
|
/**
|
|
72
84
|
* The type of dialog to open since it can be either add new or edit from row selection.
|
|
73
85
|
*/
|
|
@@ -104,14 +116,34 @@ export default class CxColorSwatchPicker extends CortexElement {
|
|
|
104
116
|
* The PMS color value.
|
|
105
117
|
*/
|
|
106
118
|
private dialogPmsId;
|
|
119
|
+
/** Typed filter text, in state so the list re-renders as you type. */
|
|
120
|
+
private searchTerm;
|
|
121
|
+
/**
|
|
122
|
+
* Mounts the list only while the listbox is open: a virtualizer created
|
|
123
|
+
* against a hidden, zero-height parent settles on an empty range and stays
|
|
124
|
+
* blank, so it has to wait for `cx-after-show`.
|
|
125
|
+
*/
|
|
126
|
+
private showVirtualizer;
|
|
107
127
|
/**
|
|
108
128
|
* The color value.
|
|
109
129
|
*/
|
|
110
130
|
private dialogColor;
|
|
131
|
+
/**
|
|
132
|
+
* The value the edited color holds for each declared custom column, keyed by
|
|
133
|
+
* column id.
|
|
134
|
+
*/
|
|
135
|
+
private dialogMetadata;
|
|
136
|
+
/**
|
|
137
|
+
* Free-form metadata rows added this session, before they become declared
|
|
138
|
+
* columns. Each carries the id it will be stored under, so renaming a row
|
|
139
|
+
* keeps the value already typed.
|
|
140
|
+
*/
|
|
141
|
+
private dialogExtraFields;
|
|
111
142
|
/**
|
|
112
143
|
* The palettes of current color swatches.
|
|
113
144
|
*/
|
|
114
145
|
private palettes;
|
|
146
|
+
constructor();
|
|
115
147
|
get tabs(): TabType[];
|
|
116
148
|
/**
|
|
117
149
|
* Opens the add color dialog.
|
|
@@ -127,7 +159,19 @@ export default class CxColorSwatchPicker extends CortexElement {
|
|
|
127
159
|
*/
|
|
128
160
|
private resetDialogState;
|
|
129
161
|
/**
|
|
130
|
-
*
|
|
162
|
+
* Splits the named free-form rows into the ones that reuse an existing column
|
|
163
|
+
* and the ones that declare a new one.
|
|
164
|
+
*
|
|
165
|
+
* A typed name that matches a declared column writes into that column rather
|
|
166
|
+
* than declaring a second one with the same title: two identical headers would
|
|
167
|
+
* leave the original empty for this color and the value stranded under a new
|
|
168
|
+
* id. Matched case-insensitively on the trimmed name, the same comparison the
|
|
169
|
+
* Custom columns list editor rejects duplicates with.
|
|
170
|
+
*/
|
|
171
|
+
private resolveExtraFields;
|
|
172
|
+
/**
|
|
173
|
+
* Finishes the dialog and emits the event. Columns go first, so the color's
|
|
174
|
+
* new values already have a column to be rendered in.
|
|
131
175
|
*/
|
|
132
176
|
private handleFinishDialog;
|
|
133
177
|
/**
|
|
@@ -148,6 +192,31 @@ export default class CxColorSwatchPicker extends CortexElement {
|
|
|
148
192
|
private handleChangeRgb;
|
|
149
193
|
private handleChangeCmyk;
|
|
150
194
|
private handleChangePms;
|
|
195
|
+
/** The Pantone table minus the pinned colour, narrowed by `searchTerm`. */
|
|
196
|
+
private get virtualListItems();
|
|
197
|
+
private handleSelectShow;
|
|
198
|
+
private handleSelectHide;
|
|
199
|
+
/** `cx-select` keeps the typed text private, so it is read off the event. */
|
|
200
|
+
private handleSelectInput;
|
|
201
|
+
/** Nothing is slotted while the listbox is closed, so the label comes from state. */
|
|
202
|
+
private selectGetOptionLabel;
|
|
203
|
+
/**
|
|
204
|
+
* The selected colour, pinned above the list: a virtualized row thousands of
|
|
205
|
+
* places down cannot be scrolled to without emptying the rendered range.
|
|
206
|
+
*/
|
|
207
|
+
private renderPinnedPmsOption;
|
|
208
|
+
/** The item is undefined while a narrowing filter outruns the rendered range. */
|
|
209
|
+
private renderPmsOption;
|
|
210
|
+
private handleChangeMetadata;
|
|
211
|
+
private handleAddMetadataField;
|
|
212
|
+
private handleChangeExtraField;
|
|
213
|
+
private handleDeleteExtraField;
|
|
214
|
+
/**
|
|
215
|
+
* The Meta data section: one labelled input per custom column, plus free-form
|
|
216
|
+
* Name / Value rows. Naming a free-form row declares a column for every color
|
|
217
|
+
* — the block is a table — hence the columns event on save.
|
|
218
|
+
*/
|
|
219
|
+
private renderMetadataControls;
|
|
151
220
|
/**
|
|
152
221
|
* Re-emit dynamic events from the table.
|
|
153
222
|
*/
|
|
@@ -6,35 +6,14 @@ import { TabType } from './config-form';
|
|
|
6
6
|
export declare class ConfigFormController implements ReactiveController {
|
|
7
7
|
host: ReactiveControllerHost & CxConfigForm;
|
|
8
8
|
private readonly localize;
|
|
9
|
-
private
|
|
10
|
-
private apiGetTeamSpaceFontFamily;
|
|
11
|
-
private readonly pendingGalleryPickerSaves;
|
|
12
|
-
private readonly fontFamiliesCache;
|
|
13
|
-
private readonly pendingFontFamilyFetches;
|
|
14
|
-
private readonly typeSubtypeOptionsCache;
|
|
15
|
-
private readonly pendingTypeSubtypeOptionsFetches;
|
|
9
|
+
private readonly controlRenderer;
|
|
16
10
|
constructor(host: ReactiveControllerHost & CxConfigForm);
|
|
17
11
|
hostConnected(): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resolves the delivery URL to persist for an asset under a given format.
|
|
20
|
-
*
|
|
21
|
-
* A blank `format` means `Auto`, which is what a reset leaves behind: the proxy is then
|
|
22
|
-
* derived from the asset's own extension and size (`resolveAutoFormat`), matching what
|
|
23
|
-
* the block computes at runtime. Without this the reset would keep whichever URL the
|
|
24
|
-
* previous hand-picked format wrote.
|
|
25
|
-
*
|
|
26
|
-
* `TRX` proxies preserve the asset's original extension. When that extension is not a
|
|
27
|
-
* browser-displayable image format, fall back to the `TR1` transformation proxy, which is
|
|
28
|
-
* always transcoded to a raster format. Mirrors the same fallback in `FetchImageController`
|
|
29
|
-
* (used by the gallery/timeline blocks) and `cx-asset-transformation-dialog`.
|
|
30
|
-
*/
|
|
31
|
-
private resolveAssetFormatSrc;
|
|
32
12
|
private handleStyleChange;
|
|
33
13
|
private handleAttributeChange;
|
|
34
14
|
private handlePropertyChange;
|
|
35
15
|
private handleConfigChange;
|
|
36
16
|
private renderInfoText;
|
|
37
|
-
private renderControl;
|
|
38
17
|
private renderBasicControl;
|
|
39
18
|
renderBasicControls(configs: PropertyConfig[], parent?: PropertyConfig, tab?: TabType): TemplateResult<1>;
|
|
40
19
|
renderTranslationControls(): TemplateResult<1>;
|
package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts
CHANGED
|
@@ -216,6 +216,13 @@ export default class CxConfigManager extends CortexElement {
|
|
|
216
216
|
private getFlattenTraits;
|
|
217
217
|
handleTraitsChange(): Promise<void>;
|
|
218
218
|
handleComponentChange(): Promise<void>;
|
|
219
|
+
/**
|
|
220
|
+
* The variants of the font kit the block sits in, if any — the config
|
|
221
|
+
* manager is the only layer holding the GrapesJS component, so it is the
|
|
222
|
+
* only place that can reach the kit's resolved typefaces. Absent means the
|
|
223
|
+
* block has no container resolving a font for it.
|
|
224
|
+
*/
|
|
225
|
+
private getContainerFontVariants;
|
|
219
226
|
private handleSave;
|
|
220
227
|
private handleClose;
|
|
221
228
|
show(): Promise<void>;
|
package/library/packages/organisms/src/content-builder/components/gallery-config/gallery-config.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ import { default as CxSpace } from '../../../../../atoms/src/components/space/sp
|
|
|
11
11
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
12
12
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
13
13
|
import { default as CxAssetPicker } from '../../../../../molecules/src/asset-picker/asset-picker.ts';
|
|
14
|
+
import { default as CxBicolorPicker } from '../../../../../molecules/src/bicolor-picker/bicolor-picker.ts';
|
|
14
15
|
import { default as CxDynamicSelect } from '../../../../../molecules/src/dynamic-select/dynamic-select.ts';
|
|
15
16
|
import { default as CxFolderSelect } from '../../../../../molecules/src/folder-select/folder-select.ts';
|
|
17
|
+
import { default as CxPositionPicker } from '../../../../../molecules/src/position-picker/position-picker.ts';
|
|
16
18
|
import { Asset, AssetTypeString, DialogType } from '../../../../../types/src/content-builder';
|
|
17
19
|
import { Image } from '../../../../../types/src/gallery-config';
|
|
18
20
|
import { GalleryItemCardType } from '../../../../../types/src/gallery-item';
|
|
@@ -31,6 +33,7 @@ export default class CxGalleryConfig extends CortexElement {
|
|
|
31
33
|
static readonly styles: import('lit').CSSResult[];
|
|
32
34
|
static readonly dependencies: {
|
|
33
35
|
'cx-asset-picker': typeof CxAssetPicker;
|
|
36
|
+
'cx-bicolor-picker': typeof CxBicolorPicker;
|
|
34
37
|
'cx-button': typeof CxButton;
|
|
35
38
|
'cx-checkbox': typeof CxCheckbox;
|
|
36
39
|
'cx-dialog': typeof CxDialog;
|
|
@@ -41,6 +44,7 @@ export default class CxGalleryConfig extends CortexElement {
|
|
|
41
44
|
'cx-grid': typeof CxGrid;
|
|
42
45
|
'cx-grid-item': typeof CxGridItem;
|
|
43
46
|
'cx-input': typeof CxInput;
|
|
47
|
+
'cx-position-picker': typeof CxPositionPicker;
|
|
44
48
|
'cx-radio': typeof CxRadio;
|
|
45
49
|
'cx-radio-group': typeof CxRadioGroup;
|
|
46
50
|
'cx-space': typeof CxSpace;
|
|
@@ -98,6 +102,8 @@ export default class CxGalleryConfig extends CortexElement {
|
|
|
98
102
|
private handleAssetSelect;
|
|
99
103
|
private handleAssetDelete;
|
|
100
104
|
private handleObjectFitChange;
|
|
105
|
+
private handleCropFocusChange;
|
|
106
|
+
private handleBackgroundColorChange;
|
|
101
107
|
private handleOpenInNewTabChange;
|
|
102
108
|
private handleFolderChange;
|
|
103
109
|
private handleFolderDelete;
|
|
@@ -2,10 +2,17 @@ import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-bu
|
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
type Attributes = {
|
|
5
|
+
'collapse-icon': string;
|
|
5
6
|
data: string;
|
|
6
7
|
'data-constraints': boolean;
|
|
8
|
+
'data-content-width-percent': string;
|
|
9
|
+
'data-content-width-pixel': string;
|
|
7
10
|
'default-open-indexes': string;
|
|
11
|
+
'expand-icon': string;
|
|
12
|
+
'full-bleed': boolean;
|
|
13
|
+
'hover-icon': string;
|
|
8
14
|
'multi-language': boolean;
|
|
15
|
+
'section-body-max-width': string;
|
|
9
16
|
};
|
|
10
17
|
declare const _default: {
|
|
11
18
|
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonSize, ButtonWidthType } from '../../../../types/src/button';
|
|
2
2
|
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
|
+
import { ButtonAppearance } from '../../../../types/src/sb-button';
|
|
3
4
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
5
|
import { default as CxSbButton } from '../blocks/button/button';
|
|
5
6
|
|
|
@@ -25,7 +26,7 @@ type Attributes = {
|
|
|
25
26
|
size: string;
|
|
26
27
|
target: string;
|
|
27
28
|
type: string;
|
|
28
|
-
variant:
|
|
29
|
+
variant: ButtonAppearance;
|
|
29
30
|
'width-type': ButtonWidthType;
|
|
30
31
|
};
|
|
31
32
|
declare const _default: {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Easing, TransitionType } from '../../../../types/src/index.ts';
|
|
1
|
+
import { Easing, ObjectFit, TransitionType } from '../../../../types/src/index.ts';
|
|
2
2
|
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { ContentType, SourceVariant } from '../../../../types/src/gallery';
|
|
4
4
|
import { GalleryItemCardType, GalleryItemContentPosition, GalleryItemContentVariant, GalleryItemEffect, GalleryItemTextRevealStyle, GalleryItemZoomStyle } from '../../../../types/src/gallery-item';
|
|
5
|
+
import { PositionPickerValue } from '../../../../types/src/position-picker';
|
|
6
|
+
import { HeightMode } from '../../../../types/src/resizable-element';
|
|
5
7
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
6
8
|
|
|
7
9
|
type Attributes = {
|
|
@@ -16,12 +18,19 @@ type Attributes = {
|
|
|
16
18
|
'content-type': ContentType;
|
|
17
19
|
'content-variant': GalleryItemContentVariant;
|
|
18
20
|
'data-constraints': boolean;
|
|
21
|
+
'data-width-percent': string;
|
|
22
|
+
'data-width-pixel': string;
|
|
23
|
+
'default-crop-focus': PositionPickerValue;
|
|
24
|
+
'default-object-fit': ObjectFit;
|
|
19
25
|
'details-source-field': string;
|
|
20
26
|
'download-format': string;
|
|
21
27
|
easing: Easing;
|
|
22
28
|
effect: GalleryItemEffect;
|
|
23
29
|
format: string;
|
|
30
|
+
'full-bleed': boolean;
|
|
24
31
|
'header-source-field': string;
|
|
32
|
+
height: string;
|
|
33
|
+
'height-mode': HeightMode;
|
|
25
34
|
'highlight-border': boolean;
|
|
26
35
|
'highlight-color-overlay': boolean;
|
|
27
36
|
'highlight-drop-shadow': boolean;
|
|
@@ -41,6 +50,7 @@ type Attributes = {
|
|
|
41
50
|
transformations: string;
|
|
42
51
|
'transition-type': TransitionType;
|
|
43
52
|
variant: string;
|
|
53
|
+
width: string;
|
|
44
54
|
'zoom-style': GalleryItemZoomStyle;
|
|
45
55
|
};
|
|
46
56
|
declare const _default: {
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CxColorSwatchCodeAlignment, CxColorSwatchCodeSeparator, CxColorSwatchHexFormat } from '../../../../types/src/color-swatch';
|
|
2
|
+
import { CxColorSwatchGroupColumnAlignment, CxColorSwatchGroupColumnWidthMode, CxColorSwatchGroupVariant } from '../../../../types/src/color-swatch-group';
|
|
2
3
|
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
4
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
5
|
|
|
5
6
|
type Attribute = {
|
|
6
7
|
'can-copy': boolean;
|
|
7
8
|
'can-custom-shadow-and-border-radius': boolean;
|
|
9
|
+
'code-alignment': CxColorSwatchCodeAlignment;
|
|
10
|
+
'code-column-alignment': CxColorSwatchGroupColumnAlignment;
|
|
11
|
+
'code-column-constraints': boolean;
|
|
12
|
+
'code-column-max-width': string;
|
|
13
|
+
'code-column-min-width': string;
|
|
14
|
+
'code-column-width-mode': CxColorSwatchGroupColumnWidthMode;
|
|
15
|
+
'code-separator': CxColorSwatchCodeSeparator;
|
|
16
|
+
'custom-columns': string;
|
|
8
17
|
data: string;
|
|
18
|
+
'full-bleed': boolean;
|
|
19
|
+
'gradient-effect': boolean;
|
|
20
|
+
'hex-format': CxColorSwatchHexFormat;
|
|
9
21
|
'max-col': string;
|
|
10
22
|
'multi-language': boolean;
|
|
23
|
+
'name-column-alignment': CxColorSwatchGroupColumnAlignment;
|
|
24
|
+
'name-column-constraints': boolean;
|
|
25
|
+
'name-column-max-width': string;
|
|
26
|
+
'name-column-min-width': string;
|
|
27
|
+
'name-column-width-mode': CxColorSwatchGroupColumnWidthMode;
|
|
11
28
|
'show-codes': string;
|
|
29
|
+
'show-elements': string;
|
|
12
30
|
variant: CxColorSwatchGroupVariant;
|
|
13
31
|
};
|
|
14
32
|
declare const _default: {
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { ColumnWidthType } from '../../../../types/src/column';
|
|
2
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
|
+
import { default as CxColumnGroup } from '../blocks/column-group/column-group';
|
|
4
5
|
|
|
5
6
|
type Attributes = {
|
|
7
|
+
'background-crop-focus': CxColumnGroup['backgroundCropFocus'];
|
|
8
|
+
'background-format': CxColumnGroup['backgroundFormat'];
|
|
9
|
+
'background-manual-format': CxColumnGroup['backgroundManualFormat'];
|
|
10
|
+
'background-object-fit': CxColumnGroup['backgroundObjectFit'];
|
|
11
|
+
'background-record-id': CxColumnGroup['backgroundRecordId'];
|
|
12
|
+
'background-src': CxColumnGroup['backgroundSrc'];
|
|
13
|
+
'background-transformations': string;
|
|
6
14
|
'data-constraints': boolean;
|
|
15
|
+
'full-bleed': boolean;
|
|
7
16
|
'width-type': ColumnWidthType;
|
|
8
17
|
};
|
|
9
18
|
declare const _default: {
|
|
10
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
19
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
11
20
|
defaultValue: Attributes;
|
|
12
21
|
stylable: string[];
|
|
13
22
|
};
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ObjectFit } from '../../../../types/src/index.ts';
|
|
2
|
+
import { ColumnWidthMode, ColumnWidthType } from '../../../../types/src/column';
|
|
3
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
4
|
+
import { PositionPickerValue } from '../../../../types/src/position-picker';
|
|
3
5
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
6
|
|
|
5
7
|
type Attributes = {
|
|
8
|
+
'background-crop-focus': PositionPickerValue;
|
|
9
|
+
'background-format': string;
|
|
10
|
+
'background-image': string;
|
|
11
|
+
'background-manual-format': boolean;
|
|
12
|
+
'background-object-fit': ObjectFit;
|
|
13
|
+
'background-record-id': string;
|
|
14
|
+
'background-transformations': string;
|
|
6
15
|
'custom-width': boolean;
|
|
7
16
|
resizable: boolean;
|
|
8
17
|
trigger: string;
|
|
18
|
+
'width-mode': ColumnWidthMode;
|
|
9
19
|
'width-type': ColumnWidthType;
|
|
10
20
|
};
|
|
11
21
|
declare const _default: {
|
|
12
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
22
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
13
23
|
defaultValue: Partial<Attributes>;
|
|
14
24
|
stylable: string[];
|
|
15
25
|
};
|
|
@@ -20,6 +20,7 @@ type Attribute = {
|
|
|
20
20
|
'expanded-folders': CxSbDamView['expandedFolders'];
|
|
21
21
|
'filter-button-action': CxSbDamView['filterButtonAction'];
|
|
22
22
|
'folder-hierarchy': CxSbDamView['folderHierarchy'];
|
|
23
|
+
'full-bleed': boolean;
|
|
23
24
|
'highlight-representative-asset': CxSbDamView['highlightRepresentativeAsset'];
|
|
24
25
|
'items-per-page': string;
|
|
25
26
|
'left-additional-filters': CxSbDamView['leftAdditionalFilters'];
|
|
@@ -7,6 +7,7 @@ type Attribute = {
|
|
|
7
7
|
'data-width-percent': string;
|
|
8
8
|
'data-width-pixel': string;
|
|
9
9
|
extension: CxSbDocumentViewer['extension'];
|
|
10
|
+
'full-bleed': boolean;
|
|
10
11
|
height: CxSbDocumentViewer['height'];
|
|
11
12
|
'height-mode': CxSbDocumentViewer['heightMode'];
|
|
12
13
|
identifier: CxSbDocumentViewer['identifier'];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
|
+
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
|
+
import { default as CxFontKitAdvanced } from '../blocks/font-kit-advanced/font-kit-advanced';
|
|
4
|
+
|
|
5
|
+
type Attributes = {
|
|
6
|
+
'full-bleed': boolean;
|
|
7
|
+
name: CxFontKitAdvanced['name'];
|
|
8
|
+
origin: CxFontKitAdvanced['origin'];
|
|
9
|
+
'show-dividers': boolean;
|
|
10
|
+
'show-download-button': boolean;
|
|
11
|
+
'show-title-image': boolean;
|
|
12
|
+
typefaces: string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: {
|
|
15
|
+
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
16
|
+
defaultValue: Attributes;
|
|
17
|
+
stylable: string[];
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -9,7 +9,9 @@ type Attributes = {
|
|
|
9
9
|
'download-size': CxFontKit['downloadSize'];
|
|
10
10
|
'download-text': CxFontKit['downloadText'];
|
|
11
11
|
'download-width-type': CxFontKit['downloadWidthType'];
|
|
12
|
+
'full-bleed': boolean;
|
|
12
13
|
'img-alt': CxFontKit['imgAlt'];
|
|
14
|
+
'img-crop-focus': CxFontKit['imgCropFocus'];
|
|
13
15
|
'img-height-mode': CxFontKit['imgHeightMode'];
|
|
14
16
|
'img-object-fit': CxFontKit['imgObjectFit'];
|
|
15
17
|
name: CxFontKit['name'];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Easing, Orientation } from '../../../../types/src/index.ts';
|
|
1
|
+
import { Easing, ObjectFit, Orientation } from '../../../../types/src/index.ts';
|
|
2
2
|
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { ContentType, GalleryVariant, OverflowBehavior, SourceVariant } from '../../../../types/src/gallery';
|
|
4
4
|
import { GalleryItemCardType, GalleryItemContentPosition, GalleryItemContentVariant, GalleryItemEffect, GalleryItemShowContentType, GalleryItemTextRevealStyle, GalleryItemZoomStyle } from '../../../../types/src/gallery-item';
|
|
5
|
+
import { PositionPickerValue } from '../../../../types/src/position-picker';
|
|
5
6
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
6
7
|
|
|
7
8
|
type Attribute = {
|
|
@@ -16,11 +17,16 @@ type Attribute = {
|
|
|
16
17
|
'content-position': GalleryItemContentPosition;
|
|
17
18
|
'content-type': ContentType;
|
|
18
19
|
'content-variant': GalleryItemContentVariant;
|
|
20
|
+
'data-width-percent': string;
|
|
21
|
+
'data-width-pixel': string;
|
|
22
|
+
'default-crop-focus': PositionPickerValue;
|
|
23
|
+
'default-object-fit': ObjectFit;
|
|
19
24
|
'details-source-field': string;
|
|
20
25
|
'download-format': string;
|
|
21
26
|
easing: Easing;
|
|
22
27
|
effect: GalleryItemEffect;
|
|
23
28
|
format: string;
|
|
29
|
+
'full-bleed': boolean;
|
|
24
30
|
'header-source-field': string;
|
|
25
31
|
'highlight-background': boolean;
|
|
26
32
|
'highlight-border': boolean;
|
|
@@ -31,6 +37,7 @@ type Attribute = {
|
|
|
31
37
|
'large-content-position': GalleryItemContentPosition;
|
|
32
38
|
'manual-format'?: boolean;
|
|
33
39
|
'max-rows': string;
|
|
40
|
+
'max-rows-mobile': string;
|
|
34
41
|
navigation: 'both' | 'arrows' | 'pagination';
|
|
35
42
|
orientation: Orientation;
|
|
36
43
|
'overflow-behavior': OverflowBehavior;
|
|
@@ -46,8 +53,15 @@ type Attribute = {
|
|
|
46
53
|
'transformation-record-id': string;
|
|
47
54
|
transformations: string;
|
|
48
55
|
variant: GalleryVariant;
|
|
56
|
+
width: string;
|
|
49
57
|
'zoom-style': GalleryItemZoomStyle;
|
|
50
58
|
};
|
|
59
|
+
/**
|
|
60
|
+
* Default rows for desktop and tablet. Also the value the mobile backfill uses
|
|
61
|
+
* when a block saved before `max-rows-mobile` existed has no `max-rows` of its
|
|
62
|
+
* own to inherit.
|
|
63
|
+
*/
|
|
64
|
+
export declare const DEFAULT_MAX_ROWS = "2";
|
|
51
65
|
declare const _default: {
|
|
52
66
|
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
53
67
|
defaultValue: Partial<Attribute>;
|
|
@@ -8,13 +8,15 @@ type Attribute = {
|
|
|
8
8
|
'data-constraints': boolean;
|
|
9
9
|
'disabled-copy-button': boolean;
|
|
10
10
|
'font-size': string;
|
|
11
|
+
'font-size-desktop': string;
|
|
12
|
+
'font-size-tablet': string;
|
|
11
13
|
'has-anchor-link': boolean;
|
|
12
14
|
role: string;
|
|
13
15
|
variant: Variant;
|
|
14
16
|
};
|
|
15
17
|
declare const _default: {
|
|
16
18
|
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
17
|
-
defaultValue: Attribute
|
|
19
|
+
defaultValue: Partial<Attribute>;
|
|
18
20
|
stylable: string[];
|
|
19
21
|
};
|
|
20
22
|
export default _default;
|
|
@@ -5,12 +5,15 @@ import { default as CxImage } from '../blocks/image/image';
|
|
|
5
5
|
type Attribute = {
|
|
6
6
|
'additional-fields': string;
|
|
7
7
|
'alt-source-field': CxImage['altSourceField'];
|
|
8
|
+
'aspect-ratio': CxImage['aspectRatio'];
|
|
9
|
+
'aspect-ratio-dark-mode': CxImage['aspectRatioDarkMode'];
|
|
8
10
|
'click-action': CxImage['clickAction'];
|
|
9
11
|
'click-link'?: CxImage['clickLink'];
|
|
10
12
|
'click-page'?: CxImage['clickPage'];
|
|
11
13
|
'click-space'?: CxImage['clickSpace'];
|
|
12
14
|
'content-position': CxImage['contentPosition'];
|
|
13
15
|
'content-type': CxImage['contentType'];
|
|
16
|
+
'crop-focus': CxImage['cropFocus'];
|
|
14
17
|
'data-constraints': boolean;
|
|
15
18
|
'data-content-width-percent': string;
|
|
16
19
|
'data-content-width-pixel': string;
|
|
@@ -25,6 +28,7 @@ type Attribute = {
|
|
|
25
28
|
effect: CxImage['effect'];
|
|
26
29
|
format: CxImage['format'];
|
|
27
30
|
'format-dark-mode': CxImage['formatDarkMode'];
|
|
31
|
+
'full-bleed': boolean;
|
|
28
32
|
'header-source-field': CxImage['headerSourceField'];
|
|
29
33
|
height: CxImage['height'];
|
|
30
34
|
'height-mode': CxImage['heightMode'];
|
|
@@ -9,6 +9,7 @@ export { default as damView } from './dam-view';
|
|
|
9
9
|
export { default as divider } from './divider';
|
|
10
10
|
export { default as documentViewer } from './document-viewer';
|
|
11
11
|
export { default as fontKit } from './font-kit';
|
|
12
|
+
export { default as fontKitAdvanced } from './font-kit-advanced';
|
|
12
13
|
export { default as gallery } from './gallery';
|
|
13
14
|
export { default as header } from './header';
|
|
14
15
|
export { default as analytics } from './analytics';
|
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { default as CxSearchBox } from '
|
|
1
|
+
import { default as CxSearchBox } from '../blocks/search-box/search-box.ts';
|
|
2
2
|
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
3
3
|
import { SearchBoxWidthType } from '../../../../types/src/search-box';
|
|
4
4
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
5
5
|
|
|
6
6
|
type Attribute = {
|
|
7
|
+
appearance: CxSearchBox['appearance'];
|
|
7
8
|
'can-search-by-icon': CxSearchBox['canSearchByIcon'];
|
|
9
|
+
'data-icon-name': string;
|
|
8
10
|
label: CxSearchBox['label'];
|
|
9
11
|
placeholder: CxSearchBox['placeholder'];
|
|
10
12
|
size: CxSearchBox['size'];
|
|
11
13
|
'width-type': SearchBoxWidthType;
|
|
12
14
|
};
|
|
15
|
+
/** The icon picker stores its value as JSON, so the default has to match. */
|
|
16
|
+
export declare const DEFAULT_ICON_ATTRIBUTE: string;
|
|
13
17
|
declare const _default: {
|
|
14
18
|
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
15
19
|
defaultValue: Attribute;
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { TabGroupAlignment, TabGroupHidePanelVariant, TabGroupOverflowVariant } from '../../../../types/src/tab-group';
|
|
3
3
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
4
|
|
|
5
|
-
type
|
|
5
|
+
type Attributes = {
|
|
6
6
|
data: string;
|
|
7
7
|
'data-constraints': boolean;
|
|
8
|
+
'full-bleed': boolean;
|
|
8
9
|
'hide-panel-variant': TabGroupHidePanelVariant;
|
|
9
10
|
'multi-language': boolean;
|
|
10
11
|
'overflow-variant': TabGroupOverflowVariant;
|
|
12
|
+
'show-bottom-line': boolean;
|
|
11
13
|
'tab-alignment': TabGroupAlignment;
|
|
14
|
+
'tab-border-sides': string;
|
|
12
15
|
'use-max-panel-height': boolean;
|
|
13
16
|
};
|
|
14
17
|
declare const _default: {
|
|
15
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<
|
|
16
|
-
defaultValue:
|
|
18
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
19
|
+
defaultValue: Attributes;
|
|
17
20
|
stylable: string[];
|
|
18
21
|
};
|
|
19
22
|
export default _default;
|
|
@@ -14,6 +14,7 @@ type Attribute = {
|
|
|
14
14
|
'click-space'?: CxVideo['clickSpace'];
|
|
15
15
|
'content-position': CxVideo['contentPosition'];
|
|
16
16
|
'content-type': CxVideo['contentType'];
|
|
17
|
+
'crop-focus': CxVideo['cropFocus'];
|
|
17
18
|
'data-constraints': boolean;
|
|
18
19
|
'data-content-width-percent': string;
|
|
19
20
|
'data-content-width-pixel': string;
|
|
@@ -26,6 +27,7 @@ type Attribute = {
|
|
|
26
27
|
'download-src'?: CxVideo['downloadSrc'];
|
|
27
28
|
'format': string;
|
|
28
29
|
'format-src': string;
|
|
30
|
+
'full-bleed': boolean;
|
|
29
31
|
'header-source-field': CxVideo['headerSourceField'];
|
|
30
32
|
height: CxVideo['height'];
|
|
31
33
|
'height-mode': CxVideo['heightMode'];
|
|
@@ -33,6 +35,7 @@ type Attribute = {
|
|
|
33
35
|
'manual-thumbnail-format'?: boolean;
|
|
34
36
|
name: CxVideo['name'];
|
|
35
37
|
'name-source-field': CxVideo['nameSourceField'];
|
|
38
|
+
'object-fit': CxVideo['objectFit'];
|
|
36
39
|
'open-in-new-tab'?: CxVideo['openInNewTab'];
|
|
37
40
|
'page-url'?: CxVideo['pageUrl'];
|
|
38
41
|
poster: CxVideo['poster'];
|