@orangelogic/design-system 2.134.0 → 2.136.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/asset-link-format.BBWyY5fn.js +2627 -0
- package/library/chunks/{button.DYoFn504.js → button.3giRMk79.js} +2 -2
- package/library/chunks/{checkbox.BzbWmmJ0.js → checkbox.B-2O517F.js} +2 -2
- package/library/chunks/{table.DWcxLbq6.js → color-swatch-group.DC6vIYo4.js} +3133 -2887
- package/library/chunks/{color-swatch.0zyBEfL_.js → color-swatch.g3FPUnxM.js} +2 -2
- package/library/chunks/{confirm-popover.DpVYvK20.js → confirm-popover.DtndPsMa.js} +3 -3
- package/library/chunks/{dialog.BwBD_hJi.js → dialog.BQq3xBeH.js} +2 -2
- package/library/chunks/directive-helpers.DEDMV45_.js +42 -0
- package/library/chunks/{document-viewer.BM716ovi.js → document-viewer.BQPJD2lJ.js} +8 -8
- package/library/chunks/{dom.BXeuEG1b.js → dom.acWb8KCK.js} +1 -1
- package/library/chunks/{dot-pagination.B70lV5Av.js → dot-pagination.DBk9Rz1e.js} +1 -1
- package/library/chunks/{endpoints.6E17hFiK.js → endpoints.tU0_RZ_7.js} +4 -4
- package/library/chunks/{file-on-demand.CsT96fvk.js → file-on-demand.Bnloo9Ui.js} +12 -12
- package/library/chunks/folder-select.DuG4dSPm.js +942 -0
- package/library/chunks/{form.3af0bYrm.js → form.K1XOtu3S.js} +1 -1
- package/library/chunks/{header.BMGvKrdP.js → header.Bpjw08j7.js} +1 -1
- package/library/chunks/{i18n.DoMIwXr2.js → i18n.DJikbkDK.js} +48 -12
- package/library/chunks/{icon-button.B-Jf9W3v.js → icon-button.xobY-9OH.js} +1 -1
- package/library/chunks/{iframe.Cdv6esyS.js → iframe.BkvxcywO.js} +1 -1
- package/library/chunks/{image.SLqIVjqc.js → image.KZRXIthe.js} +241 -229
- package/library/chunks/{input.CQNhMu4z.js → input.GUw7x9tK.js} +3 -3
- package/library/chunks/{keyed.C0rkKrxH.js → keyed.DdOUTIg-.js} +1 -1
- package/library/chunks/{live.SCz6M8Gs.js → live.DCegntDo.js} +1 -1
- package/library/chunks/{option.SCVixE2L.js → option.uHye0aDT.js} +1 -1
- package/library/chunks/{pagination.BFE6Nk3_.js → pagination.D8Hzwlan.js} +6 -6
- package/library/chunks/{ref.bzeTdX0K.js → ref.DktKp7fP.js} +1 -1
- package/library/chunks/{repeat.DbF2p5ae.js → repeat.CFjcER6_.js} +1 -1
- package/library/chunks/{resizable-component.styles.BVhOesNE.js → resizable-component.styles.CAfXABBc.js} +5 -5
- package/library/chunks/{string.CbnVBzsd.js → string.CjJ09HK3.js} +14 -11
- package/library/chunks/{tab-group.C-p2Dljr.js → tab-group.0_aOE22R.js} +5 -5
- package/library/chunks/toast.Bz-j7zP2.js +109 -0
- package/library/chunks/{tree.C2mLhREj.js → tree.C14rLLol.js} +3 -3
- package/library/chunks/url.-WDYqplj.js +42 -0
- package/library/components/alert.js +2 -2
- package/library/components/asset-link-format.js +16 -2163
- package/library/components/atoms.js +49 -51
- package/library/components/audio.js +3 -3
- package/library/components/border-input-group.js +2 -2
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +3 -3
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +6 -7
- package/library/components/color-swatch.js +3 -3
- package/library/components/confirm-popover.js +4 -4
- package/library/components/copy-button.js +1 -1
- package/library/components/corner-position-input-group.js +3 -3
- package/library/components/date-calendar.js +2 -2
- package/library/components/details.js +1 -1
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/document-viewer.js +4 -4
- 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 +88 -85
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +13 -13
- package/library/components/folder-select.js +5 -5
- package/library/components/format-bytes.js +1 -1
- package/library/components/format-date.js +1 -1
- package/library/components/format-number.js +1 -1
- package/library/components/format-time.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +6 -5
- package/library/components/input.js +4 -4
- package/library/components/line-clamp.js +1 -1
- package/library/components/masonry.js +3 -3
- package/library/components/menu-item.js +2 -2
- package/library/components/menu.js +1 -1
- package/library/components/molecules.js +27 -29
- package/library/components/option.js +2 -2
- package/library/components/organisms.js +6 -6
- package/library/components/padding-input-group.js +2 -2
- package/library/components/pagination.js +7 -7
- 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/radio-group.js +1 -1
- package/library/components/range.js +5 -5
- package/library/components/rating.js +2 -2
- package/library/components/relative-time.js +1 -1
- package/library/components/select.js +10 -7
- package/library/components/shadow-input-group.js +2 -2
- 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/stepper-wizard.js +1 -1
- package/library/components/switch.js +2 -2
- package/library/components/tab-group.js +5 -5
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +2 -2
- package/library/components/textarea.js +2 -2
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +46083 -43779
- package/library/components/video.js +3 -3
- package/library/package.json +3 -1
- package/library/packages/atoms/src/components/image/image.d.ts +3 -0
- package/library/packages/atoms/src/components/select/select.d.ts +6 -0
- package/library/packages/atoms/src/components/tab-group/tab-group.d.ts +1 -0
- package/library/packages/atoms/src/index.d.ts +0 -1
- package/library/packages/events/src/cx-folder-select-selection-seeded.d.ts +6 -0
- package/library/packages/events/src/cx-image-src-resolved.d.ts +9 -0
- package/library/packages/events/src/cx-pdf-viewer-annotation-draw-mode-change.d.ts +10 -0
- package/library/packages/events/src/cx-pdf-viewer-annotation-draw-params-change.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-more-options-select.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-mode-change.d.ts +10 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-annotation-params-change.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-click.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-page-change.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-scale-change.d.ts +8 -0
- package/library/packages/events/src/cx-pdf-viewer-toolbar-view-toggle.d.ts +11 -0
- package/library/packages/events/src/cx-pdf-viewer-view-on-asset-toggle.d.ts +11 -0
- package/library/packages/events/src/cx-video-src-resolved.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +13 -0
- package/library/packages/hybrid/table-core/src/index.d.ts +3 -0
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions-dropdown.d.ts +8 -8
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.d.ts +6 -5
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-dropdown-filter.d.ts +4 -4
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-group-by-dropdown.d.ts +4 -4
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-saved-search-dropdown.d.ts +6 -5
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.d.ts +12 -12
- package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.d.ts +11 -11
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/Clipboard.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Clipboard/extensions/extensions.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/History.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/History/extensions/extensions.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/HoverMenu/HoverMenu.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/Import/defaults/importers.d.ts +1 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/SelectRange.d.ts +4 -4
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/SelectRange/extensions/extensions.d.ts +2 -2
- package/library/packages/molecules/src/asset-picker/asset-picker.d.ts +1 -1
- package/library/packages/molecules/src/dynamic-select/dynamic-select.d.ts +5 -0
- package/library/packages/molecules/src/folder-select/components/folder-select-tree-item/folder-select-tree-item.d.ts +32 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +20 -3
- package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +5 -0
- package/library/packages/molecules/src/index.d.ts +1 -1
- package/library/packages/molecules/src/library-index.d.ts +0 -1
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/index.d.ts +3 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.d.ts +92 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.d.ts +43 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-more-options/pdf-viewer-more-options.styles.d.ts +2 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.d.ts +42 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset.styles.d.ts +2 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.d.ts +101 -0
- package/library/packages/molecules/src/pdf-viewer-toolbar/pdf-viewer-toolbar.styles.d.ts +2 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +66 -0
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.constants.d.ts +1 -1
- package/library/packages/organisms/src/color-swatch-group/color-swatch-group.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.constants.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/color-swatch-picker/color-swatch-picker.d.ts +1 -1
- package/library/packages/organisms/src/content-builder/components/config-form/config-form-controller.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -9
- package/library/packages/organisms/src/content-builder/configs/dam-view.d.ts +1 -7
- package/library/packages/organisms/src/content-builder/configs-controller.d.ts +2 -14
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -1
- package/library/packages/organisms/src/dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor.d.ts +9 -1
- package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +1 -1
- package/library/packages/organisms/src/index.d.ts +1 -0
- package/library/packages/{molecules → organisms}/src/list-editor/list-editor.d.ts +9 -3
- package/library/packages/organisms/src/list-editor/list-editor.styles.d.ts +2 -0
- package/library/packages/organisms/src/video-chapters-manager/video-chapters-manager.d.ts +1 -1
- package/library/packages/services/src/api/folder/folder.types.d.ts +9 -2
- package/library/packages/tools/src/fetch-asset/fetch-asset.d.ts +16 -0
- package/library/packages/types/src/content-builder.d.ts +1 -1
- package/library/packages/types/src/dam-view.d.ts +1 -0
- package/library/packages/types/src/folder-select.d.ts +8 -1
- package/library/packages/types/src/pdf-viewer-toolbar.d.ts +82 -0
- package/library/packages/utils/src/custom-element/i18n.d.ts +43 -7
- package/library/packages/utils/src/string/string.d.ts +1 -1
- package/library/packages/utils/src/url/url.d.ts +12 -2
- package/library/react-web-component.d.ts +1829 -1679
- package/library/utils.js +200 -199
- package/package.json +3 -1
- package/library/chunks/asset.CcxcYY9d.js +0 -469
- package/library/chunks/color-swatch-group.Dx6-kWC-.js +0 -362
- package/library/chunks/directive-helpers.Dm4rc594.js +0 -37
- package/library/chunks/folder-select.DwZ7lczk.js +0 -884
- package/library/chunks/list-editor.BhMNYL8R.js +0 -1394
- package/library/chunks/responsive.Cf65FCWd.js +0 -17
- package/library/chunks/toast.D3AW3RWv.js +0 -94
- package/library/chunks/url.Cj9cIQXJ.js +0 -27
- package/library/components/list-editor.d.ts +0 -3
- package/library/components/list-editor.js +0 -33
- package/library/components/table.d.ts +0 -3
- package/library/components/table.js +0 -84
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/index.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-footer/table-footer.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-row-actions/table-row-actions.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/components/table-toolbar/table-toolbar.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-data-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/ajax-facets/ajax-facet-filter-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/filter-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/controllers/select-all-controller.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-alert.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-base.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-calcs.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-clickable-cell.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-data-tree.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-edit.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-footer.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-format.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-group-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-header.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-hover-menu.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-move-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-page.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-placeholder.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-popup.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-print.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-resize.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-responsive-layout.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rows.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-rtl.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-select-range.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/styles/table-spreadsheet.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table-data-loader.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.styles.d.ts +0 -0
- /package/library/packages/{atoms/src/components → hybrid/table-core/src}/table/table.utils.d.ts +0 -0
- /package/library/packages/molecules/src/{list-editor/list-editor.styles.d.ts → pdf-viewer-toolbar/components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw.styles.d.ts} +0 -0
|
@@ -48,14 +48,31 @@ export default class CxFolderSelect extends CortexElement {
|
|
|
48
48
|
private handleSearchTermInputChange;
|
|
49
49
|
private handleSearchTermSelectChange;
|
|
50
50
|
private handleSelectClear;
|
|
51
|
+
/**
|
|
52
|
+
* cx-select's own `value` only reflects our `value` correctly the very
|
|
53
|
+
* first time it parses the initial `value` attribute. Any
|
|
54
|
+
* `handleDefaultSlotChange()` call that runs before matching tree-items
|
|
55
|
+
* exist (e.g. right after mount, before the tree has fetched/preloaded
|
|
56
|
+
* folders) makes cx-select recompute `selectedOptions` from zero matches
|
|
57
|
+
* and overwrite its own `value` to `[]` (`selectionChanged` in
|
|
58
|
+
* select.ts) — permanently losing the original folder ids, since nothing
|
|
59
|
+
* else ever pushes `value` back into cx-select afterwards. Re-derive
|
|
60
|
+
* cx-select.value from our own `value` (the real source of truth) before
|
|
61
|
+
* every `handleDefaultSlotChange()` call so that wipe never sticks.
|
|
62
|
+
*/
|
|
63
|
+
private syncSelectValue;
|
|
51
64
|
/**
|
|
52
65
|
* cx-select's selectedOptions cache (which drives the tag UI in
|
|
53
66
|
* `multiple` mode) is only recomputed during its own `selectionChanged`
|
|
54
67
|
* flow — that flow doesn't run in our setup because we no-op
|
|
55
68
|
* `selectSetOptionSelected` for multi-select (cx-tree owns selection).
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
69
|
+
* Re-read options here so the rendered tag list matches, in response to
|
|
70
|
+
* either signal cx-folder-select-tree can emit:
|
|
71
|
+
* - `cx-selected-change`, bubbled from a user toggling a tree-item.
|
|
72
|
+
* - `cx-folder-select-selection-seeded`, emitted when selection is derived
|
|
73
|
+
* from `value` during data loading/preloading — those tree-items never
|
|
74
|
+
* emit a real `cx-selected-change` themselves (suppressed on their own
|
|
75
|
+
* first update), so this is the only signal for that case.
|
|
59
76
|
*/
|
|
60
77
|
private handleTreeSelectedChange;
|
|
61
78
|
selectGetOptionValue(option: HTMLElement): string;
|
|
@@ -23,6 +23,7 @@ import { CSSResultGroup } from 'lit';
|
|
|
23
23
|
* @cssproperty [--content-border-radius=0] - The border radius of the gallery content.
|
|
24
24
|
* @cssproperty [--content-gap=var(--cx-spacing-2x-small)] - The gap of the gallery content.
|
|
25
25
|
* @cssproperty [--content-padding=var(--cx-spacing-x-small)] - The padding of the gallery content.
|
|
26
|
+
* @cssproperty [--content-row-min-height=auto] - Minimum height of the content area. Set by cx-bento-grid to equalize content height across a row (clamped to the content max-height cap).
|
|
26
27
|
* @cssproperty [--background-color=light-dark(var(--cx-color-neutral-0), var(--cx-color-neutral-0))] - The background color of the gallery item.
|
|
27
28
|
*
|
|
28
29
|
* @cssproperty [--gallery-item-box-shadow=0 4px 8px rgba(0, 0, 0, 0.075)] - The box shadow of the gallery item.
|
|
@@ -76,6 +77,10 @@ export default class CxGalleryItem extends HighlightableElement {
|
|
|
76
77
|
* The image element.
|
|
77
78
|
*/
|
|
78
79
|
readonly imageEl?: CxImage;
|
|
80
|
+
/**
|
|
81
|
+
* The asset-data-display element that renders item text content.
|
|
82
|
+
*/
|
|
83
|
+
readonly contentEl?: CxAssetDataDisplay;
|
|
79
84
|
/**
|
|
80
85
|
* The source of the image.
|
|
81
86
|
*/
|
|
@@ -23,11 +23,11 @@ export { default as CxFolderSelect } from './folder-select/folder-select';
|
|
|
23
23
|
export { default as CxGalleryItem } from './gallery-item/gallery-item';
|
|
24
24
|
export { default as CxGraphView } from './graph-view/graph-view';
|
|
25
25
|
export { default as CxIconPicker } from './icon-picker/icon-picker';
|
|
26
|
-
export { default as CxListEditor } from './list-editor/list-editor';
|
|
27
26
|
export { default as CxMasonry } from './masonry/masonry';
|
|
28
27
|
export { default as CxMentions } from './mentions/mentions';
|
|
29
28
|
export { default as CxPaddingInputGroup } from './padding-input-group/padding-input-group';
|
|
30
29
|
export { default as CxPageOutline } from './page-outline/page-outline';
|
|
30
|
+
export { default as CxPdfViewerToolbar } from './pdf-viewer-toolbar/pdf-viewer-toolbar';
|
|
31
31
|
export { default as CxPositionPicker } from './position-picker/position-picker';
|
|
32
32
|
export { default as CxSearchBox } from './search-box/search-box';
|
|
33
33
|
export { default as CxShadowInputGroup } from './shadow-input-group/shadow-input-group';
|
|
@@ -6,7 +6,6 @@ export { default as CxCornerPositionInputGroup } from './corner-position-input-g
|
|
|
6
6
|
export { default as CxCropper } from './cropper/cropper';
|
|
7
7
|
export { default as CxDynamicSelect } from './dynamic-select/dynamic-select';
|
|
8
8
|
export { default as CxFolderSelect } from './folder-select/folder-select';
|
|
9
|
-
export { default as CxListEditor } from './list-editor/list-editor';
|
|
10
9
|
export { default as CxMasonry } from './masonry/masonry';
|
|
11
10
|
export { default as CxPaddingInputGroup } from './padding-input-group/padding-input-group';
|
|
12
11
|
export { default as CxPositionPicker } from './position-picker/position-picker';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as CxPdfViewerAnnotationDraw } from './pdf-viewer-annotation-draw/pdf-viewer-annotation-draw';
|
|
2
|
+
export { default as CxPdfViewerMoreOptions } from './pdf-viewer-more-options/pdf-viewer-more-options';
|
|
3
|
+
export { default as CxPdfViewerViewOnAsset } from './pdf-viewer-view-on-asset/pdf-viewer-view-on-asset';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { default as CxButton } from '../../../../../atoms/src/components/button/button.ts';
|
|
2
|
+
import { default as CxColorPicker } from '../../../../../atoms/src/components/color-picker/color-picker.ts';
|
|
3
|
+
import { default as CxDivider } from '../../../../../atoms/src/components/divider/divider.ts';
|
|
4
|
+
import { default as CxDropdown } from '../../../../../atoms/src/components/dropdown/dropdown.ts';
|
|
5
|
+
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
6
|
+
import { default as CxMenu } from '../../../../../atoms/src/components/menu/menu.ts';
|
|
7
|
+
import { default as CxMenuItem } from '../../../../../atoms/src/components/menu-item/menu-item.ts';
|
|
8
|
+
import { default as CxRange } from '../../../../../atoms/src/components/range/range.ts';
|
|
9
|
+
import { default as CxSpace } from '../../../../../atoms/src/components/space/space.ts';
|
|
10
|
+
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
11
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
12
|
+
import { PdfViewerAnnotationMode } from '../../../../../types/src/pdf-viewer-toolbar';
|
|
13
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @summary The "Draw" control of the PDF viewer toolbar: a dropdown to pick a
|
|
17
|
+
* shape tool (Draw / Square / Circle / Arrow) and tune its parameters (color,
|
|
18
|
+
* thickness, opacity).
|
|
19
|
+
*
|
|
20
|
+
* @event cx-pdf-viewer-annotation-draw-mode-change - Emitted when a shape tool is selected.
|
|
21
|
+
* @event cx-pdf-viewer-annotation-draw-params-change - Emitted when a draw parameter changes.
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty [--cx-draw-panel-min-width=240px] - Minimum width of the draw panel.
|
|
24
|
+
* @cssproperty [--cx-draw-panel-padding=5px] - Inner padding of the shape menu and params sections.
|
|
25
|
+
* @cssproperty [--cx-draw-panel-slider-width=45%] - Max width of the thickness/opacity sliders.
|
|
26
|
+
*/
|
|
27
|
+
export default class CxPdfViewerAnnotationDraw extends CortexElement {
|
|
28
|
+
#private;
|
|
29
|
+
static readonly styles: CSSResultGroup;
|
|
30
|
+
static readonly dependencies: {
|
|
31
|
+
'cx-button': typeof CxButton;
|
|
32
|
+
'cx-color-picker': typeof CxColorPicker;
|
|
33
|
+
'cx-divider': typeof CxDivider;
|
|
34
|
+
'cx-dropdown': typeof CxDropdown;
|
|
35
|
+
'cx-icon': typeof CxIcon;
|
|
36
|
+
'cx-menu': typeof CxMenu;
|
|
37
|
+
'cx-menu-item': typeof CxMenuItem;
|
|
38
|
+
'cx-range': typeof CxRange;
|
|
39
|
+
'cx-space': typeof CxSpace;
|
|
40
|
+
'cx-typography': typeof CxTypography;
|
|
41
|
+
};
|
|
42
|
+
private readonly localize;
|
|
43
|
+
/** The active annotation tool. Drives the highlighted trigger / checked shape. */
|
|
44
|
+
activeAnnotationMode: PdfViewerAnnotationMode;
|
|
45
|
+
/** Disables the "Draw" trigger button and prevents its panel from opening. */
|
|
46
|
+
drawButtonDisabled: boolean;
|
|
47
|
+
drawColor: string;
|
|
48
|
+
drawThickness: number;
|
|
49
|
+
drawOpacity: number;
|
|
50
|
+
private readonly dropdown?;
|
|
51
|
+
constructor();
|
|
52
|
+
/** Whether a draw shape tool (Ink/Square/Circle/Line) is currently active. */
|
|
53
|
+
private get isDrawActive();
|
|
54
|
+
/**
|
|
55
|
+
* The toolbar hosting this control, or null when used stand-alone. Used to
|
|
56
|
+
* tell a click on another toolbar tool from one on the page/canvas outside it.
|
|
57
|
+
*/
|
|
58
|
+
private get toolbarHost();
|
|
59
|
+
runFirstUpdated(): void;
|
|
60
|
+
runConnectedCallback(): void;
|
|
61
|
+
disconnectedCallback(): void;
|
|
62
|
+
/**
|
|
63
|
+
* While drawing, a press on another toolbar control stops drawing and closes
|
|
64
|
+
* the palette. Presses inside this control or on the page/canvas are ignored.
|
|
65
|
+
*/
|
|
66
|
+
private handleDocumentPointerDown;
|
|
67
|
+
handleActiveModeChange(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Sync the dropdown's dismiss boundary to the active tool: widen it to the
|
|
70
|
+
* whole document while drawing so canvas clicks can't dismiss the palette;
|
|
71
|
+
* restore the default otherwise so outside clicks and Escape dismiss it.
|
|
72
|
+
*/
|
|
73
|
+
private syncDismissBoundary;
|
|
74
|
+
private handleTriggerClick;
|
|
75
|
+
/**
|
|
76
|
+
* Switch back to `none`, closing the palette. `#stoppingDraw` stops the cx-hide
|
|
77
|
+
* handler from re-opening it while `none` round-trips through the parent.
|
|
78
|
+
*/
|
|
79
|
+
private stopDrawing;
|
|
80
|
+
private handleDropdownHide;
|
|
81
|
+
private handleShapeSelect;
|
|
82
|
+
private handleColorChange;
|
|
83
|
+
private handleThicknessChange;
|
|
84
|
+
private handleOpacityChange;
|
|
85
|
+
private static getShapeOptions;
|
|
86
|
+
render(): TemplateResult;
|
|
87
|
+
}
|
|
88
|
+
declare global {
|
|
89
|
+
interface HTMLElementTagNameMap {
|
|
90
|
+
'cx-pdf-viewer-annotation-draw': CxPdfViewerAnnotationDraw;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { default as CxDivider } from '../../../../../atoms/src/components/divider/divider.ts';
|
|
2
|
+
import { default as CxDropdown } from '../../../../../atoms/src/components/dropdown/dropdown.ts';
|
|
3
|
+
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
4
|
+
import { default as CxIconButton } from '../../../../../atoms/src/components/icon-button/icon-button.ts';
|
|
5
|
+
import { default as CxMenu } from '../../../../../atoms/src/components/menu/menu.ts';
|
|
6
|
+
import { default as CxMenuItem } from '../../../../../atoms/src/components/menu-item/menu-item.ts';
|
|
7
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
8
|
+
import { PdfViewerCursorTool, PdfViewerScrollMode, PdfViewerSpreadMode } from '../../../../../types/src/pdf-viewer-toolbar';
|
|
9
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @summary The "more options" (`»`) dropdown of the PDF viewer toolbar. Holds the
|
|
13
|
+
* secondary-toolbar actions (navigation, rotation, cursor / scroll / spread modes,
|
|
14
|
+
* document properties) as a menu.
|
|
15
|
+
*
|
|
16
|
+
* @event cx-pdf-viewer-more-options-select - Emitted when a menu item is selected. `detail.name` is the item's action.
|
|
17
|
+
*/
|
|
18
|
+
export default class CxPdfViewerMoreOptions extends CortexElement {
|
|
19
|
+
static readonly styles: CSSResultGroup;
|
|
20
|
+
static readonly dependencies: {
|
|
21
|
+
'cx-divider': typeof CxDivider;
|
|
22
|
+
'cx-dropdown': typeof CxDropdown;
|
|
23
|
+
'cx-icon': typeof CxIcon;
|
|
24
|
+
'cx-icon-button': typeof CxIconButton;
|
|
25
|
+
'cx-menu': typeof CxMenu;
|
|
26
|
+
'cx-menu-item': typeof CxMenuItem;
|
|
27
|
+
};
|
|
28
|
+
private readonly localize;
|
|
29
|
+
/** The active cursor tool. */
|
|
30
|
+
cursorTool: PdfViewerCursorTool;
|
|
31
|
+
/** The active scroll mode. */
|
|
32
|
+
scrollMode: PdfViewerScrollMode;
|
|
33
|
+
/** The active spread mode. */
|
|
34
|
+
spreadMode: PdfViewerSpreadMode;
|
|
35
|
+
private get groups();
|
|
36
|
+
private handleSelect;
|
|
37
|
+
render(): TemplateResult;
|
|
38
|
+
}
|
|
39
|
+
declare global {
|
|
40
|
+
interface HTMLElementTagNameMap {
|
|
41
|
+
'cx-pdf-viewer-more-options': CxPdfViewerMoreOptions;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { default as CxDropdown } from '../../../../../atoms/src/components/dropdown/dropdown.ts';
|
|
2
|
+
import { default as CxIcon } from '../../../../../atoms/src/components/icon/icon.ts';
|
|
3
|
+
import { default as CxIconButton } from '../../../../../atoms/src/components/icon-button/icon-button.ts';
|
|
4
|
+
import { default as CxSpace } from '../../../../../atoms/src/components/space/space.ts';
|
|
5
|
+
import { default as CxSwitch } from '../../../../../atoms/src/components/switch/switch.ts';
|
|
6
|
+
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
7
|
+
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
8
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @summary The "View on asset" control of the PDF viewer toolbar: a dropdown of
|
|
12
|
+
* layer-visibility toggles (Suggested edits, Anchor comments, Annotations).
|
|
13
|
+
*
|
|
14
|
+
* @event cx-pdf-viewer-view-on-asset-toggle - Emitted when a layer switch is toggled.
|
|
15
|
+
*
|
|
16
|
+
* @cssproperty [--pdf-viewer-view-on-asset-min-width=240px] - Minimum width of the dropdown panel.
|
|
17
|
+
*/
|
|
18
|
+
export default class CxPdfViewerViewOnAsset extends CortexElement {
|
|
19
|
+
static readonly styles: CSSResultGroup;
|
|
20
|
+
static readonly dependencies: {
|
|
21
|
+
'cx-dropdown': typeof CxDropdown;
|
|
22
|
+
'cx-icon': typeof CxIcon;
|
|
23
|
+
'cx-icon-button': typeof CxIconButton;
|
|
24
|
+
'cx-space': typeof CxSpace;
|
|
25
|
+
'cx-switch': typeof CxSwitch;
|
|
26
|
+
'cx-typography': typeof CxTypography;
|
|
27
|
+
};
|
|
28
|
+
private readonly localize;
|
|
29
|
+
/** Whether the "Suggested edits" layer is visible. */
|
|
30
|
+
showSuggestedEdits: boolean;
|
|
31
|
+
/** Whether the "Anchor comments" layer is visible. */
|
|
32
|
+
showAnchorComments: boolean;
|
|
33
|
+
/** Whether the "Annotations" layer is visible. */
|
|
34
|
+
showAnnotations: boolean;
|
|
35
|
+
private handleToggle;
|
|
36
|
+
render(): TemplateResult;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface HTMLElementTagNameMap {
|
|
40
|
+
'cx-pdf-viewer-view-on-asset': CxPdfViewerViewOnAsset;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { default as CxDivider } from '../../../atoms/src/components/divider/divider.ts';
|
|
2
|
+
import { default as CxIconButton } from '../../../atoms/src/components/icon-button/icon-button.ts';
|
|
3
|
+
import { default as CxInput } from '../../../atoms/src/components/input/input.ts';
|
|
4
|
+
import { default as CxOption } from '../../../atoms/src/components/option/option.ts';
|
|
5
|
+
import { default as CxResizeObserver } from '../../../atoms/src/components/resize-observer/resize-observer.ts';
|
|
6
|
+
import { default as CxSelect } from '../../../atoms/src/components/select/select.ts';
|
|
7
|
+
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
8
|
+
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
9
|
+
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
10
|
+
import { PdfViewerAnnotationMode, PdfViewerCursorTool, PdfViewerScaleValue, PdfViewerScrollMode, PdfViewerSpreadMode } from '../../../types/src/pdf-viewer-toolbar';
|
|
11
|
+
import { CSSResultGroup, TemplateResult } from 'lit';
|
|
12
|
+
import { default as CxPdfViewerAnnotationDraw } from './components/pdf-viewer-annotation-draw/pdf-viewer-annotation-draw';
|
|
13
|
+
import { default as CxPdfViewerMoreOptions } from './components/pdf-viewer-more-options/pdf-viewer-more-options';
|
|
14
|
+
import { default as CxPdfViewerViewOnAsset } from './components/pdf-viewer-view-on-asset/pdf-viewer-view-on-asset';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @summary The PDF viewer toolbar. Composes the toolbar controls (left / middle /
|
|
18
|
+
* right sections) using design-system components and emits events under one public
|
|
19
|
+
* namespace so the PDF viewer only listens on this single element.
|
|
20
|
+
*
|
|
21
|
+
* @event cx-pdf-viewer-toolbar-click - A plain button (or a more-options item) was activated. `detail.name` is the control.
|
|
22
|
+
* @event cx-pdf-viewer-toolbar-page-change - The page-number input changed. `detail.value` is the new page.
|
|
23
|
+
* @event cx-pdf-viewer-toolbar-scale-change - The zoom select changed. `detail.value` is the scale.
|
|
24
|
+
* @event cx-pdf-viewer-toolbar-annotation-mode-change - An annotation tool was toggled. `detail.mode` is the target mode.
|
|
25
|
+
* @event cx-pdf-viewer-toolbar-annotation-params-change - A draw parameter changed. `detail.param` / `detail.value`.
|
|
26
|
+
* @event cx-pdf-viewer-toolbar-view-toggle - A "View on asset" layer switch was toggled.
|
|
27
|
+
*
|
|
28
|
+
* @cssproperty [--pdf-viewer-toolbar-page-input-width=55px] - Width of the page-number input.
|
|
29
|
+
* @cssproperty [--pdf-viewer-toolbar-scale-dropdown-width=20ch] - Width of the zoom/scale select.
|
|
30
|
+
* @cssproperty [--pdf-viewer-toolbar-divider-height=30px] - Height of the vertical dividers.
|
|
31
|
+
*/
|
|
32
|
+
export default class CxPdfViewerToolbar extends CortexElement {
|
|
33
|
+
static readonly styles: CSSResultGroup;
|
|
34
|
+
static readonly dependencies: {
|
|
35
|
+
'cx-divider': typeof CxDivider;
|
|
36
|
+
'cx-icon-button': typeof CxIconButton;
|
|
37
|
+
'cx-input': typeof CxInput;
|
|
38
|
+
'cx-option': typeof CxOption;
|
|
39
|
+
'cx-pdf-viewer-annotation-draw': typeof CxPdfViewerAnnotationDraw;
|
|
40
|
+
'cx-pdf-viewer-more-options': typeof CxPdfViewerMoreOptions;
|
|
41
|
+
'cx-pdf-viewer-view-on-asset': typeof CxPdfViewerViewOnAsset;
|
|
42
|
+
'cx-resize-observer': typeof CxResizeObserver;
|
|
43
|
+
'cx-select': typeof CxSelect;
|
|
44
|
+
'cx-space': typeof CxSpace;
|
|
45
|
+
'cx-typography': typeof CxTypography;
|
|
46
|
+
};
|
|
47
|
+
private readonly localize;
|
|
48
|
+
private hiddenTools;
|
|
49
|
+
currentPage: number;
|
|
50
|
+
totalPages: number;
|
|
51
|
+
prevDisabled: boolean;
|
|
52
|
+
nextDisabled: boolean;
|
|
53
|
+
scaleValue: PdfViewerScaleValue;
|
|
54
|
+
zoomInDisabled: boolean;
|
|
55
|
+
zoomOutDisabled: boolean;
|
|
56
|
+
activeAnnotationMode: PdfViewerAnnotationMode;
|
|
57
|
+
suggestedEditButtonDisabled: boolean;
|
|
58
|
+
anchorCommentButtonDisabled: boolean;
|
|
59
|
+
drawButtonDisabled: boolean;
|
|
60
|
+
drawColor: string;
|
|
61
|
+
drawThickness: number;
|
|
62
|
+
drawOpacity: number;
|
|
63
|
+
showSuggestedEdits: boolean;
|
|
64
|
+
showAnchorComments: boolean;
|
|
65
|
+
showAnnotations: boolean;
|
|
66
|
+
cursorTool: PdfViewerCursorTool;
|
|
67
|
+
scrollMode: PdfViewerScrollMode;
|
|
68
|
+
spreadMode: PdfViewerSpreadMode;
|
|
69
|
+
readingModeButtonDisabled: boolean;
|
|
70
|
+
presentationModeButtonDisabled: boolean;
|
|
71
|
+
loading: boolean;
|
|
72
|
+
enablePrint: boolean;
|
|
73
|
+
enableDownload: boolean;
|
|
74
|
+
enableAnnotation: boolean;
|
|
75
|
+
enableBookmark: boolean;
|
|
76
|
+
enablePresentationMode: boolean;
|
|
77
|
+
enableOpenFile: boolean;
|
|
78
|
+
handleEnabledControlsChange(): Promise<void>;
|
|
79
|
+
private handleResize;
|
|
80
|
+
private updateHiddenTools;
|
|
81
|
+
private getHiddenToolGroups;
|
|
82
|
+
private handleButtonClick;
|
|
83
|
+
private handlePageChange;
|
|
84
|
+
private handleScaleChange;
|
|
85
|
+
private handleAnnotationToolClick;
|
|
86
|
+
private dispatchAnnotationMode;
|
|
87
|
+
private handleDrawModeChange;
|
|
88
|
+
private handleDrawParamsChange;
|
|
89
|
+
private handleViewOnAssetToggle;
|
|
90
|
+
private handleMoreOptionsSelect;
|
|
91
|
+
private renderLeft;
|
|
92
|
+
private static getScaleOptions;
|
|
93
|
+
private renderMiddle;
|
|
94
|
+
private renderRight;
|
|
95
|
+
render(): TemplateResult;
|
|
96
|
+
}
|
|
97
|
+
declare global {
|
|
98
|
+
interface HTMLElementTagNameMap {
|
|
99
|
+
'cx-pdf-viewer-toolbar': CxPdfViewerToolbar;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
@@ -39,6 +39,17 @@ export default class CxBentoGrid extends CortexElement {
|
|
|
39
39
|
/** Tracks the last emitted range to avoid firing cx-bento-range-change when the range hasn't changed. */
|
|
40
40
|
private _lastEmittedFirst;
|
|
41
41
|
private _lastEmittedLast;
|
|
42
|
+
/**
|
|
43
|
+
* Watches this component's own light DOM (where slot="slot-<id>" content —
|
|
44
|
+
* the real title/details nodes forwarded into each item — physically lives)
|
|
45
|
+
* for edits. A ResizeObserver alone can't detect content *shrinking*: once a
|
|
46
|
+
* row is stretched, --content-row-min-height keeps every member's rendered
|
|
47
|
+
* box at the row's max, so a member whose content later gets smaller never
|
|
48
|
+
* actually resizes and never notifies. Watching the edit itself (grow or
|
|
49
|
+
* shrink) at the source sidesteps that blind spot. Ties observe()/disconnect()
|
|
50
|
+
* to this host's connect/disconnect lifecycle automatically.
|
|
51
|
+
*/
|
|
52
|
+
private readonly contentMutationController;
|
|
42
53
|
/**
|
|
43
54
|
* References the main container element of the bento grid.
|
|
44
55
|
* This element is used to calculate the grid width and apply
|
|
@@ -162,6 +173,11 @@ export default class CxBentoGrid extends CortexElement {
|
|
|
162
173
|
* Specifies the easing function to use when changing slides.
|
|
163
174
|
*/
|
|
164
175
|
easing: Easing;
|
|
176
|
+
/**
|
|
177
|
+
* When true, equalizes each item's content height to the tallest content
|
|
178
|
+
* in the same visual row (clamped to the content max-height cap).
|
|
179
|
+
*/
|
|
180
|
+
syncRowContentHeight: boolean;
|
|
165
181
|
/** CSS styles applied to the grid container element. */
|
|
166
182
|
private containerStyles;
|
|
167
183
|
/**
|
|
@@ -243,7 +259,39 @@ export default class CxBentoGrid extends CortexElement {
|
|
|
243
259
|
private handleResize;
|
|
244
260
|
/** RAF-gated scroll handler — updates scroll offset and rerenders visible range. */
|
|
245
261
|
private handleScroll;
|
|
262
|
+
/**
|
|
263
|
+
* Fires on any edit to an item's content — catches content growing or
|
|
264
|
+
* shrinking alike, since it reacts to the edit itself rather than to a
|
|
265
|
+
* resulting box-size change (a member held at a row's stretched height by
|
|
266
|
+
* --content-row-min-height never resizes when its own content shrinks).
|
|
267
|
+
*/
|
|
268
|
+
private handleContentMutation;
|
|
269
|
+
/**
|
|
270
|
+
* Fires when a content slot's assigned nodes change (a block added, removed,
|
|
271
|
+
* or reordered inside an item). Starts observing whatever is newly assigned
|
|
272
|
+
* so future in-place edits to it are caught too, and re-syncs immediately
|
|
273
|
+
* since the assignment change itself likely already changed content height.
|
|
274
|
+
*/
|
|
275
|
+
private handleContentSlotChange;
|
|
276
|
+
/**
|
|
277
|
+
* Extends contentMutationController's observation to each item's *real*
|
|
278
|
+
* content node, not just this host's own light DOM. A consumer like
|
|
279
|
+
* cx-gallery assigns content on itself and re-projects it into this
|
|
280
|
+
* component through a `<slot>` it renders inside its own shadow DOM — so
|
|
281
|
+
* the actual node with the title/details text is a light-DOM child of that
|
|
282
|
+
* outer consumer, not of this component, and observing only `this` never
|
|
283
|
+
* sees edits to it. assignedElements({flatten: true}) resolves through any
|
|
284
|
+
* number of such slot-forwarding hops to the real node. observe() is
|
|
285
|
+
* idempotent — safe to call again on already-observed elements.
|
|
286
|
+
*/
|
|
287
|
+
private observeItemContentSlots;
|
|
246
288
|
willUpdate(changed: PropertyValues): void;
|
|
289
|
+
/**
|
|
290
|
+
* Re-syncs row content heights whenever the layout recomputes (containerStyles
|
|
291
|
+
* changes on every computeLayout() call, including resize-driven reflows) or
|
|
292
|
+
* the sync-row-content-height flag itself is toggled.
|
|
293
|
+
*/
|
|
294
|
+
handleRowContentHeightSync(): Promise<void>;
|
|
247
295
|
/**
|
|
248
296
|
* Get content position based on the size of the item.
|
|
249
297
|
*/
|
|
@@ -258,6 +306,24 @@ export default class CxBentoGrid extends CortexElement {
|
|
|
258
306
|
private handleFocus;
|
|
259
307
|
private handleBlur;
|
|
260
308
|
private computeBentoItemEffectStyles;
|
|
309
|
+
/**
|
|
310
|
+
* Resolves an element's max-height to an absolute pixel value.
|
|
311
|
+
* getComputedStyle() can return the literal computed value (e.g. "50%")
|
|
312
|
+
* instead of the used pixel value when the percentage's containing block
|
|
313
|
+
* isn't reported as definite — which happens for this nested flex/shadow-DOM
|
|
314
|
+
* structure — so a percentage is re-resolved against the wrapper's own
|
|
315
|
+
* (definite, explicitly-set) pixel height instead of trusting the string as px.
|
|
316
|
+
*/
|
|
317
|
+
private resolveContentMaxHeight;
|
|
318
|
+
/**
|
|
319
|
+
* Equalizes the content block height of every gallery item in the same
|
|
320
|
+
* visual row to that row's tallest content, clamped to each item's
|
|
321
|
+
* max-height cap. Grouped by data-row and wrapper height (so multi-row-span
|
|
322
|
+
* cards never inflate a single-row card past its own cap). Runs only when
|
|
323
|
+
* syncRowContentHeight is on.
|
|
324
|
+
*/
|
|
325
|
+
private syncRowContentHeights;
|
|
326
|
+
private clearContentRowMinHeights;
|
|
261
327
|
renderGalleryItem(galleryItem: {
|
|
262
328
|
actualIndex: number;
|
|
263
329
|
index: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellComponent } from '../../../
|
|
1
|
+
import { CellComponent } from '../../../hybrid/table-core/src/index.ts';
|
|
2
2
|
import { LocalizeController } from '../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
export declare const MIN_WIDTH_GRID_ITEM = 165;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as CxSpace } from '../../../atoms/src/components/space/space.ts';
|
|
2
|
-
import { default as CxTable } from '../../../atoms/src/components/table/table.ts';
|
|
3
2
|
import { default as CxTypography } from '../../../atoms/src/components/typography/typography.ts';
|
|
4
3
|
import { default as CortexElement } from '../../../base/src/cortex-element.ts';
|
|
5
4
|
import { default as CxColorSwatch } from '../../../molecules/src/color-swatch/color-swatch.ts';
|
|
5
|
+
import { default as CxTable } from '../../../hybrid/table-core/src/index.ts';
|
|
6
6
|
import { ColorSwatchData } from '../../../types/src/color-swatch';
|
|
7
7
|
import { CxColorSwatchGroupVariant } from '../../../types/src/color-swatch-group';
|
|
8
8
|
import { CSSResultGroup } from 'lit';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CellComponent } from '../../../../../
|
|
1
|
+
import { CellComponent } from '../../../../../hybrid/table-core/src/index.ts';
|
|
2
2
|
import { LocalizeController } from '../../../../../utils/src/custom-element/i18n';
|
|
3
3
|
|
|
4
4
|
export type PantoneColorData = {
|
|
@@ -9,9 +9,9 @@ import { default as CxOption } from '../../../../../atoms/src/components/option/
|
|
|
9
9
|
import { default as CxSelect } from '../../../../../atoms/src/components/select/select.ts';
|
|
10
10
|
import { default as CxSpace } from '../../../../../atoms/src/components/space/space.ts';
|
|
11
11
|
import { default as CxSpinner } from '../../../../../atoms/src/components/spinner/spinner.ts';
|
|
12
|
-
import { default as CxTable } from '../../../../../atoms/src/components/table/table.ts';
|
|
13
12
|
import { default as CxTypography } from '../../../../../atoms/src/components/typography/typography.ts';
|
|
14
13
|
import { default as CortexElement } from '../../../../../base/src/cortex-element.ts';
|
|
14
|
+
import { default as CxTable } from '../../../../../hybrid/table-core/src/index.ts';
|
|
15
15
|
import { ColorSwatchData } from '../../../../../types/src/color-swatch';
|
|
16
16
|
|
|
17
17
|
export type CxContentBuilderColorSwatchSelectEvent = CustomEvent<ColorSwatchData | ColorSwatchData[]>;
|
|
@@ -21,6 +21,7 @@ export declare class ConfigFormController implements ReactiveController {
|
|
|
21
21
|
private handleAttributeChange;
|
|
22
22
|
private handlePropertyChange;
|
|
23
23
|
private handleConfigChange;
|
|
24
|
+
private renderInfoText;
|
|
24
25
|
private renderControl;
|
|
25
26
|
private renderBasicControl;
|
|
26
27
|
renderBasicControls(configs: PropertyConfig[], parent?: PropertyConfig, tab?: TabType): TemplateResult<1>;
|
package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ import { default as CxConfirmPopover } from '../../../../../molecules/src/confir
|
|
|
36
36
|
import { default as CxCornerPositionInputGroup } from '../../../../../molecules/src/corner-position-input-group/corner-position-input-group.ts';
|
|
37
37
|
import { default as CxDownloadFormatPicker } from '../../../../../molecules/src/download-format-picker/download-format-picker.ts';
|
|
38
38
|
import { default as CxDynamicSelect } from '../../../../../molecules/src/dynamic-select/dynamic-select.ts';
|
|
39
|
-
import { default as CxListEditor } from '../../../../../molecules/src/list-editor/list-editor.ts';
|
|
40
39
|
import { default as CxPaddingInputGroup } from '../../../../../molecules/src/padding-input-group/padding-input-group.ts';
|
|
41
40
|
import { default as CxPositionPicker } from '../../../../../molecules/src/position-picker/position-picker.ts';
|
|
42
41
|
import { default as CxShadowInputGroup } from '../../../../../molecules/src/shadow-input-group/shadow-input-group.ts';
|
|
@@ -46,6 +45,7 @@ import { AssetFormatValue } from '../../../../../types/src/asset-format-picker';
|
|
|
46
45
|
import { Asset, AssetTypeString, EditorMode, PropertyConfig } from '../../../../../types/src/content-builder';
|
|
47
46
|
import { StyleProps } from 'grapesjs';
|
|
48
47
|
import { default as CxDamCustomToolbarButtonsEditor } from '../../../dam-custom-toolbar-buttons-editor/dam-custom-toolbar-buttons-editor';
|
|
48
|
+
import { default as CxListEditor } from '../../../list-editor/list-editor';
|
|
49
49
|
import { CxColorSwatchPicker } from '../color-swatch-picker';
|
|
50
50
|
import { CxFolderPicker } from '../folder-picker';
|
|
51
51
|
import { default as CxGalleryPicker } from '../gallery-picker/gallery-picker';
|
|
@@ -282,12 +282,6 @@ export default class CxConfigForm extends CortexElement {
|
|
|
282
282
|
dialogTitle: string;
|
|
283
283
|
skipShowCheck: boolean;
|
|
284
284
|
enableAssetFormatControls: boolean;
|
|
285
|
-
/**
|
|
286
|
-
* The currently selected tab in the configuration manager.
|
|
287
|
-
* This is used to switch between different tabs in the configuration manager.
|
|
288
|
-
* @default ''
|
|
289
|
-
*/
|
|
290
|
-
tab: string;
|
|
291
285
|
/**
|
|
292
286
|
* Whether the user is currently editing the template settings.
|
|
293
287
|
* This is used to determine if the user is editing the template name and description.
|
|
@@ -329,7 +323,6 @@ export default class CxConfigForm extends CortexElement {
|
|
|
329
323
|
* @return {Record<string, string>} A record mapping trait IDs to tab names.
|
|
330
324
|
*/
|
|
331
325
|
get tabMap(): Record<string, TabType>;
|
|
332
|
-
handleTabMapChange(): Promise<void>;
|
|
333
326
|
handleSupportedLanguagesChange(): Promise<void>;
|
|
334
327
|
private handleClose;
|
|
335
328
|
private handleAfterShow;
|
|
@@ -343,7 +336,7 @@ export default class CxConfigForm extends CortexElement {
|
|
|
343
336
|
private handleAssetRequestStatus;
|
|
344
337
|
private handleFormSubmit;
|
|
345
338
|
show(): void;
|
|
346
|
-
hide(): void
|
|
339
|
+
hide(): Promise<void>;
|
|
347
340
|
private renderTemplateForm;
|
|
348
341
|
render(): import('lit').TemplateResult<1>;
|
|
349
342
|
}
|
|
@@ -4,8 +4,6 @@ import { default as CxSbDamView } from '../blocks/dam-view/dam-view';
|
|
|
4
4
|
|
|
5
5
|
type Attribute = {
|
|
6
6
|
'allow-asset-selection': CxSbDamView['allowAssetSelection'];
|
|
7
|
-
'always-show-favorite-folder': CxSbDamView['alwaysShowFavoriteFolder'];
|
|
8
|
-
'always-show-personal-folder': CxSbDamView['alwaysShowPersonalFolder'];
|
|
9
7
|
'apply-border-radius-to-panels': CxSbDamView['applyBorderRadiusToPanels'];
|
|
10
8
|
'asset-statuses': CxSbDamView['assetStatuses'];
|
|
11
9
|
'asset-types': CxSbDamView['assetTypes'];
|
|
@@ -19,7 +17,6 @@ type Attribute = {
|
|
|
19
17
|
'default-view': CxSbDamView['defaultView'];
|
|
20
18
|
'deploy-stacks': CxSbDamView['deployStacks'];
|
|
21
19
|
'enable-asset-actions': CxSbDamView['enableAssetActions'];
|
|
22
|
-
'enable-right-click-menu': CxSbDamView['enableRightClickMenu'];
|
|
23
20
|
'expanded-folders': CxSbDamView['expandedFolders'];
|
|
24
21
|
'filter-button-action': CxSbDamView['filterButtonAction'];
|
|
25
22
|
'folder-hierarchy': CxSbDamView['folderHierarchy'];
|
|
@@ -49,14 +46,11 @@ type Attribute = {
|
|
|
49
46
|
'show-all-assets': CxSbDamView['showAllAssets'];
|
|
50
47
|
'show-bottom-pagination': CxSbDamView['showBottomPagination'];
|
|
51
48
|
'show-breadcrumbs': CxSbDamView['showBreadcrumbs'];
|
|
52
|
-
'show-group-by': CxSbDamView['showGroupBy'];
|
|
53
49
|
'show-left-panel': CxSbDamView['showLeftPanel'];
|
|
54
|
-
'show-page-title': CxSbDamView['showPageTitle'];
|
|
55
50
|
'show-right-panel': CxSbDamView['showRightPanel'];
|
|
56
51
|
'show-search-box': CxSbDamView['showSearchBox'];
|
|
57
|
-
'show-sort-dropdown': CxSbDamView['showSortDropdown'];
|
|
58
52
|
'show-top-pagination': CxSbDamView['showTopPagination'];
|
|
59
|
-
'show-view-
|
|
53
|
+
'show-view-and-sort': CxSbDamView['showViewAndSort'];
|
|
60
54
|
};
|
|
61
55
|
declare const _default: {
|
|
62
56
|
configs: (localize: LocalizeController) => Array<PropertyConfig<Attribute>>;
|