@cscfi/csc-ui 4.0.0-alpha.9 → 4.0.0-rc.2
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/README.md +36 -2
- package/dist/csc-ui.js +22771 -14908
- package/dist/custom-elements.json +8943 -5632
- package/dist/docs/c-accordion/usage.md +60 -0
- package/dist/docs/c-accordion-item/usage.md +1 -0
- package/dist/docs/c-alert/usage.md +5 -5
- package/dist/docs/c-autocomplete/usage.md +156 -0
- package/dist/docs/c-badge/usage.md +50 -0
- package/dist/docs/c-breadcrumb/usage.md +104 -0
- package/dist/docs/c-breadcrumb-item/usage.md +1 -0
- package/dist/docs/c-button/usage.md +13 -0
- package/dist/docs/c-button-group/usage.md +16 -2
- package/dist/docs/c-card/usage.md +55 -0
- package/dist/docs/c-card-actions/usage.md +1 -0
- package/dist/docs/c-card-content/usage.md +1 -0
- package/dist/docs/c-card-title/usage.md +3 -0
- package/dist/docs/c-checkbox/usage.md +37 -5
- package/dist/docs/c-color-picker/usage.md +160 -0
- package/dist/docs/c-csc-logo/usage.md +25 -0
- package/dist/docs/c-data-table/usage.md +180 -0
- package/dist/docs/c-date-picker/usage.md +224 -0
- package/dist/docs/c-divider/usage.md +36 -0
- package/dist/docs/c-file-upload/usage.md +189 -0
- package/dist/docs/c-icon/usage.md +51 -0
- package/dist/docs/c-icon-button/usage.md +80 -0
- package/dist/docs/c-link/usage.md +45 -1
- package/dist/docs/c-list/usage.md +50 -0
- package/dist/docs/c-list-item/usage.md +1 -0
- package/dist/docs/c-list-item-title/usage.md +1 -0
- package/dist/docs/c-loader/usage.md +52 -1
- package/dist/docs/c-login-button/usage.md +1 -0
- package/dist/docs/c-login-buttons/usage.md +48 -0
- package/dist/docs/c-login-card/usage.md +45 -0
- package/dist/docs/c-login-card-actions/usage.md +1 -0
- package/dist/docs/c-login-card-content/usage.md +1 -0
- package/dist/docs/c-login-card-title/usage.md +3 -0
- package/dist/docs/c-main/usage.md +21 -1
- package/dist/docs/c-menu/usage.md +15 -0
- package/dist/docs/c-menu-item/usage.md +11 -0
- package/dist/docs/c-message/usage.md +56 -0
- package/dist/docs/c-modal/usage.md +18 -12
- package/dist/docs/c-navigation-button/usage.md +32 -0
- package/dist/docs/c-number-field/usage.md +114 -0
- package/dist/docs/c-option/usage.md +1 -0
- package/dist/docs/c-option-value/usage.md +1 -0
- package/dist/docs/c-otp-input/usage.md +95 -0
- package/dist/docs/c-page/usage.md +44 -0
- package/dist/docs/c-pagination/usage.md +69 -0
- package/dist/docs/c-popover/usage.md +1 -1
- package/dist/docs/c-progress-bar/usage.md +1 -1
- package/dist/docs/c-progress-circle/usage.md +1 -1
- package/dist/docs/c-radio/usage.md +9 -6
- package/dist/docs/c-radio-group/usage.md +5 -6
- package/dist/docs/c-select/usage.md +131 -0
- package/dist/docs/c-side-navigation/usage.md +70 -0
- package/dist/docs/c-side-navigation-item/usage.md +1 -0
- package/dist/docs/c-side-navigation-title/usage.md +1 -0
- package/dist/docs/c-slider/usage.md +78 -0
- package/dist/docs/c-spinner/usage.md +1 -1
- package/dist/docs/c-status/usage.md +46 -0
- package/dist/docs/c-step/usage.md +1 -0
- package/dist/docs/c-steps/usage.md +35 -0
- package/dist/docs/c-sub-navigation-item/usage.md +1 -0
- package/dist/docs/c-switch/usage.md +10 -3
- package/dist/docs/c-tab/usage.md +1 -0
- package/dist/docs/c-tab-buttons/usage.md +15 -0
- package/dist/docs/c-tab-item/usage.md +1 -0
- package/dist/docs/c-tab-items/usage.md +1 -0
- package/dist/docs/c-table/usage.md +1 -1
- package/dist/docs/c-tabs/usage.md +77 -0
- package/dist/docs/c-tag/usage.md +1 -0
- package/dist/docs/c-tags/usage.md +85 -0
- package/dist/docs/c-text-field/usage.md +109 -0
- package/dist/docs/c-time-picker/usage.md +170 -0
- package/dist/docs/c-toasts/usage.md +27 -3
- package/dist/docs/c-toolbar/usage.md +17 -0
- package/dist/docs/c-tree-select/usage.md +156 -0
- package/dist/floating-ui.dom-DvzxEaDJ.js +1292 -0
- package/dist/styles/css/tailwind-theme.css +2 -1
- package/dist/styles/css/tokens.css +609 -178
- package/dist/vscode.css-custom-data.json +556 -99
- package/dist/vscode.html-custom-data.json +1050 -480
- package/dist/web-types.json +3303 -1707
- package/dist-types/components/c-accordion/CAccordion.vue.d.ts +21 -25
- package/dist-types/components/c-accordion-item/CAccordionItem.vue.d.ts +13 -12
- package/dist-types/components/c-alert/CAlert.vue.d.ts +12 -17
- package/dist-types/components/c-autocomplete/CAutocomplete.vue.d.ts +124 -31
- package/dist-types/components/c-breadcrumb/CBreadcrumb.vue.d.ts +35 -0
- package/dist-types/components/c-breadcrumb/fit.d.ts +29 -0
- package/dist-types/components/c-breadcrumb-item/CBreadcrumbItem.vue.d.ts +31 -0
- package/dist-types/components/c-button/CButton.vue.d.ts +52 -63
- package/dist-types/components/c-button-group/CButtonGroup.vue.d.ts +16 -14
- package/dist-types/components/c-card/CCard.vue.d.ts +2 -3
- package/dist-types/components/c-card-actions/CCardActions.vue.d.ts +5 -7
- package/dist-types/components/c-card-title/CCardTitle.vue.d.ts +11 -1
- package/dist-types/components/c-checkbox/CCheckbox.vue.d.ts +33 -52
- package/dist-types/components/c-color-picker/CColorPicker.vue.d.ts +189 -0
- package/dist-types/components/c-color-picker/colors.d.ts +66 -0
- package/dist-types/components/c-csc-logo/CCscLogo.vue.d.ts +1 -3
- package/dist-types/components/c-data-table/CDataTable.vue.d.ts +75 -51
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +277 -0
- package/dist-types/components/c-date-picker/dates.d.ts +119 -0
- package/dist-types/components/c-dropdown/CDropdown.vue.d.ts +51 -8
- package/dist-types/components/c-file-upload/CFileUpload.vue.d.ts +204 -0
- package/dist-types/components/c-file-upload/files.d.ts +99 -0
- package/dist-types/components/c-icon-button/CIconButton.vue.d.ts +23 -36
- package/dist-types/components/c-input/CInput.vue.d.ts +21 -43
- package/dist-types/components/c-link/CLink.vue.d.ts +6 -14
- package/dist-types/components/c-list/CList.vue.d.ts +4 -6
- package/dist-types/components/c-list-item/CListItem.vue.d.ts +14 -19
- package/dist-types/components/c-list-item-title/CListItemTitle.vue.d.ts +3 -2
- package/dist-types/components/c-loader/CLoader.vue.d.ts +13 -29
- package/dist-types/components/c-login-button/CLoginButton.vue.d.ts +9 -9
- package/dist-types/components/c-login-card/CLoginCard.vue.d.ts +11 -16
- package/dist-types/components/c-login-card-actions/CLoginCardActions.vue.d.ts +5 -7
- package/dist-types/components/c-login-card-title/CLoginCardTitle.vue.d.ts +11 -1
- package/dist-types/components/c-main/CMain.vue.d.ts +12 -5
- package/dist-types/components/c-menu/CMenu.vue.d.ts +17 -16
- package/dist-types/components/c-menu-item/CMenuItem.vue.d.ts +27 -35
- package/dist-types/components/c-message/CMessage.vue.d.ts +5 -15
- package/dist-types/components/c-modal/CModal.vue.d.ts +3 -3
- package/dist-types/components/c-navigation-button/CNavigationButton.vue.d.ts +20 -1
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +169 -0
- package/dist-types/components/c-number-field/numbers.d.ts +58 -0
- package/dist-types/components/c-option/COption.vue.d.ts +1 -1
- package/dist-types/components/c-otp-input/COtpInput.vue.d.ts +16 -30
- package/dist-types/components/c-page/CPage.vue.d.ts +2 -3
- package/dist-types/components/c-pagination/CPagination.vue.d.ts +56 -26
- package/dist-types/components/c-popover/CPopover.vue.d.ts +11 -7
- package/dist-types/components/c-progress-bar/CProgressBar.vue.d.ts +10 -14
- package/dist-types/components/c-progress-circle/CProgressCircle.vue.d.ts +7 -7
- package/dist-types/components/c-radio-group/CRadioGroup.vue.d.ts +11 -8
- package/dist-types/components/c-select/CSelect.vue.d.ts +119 -35
- package/dist-types/components/c-side-navigation/CSideNavigation.vue.d.ts +10 -18
- package/dist-types/components/c-side-navigation-item/CSideNavigationItem.vue.d.ts +22 -14
- package/dist-types/components/c-slider/CSlider.vue.d.ts +29 -73
- package/dist-types/components/c-spinner/CSpinner.vue.d.ts +4 -8
- package/dist-types/components/c-status/CStatus.vue.d.ts +8 -9
- package/dist-types/components/c-step/CStep.vue.d.ts +6 -4
- package/dist-types/components/c-steps/CSteps.vue.d.ts +3 -7
- package/dist-types/components/c-sub-navigation-item/CSubNavigationItem.vue.d.ts +23 -17
- package/dist-types/components/c-switch/CSwitch.vue.d.ts +17 -30
- package/dist-types/components/c-tab/CTab.vue.d.ts +11 -28
- package/dist-types/components/c-tab-buttons/CTabButtons.vue.d.ts +11 -13
- package/dist-types/components/c-tab-item/CTabItem.vue.d.ts +4 -5
- package/dist-types/components/c-tab-items/CTabItems.vue.d.ts +5 -4
- package/dist-types/components/c-table/CTable.vue.d.ts +7 -7
- package/dist-types/components/c-tabs/CTabs.vue.d.ts +13 -20
- package/dist-types/components/c-tag/CTag.vue.d.ts +22 -21
- package/dist-types/components/c-tags/CTags.vue.d.ts +9 -10
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +74 -77
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +205 -0
- package/dist-types/components/c-time-picker/times.d.ts +82 -0
- package/dist-types/components/c-toast/CToast.vue.d.ts +3 -4
- package/dist-types/components/c-toast/swipe.d.ts +40 -0
- package/dist-types/components/c-toasts/CToasts.vue.d.ts +14 -16
- package/dist-types/components/c-toolbar/CToolbar.vue.d.ts +10 -1
- package/dist-types/components/c-tooltip/CTooltip.vue.d.ts +12 -8
- package/dist-types/components/c-tree-select/CTreeSelect.vue.d.ts +257 -0
- package/dist-types/index.d.ts +41 -32
- package/dist-types/registry.d.ts +9 -0
- package/dist-types/shared/FieldMessage.vue.d.ts +8 -5
- package/dist-types/shared/PanelHeadingRow.vue.d.ts +13 -0
- package/dist-types/shared/SelectionIndicator.vue.d.ts +21 -0
- package/dist-types/shared/TypedField.vue.d.ts +48 -0
- package/dist-types/shared/appDefaults.d.ts +75 -0
- package/dist-types/shared/defineElement.d.ts +1 -0
- package/dist-types/shared/inputMask.d.ts +106 -0
- package/dist-types/shared/lightDismiss.d.ts +35 -0
- package/dist-types/shared/modalStack.d.ts +4 -3
- package/dist-types/shared/navigationDrawer.d.ts +4 -0
- package/dist-types/shared/optionLabel.d.ts +18 -0
- package/dist-types/shared/pageLock.d.ts +26 -0
- package/dist-types/shared/peekCap.d.ts +35 -0
- package/dist-types/shared/popoverChain.d.ts +13 -10
- package/dist-types/shared/positionArea.d.ts +9 -4
- package/dist-types/shared/reducedMotion.d.ts +10 -0
- package/dist-types/shared/selectAll.d.ts +29 -0
- package/dist-types/shared/splitMatches.d.ts +18 -0
- package/dist-types/shared/useAnchoredPanel.d.ts +107 -0
- package/dist-types/shared/useControlAttrs.d.ts +8 -0
- package/dist-types/shared/useDesignatedTrigger.d.ts +5 -4
- package/dist-types/shared/useFallbackPosition.d.ts +71 -0
- package/dist-types/shared/useHostEmit.d.ts +38 -0
- package/dist-types/shared/useIdReferences.d.ts +39 -0
- package/dist-types/shared/useKeyboardModality.d.ts +7 -0
- package/dist-types/shared/useNarrowViewport.d.ts +19 -0
- package/dist-types/shared/useScrollStrip.d.ts +39 -0
- package/dist-types/shared/useStatusAnnouncer.d.ts +33 -0
- package/dist-types/shared/useTypedField.d.ts +108 -0
- package/dist-types/shared/valueEvents.d.ts +41 -0
- package/dist-types/shared/visualViewport.d.ts +51 -0
- package/dist-types/tag-name-map.d.ts +1572 -672
- package/dist-types/theme/applyTheme.d.ts +6 -6
- package/dist-types/theme/chart-data.d.ts +51 -0
- package/dist-types/theme/ramp.d.ts +38 -0
- package/dist-types/theme/themeMode.d.ts +51 -0
- package/dist-types/types.d.ts +7 -11
- package/package.json +32 -21
- package/dist/css-anchor-positioning-fn-RTxo68pt.js +0 -6447
- package/dist/docs/c-toast/usage.md +0 -1
- package/dist-types/shared/anchorPolyfill.d.ts +0 -24
- package/dist-types/shared/emitModelValue.d.ts +0 -37
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
interface CListProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Draw a 1px border with rounded corners around each item; an `active` item's
|
|
4
|
+
* border turns primary.
|
|
6
5
|
*/
|
|
7
6
|
bordered?: boolean;
|
|
8
7
|
/**
|
|
9
|
-
* Disable
|
|
10
|
-
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
8
|
+
* Disable every item, items added later included; clearing it re-enables only
|
|
9
|
+
* the items the list disabled.
|
|
12
10
|
*/
|
|
13
11
|
disabled?: boolean;
|
|
14
12
|
}
|
|
@@ -1,45 +1,40 @@
|
|
|
1
1
|
interface CListItemProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Mark the item as the current one: a primary tint and ring, announced as
|
|
4
|
+
* current (`aria-current`).
|
|
6
5
|
*/
|
|
7
6
|
active?: boolean;
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
8
|
+
* Grey the item out, ignore the pointer and take it out of the Tab order; a
|
|
9
|
+
* link item stops being a link.
|
|
12
10
|
*/
|
|
13
11
|
disabled?: boolean;
|
|
14
12
|
/**
|
|
15
|
-
* Disabled by the parent list
|
|
13
|
+
* Disabled by the parent `<c-list>`, which sets it from its own `disabled`.
|
|
16
14
|
*
|
|
17
|
-
* @
|
|
15
|
+
* @internal
|
|
18
16
|
*/
|
|
19
17
|
disabledByParent?: boolean;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @seeded from csc-ui — verify
|
|
19
|
+
* Add the hover tint alone, without a link or a ripple.
|
|
24
20
|
*/
|
|
25
21
|
hoverable?: boolean;
|
|
26
22
|
/**
|
|
27
|
-
*
|
|
23
|
+
* URL that turns the item's content box into a real link, with a hover tint
|
|
24
|
+
* on the row.
|
|
28
25
|
*
|
|
29
|
-
* @seeded from csc-ui — verify
|
|
30
26
|
* @freeform any URL
|
|
31
27
|
*/
|
|
32
28
|
href?: string;
|
|
33
29
|
/**
|
|
34
|
-
* Add
|
|
35
|
-
*
|
|
36
|
-
* @seeded from csc-ui — verify
|
|
30
|
+
* Add a pointer cursor, the hover tint and a ripple on press; an item without
|
|
31
|
+
* `href` also becomes a Tab stop that Enter and Space press, firing `click`.
|
|
37
32
|
*/
|
|
38
33
|
ripple?: boolean;
|
|
39
34
|
/**
|
|
40
|
-
*
|
|
35
|
+
* Where the `href` opens, as on a native `<a>`: the same tab unless set —
|
|
36
|
+
* `_blank` for a new one.
|
|
41
37
|
*
|
|
42
|
-
* @seeded from csc-ui — verify
|
|
43
38
|
* @freeform any browsing-context name (e.g. _blank, _self)
|
|
44
39
|
*/
|
|
45
40
|
target?: string;
|
|
@@ -54,9 +49,9 @@ type __VLS_Slots = {} & {
|
|
|
54
49
|
};
|
|
55
50
|
declare const __VLS_base: import("vue").DefineComponent<CListItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CListItemProps> & Readonly<{}>, {
|
|
56
51
|
disabled: boolean;
|
|
57
|
-
active: boolean;
|
|
58
52
|
href: string;
|
|
59
53
|
target: string;
|
|
54
|
+
active: boolean;
|
|
60
55
|
disabledByParent: boolean;
|
|
61
56
|
hoverable: boolean;
|
|
62
57
|
ripple: boolean;
|
|
@@ -1,34 +1,21 @@
|
|
|
1
1
|
interface CLoaderProps {
|
|
2
2
|
/**
|
|
3
|
-
* Delay in
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Delay, in milliseconds, before the slotted message fades in once the
|
|
4
|
+
* loader shows.
|
|
6
5
|
*/
|
|
7
|
-
|
|
6
|
+
contentDelay?: number;
|
|
8
7
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* Hide the loader. Toggling it fades the loader in and out, so keep the
|
|
9
|
+
* element mounted and bind `hide` rather than using `v-if`, which would
|
|
10
|
+
* unmount it and skip the fade-out.
|
|
12
11
|
*/
|
|
13
|
-
|
|
12
|
+
hide?: boolean;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
16
|
-
* fade-out — keep the element mounted and bind `visible` rather than using
|
|
17
|
-
* `v-if`, which would unmount it and skip the leave transition.
|
|
18
|
-
*
|
|
19
|
-
* For imperative control (non-Vue consumers holding an element ref) the
|
|
20
|
-
* element also exposes `show()` / `hide()` methods. The prop is named
|
|
21
|
-
* `visible` (not `show`) so it doesn't collide with the `show()` method —
|
|
22
|
-
* mirroring native `<dialog>` (`open` property + `show()`/`close()` methods).
|
|
23
|
-
*
|
|
24
|
-
* NOTE: this replaces the original Stencil `hide` prop with its inverse, so
|
|
25
|
-
* the default (`true` = shown) preserves the original default behaviour.
|
|
14
|
+
* The spinner's diameter in pixels.
|
|
26
15
|
*/
|
|
27
|
-
|
|
16
|
+
size?: number;
|
|
28
17
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* @seeded from csc-ui — verify
|
|
18
|
+
* The spinner's stroke width in pixels.
|
|
32
19
|
*/
|
|
33
20
|
width?: number;
|
|
34
21
|
}
|
|
@@ -36,14 +23,11 @@ declare var __VLS_6: {};
|
|
|
36
23
|
type __VLS_Slots = {} & {
|
|
37
24
|
default?: (props: typeof __VLS_6) => any;
|
|
38
25
|
};
|
|
39
|
-
declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {
|
|
40
|
-
hide: () => void;
|
|
41
|
-
show: () => void;
|
|
42
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoaderProps> & Readonly<{}>, {
|
|
26
|
+
declare const __VLS_base: import("vue").DefineComponent<CLoaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoaderProps> & Readonly<{}>, {
|
|
43
27
|
width: number;
|
|
44
28
|
size: number;
|
|
45
|
-
|
|
46
|
-
|
|
29
|
+
contentDelay: number;
|
|
30
|
+
hide: boolean;
|
|
47
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
48
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
49
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
interface CLoginButtonProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Alternative text for the `src` logo, read before the provider's name.
|
|
4
|
+
* Leave it empty when the name already identifies the provider.
|
|
4
5
|
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
6
6
|
* @freeform any image alt text
|
|
7
7
|
*/
|
|
8
8
|
alt?: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* The provider's sign-in URL, which makes the card a link. Without it the
|
|
11
|
+
* card is a button: handle its `click`.
|
|
11
12
|
*
|
|
12
|
-
* @seeded from csc-ui — verify
|
|
13
13
|
* @freeform any URL
|
|
14
14
|
*/
|
|
15
15
|
href?: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* URL of the provider's logo, shown above the name. The `image` slot
|
|
18
|
+
* replaces it.
|
|
18
19
|
*
|
|
19
|
-
* @seeded from csc-ui — verify
|
|
20
20
|
* @freeform any image URL
|
|
21
21
|
*/
|
|
22
22
|
src?: string;
|
|
23
23
|
}
|
|
24
|
-
declare var
|
|
24
|
+
declare var __VLS_8: {}, __VLS_10: {};
|
|
25
25
|
type __VLS_Slots = {} & {
|
|
26
|
-
image?: (props: typeof
|
|
26
|
+
image?: (props: typeof __VLS_8) => any;
|
|
27
27
|
} & {
|
|
28
|
-
default?: (props: typeof
|
|
28
|
+
default?: (props: typeof __VLS_10) => any;
|
|
29
29
|
};
|
|
30
30
|
declare const __VLS_base: import("vue").DefineComponent<CLoginButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginButtonProps> & Readonly<{}>, {
|
|
31
31
|
href: string;
|
|
@@ -3,36 +3,31 @@
|
|
|
3
3
|
* the background image when `overlay` is set.
|
|
4
4
|
*/
|
|
5
5
|
export type CLoginCardBlendMode = 'color-burn' | 'color-dodge' | 'color' | 'darken' | 'difference' | 'exclusion' | 'hard-light' | 'hue' | 'lighten' | 'luminosity' | 'multiply' | 'normal' | 'overlay' | 'saturation' | 'screen' | 'soft-light';
|
|
6
|
-
|
|
6
|
+
interface CLoginCardProps {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Which part of the `src` image shows: any CSS `background-position`
|
|
9
|
+
* value.
|
|
9
10
|
*
|
|
10
|
-
* @seeded from csc-ui — verify
|
|
11
11
|
* @freeform any CSS background-position value
|
|
12
12
|
*/
|
|
13
13
|
backgroundPosition?: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @seeded from csc-ui — verify
|
|
15
|
+
* The card's own width, in pixels, at or below which it switches to its
|
|
16
|
+
* compact layout.
|
|
18
17
|
*/
|
|
19
18
|
mobileBreakpoint?: number;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @seeded from csc-ui — verify
|
|
20
|
+
* Tints the background image with the primary colour, blended through
|
|
21
|
+
* `overlay-blend-mode`.
|
|
24
22
|
*/
|
|
25
23
|
overlay?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Add colored overlay to the background image
|
|
28
|
-
*
|
|
29
|
-
* @seeded from csc-ui — verify
|
|
30
|
-
*/
|
|
24
|
+
/** How the `overlay` tint blends with the image: a CSS blend mode. */
|
|
31
25
|
overlayBlendMode?: CLoginCardBlendMode;
|
|
32
26
|
/**
|
|
33
|
-
*
|
|
27
|
+
* URL of the background image, shown below a curved edge: in the card's
|
|
28
|
+
* bottom-right corner, or along its bottom in the compact layout. Without
|
|
29
|
+
* it the content takes the card's full width.
|
|
34
30
|
*
|
|
35
|
-
* @seeded from csc-ui — verify
|
|
36
31
|
* @freeform any image URL
|
|
37
32
|
*/
|
|
38
33
|
src?: string;
|
|
@@ -7,17 +7,15 @@ export type CLoginCardActionsAlign = 'center' | 'end' | 'start';
|
|
|
7
7
|
* grow to fill the row.
|
|
8
8
|
*/
|
|
9
9
|
export type CLoginCardActionsJustify = 'center' | 'end' | 'space-around' | 'space-between' | 'start' | 'stretch';
|
|
10
|
-
|
|
10
|
+
interface CLoginCardActionsProps {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @seeded from csc-ui — verify
|
|
12
|
+
* Aligns the actions across the row: to its top (`start`), centre or
|
|
13
|
+
* bottom (`end`).
|
|
15
14
|
*/
|
|
16
15
|
align?: CLoginCardActionsAlign;
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @seeded from csc-ui — verify
|
|
17
|
+
* Distributes the actions along the row; `stretch` grows every action to
|
|
18
|
+
* share it.
|
|
21
19
|
*/
|
|
22
20
|
justify?: CLoginCardActionsJustify;
|
|
23
21
|
}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
+
interface CLoginCardTitleProps {
|
|
2
|
+
/**
|
|
3
|
+
* The title's heading level, 1 to 6: pick the one that fits the card's
|
|
4
|
+
* place in the page's outline (2 under the page's `h1`, 3 inside a section
|
|
5
|
+
* with an `h2`).
|
|
6
|
+
*/
|
|
7
|
+
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
}
|
|
1
9
|
declare var __VLS_1: {};
|
|
2
10
|
type __VLS_Slots = {} & {
|
|
3
11
|
default?: (props: typeof __VLS_1) => any;
|
|
4
12
|
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<CLoginCardTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CLoginCardTitleProps> & Readonly<{}>, {
|
|
14
|
+
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
17
|
declare const _default: typeof __VLS_export;
|
|
8
18
|
export default _default;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
interface CMainProps {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* @seeded from csc-ui — verify
|
|
3
|
+
* Turns off the dashboard layout: the slotted components stack in a plain
|
|
4
|
+
* column, still at least a viewport tall.
|
|
6
5
|
*/
|
|
7
6
|
disableLayout?: boolean;
|
|
8
7
|
}
|
|
9
|
-
declare var __VLS_1: {
|
|
8
|
+
declare var __VLS_1: {
|
|
9
|
+
class: string;
|
|
10
|
+
}, __VLS_3: {
|
|
11
|
+
class: string;
|
|
12
|
+
ref: string;
|
|
13
|
+
onSlotchange: () => void;
|
|
14
|
+
};
|
|
10
15
|
type __VLS_Slots = {} & {
|
|
11
|
-
|
|
16
|
+
banner?: (props: typeof __VLS_1) => any;
|
|
17
|
+
} & {
|
|
18
|
+
default?: (props: typeof __VLS_3) => any;
|
|
12
19
|
};
|
|
13
20
|
declare const __VLS_base: import("vue").DefineComponent<CMainProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMainProps> & Readonly<{}>, {
|
|
14
21
|
disableLayout: boolean;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Preferred placement of the menu panel relative to its trigger: the side, and
|
|
3
|
+
* `-start`/`-end` to align their edges on the cross axis.
|
|
4
|
+
*/
|
|
5
|
+
export type CMenuPosition = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
2
6
|
interface CMenuProps {
|
|
3
7
|
/** Distance from the trigger to the panel, in pixels. Defaults to `0`. */
|
|
4
|
-
distance?: number
|
|
8
|
+
distance?: number;
|
|
5
9
|
/** Whether the menu is open. Two-way: emits `change:open`. */
|
|
6
10
|
open?: boolean;
|
|
7
11
|
/** Preferred placement of the panel relative to the trigger. */
|
|
8
|
-
position?:
|
|
12
|
+
position?: CMenuPosition;
|
|
9
13
|
/**
|
|
10
14
|
* Designated trigger: an element elsewhere in the document that opens the
|
|
11
15
|
* menu — its document ID, or the element itself. The same trigger concept
|
|
@@ -16,21 +20,18 @@ interface CMenuProps {
|
|
|
16
20
|
*/
|
|
17
21
|
trigger?: HTMLElement | string;
|
|
18
22
|
}
|
|
19
|
-
declare var __VLS_1: {}, __VLS_3: {};
|
|
20
|
-
type __VLS_Slots = {} & {
|
|
21
|
-
trigger?: (props: typeof __VLS_1) => any;
|
|
22
|
-
} & {
|
|
23
|
-
default?: (props: typeof __VLS_3) => any;
|
|
24
|
-
};
|
|
25
|
-
declare const __VLS_base: import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
|
|
26
|
-
open: boolean;
|
|
27
|
-
distance: number | string;
|
|
28
|
-
position: CPlacement;
|
|
29
|
-
trigger: HTMLElement | string;
|
|
30
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
23
|
declare const _default: typeof __VLS_export;
|
|
33
24
|
export default _default;
|
|
25
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuProps> & Readonly<{}>, {
|
|
26
|
+
open: boolean;
|
|
27
|
+
distance: number;
|
|
28
|
+
position: CMenuPosition;
|
|
29
|
+
trigger: HTMLElement | string;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
31
|
+
trigger?: (props: {}) => any;
|
|
32
|
+
} & {
|
|
33
|
+
default?: (props: {}) => any;
|
|
34
|
+
}>;
|
|
34
35
|
type __VLS_WithSlots<T, S> = T & {
|
|
35
36
|
new (): {
|
|
36
37
|
$slots: S;
|
|
@@ -1,31 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a menu item is: a plain `command`, or one `radio` choice of several
|
|
3
|
+
* (`role="menuitemradio"`, checked with `checked`).
|
|
4
|
+
*/
|
|
5
|
+
export type CMenuItemType = 'command' | 'radio';
|
|
1
6
|
interface CMenuItemProps {
|
|
2
7
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* as a selectable choice. The state is consumer-owned: the menu emits
|
|
7
|
-
* `select` as usual and never toggles this itself. Distinct from the
|
|
8
|
-
* keyboard highlight (the `data-active` attribute the controlling menu
|
|
9
|
-
* moves between rows).
|
|
8
|
+
* Whether a `radio` item is the checked choice: it shows a check mark and
|
|
9
|
+
* `aria-checked`. The state is yours: the menu fires `select` as usual and
|
|
10
|
+
* never checks an item itself.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* SVG path for the trailing indicator shown while `active`; defaults to a
|
|
14
|
-
* check mark.
|
|
15
|
-
*
|
|
16
|
-
* @freeform SVG path data
|
|
17
|
-
*/
|
|
18
|
-
activeIcon?: string;
|
|
12
|
+
checked?: boolean;
|
|
19
13
|
/** Marks the action as destructive (renders in the error colour). */
|
|
20
14
|
danger?: boolean;
|
|
21
15
|
/** Disables the item — it is skipped by keyboard nav and emits no select. */
|
|
22
16
|
disabled?: boolean;
|
|
23
17
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @freeform SVG path data
|
|
18
|
+
* What the item is: a `command` (a plain menu item) or one `radio` choice
|
|
19
|
+
* of several, checked with `checked`.
|
|
27
20
|
*/
|
|
28
|
-
|
|
21
|
+
type?: CMenuItemType;
|
|
29
22
|
/**
|
|
30
23
|
* Value reported in the menu's `select` event when this item is chosen.
|
|
31
24
|
*
|
|
@@ -33,26 +26,25 @@ interface CMenuItemProps {
|
|
|
33
26
|
*/
|
|
34
27
|
value?: string;
|
|
35
28
|
}
|
|
36
|
-
declare
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
declare const __VLS_base: import("vue").DefineComponent<CMenuItemProps, {
|
|
43
|
-
closeSubmenu: () => void;
|
|
44
|
-
openSubmenu: () => void;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<CMenuItemProps, {
|
|
32
|
+
_closeSubmenu: () => void;
|
|
33
|
+
_isSubmenuOpen: () => boolean;
|
|
34
|
+
_openSubmenu: () => void;
|
|
45
35
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMenuItemProps> & Readonly<{}>, {
|
|
46
|
-
icon: string;
|
|
47
36
|
value: string;
|
|
37
|
+
type: CMenuItemType;
|
|
48
38
|
disabled: boolean;
|
|
49
|
-
active: boolean;
|
|
50
39
|
danger: boolean;
|
|
51
|
-
|
|
52
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
40
|
+
checked: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
42
|
+
icon?: (props: {}) => any;
|
|
43
|
+
} & {
|
|
44
|
+
default?: (props: {}) => any;
|
|
45
|
+
} & {
|
|
46
|
+
submenu?: (props: {}) => any;
|
|
47
|
+
}>;
|
|
56
48
|
type __VLS_WithSlots<T, S> = T & {
|
|
57
49
|
new (): {
|
|
58
50
|
$slots: S;
|
|
@@ -6,31 +6,21 @@ interface CMessageProps {
|
|
|
6
6
|
*/
|
|
7
7
|
errorMessage?: string;
|
|
8
8
|
/**
|
|
9
|
-
* Hint text
|
|
9
|
+
* Hint text, shown unless the error message replaces it
|
|
10
10
|
*
|
|
11
|
-
* @seeded from csc-ui — verify
|
|
12
11
|
* @freeform
|
|
13
12
|
*/
|
|
14
13
|
hint?: string;
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* @seeded from csc-ui — verify
|
|
19
|
-
* @freeform
|
|
20
|
-
*/
|
|
21
|
-
inputId?: string;
|
|
22
|
-
/**
|
|
23
|
-
* Parent validíty
|
|
24
|
-
*
|
|
25
|
-
* @seeded from csc-ui — verify
|
|
15
|
+
* Show the `error-message`, when set, in place of the hint. Marking the
|
|
16
|
+
* control itself `aria-invalid` is up to the control.
|
|
26
17
|
*/
|
|
27
|
-
|
|
18
|
+
invalid?: boolean;
|
|
28
19
|
}
|
|
29
20
|
declare const __VLS_export: import("vue").DefineComponent<CMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CMessageProps> & Readonly<{}>, {
|
|
21
|
+
invalid: boolean;
|
|
30
22
|
errorMessage: string;
|
|
31
23
|
hint: string;
|
|
32
|
-
valid: boolean;
|
|
33
|
-
inputId: string;
|
|
34
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
25
|
declare const _default: typeof __VLS_export;
|
|
36
26
|
export default _default;
|
|
@@ -4,9 +4,9 @@ interface CModalProps {
|
|
|
4
4
|
*/
|
|
5
5
|
disableBackdropBlur?: boolean;
|
|
6
6
|
/**
|
|
7
|
-
* Dismissed when touching/clicking outside the content
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Dismissed when touching/clicking outside the content. A non-dismissable
|
|
8
|
+
* modal responds to that with a nudge animation instead of closing. Escape
|
|
9
|
+
* closes every modal.
|
|
10
10
|
*/
|
|
11
11
|
dismissable?: boolean;
|
|
12
12
|
/**
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* UI texts of `c-navigation-button`, shallow-merged over the English
|
|
3
|
+
* defaults.
|
|
4
|
+
*/
|
|
5
|
+
export interface CNavigationButtonTexts {
|
|
6
|
+
/** Accessible name of the button. */
|
|
7
|
+
label?: string;
|
|
8
|
+
}
|
|
9
|
+
interface CNavigationButtonProps {
|
|
10
|
+
/**
|
|
11
|
+
* UI text overrides (i18n), merged over the English defaults. Objects have
|
|
12
|
+
* no attribute form — bind as a DOM property
|
|
13
|
+
*
|
|
14
|
+
* @defaultable {}
|
|
15
|
+
*/
|
|
16
|
+
texts?: CNavigationButtonTexts;
|
|
17
|
+
}
|
|
2
18
|
declare const _default: typeof __VLS_export;
|
|
3
19
|
export default _default;
|
|
20
|
+
declare const __VLS_export: import("vue").DefineComponent<CNavigationButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CNavigationButtonProps> & Readonly<{}>, {
|
|
21
|
+
texts: CNavigationButtonTexts;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|