@cocoar/vue-ui 3.4.0-beta.22 → 3.4.0-beta.29
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/dist/compact-fonts.d.ts +1 -0
- package/dist/compact-fonts.d.ts.map +1 -0
- package/dist/compact-fonts.js +4 -0
- package/dist/components/badge/CoarBadge.vue.d.ts.map +1 -1
- package/dist/components/card/CoarCard.vue.d.ts.map +1 -1
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts +2 -2
- package/dist/components/checkbox/CoarCheckbox.vue.d.ts.map +1 -1
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts +1 -1
- package/dist/components/code-block/CoarCodeBlock.vue.d.ts.map +1 -1
- package/dist/components/data-list/CoarDataList.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-picker/CoarPlainDatePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/plain-date-time-picker/CoarPlainDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue.d.ts.map +1 -1
- package/dist/components/date-time/time-picker/CoarTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePicker.vue.d.ts.map +1 -1
- package/dist/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue.d.ts.map +1 -1
- package/dist/components/dialog/CoarDialogShell.vue.d.ts.map +1 -1
- package/dist/components/form-field/CoarFormField.vue.d.ts +2 -2
- package/dist/components/form-field/CoarFormField.vue.d.ts.map +1 -1
- package/dist/components/icon/CoarIcon.vue.d.ts +3 -3
- package/dist/components/icon/CoarIcon.vue.d.ts.map +1 -1
- package/dist/components/input-frame/CoarInputFrame.vue.d.ts.map +1 -1
- package/dist/components/listbox/CoarListbox.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubExpand.vue.d.ts.map +1 -1
- package/dist/components/menu/CoarSubFlyout.vue.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts +2 -2
- package/dist/components/otp-input/CoarOtpInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/overlay/compact-context.d.ts +10 -0
- package/dist/components/overlay/compact-context.d.ts.map +1 -0
- package/dist/components/overlay/index.d.ts +2 -0
- package/dist/components/overlay/index.d.ts.map +1 -1
- package/dist/components/overlay/useCompactPresentationContext.d.ts +33 -0
- package/dist/components/overlay/useCompactPresentationContext.d.ts.map +1 -0
- package/dist/components/panel-layout/internal/CoarPaneDivider.vue.d.ts.map +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts +1 -1
- package/dist/components/password-input/CoarPasswordInput.vue.d.ts.map +1 -1
- package/dist/components/scrollbar/vScrollbar.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelect.vue.d.ts.map +1 -1
- package/dist/components/select/CoarMultiSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/select/CoarTagSelectDropdownPanel.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarGroup.vue.d.ts.map +1 -1
- package/dist/components/switch/CoarSwitch.vue.d.ts +2 -2
- package/dist/components/switch/CoarSwitch.vue.d.ts.map +1 -1
- package/dist/components/tabs/CoarTabGroup.vue.d.ts.map +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts +1 -1
- package/dist/components/text-input/CoarTextInput.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts +8 -2
- package/dist/components/theme-editor/CoarPaletteEditor.vue.d.ts.map +1 -1
- package/dist/components/theme-editor/color-preview.d.ts +22 -0
- package/dist/components/theme-editor/color-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/font-preview.d.ts +46 -0
- package/dist/components/theme-editor/font-preview.d.ts.map +1 -0
- package/dist/components/theme-editor/scheme-values.d.ts +12 -0
- package/dist/components/theme-editor/scheme-values.d.ts.map +1 -0
- package/dist/components/theme-editor/theme-editor-state.d.ts +199 -183
- package/dist/components/theme-editor/theme-editor-state.d.ts.map +1 -1
- package/dist/components/theme-scope/CoarThemeScope.vue.d.ts.map +1 -1
- package/dist/components/tree/CoarTreeNode.vue.d.ts.map +1 -1
- package/dist/composables/useDragDrop.d.ts.map +1 -1
- package/dist/composables/useDragImage.d.ts +2 -14
- package/dist/composables/useDragImage.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3439 -2056
- package/dist/onest-fonts.d.ts +1 -0
- package/dist/onest-fonts.d.ts.map +1 -0
- package/dist/onest-fonts.js +4 -0
- package/dist/theme/color-contrast.d.ts +10 -0
- package/dist/theme/color-contrast.d.ts.map +1 -0
- package/dist/theme/compact-packages/calendar.d.ts +8 -0
- package/dist/theme/compact-packages/calendar.d.ts.map +1 -0
- package/dist/theme/compact-packages/data-grid.d.ts +8 -0
- package/dist/theme/compact-packages/data-grid.d.ts.map +1 -0
- package/dist/theme/compact-packages/document-viewer.d.ts +8 -0
- package/dist/theme/compact-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/compact-packages/map.d.ts +11 -0
- package/dist/theme/compact-packages/map.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts +8 -0
- package/dist/theme/compact-packages/markdown-editor.d.ts.map +1 -0
- package/dist/theme/compact-packages/markdown.d.ts +14 -0
- package/dist/theme/compact-packages/markdown.d.ts.map +1 -0
- package/dist/theme/compact-packages/mermaid.d.ts +8 -0
- package/dist/theme/compact-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/compact-packages/page-builder.d.ts +8 -0
- package/dist/theme/compact-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/compact-packages/script-editor.d.ts +8 -0
- package/dist/theme/compact-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/compact-theme.d.ts +11 -0
- package/dist/theme/compact-theme.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/calendar.d.ts +3 -0
- package/dist/theme/enterprise-packages/calendar.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts +3 -0
- package/dist/theme/enterprise-packages/document-viewer.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/map.d.ts +3 -0
- package/dist/theme/enterprise-packages/map.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/markdown.d.ts +7 -0
- package/dist/theme/enterprise-packages/markdown.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts +3 -0
- package/dist/theme/enterprise-packages/mermaid.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts +3 -0
- package/dist/theme/enterprise-packages/page-builder.d.ts.map +1 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts +7 -0
- package/dist/theme/enterprise-packages/script-editor.d.ts.map +1 -0
- package/dist/theme/enterprise-theme.d.ts +8 -0
- package/dist/theme/enterprise-theme.d.ts.map +1 -0
- package/dist/theme/palette-inputs.d.ts +34 -0
- package/dist/theme/palette-inputs.d.ts.map +1 -0
- package/dist/theme/role-derived-tokens.d.ts +3 -0
- package/dist/theme/role-derived-tokens.d.ts.map +1 -0
- package/dist/theme/role-input-defaults.d.ts +5 -0
- package/dist/theme/role-input-defaults.d.ts.map +1 -0
- package/dist/theme/role-theme-contract.d.ts +8 -0
- package/dist/theme/role-theme-contract.d.ts.map +1 -0
- package/dist/theme/role-theme.d.ts +40 -0
- package/dist/theme/role-theme.d.ts.map +1 -0
- package/package.json +15 -4
- package/skills/cocoar-vue-ui/SKILL.md +2 -0
- package/skills/cocoar-vue-ui/references/components/calendar/index.md +26 -1
- package/skills/cocoar-vue-ui/references/components/data-grid.md +4 -0
- package/skills/cocoar-vue-ui/references/components/document-viewer/coar-document-viewer.md +4 -0
- package/skills/cocoar-vue-ui/references/components/form-field.md +10 -6
- package/skills/cocoar-vue-ui/references/components/listbox.md +2 -0
- package/skills/cocoar-vue-ui/references/components/map/index.md +5 -1
- package/skills/cocoar-vue-ui/references/components/markdown-editor.md +10 -0
- package/skills/cocoar-vue-ui/references/components/markdown-form.md +9 -0
- package/skills/cocoar-vue-ui/references/components/markdown.md +10 -0
- package/skills/cocoar-vue-ui/references/components/mermaid.md +11 -0
- package/skills/cocoar-vue-ui/references/components/script-editor.md +10 -0
- package/skills/cocoar-vue-ui/references/foundations/colors.md +32 -3
- package/skills/cocoar-vue-ui/references/foundations/compact-presentation.md +252 -0
- package/skills/cocoar-vue-ui/references/foundations/theming.md +96 -11
- package/skills/cocoar-vue-ui/references/foundations/typography.md +3 -0
- package/skills/cocoar-vue-ui/references/guide/migration-color-roles.md +28 -0
- package/skills/cocoar-vue-ui/references/guide/mobile.md +2 -2
- package/skills/cocoar-vue-ui/references/guide/theming.md +25 -0
- package/styles/tokens/all.css +6 -0
- package/styles/tokens/code-block.css +2 -2
- package/styles/tokens/colors-primitives-dark.css +50 -50
- package/styles/tokens/colors-primitives-light.css +50 -50
- package/styles/tokens/colors-usage.css +126 -111
- package/styles/tokens/compact.css +4426 -0
- package/styles/tokens/components-shared.css +4 -4
- package/styles/tokens/derived.css +525 -0
- package/styles/tokens/menu.css +21 -21
- package/styles/tokens/new-components.css +35 -35
- package/styles/tokens/select-overlay.css +12 -12
- package/styles/tokens/sidebar.css +12 -12
- package/styles/tokens/theme-none.css +99 -93
- package/styles/tokens/tooltip.css +4 -4
- package/styles/tokens/typography.css +19 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=onest-fonts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onest-fonts.d.ts","sourceRoot":"","sources":["../src/onest-fonts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** sRGB channels in the range 0–255. */
|
|
2
|
+
export type CoarRgb = [number, number, number];
|
|
3
|
+
/** Signed APCA Lc: positive for dark text on a lighter background. */
|
|
4
|
+
export declare function apcaContrast(text: CoarRgb, background: CoarRgb): number;
|
|
5
|
+
/**
|
|
6
|
+
* The raw APCA luminance where pure white and black have equal |Lc|.
|
|
7
|
+
* At this crossing neither the background soft clamp nor the low clip applies.
|
|
8
|
+
*/
|
|
9
|
+
export declare const APCA_TEXT_ON_THRESHOLD: number;
|
|
10
|
+
//# sourceMappingURL=color-contrast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-contrast.d.ts","sourceRoot":"","sources":["../../src/theme/color-contrast.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAW/C,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CASvE;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAU/B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-calendar: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_CALENDAR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_CALENDAR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/calendar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2B1D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-data-grid: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_DATA_GRID_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. Tree toggles get a full 44px target; the indentation step stays 20px. */
|
|
7
|
+
export declare const COMPACT_DATA_GRID_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-grid.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/data-grid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE3D,CAAC;AAEF,wHAAwH;AACxH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAElE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-document-viewer: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_DOCUMENT_VIEWER_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_DOCUMENT_VIEWER_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=document-viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-viewer.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/document-viewer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOjE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAUxE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-map: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MAP_TOKENS: Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Where the theme scope meets `.coar-mobile`: the touch target of the zoom buttons
|
|
8
|
+
* and of the point list's drag handle.
|
|
9
|
+
*/
|
|
10
|
+
export declare const COMPACT_MAP_MOBILE_TOKENS: Record<string, string>;
|
|
11
|
+
//# sourceMappingURL=map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/map.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAE5D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-markdown-editor: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MARKDOWN_EDITOR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_MARKDOWN_EDITOR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=markdown-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/markdown-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcjE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAcxE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-markdown and @cocoar/vue-markdown-form: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*
|
|
5
|
+
* Markdown is document content: reading text, headings and code text have their own
|
|
6
|
+
* roles and do not shrink with the UI text role.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMPACT_MARKDOWN_TOKENS: Record<string, string>;
|
|
9
|
+
/**
|
|
10
|
+
* Where the theme scope meets `.coar-mobile`: same hierarchy, one step larger reading
|
|
11
|
+
* and table text, roomier cells for touch reading.
|
|
12
|
+
*/
|
|
13
|
+
export declare const COMPACT_MARKDOWN_MOBILE_TOKENS: Record<string, string>;
|
|
14
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/markdown.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqD1D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKjE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-mermaid: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_MERMAID_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_MERMAID_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=mermaid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/mermaid.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIzD,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAGhE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-page-builder: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_PAGE_BUILDER_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_PAGE_BUILDER_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=page-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-builder.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/page-builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0B9D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,kCAAkC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compact values of @cocoar/vue-script-editor: constants only. What the package derives from
|
|
3
|
+
* shared roles stays in its own stylesheet.
|
|
4
|
+
*/
|
|
5
|
+
export declare const COMPACT_SCRIPT_EDITOR_TOKENS: Record<string, string>;
|
|
6
|
+
/** Where the theme scope meets `.coar-mobile`. */
|
|
7
|
+
export declare const COMPACT_SCRIPT_EDITOR_MOBILE_TOKENS: Record<string, string>;
|
|
8
|
+
//# sourceMappingURL=script-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/compact-packages/script-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAK/D,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CoarRoleTheme } from './role-theme';
|
|
2
|
+
/**
|
|
3
|
+
* The values of the Compact presentation: one source for the Theme Editor preset
|
|
4
|
+
* and for the `.coar-compact` compatibility entry (styles/tokens/compact.css is
|
|
5
|
+
* this object serialized; compact-theme.test.ts keeps the two in step).
|
|
6
|
+
*
|
|
7
|
+
* Only inputs live here. What follows from them (aliases, palette steps, component
|
|
8
|
+
* roles) is derived once, in styles/tokens/derived.css.
|
|
9
|
+
*/
|
|
10
|
+
export declare const COMPACT_THEME: CoarRoleTheme;
|
|
11
|
+
//# sourceMappingURL=compact-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compact-theme.d.ts","sourceRoot":"","sources":["../../src/theme/compact-theme.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAGlD;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,aA2P3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/calendar.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwE7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document-viewer.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/document-viewer.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,eAAO,MAAM,iCAAiC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAoCpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/map.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAwCxD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default document presentation. Package inputs take precedence over the common
|
|
3
|
+
* UI roles without replacing the package's locally evaluated private derivation.
|
|
4
|
+
* Compact leaves these inputs unset and keeps its existing common-role fallback.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ENTERPRISE_MARKDOWN_TOKENS: Record<string, string>;
|
|
7
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/markdown.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0C7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mermaid.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/mermaid.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAI5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-builder.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/page-builder.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA0EjE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shipped coar-light/coar-dark Monaco colors, including the inherited
|
|
3
|
+
* widget and diagnostic colors of the lockfile's Monaco version. Explicit
|
|
4
|
+
* pairs also preserve a forced editor scheme inside the opposite page scheme.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ENTERPRISE_SCRIPT_EDITOR_TOKENS: Record<string, string>;
|
|
7
|
+
//# sourceMappingURL=script-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script-editor.d.ts","sourceRoot":"","sources":["../../../src/theme/enterprise-packages/script-editor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA2BlE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CoarRoleTheme } from './role-theme';
|
|
2
|
+
/**
|
|
3
|
+
* The default presentation as values. The shared derivation stays unchanged;
|
|
4
|
+
* explicit roles preserve the default look where it differs from that derivation.
|
|
5
|
+
* Apps that load no theme continue to use the static token stylesheets.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ENTERPRISE_THEME: CoarRoleTheme;
|
|
8
|
+
//# sourceMappingURL=enterprise-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enterprise-theme.d.ts","sourceRoot":"","sources":["../../src/theme/enterprise-theme.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EAAE,aAyL9B,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Stable base-colour names and the primitive palettes derived from them. */
|
|
2
|
+
export declare const COLOR_PALETTES: {
|
|
3
|
+
readonly accent: "accent";
|
|
4
|
+
readonly success: "green";
|
|
5
|
+
readonly error: "red";
|
|
6
|
+
readonly warning: "amber";
|
|
7
|
+
readonly info: "slate";
|
|
8
|
+
};
|
|
9
|
+
export declare const COLOR_STEPS: readonly [50, 100, 200, 300, 400, 500, 600, 700, 800, 900];
|
|
10
|
+
/** The default look's lightness/chroma curves, indexed by COLOR_STEPS. */
|
|
11
|
+
export declare const DEFAULT_PALETTE_CURVES: {
|
|
12
|
+
readonly accent: {
|
|
13
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.075", "0.74 0.115", "0.66 0.145", "l c", "0.53 0.15", "0.47 0.14", "0.39 0.12", "0.31 0.095"];
|
|
14
|
+
readonly dark: readonly ["0.20 0.045", "0.25 0.065", "0.32 0.095", "0.42 0.13", "0.52 0.155", "l c", "0.68 0.14", "0.76 0.11", "0.85 0.07", "0.93 0.035"];
|
|
15
|
+
};
|
|
16
|
+
readonly green: {
|
|
17
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.065", "0.74 0.10", "0.66 0.13", "l c", "0.47 0.12", "0.40 0.10", "0.33 0.08", "0.26 0.06"];
|
|
18
|
+
readonly dark: readonly ["0.20 0.035", "0.25 0.055", "0.32 0.08", "0.42 0.11", "0.52 0.13", "l c", "0.68 0.12", "0.76 0.09", "0.85 0.06", "0.93 0.03"];
|
|
19
|
+
};
|
|
20
|
+
readonly red: {
|
|
21
|
+
readonly light: readonly ["0.97 0.012", "0.92 0.035", "0.84 0.07", "0.74 0.11", "0.66 0.145", "l c", "0.47 0.13", "0.40 0.11", "0.33 0.09", "0.26 0.07"];
|
|
22
|
+
readonly dark: readonly ["0.20 0.04", "0.25 0.06", "0.32 0.09", "0.42 0.12", "0.52 0.145", "l c", "0.68 0.12", "0.76 0.09", "0.85 0.06", "0.93 0.03"];
|
|
23
|
+
};
|
|
24
|
+
readonly amber: {
|
|
25
|
+
readonly light: readonly ["0.97 0.015", "0.92 0.04", "0.86 0.08", "0.78 0.12", "0.72 0.14", "l c", "0.50 0.12", "0.43 0.10", "0.36 0.08", "0.29 0.06"];
|
|
26
|
+
readonly dark: readonly ["0.22 0.04", "0.27 0.06", "0.34 0.09", "0.44 0.12", "0.54 0.14", "l c", "0.70 0.12", "0.78 0.09", "0.86 0.06", "0.93 0.03"];
|
|
27
|
+
};
|
|
28
|
+
readonly slate: {
|
|
29
|
+
readonly light: readonly ["0.97 0.006", "0.92 0.012", "0.84 0.02", "0.74 0.03", "0.66 0.035", "l c", "0.47 0.03", "0.40 0.025", "0.35 0.02", "0.30 0.02"];
|
|
30
|
+
readonly dark: readonly ["0.18 0.012", "0.23 0.018", "0.30 0.022", "0.40 0.025", "0.50 0.03", "l c", "0.70 0.025", "0.78 0.018", "0.86 0.012", "0.93 0.006"];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const DEFAULT_PALETTE_INPUTS: Record<string, string>;
|
|
34
|
+
//# sourceMappingURL=palette-inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette-inputs.d.ts","sourceRoot":"","sources":["../../src/theme/palette-inputs.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,eAAO,MAAM,cAAc;;;;;;CAMjB,CAAC;AAEX,eAAO,MAAM,WAAW,4DAA6D,CAAC;AAEtF,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;CAqBzB,CAAC;AAEX,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAMzD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-derived-tokens.d.ts","sourceRoot":"","sources":["../../src/theme/role-derived-tokens.ts"],"names":[],"mappings":"AAEA,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,UAwDC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ROLE_INPUT_DEFAULTS: Record<string, string>;
|
|
2
|
+
export declare const ROLE_MOBILE_DEFAULTS: Record<string, string>;
|
|
3
|
+
export declare const ROLE_SCHEME_DEFAULTS: Record<'light' | 'dark', Record<string, string>>;
|
|
4
|
+
export declare const ROLE_ROOT_DEFAULTS: Record<string, string>;
|
|
5
|
+
//# sourceMappingURL=role-input-defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-input-defaults.d.ts","sourceRoot":"","sources":["../../src/theme/role-input-defaults.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkEtD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWvD,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA2NjF,CAAC;AACF,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyNrD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** One contract, including unset slots, for every first-party preset and export. */
|
|
2
|
+
export declare const ROLE_THEME_ROLES: string[];
|
|
3
|
+
export declare const ROLE_THEME_INPUT_DEFAULTS: {
|
|
4
|
+
[k: string]: string;
|
|
5
|
+
};
|
|
6
|
+
/** Only these slots can be written by an outer preset's legacy mobile rules. */
|
|
7
|
+
export declare const ROLE_THEME_MOBILE_INPUTS: string[];
|
|
8
|
+
//# sourceMappingURL=role-theme-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-theme-contract.d.ts","sourceRoot":"","sources":["../../src/theme/role-theme-contract.ts"],"names":[],"mappings":"AAKA,oFAAoF;AACpF,eAAO,MAAM,gBAAgB,UAE1B,CAAC;AAGJ,eAAO,MAAM,yBAAyB;;CAKrC,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,wBAAwB,UACkD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A theme as values for the shared role contract. The library derives everything
|
|
3
|
+
* that follows from them (styles/tokens/derived.css); a theme never brings formulas
|
|
4
|
+
* of its own.
|
|
5
|
+
*/
|
|
6
|
+
export interface CoarRoleTheme {
|
|
7
|
+
/** Token values on the theme scope. */
|
|
8
|
+
tokens: Record<string, string>;
|
|
9
|
+
/** Inputs and role overrides where the scope meets `.coar-mobile`, in either nesting order. */
|
|
10
|
+
mobileTokens: Record<string, string>;
|
|
11
|
+
/** Explicit derived-role values, reapplied at every boundary inside the scope. */
|
|
12
|
+
roles?: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
/** Set by a theme (empty value = on) to have the library derive from its values. */
|
|
15
|
+
export declare const ROLE_DERIVATION_TOKEN = "--coar-role-derivation";
|
|
16
|
+
/** What `ROLE_DERIVATION_TOKEN` resolves to on an element where derivation is active. */
|
|
17
|
+
export declare const ROLE_DERIVATION_MARKER = "--coar-d-role-derivation";
|
|
18
|
+
/** Optional inputs a surrounding `CoarThemeScope` hands to a theme; `.coar-theme-none` clears them. */
|
|
19
|
+
export declare const APPEARANCE_INPUT_TOKENS: string[];
|
|
20
|
+
/** Theme-owned bases survive the library defaults at nested scheme boundaries. */
|
|
21
|
+
export declare const THEME_COLOR_INPUT_TOKENS: string[];
|
|
22
|
+
/**
|
|
23
|
+
* The tokens that carry a font family. Without a role theme each role holds its own
|
|
24
|
+
* family, so naming another font means setting them all; a role theme derives the
|
|
25
|
+
* roles from the first entry of each list.
|
|
26
|
+
*/
|
|
27
|
+
export declare const BODY_FAMILY_TOKENS: string[];
|
|
28
|
+
export declare const TITLE_FAMILY_TOKENS: string[];
|
|
29
|
+
/** Boundaries inside a theme scope that set their own text and colour scheme again. */
|
|
30
|
+
export declare const NESTED_BOUNDARIES = ":where(.coar-mobile, .coar-theme-scope, .coar-theme-none, .light-mode, .dark-mode, [data-theme])";
|
|
31
|
+
/**
|
|
32
|
+
* The CSS of a role theme for one scope selector (`.coar-theme--acme`). The same
|
|
33
|
+
* text styles the live Theme Editor, its download and the `.coar-compact` entry.
|
|
34
|
+
*
|
|
35
|
+
* Besides the values it states what a scope is: its own text and colour scheme, on
|
|
36
|
+
* the scope and on every boundary nested in it, so a dark scope inside a light page
|
|
37
|
+
* resolves `light-dark()` values and plain text correctly.
|
|
38
|
+
*/
|
|
39
|
+
export declare function serializeRoleTheme(selector: string, theme: CoarRoleTheme): string;
|
|
40
|
+
//# sourceMappingURL=role-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role-theme.d.ts","sourceRoot":"","sources":["../../src/theme/role-theme.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,+FAA+F;IAC/F,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,oFAAoF;AACpF,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAE9D,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE,uGAAuG;AACvG,eAAO,MAAM,uBAAuB,UAGQ,CAAC;AAE7C,kFAAkF;AAClF,eAAO,MAAM,wBAAwB,UAAoE,CAAC;AAE1G;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,UAQ9B,CAAC;AACF,eAAO,MAAM,mBAAmB,UAO/B,CAAC;AAEF,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,qGACsE,CAAC;AAOrG;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,CA8CjF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "3.4.0-beta.
|
|
3
|
+
"version": "3.4.0-beta.29",
|
|
4
4
|
"description": "Cocoar Design System — a tablet-first Vue 3 component library with 30+ accessible, themeable components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"sideEffects": [
|
|
24
24
|
"*.css",
|
|
25
|
-
"./dist/fonts.js"
|
|
25
|
+
"./dist/fonts.js",
|
|
26
|
+
"./dist/compact-fonts.js",
|
|
27
|
+
"./dist/onest-fonts.js"
|
|
26
28
|
],
|
|
27
29
|
"main": "./dist/index.js",
|
|
28
30
|
"module": "./dist/index.js",
|
|
@@ -36,6 +38,14 @@
|
|
|
36
38
|
"./fonts": {
|
|
37
39
|
"import": "./dist/fonts.js",
|
|
38
40
|
"types": "./dist/fonts.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./fonts/compact": {
|
|
43
|
+
"import": "./dist/compact-fonts.js",
|
|
44
|
+
"types": "./dist/compact-fonts.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./fonts/onest": {
|
|
47
|
+
"import": "./dist/onest-fonts.js",
|
|
48
|
+
"types": "./dist/onest-fonts.d.ts"
|
|
39
49
|
}
|
|
40
50
|
},
|
|
41
51
|
"bin": {
|
|
@@ -48,9 +58,10 @@
|
|
|
48
58
|
"skills"
|
|
49
59
|
],
|
|
50
60
|
"dependencies": {
|
|
51
|
-
"@cocoar/vue-localization": "3.4.0-beta.
|
|
61
|
+
"@cocoar/vue-localization": "3.4.0-beta.29",
|
|
52
62
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
53
63
|
"@fontsource/inter": "^5.2.8",
|
|
64
|
+
"@fontsource/onest": "^5.3.1",
|
|
54
65
|
"@fontsource/poppins": "^5.2.7",
|
|
55
66
|
"@js-temporal/polyfill": "^0.5.1",
|
|
56
67
|
"@maskito/core": "^5.2.2",
|
|
@@ -73,7 +84,7 @@
|
|
|
73
84
|
"vue": "^3.5.32",
|
|
74
85
|
"vue-router": "^5.0.4"
|
|
75
86
|
},
|
|
76
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "a3e1f043716ecbf9002e2f6c5c69b2e6fb5b6a69",
|
|
77
88
|
"scripts": {
|
|
78
89
|
"build": "vite build",
|
|
79
90
|
"test": "vitest run",
|
|
@@ -97,6 +97,7 @@ of each other.
|
|
|
97
97
|
- [Mobile presentation (Preview)](references/guide/mobile.md) — Opt into the mobile presentation with a coar-mobile parent: touch-sized controls, what decides sizes, layout and input behaviour, how it combines with brand themes, and which device classes each component supports.
|
|
98
98
|
- [Migrating to 2.11](references/guide/migration.md) — Migration guide for Cocoar UI 2.11: date/time pickers move onto CoarFormField, the clear button becomes opt-in, and two CSS tokens are renamed.
|
|
99
99
|
- [Migrating Page Builder to 3.0](references/guide/migration-page-builder-3.md) — Migration guide for @cocoar/vue-page-builder 3.0: four PageConfig concepts removed, several names disambiguated, and documents migrated to schemaVersion 6.
|
|
100
|
+
- [Migrating text on saturated fills](references/guide/migration-color-roles.md) — Text on saturated fills now has one computed ink role per base colour, with explicit overrides for custom themes.
|
|
100
101
|
|
|
101
102
|
### Foundations
|
|
102
103
|
|
|
@@ -107,6 +108,7 @@ of each other.
|
|
|
107
108
|
- [Icons](references/foundations/icons.md) — CoarIcon and the built-in SVG icon set: preset sizes, colors, rotation, spin animation, and registering custom icon sources with fallback.
|
|
108
109
|
- [Motion](references/foundations/motion.md) — Motion design tokens: duration and easing CSS variables plus pre-composed transition values, with interactive demos and usage examples.
|
|
109
110
|
- [Theme Editor](references/foundations/theming.md) — CoarThemeEditor, a live token editor: explore primitive, semantic, and component token layers, apply presets, and export a CSS snippet.
|
|
111
|
+
- [Compact presentation (Preview)](references/foundations/compact-presentation.md) — Preview: the compact presentation, a theme with Inter, Slate surfaces and separate desktop, touch and input roles. Load it as a preset in the Theme Editor or opt in with .coar-compact. Existing applications keep their presentation.
|
|
110
112
|
|
|
111
113
|
### Localization (@cocoar/vue-localization)
|
|
112
114
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Calendar (Preview)
|
|
4
4
|
|
|
5
|
-
**Devices:** desktop ready · tablet partial · phone planned —
|
|
5
|
+
**Devices:** desktop ready · tablet partial · phone planned — Touch taps, paging and long-press selection work; legacy resize targets are 6 px. Compact targets stay smaller on short/crowded events.
|
|
6
6
|
|
|
7
7
|
A Vue 3 calendar whose visible hierarchy follows the iOS calendar: **Year**, **Month**, **Day** and **Agenda**, plus fixed **Week** and **Work week** time grids for web applications. Month and Day expose their display choices as nested variations instead of flattening every renderer into the primary view switcher.
|
|
8
8
|
|
|
@@ -293,6 +293,31 @@ To customize, redefine any token under the same trigger after the package styles
|
|
|
293
293
|
}
|
|
294
294
|
```
|
|
295
295
|
|
|
296
|
+
### Compact presentation (Preview)
|
|
297
|
+
|
|
298
|
+
Inside the library's experimental `.coar-compact` profile, the calendar takes its surfaces, lines, text and
|
|
299
|
+
state colours from the vue-ui semantic tokens (`--coar-background-neutral-*`, `--coar-border-neutral-tertiary`,
|
|
300
|
+
`--coar-text-neutral-*`, accent and error roles) in light and dark alike, and its type from the shared compact
|
|
301
|
+
roles: labels and day headers follow the UI text size, event cards, pills, bars and axis captions the caption
|
|
302
|
+
size, with weight 500 for labels and titles and 600 only for view titles and the today number. Today is marked
|
|
303
|
+
in the accent colour in every view. Radii, header and agenda-row padding follow the shared control, panel and
|
|
304
|
+
interactive-row roles, so agenda rows reach the 44 px touch row under `.coar-mobile`.
|
|
305
|
+
|
|
306
|
+
Fixed week columns retain a 128 px geometry floor and scroll inside the shell on narrow screens; a horizontal
|
|
307
|
+
gesture scrolls rather than paging while the grid overflows. Month overflow actions and timed resize targets
|
|
308
|
+
have independent roles (`--coar-calendar-month-overflow-target-size` and `--coar-calendar-resize-target-size`).
|
|
309
|
+
The resize side rail is bounded by half the card to avoid overlapping targets and preserve its move area.
|
|
310
|
+
All-day lanes measure their own CSS height before positioning bars and overflow actions.
|
|
311
|
+
|
|
312
|
+
Outside the profile the presentation is unchanged: role usages retain their historical fallbacks, and compact-only
|
|
313
|
+
overflow rules do not apply. The roles are set on the outermost calendar element, so a scheme or mobile
|
|
314
|
+
scope between `.coar-compact` and the calendar still applies, and a value you set on the calendar element
|
|
315
|
+
itself (`.my-calendar { --coar-calendar-bg: … }`) wins over the profile.
|
|
316
|
+
|
|
317
|
+
Not part of the profile: event colours (`meta.color`, `meta.textColor`), assignee and band colours you pass,
|
|
318
|
+
and the geometry the views compute in script — `pixelsPerHour`, `timelineRowHeight`, the
|
|
319
|
+
pill and chip line boxes, `--coar-time-grid-axis-width` and `--coar-calendar-scroll-inset-bottom`.
|
|
320
|
+
|
|
296
321
|
> **Tip: RTL**
|
|
297
322
|
>
|
|
298
323
|
> Layout-mirroring for `direction: rtl` is **not yet** wired (multi-day bars, resize handles, sticky-header positioning all assume LTR). If you need RTL support, open an issue — the math is mostly localised to the bar / handle inset calc()s, but it deserves a deliberate pass with proper test coverage rather than a one-shot patch.
|
|
@@ -142,6 +142,10 @@ const builder = CoarGridBuilder.create<User>()
|
|
|
142
142
|
|
|
143
143
|
Dark styles ship with the package. The theme maps AG Grid's variables onto the semantic `--coar-*` tokens (with hardcoded fallbacks), so the grid follows your design-system theme in both modes. Dark values activate via the `.dark-mode` class — on `<html>` or any ancestor (the Cocoar convention, same as `@cocoar/vue-ui`), or directly on the grid element. `[data-theme="dark"]` is **not** a trigger here.
|
|
144
144
|
|
|
145
|
+
### Compact presentation (Preview)
|
|
146
|
+
|
|
147
|
+
Inside the experimental `.coar-compact` profile — on an ancestor or on the grid itself (`class="coar-compact"`) — the grid uses the library's compact roles: 13px UI text (14px with `.coar-mobile`), rows, header and AG Grid's list items at the interactive-row height (36px, 44px with `.coar-mobile`), 12px cell padding, the header in the label weight, and AG Grid's accent, icons, checkboxes, inputs, menus and drop markers on the semantic tokens. The same `cocoarTheme` serves both looks; outside the profile nothing changes. Override a role on the grid or inside the compact area: `--coar-data-grid-row-height`, `--coar-data-grid-header-height`, `--coar-data-grid-list-item-height`, `--coar-data-grid-font-size`, `--coar-data-grid-cell-padding-x`, `--coar-data-grid-header-font-weight`, `--coar-data-grid-control-radius`, `--coar-data-grid-radius`, `--coar-data-grid-tree-indent` and `--coar-data-grid-tree-toggle-size` (the last two apply in every presentation).
|
|
148
|
+
|
|
145
149
|
## Column Types
|
|
146
150
|
|
|
147
151
|
Built-in renderers for dates, numbers, currency, tags, and icons — no custom cell components needed. Date, number, and currency columns are locale-aware and update reactively when the locale changes. Try the locale switcher in the nav bar.
|
|
@@ -263,6 +263,10 @@ The viewer fills 100% of its parent and uses internal flexbox to allocate space
|
|
|
263
263
|
|
|
264
264
|
Splitters between the columns are draggable — users can resize the left rail (thumbnails) and right rail (annotations panel) on the fly.
|
|
265
265
|
|
|
266
|
+
## Compact presentation (Preview)
|
|
267
|
+
|
|
268
|
+
Inside the experimental `.coar-compact` profile — on an ancestor or on the viewer — the chrome (toolbar, sidebar, annotations panel, search bar, annotation popover) follows the semantic color tokens in light and dark, uses the library's UI, caption and field text sizes, and gets 28px buttons and inputs (44px buttons, 36px inputs and 48px headers with `.coar-mobile`). The annotation popover, teleported to `body`, takes the profile of its viewer. The page itself — canvas, rendered content, annotations, search highlights — is document content and keeps its colors. `--coar-color-*` overrides you set still win; outside the profile nothing changes.
|
|
269
|
+
|
|
266
270
|
## Position memory example
|
|
267
271
|
|
|
268
272
|
```vue
|
|
@@ -46,6 +46,8 @@ const name = ref('');
|
|
|
46
46
|
|
|
47
47
|
`CoarFormField` can place its label before or after any control, either stacked or inline. All four combinations have a visible effect. Inline layouts are especially useful when the field label is the only label of a checkbox or switch; leave the control's own `label` unset in that case.
|
|
48
48
|
|
|
49
|
+
Each example below has its own value. The two checkboxes demonstrate label-after and label-before independently; in Compact, the inline label stays beside its control.
|
|
50
|
+
|
|
49
51
|
**Demo — `form-field/demos/FormFieldLayouts.vue`**
|
|
50
52
|
|
|
51
53
|
```vue
|
|
@@ -59,7 +61,7 @@ const name = ref('');
|
|
|
59
61
|
layout="inline"
|
|
60
62
|
label-position="after"
|
|
61
63
|
>
|
|
62
|
-
<CoarCheckbox v-model="
|
|
64
|
+
<CoarCheckbox v-model="activeAfter" />
|
|
63
65
|
</CoarFormField>
|
|
64
66
|
</section>
|
|
65
67
|
|
|
@@ -71,7 +73,7 @@ const name = ref('');
|
|
|
71
73
|
layout="inline"
|
|
72
74
|
label-position="before"
|
|
73
75
|
>
|
|
74
|
-
<CoarCheckbox v-model="
|
|
76
|
+
<CoarCheckbox v-model="activeBefore" />
|
|
75
77
|
</CoarFormField>
|
|
76
78
|
</section>
|
|
77
79
|
|
|
@@ -83,7 +85,7 @@ const name = ref('');
|
|
|
83
85
|
layout="inline"
|
|
84
86
|
label-position="after"
|
|
85
87
|
>
|
|
86
|
-
<CoarTextInput v-model="
|
|
88
|
+
<CoarTextInput v-model="inlineName" placeholder="Ada Lovelace" />
|
|
87
89
|
</CoarFormField>
|
|
88
90
|
</section>
|
|
89
91
|
|
|
@@ -95,7 +97,7 @@ const name = ref('');
|
|
|
95
97
|
layout="stacked"
|
|
96
98
|
label-position="after"
|
|
97
99
|
>
|
|
98
|
-
<CoarTextInput v-model="
|
|
100
|
+
<CoarTextInput v-model="stackedName" placeholder="Ada Lovelace" />
|
|
99
101
|
</CoarFormField>
|
|
100
102
|
</section>
|
|
101
103
|
</div>
|
|
@@ -105,8 +107,10 @@ const name = ref('');
|
|
|
105
107
|
import { ref } from 'vue';
|
|
106
108
|
import { CoarCheckbox, CoarFormField, CoarTextInput } from '@cocoar/vue-ui';
|
|
107
109
|
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
+
const activeAfter = ref(false);
|
|
111
|
+
const activeBefore = ref(false);
|
|
112
|
+
const inlineName = ref('');
|
|
113
|
+
const stackedName = ref('');
|
|
110
114
|
</script>
|
|
111
115
|
|
|
112
116
|
<style scoped>
|
|
@@ -15,6 +15,8 @@ import type { CoarListboxOption } from '@cocoar/vue-ui';
|
|
|
15
15
|
|
|
16
16
|
Multi-select highlight via click, `Ctrl+Click`, `Shift+Click`, and keyboard (arrows, `Space`, `Ctrl+A`). Double-click (or `Enter`) emits `item-activate` — wire this up to move items, open a detail view, etc.
|
|
17
17
|
|
|
18
|
+
In Compact, the scrollbar track stays transparent so the list's rounded border remains visible when its contents overflow.
|
|
19
|
+
|
|
18
20
|
**Demo — `listbox/demos/BasicListbox.vue`**
|
|
19
21
|
|
|
20
22
|
```vue
|