@cjdevstudios/bumblevue-metadata 1.0.0-beta.1

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/LICENSE.md ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026 CJ Development Studios
4
+ Copyright (c) 2018-2026 PrimeTek
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # BumbleVue MetaData
package/index.d.mts ADDED
@@ -0,0 +1,29 @@
1
+ declare const form: MetaType[];
2
+ declare const button: MetaType[];
3
+ declare const data: MetaType[];
4
+ declare const panel: MetaType[];
5
+ declare const overlay: MetaType[];
6
+ declare const file: MetaType[];
7
+ declare const menu: MetaType[];
8
+ declare const chart: MetaType[];
9
+ declare const messages: MetaType[];
10
+ declare const media: MetaType[];
11
+ declare const misc: MetaType[];
12
+ declare const extensions: MetaType[];
13
+ declare const components: MetaType[];
14
+
15
+ declare const composables: MetaType[];
16
+
17
+ declare const directives: MetaType[];
18
+
19
+ interface MetaType {
20
+ name?: string;
21
+ as?: string;
22
+ from?: string;
23
+ use?: {
24
+ as?: string;
25
+ };
26
+ }
27
+ declare function toMeta(arr?: any[]): MetaType[] | undefined;
28
+
29
+ export { type MetaType, button, chart, components, composables, data, directives, extensions, file, form, media, menu, messages, misc, overlay, panel, toMeta };
package/index.mjs ADDED
@@ -0,0 +1,140 @@
1
+ // src/components/index.ts
2
+ var form = toMeta([
3
+ "AutoComplete",
4
+ "Calendar",
5
+ "CascadeSelect",
6
+ "Checkbox",
7
+ "CheckboxGroup",
8
+ "Chips",
9
+ "ColorPicker",
10
+ "DatePicker",
11
+ "Dropdown",
12
+ "Editor",
13
+ "FloatLabel",
14
+ "Fluid",
15
+ "IconField",
16
+ "IftaLabel",
17
+ "InputChips",
18
+ "InputGroup",
19
+ "InputGroupAddon",
20
+ "InputIcon",
21
+ "InputMask",
22
+ "InputNumber",
23
+ "InputOtp",
24
+ "InputSwitch",
25
+ "InputText",
26
+ "Knob",
27
+ "Listbox",
28
+ "MultiSelect",
29
+ "Password",
30
+ "RadioButton",
31
+ "RadioButtonGroup",
32
+ "Rating",
33
+ "Select",
34
+ "SelectButton",
35
+ "Slider",
36
+ "Textarea",
37
+ "ToggleButton",
38
+ "ToggleSwitch",
39
+ "TreeSelect"
40
+ ]);
41
+ var button = toMeta(["Button", "ButtonGroup", "SpeedDial", "SplitButton"]);
42
+ var data = toMeta(["Column", "Row", "ColumnGroup", "DataTable", "DataView", "OrderList", "OrganizationChart", "Paginator", "PickList", "Tree", "TreeTable", "Timeline", "VirtualScroller"]);
43
+ var panel = toMeta([
44
+ "Accordion",
45
+ "AccordionPanel",
46
+ "AccordionHeader",
47
+ "AccordionContent",
48
+ "AccordionTab",
49
+ "Card",
50
+ "DeferredContent",
51
+ "Divider",
52
+ "Fieldset",
53
+ "Panel",
54
+ "ScrollPanel",
55
+ "Splitter",
56
+ "SplitterPanel",
57
+ "Stepper",
58
+ "StepList",
59
+ "Step",
60
+ "StepItem",
61
+ "StepPanels",
62
+ "StepPanel",
63
+ "TabView",
64
+ "Tabs",
65
+ "TabList",
66
+ "Tab",
67
+ "TabPanels",
68
+ "TabPanel",
69
+ "Toolbar"
70
+ ]);
71
+ var overlay = toMeta([
72
+ { name: "ConfirmDialog", use: { as: "ConfirmationService" } },
73
+ { name: "ConfirmPopup", use: { as: "ConfirmationService" } },
74
+ "Dialog",
75
+ "Drawer",
76
+ { name: "DynamicDialog", use: { as: "DialogService" } },
77
+ "OverlayPanel",
78
+ "Popover",
79
+ "Sidebar"
80
+ ]);
81
+ var file = toMeta(["FileUpload"]);
82
+ var menu = toMeta(["Breadcrumb", "ContextMenu", "Dock", "Menu", "Menubar", "MegaMenu", "PanelMenu", "Steps", "TabMenu", "TieredMenu"]);
83
+ var chart = toMeta(["Chart"]);
84
+ var messages = toMeta(["Message", "InlineMessage", { name: "Toast", use: { as: "ToastService" } }]);
85
+ var media = toMeta(["Carousel", "Galleria", "Image", "ImageCompare"]);
86
+ var misc = toMeta(["Avatar", "AvatarGroup", "Badge", "BlockUI", "Chip", "Inplace", "MeterGroup", "OverlayBadge", "ScrollTop", "Skeleton", "ProgressBar", "ProgressSpinner", "Tag", "Terminal"]);
87
+ var extensions = toMeta([
88
+ { name: "Form", from: "@primevue/forms/form" },
89
+ { name: "FormField", from: "@primevue/forms/formfield" }
90
+ ]);
91
+ var components = [...form, ...button, ...data, ...panel, ...overlay, ...file, ...menu, ...chart, ...messages, ...media, ...misc, ...extensions];
92
+
93
+ // src/composables/index.ts
94
+ var composables = toMeta([
95
+ { name: "usePrimeVue", as: "usePrimeVue", from: "primevue/config" },
96
+ { name: "useStyle", as: "useStyle", from: "primevue/usestyle" },
97
+ { name: "useConfirm", as: "useConfirm", from: "primevue/useconfirm" },
98
+ { name: "useToast", as: "useToast", from: "primevue/usetoast" },
99
+ { name: "useDialog", as: "useDialog", from: "primevue/usedialog" }
100
+ ]);
101
+
102
+ // src/directives/index.ts
103
+ var directives = toMeta([
104
+ { name: "badge", as: "BadgeDirective", from: "primevue/badgedirective" },
105
+ { name: "tooltip", as: "Tooltip", from: "primevue/tooltip" },
106
+ { name: "ripple", as: "Ripple", from: "primevue/ripple" },
107
+ { name: "styleclass", as: "StyleClass", from: "primevue/styleclass" },
108
+ { name: "focustrap", as: "FocusTrap", from: "primevue/focustrap" },
109
+ { name: "animateonscroll", as: "AnimateOnScroll", from: "primevue/animateonscroll" },
110
+ { name: "keyfilter", as: "KeyFilter", from: "primevue/keyfilter" }
111
+ ]);
112
+
113
+ // src/index.ts
114
+ function toMeta(arr) {
115
+ return arr == null ? void 0 : arr.map((item) => {
116
+ var _a;
117
+ const it = typeof item === "string" ? { name: item } : item;
118
+ it.as ??= it == null ? void 0 : it.name;
119
+ it.from ??= `primevue/${(_a = it == null ? void 0 : it.name) == null ? void 0 : _a.toLowerCase()}`;
120
+ return it;
121
+ });
122
+ }
123
+ export {
124
+ button,
125
+ chart,
126
+ components,
127
+ composables,
128
+ data,
129
+ directives,
130
+ extensions,
131
+ file,
132
+ form,
133
+ media,
134
+ menu,
135
+ messages,
136
+ misc,
137
+ overlay,
138
+ panel,
139
+ toMeta
140
+ };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@cjdevstudios/bumblevue-metadata",
3
+ "version": "1.0.0-beta.1",
4
+ "author": "CJ Development Studios",
5
+ "contributors": [
6
+ {
7
+ "name": "CJ Development Studios"
8
+ },
9
+ {
10
+ "name": "PrimeTek Informatics"
11
+ }
12
+ ],
13
+ "description": "",
14
+ "homepage": "https://bumblevue.org/",
15
+ "license": "MIT",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/CJDevStudios/bumblevue.git",
19
+ "directory": "packages/metadata"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/CJDevStudios/bumblevue/issues"
23
+ },
24
+ "main": "./index.mjs",
25
+ "module": "./index.mjs",
26
+ "types": "./index.d.mts",
27
+ "publishConfig": {
28
+ "access": "public"
29
+ },
30
+ "engines": {
31
+ "node": ">=12.11.0"
32
+ },
33
+ "exports": {
34
+ ".": {
35
+ "types": "./index.d.mts",
36
+ "import": "./index.mjs",
37
+ "default": "./index.mjs"
38
+ }
39
+ }
40
+ }