Skip to content

Commit

Permalink
MINOR: Feature/date picker component (#230)
Browse files Browse the repository at this point in the history
* create BIMDataPicker component

* add BIMDataDatePicker to export config

* create DatePicker documentation

* add BIMDataDatePicker component

* add double prev and next icon for day view

* change placeholder DatePicker component documentation

* add terser() for all bundle components for vue3

* add datepicker icon for documentation

* add possibility to click on datepicker label
  • Loading branch information
LrxGaelle authored Sep 22, 2022
1 parent 131c083 commit 6a43d00
Show file tree
Hide file tree
Showing 42 changed files with 5,494 additions and 23 deletions.
1 change: 1 addition & 0 deletions components.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export { default as BIMDataCard } from "./dist/js/BIMDataComponents/BIMDataCard.
export { default as BIMDataCarousel } from "./dist/js/BIMDataComponents/BIMDataCarousel.js";
export { default as BIMDataCheckbox } from "./dist/js/BIMDataComponents/BIMDataCheckbox.js";
export { default as BIMDataColorSelector } from "./dist/js/BIMDataComponents/BIMDataColorSelector.js";
export { default as BIMDataDatePicker } from "./dist/js/BIMDataComponents/BIMDataDatePicker.js";
export { default as BIMDataDropdownList } from "./dist/js/BIMDataComponents/BIMDataDropdownList.js";
export { default as BIMDataDropdownMenu } from "./dist/js/BIMDataComponents/BIMDataDropdownMenu.js";
export { default as BIMDataFileIcon } from "./dist/js/BIMDataComponents/BIMDataFileIcon.js";
Expand Down
21 changes: 0 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function getDirectivesConfiguration() {
dir: "dist/js/BIMDataDirectives",
format: "es",
},
external: ["vue"],
},
{
// vue3
Expand All @@ -36,10 +37,12 @@ function getDirectivesConfiguration() {
dir: "dist/js/BIMDataDirectives/vue3",
format: "es",
},
external: ["vue"],
},
];
}

// build ALL COMPONENTS
function getAllComponentsBundleConfiguration() {
return [
{
Expand All @@ -49,6 +52,7 @@ function getAllComponentsBundleConfiguration() {
dir: "dist/js/BIMDataComponents",
format: "es",
},
external: ["vue"],
plugins: [
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
Expand Down Expand Up @@ -105,11 +109,12 @@ function getAllComponentsBundleConfiguration() {
dir: "dist/js/BIMDataComponents/vue3",
format: "es",
},
external: ["vue"],
plugins: [
alias({
entries: [
{
find: /BIMDataDirectives\//,
find: /BIMDataDirectives\/(?!vue3\/)/,
replacement: "BIMDataDirectives/vue3/",
},
],
Expand All @@ -131,6 +136,7 @@ function getAllComponentsBundleConfiguration() {
];
}

// build SMART COMPONENTS
function getSingleSmartComponentConfigurations() {
const componentNames = ["BIMDataFileManager"];

Expand All @@ -144,6 +150,7 @@ function getSingleSmartComponentConfigurations() {
file: `dist/js/BIMDataSmartComponents/${componentName}.js`,
format: "esm",
},
external: ["vue"],
plugins: [
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
Expand All @@ -170,6 +177,7 @@ function getSingleComponentConfigurations() {
"BIMDataCarousel",
"BIMDataCheckbox",
"BIMDataColorSelector",
"BIMDataDatePicker",
"BIMDataDropdownList",
"BIMDataDropdownMenu",
"BIMDataFileIcon",
Expand Down Expand Up @@ -207,6 +215,7 @@ function getSingleComponentConfigurations() {
file: `dist/js/BIMDataComponents/${componentName}.js`,
format: "esm",
},
external: ["vue"],
plugins: [
replace({
"~@/assets": "node_modules/@bimdata/design-system/dist",
Expand All @@ -227,11 +236,12 @@ function getSingleComponentConfigurations() {
file: `dist/js/BIMDataComponents/vue3/${componentName}.js`,
format: "esm",
},
external: ["vue"],
plugins: [
alias({
entries: [
{
find: /BIMDataDirectives\//,
find: /BIMDataDirectives\/(?!vue3\/)/,
replacement: "BIMDataDirectives/vue3/",
},
],
Expand Down
Loading

0 comments on commit 6a43d00

Please sign in to comment.