@orangelogic/design-system 2.141.0 → 2.143.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/{AxisLabelRadial.C4AH2ZWx.js → AxisLabelRadial.D-dnNhId.js} +1 -1
- package/library/chunks/{BaseColumnSeries.BV8sY1Da.js → BaseColumnSeries.DuJGGHnE.js} +1 -1
- package/library/chunks/{CandlestickSeries.C8BE8OT-.js → CandlestickSeries.Dvk4WnlG.js} +2 -2
- package/library/chunks/{Circle.BaJWdg6Z.js → Circle.CSPkPGZR.js} +1 -1
- package/library/chunks/{ColumnSeries.BGUw3nLY.js → ColumnSeries.BgqnNaWx.js} +2 -2
- package/library/chunks/{EditableAxisLabel.CsgqEVmA.js → EditableAxisLabel.htXPpq9V.js} +2 -2
- package/library/chunks/{EditableLabel.gd9mjKfA.js → EditableLabel.BVdITrjV.js} +1 -1
- package/library/chunks/{Gradient.Sa3COx_2.js → Gradient.Bw8LaBZS.js} +1 -1
- package/library/chunks/{LinearGradient.BM0pPmvI.js → LinearGradient.DryVGwkQ.js} +2 -2
- package/library/chunks/{Picture.DVyGQOmS.js → Picture.GEGxHvQB.js} +1 -1
- package/library/chunks/{Polygon.Du2DRvxU.js → Polygon.B7Vu5sIv.js} +1 -1
- package/library/chunks/{ProgressPie.D3FRfVo5.js → ProgressPie.C2sMNGxC.js} +5 -5
- package/library/chunks/{RadialLabel.Dgipjivh.js → RadialLabel.DCE1UsLn.js} +1 -1
- package/library/chunks/{Scrollbar.BDbLJ_xZ.js → Scrollbar.DoQ3emzl.js} +1 -1
- package/library/chunks/{Slice.BIXpM75a.js → Slice.BtEmJlKG.js} +1 -1
- package/library/chunks/{Slider.BZNFS2HS.js → Slider.BkWEJjkG.js} +1 -1
- package/library/chunks/{SpriteResizer.awVrrc-n.js → SpriteResizer.CkJ6wMt2.js} +1 -1
- package/library/chunks/{Triangle.DW7bUiPK.js → Triangle.DRbqqwUv.js} +1 -1
- package/library/chunks/{ZoomTools.CSBkRpSo.js → ZoomTools.B2lVZ7om.js} +1 -1
- package/library/chunks/{_baseIteratee.DpzDid58.js → _baseIteratee.Dhw-0WrS.js} +12 -12
- package/library/chunks/{_baseUniq.HFKneygy.js → _baseUniq.DP9Qak6V.js} +1 -1
- package/library/chunks/_baseXor.DY_sP7af.js +116 -0
- package/library/chunks/{am-chart.sBfZlJdc.js → am-chart.DaqbO8CU.js} +252 -252
- package/library/chunks/{animation.hpY88RxG.js → animation.DYTPen16.js} +1 -1
- package/library/chunks/{asset-link-format.BDuHqEN5.js → asset-link-format.BVoE-GrD.js} +246 -222
- package/library/chunks/{button.C6-GrLyD.js → button.Bja8HrmJ.js} +4 -4
- package/library/chunks/button.styles.CATjjP1T.js +5 -0
- package/library/chunks/{capitalize.i-sHIcnm.js → capitalize.WZm6pIpy.js} +1 -1
- package/library/chunks/{checkbox.i5dgRvaf.js → checkbox.kdSMUgR1.js} +2 -2
- package/library/chunks/{color-swatch-group.BqJHjmG5.js → color-swatch-group.CwHdAKQv.js} +5444 -4076
- package/library/chunks/{color-swatch.DimFgBSf.js → color-swatch.DCePblYs.js} +34 -34
- package/library/chunks/{colorPicker.r8zsh6Oj.js → colorPicker.B1c_VK97.js} +5 -5
- package/library/chunks/{confirm-popover.CTdjw4Mi.js → confirm-popover.CQm_rVIt.js} +4 -4
- package/library/chunks/{content-builder.BGzxZUgi.js → content-builder.D-_Ou8sw.js} +14 -12
- package/library/chunks/dialog.0TzzxNXE.js +1820 -0
- package/library/chunks/{document-viewer.BqZzhJyR.js → document-viewer.Bb1M9uJ-.js} +9 -9
- package/library/chunks/{dot-pagination.CoG0XmAq.js → dot-pagination.BwSugdZk.js} +2 -2
- package/library/chunks/{endpoints.BlywT4Gl.js → endpoints.Bn_YviaU.js} +89 -88
- package/library/chunks/{exporting.B3VErmmW.js → exporting.C47Rlm_F.js} +2 -2
- package/library/chunks/{flow.gWPD-GN_.js → flow.DhXYaDTn.js} +5 -5
- package/library/chunks/{folder-select.CpK1RX9O.js → folder-select.5f4e8jqB.js} +7 -7
- package/library/chunks/{gantt.D_6T9w75.js → gantt.B-KoNU00.js} +8 -8
- package/library/chunks/{header.zCbb-t6m.js → header.BZKaF_-o.js} +35 -35
- package/library/chunks/{hierarchy.BeJLXp9N.js → hierarchy.DZcTzpNv.js} +5 -5
- package/library/chunks/{hub-connection.Dri0ZNfh.js → hub-connection.C9j9Ce_a.js} +1 -1
- package/library/chunks/{i18n.DeUAP8n2.js → i18n.C4wPyPTR.js} +10 -0
- package/library/chunks/{icon-button.LhIEmHNF.js → icon-button.Ce2tPGuf.js} +2 -2
- package/library/chunks/{icon.DnBh6-56.js → icon.-k4fR0bD.js} +1 -1
- package/library/chunks/{iframe.c0IPEUiJ.js → iframe.CnG8EcG1.js} +2 -2
- package/library/chunks/{image.u2nQNoZ8.js → image.C2acLx6g.js} +4 -4
- package/library/chunks/{index.CnBD7_1u.js → index.B7KpCL4Q.js} +17 -17
- package/library/chunks/{input.ClJ4MEsk.js → input.BAvin1Qu.js} +3 -3
- package/library/chunks/{json.BTCD_bjV.js → json.CYp1GBUl.js} +3 -3
- package/library/chunks/{map.HWubaOh9.js → map.DCp6R-yn.js} +2 -2
- package/library/chunks/{option.n6PDuSs1.js → option.DT-6HmoC.js} +4 -4
- package/library/chunks/{pagination.CNeaChqP.js → pagination.KvDdhXZL.js} +7 -7
- package/library/chunks/{percent.0CeOGNP1.js → percent.C253sJzT.js} +3 -3
- package/library/chunks/{radar.CDUzjkcg.js → radar.Bh033jVx.js} +4 -4
- package/library/chunks/{sliceGrouper.nPe6eWIh.js → sliceGrouper.BOB7t0KC.js} +1 -1
- package/library/chunks/{stock.CmWtnkxv.js → stock.rKM7Pn6U.js} +9 -9
- package/library/chunks/{tab-group.COQGzlw4.js → tab-group.DyInpwMz.js} +4 -4
- package/library/chunks/{timeline.DDCHQ84a.js → timeline.8Dbc5Mzg.js} +5 -5
- package/library/chunks/{toString.CAY8lys2.js → toString.BDhOhZPZ.js} +1 -1
- package/library/chunks/{toast.Bz-j7zP2.js → toast.BYVF5TVe.js} +4 -4
- package/library/chunks/{tree.DeIv5gWv.js → tree.BpSudcAI.js} +4 -4
- package/library/chunks/typography.IqHbnd3C.js +52 -0
- package/library/chunks/{venn.BZgn9wxo.js → venn.9MIxwncF.js} +1 -1
- package/library/chunks/{watch.CThbualB.js → watch.CkGTlwIo.js} +10 -10
- package/library/chunks/{wc.BUEDSaz-.js → wc.s24RZyr1.js} +1 -1
- package/library/chunks/{xy.Wbux-yPv.js → xy.QPSrxL0Q.js} +10 -10
- package/library/components/alert.js +3 -3
- package/library/components/am-chart.js +2 -2
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +5 -5
- package/library/components/atoms.js +21 -21
- package/library/components/audio.js +4 -4
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +2 -2
- package/library/components/button.js +5 -5
- package/library/components/checkbox.js +3 -3
- package/library/components/color-picker.js +79 -72
- package/library/components/color-swatch-group.js +7 -7
- package/library/components/color-swatch.js +4 -4
- package/library/components/confirm-popover.js +5 -5
- package/library/components/copy-button.js +3 -3
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +32 -32
- package/library/components/dialog.js +5 -6
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +5 -5
- package/library/components/dot-pagination.js +3 -3
- package/library/components/drawer.js +4 -4
- package/library/components/dropdown.js +3 -3
- package/library/components/dynamic-select.js +7 -7
- package/library/components/e-chart.js +2 -2
- package/library/components/element-clamp.js +3 -3
- package/library/components/file-on-demand.js +1872 -36
- package/library/components/folder-select.js +7 -7
- 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 +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +3 -3
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +3 -3
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +3 -3
- package/library/components/image-comparer.js +3 -3
- package/library/components/image.js +4 -4
- package/library/components/include.js +1 -1
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +3 -3
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +4 -4
- package/library/components/organisms.js +6 -6
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +8 -8
- package/library/components/popup.js +1 -1
- 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/qr-code.js +1 -1
- package/library/components/radio-button.js +2 -2
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +2 -2
- package/library/components/rating.js +3 -3
- package/library/components/relative-time.js +1 -1
- package/library/components/resize-observer.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 +4 -4
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +4 -4
- package/library/components/spinner.js +1 -1
- package/library/components/split-panel.js +2 -2
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +5 -5
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +6 -6
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +2 -2
- package/library/components/tooltip.js +2 -2
- package/library/components/tree-item.js +5 -5
- package/library/components/tree.js +3 -3
- package/library/components/typeface.js +4 -4
- package/library/components/types.js +27465 -27792
- package/library/components/typography.js +1 -1
- package/library/components/video.js +3 -3
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/color-picker/color-picker.d.ts +1 -0
- package/library/packages/atoms/src/components/header/header.d.ts +1 -1
- package/library/packages/events/src/cx-board-change.d.ts +12 -0
- package/library/packages/events/src/cx-board-selected-change.d.ts +10 -0
- package/library/packages/events/src/cx-font-picker-change.d.ts +9 -0
- package/library/packages/events/src/cx-multi-select-change.d.ts +11 -0
- package/library/packages/events/src/cx-multi-select-configure.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-apply.d.ts +8 -0
- package/library/packages/events/src/cx-table-column-editor-cancel.d.ts +6 -0
- package/library/packages/events/src/cx-table-column-visibility-change.d.ts +9 -0
- package/library/packages/events/src/cx-table-columns-change.d.ts +8 -0
- package/library/packages/events/src/cx-table-edit-columns.d.ts +8 -0
- package/library/packages/events/src/cx-table-header-menu-close.d.ts +6 -0
- package/library/packages/events/src/cx-table-header-menu-select.d.ts +11 -0
- package/library/packages/events/src/events.d.ts +12 -0
- package/library/packages/hybrid/table-core/src/table/components/index.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.d.ts +45 -0
- package/library/packages/hybrid/table-core/src/table/components/table-column-editor/table-column-editor.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.d.ts +55 -0
- package/library/packages/hybrid/table-core/src/table/components/table-header-menu/table-header-menu.styles.d.ts +2 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +41 -1
- package/library/packages/molecules/src/asset-format-picker/asset-format-picker.d.ts +1 -0
- package/library/packages/molecules/src/font-picker/font-picker.d.ts +74 -0
- package/library/packages/molecules/src/font-picker/font-picker.styles.d.ts +2 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/multi-select/components/board/board.d.ts +39 -14
- package/library/packages/molecules/src/multi-select/components/board-list-item/board-list-item.d.ts +1 -10
- package/library/packages/molecules/src/multi-select/multi-select.d.ts +7 -15
- package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +2 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/configs/accordion.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/button.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/color-swatches.d.ts +3 -2
- package/library/packages/organisms/src/content-builder/configs/font-kit.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs/header.d.ts +4 -4
- package/library/packages/organisms/src/content-builder/configs/image.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/configs/text.d.ts +2 -2
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +5 -2
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +6 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +26 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +21 -2
- package/library/packages/services/src/api/asset/asset.d.ts +2 -1
- package/library/packages/services/src/api/endpoints.d.ts +4 -0
- package/library/packages/services/src/api/teamspace/teamspace.d.ts +2 -0
- package/library/packages/types/src/content-builder.d.ts +14 -1
- package/library/packages/types/src/font-picker.d.ts +21 -0
- package/library/packages/types/src/table-column-editor.d.ts +12 -0
- package/library/packages/types/src/table.d.ts +5 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +10 -0
- package/library/packages/utils/src/font/font.d.ts +16 -0
- package/library/react-web-component.d.ts +71 -5
- package/library/utils.js +258 -242
- package/package.json +1 -1
- package/library/chunks/button.styles.Cz4EELcL.js +0 -5
- package/library/chunks/dialog.C79Kd2S4.js +0 -379
- package/library/chunks/file-on-demand.Bxq3-Dk1.js +0 -1985
- package/library/chunks/overlayscrollbars.BMav4RQ4.js +0 -1445
- package/library/chunks/typography.DJC_UXgs.js +0 -52
|
@@ -2,20 +2,14 @@ import { default as CxIconButton } from '../../../atoms/src/components/icon-butt
|
|
|
2
2
|
import { default as CxTooltip } from '../../../atoms/src/components/tooltip/tooltip.ts';
|
|
3
3
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
4
4
|
import { ColumnData } from '../../../types/src/multi-select';
|
|
5
|
-
import { TemplateResult } from 'lit';
|
|
5
|
+
import { PropertyValues, TemplateResult } from 'lit';
|
|
6
6
|
import { default as CxBoard } from './components/board/board';
|
|
7
7
|
|
|
8
|
-
export type CxMultiSelectChangeEvent = CustomEvent<Record<PropertyKey, never>>;
|
|
9
|
-
declare global {
|
|
10
|
-
interface GlobalEventHandlersEventMap {
|
|
11
|
-
'cx-multi-select-change': CxMultiSelectChangeEvent;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
8
|
/**
|
|
15
9
|
* @summary Multi-select allows the user to select multiple items from a list. The items can be moved between two columns. The user can move items between the columns by dragging and dropping them.
|
|
16
10
|
* @element cx-multi-select
|
|
17
11
|
*
|
|
18
|
-
* @event {{ items: BoardItem[]
|
|
12
|
+
* @event {{ id: string; items: BoardItem[] }} cx-multi-select-change - Emitted when the list items change.
|
|
19
13
|
*
|
|
20
14
|
* @typedef BoardItem - {
|
|
21
15
|
* group: string;
|
|
@@ -51,6 +45,9 @@ export default class CxMultiSelect extends CortexElement {
|
|
|
51
45
|
private itemMap;
|
|
52
46
|
selectedItems: Record<string, string[]>;
|
|
53
47
|
private initialSecondColumnItems;
|
|
48
|
+
private hasCapturedSecondColumnBaseline;
|
|
49
|
+
private board1Data;
|
|
50
|
+
private board2Data;
|
|
54
51
|
get firstColumnItemIds(): string[];
|
|
55
52
|
get secondColumnItemIds(): string[];
|
|
56
53
|
/**
|
|
@@ -69,17 +66,12 @@ export default class CxMultiSelect extends CortexElement {
|
|
|
69
66
|
private handleMoveItems;
|
|
70
67
|
private handleMoveItemsRight;
|
|
71
68
|
private handleMoveItemsLeft;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
private moveSelectedItemRight;
|
|
75
|
-
private moveSelectedItemLeft;
|
|
69
|
+
onSecondColumnDataChange(): void;
|
|
70
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
76
71
|
render(): TemplateResult;
|
|
77
72
|
}
|
|
78
73
|
declare global {
|
|
79
74
|
interface HTMLElementTagNameMap {
|
|
80
75
|
'cx-multi-select': CxMultiSelect;
|
|
81
76
|
}
|
|
82
|
-
interface GlobalEventHandlersEventMap {
|
|
83
|
-
'cx-multi-select-change': CxMultiSelectChangeEvent;
|
|
84
|
-
}
|
|
85
77
|
}
|
package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export default class CxAssetTransformationDialog extends CortexElement {
|
|
|
41
41
|
private readonly localize;
|
|
42
42
|
private fetchAssetController?;
|
|
43
43
|
private readonly hasSlotController;
|
|
44
|
+
private apiGetAuthorizedObjects;
|
|
44
45
|
private apiGetAvailableProxies;
|
|
45
46
|
private apiSearchAssets;
|
|
46
47
|
/** Stores the accessible trigger element for focus return and ARIA updates. */
|
|
@@ -81,7 +82,7 @@ export default class CxAssetTransformationDialog extends CortexElement {
|
|
|
81
82
|
private asset;
|
|
82
83
|
/** Available proxy formats fetched alongside the asset. */
|
|
83
84
|
private proxies;
|
|
84
|
-
/**
|
|
85
|
+
/** False while the authorization check is in flight or after it confirms no access. */
|
|
85
86
|
private canAccess;
|
|
86
87
|
private get hasTransformations();
|
|
87
88
|
handleAssetIdChange(): Promise<void>;
|
|
@@ -8,6 +8,8 @@ export declare class ConfigFormController implements ReactiveController {
|
|
|
8
8
|
private readonly localize;
|
|
9
9
|
private apiSearchAssets;
|
|
10
10
|
private readonly pendingGalleryPickerSaves;
|
|
11
|
+
private readonly fontFamiliesCache;
|
|
12
|
+
private readonly pendingFontFamilyFetches;
|
|
11
13
|
constructor(host: ReactiveControllerHost & CxConfigForm);
|
|
12
14
|
hostConnected(): void;
|
|
13
15
|
/**
|
package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { default as CxTooltip } from '../../../../../atoms/src/components/toolti
|
|
|
27
27
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
28
28
|
import { default as CxVisuallyHidden } from '../../../../../atoms/src/components/visually-hidden/visually-hidden.ts';
|
|
29
29
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
30
|
-
import { CxIconPicker } from '../../../../../molecules/src/index.ts';
|
|
30
|
+
import { CxFontPicker, CxIconPicker } from '../../../../../molecules/src/index.ts';
|
|
31
31
|
import { default as CxAssetFormatPicker } from '../../../../../molecules/src/asset-format-picker/asset-format-picker.ts';
|
|
32
32
|
import { default as CxAssetPicker } from '../../../../../molecules/src/asset-picker/asset-picker.ts';
|
|
33
33
|
import { default as CxBicolorPicker } from '../../../../../molecules/src/bicolor-picker/bicolor-picker.ts';
|
|
@@ -97,6 +97,7 @@ export default class CxConfigForm extends CortexElement {
|
|
|
97
97
|
'cx-dropdown': typeof CxDropdown;
|
|
98
98
|
'cx-dynamic-select': typeof CxDynamicSelect;
|
|
99
99
|
'cx-folder-picker': typeof CxFolderPicker;
|
|
100
|
+
'cx-font-picker': typeof CxFontPicker;
|
|
100
101
|
'cx-gallery-picker': typeof CxGalleryPicker;
|
|
101
102
|
'cx-grid': typeof CxGrid;
|
|
102
103
|
'cx-grid-item': typeof CxGridItem;
|
package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts
CHANGED
|
@@ -61,6 +61,11 @@ export default class CxConfigManager extends CortexElement {
|
|
|
61
61
|
* @default false
|
|
62
62
|
*/
|
|
63
63
|
enableAssetFormatControls: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Exposes the font family / style / weight pickers in the block config sidebar.
|
|
66
|
+
* @default false
|
|
67
|
+
*/
|
|
68
|
+
enableFontFamilyControls: boolean;
|
|
64
69
|
/**
|
|
65
70
|
* Root folder ids the folder-picker controls are restricted to (forwarded to
|
|
66
71
|
* cx-config-form). Sourced from the space's configured root folders.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
type Attributes = {
|
|
@@ -8,7 +8,7 @@ type Attributes = {
|
|
|
8
8
|
'multi-language': boolean;
|
|
9
9
|
};
|
|
10
10
|
declare const _default: {
|
|
11
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
11
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
12
12
|
defaultValue: Attributes;
|
|
13
13
|
stylable: string[];
|
|
14
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonSize, ButtonWidthType } from '../../../../types/src/button';
|
|
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
4
|
import { default as CxSbButton } from '../blocks/button/button';
|
|
5
5
|
|
|
@@ -29,7 +29,7 @@ type Attributes = {
|
|
|
29
29
|
'width-type': ButtonWidthType;
|
|
30
30
|
};
|
|
31
31
|
declare const _default: {
|
|
32
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
32
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
33
33
|
defaultValue: Partial<Attributes>;
|
|
34
34
|
stylable: string[];
|
|
35
35
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CxColorSwatchGroupVariant } from '../../../../types/src/color-swatch-group';
|
|
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
4
|
|
|
5
5
|
type Attribute = {
|
|
6
6
|
'can-copy': boolean;
|
|
7
|
+
'can-custom-shadow-and-border-radius': boolean;
|
|
7
8
|
data: string;
|
|
8
9
|
'max-col': string;
|
|
9
10
|
'multi-language': boolean;
|
|
@@ -11,7 +12,7 @@ type Attribute = {
|
|
|
11
12
|
variant: CxColorSwatchGroupVariant;
|
|
12
13
|
};
|
|
13
14
|
declare const _default: {
|
|
14
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
15
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
15
16
|
defaultValue: Attribute;
|
|
16
17
|
stylable: string[];
|
|
17
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
import { default as CxFontKit } from '../blocks/font-kit/font-kit';
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ type Attributes = {
|
|
|
19
19
|
variant: CxFontKit['variant'];
|
|
20
20
|
};
|
|
21
21
|
declare const _default: {
|
|
22
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attributes>>;
|
|
22
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attributes>>;
|
|
23
23
|
defaultValue: Partial<Attributes>;
|
|
24
24
|
stylable: string[];
|
|
25
25
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { Alignment, Variant } from '../../../../types/src/header';
|
|
3
3
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
4
4
|
|
|
@@ -7,13 +7,13 @@ type Attribute = {
|
|
|
7
7
|
'custom-line-height': boolean;
|
|
8
8
|
'data-constraints': boolean;
|
|
9
9
|
'disabled-copy-button': boolean;
|
|
10
|
-
'font-size'
|
|
10
|
+
'font-size': string;
|
|
11
11
|
'has-anchor-link': boolean;
|
|
12
|
-
role
|
|
12
|
+
role: string;
|
|
13
13
|
variant: Variant;
|
|
14
14
|
};
|
|
15
15
|
declare const _default: {
|
|
16
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
16
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
17
17
|
defaultValue: Attribute;
|
|
18
18
|
stylable: string[];
|
|
19
19
|
};
|
|
@@ -37,6 +37,7 @@ type Attribute = {
|
|
|
37
37
|
'page-url'?: CxImage['pageUrl'];
|
|
38
38
|
'record-id'?: CxImage['recordId'];
|
|
39
39
|
'record-id-dark-mode'?: CxImage['recordIdDarkMode'];
|
|
40
|
+
'retry-on-error'?: CxImage['retryOnError'];
|
|
40
41
|
'share-id'?: CxImage['shareId'];
|
|
41
42
|
'share-name'?: CxImage['shareName'];
|
|
42
43
|
'share-src'?: CxImage['shareSrc'];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { PropertyConfig } from '../../../../types/src/content-builder';
|
|
1
|
+
import { ConfigsOptions, PropertyConfig } from '../../../../types/src/content-builder';
|
|
2
2
|
import { LocalizeController } from '../../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
type Attribute = {
|
|
5
5
|
'data-constraints': boolean;
|
|
6
6
|
};
|
|
7
7
|
declare const _default: {
|
|
8
|
-
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|
|
8
|
+
configs: (localize: LocalizeController, options?: ConfigsOptions) => Array<PropertyConfig<Attribute>>;
|
|
9
9
|
defaultValue: Attribute;
|
|
10
10
|
stylable: string[];
|
|
11
11
|
};
|
|
@@ -86,6 +86,7 @@ export default class ConfigsController {
|
|
|
86
86
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
87
87
|
}>[] | import('../../../types/src/content-builder').PropertyConfig<{
|
|
88
88
|
'can-copy': boolean;
|
|
89
|
+
'can-custom-shadow-and-border-radius': boolean;
|
|
89
90
|
data: string;
|
|
90
91
|
'max-col': string;
|
|
91
92
|
'multi-language': boolean;
|
|
@@ -225,9 +226,9 @@ export default class ConfigsController {
|
|
|
225
226
|
'custom-line-height': boolean;
|
|
226
227
|
'data-constraints': boolean;
|
|
227
228
|
'disabled-copy-button': boolean;
|
|
228
|
-
'font-size'
|
|
229
|
+
'font-size': string;
|
|
229
230
|
'has-anchor-link': boolean;
|
|
230
|
-
role
|
|
231
|
+
role: string;
|
|
231
232
|
variant: import('../../../types/src/header').Variant;
|
|
232
233
|
}>[] | import('../../../types/src/content-builder').PropertyConfig<{
|
|
233
234
|
name: string;
|
|
@@ -268,6 +269,7 @@ export default class ConfigsController {
|
|
|
268
269
|
'page-url'?: import('./blocks/image/image').default["pageUrl"];
|
|
269
270
|
'record-id'?: import('./blocks/image/image').default["recordId"];
|
|
270
271
|
'record-id-dark-mode'?: import('./blocks/image/image').default["recordIdDarkMode"];
|
|
272
|
+
'retry-on-error'?: import('./blocks/image/image').default["retryOnError"];
|
|
271
273
|
'share-id'?: import('./blocks/image/image').default["shareId"];
|
|
272
274
|
'share-name'?: import('./blocks/image/image').default["shareName"];
|
|
273
275
|
'share-src'?: import('./blocks/image/image').default["shareSrc"];
|
|
@@ -425,6 +427,7 @@ export default class ConfigsController {
|
|
|
425
427
|
'zoom-style': import('../../../types/src/highlightable-element').HighlightableElementZoomStyle;
|
|
426
428
|
}> | {
|
|
427
429
|
'can-copy': boolean;
|
|
430
|
+
'can-custom-shadow-and-border-radius': boolean;
|
|
428
431
|
data: string;
|
|
429
432
|
'max-col': string;
|
|
430
433
|
'multi-language': boolean;
|
|
@@ -105,6 +105,12 @@ export default class CxContentBuilder extends CortexElement {
|
|
|
105
105
|
* @default false
|
|
106
106
|
*/
|
|
107
107
|
enableAssetFormatControls: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Set `enable-font-family-controls` to expose the font family / style / weight
|
|
110
|
+
* pickers (and their font-size controls) in the block config sidebar.
|
|
111
|
+
* @default false
|
|
112
|
+
*/
|
|
113
|
+
enableFontFamilyControls: boolean;
|
|
108
114
|
/**
|
|
109
115
|
* Root folder ids that the folder-picker controls in the block config are
|
|
110
116
|
* restricted to.
|
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
import { BlockType, PropertyConfig } from '../../../types/src/content-builder';
|
|
2
|
+
import { FontTypeface } from '../../../types/src/font-picker';
|
|
2
3
|
|
|
4
|
+
export type FontPickerKeys = {
|
|
5
|
+
familyKey: string;
|
|
6
|
+
styleKey: string;
|
|
7
|
+
weightKey?: string;
|
|
8
|
+
};
|
|
9
|
+
type FontPickerStoredValues = {
|
|
10
|
+
family: string;
|
|
11
|
+
style: string;
|
|
12
|
+
weight: string;
|
|
13
|
+
};
|
|
3
14
|
export declare function getTemplateClass(templateId: string): string;
|
|
4
15
|
export declare function getContentConfigs(traits: PropertyConfig[], adHocProperties: string[]): string[];
|
|
5
16
|
export declare function getLimitedBlocks(blockType: BlockType): BlockType[];
|
|
17
|
+
export declare function getFontPickerControlValues({ blockAttributes, keys, typefaces, }: {
|
|
18
|
+
blockAttributes: Record<string, unknown>;
|
|
19
|
+
keys: FontPickerKeys;
|
|
20
|
+
typefaces: FontTypeface[];
|
|
21
|
+
}): {
|
|
22
|
+
familyValue: string;
|
|
23
|
+
styleValue: string;
|
|
24
|
+
};
|
|
25
|
+
export declare function getFontPickerAttributeValues({ clearDefaultFamily, familyValue, styleValue, typefaces, }: {
|
|
26
|
+
clearDefaultFamily?: boolean;
|
|
27
|
+
familyValue: string;
|
|
28
|
+
styleValue: string;
|
|
29
|
+
typefaces: FontTypeface[];
|
|
30
|
+
}): FontPickerStoredValues;
|
|
31
|
+
export {};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropertyConfig } from '../../../types/src/content-builder';
|
|
2
|
+
import { FontTypeface } from '../../../types/src/font-picker';
|
|
1
3
|
import { LocalizeController } from '../../../utils/src/custom-element/i18n';
|
|
2
4
|
import { STYLE_CONTROL } from './content-builder-constants';
|
|
3
5
|
|
|
@@ -70,9 +72,9 @@ export default class StyleController {
|
|
|
70
72
|
value: unknown;
|
|
71
73
|
}) => Record<string, any>) | undefined;
|
|
72
74
|
checkedValue?: string | boolean;
|
|
73
|
-
children?:
|
|
75
|
+
children?: PropertyConfig[];
|
|
74
76
|
clearable?: boolean;
|
|
75
|
-
controlType: "asset-transformation" | "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "dam-custom-toolbar-buttons" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "info-text" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "audio-picker" | "asset-format-picker" | "video-picker";
|
|
77
|
+
controlType: "asset-transformation" | "bicolor-picker" | "border-input-group" | "button-group" | "checkbox" | "checkbox-group" | "color-swatch-picker" | "corner-position-input-group" | "dam-custom-toolbar-buttons" | "download-format-picker" | "file" | "folder-picker" | "gallery-picker" | "group" | "group-heading" | "icon-picker" | "image-picker" | "info-text" | "input" | "list-editor" | "all-picker" | "other-picker" | "padding-input-group" | "page-picker" | "placeholder" | "position-picker" | "radio-card-group" | "radio-group" | "select" | "shadow-input-group" | "size-input-group" | "switch" | "table" | "text" | "audio-picker" | "asset-format-picker" | "font-picker" | "video-picker";
|
|
76
78
|
cornerStyleKey?: {
|
|
77
79
|
offsetX: string;
|
|
78
80
|
offsetY: string;
|
|
@@ -91,6 +93,12 @@ export default class StyleController {
|
|
|
91
93
|
useFullPath?: boolean;
|
|
92
94
|
variant?: import('../../../types/src/folder-select').FolderSelectVariant;
|
|
93
95
|
};
|
|
96
|
+
fontPickerConfigs?: {
|
|
97
|
+
api: () => Promise<FontTypeface[]>;
|
|
98
|
+
familyKey: string;
|
|
99
|
+
styleKey: string;
|
|
100
|
+
weightKey?: string;
|
|
101
|
+
};
|
|
94
102
|
galleryPickerConfigs?: {
|
|
95
103
|
dialog: import('../../../types/src/content-builder').DialogType;
|
|
96
104
|
formatKey?: string;
|
|
@@ -159,4 +167,15 @@ export default class StyleController {
|
|
|
159
167
|
useSearchTerm?: boolean;
|
|
160
168
|
width?: ((record: Record<string, unknown>) => string | number) | string | number;
|
|
161
169
|
};
|
|
170
|
+
/**
|
|
171
|
+
* Builds the controls for a font picker.
|
|
172
|
+
*/
|
|
173
|
+
getFontPickerControls<T = Record<string, any>>({ api, familyKey, styleKey, type, weightKey, ...control }: Omit<Partial<PropertyConfig<T>>, 'api' | 'controlType' | 'fontPickerConfigs'> & {
|
|
174
|
+
api: () => Promise<FontTypeface[]>;
|
|
175
|
+
familyKey: string;
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
styleKey: string;
|
|
179
|
+
weightKey?: string;
|
|
180
|
+
}): Array<PropertyConfig<T>>;
|
|
162
181
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetAllFormatCodesResponse, GetAssetsInFolderRequest, GetAssetsInFolderResponse, GetAssetsRequest, GetAssetsResponse, GetAvailableProxiesResponse, GetCropZoneSuggestionRequest, GetCropZoneSuggestionResponse, GetTransformAssetLinkResponse, SearchAssetsParams, SearchAssetsResponse } from './asset.types';
|
|
1
|
+
import { GetAllFormatCodesResponse, GetAssetsInFolderRequest, GetAssetsInFolderResponse, GetAssetsRequest, GetAssetsResponse, GetAuthorizedObjectsRequest, GetAuthorizedObjectsResponse, GetAvailableProxiesResponse, GetCropZoneSuggestionRequest, GetCropZoneSuggestionResponse, GetTransformAssetLinkResponse, SearchAssetsParams, SearchAssetsResponse } from './asset.types';
|
|
2
2
|
|
|
3
3
|
export declare const DEFAULT_VIEW_SIZE = "CoreField.LargeSizePreview";
|
|
4
4
|
export declare const FIELD_CORTEX_PATH = "Document.CortexPath";
|
|
@@ -74,3 +74,4 @@ export declare function apiGetImagePasteFolder({ baseUri, documentRecordID, }: {
|
|
|
74
74
|
baseUri?: string;
|
|
75
75
|
documentRecordID?: string;
|
|
76
76
|
}): Promise<string>;
|
|
77
|
+
export declare function apiGetAuthorizedObjects({ recordIds, rightsToCheck, }: GetAuthorizedObjectsRequest): Promise<GetAuthorizedObjectsResponse>;
|
|
@@ -3,6 +3,7 @@ export declare const AVAILABLE_PROXIES_API_ENDPOINT = "webapi/extensibility/inte
|
|
|
3
3
|
export declare const ALL_FORMAT_CODES_API_ENDPOINT = "webapi/extensibility/integrations/gab/assetbrowser/getallformatcodes_428H";
|
|
4
4
|
export declare const IMAGE_PASTE_FOLDER_API_ENDPOINT = "webapi/objectmanagement/singleobjecttools/profile/getimagepastefolder_42JL";
|
|
5
5
|
export declare enum TEAMSPACE_API_ENDPOINT {
|
|
6
|
+
GET_FONT_FAMILIES = "webapi/objectmanagement/teamspaces/getfontfamilies_42L7_v1",
|
|
6
7
|
GET_PAGES_AND_LINKS = "webapi/objectmanagement/teamspaces/pagesandlinks_412Y_v1",
|
|
7
8
|
GET_SPACE_FONT_FAMILY = "webapi/objectmanagement/teamspaces/getspacefonts_41I6_v1",
|
|
8
9
|
GET_SPACE_LIST = "webapi/objectmanagement/teamspaces/getteamspaces_41I3_v1",
|
|
@@ -57,6 +58,9 @@ export declare enum CMS5_API_ENDPOINT {
|
|
|
57
58
|
LIST_BLOCK_TEMPLATES = "webapi/cms/cms5/blocktemplate/getlisttemplates_428o_v1",
|
|
58
59
|
SEARCH_ASSETS = "webapi/cms/cms5/search_42QJ_v1"
|
|
59
60
|
}
|
|
61
|
+
export declare enum AUTHORIZATION_API_ENDPOINT {
|
|
62
|
+
GET_AUTHORIZED_OBJECTS = "webapi/objectmanagement/authorization/getauthorizedobjects_44H_v1"
|
|
63
|
+
}
|
|
60
64
|
export declare enum PARAMETER_API_ENDPOINT {
|
|
61
65
|
GET_PARAMETER_VALUES = "webapi/configuration/parameters/get_45F_v1"
|
|
62
66
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { TeamSpace, TeamSpaceFontFamily } from '../../../../types/src/content-builder';
|
|
2
|
+
import { FontTypeface } from '../../../../types/src/font-picker';
|
|
2
3
|
import { GetPagesAndLinksResponse, GetUserRoleResponse } from './teamspace.types';
|
|
3
4
|
|
|
4
5
|
export declare function apiGetTeamSpaceRoles(): Promise<GetUserRoleResponse>;
|
|
5
6
|
export declare function apiGetTeamSpaceFontFamily(): Promise<TeamSpaceFontFamily | undefined>;
|
|
7
|
+
export declare function apiGetFontFamilies(): Promise<FontTypeface[]>;
|
|
6
8
|
export declare function apiGetTeamSpaceSpaceList({ searchTerm, }: {
|
|
7
9
|
searchTerm?: string;
|
|
8
10
|
}): Promise<TeamSpace[]>;
|
|
@@ -3,8 +3,10 @@ import { TemplateResult } from 'lit';
|
|
|
3
3
|
import { StyleInfo } from 'lit/directives/style-map';
|
|
4
4
|
import { DownloadDocType } from './download-format-picker';
|
|
5
5
|
import { FolderSelectApi, FolderSelectVariant } from './folder-select';
|
|
6
|
+
import { FontTypeface } from './font-picker';
|
|
6
7
|
import { TableSelectColumn } from './table-select';
|
|
7
8
|
|
|
9
|
+
export declare const SPACE_DEFAULT_FONT_FAMILY = "space-default";
|
|
8
10
|
export declare enum DeviceType {
|
|
9
11
|
Desktop = "desktop",
|
|
10
12
|
Mobile = "mobile",
|
|
@@ -78,7 +80,7 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
78
80
|
checkedValue?: string | boolean;
|
|
79
81
|
children?: PropertyConfig[];
|
|
80
82
|
clearable?: boolean;
|
|
81
|
-
controlType: 'asset-transformation' | 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'dam-custom-toolbar-buttons' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'info-text' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'audio-picker' | 'asset-format-picker' | 'video-picker';
|
|
83
|
+
controlType: 'asset-transformation' | 'bicolor-picker' | 'border-input-group' | 'button-group' | 'checkbox' | 'checkbox-group' | 'color-swatch-picker' | 'corner-position-input-group' | 'dam-custom-toolbar-buttons' | 'download-format-picker' | 'file' | 'folder-picker' | 'gallery-picker' | 'group' | 'group-heading' | 'icon-picker' | 'image-picker' | 'info-text' | 'input' | 'list-editor' | 'all-picker' | 'other-picker' | 'padding-input-group' | 'page-picker' | 'placeholder' | 'position-picker' | 'radio-card-group' | 'radio-group' | 'select' | 'shadow-input-group' | 'size-input-group' | 'switch' | 'table' | 'text' | 'audio-picker' | 'asset-format-picker' | 'font-picker' | 'video-picker';
|
|
82
84
|
cornerStyleKey?: {
|
|
83
85
|
offsetX: string;
|
|
84
86
|
offsetY: string;
|
|
@@ -97,6 +99,16 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
97
99
|
useFullPath?: boolean;
|
|
98
100
|
variant?: FolderSelectVariant;
|
|
99
101
|
};
|
|
102
|
+
fontPickerConfigs?: {
|
|
103
|
+
/** Callback to fetch the available font families. */
|
|
104
|
+
api: () => Promise<FontTypeface[]>;
|
|
105
|
+
/** Block-attribute key that stores the selected font family value. */
|
|
106
|
+
familyKey: string;
|
|
107
|
+
/** Block-attribute key that stores the selected font style value. */
|
|
108
|
+
styleKey: string;
|
|
109
|
+
/** Block-attribute key that stores the selected font weight value. */
|
|
110
|
+
weightKey?: string;
|
|
111
|
+
};
|
|
100
112
|
galleryPickerConfigs?: {
|
|
101
113
|
dialog: DialogType;
|
|
102
114
|
/** The block-attribute key for the format used to resolve records' src URLs after picking. */
|
|
@@ -333,4 +345,5 @@ export declare enum DataSourceId {
|
|
|
333
345
|
}
|
|
334
346
|
export type ConfigsOptions = {
|
|
335
347
|
enableAssetFormatControls?: boolean;
|
|
348
|
+
enableFontFamilyControls?: boolean;
|
|
336
349
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum FontPickerLayout {
|
|
2
|
+
Labeled = "labeled",
|
|
3
|
+
Stacked = "stacked"
|
|
4
|
+
}
|
|
5
|
+
export interface FontFamily {
|
|
6
|
+
fontStyle?: string;
|
|
7
|
+
fontWeight?: number;
|
|
8
|
+
name: string;
|
|
9
|
+
/** CSS font-family value applied when this family is selected. Derived from name if omitted. */
|
|
10
|
+
value?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface FontTypeface {
|
|
13
|
+
families: FontFamily[];
|
|
14
|
+
typeface: string;
|
|
15
|
+
/** CSS-safe identifier with no spaces. Derived from typeface if omitted. */
|
|
16
|
+
value?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface FontTypefaceGroup {
|
|
19
|
+
label: string;
|
|
20
|
+
typefaces: FontTypeface[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** One column presented in the "Edit columns" bulk editor, in current render order. */
|
|
2
|
+
export interface TableColumnEditorEntry {
|
|
3
|
+
field: string;
|
|
4
|
+
frozen: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** Board identifiers used by the two-list column editor's cx-multi-select. */
|
|
9
|
+
export declare enum TableColumnEditorBoardId {
|
|
10
|
+
Available = "available",
|
|
11
|
+
Visible = "visible"
|
|
12
|
+
}
|
|
@@ -50,6 +50,11 @@ export declare enum TableDataFormat {
|
|
|
50
50
|
Json = "json",
|
|
51
51
|
Xml = "xml"
|
|
52
52
|
}
|
|
53
|
+
/** Actions offered by the column-header right-click context menu. */
|
|
54
|
+
export declare enum TableHeaderMenuAction {
|
|
55
|
+
EditColumns = "edit-columns",
|
|
56
|
+
HideColumn = "hide-column"
|
|
57
|
+
}
|
|
53
58
|
/**
|
|
54
59
|
* Tabulator Interface
|
|
55
60
|
*/
|
|
@@ -122,6 +122,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
122
122
|
automaticZoom: string;
|
|
123
123
|
autoplay: string;
|
|
124
124
|
autoplayHelpText: string;
|
|
125
|
+
availableColumns: string;
|
|
125
126
|
availablePanels: string;
|
|
126
127
|
availableSortOrders: string;
|
|
127
128
|
availableViews: string;
|
|
@@ -367,6 +368,8 @@ export interface Translation extends DefaultTranslation {
|
|
|
367
368
|
editChapter: string;
|
|
368
369
|
editChapters: string;
|
|
369
370
|
editColor: string;
|
|
371
|
+
editColumns: string;
|
|
372
|
+
editColumnsMinVisibleNote: string;
|
|
370
373
|
editControl: string;
|
|
371
374
|
editCustomButton: string;
|
|
372
375
|
editFolderCard: string;
|
|
@@ -456,12 +459,14 @@ export interface Translation extends DefaultTranslation {
|
|
|
456
459
|
font: string;
|
|
457
460
|
fontAwesome: string;
|
|
458
461
|
fontColor: string;
|
|
462
|
+
fontFamily: string;
|
|
459
463
|
fontKit: string;
|
|
460
464
|
fontKitPreview: string;
|
|
461
465
|
fontNthOfTotalFonts: (total: number, index: number, fontFamily: string, fontWeight: string, fontStyle: string) => string;
|
|
462
466
|
fontShowcase: string;
|
|
463
467
|
fontSize: string;
|
|
464
468
|
fontSizes: string;
|
|
469
|
+
fontStyle: string;
|
|
465
470
|
fontWeight: string;
|
|
466
471
|
fonts: string;
|
|
467
472
|
formToOpen: string;
|
|
@@ -497,6 +502,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
497
502
|
heightMode: string;
|
|
498
503
|
help: string;
|
|
499
504
|
hideCode: string;
|
|
505
|
+
hideColumn: string;
|
|
500
506
|
hidePassword: string;
|
|
501
507
|
highlight: string;
|
|
502
508
|
highlightBackgroundDescription: string;
|
|
@@ -573,6 +579,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
573
579
|
leftAlign: string;
|
|
574
580
|
leftSidePanel: string;
|
|
575
581
|
letterSpacing: string;
|
|
582
|
+
level: string;
|
|
576
583
|
levelOfAccess: string;
|
|
577
584
|
lineAppearance: string;
|
|
578
585
|
lineColor: string;
|
|
@@ -845,6 +852,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
845
852
|
second: string;
|
|
846
853
|
secondary: string;
|
|
847
854
|
sectionBackground: string;
|
|
855
|
+
sectionTitles: string;
|
|
848
856
|
securityPoint: string;
|
|
849
857
|
seeThru: string;
|
|
850
858
|
selectAColor: string;
|
|
@@ -956,6 +964,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
956
964
|
textInput: string;
|
|
957
965
|
textReveal: string;
|
|
958
966
|
textSelectionTool: string;
|
|
967
|
+
textSize: string;
|
|
959
968
|
textToSpeechRequestInProgress: string;
|
|
960
969
|
textToSpeechUserGuide: string;
|
|
961
970
|
textures: string;
|
|
@@ -1058,6 +1067,7 @@ export interface Translation extends DefaultTranslation {
|
|
|
1058
1067
|
virtualFolder: string;
|
|
1059
1068
|
virtualFolderHelpText: string;
|
|
1060
1069
|
visibility: string;
|
|
1070
|
+
visibleColumns: string;
|
|
1061
1071
|
voice: string;
|
|
1062
1072
|
voiceHelpText: (tags: string[], all?: boolean) => string;
|
|
1063
1073
|
voiceSavedError: string;
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { Typeface } from '../../../types/src/font-kit';
|
|
2
|
+
import { FontFamily, FontTypeface } from '../../../types/src/font-picker';
|
|
2
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Stable option value for a typeface. Uses the explicit `value` when provided,
|
|
6
|
+
* otherwise derives a CSS-safe slug from the typeface name.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getTypefaceOptionValue(typeface: FontTypeface): string;
|
|
9
|
+
/**
|
|
10
|
+
* Stable, unique option value for a font-family variant.
|
|
11
|
+
*
|
|
12
|
+
* `value` is the CSS font-family to apply and is only usable as the option
|
|
13
|
+
* identity when it uniquely identifies the variant. Some APIs return the same
|
|
14
|
+
* `value` for every variant of a typeface (e.g. all "Lato" variants share
|
|
15
|
+
* `value: "Lato"` and differ only by name/weight/style) — in that case the
|
|
16
|
+
* value can't be the selector identity, so fall back to a name-based slug.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getFontFamilyOptionValue(fontFamily: FontFamily, fontFamilies: FontFamily[]): string;
|
|
3
19
|
/**
|
|
4
20
|
* Test if a specific font configuration is available using a test element
|
|
5
21
|
*/
|