@nan0web/ui 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -10
- package/src/core/Intent.js +4 -3
- package/src/domain/FooterModel.js +57 -0
- package/src/domain/HeaderModel.js +50 -0
- package/src/domain/HeroModel.js +48 -0
- package/src/domain/Navigation.js +11 -10
- package/src/domain/SandboxModel.js +66 -115
- package/src/domain/ShowcaseAppModel.js +133 -50
- package/src/domain/components/AccordionModel.js +38 -0
- package/src/domain/components/AutocompleteModel.js +11 -21
- package/src/domain/components/BannerModel.js +37 -0
- package/src/domain/components/BreadcrumbModel.js +11 -9
- package/src/domain/components/ButtonModel.js +31 -58
- package/src/domain/components/CommentModel.js +44 -0
- package/src/domain/components/ConfirmModel.js +26 -33
- package/src/domain/components/EmptyStateModel.js +45 -0
- package/src/domain/components/FAQModel.js +32 -0
- package/src/domain/components/FooterConfigModel.js +26 -0
- package/src/domain/components/FooterVisibilityModel.js +48 -0
- package/src/domain/components/GalleryModel.js +36 -0
- package/src/domain/components/HeaderConfigModel.js +26 -0
- package/src/domain/components/HeaderVisibilityModel.js +54 -0
- package/src/domain/components/InputModel.js +21 -41
- package/src/domain/components/PriceModel.js +30 -0
- package/src/domain/components/PricingModel.js +39 -0
- package/src/domain/components/PricingSectionModel.js +32 -0
- package/src/domain/components/ProfileDropdownModel.js +45 -0
- package/src/domain/components/SelectModel.js +11 -21
- package/src/domain/components/SpinnerModel.js +11 -26
- package/src/domain/components/StatsItemModel.js +38 -0
- package/src/domain/components/StatsModel.js +32 -0
- package/src/domain/components/TableModel.js +11 -24
- package/src/domain/components/TabsModel.js +30 -0
- package/src/domain/components/TestimonialModel.js +24 -0
- package/src/domain/components/TimelineItemModel.js +38 -0
- package/src/domain/components/TimelineModel.js +32 -0
- package/src/domain/components/ToastModel.js +24 -51
- package/src/domain/components/TreeModel.js +10 -26
- package/src/domain/components/index.js +34 -0
- package/src/domain/index.js +24 -0
- package/src/index.js +2 -0
- package/types/domain/FooterModel.d.ts +52 -0
- package/types/domain/HeaderModel.d.ts +45 -0
- package/types/domain/HeroModel.d.ts +43 -0
- package/types/domain/Navigation.d.ts +10 -9
- package/types/domain/SandboxModel.d.ts +16 -40
- package/types/domain/ShowcaseAppModel.d.ts +26 -54
- package/types/domain/components/AccordionModel.d.ts +33 -0
- package/types/domain/components/AutocompleteModel.d.ts +10 -29
- package/types/domain/components/BannerModel.d.ts +32 -0
- package/types/domain/components/BreadcrumbModel.d.ts +13 -6
- package/types/domain/components/ButtonModel.d.ts +18 -54
- package/types/domain/components/CommentModel.d.ts +39 -0
- package/types/domain/components/ConfirmModel.d.ts +20 -35
- package/types/domain/components/EmptyStateModel.d.ts +40 -0
- package/types/domain/components/FAQModel.d.ts +27 -0
- package/types/domain/components/FooterConfigModel.d.ts +21 -0
- package/types/domain/components/FooterVisibilityModel.d.ts +43 -0
- package/types/domain/components/GalleryModel.d.ts +35 -0
- package/types/domain/components/HeaderConfigModel.d.ts +21 -0
- package/types/domain/components/HeaderVisibilityModel.d.ts +49 -0
- package/types/domain/components/HeroModel.d.ts +24 -0
- package/types/domain/components/InputModel.d.ts +19 -59
- package/types/domain/components/PriceModel.d.ts +25 -0
- package/types/domain/components/PricingModel.d.ts +34 -0
- package/types/domain/components/PricingSectionModel.d.ts +27 -0
- package/types/domain/components/ProfileDropdownModel.d.ts +40 -0
- package/types/domain/components/SelectModel.d.ts +13 -28
- package/types/domain/components/ShowcaseAppModel.d.ts +32 -0
- package/types/domain/components/SpinnerModel.d.ts +10 -27
- package/types/domain/components/StatsItemModel.d.ts +33 -0
- package/types/domain/components/StatsModel.d.ts +27 -0
- package/types/domain/components/TableModel.d.ts +10 -26
- package/types/domain/components/TabsModel.d.ts +28 -0
- package/types/domain/components/TestimonialModel.d.ts +18 -0
- package/types/domain/components/TimelineItemModel.d.ts +33 -0
- package/types/domain/components/TimelineModel.d.ts +27 -0
- package/types/domain/components/ToastModel.d.ts +16 -45
- package/types/domain/components/TreeModel.d.ts +13 -36
- package/types/domain/components/index.d.ts +20 -0
- package/types/domain/index.d.ts +4 -1
- package/types/index.d.ts +1 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimelineItemModel — OLMUI Model-as-Schema
|
|
3
|
+
* A single entry on a timeline (event, milestone, changelog).
|
|
4
|
+
*/
|
|
5
|
+
export class TimelineItemModel extends Model {
|
|
6
|
+
static $id: string;
|
|
7
|
+
static date: {
|
|
8
|
+
help: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
default: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
static title: {
|
|
14
|
+
help: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
default: string;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
static description: {
|
|
20
|
+
help: string;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @param {Partial<TimelineItemModel> | Record<string, any>} data Model input data.
|
|
26
|
+
* @param {object} [options] Extended options (db, etc.)
|
|
27
|
+
*/
|
|
28
|
+
constructor(data?: Partial<TimelineItemModel> | Record<string, any>, options?: object);
|
|
29
|
+
/** @type {string} Date of the event */ date: string;
|
|
30
|
+
/** @type {string} Event or milestone title */ title: string;
|
|
31
|
+
/** @type {string} Detailed description of the event */ description: string;
|
|
32
|
+
}
|
|
33
|
+
import { Model } from '@nan0web/types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TimelineModel — OLMUI Model-as-Schema
|
|
3
|
+
* A collection of timeline events (changelog, roadmap, history).
|
|
4
|
+
*/
|
|
5
|
+
export class TimelineModel extends Model {
|
|
6
|
+
static $id: string;
|
|
7
|
+
static title: {
|
|
8
|
+
help: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
static items: {
|
|
13
|
+
help: string;
|
|
14
|
+
type: string;
|
|
15
|
+
hint: typeof TimelineItemModel;
|
|
16
|
+
default: never[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @param {Partial<TimelineModel> | Record<string, any>} data Model input data.
|
|
20
|
+
* @param {object} [options] Extended options (db, etc.)
|
|
21
|
+
*/
|
|
22
|
+
constructor(data?: Partial<TimelineModel> | Record<string, any>, options?: object);
|
|
23
|
+
/** @type {string} Timeline section title */ title: string;
|
|
24
|
+
/** @type {TimelineItemModel[]} Array of timeline events */ items: TimelineItemModel[];
|
|
25
|
+
}
|
|
26
|
+
import { Model } from '@nan0web/types';
|
|
27
|
+
import { TimelineItemModel } from './TimelineItemModel.js';
|
|
@@ -1,62 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @typedef {Object} ToastData
|
|
4
|
-
* @property {string} [message]
|
|
5
|
-
* @property {ToastVariant} [variant]
|
|
6
|
-
* @property {number} [duration]
|
|
7
|
-
* @property {boolean} [open]
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* Model-as-Schema for Toast notification component.
|
|
11
|
-
* Represents a transient message displayed to the user.
|
|
2
|
+
* Model-as-Schema for Toast notification.
|
|
12
3
|
*/
|
|
13
4
|
export class ToastModel extends Model {
|
|
14
|
-
static message: {
|
|
15
|
-
help: string;
|
|
16
|
-
default: string;
|
|
17
|
-
type: string;
|
|
18
|
-
};
|
|
19
5
|
static variant: {
|
|
20
6
|
help: string;
|
|
21
7
|
default: string;
|
|
22
8
|
options: string[];
|
|
23
9
|
};
|
|
24
|
-
static
|
|
10
|
+
static message: {
|
|
25
11
|
help: string;
|
|
26
|
-
default:
|
|
12
|
+
default: string;
|
|
27
13
|
type: string;
|
|
28
14
|
};
|
|
29
|
-
static
|
|
15
|
+
static duration: {
|
|
30
16
|
help: string;
|
|
31
|
-
default:
|
|
17
|
+
default: number;
|
|
32
18
|
type: string;
|
|
33
19
|
};
|
|
34
20
|
/**
|
|
35
|
-
* @param {
|
|
21
|
+
* @param {Partial<ToastModel> | Record<string, any>} data Model input data.
|
|
22
|
+
* @param {object} [options] Extended options (db, etc.)
|
|
36
23
|
*/
|
|
37
|
-
constructor(data?:
|
|
38
|
-
/** @type {
|
|
39
|
-
/** @type {
|
|
40
|
-
/** @type {number
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
message: string | undefined;
|
|
46
|
-
component: string;
|
|
47
|
-
model: any;
|
|
48
|
-
}, {
|
|
49
|
-
type: string;
|
|
50
|
-
data: {
|
|
51
|
-
closed: boolean;
|
|
52
|
-
};
|
|
53
|
-
}, unknown>;
|
|
24
|
+
constructor(data?: Partial<ToastModel> | Record<string, any>, options?: object);
|
|
25
|
+
/** @type {'info'|'success'|'warn'|'error'} Notification color scheme */ variant: "info" | "success" | "warn" | "error";
|
|
26
|
+
/** @type {string} Text displayed in the toast */ message: string;
|
|
27
|
+
/** @type {number} Auto-dismiss timeout in ms */ duration: number;
|
|
28
|
+
/**
|
|
29
|
+
* @returns {AsyncGenerator<any, any, any>}
|
|
30
|
+
*/
|
|
31
|
+
run(): AsyncGenerator<any, any, any>;
|
|
54
32
|
}
|
|
55
|
-
|
|
56
|
-
export type ToastData = {
|
|
57
|
-
message?: string | undefined;
|
|
58
|
-
variant?: ToastVariant | undefined;
|
|
59
|
-
duration?: number | undefined;
|
|
60
|
-
open?: boolean | undefined;
|
|
61
|
-
};
|
|
62
|
-
import { Model } from '@nan0web/core';
|
|
33
|
+
import { Model } from '@nan0web/types';
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {Object} TreeNode
|
|
3
|
-
* @property {string} label
|
|
4
|
-
* @property {boolean} [expanded]
|
|
5
|
-
* @property {TreeNode[]} [children]
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @typedef {Object} TreeData
|
|
9
|
-
* @property {TreeNode[]} [data]
|
|
10
|
-
*/
|
|
11
1
|
/**
|
|
12
2
|
* Model-as-Schema for Tree component.
|
|
13
3
|
* Represents a hierarchical selection or navigation structure.
|
|
@@ -19,31 +9,18 @@ export class TreeModel extends Model {
|
|
|
19
9
|
default: never[];
|
|
20
10
|
};
|
|
21
11
|
/**
|
|
22
|
-
* @param {
|
|
12
|
+
* @param {Partial<TreeModel> | Record<string, any>} data Model input data.
|
|
13
|
+
* @param {object} [options] Extended options (db, etc.)
|
|
23
14
|
*/
|
|
24
|
-
constructor(data?:
|
|
25
|
-
/** @type {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, {
|
|
35
|
-
type: string;
|
|
36
|
-
data: {
|
|
37
|
-
selected: any;
|
|
38
|
-
};
|
|
39
|
-
}, unknown>;
|
|
15
|
+
constructor(data?: Partial<TreeModel> | Record<string, any>, options?: object);
|
|
16
|
+
/** @type {Array<{label: string, expanded?: boolean, children?: any[]}>} Tree nodes */ data: Array<{
|
|
17
|
+
label: string;
|
|
18
|
+
expanded?: boolean;
|
|
19
|
+
children?: any[];
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* @returns {AsyncGenerator<any, any, any>}
|
|
23
|
+
*/
|
|
24
|
+
run(): AsyncGenerator<any, any, any>;
|
|
40
25
|
}
|
|
41
|
-
|
|
42
|
-
label: string;
|
|
43
|
-
expanded?: boolean | undefined;
|
|
44
|
-
children?: TreeNode[] | undefined;
|
|
45
|
-
};
|
|
46
|
-
export type TreeData = {
|
|
47
|
-
data?: TreeNode[] | undefined;
|
|
48
|
-
};
|
|
49
|
-
import { Model } from '@nan0web/core';
|
|
26
|
+
import { Model } from '@nan0web/types';
|
|
@@ -8,3 +8,23 @@ export { ToastModel } from "./ToastModel.js";
|
|
|
8
8
|
export { SelectModel } from "./SelectModel.js";
|
|
9
9
|
export { AutocompleteModel } from "./AutocompleteModel.js";
|
|
10
10
|
export { TreeModel } from "./TreeModel.js";
|
|
11
|
+
export { TabsModel } from "./TabsModel.js";
|
|
12
|
+
export { AccordionModel } from "./AccordionModel.js";
|
|
13
|
+
export { FAQModel } from "./FAQModel.js";
|
|
14
|
+
export { GalleryModel } from "./GalleryModel.js";
|
|
15
|
+
export { PriceModel } from "./PriceModel.js";
|
|
16
|
+
export { PricingModel } from "./PricingModel.js";
|
|
17
|
+
export { PricingSectionModel } from "./PricingSectionModel.js";
|
|
18
|
+
export { CommentModel } from "./CommentModel.js";
|
|
19
|
+
export { TestimonialModel } from "./TestimonialModel.js";
|
|
20
|
+
export { StatsItemModel } from "./StatsItemModel.js";
|
|
21
|
+
export { StatsModel } from "./StatsModel.js";
|
|
22
|
+
export { TimelineItemModel } from "./TimelineItemModel.js";
|
|
23
|
+
export { TimelineModel } from "./TimelineModel.js";
|
|
24
|
+
export { HeaderVisibilityModel } from "./HeaderVisibilityModel.js";
|
|
25
|
+
export { HeaderConfigModel } from "./HeaderConfigModel.js";
|
|
26
|
+
export { FooterVisibilityModel } from "./FooterVisibilityModel.js";
|
|
27
|
+
export { FooterConfigModel } from "./FooterConfigModel.js";
|
|
28
|
+
export { EmptyStateModel } from "./EmptyStateModel.js";
|
|
29
|
+
export { BannerModel } from "./BannerModel.js";
|
|
30
|
+
export { ProfileDropdownModel } from "./ProfileDropdownModel.js";
|
package/types/domain/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { SandboxModel } from "./SandboxModel.js";
|
|
2
2
|
export { ShowcaseAppModel } from "./ShowcaseAppModel.js";
|
|
3
3
|
export { default as Navigation } from "./Navigation.js";
|
|
4
|
-
export {
|
|
4
|
+
export { default as HeaderModel } from "./HeaderModel.js";
|
|
5
|
+
export { default as FooterModel } from "./FooterModel.js";
|
|
6
|
+
export { default as HeroModel } from "./HeroModel.js";
|
|
7
|
+
export { ButtonModel, ConfirmModel, InputModel, SpinnerModel, TableModel, ToastModel, SelectModel, AutocompleteModel, TreeModel, TabsModel, AccordionModel, GalleryModel, PriceModel, PricingModel, CommentModel, TestimonialModel, StatsItemModel, StatsModel, TimelineItemModel, TimelineModel, HeaderVisibilityModel, HeaderConfigModel, FooterVisibilityModel, FooterConfigModel, EmptyStateModel, BannerModel, ProfileDropdownModel } from "./components/index.js";
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { format } from "./format.js";
|
|
2
|
+
export { default as Navigation } from "./domain/Navigation.js";
|
|
2
3
|
export { default as FormMessage } from "./core/Form/Message.js";
|
|
3
4
|
export { default as FormInput } from "./core/Form/Input.js";
|
|
4
5
|
export { default as InputAdapter } from "./core/InputAdapter.js";
|