diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000..b585a7616
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,13 @@
+# Editor configuration, see https://editorconfig.org
+root = true
+
+[*]
+charset = utf-8
+indent_style = space
+indent_size = 4
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+[*.md]
+max_line_length = off
+trim_trailing_whitespace = false
diff --git a/.vscode/settings.team.json b/.vscode/settings.team.json
index 36ff951d8..f633bc475 100644
--- a/.vscode/settings.team.json
+++ b/.vscode/settings.team.json
@@ -15,5 +15,9 @@
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
+ },
+ "[json]": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
+ "editor.formatOnSave": true
}
}
diff --git a/build-meta.js b/build-meta.js
index f6a85e403..fb7b86a1d 100644
--- a/build-meta.js
+++ b/build-meta.js
@@ -1,7 +1,7 @@
const fs = require('fs-extra');
const path = require('path');
-function copyDependencies(inFolder, outFolder) {
+function copyDependencies(inFolder, outFolder, subFolder) {
fs.readdirSync(path.resolve(__dirname, inFolder), { withFileTypes: true })
.filter((dir) => dir.isDirectory())
.forEach(({ name: folderName }) => {
@@ -10,10 +10,20 @@ function copyDependencies(inFolder, outFolder) {
fs.copySync(path.resolve(__dirname, inFolder + folderName) + '/' + file, outFolder + folderName + '/' + file);
}
});
+
+ if (subFolder) {
+ try {
+ fs.readdirSync(path.resolve(__dirname, inFolder + folderName + subFolder)).forEach((subFile) => {
+ if (subFile === 'package.json' || subFile.endsWith('d.ts') || subFile.endsWith('vue')) {
+ fs.copySync(path.resolve(__dirname, inFolder + folderName + subFolder) + '/' + subFile, outFolder + folderName + subFolder + '/' + subFile);
+ }
+ });
+ } catch {}
+ }
});
}
-copyDependencies('./components/lib/', 'dist/');
+copyDependencies('./components/lib/', 'dist/', '/style');
copyDependencies('./components/lib/icons/', 'dist/icons/');
copyDependencies('./components/lib/passthrough/', 'dist/passthrough/');
diff --git a/components/lib/accordion/BaseAccordion.vue b/components/lib/accordion/BaseAccordion.vue
index 1e52f77cc..3838578c3 100644
--- a/components/lib/accordion/BaseAccordion.vue
+++ b/components/lib/accordion/BaseAccordion.vue
@@ -1,53 +1,6 @@
diff --git a/components/lib/card/package.json b/components/lib/card/package.json
index 7158047e2..8428e0ecd 100644
--- a/components/lib/card/package.json
+++ b/components/lib/card/package.json
@@ -1,9 +1,9 @@
{
- "main": "./card.cjs.js",
- "module": "./card.esm.js",
- "unpkg": "./card.min.js",
- "types": "./Card.d.ts",
- "browser": {
- "./sfc": "./Card.vue"
- }
-}
\ No newline at end of file
+ "main": "./card.cjs.js",
+ "module": "./card.esm.js",
+ "unpkg": "./card.min.js",
+ "types": "./Card.d.ts",
+ "browser": {
+ "./sfc": "./Card.vue"
+ }
+}
diff --git a/components/lib/card/style/CardStyle.js b/components/lib/card/style/CardStyle.js
new file mode 100644
index 000000000..f0dfcfd86
--- /dev/null
+++ b/components/lib/card/style/CardStyle.js
@@ -0,0 +1,17 @@
+import BaseStyle from 'primevue/base/style';
+
+const classes = {
+ root: 'p-card p-component',
+ header: 'p-card-header',
+ body: 'p-card-body',
+ title: 'p-card-title',
+ subtitle: 'p-card-subtitle',
+ content: 'p-card-content',
+ footer: 'p-card-footer'
+};
+
+export default BaseStyle.extend({
+ name: 'card',
+ classes,
+ loadStyle: () => {}
+});
diff --git a/components/lib/card/style/package.json b/components/lib/card/style/package.json
new file mode 100644
index 000000000..b96785ec3
--- /dev/null
+++ b/components/lib/card/style/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "./cardstyle.cjs.js",
+ "module": "./cardstyle.esm.js",
+ "unpkg": "./cardstyle.min.js"
+}
diff --git a/components/lib/carousel/BaseCarousel.vue b/components/lib/carousel/BaseCarousel.vue
index 192f6ea63..aebfa47c4 100644
--- a/components/lib/carousel/BaseCarousel.vue
+++ b/components/lib/carousel/BaseCarousel.vue
@@ -1,136 +1,6 @@
diff --git a/components/lib/dynamicdialog/DynamicDialog.vue b/components/lib/dynamicdialog/DynamicDialog.vue
index 18c90d3de..eaf532a3e 100644
--- a/components/lib/dynamicdialog/DynamicDialog.vue
+++ b/components/lib/dynamicdialog/DynamicDialog.vue
@@ -13,14 +13,14 @@
diff --git a/components/lib/editor/package.json b/components/lib/editor/package.json
index dc6386c2b..7d3a27b95 100644
--- a/components/lib/editor/package.json
+++ b/components/lib/editor/package.json
@@ -1,9 +1,9 @@
{
- "main": "./editor.cjs.js",
- "module": "./editor.esm.js",
- "unpkg": "./editor.min.js",
- "types": "./Editor.d.ts",
- "browser": {
- "./sfc": "./Editor.vue"
- }
-}
\ No newline at end of file
+ "main": "./editor.cjs.js",
+ "module": "./editor.esm.js",
+ "unpkg": "./editor.min.js",
+ "types": "./Editor.d.ts",
+ "browser": {
+ "./sfc": "./Editor.vue"
+ }
+}
diff --git a/components/lib/editor/style/EditorStyle.js b/components/lib/editor/style/EditorStyle.js
new file mode 100644
index 000000000..412c95d8f
--- /dev/null
+++ b/components/lib/editor/style/EditorStyle.js
@@ -0,0 +1,961 @@
+import BaseStyle from 'primevue/base/style';
+
+const quillCSS = `
+/*!
+ * Quill Editor v1.3.3
+ * https://quilljs.com/
+ * Copyright (c) 2014, Jason Chen
+ * Copyright (c) 2013, salesforce.com
+ */
+.ql-container {
+ box-sizing: border-box;
+ font-family: Helvetica, Arial, sans-serif;
+ font-size: 13px;
+ height: 100%;
+ margin: 0px;
+ position: relative;
+}
+.ql-container.ql-disabled .ql-tooltip {
+ visibility: hidden;
+}
+.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
+ pointer-events: none;
+}
+.ql-clipboard {
+ left: -100000px;
+ height: 1px;
+ overflow-y: hidden;
+ position: absolute;
+ top: 50%;
+}
+.ql-clipboard p {
+ margin: 0;
+ padding: 0;
+}
+.ql-editor {
+ box-sizing: border-box;
+ line-height: 1.42;
+ height: 100%;
+ outline: none;
+ overflow-y: auto;
+ padding: 12px 15px;
+ tab-size: 4;
+ -moz-tab-size: 4;
+ text-align: left;
+ white-space: pre-wrap;
+ word-wrap: break-word;
+}
+.ql-editor > * {
+ cursor: text;
+}
+.ql-editor p,
+.ql-editor ol,
+.ql-editor ul,
+.ql-editor pre,
+.ql-editor blockquote,
+.ql-editor h1,
+.ql-editor h2,
+.ql-editor h3,
+.ql-editor h4,
+.ql-editor h5,
+.ql-editor h6 {
+ margin: 0;
+ padding: 0;
+ counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
+}
+.ql-editor ol,
+.ql-editor ul {
+ padding-left: 1.5rem;
+}
+.ql-editor ol > li,
+.ql-editor ul > li {
+ list-style-type: none;
+}
+.ql-editor ul > li::before {
+ content: '\\2022';
+}
+.ql-editor ul[data-checked='true'],
+.ql-editor ul[data-checked='false'] {
+ pointer-events: none;
+}
+.ql-editor ul[data-checked='true'] > li *,
+.ql-editor ul[data-checked='false'] > li * {
+ pointer-events: all;
+}
+.ql-editor ul[data-checked='true'] > li::before,
+.ql-editor ul[data-checked='false'] > li::before {
+ color: #777;
+ cursor: pointer;
+ pointer-events: all;
+}
+.ql-editor ul[data-checked='true'] > li::before {
+ content: '\\2611';
+}
+.ql-editor ul[data-checked='false'] > li::before {
+ content: '\\2610';
+}
+.ql-editor li::before {
+ display: inline-block;
+ white-space: nowrap;
+ width: 1.2rem;
+}
+.ql-editor li:not(.ql-direction-rtl)::before {
+ margin-left: -1.5rem;
+ margin-right: 0.3rem;
+ text-align: right;
+}
+.ql-editor li.ql-direction-rtl::before {
+ margin-left: 0.3rem;
+ margin-right: -1.5rem;
+}
+.ql-editor ol li:not(.ql-direction-rtl),
+.ql-editor ul li:not(.ql-direction-rtl) {
+ padding-left: 1.5rem;
+}
+.ql-editor ol li.ql-direction-rtl,
+.ql-editor ul li.ql-direction-rtl {
+ padding-right: 1.5rem;
+}
+.ql-editor ol li {
+ counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
+ counter-increment: list-0;
+}
+.ql-editor ol li:before {
+ content: counter(list-0, decimal) '. ';
+}
+.ql-editor ol li.ql-indent-1 {
+ counter-increment: list-1;
+}
+.ql-editor ol li.ql-indent-1:before {
+ content: counter(list-1, lower-alpha) '. ';
+}
+.ql-editor ol li.ql-indent-1 {
+ counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-2 {
+ counter-increment: list-2;
+}
+.ql-editor ol li.ql-indent-2:before {
+ content: counter(list-2, lower-roman) '. ';
+}
+.ql-editor ol li.ql-indent-2 {
+ counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-3 {
+ counter-increment: list-3;
+}
+.ql-editor ol li.ql-indent-3:before {
+ content: counter(list-3, decimal) '. ';
+}
+.ql-editor ol li.ql-indent-3 {
+ counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-4 {
+ counter-increment: list-4;
+}
+.ql-editor ol li.ql-indent-4:before {
+ content: counter(list-4, lower-alpha) '. ';
+}
+.ql-editor ol li.ql-indent-4 {
+ counter-reset: list-5 list-6 list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-5 {
+ counter-increment: list-5;
+}
+.ql-editor ol li.ql-indent-5:before {
+ content: counter(list-5, lower-roman) '. ';
+}
+.ql-editor ol li.ql-indent-5 {
+ counter-reset: list-6 list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-6 {
+ counter-increment: list-6;
+}
+.ql-editor ol li.ql-indent-6:before {
+ content: counter(list-6, decimal) '. ';
+}
+.ql-editor ol li.ql-indent-6 {
+ counter-reset: list-7 list-8 list-9;
+}
+.ql-editor ol li.ql-indent-7 {
+ counter-increment: list-7;
+}
+.ql-editor ol li.ql-indent-7:before {
+ content: counter(list-7, lower-alpha) '. ';
+}
+.ql-editor ol li.ql-indent-7 {
+ counter-reset: list-8 list-9;
+}
+.ql-editor ol li.ql-indent-8 {
+ counter-increment: list-8;
+}
+.ql-editor ol li.ql-indent-8:before {
+ content: counter(list-8, lower-roman) '. ';
+}
+.ql-editor ol li.ql-indent-8 {
+ counter-reset: list-9;
+}
+.ql-editor ol li.ql-indent-9 {
+ counter-increment: list-9;
+}
+.ql-editor ol li.ql-indent-9:before {
+ content: counter(list-9, decimal) '. ';
+}
+.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
+ padding-left: 3rem;
+}
+.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
+ padding-left: 4.5rem;
+}
+.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
+ padding-right: 3rem;
+}
+.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
+ padding-right: 4.5rem;
+}
+.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
+ padding-left: 6rem;
+}
+.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
+ padding-left: 7.5rem;
+}
+.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
+ padding-right: 6rem;
+}
+.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
+ padding-right: 7.5rem;
+}
+.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
+ padding-left: 9rem;
+}
+.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
+ padding-left: 10.5rem;
+}
+.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
+ padding-right: 9rem;
+}
+.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
+ padding-right: 10.5rem;
+}
+.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
+ padding-left: 12rem;
+}
+.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
+ padding-left: 13.5rem;
+}
+.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
+ padding-right: 12rem;
+}
+.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
+ padding-right: 13.5rem;
+}
+.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
+ padding-left: 15rem;
+}
+.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
+ padding-left: 16.5rem;
+}
+.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
+ padding-right: 15rem;
+}
+.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
+ padding-right: 16.5rem;
+}
+.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
+ padding-left: 18rem;
+}
+.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
+ padding-left: 19.5rem;
+}
+.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
+ padding-right: 18rem;
+}
+.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
+ padding-right: 19.5rem;
+}
+.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
+ padding-left: 21rem;
+}
+.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
+ padding-left: 22.5rem;
+}
+.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
+ padding-right: 21rem;
+}
+.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
+ padding-right: 22.5rem;
+}
+.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
+ padding-left: 24rem;
+}
+.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
+ padding-left: 25.5rem;
+}
+.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
+ padding-right: 24rem;
+}
+.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
+ padding-right: 25.5rem;
+}
+.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
+ padding-left: 27rem;
+}
+.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
+ padding-left: 28.5rem;
+}
+.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
+ padding-right: 27rem;
+}
+.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
+ padding-right: 28.5rem;
+}
+.ql-editor .ql-video {
+ display: block;
+ max-width: 100%;
+}
+.ql-editor .ql-video.ql-align-center {
+ margin: 0 auto;
+}
+.ql-editor .ql-video.ql-align-right {
+ margin: 0 0 0 auto;
+}
+.ql-editor .ql-bg-black {
+ background-color: #000;
+}
+.ql-editor .ql-bg-red {
+ background-color: #e60000;
+}
+.ql-editor .ql-bg-orange {
+ background-color: #f90;
+}
+.ql-editor .ql-bg-yellow {
+ background-color: #ff0;
+}
+.ql-editor .ql-bg-green {
+ background-color: #008a00;
+}
+.ql-editor .ql-bg-blue {
+ background-color: #06c;
+}
+.ql-editor .ql-bg-purple {
+ background-color: #93f;
+}
+.ql-editor .ql-color-white {
+ color: #fff;
+}
+.ql-editor .ql-color-red {
+ color: #e60000;
+}
+.ql-editor .ql-color-orange {
+ color: #f90;
+}
+.ql-editor .ql-color-yellow {
+ color: #ff0;
+}
+.ql-editor .ql-color-green {
+ color: #008a00;
+}
+.ql-editor .ql-color-blue {
+ color: #06c;
+}
+.ql-editor .ql-color-purple {
+ color: #93f;
+}
+.ql-editor .ql-font-serif {
+ font-family: Georgia, Times New Roman, serif;
+}
+.ql-editor .ql-font-monospace {
+ font-family: Monaco, Courier New, monospace;
+}
+.ql-editor .ql-size-small {
+ font-size: 0.75rem;
+}
+.ql-editor .ql-size-large {
+ font-size: 1.5rem;
+}
+.ql-editor .ql-size-huge {
+ font-size: 2.5rem;
+}
+.ql-editor .ql-direction-rtl {
+ direction: rtl;
+ text-align: inherit;
+}
+.ql-editor .ql-align-center {
+ text-align: center;
+}
+.ql-editor .ql-align-justify {
+ text-align: justify;
+}
+.ql-editor .ql-align-right {
+ text-align: right;
+}
+.ql-editor.ql-blank::before {
+ color: rgba(0, 0, 0, 0.6);
+ content: attr(data-placeholder);
+ font-style: italic;
+ left: 15px;
+ pointer-events: none;
+ position: absolute;
+ right: 15px;
+}
+.ql-snow.ql-toolbar:after,
+.ql-snow .ql-toolbar:after {
+ clear: both;
+ content: '';
+ display: table;
+}
+.ql-snow.ql-toolbar button,
+.ql-snow .ql-toolbar button {
+ background: none;
+ border: none;
+ cursor: pointer;
+ display: inline-block;
+ float: left;
+ height: 24px;
+ padding: 3px 5px;
+ width: 28px;
+}
+.ql-snow.ql-toolbar button svg,
+.ql-snow .ql-toolbar button svg {
+ float: left;
+ height: 100%;
+}
+.ql-snow.ql-toolbar button:active:hover,
+.ql-snow .ql-toolbar button:active:hover {
+ outline: none;
+}
+.ql-snow.ql-toolbar input.ql-image[type='file'],
+.ql-snow .ql-toolbar input.ql-image[type='file'] {
+ display: none;
+}
+.ql-snow.ql-toolbar button:hover,
+.ql-snow .ql-toolbar button:hover,
+.ql-snow.ql-toolbar button:focus,
+.ql-snow .ql-toolbar button:focus,
+.ql-snow.ql-toolbar button.ql-active,
+.ql-snow .ql-toolbar button.ql-active,
+.ql-snow.ql-toolbar .ql-picker-label:hover,
+.ql-snow .ql-toolbar .ql-picker-label:hover,
+.ql-snow.ql-toolbar .ql-picker-label.ql-active,
+.ql-snow .ql-toolbar .ql-picker-label.ql-active,
+.ql-snow.ql-toolbar .ql-picker-item:hover,
+.ql-snow .ql-toolbar .ql-picker-item:hover,
+.ql-snow.ql-toolbar .ql-picker-item.ql-selected,
+.ql-snow .ql-toolbar .ql-picker-item.ql-selected {
+ color: #06c;
+}
+.ql-snow.ql-toolbar button:hover .ql-fill,
+.ql-snow .ql-toolbar button:hover .ql-fill,
+.ql-snow.ql-toolbar button:focus .ql-fill,
+.ql-snow .ql-toolbar button:focus .ql-fill,
+.ql-snow.ql-toolbar button.ql-active .ql-fill,
+.ql-snow .ql-toolbar button.ql-active .ql-fill,
+.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
+.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,
+.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
+.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,
+.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
+.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,
+.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,
+.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,
+.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
+.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,
+.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {
+ fill: #06c;
+}
+.ql-snow.ql-toolbar button:hover .ql-stroke,
+.ql-snow .ql-toolbar button:hover .ql-stroke,
+.ql-snow.ql-toolbar button:focus .ql-stroke,
+.ql-snow .ql-toolbar button:focus .ql-stroke,
+.ql-snow.ql-toolbar button.ql-active .ql-stroke,
+.ql-snow .ql-toolbar button.ql-active .ql-stroke,
+.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
+.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,
+.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
+.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,
+.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
+.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,
+.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
+.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
+.ql-snow.ql-toolbar button:hover .ql-stroke-miter,
+.ql-snow .ql-toolbar button:hover .ql-stroke-miter,
+.ql-snow.ql-toolbar button:focus .ql-stroke-miter,
+.ql-snow .ql-toolbar button:focus .ql-stroke-miter,
+.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,
+.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,
+.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
+.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
+.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
+.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
+.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
+.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
+.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,
+.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {
+ stroke: #06c;
+}
+@media (pointer: coarse) {
+ .ql-snow.ql-toolbar button:hover:not(.ql-active),
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) {
+ color: #444;
+ }
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {
+ fill: #444;
+ }
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,
+ .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,
+ .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {
+ stroke: #444;
+ }
+}
+.ql-snow {
+ box-sizing: border-box;
+}
+.ql-snow * {
+ box-sizing: border-box;
+}
+.ql-snow .ql-hidden {
+ display: none;
+}
+.ql-snow .ql-out-bottom,
+.ql-snow .ql-out-top {
+ visibility: hidden;
+}
+.ql-snow .ql-tooltip {
+ position: absolute;
+ transform: translateY(10px);
+}
+.ql-snow .ql-tooltip a {
+ cursor: pointer;
+ text-decoration: none;
+}
+.ql-snow .ql-tooltip.ql-flip {
+ transform: translateY(-10px);
+}
+.ql-snow .ql-formats {
+ display: inline-block;
+ vertical-align: middle;
+}
+.ql-snow .ql-formats:after {
+ clear: both;
+ content: '';
+ display: table;
+}
+.ql-snow .ql-stroke {
+ fill: none;
+ stroke: #444;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+ stroke-width: 2;
+}
+.ql-snow .ql-stroke-miter {
+ fill: none;
+ stroke: #444;
+ stroke-miterlimit: 10;
+ stroke-width: 2;
+}
+.ql-snow .ql-fill,
+.ql-snow .ql-stroke.ql-fill {
+ fill: #444;
+}
+.ql-snow .ql-empty {
+ fill: none;
+}
+.ql-snow .ql-even {
+ fill-rule: evenodd;
+}
+.ql-snow .ql-thin,
+.ql-snow .ql-stroke.ql-thin {
+ stroke-width: 1;
+}
+.ql-snow .ql-transparent {
+ opacity: 0.4;
+}
+.ql-snow .ql-direction svg:last-child {
+ display: none;
+}
+.ql-snow .ql-direction.ql-active svg:last-child {
+ display: inline;
+}
+.ql-snow .ql-direction.ql-active svg:first-child {
+ display: none;
+}
+.ql-snow .ql-editor h1 {
+ font-size: 2rem;
+}
+.ql-snow .ql-editor h2 {
+ font-size: 1.5rem;
+}
+.ql-snow .ql-editor h3 {
+ font-size: 1.17rem;
+}
+.ql-snow .ql-editor h4 {
+ font-size: 1rem;
+}
+.ql-snow .ql-editor h5 {
+ font-size: 0.83rem;
+}
+.ql-snow .ql-editor h6 {
+ font-size: 0.67rem;
+}
+.ql-snow .ql-editor a {
+ text-decoration: underline;
+}
+.ql-snow .ql-editor blockquote {
+ border-left: 4px solid #ccc;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ padding-left: 16px;
+}
+.ql-snow .ql-editor code,
+.ql-snow .ql-editor pre {
+ background-color: #f0f0f0;
+ border-radius: 3px;
+}
+.ql-snow .ql-editor pre {
+ white-space: pre-wrap;
+ margin-bottom: 5px;
+ margin-top: 5px;
+ padding: 5px 10px;
+}
+.ql-snow .ql-editor code {
+ font-size: 85%;
+ padding: 2px 4px;
+}
+.ql-snow .ql-editor pre.ql-syntax {
+ background-color: #23241f;
+ color: #f8f8f2;
+ overflow: visible;
+}
+.ql-snow .ql-editor img {
+ max-width: 100%;
+}
+.ql-snow .ql-picker {
+ color: #444;
+ display: inline-block;
+ float: left;
+ font-size: 14px;
+ font-weight: 500;
+ height: 24px;
+ position: relative;
+ vertical-align: middle;
+}
+.ql-snow .ql-picker-label {
+ cursor: pointer;
+ display: inline-block;
+ height: 100%;
+ padding-left: 8px;
+ padding-right: 2px;
+ position: relative;
+ width: 100%;
+}
+.ql-snow .ql-picker-label::before {
+ display: inline-block;
+ line-height: 22px;
+}
+.ql-snow .ql-picker-options {
+ background-color: #fff;
+ display: none;
+ min-width: 100%;
+ padding: 4px 8px;
+ position: absolute;
+ white-space: nowrap;
+}
+.ql-snow .ql-picker-options .ql-picker-item {
+ cursor: pointer;
+ display: block;
+ padding-bottom: 5px;
+ padding-top: 5px;
+}
+.ql-snow .ql-picker.ql-expanded .ql-picker-label {
+ color: #ccc;
+ z-index: 2;
+}
+.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
+ fill: #ccc;
+}
+.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
+ stroke: #ccc;
+}
+.ql-snow .ql-picker.ql-expanded .ql-picker-options {
+ display: block;
+ margin-top: -1px;
+ top: 100%;
+ z-index: 1;
+}
+.ql-snow .ql-color-picker,
+.ql-snow .ql-icon-picker {
+ width: 28px;
+}
+.ql-snow .ql-color-picker .ql-picker-label,
+.ql-snow .ql-icon-picker .ql-picker-label {
+ padding: 2px 4px;
+}
+.ql-snow .ql-color-picker .ql-picker-label svg,
+.ql-snow .ql-icon-picker .ql-picker-label svg {
+ right: 4px;
+}
+.ql-snow .ql-icon-picker .ql-picker-options {
+ padding: 4px 0px;
+}
+.ql-snow .ql-icon-picker .ql-picker-item {
+ height: 24px;
+ width: 24px;
+ padding: 2px 4px;
+}
+.ql-snow .ql-color-picker .ql-picker-options {
+ padding: 3px 5px;
+ width: 152px;
+}
+.ql-snow .ql-color-picker .ql-picker-item {
+ border: 1px solid transparent;
+ float: left;
+ height: 16px;
+ margin: 2px;
+ padding: 0px;
+ width: 16px;
+}
+.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
+ position: absolute;
+ margin-top: -9px;
+ right: 0;
+ top: 50%;
+ width: 18px;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,
+.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,
+.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,
+.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {
+ content: attr(data-label);
+}
+.ql-snow .ql-picker.ql-header {
+ width: 98px;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item::before {
+ content: 'Normal';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='1']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {
+ content: 'Heading 1';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='2']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {
+ content: 'Heading 2';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='3']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {
+ content: 'Heading 3';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='4']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {
+ content: 'Heading 4';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='5']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {
+ content: 'Heading 5';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-label[data-value='6']::before,
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {
+ content: 'Heading 6';
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='1']::before {
+ font-size: 2rem;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='2']::before {
+ font-size: 1.5rem;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='3']::before {
+ font-size: 1.17rem;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='4']::before {
+ font-size: 1rem;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='5']::before {
+ font-size: 0.83rem;
+}
+.ql-snow .ql-picker.ql-header .ql-picker-item[data-value='6']::before {
+ font-size: 0.67rem;
+}
+.ql-snow .ql-picker.ql-font {
+ width: 108px;
+}
+.ql-snow .ql-picker.ql-font .ql-picker-label::before,
+.ql-snow .ql-picker.ql-font .ql-picker-item::before {
+ content: 'Sans Serif';
+}
+.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='serif']::before,
+.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {
+ content: 'Serif';
+}
+.ql-snow .ql-picker.ql-font .ql-picker-label[data-value='monospace']::before,
+.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {
+ content: 'Monospace';
+}
+.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='serif']::before {
+ font-family: Georgia, Times New Roman, serif;
+}
+.ql-snow .ql-picker.ql-font .ql-picker-item[data-value='monospace']::before {
+ font-family: Monaco, Courier New, monospace;
+}
+.ql-snow .ql-picker.ql-size {
+ width: 98px;
+}
+.ql-snow .ql-picker.ql-size .ql-picker-label::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item::before {
+ content: 'Normal';
+}
+.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='small']::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {
+ content: 'Small';
+}
+.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='large']::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {
+ content: 'Large';
+}
+.ql-snow .ql-picker.ql-size .ql-picker-label[data-value='huge']::before,
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {
+ content: 'Huge';
+}
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='small']::before {
+ font-size: 10px;
+}
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='large']::before {
+ font-size: 18px;
+}
+.ql-snow .ql-picker.ql-size .ql-picker-item[data-value='huge']::before {
+ font-size: 32px;
+}
+.ql-snow .ql-color-picker.ql-background .ql-picker-item {
+ background-color: #fff;
+}
+.ql-snow .ql-color-picker.ql-color .ql-picker-item {
+ background-color: #000;
+}
+.ql-toolbar.ql-snow {
+ border: 1px solid #ccc;
+ box-sizing: border-box;
+ font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
+ padding: 8px;
+}
+.ql-toolbar.ql-snow .ql-formats {
+ margin-right: 15px;
+}
+.ql-toolbar.ql-snow .ql-picker-label {
+ border: 1px solid transparent;
+}
+.ql-toolbar.ql-snow .ql-picker-options {
+ border: 1px solid transparent;
+ box-shadow: rgba(0, 0, 0, 0.2) 0 2px 8px;
+}
+.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
+ border-color: #ccc;
+}
+.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
+ border-color: #ccc;
+}
+.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,
+.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {
+ border-color: #000;
+}
+.ql-toolbar.ql-snow + .ql-container.ql-snow {
+ border-top: 0px;
+}
+.ql-snow .ql-tooltip {
+ background-color: #fff;
+ border: 1px solid #ccc;
+ box-shadow: 0px 0px 5px #ddd;
+ color: #444;
+ padding: 5px 12px;
+ white-space: nowrap;
+}
+.ql-snow .ql-tooltip::before {
+ content: 'Visit URL:';
+ line-height: 26px;
+ margin-right: 8px;
+}
+.ql-snow .ql-tooltip input[type='text'] {
+ display: none;
+ border: 1px solid #ccc;
+ font-size: 13px;
+ height: 26px;
+ margin: 0px;
+ padding: 3px 5px;
+ width: 170px;
+}
+.ql-snow .ql-tooltip a.ql-preview {
+ display: inline-block;
+ max-width: 200px;
+ overflow-x: hidden;
+ text-overflow: ellipsis;
+ vertical-align: top;
+}
+.ql-snow .ql-tooltip a.ql-action::after {
+ border-right: 1px solid #ccc;
+ content: 'Edit';
+ margin-left: 16px;
+ padding-right: 8px;
+}
+.ql-snow .ql-tooltip a.ql-remove::before {
+ content: 'Remove';
+ margin-left: 8px;
+}
+.ql-snow .ql-tooltip a {
+ line-height: 26px;
+}
+.ql-snow .ql-tooltip.ql-editing a.ql-preview,
+.ql-snow .ql-tooltip.ql-editing a.ql-remove {
+ display: none;
+}
+.ql-snow .ql-tooltip.ql-editing input[type='text'] {
+ display: inline-block;
+}
+.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
+ border-right: 0px;
+ content: 'Save';
+ padding-right: 0px;
+}
+.ql-snow .ql-tooltip[data-mode='link']::before {
+ content: 'Enter link:';
+}
+.ql-snow .ql-tooltip[data-mode='formula']::before {
+ content: 'Enter formula:';
+}
+.ql-snow .ql-tooltip[data-mode='video']::before {
+ content: 'Enter video:';
+}
+.ql-snow a {
+ color: #06c;
+}
+.ql-container.ql-snow {
+ border: 1px solid #ccc;
+}
+`;
+
+const classes = {
+ root: 'p-editor-container',
+ toolbar: 'p-editor-toolbar',
+ content: 'p-editor-content'
+};
+
+export default BaseStyle.extend({
+ name: 'editor',
+ css: quillCSS,
+ classes
+});
diff --git a/components/lib/editor/style/package.json b/components/lib/editor/style/package.json
new file mode 100644
index 000000000..c15319822
--- /dev/null
+++ b/components/lib/editor/style/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "./editorstyle.cjs.js",
+ "module": "./editorstyle.esm.js",
+ "unpkg": "./editorstyle.min.js"
+}
diff --git a/components/lib/fieldset/BaseFieldset.vue b/components/lib/fieldset/BaseFieldset.vue
index d5203616c..cf5bb673c 100644
--- a/components/lib/fieldset/BaseFieldset.vue
+++ b/components/lib/fieldset/BaseFieldset.vue
@@ -1,46 +1,6 @@
diff --git a/components/lib/inputmask/package.json b/components/lib/inputmask/package.json
index 024546eb7..9aff9e7e5 100644
--- a/components/lib/inputmask/package.json
+++ b/components/lib/inputmask/package.json
@@ -1,9 +1,9 @@
{
- "main": "./inputmask.cjs.js",
- "module": "./inputmask.esm.js",
- "unpkg": "./inputmask.min.js",
- "types": "./InputMask.d.ts",
- "browser": {
- "./sfc": "./InputMask.vue"
- }
-}
\ No newline at end of file
+ "main": "./inputmask.cjs.js",
+ "module": "./inputmask.esm.js",
+ "unpkg": "./inputmask.min.js",
+ "types": "./InputMask.d.ts",
+ "browser": {
+ "./sfc": "./InputMask.vue"
+ }
+}
diff --git a/components/lib/inputmask/style/InputMaskStyle.js b/components/lib/inputmask/style/InputMaskStyle.js
new file mode 100644
index 000000000..6ee2dd37c
--- /dev/null
+++ b/components/lib/inputmask/style/InputMaskStyle.js
@@ -0,0 +1,16 @@
+import BaseStyle from 'primevue/base/style';
+
+const classes = {
+ root: ({ instance }) => [
+ 'p-inputmask p-inputtext p-component',
+ {
+ 'p-filled': instance.filled
+ }
+ ]
+};
+
+export default BaseStyle.extend({
+ name: 'inputmask',
+ classes,
+ loadStyle: () => {}
+});
diff --git a/components/lib/inputmask/style/package.json b/components/lib/inputmask/style/package.json
new file mode 100644
index 000000000..cfc753099
--- /dev/null
+++ b/components/lib/inputmask/style/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "./inputmaskstyle.cjs.js",
+ "module": "./inputmaskstyle.esm.js",
+ "unpkg": "./inputmaskstyle.min.js"
+}
diff --git a/components/lib/inputnumber/BaseInputNumber.vue b/components/lib/inputnumber/BaseInputNumber.vue
index 866d66cf5..9f8e5a2eb 100644
--- a/components/lib/inputnumber/BaseInputNumber.vue
+++ b/components/lib/inputnumber/BaseInputNumber.vue
@@ -1,140 +1,6 @@
diff --git a/components/lib/tabpanel/package.json b/components/lib/tabpanel/package.json
index fa8d635c3..fac1fed66 100644
--- a/components/lib/tabpanel/package.json
+++ b/components/lib/tabpanel/package.json
@@ -1,9 +1,9 @@
{
- "main": "./tabpanel.cjs.js",
- "module": "./tabpanel.esm.js",
- "unpkg": "./tabpanel.min.js",
- "types": "./TabPanel.d.ts",
- "browser": {
- "./sfc": "./TabPanel.vue"
- }
-}
\ No newline at end of file
+ "main": "./tabpanel.cjs.js",
+ "module": "./tabpanel.esm.js",
+ "unpkg": "./tabpanel.min.js",
+ "types": "./TabPanel.d.ts",
+ "browser": {
+ "./sfc": "./TabPanel.vue"
+ }
+}
diff --git a/components/lib/tabpanel/style/TabPanelStyle.js b/components/lib/tabpanel/style/TabPanelStyle.js
new file mode 100644
index 000000000..ff8b4c563
--- /dev/null
+++ b/components/lib/tabpanel/style/TabPanelStyle.js
@@ -0,0 +1 @@
+export default {};
diff --git a/components/lib/tabpanel/style/package.json b/components/lib/tabpanel/style/package.json
new file mode 100644
index 000000000..d06bc5edd
--- /dev/null
+++ b/components/lib/tabpanel/style/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "./tabpanelstyle.cjs.js",
+ "module": "./tabpanelstyle.esm.js",
+ "unpkg": "./tabpanelstyle.min.js"
+}
diff --git a/components/lib/tabview/BaseTabView.vue b/components/lib/tabview/BaseTabView.vue
index 0c53a228f..6a13a00ff 100644
--- a/components/lib/tabview/BaseTabView.vue
+++ b/components/lib/tabview/BaseTabView.vue
@@ -1,111 +1,6 @@
diff --git a/components/lib/virtualscroller/package.json b/components/lib/virtualscroller/package.json
index de1ab36fe..6bfc771e0 100644
--- a/components/lib/virtualscroller/package.json
+++ b/components/lib/virtualscroller/package.json
@@ -4,6 +4,6 @@
"unpkg": "./virtualscroller.min.js",
"types": "./VirtualScroller.d.ts",
"browser": {
- "./sfc": "./VirtualScroller.vue"
+ "./sfc": "./VirtualScroller.vue"
}
- }
\ No newline at end of file
+}
diff --git a/components/lib/virtualscroller/style/VirtualScrollerStyle.js b/components/lib/virtualscroller/style/VirtualScrollerStyle.js
new file mode 100644
index 000000000..e14b74b5a
--- /dev/null
+++ b/components/lib/virtualscroller/style/VirtualScrollerStyle.js
@@ -0,0 +1,69 @@
+import BaseStyle from 'primevue/base/style';
+
+const css = `
+.p-virtualscroller {
+ position: relative;
+ overflow: auto;
+ contain: strict;
+ transform: translateZ(0);
+ will-change: scroll-position;
+ outline: 0 none;
+}
+
+.p-virtualscroller-content {
+ position: absolute;
+ top: 0;
+ left: 0;
+ /* contain: content; */
+ min-height: 100%;
+ min-width: 100%;
+ will-change: transform;
+}
+
+.p-virtualscroller-spacer {
+ position: absolute;
+ top: 0;
+ left: 0;
+ height: 1px;
+ width: 1px;
+ transform-origin: 0 0;
+ pointer-events: none;
+}
+
+.p-virtualscroller .p-virtualscroller-loader {
+ position: sticky;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+}
+
+.p-virtualscroller-loader.p-component-overlay {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+}
+
+.p-virtualscroller-loading-icon {
+ font-size: 2rem;
+}
+
+.p-virtualscroller-loading-icon.p-icon {
+ width: 2rem;
+ height: 2rem;
+}
+
+.p-virtualscroller-horizontal > .p-virtualscroller-content {
+ display: flex;
+}
+
+/* Inline */
+.p-virtualscroller-inline .p-virtualscroller-content {
+ position: static;
+}
+`;
+
+export default BaseStyle.extend({
+ name: 'virtualscroller',
+ css
+});
diff --git a/components/lib/virtualscroller/style/package.json b/components/lib/virtualscroller/style/package.json
new file mode 100644
index 000000000..c1fe88767
--- /dev/null
+++ b/components/lib/virtualscroller/style/package.json
@@ -0,0 +1,5 @@
+{
+ "main": "./virtualscrollerstyle.cjs.js",
+ "module": "./virtualscrollerstyle.esm.js",
+ "unpkg": "./virtualscrollerstyle.min.js"
+}
diff --git a/doc/common/apidoc/index.json b/doc/common/apidoc/index.json
index 12fae68b0..50c970d5a 100644
--- a/doc/common/apidoc/index.json
+++ b/doc/common/apidoc/index.json
@@ -49641,4 +49641,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/package-build.json b/package-build.json
index 9aed1938b..a703c6082 100644
--- a/package-build.json
+++ b/package-build.json
@@ -10,21 +10,7 @@
"bugs": {
"url": "https://github.com/primefaces/primevue/issues"
},
- "keywords": [
- "primevue",
- "vue",
- "vue.js",
- "vue2",
- "vue3",
- "ui library",
- "component library",
- "material",
- "bootstrap",
- "fluent",
- "tailwind",
- "unstyled",
- "passthrough"
- ],
+ "keywords": ["primevue", "vue", "vue.js", "vue2", "vue3", "ui library", "component library", "material", "bootstrap", "fluent", "tailwind", "unstyled", "passthrough"],
"web-types": "./web-types.json",
"vetur": {
"tags": "./vetur-tags.json",
@@ -33,4 +19,4 @@
"peerDependencies": {
"vue": "^3.0.0"
}
-}
\ No newline at end of file
+}
diff --git a/package.json b/package.json
index 3fa722a84..bbc38c582 100644
--- a/package.json
+++ b/package.json
@@ -17,8 +17,8 @@
"build:package": "NODE_ENV=production rollup -c && node build-meta && node api-generator/build-api && gulp build-styles",
"build:check": "npm run format:check && npm run security:check",
"security:check": "npm audit --production --audit-level high",
- "format": "prettier --write \"**/*.{js,vue,d.ts}\" --cache",
- "format:check": "prettier --check \"**/*.{js,vue,d.ts}\"",
+ "format": "prettier --write \"**/*.{js,vue,d.ts,json}\" --cache",
+ "format:check": "prettier --check \"**/*.{js,vue,d.ts,json}\"",
"test:unit": "vitest run",
"test:unit:watch": "vitest watch",
"test:coverage": "vitest run --coverage",
@@ -82,4 +82,4 @@
"nuxt-gtag": "^0.6.2",
"vee-validate": "^4.8.2"
}
-}
\ No newline at end of file
+}
diff --git a/rollup.config.js b/rollup.config.js
index b5c129a3c..2c1a80e51 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -64,10 +64,112 @@ const CORE_PASSTHROUGH_DEPENDENCIES = {
'primevue/passthrough/tailwind': 'primevue.passthrough.tailwind'
};
+const CORE_STYLE_DEPENDENCIES = {
+ 'primevue/base/style': 'primevue.base.style',
+ 'primevue/basecomponent/style': 'primevue.basecomponent.style',
+ 'primevue/accordion/style': 'primevue.accordion.style',
+ 'primevue/accordiontab/style': 'primevue.accordiontab.style',
+ 'primevue/autocomplete/style': 'primevue.autocomplete.style',
+ 'primevue/avatar/style': 'primevue.avatar.style',
+ 'primevue/avatargroup/style': 'primevue.avatargroup.style',
+ 'primevue/badge/style': 'primevue.badge.style',
+ 'primevue/badgedirective/style': 'primevue.badgedirective.style',
+ 'primevue/baseicon/style': 'primevue.baseicon.style',
+ 'primevue/blockui/style': 'primevue.blockui.style',
+ 'primevue/breadcrumb/style': 'primevue.breadcrumb.style',
+ 'primevue/button/style': 'primevue.button.style',
+ 'primevue/calendar/style': 'primevue.calendar.style',
+ 'primevue/card/style': 'primevue.card.style',
+ 'primevue/carousel/style': 'primevue.carousel.style',
+ 'primevue/cascadeselect/style': 'primevue.cascadeselect.style',
+ 'primevue/chart/style': 'primevue.chart.style',
+ 'primevue/checkbox/style': 'primevue.checkbox.style',
+ 'primevue/chip/style': 'primevue.chip.style',
+ 'primevue/chips/style': 'primevue.chips.style',
+ 'primevue/colorpicker/style': 'primevue.colorpicker.style',
+ 'primevue/column/style': 'primevue.column.style',
+ 'primevue/columngroup/style': 'primevue.columngroup.style',
+ 'primevue/confirmdialog/style': 'primevue.confirmdialog.style',
+ 'primevue/confirmpopup/style': 'primevue.confirmpopup.style',
+ 'primevue/contextmenu/style': 'primevue.contextmenu.style',
+ 'primevue/datatable/style': 'primevue.datatable.style',
+ 'primevue/dataview/style': 'primevue.dataview.style',
+ 'primevue/dataviewlayoutoptions/style': 'primevue.dataviewlayoutoptions.style',
+ 'primevue/deferredcontent/style': 'primevue.deferredcontent.style',
+ 'primevue/dialog/style': 'primevue.dialog.style',
+ 'primevue/divider/style': 'primevue.divider.style',
+ 'primevue/dock/style': 'primevue.dock.style',
+ 'primevue/dropdown/style': 'primevue.dropdown.style',
+ 'primevue/dynamicdialog/style': 'primevue.dynamicdialog.style',
+ 'primevue/editor/style': 'primevue.editor.style',
+ 'primevue/fieldset/style': 'primevue.fieldset.style',
+ 'primevue/fileupload/style': 'primevue.fileupload.style',
+ 'primevue/focustrap/style': 'primevue.focustrap.style',
+ 'primevue/galleria/style': 'primevue.galleria.style',
+ 'primevue/image/style': 'primevue.image.style',
+ 'primevue/inlinemessage/style': 'primevue.inlinemessage.style',
+ 'primevue/inplace/style': 'primevue.inplace.style',
+ 'primevue/inputmask/style': 'primevue.inputmask.style',
+ 'primevue/inputnumber/style': 'primevue.inputnumber.style',
+ 'primevue/inputswitch/style': 'primevue.inputswitch.style',
+ 'primevue/inputtext/style': 'primevue.inputtext.style',
+ 'primevue/knob/style': 'primevue.knob.style',
+ 'primevue/listbox/style': 'primevue.listbox.style',
+ 'primevue/megamenu/style': 'primevue.megamenu.style',
+ 'primevue/menu/style': 'primevue.menu.style',
+ 'primevue/menubar/style': 'primevue.menubar.style',
+ 'primevue/message/style': 'primevue.message.style',
+ 'primevue/multiselect/style': 'primevue.multiselect.style',
+ 'primevue/orderlist/style': 'primevue.orderlist.style',
+ 'primevue/organizationchart/style': 'primevue.organizationchart.style',
+ 'primevue/overlaypanel/style': 'primevue.overlaypanel.style',
+ 'primevue/paginator/style': 'primevue.paginator.style',
+ 'primevue/panel/style': 'primevue.panel.style',
+ 'primevue/panelmenu/style': 'primevue.panelmenu.style',
+ 'primevue/password/style': 'primevue.password.style',
+ 'primevue/picklist/style': 'primevue.picklist.style',
+ 'primevue/portal/style': 'primevue.portal.style',
+ 'primevue/progressbar/style': 'primevue.progressbar.style',
+ 'primevue/progressspinner/style': 'primevue.progressspinner.style',
+ 'primevue/radiobutton/style': 'primevue.radiobutton.style',
+ 'primevue/rating/style': 'primevue.rating.style',
+ 'primevue/ripple/style': 'primevue.ripple.style',
+ 'primevue/row/style': 'primevue.row.style',
+ 'primevue/scrollpanel/style': 'primevue.scrollpanel.style',
+ 'primevue/scrolltop/style': 'primevue.scrolltop.style',
+ 'primevue/selectbutton/style': 'primevue.selectbutton.style',
+ 'primevue/sidebar/style': 'primevue.sidebar.style',
+ 'primevue/skeleton/style': 'primevue.skeleton.style',
+ 'primevue/slider/style': 'primevue.slider.style',
+ 'primevue/speeddial/style': 'primevue.speeddial.style',
+ 'primevue/splitbutton/style': 'primevue.splitbutton.style',
+ 'primevue/splitter/style': 'primevue.splitter.style',
+ 'primevue/splitterpanel/style': 'primevue.splitterpanel.style',
+ 'primevue/steps/style': 'primevue.steps.style',
+ 'primevue/tabmenu/style': 'primevue.tabmenu.style',
+ 'primevue/tabpanel/style': 'primevue.tabpanel.style',
+ 'primevue/tabview/style': 'primevue.tabview.style',
+ 'primevue/tag/style': 'primevue.tag.style',
+ 'primevue/terminal/style': 'primevue.terminal.style',
+ 'primevue/textarea/style': 'primevue.textarea.style',
+ 'primevue/tieredmenu/style': 'primevue.tieredmenu.style',
+ 'primevue/timeline/style': 'primevue.timeline.style',
+ 'primevue/toast/style': 'primevue.toast.style',
+ 'primevue/togglebutton/style': 'primevue.togglebutton.style',
+ 'primevue/toolbar/style': 'primevue.toolbar.style',
+ 'primevue/tooltip/style': 'primevue.tooltip.style',
+ 'primevue/tree/style': 'primevue.tree.style',
+ 'primevue/treeselect/style': 'primevue.treeselect.style',
+ 'primevue/treetable/style': 'primevue.treetable.style',
+ 'primevue/tristatecheckbox/style': 'primevue.tristatecheckbox.style',
+ 'primevue/virtualscroller/style': 'primevue.virtualscroller.style'
+};
+
const CORE_DEPENDENCIES = {
'primevue/utils': 'primevue.utils',
'primevue/api': 'primevue.api',
'primevue/config': 'primevue.config',
+ ...CORE_STYLE_DEPENDENCIES,
'primevue/usestyle': 'primevue.usestyle',
'primevue/base': 'primevue.base',
'primevue/basedirective': 'primevue.basedirective',
@@ -142,7 +244,7 @@ const TERSER_PLUGIN_OPTIONS = {
const PLUGINS = [vue(), postcss(POSTCSS_PLUGIN_OPTIONS), babel(BABEL_PLUGIN_OPTIONS)];
function addEntry(folder, inFile, outFile) {
- const exports = inFile === 'PrimeVue.js' ? 'named' : 'auto';
+ const exports = inFile === 'PrimeVue.js' || folder === 'passthrough/tailwind' ? 'named' : 'auto';
const useCorePlugin = Object.keys(GLOBAL_COMPONENT_DEPENDENCIES).some((d) => d.replace('primevue/', '') === folder);
const plugins = PLUGINS;
const external = EXTERNAL_COMPONENT;
@@ -275,6 +377,22 @@ function addIcon() {
});
}
+function addStyle() {
+ fs.readdirSync(path.resolve(__dirname, './components/lib'), { withFileTypes: true })
+ .filter((dir) => dir.isDirectory())
+ .forEach(({ name: folderName }) => {
+ try {
+ fs.readdirSync(path.resolve(__dirname, './components/lib/' + folderName + '/style')).forEach((file) => {
+ if (/\.js$/.test(file)) {
+ let name = file.split(/(.js)$/)[0].toLowerCase();
+
+ addEntry(folderName + '/style', file, name);
+ }
+ });
+ } catch {}
+ });
+}
+
function addDirectives() {
addEntry('basedirective', 'BaseDirective.js', 'basedirective');
addEntry('badgedirective', 'BadgeDirective.js', 'badgedirective');
@@ -321,6 +439,7 @@ function addServices() {
}
addUtils();
+addStyle();
addBase();
addApi();
addConfig();
diff --git a/tsconfig.json b/tsconfig.json
index 9e5d89444..22d582756 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,20 +1,20 @@
{
- "compilerOptions": {
- "target": "es5",
- "lib": ["dom", "dom.iterable", "esnext"],
- "allowJs": true,
- "skipLibCheck": false,
- "strict": true,
- "forceConsistentCasingInFileNames": true,
- "noEmit": true,
- "esModuleInterop": true,
- "module": "esnext",
- "moduleResolution": "node",
- "resolveJsonModule": true,
- "isolatedModules": false,
- "jsx": "preserve",
- "incremental": true,
- },
- "include": ["**/*.ts"],
- "exclude": ["node_modules", "dist"]
+ "compilerOptions": {
+ "target": "es5",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": false,
+ "strict": true,
+ "forceConsistentCasingInFileNames": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "isolatedModules": false,
+ "jsx": "preserve",
+ "incremental": true
+ },
+ "include": ["**/*.ts"],
+ "exclude": ["node_modules", "dist"]
}
diff --git a/vite.config.js b/vite.config.js
index f6be84c24..ca4be2b06 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,8 +1,163 @@
import path from 'path';
+/* @todo: Refactor alias: https://github.com/rollup/plugins/tree/master/packages/alias#regular-expression-aliases */
+
+const STYLE_ALIAS = {
+ 'primevue/base/style': path.resolve(__dirname, './components/lib/base/style/BaseStyle.js'),
+ 'primevue/basecomponent/style': path.resolve(__dirname, './components/lib/basecomponent/style/BaseComponentStyle.js'),
+ 'primevue/accordion/style': path.resolve(__dirname, './components/lib/accordion/style/AccordionStyle.js'),
+ 'primevue/accordiontab/style': path.resolve(__dirname, './components/lib/accordiontab/style/AccordionTabStyle.js'),
+ 'primevue/autocomplete/style': path.resolve(__dirname, './components/lib/autocomplete/style/AutoCompleteStyle.js'),
+ 'primevue/avatar/style': path.resolve(__dirname, './components/lib/avatar/style/AvatarStyle.js'),
+ 'primevue/avatargroup/style': path.resolve(__dirname, './components/lib/avatargroup/style/AvatarGroupStyle.js'),
+ 'primevue/badge/style': path.resolve(__dirname, './components/lib/badge/style/BadgeStyle.js'),
+ 'primevue/badgedirective/style': path.resolve(__dirname, './components/lib/badgedirective/style/BadgeDirectiveStyle.js'),
+ 'primevue/baseicon/style': path.resolve(__dirname, './components/lib/baseicon/style/BaseIconStyle.js'),
+ 'primevue/blockui/style': path.resolve(__dirname, './components/lib/blockui/style/BlockUIStyle.js'),
+ 'primevue/breadcrumb/style': path.resolve(__dirname, './components/lib/breadcrumb/style/BreadcrumbStyle.js'),
+ 'primevue/button/style': path.resolve(__dirname, './components/lib/button/style/ButtonStyle.js'),
+ 'primevue/calendar/style': path.resolve(__dirname, './components/lib/calendar/style/CalendarStyle.js'),
+ 'primevue/card/style': path.resolve(__dirname, './components/lib/card/style/CardStyle.js'),
+ 'primevue/carousel/style': path.resolve(__dirname, './components/lib/carousel/style/CarouselStyle.js'),
+ 'primevue/cascadeselect/style': path.resolve(__dirname, './components/lib/cascadeselect/style/CascadeSelectStyle.js'),
+ 'primevue/chart/style': path.resolve(__dirname, './components/lib/chart/style/ChartStyle.js'),
+ 'primevue/checkbox/style': path.resolve(__dirname, './components/lib/checkbox/style/CheckboxStyle.js'),
+ 'primevue/chip/style': path.resolve(__dirname, './components/lib/chip/style/ChipStyle.js'),
+ 'primevue/chips/style': path.resolve(__dirname, './components/lib/chips/style/ChipsStyle.js'),
+ 'primevue/colorpicker/style': path.resolve(__dirname, './components/lib/colorpicker/style/ColorPickerStyle.js'),
+ 'primevue/column/style': path.resolve(__dirname, './components/lib/column/style/ColumnStyle.js'),
+ 'primevue/columngroup/style': path.resolve(__dirname, './components/lib/columngroup/style/ColumnGroupStyle.js'),
+ 'primevue/confirmdialog/style': path.resolve(__dirname, './components/lib/confirmdialog/style/ConfirmDialogStyle.js'),
+ 'primevue/confirmpopup/style': path.resolve(__dirname, './components/lib/confirmpopup/style/ConfirmPopupStyle.js'),
+ 'primevue/contextmenu/style': path.resolve(__dirname, './components/lib/contextmenu/style/ContextMenuStyle.js'),
+ 'primevue/datatable/style': path.resolve(__dirname, './components/lib/datatable/style/DataTableStyle.js'),
+ 'primevue/dataview/style': path.resolve(__dirname, './components/lib/dataview/style/DataViewStyle.js'),
+ 'primevue/dataviewlayoutoptions/style': path.resolve(__dirname, './components/lib/dataviewlayoutoptions/style/DataViewLayoutOptionsStyle.js'),
+ 'primevue/deferredcontent/style': path.resolve(__dirname, './components/lib/deferredcontent/style/DeferredContentStyle.js'),
+ 'primevue/dialog/style': path.resolve(__dirname, './components/lib/dialog/style/DialogStyle.js'),
+ 'primevue/divider/style': path.resolve(__dirname, './components/lib/divider/style/DividerStyle.js'),
+ 'primevue/dock/style': path.resolve(__dirname, './components/lib/dock/style/DockStyle.js'),
+ 'primevue/dropdown/style': path.resolve(__dirname, './components/lib/dropdown/style/DropdownStyle.js'),
+ 'primevue/dynamicdialog/style': path.resolve(__dirname, './components/lib/dynamicdialog/style/DynamicDialogStyle.js'),
+ 'primevue/editor/style': path.resolve(__dirname, './components/lib/editor/style/EditorStyle.js'),
+ 'primevue/fieldset/style': path.resolve(__dirname, './components/lib/fieldset/style/FieldsetStyle.js'),
+ 'primevue/fileupload/style': path.resolve(__dirname, './components/lib/fileupload/style/FileUploadStyle.js'),
+ 'primevue/focustrap/style': path.resolve(__dirname, './components/lib/focustrap/style/FocusTrapStyle.js'),
+ 'primevue/galleria/style': path.resolve(__dirname, './components/lib/galleria/style/GalleriaStyle.js'),
+ 'primevue/image/style': path.resolve(__dirname, './components/lib/image/style/ImageStyle.js'),
+ 'primevue/inlinemessage/style': path.resolve(__dirname, './components/lib/inlinemessage/style/InlineMessageStyle.js'),
+ 'primevue/inplace/style': path.resolve(__dirname, './components/lib/inplace/style/InplaceStyle.js'),
+ 'primevue/inputmask/style': path.resolve(__dirname, './components/lib/inputmask/style/InputMaskStyle.js'),
+ 'primevue/inputnumber/style': path.resolve(__dirname, './components/lib/inputnumber/style/InputNumberStyle.js'),
+ 'primevue/inputswitch/style': path.resolve(__dirname, './components/lib/inputswitch/style/InputSwitchStyle.js'),
+ 'primevue/inputtext/style': path.resolve(__dirname, './components/lib/inputtext/style/InputTextStyle.js'),
+ 'primevue/knob/style': path.resolve(__dirname, './components/lib/knob/style/KnobStyle.js'),
+ 'primevue/listbox/style': path.resolve(__dirname, './components/lib/listbox/style/ListboxStyle.js'),
+ 'primevue/megamenu/style': path.resolve(__dirname, './components/lib/megamenu/style/MegaMenuStyle.js'),
+ 'primevue/menu/style': path.resolve(__dirname, './components/lib/menu/style/MenuStyle.js'),
+ 'primevue/menubar/style': path.resolve(__dirname, './components/lib/menubar/style/MenubarStyle.js'),
+ 'primevue/message/style': path.resolve(__dirname, './components/lib/message/style/MessageStyle.js'),
+ 'primevue/multiselect/style': path.resolve(__dirname, './components/lib/multiselect/style/MultiSelectStyle.js'),
+ 'primevue/orderlist/style': path.resolve(__dirname, './components/lib/orderlist/style/OrderListStyle.js'),
+ 'primevue/organizationchart/style': path.resolve(__dirname, './components/lib/organizationchart/style/OrganizationChartStyle.js'),
+ 'primevue/overlaypanel/style': path.resolve(__dirname, './components/lib/overlaypanel/style/OverlayPanelStyle.js'),
+ 'primevue/paginator/style': path.resolve(__dirname, './components/lib/paginator/style/PaginatorStyle.js'),
+ 'primevue/panel/style': path.resolve(__dirname, './components/lib/panel/style/PanelStyle.js'),
+ 'primevue/panelmenu/style': path.resolve(__dirname, './components/lib/panelmenu/style/PanelMenuStyle.js'),
+ 'primevue/password/style': path.resolve(__dirname, './components/lib/password/style/PasswordStyle.js'),
+ 'primevue/picklist/style': path.resolve(__dirname, './components/lib/picklist/style/PickListStyle.js'),
+ 'primevue/portal/style': path.resolve(__dirname, './components/lib/portal/style/PortalStyle.js'),
+ 'primevue/progressbar/style': path.resolve(__dirname, './components/lib/progressbar/style/ProgressBarStyle.js'),
+ 'primevue/progressspinner/style': path.resolve(__dirname, './components/lib/progressspinner/style/ProgressSpinnerStyle.js'),
+ 'primevue/radiobutton/style': path.resolve(__dirname, './components/lib/radiobutton/style/RadioButtonStyle.js'),
+ 'primevue/rating/style': path.resolve(__dirname, './components/lib/rating/style/RatingStyle.js'),
+ 'primevue/ripple/style': path.resolve(__dirname, './components/lib/ripple/style/RippleStyle.js'),
+ 'primevue/row/style': path.resolve(__dirname, './components/lib/row/style/RowStyle.js'),
+ 'primevue/scrollpanel/style': path.resolve(__dirname, './components/lib/scrollpanel/style/ScrollPanelStyle.js'),
+ 'primevue/scrolltop/style': path.resolve(__dirname, './components/lib/scrolltop/style/ScrollTopStyle.js'),
+ 'primevue/selectbutton/style': path.resolve(__dirname, './components/lib/selectbutton/style/SelectButtonStyle.js'),
+ 'primevue/sidebar/style': path.resolve(__dirname, './components/lib/sidebar/style/SidebarStyle.js'),
+ 'primevue/skeleton/style': path.resolve(__dirname, './components/lib/skeleton/style/SkeletonStyle.js'),
+ 'primevue/slider/style': path.resolve(__dirname, './components/lib/slider/style/SliderStyle.js'),
+ 'primevue/speeddial/style': path.resolve(__dirname, './components/lib/speeddial/style/SpeedDialStyle.js'),
+ 'primevue/splitbutton/style': path.resolve(__dirname, './components/lib/splitbutton/style/SplitButtonStyle.js'),
+ 'primevue/splitter/style': path.resolve(__dirname, './components/lib/splitter/style/SplitterStyle.js'),
+ 'primevue/splitterpanel/style': path.resolve(__dirname, './components/lib/splitterpanel/style/SplitterPanelStyle.js'),
+ 'primevue/steps/style': path.resolve(__dirname, './components/lib/steps/style/StepsStyle.js'),
+ 'primevue/tabmenu/style': path.resolve(__dirname, './components/lib/tabmenu/style/TabMenuStyle.js'),
+ 'primevue/tabpanel/style': path.resolve(__dirname, './components/lib/tabpanel/style/TabPanelStyle.js'),
+ 'primevue/tabview/style': path.resolve(__dirname, './components/lib/tabview/style/TabviewStyle.js'),
+ 'primevue/tag/style': path.resolve(__dirname, './components/lib/tag/style/TagStyle.js'),
+ 'primevue/terminal/style': path.resolve(__dirname, './components/lib/terminal/style/TerminalStyle.js'),
+ 'primevue/textarea/style': path.resolve(__dirname, './components/lib/textarea/style/TextareaStyle.js'),
+ 'primevue/tieredmenu/style': path.resolve(__dirname, './components/lib/tieredmenu/style/TieredMenuStyle.js'),
+ 'primevue/timeline/style': path.resolve(__dirname, './components/lib/timeline/style/TimelineStyle.js'),
+ 'primevue/toast/style': path.resolve(__dirname, './components/lib/toast/style/ToastStyle.js'),
+ 'primevue/togglebutton/style': path.resolve(__dirname, './components/lib/togglebutton/style/ToggleButtonStyle.js'),
+ 'primevue/toolbar/style': path.resolve(__dirname, './components/lib/toolbar/style/ToolbarStyle.js'),
+ 'primevue/tooltip/style': path.resolve(__dirname, './components/lib/tooltip/style/TooltipStyle.js'),
+ 'primevue/tree/style': path.resolve(__dirname, './components/lib/tree/style/TreeStyle.js'),
+ 'primevue/treeselect/style': path.resolve(__dirname, './components/lib/treeselect/style/TreeSelectStyle.js'),
+ 'primevue/treetable/style': path.resolve(__dirname, './components/lib/treetable/style/TreeTableStyle.js'),
+ 'primevue/tristatecheckbox/style': path.resolve(__dirname, './components/lib/tristatecheckbox/style/TriStateCheckboxStyle.js'),
+ 'primevue/virtualscroller/style': path.resolve(__dirname, './components/lib/virtualscroller/style/VirtualScrollerStyle.js')
+};
+
+const ICON_ALIAS = {
+ 'primevue/baseicon': path.resolve(__dirname, './components/lib/baseicon/BaseIcon.vue'),
+ 'primevue/icons/angledoubledown': path.resolve(__dirname, './components/lib/icons/angledoubledown/index.vue'),
+ 'primevue/icons/angledoubleleft': path.resolve(__dirname, './components/lib/icons/angledoubleleft/index.vue'),
+ 'primevue/icons/angledoubleright': path.resolve(__dirname, './components/lib/icons/angledoubleright/index.vue'),
+ 'primevue/icons/angledoubleup': path.resolve(__dirname, './components/lib/icons/angledoubleup/index.vue'),
+ 'primevue/icons/angledown': path.resolve(__dirname, './components/lib/icons/angledown/index.vue'),
+ 'primevue/icons/angleleft': path.resolve(__dirname, './components/lib/icons/angleleft/index.vue'),
+ 'primevue/icons/angleright': path.resolve(__dirname, './components/lib/icons/angleright/index.vue'),
+ 'primevue/icons/angleup': path.resolve(__dirname, './components/lib/icons/angleup/index.vue'),
+ 'primevue/icons/arrowdown': path.resolve(__dirname, './components/lib/icons/arrowdown/index.vue'),
+ 'primevue/icons/arrowup': path.resolve(__dirname, './components/lib/icons/arrowup/index.vue'),
+ 'primevue/icons/ban': path.resolve(__dirname, './components/lib/icons/ban/index.vue'),
+ 'primevue/icons/bars': path.resolve(__dirname, './components/lib/icons/bars/index.vue'),
+ 'primevue/icons/calendar': path.resolve(__dirname, './components/lib/icons/calendar/index.vue'),
+ 'primevue/icons/check': path.resolve(__dirname, './components/lib/icons/check/index.vue'),
+ 'primevue/icons/chevrondown': path.resolve(__dirname, './components/lib/icons/chevrondown/index.vue'),
+ 'primevue/icons/chevronleft': path.resolve(__dirname, './components/lib/icons/chevronleft/index.vue'),
+ 'primevue/icons/chevronright': path.resolve(__dirname, './components/lib/icons/chevronright/index.vue'),
+ 'primevue/icons/chevronup': path.resolve(__dirname, './components/lib/icons/chevronup/index.vue'),
+ 'primevue/icons/exclamationtriangle': path.resolve(__dirname, './components/lib/icons/exclamationtriangle/index.vue'),
+ 'primevue/icons/eye': path.resolve(__dirname, './components/lib/icons/eye/index.vue'),
+ 'primevue/icons/eyeslash': path.resolve(__dirname, './components/lib/icons/eyeslash/index.vue'),
+ 'primevue/icons/filter': path.resolve(__dirname, './components/lib/icons/filter/index.vue'),
+ 'primevue/icons/filterslash': path.resolve(__dirname, './components/lib/icons/filterslash/index.vue'),
+ 'primevue/icons/infocircle': path.resolve(__dirname, './components/lib/icons/infocircle/index.vue'),
+ 'primevue/icons/minus': path.resolve(__dirname, './components/lib/icons/minus/index.vue'),
+ 'primevue/icons/pencil': path.resolve(__dirname, './components/lib/icons/pencil/index.vue'),
+ 'primevue/icons/plus': path.resolve(__dirname, './components/lib/icons/plus/index.vue'),
+ 'primevue/icons/refresh': path.resolve(__dirname, './components/lib/icons/refresh/index.vue'),
+ 'primevue/icons/search': path.resolve(__dirname, './components/lib/icons/search/index.vue'),
+ 'primevue/icons/searchminus': path.resolve(__dirname, './components/lib/icons/searchminus/index.vue'),
+ 'primevue/icons/searchplus': path.resolve(__dirname, './components/lib/icons/searchplus/index.vue'),
+ 'primevue/icons/sortalt': path.resolve(__dirname, './components/lib/icons/sortalt/index.vue'),
+ 'primevue/icons/sortamountdown': path.resolve(__dirname, './components/lib/icons/sortamountdown/index.vue'),
+ 'primevue/icons/sortamountupalt': path.resolve(__dirname, './components/lib/icons/sortamountupalt/index.vue'),
+ 'primevue/icons/spinner': path.resolve(__dirname, './components/lib/icons/spinner/index.vue'),
+ 'primevue/icons/star': path.resolve(__dirname, './components/lib/icons/star/index.vue'),
+ 'primevue/icons/starfill': path.resolve(__dirname, './components/lib/icons/starfill/index.vue'),
+ 'primevue/icons/thlarge': path.resolve(__dirname, './components/lib/icons/thlarge/index.vue'),
+ 'primevue/icons/times': path.resolve(__dirname, './components/lib/icons/times/index.vue'),
+ 'primevue/icons/timescircle': path.resolve(__dirname, './components/lib/icons/timescircle/index.vue'),
+ 'primevue/icons/trash': path.resolve(__dirname, './components/lib/icons/trash/index.vue'),
+ 'primevue/icons/undo': path.resolve(__dirname, './components/lib/icons/undo/index.vue'),
+ 'primevue/icons/upload': path.resolve(__dirname, './components/lib/icons/upload/index.vue'),
+ 'primevue/icons/windowmaximize': path.resolve(__dirname, './components/lib/icons/windowmaximize/index.vue'),
+ 'primevue/icons/windowminimize': path.resolve(__dirname, './components/lib/icons/windowminimize/index.vue')
+};
+
export default {
resolve: {
alias: {
+ 'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'),
+ 'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'),
+ ...STYLE_ALIAS,
'primevue/base': path.resolve(__dirname, './components/lib/base/Base.js'),
'primevue/basedirective': path.resolve(__dirname, './components/lib/basedirective/BaseDirective.js'),
'primevue/ripple': path.resolve(__dirname, './components/lib/ripple/Ripple.js'),
@@ -11,57 +166,10 @@ export default {
'primevue/useconfirm': path.resolve(__dirname, './components/lib/useconfirm/UseConfirm.js'),
'primevue/usetoast': path.resolve(__dirname, './components/lib/usetoast/UseToast.js'),
'primevue/usedialog': path.resolve(__dirname, './components/lib/usedialog/UseDialog.js'),
- 'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'),
'primevue/usestyle': path.resolve(__dirname, './components/lib/usestyle/UseStyle.js'),
- 'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'),
'primevue/portal': path.resolve(__dirname, './components/lib/portal/Portal.vue'),
'primevue/basecomponent': path.resolve(__dirname, './components/lib/basecomponent/BaseComponent.vue'),
- 'primevue/baseicon': path.resolve(__dirname, './components/lib/baseicon/BaseIcon.vue'),
- 'primevue/icons/angledoubledown': path.resolve(__dirname, './components/lib/icons/angledoubledown/index.vue'),
- 'primevue/icons/angledoubleleft': path.resolve(__dirname, './components/lib/icons/angledoubleleft/index.vue'),
- 'primevue/icons/angledoubleright': path.resolve(__dirname, './components/lib/icons/angledoubleright/index.vue'),
- 'primevue/icons/angledoubleup': path.resolve(__dirname, './components/lib/icons/angledoubleup/index.vue'),
- 'primevue/icons/angledown': path.resolve(__dirname, './components/lib/icons/angledown/index.vue'),
- 'primevue/icons/angleleft': path.resolve(__dirname, './components/lib/icons/angleleft/index.vue'),
- 'primevue/icons/angleright': path.resolve(__dirname, './components/lib/icons/angleright/index.vue'),
- 'primevue/icons/angleup': path.resolve(__dirname, './components/lib/icons/angleup/index.vue'),
- 'primevue/icons/arrowdown': path.resolve(__dirname, './components/lib/icons/arrowdown/index.vue'),
- 'primevue/icons/arrowup': path.resolve(__dirname, './components/lib/icons/arrowup/index.vue'),
- 'primevue/icons/ban': path.resolve(__dirname, './components/lib/icons/ban/index.vue'),
- 'primevue/icons/bars': path.resolve(__dirname, './components/lib/icons/bars/index.vue'),
- 'primevue/icons/calendar': path.resolve(__dirname, './components/lib/icons/calendar/index.vue'),
- 'primevue/icons/check': path.resolve(__dirname, './components/lib/icons/check/index.vue'),
- 'primevue/icons/chevrondown': path.resolve(__dirname, './components/lib/icons/chevrondown/index.vue'),
- 'primevue/icons/chevronleft': path.resolve(__dirname, './components/lib/icons/chevronleft/index.vue'),
- 'primevue/icons/chevronright': path.resolve(__dirname, './components/lib/icons/chevronright/index.vue'),
- 'primevue/icons/chevronup': path.resolve(__dirname, './components/lib/icons/chevronup/index.vue'),
- 'primevue/icons/exclamationtriangle': path.resolve(__dirname, './components/lib/icons/exclamationtriangle/index.vue'),
- 'primevue/icons/eye': path.resolve(__dirname, './components/lib/icons/eye/index.vue'),
- 'primevue/icons/eyeslash': path.resolve(__dirname, './components/lib/icons/eyeslash/index.vue'),
- 'primevue/icons/filter': path.resolve(__dirname, './components/lib/icons/filter/index.vue'),
- 'primevue/icons/filterslash': path.resolve(__dirname, './components/lib/icons/filterslash/index.vue'),
- 'primevue/icons/infocircle': path.resolve(__dirname, './components/lib/icons/infocircle/index.vue'),
- 'primevue/icons/minus': path.resolve(__dirname, './components/lib/icons/minus/index.vue'),
- 'primevue/icons/pencil': path.resolve(__dirname, './components/lib/icons/pencil/index.vue'),
- 'primevue/icons/plus': path.resolve(__dirname, './components/lib/icons/plus/index.vue'),
- 'primevue/icons/refresh': path.resolve(__dirname, './components/lib/icons/refresh/index.vue'),
- 'primevue/icons/search': path.resolve(__dirname, './components/lib/icons/search/index.vue'),
- 'primevue/icons/searchminus': path.resolve(__dirname, './components/lib/icons/searchminus/index.vue'),
- 'primevue/icons/searchplus': path.resolve(__dirname, './components/lib/icons/searchplus/index.vue'),
- 'primevue/icons/sortalt': path.resolve(__dirname, './components/lib/icons/sortalt/index.vue'),
- 'primevue/icons/sortamountdown': path.resolve(__dirname, './components/lib/icons/sortamountdown/index.vue'),
- 'primevue/icons/sortamountupalt': path.resolve(__dirname, './components/lib/icons/sortamountupalt/index.vue'),
- 'primevue/icons/spinner': path.resolve(__dirname, './components/lib/icons/spinner/index.vue'),
- 'primevue/icons/star': path.resolve(__dirname, './components/lib/icons/star/index.vue'),
- 'primevue/icons/starfill': path.resolve(__dirname, './components/lib/icons/starfill/index.vue'),
- 'primevue/icons/thlarge': path.resolve(__dirname, './components/lib/icons/thlarge/index.vue'),
- 'primevue/icons/times': path.resolve(__dirname, './components/lib/icons/times/index.vue'),
- 'primevue/icons/timescircle': path.resolve(__dirname, './components/lib/icons/timescircle/index.vue'),
- 'primevue/icons/trash': path.resolve(__dirname, './components/lib/icons/trash/index.vue'),
- 'primevue/icons/undo': path.resolve(__dirname, './components/lib/icons/undo/index.vue'),
- 'primevue/icons/upload': path.resolve(__dirname, './components/lib/icons/upload/index.vue'),
- 'primevue/icons/windowmaximize': path.resolve(__dirname, './components/lib/icons/windowmaximize/index.vue'),
- 'primevue/icons/windowminimize': path.resolve(__dirname, './components/lib/icons/windowminimize/index.vue'),
+ ...ICON_ALIAS,
'primevue/button': path.resolve(__dirname, './components/lib/button/Button.vue'),
'primevue/inputtext': path.resolve(__dirname, './components/lib/inputtext/InputText.vue'),
'primevue/dialog': path.resolve(__dirname, './components/lib/dialog/Dialog.vue'),