@synopackageland/ui 0.5.4 → 0.5.5
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/PageLayoutDemo.vue.d.ts +6 -0
- package/dist/components/app/page-content/PageContent.vue.d.ts +22 -0
- package/dist/components/composite/form/Form.vue.d.ts +3 -0
- package/dist/components/composite/form/FormItem.vue.d.ts +3 -0
- package/dist/components/composite/form/context.d.ts +2 -0
- package/dist/components/composite/form-actions/FormActions.vue.d.ts +20 -0
- package/dist/components/composite/repeat-rows/FieldCell.vue.d.ts +19 -0
- package/dist/components/composite/repeat-rows/RepeatRow.vue.d.ts +24 -0
- package/dist/components/composite/repeat-rows/RepeatRows.vue.d.ts +21 -0
- package/dist/components/composite/settings-row/SettingsRow.vue.d.ts +4 -0
- package/dist/components/containers/card/Card.vue.d.ts +3 -0
- package/dist/components/containers/card-grid/CardGrid.vue.d.ts +27 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6336 -6169
- package/dist/lib/fieldWidth.d.ts +4 -0
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
page: 'dashboard' | 'form';
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/**
|
|
3
|
+
* `'fill'` uses the whole content area; `'readable'` caps the width at
|
|
4
|
+
* `--ui-page-readable-width`; any other value is a CSS maximum width.
|
|
5
|
+
*/
|
|
6
|
+
width?: 'fill' | 'readable' | (string & {});
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
width: "fill" | "readable" | (string & {});
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FieldWidth } from '../../../lib/fieldWidth';
|
|
1
2
|
import { FormFieldHandle } from './context';
|
|
2
3
|
import { FormDirection, FormRules, FormSpacing, FormValidatedResult, ValidateMessageDisplayMode, ValidateTrigger } from './types';
|
|
3
4
|
type __VLS_Props = {
|
|
@@ -7,6 +8,8 @@ type __VLS_Props = {
|
|
|
7
8
|
direction?: FormDirection;
|
|
8
9
|
/** Gap between items; `'auto'` uses `dense` (horizontal) or `regular` (vertical). */
|
|
9
10
|
spacing?: FormSpacing;
|
|
11
|
+
/** Maximum width of every control: `'xs'`–`'lg'`, `'full'` or a CSS length. A FormItem can override it. */
|
|
12
|
+
fieldWidth?: FieldWidth;
|
|
10
13
|
/** Default message placement; a FormItem can override it. */
|
|
11
14
|
validateMessageDisplayMode?: ValidateMessageDisplayMode;
|
|
12
15
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FieldWidth } from '../../../lib/fieldWidth';
|
|
1
2
|
import { FormFieldContext } from './context';
|
|
2
3
|
import { FormItemValidateMessageDisplayMode, FormRule, ValidateStatus, ValidateTrigger } from './types';
|
|
3
4
|
type __VLS_Props = {
|
|
@@ -45,6 +46,8 @@ type __VLS_Props = {
|
|
|
45
46
|
indent?: string | number;
|
|
46
47
|
/** Width of the label column in the horizontal layout. */
|
|
47
48
|
labelWidth?: string;
|
|
49
|
+
/** Maximum control width; inherits the form's `fieldWidth` (`'md'` by default). */
|
|
50
|
+
fieldWidth?: FieldWidth;
|
|
48
51
|
/** Value restored by `resetFields()`; also the initial dirty baseline. */
|
|
49
52
|
initialValue?: unknown;
|
|
50
53
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
+
import { FieldWidth } from '../../../lib/fieldWidth';
|
|
2
3
|
import { FormRules, FormDirection, FormSpacing, ValidateMessageDisplayMode, ValidateStatus, ValidateTrigger } from './types';
|
|
3
4
|
export declare const FORM_CONTEXT_KEY: InjectionKey<FormContext>;
|
|
4
5
|
export declare const FORM_FIELD_KEY: InjectionKey<FormFieldContext>;
|
|
@@ -7,6 +8,7 @@ export type FormContext = {
|
|
|
7
8
|
rules: FormRules;
|
|
8
9
|
direction: FormDirection;
|
|
9
10
|
spacing: FormSpacing;
|
|
11
|
+
fieldWidth: FieldWidth;
|
|
10
12
|
validateMessageDisplayMode: ValidateMessageDisplayMode;
|
|
11
13
|
registerField: (field: FormFieldHandle) => void;
|
|
12
14
|
unregisterField: (field: FormFieldHandle) => void;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
align?: 'start' | 'end';
|
|
3
|
+
/** Indents the actions past a horizontal form's label column, so they line up with the fields. */
|
|
4
|
+
labelWidth?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
align: "start" | "end";
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FieldWidth } from '../../../lib/fieldWidth';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
width?: FieldWidth;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
width: FieldWidth;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
removable?: boolean;
|
|
3
|
+
removeLabel?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
remove: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRemove?: (() => any) | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
removeLabel: string;
|
|
15
|
+
removable: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
addLabel: string;
|
|
3
|
+
addDisabled?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
add: () => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onAdd?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { FieldWidth } from '../../../lib/fieldWidth';
|
|
1
2
|
type __VLS_Props = {
|
|
2
3
|
label: string;
|
|
3
4
|
description?: string;
|
|
4
5
|
required?: boolean;
|
|
5
6
|
align?: 'start' | 'center';
|
|
7
|
+
/** Maximum control width: `'xs'`–`'lg'`, `'full'` or a CSS length. */
|
|
8
|
+
fieldWidth?: FieldWidth;
|
|
6
9
|
};
|
|
7
10
|
declare var __VLS_1: {};
|
|
8
11
|
type __VLS_Slots = {} & {
|
|
@@ -11,6 +14,7 @@ type __VLS_Slots = {} & {
|
|
|
11
14
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
15
|
required: boolean;
|
|
13
16
|
align: "start" | "center";
|
|
17
|
+
fieldWidth: FieldWidth;
|
|
14
18
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
20
|
declare const _default: typeof __VLS_export;
|
|
@@ -9,6 +9,8 @@ type __VLS_Props = {
|
|
|
9
9
|
expanded?: boolean;
|
|
10
10
|
/** Accessible name for the disclosure arrow when the card has no title. */
|
|
11
11
|
toggleLabel?: string;
|
|
12
|
+
/** Where footer actions sit; DSM aligns them to a side, never the centre. */
|
|
13
|
+
footerAlign?: 'start' | 'end' | 'between';
|
|
12
14
|
};
|
|
13
15
|
declare var __VLS_8: {}, __VLS_10: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {};
|
|
14
16
|
type __VLS_Slots = {} & {
|
|
@@ -31,6 +33,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
31
33
|
expanded: boolean;
|
|
32
34
|
layoutType: "regular" | "compact";
|
|
33
35
|
hasHeader: boolean;
|
|
36
|
+
footerAlign: "start" | "end" | "between";
|
|
34
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
36
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Narrowest a card may get before the grid drops a column. */
|
|
3
|
+
minItemWidth?: string;
|
|
4
|
+
gap?: string;
|
|
5
|
+
/**
|
|
6
|
+
* `'stretch'` (auto-fit) grows the cards to use the whole row; `'fill'`
|
|
7
|
+
* (auto-fill) keeps empty tracks, so a few cards stay at column width.
|
|
8
|
+
*/
|
|
9
|
+
fit?: 'stretch' | 'fill';
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
gap: string;
|
|
17
|
+
minItemWidth: string;
|
|
18
|
+
fit: "stretch" | "fill";
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,12 @@ export { default as SegmentControl } from './components/primitives/segment-contr
|
|
|
90
90
|
export { default as SegmentItem } from './components/primitives/segment-control/SegmentItem.vue';
|
|
91
91
|
export { default as SearchField } from './components/composite/search-field/SearchField.vue';
|
|
92
92
|
export { default as SettingsRow } from './components/composite/settings-row/SettingsRow.vue';
|
|
93
|
+
export { default as FormActions } from './components/composite/form-actions/FormActions.vue';
|
|
94
|
+
export { default as RepeatRows } from './components/composite/repeat-rows/RepeatRows.vue';
|
|
95
|
+
export { default as RepeatRow } from './components/composite/repeat-rows/RepeatRow.vue';
|
|
96
|
+
export { default as FieldCell } from './components/composite/repeat-rows/FieldCell.vue';
|
|
97
|
+
export { resolveFieldWidth } from './lib/fieldWidth';
|
|
98
|
+
export type { FieldWidth } from './lib/fieldWidth';
|
|
93
99
|
export { default as SettingsSection } from './components/composite/settings-section/SettingsSection.vue';
|
|
94
100
|
export { default as Footbar } from './components/composite/footbar/Footbar.vue';
|
|
95
101
|
export type { FootbarButton, FootbarButtonRegion, FootbarButtonSize, FootbarButtonVariant, } from './components/composite/footbar/types';
|
|
@@ -121,6 +127,7 @@ export { notificationControllerKey, useNotification, useNotifyManager } from './
|
|
|
121
127
|
export type { NotificationAction, NotificationActionConfig, NotificationController, NotificationDestroy, NotificationItem, NotificationOptions, NotificationTone, } from './components/feedback/notification/notification';
|
|
122
128
|
export { default as ValidationPopup } from './components/feedback/validation-popup/ValidationPopup.vue';
|
|
123
129
|
export { default as Card } from './components/containers/card/Card.vue';
|
|
130
|
+
export { default as CardGrid } from './components/containers/card-grid/CardGrid.vue';
|
|
124
131
|
export { default as HighlightBox } from './components/containers/highlight-box/HighlightBox.vue';
|
|
125
132
|
export { default as Panel } from './components/containers/panel/Panel.vue';
|
|
126
133
|
export type { PanelFbar, PanelFbarConfig } from './components/containers/panel/Panel.vue';
|
|
@@ -151,6 +158,7 @@ export type { AppSidebarGroup, AppSidebarItem } from './components/app/app-sideb
|
|
|
151
158
|
export { default as AppToolbar } from './components/app/app-toolbar/AppToolbar.vue';
|
|
152
159
|
export { default as AppActionBar } from './components/app/app-action-bar/AppActionBar.vue';
|
|
153
160
|
export { default as PageHeader } from './components/app/page-header/PageHeader.vue';
|
|
161
|
+
export { default as PageContent } from './components/app/page-content/PageContent.vue';
|
|
154
162
|
export { default as SectionTabs } from './components/app/section-tabs/SectionTabs.vue';
|
|
155
163
|
export type { SectionTab } from './components/app/section-tabs/SectionTabs.vue';
|
|
156
164
|
export { default as ConfigProvider } from './components/composite/config-provider/ConfigProvider.vue';
|