@provoly/dashboard 0.19.10 → 0.19.12
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/esm2022/lib/dashboard/components/dashboard.component.mjs +2 -3
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +7 -3
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -17
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +2 -2
- package/esm2022/presentation/components/presentation.component.mjs +4 -3
- package/esm2022/presentation/style/css.component.mjs +2 -2
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-presentation.mjs +5 -4
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +2 -2
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +10 -22
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +0 -15
- package/lib/dashboard/store/dashboard.effects.d.ts +0 -15
- package/package.json +37 -37
- package/presentation/style/_o-pry-new-presentation.scss +0 -1
- package/presentation/style/_o-pry-presentation.scss +10 -0
- package/styles/layout/_o-manifest-layout.scss +0 -1
- package/styles-theme/components-theme/_o-pry-presentation.theme.scss +8 -0
|
@@ -23,11 +23,11 @@ import { v4 } from 'uuid';
|
|
|
23
23
|
|
|
24
24
|
class PryCatalogCssComponent {
|
|
25
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PryCatalogCssComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PryCatalogCssComponent, selector: "pry-restitution-css", ngImport: i0, template: '', isInline: true, styles: [".o-catalog__filters__by-type__list,.o-catalog__list{margin:0;padding:0}.o-catalog__filters__by-type__list li,.o-catalog__list li{list-style:none}.o-catalog{display:flex;flex-direction:column;overflow:scroll;width:28.125rem;height:100%;padding:.9375rem;border-right-width:.0625rem;border-right-style:solid}.o-catalog .a-h2{padding-top:.625rem}.o-catalog pry-restitution{flex:1}.o-catalog__filters{padding-top:.3125rem}.o-catalog__filters__by-name{position:relative;margin-bottom:1.25rem}.o-catalog__filters__by-name .a-icon{position:absolute;left:.6875rem;bottom:.5625rem;pointer-events:none}.o-catalog__filters__by-name .a-form-field{width:60%;padding-left:2.1875rem}.o-catalog__filters__by-type{display:flex;flex-wrap:wrap;column-gap:1.25rem}.o-catalog__filters__by-type__list{display:flex;gap:.3125rem}.o-catalog__filters__by-type__list li{width:2.1875rem;height:2.1875rem}.o-catalog__filters__by-type__list li .a-label{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;border-width:.0625rem;border-style:solid;border-radius:.3125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like{margin-top:5px;font-weight:300;font-size:.8125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like[disabled]{opacity:0}.o-catalog .is-point{cursor:default}.o-catalog__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.9375rem;justify-content:space-around;padding:1.875rem 0}.o-catalog__list__icon{cursor:pointer}.o-catalog__list pry-catalog-item{max-height:13.125rem}.o-catalog__list__item{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-width:8.125rem;height:100%;text-align:center;cursor:move}.o-catalog__list__item .is-private{position:absolute;top:.3125rem;left:.3125rem}.o-catalog__list__item img{margin-top:.625rem}.o-catalog__list__item img.is-full-width{width:100%;height:30%;object-fit:cover}.o-catalog__list__item .a-btn--icon-only{margin-bottom:.6875rem;padding:.8125rem}.o-catalog__list__item__libelle{width:100%;margin-bottom:0;padding:.9375rem .625rem;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.o-catalog__list__item__action{width:100%;padding:.375rem .625rem;text-align:center}.o-catalog__list__item__action .a-btn--ghost{height:auto;padding:0 .3125rem}.o-catalog__create{align-self:center;width:-moz-fit-content;width:fit-content;margin-bottom:1rem}.o-catalog .o-accordion pry-accordion-item:first-child .o-accordion__title{border-top-style:solid;border-top-width:.0625rem;margin-top:.625rem}\n", ".o-restitution{height:100%;margin:0 auto;border-collapse:collapse;font-size:.875rem;min-width:20.625rem;overflow:hidden}.o-restitution .widget-instanciator{position:relative;height:100%}.o-restitution .m-btn-group.actions{padding-top:1.5625rem;padding-bottom:1.25rem}.o-restitution .a-checkbox{margin-bottom:0rem}.o-restitution label{border-radius:10%}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.more-actions{position:absolute;top:.375rem;right:.625rem}\n", ".o-presentation{margin:0;padding:0}.o-presentation li{list-style:none}.o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-manifest-layout__toolbox.-u-hidden{display:none}.o-manifest-layout__toolbox__search{position:relative}.o-manifest-layout__toolbox__search .a-form-field{min-height:10px}.o-manifest-layout__toolbox__search .a-icon{position:absolute;right:.6875rem;top:.3125rem;opacity:.5;pointer-events:none}.o-manifest-layout__content{height:100%}.o-manifest-layout__content .pointer{cursor:pointer}.pry-viewingpresentation{display:flex;overflow-y:scroll}.pry-viewingpresentation .o-manifest-layout__content,.pry-viewingpresentation .o-dashboard-widget{flex:100% 1 1}.o-presentation{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.875rem;padding:.25rem .25rem 1.25rem;overflow-y:visible}.o-presentation .a-h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.o-presentation__item{display:flex;flex-direction:column;align-items:stretch}.o-presentation__item:hover{cursor:pointer}.o-presentation__item:hover .o-presentation__item__footer pry-icon{visibility:visible;opacity:1}.o-presentation__item .a-tooltip{align-items:center;width:100%;height:100%}.o-presentation__item__image{width:auto;cursor:pointer;overflow:hidden;height:6.875rem;display:flex;align-items:center;justify-content:center}.o-presentation__item__image .is-full-width{width:100%;height:100%;object-fit:cover}.o-presentation__item__header{position:relative;display:flex;align-items:flex-start;justify-content:center;height:6.875rem}.o-presentation__item__header pry-icon.is-private{position:absolute;top:.625rem;left:.625rem}.o-presentation__item__txt{flex-grow:1;padding:.625rem .9375rem}.o-presentation__item__txt .a-h3{font-size:.875rem}.o-presentation__item__txt .a-p{font-size:.8125rem}.o-presentation__item__txt .a-p.-date{margin-bottom:0}.o-presentation__item__footer{display:flex;align-content:center;justify-content:center;font-size:.875rem}.o-presentation__item__footer .a-btn{margin-left:1.25rem}.o-presentation__item__footer pry-icon{visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear;margin-left:.1875rem}.o-presentation-consult{width:100%;padding:.9375rem}.description-container{position:relative;width:100%}.description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inherit;position:relative;line-height:2rem;box-sizing:border-box;pointer-events:none}.description:after{content:\"\";display:block;position:absolute;top:0;right:0;width:40px;height:48px;z-index:1;pointer-events:initial}.description:hover:after{cursor:pointer}.description-tooltip{position:absolute;max-width:50vw;visibility:hidden;background-color:#fff;padding:20px;-webkit-box-shadow:0 0 50px 0 rgba(0,0,0,.3);opacity:0;transition:opacity .5s ease;z-index:2}.description:hover+.description-tooltip{visibility:visible;transition:opacity .2s ease;opacity:1}.title-tooltip{transform:translateY(4rem)}.info-tooltip{transform:translateY(8rem)}h1.a-presentation-title{font-size:16px;padding-right:20px;color:#113b6e}.title-container{display:flex}.title-container .h-1{padding-top:0;padding-bottom:0}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.info-icon{position:relative;width:1.5rem;height:1.5rem;border-radius:50%;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;align-self:center;margin-right:1rem;border:1px solid #3E546A}.more-actions{position:absolute;top:.375rem;right:.625rem}.m-context-menu{position:absolute}.o-restitution-catalog .o-manifest-layout__toolbox{height:5.25rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.o-restitution-catalog .o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-restitution-catalog .o-catalog__search{position:relative}.o-restitution-catalog .o-catalog__search .a-icon{position:absolute;right:.6875rem;bottom:.5625rem;opacity:.5;pointer-events:none}.o-restitution-catalog .o-manifest-layout__content .o-restitution-wrapper .o-restitution{width:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PryCatalogCssComponent, selector: "pry-restitution-css", ngImport: i0, template: '', isInline: true, styles: [".o-catalog__filters__by-type__list,.o-catalog__list{margin:0;padding:0}.o-catalog__filters__by-type__list li,.o-catalog__list li{list-style:none}.o-catalog{display:flex;flex-direction:column;overflow:scroll;width:28.125rem;height:100%;padding:.9375rem;border-right-width:.0625rem;border-right-style:solid}.o-catalog .a-h2{padding-top:.625rem}.o-catalog pry-restitution{flex:1}.o-catalog__filters{padding-top:.3125rem}.o-catalog__filters__by-name{position:relative;margin-bottom:1.25rem}.o-catalog__filters__by-name .a-icon{position:absolute;left:.6875rem;bottom:.5625rem;pointer-events:none}.o-catalog__filters__by-name .a-form-field{width:60%;padding-left:2.1875rem}.o-catalog__filters__by-type{display:flex;flex-wrap:wrap;column-gap:1.25rem}.o-catalog__filters__by-type__list{display:flex;gap:.3125rem}.o-catalog__filters__by-type__list li{width:2.1875rem;height:2.1875rem}.o-catalog__filters__by-type__list li .a-label{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;border-width:.0625rem;border-style:solid;border-radius:.3125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like{margin-top:5px;font-weight:300;font-size:.8125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like[disabled]{opacity:0}.o-catalog .is-point{cursor:default}.o-catalog__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.9375rem;justify-content:space-around;padding:1.875rem 0}.o-catalog__list__icon{cursor:pointer}.o-catalog__list pry-catalog-item{max-height:13.125rem}.o-catalog__list__item{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-width:8.125rem;height:100%;text-align:center;cursor:move}.o-catalog__list__item .is-private{position:absolute;top:.3125rem;left:.3125rem}.o-catalog__list__item img{margin-top:.625rem}.o-catalog__list__item img.is-full-width{width:100%;height:30%;object-fit:cover}.o-catalog__list__item .a-btn--icon-only{margin-bottom:.6875rem;padding:.8125rem}.o-catalog__list__item__libelle{width:100%;margin-bottom:0;padding:.9375rem .625rem;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.o-catalog__list__item__action{width:100%;padding:.375rem .625rem;text-align:center}.o-catalog__list__item__action .a-btn--ghost{height:auto;padding:0 .3125rem}.o-catalog__create{align-self:center;width:-moz-fit-content;width:fit-content;margin-bottom:1rem}.o-catalog .o-accordion pry-accordion-item:first-child .o-accordion__title{border-top-style:solid;border-top-width:.0625rem;margin-top:.625rem}\n", ".o-restitution{height:100%;margin:0 auto;border-collapse:collapse;font-size:.875rem;min-width:20.625rem;overflow:hidden}.o-restitution .widget-instanciator{position:relative;height:100%}.o-restitution .m-btn-group.actions{padding-top:1.5625rem;padding-bottom:1.25rem}.o-restitution .a-checkbox{margin-bottom:0rem}.o-restitution label{border-radius:10%}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.more-actions{position:absolute;top:.375rem;right:.625rem}\n", ".o-presentation{margin:0;padding:0}.o-presentation li{list-style:none}.o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-manifest-layout__toolbox.-u-hidden{display:none}.o-manifest-layout__toolbox__search{position:relative}.o-manifest-layout__toolbox__search .a-form-field{min-height:10px}.o-manifest-layout__toolbox__search .a-icon{position:absolute;right:.6875rem;top:.3125rem;opacity:.5;pointer-events:none}.o-manifest-layout__content{height:100%}.o-manifest-layout__content .pointer{cursor:pointer}.pry-viewingpresentation{display:flex;overflow-y:scroll}.pry-viewingpresentation .o-manifest-layout__content,.pry-viewingpresentation .o-dashboard-widget{flex:100% 1 1}.o-presentation{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.875rem;padding:.25rem .25rem 1.25rem;overflow-y:visible}.o-presentation .a-h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.o-presentation__item{display:flex;flex-direction:column;align-items:stretch}.o-presentation__item:hover{cursor:pointer}.o-presentation__item:hover .o-presentation__item__footer pry-icon{visibility:visible;opacity:1}.o-presentation__item .a-tooltip{align-items:center;width:100%;height:100%}.o-presentation__item__image{width:auto;cursor:pointer;overflow:hidden;height:6.875rem;display:flex;align-items:center;justify-content:center}.o-presentation__item__image .is-full-width{width:100%;height:100%;object-fit:cover}.o-presentation__item__header{position:relative;display:flex;align-items:flex-start;justify-content:center;height:6.875rem}.o-presentation__item__header pry-icon.is-private{position:absolute;top:.625rem;left:.625rem}.o-presentation__item__txt{flex-grow:1;padding:.625rem .9375rem;display:flex;flex-direction:column;justify-content:space-between}.o-presentation__item__txt .a-h3{font-size:.875rem}.o-presentation__item__txt .a-p{font-size:.8125rem}.o-presentation__item__txt .a-p.-date{margin-bottom:0}.o-presentation__item__footer{display:flex;align-content:center;justify-content:center;font-size:.875rem;line-height:1.125rem;padding:.1875rem 0}.o-presentation__item__footer .a-btn{margin-left:1.25rem}.o-presentation__item__footer pry-icon{visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear;margin-left:.1875rem}.o-presentation-consult{width:100%;padding:.9375rem}.description-container{position:relative;width:100%}.description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inherit;position:relative;line-height:2rem;box-sizing:border-box;pointer-events:none}.description:after{content:\"\";display:block;position:absolute;top:0;right:0;width:40px;height:48px;z-index:1;pointer-events:initial}.description:hover:after{cursor:pointer}.description-tooltip{position:absolute;max-width:50vw;visibility:hidden;background-color:#fff;padding:20px;-webkit-box-shadow:0 0 50px 0 rgba(0,0,0,.3);opacity:0;transition:opacity .5s ease;z-index:2}.description:hover+.description-tooltip{visibility:visible;transition:opacity .2s ease;opacity:1}.title-tooltip{transform:translateY(4rem)}.info-tooltip{transform:translateY(8rem)}h1.a-presentation-title{font-size:16px;padding-right:20px;color:#113b6e}.title-container{display:flex}.title-container .h-1{padding-top:0;padding-bottom:0}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.info-icon{position:relative;width:1.5rem;height:1.5rem;border-radius:50%;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;align-self:center;margin-right:1rem;border:1px solid #3E546A}.more-actions{position:absolute;top:.375rem;right:.625rem}.more-actions .a-btn{padding:.125rem 0;border-radius:50%}.m-context-menu{position:absolute}.o-restitution-catalog .o-manifest-layout__toolbox{height:5.25rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.o-restitution-catalog .o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-restitution-catalog .o-catalog__search{position:relative}.o-restitution-catalog .o-catalog__search .a-icon{position:absolute;right:.6875rem;bottom:.5625rem;opacity:.5;pointer-events:none}.o-restitution-catalog .o-manifest-layout__content .o-restitution-wrapper .o-restitution{width:100%}\n"], encapsulation: i0.ViewEncapsulation.None }); }
|
|
27
27
|
}
|
|
28
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PryCatalogCssComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
|
-
args: [{ selector: 'pry-restitution-css', template: '', encapsulation: ViewEncapsulation.None, styles: [".o-catalog__filters__by-type__list,.o-catalog__list{margin:0;padding:0}.o-catalog__filters__by-type__list li,.o-catalog__list li{list-style:none}.o-catalog{display:flex;flex-direction:column;overflow:scroll;width:28.125rem;height:100%;padding:.9375rem;border-right-width:.0625rem;border-right-style:solid}.o-catalog .a-h2{padding-top:.625rem}.o-catalog pry-restitution{flex:1}.o-catalog__filters{padding-top:.3125rem}.o-catalog__filters__by-name{position:relative;margin-bottom:1.25rem}.o-catalog__filters__by-name .a-icon{position:absolute;left:.6875rem;bottom:.5625rem;pointer-events:none}.o-catalog__filters__by-name .a-form-field{width:60%;padding-left:2.1875rem}.o-catalog__filters__by-type{display:flex;flex-wrap:wrap;column-gap:1.25rem}.o-catalog__filters__by-type__list{display:flex;gap:.3125rem}.o-catalog__filters__by-type__list li{width:2.1875rem;height:2.1875rem}.o-catalog__filters__by-type__list li .a-label{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;border-width:.0625rem;border-style:solid;border-radius:.3125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like{margin-top:5px;font-weight:300;font-size:.8125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like[disabled]{opacity:0}.o-catalog .is-point{cursor:default}.o-catalog__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.9375rem;justify-content:space-around;padding:1.875rem 0}.o-catalog__list__icon{cursor:pointer}.o-catalog__list pry-catalog-item{max-height:13.125rem}.o-catalog__list__item{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-width:8.125rem;height:100%;text-align:center;cursor:move}.o-catalog__list__item .is-private{position:absolute;top:.3125rem;left:.3125rem}.o-catalog__list__item img{margin-top:.625rem}.o-catalog__list__item img.is-full-width{width:100%;height:30%;object-fit:cover}.o-catalog__list__item .a-btn--icon-only{margin-bottom:.6875rem;padding:.8125rem}.o-catalog__list__item__libelle{width:100%;margin-bottom:0;padding:.9375rem .625rem;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.o-catalog__list__item__action{width:100%;padding:.375rem .625rem;text-align:center}.o-catalog__list__item__action .a-btn--ghost{height:auto;padding:0 .3125rem}.o-catalog__create{align-self:center;width:-moz-fit-content;width:fit-content;margin-bottom:1rem}.o-catalog .o-accordion pry-accordion-item:first-child .o-accordion__title{border-top-style:solid;border-top-width:.0625rem;margin-top:.625rem}\n", ".o-restitution{height:100%;margin:0 auto;border-collapse:collapse;font-size:.875rem;min-width:20.625rem;overflow:hidden}.o-restitution .widget-instanciator{position:relative;height:100%}.o-restitution .m-btn-group.actions{padding-top:1.5625rem;padding-bottom:1.25rem}.o-restitution .a-checkbox{margin-bottom:0rem}.o-restitution label{border-radius:10%}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.more-actions{position:absolute;top:.375rem;right:.625rem}\n", ".o-presentation{margin:0;padding:0}.o-presentation li{list-style:none}.o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-manifest-layout__toolbox.-u-hidden{display:none}.o-manifest-layout__toolbox__search{position:relative}.o-manifest-layout__toolbox__search .a-form-field{min-height:10px}.o-manifest-layout__toolbox__search .a-icon{position:absolute;right:.6875rem;top:.3125rem;opacity:.5;pointer-events:none}.o-manifest-layout__content{height:100%}.o-manifest-layout__content .pointer{cursor:pointer}.pry-viewingpresentation{display:flex;overflow-y:scroll}.pry-viewingpresentation .o-manifest-layout__content,.pry-viewingpresentation .o-dashboard-widget{flex:100% 1 1}.o-presentation{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.875rem;padding:.25rem .25rem 1.25rem;overflow-y:visible}.o-presentation .a-h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.o-presentation__item{display:flex;flex-direction:column;align-items:stretch}.o-presentation__item:hover{cursor:pointer}.o-presentation__item:hover .o-presentation__item__footer pry-icon{visibility:visible;opacity:1}.o-presentation__item .a-tooltip{align-items:center;width:100%;height:100%}.o-presentation__item__image{width:auto;cursor:pointer;overflow:hidden;height:6.875rem;display:flex;align-items:center;justify-content:center}.o-presentation__item__image .is-full-width{width:100%;height:100%;object-fit:cover}.o-presentation__item__header{position:relative;display:flex;align-items:flex-start;justify-content:center;height:6.875rem}.o-presentation__item__header pry-icon.is-private{position:absolute;top:.625rem;left:.625rem}.o-presentation__item__txt{flex-grow:1;padding:.625rem .9375rem}.o-presentation__item__txt .a-h3{font-size:.875rem}.o-presentation__item__txt .a-p{font-size:.8125rem}.o-presentation__item__txt .a-p.-date{margin-bottom:0}.o-presentation__item__footer{display:flex;align-content:center;justify-content:center;font-size:.875rem}.o-presentation__item__footer .a-btn{margin-left:1.25rem}.o-presentation__item__footer pry-icon{visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear;margin-left:.1875rem}.o-presentation-consult{width:100%;padding:.9375rem}.description-container{position:relative;width:100%}.description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inherit;position:relative;line-height:2rem;box-sizing:border-box;pointer-events:none}.description:after{content:\"\";display:block;position:absolute;top:0;right:0;width:40px;height:48px;z-index:1;pointer-events:initial}.description:hover:after{cursor:pointer}.description-tooltip{position:absolute;max-width:50vw;visibility:hidden;background-color:#fff;padding:20px;-webkit-box-shadow:0 0 50px 0 rgba(0,0,0,.3);opacity:0;transition:opacity .5s ease;z-index:2}.description:hover+.description-tooltip{visibility:visible;transition:opacity .2s ease;opacity:1}.title-tooltip{transform:translateY(4rem)}.info-tooltip{transform:translateY(8rem)}h1.a-presentation-title{font-size:16px;padding-right:20px;color:#113b6e}.title-container{display:flex}.title-container .h-1{padding-top:0;padding-bottom:0}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.info-icon{position:relative;width:1.5rem;height:1.5rem;border-radius:50%;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;align-self:center;margin-right:1rem;border:1px solid #3E546A}.more-actions{position:absolute;top:.375rem;right:.625rem}.m-context-menu{position:absolute}.o-restitution-catalog .o-manifest-layout__toolbox{height:5.25rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.o-restitution-catalog .o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-restitution-catalog .o-catalog__search{position:relative}.o-restitution-catalog .o-catalog__search .a-icon{position:absolute;right:.6875rem;bottom:.5625rem;opacity:.5;pointer-events:none}.o-restitution-catalog .o-manifest-layout__content .o-restitution-wrapper .o-restitution{width:100%}\n"] }]
|
|
30
|
+
args: [{ selector: 'pry-restitution-css', template: '', encapsulation: ViewEncapsulation.None, styles: [".o-catalog__filters__by-type__list,.o-catalog__list{margin:0;padding:0}.o-catalog__filters__by-type__list li,.o-catalog__list li{list-style:none}.o-catalog{display:flex;flex-direction:column;overflow:scroll;width:28.125rem;height:100%;padding:.9375rem;border-right-width:.0625rem;border-right-style:solid}.o-catalog .a-h2{padding-top:.625rem}.o-catalog pry-restitution{flex:1}.o-catalog__filters{padding-top:.3125rem}.o-catalog__filters__by-name{position:relative;margin-bottom:1.25rem}.o-catalog__filters__by-name .a-icon{position:absolute;left:.6875rem;bottom:.5625rem;pointer-events:none}.o-catalog__filters__by-name .a-form-field{width:60%;padding-left:2.1875rem}.o-catalog__filters__by-type{display:flex;flex-wrap:wrap;column-gap:1.25rem}.o-catalog__filters__by-type__list{display:flex;gap:.3125rem}.o-catalog__filters__by-type__list li{width:2.1875rem;height:2.1875rem}.o-catalog__filters__by-type__list li .a-label{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;margin:0;border-width:.0625rem;border-style:solid;border-radius:.3125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like{margin-top:5px;font-weight:300;font-size:.8125rem}.o-catalog__filters__by-type .a-btn.a-btn--icon-text.-link-like[disabled]{opacity:0}.o-catalog .is-point{cursor:default}.o-catalog__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:.9375rem;justify-content:space-around;padding:1.875rem 0}.o-catalog__list__icon{cursor:pointer}.o-catalog__list pry-catalog-item{max-height:13.125rem}.o-catalog__list__item{position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-width:8.125rem;height:100%;text-align:center;cursor:move}.o-catalog__list__item .is-private{position:absolute;top:.3125rem;left:.3125rem}.o-catalog__list__item img{margin-top:.625rem}.o-catalog__list__item img.is-full-width{width:100%;height:30%;object-fit:cover}.o-catalog__list__item .a-btn--icon-only{margin-bottom:.6875rem;padding:.8125rem}.o-catalog__list__item__libelle{width:100%;margin-bottom:0;padding:.9375rem .625rem;word-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.o-catalog__list__item__action{width:100%;padding:.375rem .625rem;text-align:center}.o-catalog__list__item__action .a-btn--ghost{height:auto;padding:0 .3125rem}.o-catalog__create{align-self:center;width:-moz-fit-content;width:fit-content;margin-bottom:1rem}.o-catalog .o-accordion pry-accordion-item:first-child .o-accordion__title{border-top-style:solid;border-top-width:.0625rem;margin-top:.625rem}\n", ".o-restitution{height:100%;margin:0 auto;border-collapse:collapse;font-size:.875rem;min-width:20.625rem;overflow:hidden}.o-restitution .widget-instanciator{position:relative;height:100%}.o-restitution .m-btn-group.actions{padding-top:1.5625rem;padding-bottom:1.25rem}.o-restitution .a-checkbox{margin-bottom:0rem}.o-restitution label{border-radius:10%}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.more-actions{position:absolute;top:.375rem;right:.625rem}\n", ".o-presentation{margin:0;padding:0}.o-presentation li{list-style:none}.o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-manifest-layout__toolbox.-u-hidden{display:none}.o-manifest-layout__toolbox__search{position:relative}.o-manifest-layout__toolbox__search .a-form-field{min-height:10px}.o-manifest-layout__toolbox__search .a-icon{position:absolute;right:.6875rem;top:.3125rem;opacity:.5;pointer-events:none}.o-manifest-layout__content{height:100%}.o-manifest-layout__content .pointer{cursor:pointer}.pry-viewingpresentation{display:flex;overflow-y:scroll}.pry-viewingpresentation .o-manifest-layout__content,.pry-viewingpresentation .o-dashboard-widget{flex:100% 1 1}.o-presentation{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));grid-gap:1.875rem;padding:.25rem .25rem 1.25rem;overflow-y:visible}.o-presentation .a-h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.o-presentation__item{display:flex;flex-direction:column;align-items:stretch}.o-presentation__item:hover{cursor:pointer}.o-presentation__item:hover .o-presentation__item__footer pry-icon{visibility:visible;opacity:1}.o-presentation__item .a-tooltip{align-items:center;width:100%;height:100%}.o-presentation__item__image{width:auto;cursor:pointer;overflow:hidden;height:6.875rem;display:flex;align-items:center;justify-content:center}.o-presentation__item__image .is-full-width{width:100%;height:100%;object-fit:cover}.o-presentation__item__header{position:relative;display:flex;align-items:flex-start;justify-content:center;height:6.875rem}.o-presentation__item__header pry-icon.is-private{position:absolute;top:.625rem;left:.625rem}.o-presentation__item__txt{flex-grow:1;padding:.625rem .9375rem;display:flex;flex-direction:column;justify-content:space-between}.o-presentation__item__txt .a-h3{font-size:.875rem}.o-presentation__item__txt .a-p{font-size:.8125rem}.o-presentation__item__txt .a-p.-date{margin-bottom:0}.o-presentation__item__footer{display:flex;align-content:center;justify-content:center;font-size:.875rem;line-height:1.125rem;padding:.1875rem 0}.o-presentation__item__footer .a-btn{margin-left:1.25rem}.o-presentation__item__footer pry-icon{visibility:hidden;opacity:0;transition:visibility .1s linear,opacity .1s linear;margin-left:.1875rem}.o-presentation-consult{width:100%;padding:.9375rem}.description-container{position:relative;width:100%}.description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:inherit;position:relative;line-height:2rem;box-sizing:border-box;pointer-events:none}.description:after{content:\"\";display:block;position:absolute;top:0;right:0;width:40px;height:48px;z-index:1;pointer-events:initial}.description:hover:after{cursor:pointer}.description-tooltip{position:absolute;max-width:50vw;visibility:hidden;background-color:#fff;padding:20px;-webkit-box-shadow:0 0 50px 0 rgba(0,0,0,.3);opacity:0;transition:opacity .5s ease;z-index:2}.description:hover+.description-tooltip{visibility:visible;transition:opacity .2s ease;opacity:1}.title-tooltip{transform:translateY(4rem)}.info-tooltip{transform:translateY(8rem)}h1.a-presentation-title{font-size:16px;padding-right:20px;color:#113b6e}.title-container{display:flex}.title-container .h-1{padding-top:0;padding-bottom:0}.actions-list{display:flex;align-items:center;gap:.9375rem;flex-direction:row;flex-wrap:nowrap;justify-content:space-evenly;list-style-type:none}.info-icon{position:relative;width:1.5rem;height:1.5rem;border-radius:50%;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;align-self:center;margin-right:1rem;border:1px solid #3E546A}.more-actions{position:absolute;top:.375rem;right:.625rem}.more-actions .a-btn{padding:.125rem 0;border-radius:50%}.m-context-menu{position:absolute}.o-restitution-catalog .o-manifest-layout__toolbox{height:5.25rem;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.o-restitution-catalog .o-manifest-layout__toolbox div:first-child{margin-left:auto}.o-restitution-catalog .o-catalog__search{position:relative}.o-restitution-catalog .o-catalog__search .a-icon{position:absolute;right:.6875rem;bottom:.5625rem;opacity:.5;pointer-events:none}.o-restitution-catalog .o-manifest-layout__content .o-restitution-wrapper .o-restitution{width:100%}\n"] }]
|
|
31
31
|
}] });
|
|
32
32
|
|
|
33
33
|
class PryRestitutionComponent extends SubscriptionnerDirective {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provoly-dashboard-restitution.mjs","sources":["../../../../projects/provoly/dashboard/restitution/style/css.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution/restitution.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution/restitution.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-catalog/restitution-catalog.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-catalog/restitution-catalog.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-list-item/restitution-list-item.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-list-item/restitution-list-item.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-list/restitution-list.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-list/restitution-list.component.html","../../../../projects/provoly/dashboard/restitution/i18n/en.translations.ts","../../../../projects/provoly/dashboard/restitution/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/restitution/restitution.module.ts","../../../../projects/provoly/dashboard/restitution/provoly-dashboard-restitution.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-restitution-css',\n template: '',\n styleUrls: ['./_o-restitution-list.scss', './_o-restitution.scss', './restitution-catalog.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryCatalogCssComponent {}\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n Class,\n ClassActions,\n ClassSelectors,\n ConfigActions,\n DataSource,\n DataSourceActions,\n DEFAULT_RESTITUTION_ICON_URL,\n FieldActions,\n LibraryTypes,\n PryVisibility,\n PryVisibilityType,\n SearchActions,\n SubscriptionnerDirective,\n ToolboxManifestService,\n ToolboxMenuService,\n Widget,\n WidgetManifest\n} from '@provoly/dashboard';\nimport { PryStepperComponent } from '@provoly/dashboard/components/stepper';\nimport { map, Observable, Subject } from 'rxjs';\nimport { v4 } from 'uuid';\nimport { RestitutionForm } from '../../model/restitution.model';\n\n@Component({\n selector: 'pry-restitution',\n templateUrl: './restitution.component.html'\n})\nexport class PryRestitutionComponent extends SubscriptionnerDirective implements OnInit {\n types$: Observable<{ icon: string; label: string; type: string; manifest: WidgetManifest }[]>;\n classes$: Observable<Class[]>;\n customManifest: WidgetManifest = {\n type: 'detail',\n layout: { x: 1, y: 1, width: 1, height: 1 },\n options: { itemIds: [] as string[] }\n };\n form: RestitutionForm = {\n selectedWidget: '',\n selectedDataSources: [],\n title: '',\n image: DEFAULT_RESTITUTION_ICON_URL,\n description: '',\n cover: false\n };\n visibility: PryVisibility = {\n type: PryVisibilityType.PRIVATE,\n users: []\n };\n openSettings$: Subject<void> = new Subject<void>();\n users$: Observable<any[]> | null = null;\n consultMode: boolean = false;\n @Input() selectedRestitution: Widget | null = null;\n @Input() edit: boolean = true;\n @Output() restitutionCreated = new EventEmitter<void>();\n widgetsList$: Observable<CatalogEntry[]>;\n type: LibraryTypes = LibraryTypes.ILLUSTRATION;\n @Input() isDataSourceSelected = false;\n @Input() bindId: any;\n image: string = DEFAULT_RESTITUTION_ICON_URL;\n widgetTypes: { icon: string; label: string; type: string; manifest: WidgetManifest }[] = [];\n\n constructor(\n private toolboxManifestService: ToolboxManifestService,\n private store: Store,\n private toolboxMenuService: ToolboxMenuService\n ) {\n super();\n this.store.dispatch(DataSourceActions.load());\n this.store.dispatch(ClassActions.load());\n this.store.dispatch(ConfigActions.loadCustomization());\n this.store.dispatch(FieldActions.load());\n\n this.types$ = this.toolboxMenuService.types$.pipe(\n map((type) => type.filter((filteredType) => filteredType.type !== 'detail'))\n );\n this.subscriptions.add(this.types$.subscribe((types) => (this.widgetTypes = types)));\n this.classes$ = this.store.select(ClassSelectors.classes);\n this.widgetsList$ = this.toolboxMenuService.menuStructure$.pipe(\n map((menu) =>\n menu\n .map((items) => [...items.sub.filter((s) => this.toolboxManifestService.isModel(s.type))])\n .reduce((acc, items) => [...acc, ...items], [])\n )\n );\n }\n\n ngOnInit(): void {\n if (this.selectedRestitution) {\n if (!this.edit) {\n this.consultMode = true;\n }\n this.customManifest = JSON.parse(this.selectedRestitution.content);\n if (Array.isArray(this.customManifest.datasource)) {\n this.customManifest.datasource.forEach((dataSource: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: dataSource,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-1'\n })\n );\n });\n } else {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: this.customManifest.datasource as string,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-2'\n })\n );\n }\n if (this.selectedRestitution.visibility) {\n this.visibility = this.selectedRestitution.visibility;\n }\n this.form.selectedDataSources.forEach((dataSource: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: dataSource,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-3'\n })\n );\n });\n this.customManifest = JSON.parse(this.selectedRestitution.content);\n this.customManifest.header = {\n datasourceSelection: false,\n parameters: true,\n window: false,\n maximize: false,\n addToCatalog: false,\n delete: false,\n changeSpot: false\n };\n this.form = {\n selectedWidget: this.customManifest.type,\n selectedDataSources: this.customManifest.datasource as string[],\n title: this.selectedRestitution.name,\n cover: this.selectedRestitution.cover,\n ...this.selectedRestitution\n };\n }\n this.image = this.selectedRestitution?.image ?? DEFAULT_RESTITUTION_ICON_URL;\n }\n\n cancel(stepper: PryStepperComponent) {\n this.form.selectedWidget = '';\n this.form.selectedDataSources = [];\n this.form.title = '';\n this.form.description = '';\n this.form.image = '';\n this.form.cover = false;\n if (this.consultMode || this.selectedRestitution) {\n this.restitutionCreated.emit();\n return;\n }\n this.prev(stepper);\n }\n\n datasourcesChanged($event: DataSource[]) {\n this.form.selectedDataSources = $event.map((ds) => ds.id);\n }\n\n submit(stepper: PryStepperComponent) {\n if (this.consultMode) {\n this.goNext(stepper);\n return;\n }\n\n const widgetType = this.widgetTypes.find((widgetType) => widgetType.type === this.form.selectedWidget);\n\n this.customManifest = {\n ...this.customManifest,\n type: this.form.selectedWidget,\n title: this.form.title,\n datasource: this.form.selectedDataSources,\n cover: this.form.cover ?? false,\n header: {\n datasourceSelection: false,\n parameters: true,\n window: false,\n maximize: false,\n addToCatalog: false,\n delete: false,\n changeSpot: false\n },\n options: {\n ...widgetType?.manifest.options,\n title: this.form.title\n }\n };\n this.form.selectedDataSources.forEach((nameQuery: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: nameQuery,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.submit()'\n })\n );\n });\n this.goNext(stepper);\n setTimeout(() => {\n this.openSettings$.next();\n }, 150);\n }\n\n goNext(stepper: PryStepperComponent) {\n stepper.next();\n }\n\n prev(stepper: PryStepperComponent) {\n stepper.prev();\n }\n\n updateManifest($event: { widgetIndex: number; manifest: WidgetManifest }) {\n this.customManifest = $event.manifest;\n }\n\n lastStepCompleted() {\n this.form.image = this.image;\n if (this.edit) {\n this.store.dispatch(\n ConfigActions.saveWidget({\n widget: {\n id: this.selectedRestitution?.id ?? v4(),\n content: JSON.stringify(this.customManifest),\n name: this.form.title,\n description: this.form.description,\n image: this.form.image ?? '',\n visibility: this.visibility,\n datasource: this.form.selectedDataSources,\n cover: this.form.cover ?? false,\n modificationDate: ''\n }\n })\n );\n }\n this.store.dispatch(ConfigActions.loadWidgets());\n this.restitutionCreated.emit();\n }\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-restitution\">\n <h3 class=\"a-h2 o-restitution__title\">\n {{ (consultMode ? '@pry.restitution.consult_title' : '@pry.restitution.create_title') | i18n }}\n </h3>\n <pry-stepper #stepper [isConsultMode]=\"consultMode || edit\" (lastStepCompleted)=\"lastStepCompleted()\">\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.configure' | i18n }}</h4>\n <div>\n <div class=\"m-form-label-field\">\n <label for=\"restitution\" class=\"a-label\">{{ '@pry.restitution.restitution_type' | i18n }}</label>\n <pry-select\n id=\"restitution\"\n class=\"a-pry-select\"\n [itemsAsOption]=\"true\"\n [items]=\"types$ | async\"\n [labelTranslate]=\"true\"\n [(ngModel)]=\"form.selectedWidget\"\n [disabled]=\"consultMode\"\n bindIcon=\"icon\"\n bindLabel=\"label\"\n bindValue=\"type\"\n >\n </pry-select>\n </div>\n <div *ngIf=\"form.selectedWidget !== ''\">\n <div class=\"m-form-label-field\">\n <label for=\"graphTitle\" class=\"a-label\">{{ '@pry.restitution.graph_title' | i18n }}</label>\n <input\n name=\"title\"\n id=\"graphTitle\"\n class=\"a-form-field\"\n [(ngModel)]=\"form.title\"\n type=\"text\"\n [disabled]=\"consultMode\"\n maxlength=\"30\"\n ngDefaultControl\n />\n </div>\n <div class=\"m-form-label-field\">\n <label for=\"description\" class=\"a-label\">{{ '@pry.restitution.description' | i18n }}</label>\n <textarea\n name=\"description\"\n id=\"description\"\n class=\"a-form-field\"\n [(ngModel)]=\"form.description\"\n style=\"resize: none\"\n [disabled]=\"consultMode\"\n maxlength=\"255\"\n ngDefaultControl\n >\n </textarea>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\">{{ '@pry.presentation.form.image' | i18n }}</label>\n <div class=\"o-file-input\">\n <pry-select-image (changed)=\"image = $event\" [iconUrl]=\"image\" [mode]=\"type\"></pry-select-image>\n <pry-checkbox [(ngModel)]=\"form.cover\" name=\"cover\"> {{ '@pry.restitution.cover' | i18n }}</pry-checkbox>\n </div>\n </div>\n <div class=\"m-btn-group -space-evenly actions\">\n <button (click)=\"cancel(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button\n (click)=\"goNext(stepper)\"\n [disabled]=\"form.selectedWidget === '' || form.title.trim().length === 0\"\n class=\"a-btn a-btn--primary\"\n >\n {{ '@pry.restitution.validate' | i18n }}\n </button>\n </div>\n </div>\n </div>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.dataSource' | i18n }}</h4>\n <pry-datasource-selector\n (cancel)=\"prev(stepper)\"\n (validated)=\"submit(stepper)\"\n (datasourcesChanged)=\"datasourcesChanged($event)\"\n [datasourceIds]=\"form.selectedDataSources\"\n ></pry-datasource-selector>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.visualize' | i18n }}</h4>\n <div class=\"widget-instanciator\">\n <pry-widget-instanciator\n [standalone]=\"true\"\n [staticManifest]=\"customManifest\"\n [open$]=\"openSettings$\"\n (manifestModified)=\"updateManifest($event)\"\n ></pry-widget-instanciator>\n </div>\n <div class=\"m-btn-group -space-evenly actions\" *ngIf=\"!consultMode; else consult\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.validate' | i18n }}\n </button>\n </div>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.broadcast' | i18n }}</h4>\n <div class=\"\">\n <h3>{{ '@pry.restitution.access' | i18n }}</h3>\n {{ '@pry.restitution.choice' | i18n }}\n <ul>\n <li>\n {{ '@pry.restitution.public' | i18n }}\n </li>\n </ul>\n {{ '@pry.restitution.or' | i18n }}\n <ul>\n <li>\n {{ '@pry.restitution.private' | i18n }}\n </li>\n </ul>\n </div>\n <pry-share\n [(ngModel)]=\"visibility\"\n [users$]=\"users$\"\n labelProperty=\"name\"\n valueProperty=\"id\"\n [disabled]=\"consultMode\"\n ></pry-share>\n <div class=\"m-btn-group -space-evenly actions\" *ngIf=\"!consultMode; else consult\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.broadcast' | i18n }}\n </button>\n </div>\n </pry-step>\n </pry-stepper>\n</div>\n\n<ng-template #consult>\n <div class=\"m-btn-group -space-evenly actions\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.next' | i18n }}\n </button>\n </div>\n</ng-template>\n<ng-template #noDatasource>\n <p class=\"search-home__container-search\">{{ '@pry.restitution.noDataSource' | i18n }}</p>\n</ng-template>\n","import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n ConfigActions,\n ConfigSelectors, DashboardActions,\n ManifestDescription,\n PryVisibilityType,\n ViewMode,\n Widget\n} from '@provoly/dashboard';\nimport { BehaviorSubject, combineLatest, map, Observable } from 'rxjs';\nimport { TemplatePortal } from \"@angular/cdk/portal\";\n\n@Component({\n selector: 'pry-restitution-catalog',\n templateUrl: './restitution-catalog.component.html'\n})\nexport class PryRestitutionCatalogComponent {\n restitutions$: Observable<Widget[]>;\n search$ = new BehaviorSubject('');\n filteredRestitution$: Observable<Widget[]>;\n mode = ViewMode;\n selectedMode: ViewMode = ViewMode.CATALOG;\n selectedRestitution: Widget | null = null;\n restitution?: Widget;\n PryVisibilityType = PryVisibilityType;\n overlayRef?: OverlayRef;\n @ViewChild('modalActions', { read: TemplateRef }) templateActions!: TemplateRef<any>;\n\n constructor(private store: Store, protected overlay: Overlay, protected viewContainerRef: ViewContainerRef) {\n this.store.dispatch(ConfigActions.loadWidgets());\n this.store.dispatch(ConfigActions.getMapStyles());\n\n this.restitutions$ = this.store\n .select(ConfigSelectors.catalog)\n .pipe(\n map((restitutionList) =>\n [...restitutionList].sort((a, b) =>\n a.modificationDate ? b.modificationDate.localeCompare(a.modificationDate) : 1\n )\n )\n );\n this.filteredRestitution$ = combineLatest([this.restitutions$, this.search$]).pipe(\n map(([restitutions, search]) =>\n restitutions.filter(\n (restitution) => search.length === 0 || restitution.name.toLowerCase().includes(search.toLowerCase())\n )\n )\n );\n }\n\n selectMode(newMode: ViewMode) {\n this.selectedMode = newMode;\n }\n\n selectRestitution(restitution: Widget) {\n this.selectedRestitution = restitution;\n this.selectMode(this.mode.CONSULT);\n this.search$.next('');\n }\n\n closeRestitution($event: void) {\n this.selectedRestitution = null;\n this.selectMode(this.mode.CATALOG);\n }\n\n deleteRestitution(id: string) {\n this.store.dispatch(ConfigActions.confirmRestitutionDeletion({ id }));\n this.toggleModalActions()\n }\n\n editRestitution(restitution: Widget) {\n this.selectedRestitution = restitution;\n this.selectMode(ViewMode.EDITION);\n this.search$.next('');\n this.overlayRef?.dispose();\n this.overlayRef = undefined\n }\n\n toggleModalActions(restitution?: Widget ) {\n if (!this.overlayRef && restitution){\n this.selectedRestitution = restitution\n this.overlayRef = this.overlay.create(\n new OverlayConfig({\n hasBackdrop: true,\n panelClass: ['o-modal-wrapper'],\n backdropClass: 'backdrop'\n })\n );\n this.overlayRef.backdropClick().subscribe(() => this.toggleModalActions(restitution));\n this.overlayRef.attach(new TemplatePortal(this.templateActions, this.viewContainerRef));\n } else {\n this.overlayRef?.dispose();\n this.overlayRef = undefined\n this.selectedRestitution = null;\n }\n }\n\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-manifest-layout o-restitution-catalog\">\n <ng-template [ngIf]=\"selectedMode === mode.CATALOG\">\n <div class=\"o-manifest-layout__toolbox\">\n <button\n type=\"button\"\n (click)=\"selectMode(mode.CREATION)\"\n class=\"a-btn a-btn--primary a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.create_title' | i18n\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'create' }\"\n >\n {{ '@pry.restitution.create_title' | i18n }}\n </button>\n <div>\n <div class=\"o-catalog__search\">\n <label id=\"catalog-search-label\" for=\"catalog-search\" class=\"u-visually-hidden\">\n <span>{{ '@pry.toolbox.catalog.filter.name' | i18n }}</span>\n </label>\n <input\n id=\"catalog-search\"\n type=\"text\"\n class=\"a-form-field\"\n [placeholder]=\"'@pry.restitution.search' | i18n\"\n [ngModel]=\"search$ | async\"\n (ngModelChange)=\"this.search$.next($event)\"\n />\n\n <pry-icon iconSvg=\"search\" [width]=\"17\" [height]=\"17\"></pry-icon>\n </div>\n </div>\n </div>\n <div class=\"o-manifest-layout__content\">\n <h1 class=\"a-h1\">{{ '@pry.restitution.catalog' | i18n }}</h1>\n\n <div class=\"o-presentation-wrapper\">\n <ul class=\"o-presentation\">\n <li class=\"o-presentation__item\" *ngFor=\"let restitution of filteredRestitution$ | async\">\n <div class=\"o-presentation__item__header\">\n <ng-container *ngIf=\"restitution.visibility?.type === PryVisibilityType.PRIVATE\">\n <pry-icon\n iconSvg=\"private\"\n class=\"is-private a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.lock' | i18n\"\n [height]=\"17\"\n [width]=\"17\"\n ></pry-icon>\n </ng-container>\n <div class=\"a-tooltip\">\n <div class=\"o-presentation__item__image\">\n <img\n alt=\"\"\n [height]=\"restitution.cover ? 600 : 128\"\n [width]=\"restitution.cover ? 600 : 128\"\n [class.is-full-width]=\"restitution.cover\"\n [src]=\"restitution.image | getSecuredImage : [600, 600] | async\"\n class=\"pointer\"\n />\n </div>\n </div>\n <ng-container *ngIf=\"restitution.visibility?.type === PryVisibilityType.PRIVATE\">\n <div class=\"more-actions\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--more a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.more' | i18n\"\n (click)=\"toggleModalActions(restitution)\"\n >\n <pry-icon [height]=\"25\" [width]=\"25\" iconSvg=\"more_horiz\"></pry-icon>\n </button>\n </div>\n </ng-container>\n </div>\n <div class=\"o-presentation__item__txt\">\n <h3 class=\"a-h3\">{{ restitution.name }}</h3>\n <p class=\"a-p -date\">{{ restitution.modificationDate | sinceDate }}</p>\n </div>\n\n <div class=\"o-presentation__item__footer\">\n <button class=\"a-btn a-tooltip\" (click)=\"selectRestitution(restitution)\" [attr.data-tooltip]=\"'@pry.presentation.view' | i18n\">\n {{'@pry.restitution.view' | i18n}}</button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </ng-template>\n<ng-template #modalActions>\n <div class=\"o-modal\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"dialog presenation options\"\n *ngIf=\"selectedRestitution\">\n <div class=\"o-modal__top\">\n <div class=\"o-modal__top__title\">\n <h2 class=\"a-h2\" id=\"dialog_title\">{{ '@pry.restitution.options' | i18n }}</h2>\n </div>\n <div class=\"o-modal__top__close\">\n <button\n class=\"a-btn a-btn--icon-only\"\n (click)=\"toggleModalActions(selectedRestitution)\"\n >\n <pry-icon iconSvg=\"close\" [height]=\"35\" [width]=\"35\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.toolbox.close' | i18n }}</span>\n </button>\n </div>\n </div>\n <ul class=\"actions-list\">\n <li>\n <button\n type=\"button\"\n class=\"a-btn a-btn icon-only a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.update' | i18n\"\n (click)=\"editRestitution(selectedRestitution)\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'edit' }\"\n >\n <pry-icon iconSvg=\"edit\"></pry-icon>\n </button>\n </li>\n <li>\n <button\n type=\"button\"\n class=\"a-btn a-btn icon-only a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.delete' | i18n\"\n (click)=\"deleteRestitution(selectedRestitution.id)\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'delete' }\"\n >\n <pry-icon iconSvg=\"delete\"></pry-icon>\n </button>\n </li>\n </ul>\n </div>\n</ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.CONSULT\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution\n [selectedRestitution]=\"selectedRestitution\"\n [edit]=\"false\"\n (restitutionCreated)=\"closeRestitution($event)\"\n class=\"restitution\"\n ></pry-restitution>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.CREATION\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution (restitutionCreated)=\"closeRestitution($event)\" class=\"restitution\"></pry-restitution>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.EDITION\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution\n (restitutionCreated)=\"closeRestitution($event)\"\n [selectedRestitution]=\"selectedRestitution\"\n class=\"restitution\"\n ></pry-restitution>\n </div>\n </ng-template>\n</div>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n ConfigSelectors,\n DashboardActions,\n DashboardGridLayout,\n DashboardSelectors,\n PryVisibilityType,\n SubscriptionnerDirective,\n ToolboxManifestService,\n Widget\n} from '@provoly/dashboard';\nimport { map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-catalog-item',\n templateUrl: './restitution-list-item.component.html'\n})\nexport class PryRestitutionListItemComponent extends SubscriptionnerDirective {\n @Input() widget!: CatalogEntry;\n @Input() translate: boolean = true;\n @Output() selectRestitution = new EventEmitter<Widget>();\n catalog: Widget[] | undefined;\n automaticGridMode$: Observable<boolean>;\n automaticGridMode: boolean = false;\n PryVisibilityType = PryVisibilityType;\n\n constructor(private store: Store, private toolboxManifestService: ToolboxManifestService) {\n super();\n this.store.select(ConfigSelectors.catalog).subscribe((catalog: Widget[]) => (this.catalog = catalog));\n this.automaticGridMode$ = this.store\n .select(DashboardSelectors.gridLayout)\n .pipe(map((layout) => layout !== DashboardGridLayout.MANUAL));\n this.subscriptions.add(this.automaticGridMode$.subscribe((modeAuto) => (this.automaticGridMode = modeAuto)));\n }\n\n dragStart($event: DragEvent, type: string) {\n if (!this.automaticGridMode) {\n this.toolboxManifestService.dataTransfer($event, type);\n }\n }\n\n emitSelectedRestitution(catalogEntry: CatalogEntry) {\n if (catalogEntry.isCustom) {\n this.catalog?.forEach((widget: Widget) => {\n if (widget.id === catalogEntry.type) {\n this.selectRestitution.emit(widget);\n }\n });\n }\n }\n\n viewInDashboard(widget: CatalogEntry) {\n this.store.dispatch(DashboardActions.addWidgetToPresentation({ widgetType: widget.type }));\n }\n}\n","<li\n class=\"o-catalog__list__item\"\n [class.is-point]=\"automaticGridMode$ | async\"\n [draggable]=\"!(automaticGridMode$ | async)\"\n role=\"listitem\"\n aria-grabbed=\"false\"\n aria-haspopup=\"true\"\n tabindex=\"-1\"\n [title]=\"widget.description ?? widget.label | i18n : { warn: false }\"\n (dragstart)=\"dragStart($event, widget.type)\"\n>\n <ng-container *ngIf=\"automaticGridMode$ | async\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--icon-only\"\n (click)=\"viewInDashboard(widget)\"\n [title]=\"'@pry.restitution.add_icon' | i18n\"\n >\n <pry-icon [width]=\"25\" [height]=\"25\" iconSvg=\"add_column\" class=\"o-catalog__list__icon\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.restitution.add_icon' | i18n }}</span>\n </button>\n </ng-container>\n <img\n [alt]=\"widget.label | i18n : { warn: false }\"\n [src]=\"widget.icon | getSecuredImage : [600, 600] | async\"\n [height]=\"widget.cover ? 600 : 53\"\n [width]=\"widget.cover ? 600 : 53\"\n [class.is-full-width]=\"widget.cover\"\n />\n <p class=\"o-catalog__list__item__libelle\" *ngIf=\"widget.isCustom; else translate\">{{ widget.label }}</p>\n <ng-template #translate>\n <p class=\"o-catalog__list__item__libelle\">{{ widget.label | i18n : { warn: false } }}</p>\n </ng-template>\n <ng-container *ngIf=\"widget.visibility?.type === PryVisibilityType.PRIVATE\">\n <pry-icon\n iconSvg=\"private\"\n class=\"is-private a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.lock' | i18n\"\n [height]=\"17\"\n [width]=\"17\"\n ></pry-icon>\n </ng-container>\n <div class=\"o-catalog__list__item__action\" *ngIf=\"widget.isCustom\">\n <button type=\"button\" class=\"a-btn a-btn--ghost\" (click)=\"emitSelectedRestitution(widget)\">\n {{ '@pry.restitution.view' | i18n }}\n </button>\n </div>\n</li>\n","import { Component, Input } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n ConfigActions,\n PryI18nService,\n PryVisibilityType,\n SubscriptionnerDirective,\n ToolboxManifestService,\n ToolboxMenuService,\n ViewMode,\n Widget\n} from '@provoly/dashboard';\nimport { BehaviorSubject, combineLatest, map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-catalog',\n templateUrl: './restitution-list.component.html'\n})\nexport class PryRestitutionListComponent extends SubscriptionnerDirective {\n @Input() showTabs = true;\n @Input()\n get customModels(): string[] {\n return this._customModels;\n }\n set customModels(models: string[]) {\n this._customModels = ['detail', 'iframe', ...models];\n }\n private _customModels = ['detail', 'iframe'];\n search$ = new BehaviorSubject('');\n type$ = new BehaviorSubject<undefined | string>(undefined);\n filteredWidgets$: Observable<CatalogEntry[]>;\n nonCustomWidgets$: Observable<CatalogEntry[]>;\n customWidgets$: Observable<CatalogEntry[]>;\n types$: Observable<{ icon: string; label: string; type: string }[]>;\n selectedRestitution: Widget | null = null;\n mode = ViewMode;\n selectedMode: ViewMode = ViewMode.CATALOG;\n categories = ['model', 'noModel'];\n PryVisibilityType = PryVisibilityType;\n\n constructor(\n private toolboxMenuService: ToolboxMenuService,\n private translateService: PryI18nService,\n private toolboxManifestService: ToolboxManifestService,\n private store: Store\n ) {\n super();\n this.store.dispatch(ConfigActions.loadWidgets());\n this.types$ = this.toolboxMenuService.types$;\n this.filteredWidgets$ = combineLatest([this.toolboxMenuService.menuList$, this.search$, this.type$]).pipe(\n map(([widgets, search, type]) =>\n widgets.filter(\n (widget) =>\n (search.length === 0 ||\n this.translateService.instant(widget.label).toLocaleLowerCase().includes(search.toLocaleLowerCase())) &&\n (!type || this.toolboxManifestService.get(widget.type).type === type)\n )\n )\n );\n this.nonCustomWidgets$ = this.filteredWidgets$.pipe(\n map((widgets) =>\n widgets.filter(\n (widget) => this.toolboxManifestService.isModel(widget.type) || this.customModels.includes(widget.type)\n )\n )\n );\n this.customWidgets$ = this.filteredWidgets$.pipe(\n map((widgets) =>\n widgets.filter(\n (widget) => !this.toolboxManifestService.isModel(widget.type) && !this.customModels.includes(widget.type)\n )\n )\n );\n }\n\n selectMode(newMode: ViewMode) {\n this.selectedMode = newMode;\n }\n\n selectRestitution($event: Widget) {\n this.selectedRestitution = $event;\n this.selectMode(ViewMode.CONSULT);\n }\n\n closeRestitution() {\n this.selectedRestitution = null;\n this.selectMode(this.mode.CATALOG);\n }\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-catalog\">\n <ng-template [ngIf]=\"selectedMode === mode.CATALOG\">\n <h2 class=\"a-h2\">{{ '@pry.restitution.catalog' | i18n }}</h2>\n <div class=\"o-catalog__filters\">\n <div class=\"o-catalog__filters__by-name\">\n <label id=\"catalog-search-label\" for=\"catalog-search\" class=\"a-label u-visually-hidden\">\n <span>{{ '@pry.toolbox.catalog.filter.name' | i18n }}</span>\n </label>\n <pry-icon iconSvg=\"search\" [width]=\"17\" [height]=\"17\"></pry-icon>\n <input\n id=\"catalog-search\"\n type=\"text\"\n class=\"a-form-field\"\n [placeholder]=\"'@pry.action.search' | i18n\"\n [ngModel]=\"search$ | async\"\n (ngModelChange)=\"this.search$.next($event)\"\n />\n </div>\n <label class=\"a-label\">{{ '@pry.action.filterByType' | i18n }}</label>\n <div class=\"o-catalog__filters__by-type\">\n <ul class=\"o-catalog__filters__by-type__list\">\n <li *ngFor=\"let typeOpt of types$ | async\">\n <input\n type=\"radio\"\n class=\"a-form-field u-sr-only\"\n name=\"catalog-filter\"\n id=\"catalog-button-{{ typeOpt.type }}\"\n [checked]=\"typeOpt.type === (type$ | async)\"\n (change)=\"type$.next(typeOpt.type)\"\n />\n <label\n class=\"a-label\"\n id=\"catalog-button-label-{{ typeOpt.type }}\"\n for=\"catalog-button-{{ typeOpt.type }}\"\n [title]=\"typeOpt.label | i18n : { warn: false }\"\n >\n <span class=\"u-sr-only\">{{ typeOpt.label | i18n : { warn: false } }} </span>\n <pry-icon [width]=\"18\" [height]=\"18\" [iconSvg]=\"typeOpt.icon\"></pry-icon>\n </label>\n </li>\n </ul>\n <button\n type=\"button\"\n class=\"a-btn a-btn--icon-text -link-like\"\n (click)=\"type$.next(undefined)\"\n [disabled]=\"!type$.getValue()\"\n [class.u-visually-hidden]=\"!type$.getValue()\"\n >\n <pry-icon [width]=\"15\" [height]=\"15\" iconSvg=\"delete\"></pry-icon>\n {{ '@pry.toolbox.catalog.filter.delete' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showTabs; else list\">\n <div class=\"o-accordion\" role=\"tablist\" aria-multiselectable=\"false\">\n <pry-accordion>\n <pry-accordion-item\n *ngFor=\"let category of categories; let index = index\"\n [item]=\"category\"\n [index]=\"index\"\n translationStringBase=\"@pry.restitution.catalogTabs.\"\n [length]=\"\n (category === 'model' ? (nonCustomWidgets$ | async)?.length : (customWidgets$ | async)?.length) ?? 0\n \"\n >\n <ul class=\"o-catalog__list\" role=\"list\" aria-live=\"polite\">\n <ng-container *ngIf=\"category === 'model'\">\n <pry-catalog-item\n *ngFor=\"let widget of nonCustomWidgets$ | async\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ng-container>\n <ng-container *ngIf=\"category === 'noModel'\">\n <pry-catalog-item\n *ngFor=\"let widget of customWidgets$ | async\"\n [translate]=\"false\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ng-container>\n </ul>\n </pry-accordion-item>\n </pry-accordion>\n </div>\n </ng-container>\n\n <ng-template #list>\n <ul class=\"o-catalog__list\" role=\"list\" aria-live=\"polite\">\n <pry-catalog-item\n *ngFor=\"let widget of filteredWidgets$ | async\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ul>\n </ng-template>\n </ng-template>\n\n <ng-template [ngIf]=\"selectedMode === mode.CONSULT\">\n <div class=\"o-catalog__create\">\n <button class=\"a-btn a-btn--secondary\" (click)=\"closeRestitution()\">\n {{ '@pry.restitution.cancel' | i18n }}\n </button>\n </div>\n\n <pry-restitution\n [selectedRestitution]=\"selectedRestitution\"\n [edit]=\"false\"\n (restitutionCreated)=\"closeRestitution()\"\n ></pry-restitution>\n </ng-template>\n\n <ng-template [ngIf]=\"selectedMode === mode.CREATION\">\n <div class=\"o-catalog__create\">\n <button class=\"a-btn a-btn--ghost\" (click)=\"selectMode(mode.CATALOG)\">\n {{ '@pry.restitution.cancel' | i18n }}\n </button>\n </div>\n\n <pry-restitution (restitutionCreated)=\"closeRestitution()\"></pry-restitution>\n </ng-template>\n</div>\n","export const enTranslations = {\n '@pry': {\n restitution: {\n restitution_type: 'Restitution type',\n data_type: 'Data type',\n graph_title: 'Title',\n description: 'Description',\n image: 'Image',\n close: 'Cancel',\n validate: 'Save',\n broadcast: 'Submit',\n view: 'View',\n create: 'Create restitution',\n cancel: 'Cancel',\n configure: 'Configure',\n visualize: 'Visualize',\n access: 'Do you want to give access / invite users?',\n public: 'Make this participatory survey accessible to all users in the restitution catalog',\n private: 'Invite certain users of your choice to respond to this participatory survey',\n choice: 'You can :',\n or: 'Or',\n create_title: 'Create a restitution',\n consult_title: 'Consult a restitution',\n search: 'Search',\n backToCatalog: 'Back to catalog',\n options: 'Restitution options',\n consult: 'Consult',\n catalog: 'Restitutions catalog',\n add_icon: 'Add this restitution on the presentation',\n selection: 'Selected data source(s):',\n select: 'Select one or more data source(s) :',\n selectDataSource: 'Select this data source',\n unselectDataSource: 'Unselect this data source',\n dataSource: 'Data',\n noDataSource: 'No data available',\n delete: 'Delete restitution',\n next: 'Next',\n lock: 'Private restitution',\n update: 'Edit information',\n cover: 'Image will cover the whole restitution card',\n noDataSourceSelected: 'No data source selected',\n catalogTabs: {\n model: 'Restitution models',\n noModel: 'Restitutions catalog'\n }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n restitution: {\n restitution_type: 'Type de restitution',\n data_type: 'Type de données',\n graph_title: 'Titre de la restitution',\n description: 'Description',\n image: 'Image',\n close: 'Annuler',\n validate: 'Valider',\n broadcast: 'Diffuser',\n more: 'Options',\n options: 'Options de la restitution',\n view: 'Consulter',\n create: 'Créer une restitution',\n cancel: 'Annuler',\n configure: 'Configurer',\n visualize: 'Visualiser',\n access: 'Vous souhaitez donner accès / inviter des utilisateurs ?',\n public: 'Rendre accessible cette restitution à tous les utilisateurs',\n private: 'Rendre accessible à certains utilisateurs de votre choix cette restitution',\n choice: 'Vous pouvez :',\n or: 'Ou',\n create_title: 'Créer une restitution',\n consult_title: 'Consulter une restitution',\n search: 'Rechercher',\n backToCatalog: 'Retour au catalogue',\n consult: 'Consulter',\n catalog: 'Catalogue des restitutions',\n add_icon: 'Ajouter cette restitution sur la présentation',\n selection: 'Source(s) de données sélectionnées:',\n select: 'Sélectionner une ou plusieurs source(s) de données :',\n selectDataSource: 'Sélectionner la source de données',\n unselectDataSource: 'Désélectionner la source de données',\n dataSource: 'Donnée(s)',\n noDataSource: 'Aucune donnée disponible',\n delete: 'Supprimer la restitution',\n next: 'Suivant',\n lock: 'Restitution privée',\n update: 'Modifier les informations',\n cover: \"L'image doit couvrir la carte de la restitution\",\n noDataSourceSelected: 'Aucune source de données sélectionnée',\n catalogTabs: {\n model: 'Modèles de restitution',\n noModel: 'Restitutions du catalogue'\n }\n }\n }\n};\n","import { CommonModule, DatePipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n PryCoreModule,\n PryDashboardModule,\n PryI18nModule,\n PryI18nService,\n PryIconModule,\n PryOverlayModule,\n PrySelectModule,\n PryShareModule\n} from '@provoly/dashboard';\nimport { PryCardModule } from '@provoly/dashboard/components/card';\nimport { PryCheckboxModule } from '@provoly/dashboard/components/checkbox';\nimport { PrySinceDateModule } from '@provoly/dashboard/components/sinceDate';\nimport { PryStepperModule } from '@provoly/dashboard/components/stepper';\nimport { PrySearchModule } from '@provoly/dashboard/search';\nimport { PryRestitutionCatalogComponent } from './components/restitution-catalog/restitution-catalog.component';\nimport { PryRestitutionListComponent } from './components/restitution-list/restitution-list.component';\nimport { PryRestitutionComponent } from './components/restitution/restitution.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { PryCatalogCssComponent } from './style/css.component';\nimport { PryRestitutionListItemComponent } from './components/restitution-list-item/restitution-list-item.component';\n\n@NgModule({\n providers: [DatePipe],\n declarations: [\n PryRestitutionListComponent,\n PryRestitutionComponent,\n PryCatalogCssComponent,\n PryRestitutionCatalogComponent,\n PryRestitutionListItemComponent\n ],\n imports: [\n CommonModule,\n PryCoreModule,\n PryIconModule,\n FormsModule,\n PryStepperModule,\n PrySelectModule,\n PryDashboardModule,\n PryShareModule,\n PrySearchModule,\n PryI18nModule,\n PryCardModule,\n PryCheckboxModule,\n PryOverlayModule,\n PrySinceDateModule\n ],\n exports: [\n PryRestitutionListComponent,\n PryRestitutionComponent,\n PryRestitutionCatalogComponent,\n PryRestitutionListItemComponent\n ]\n})\nexport class PryRestitutionModule {\n constructor(private pryTranslateService: PryI18nService) {\n this.pryTranslateService.addLangObject('fr', 'restitution', frTranslations);\n this.pryTranslateService.addLangObject('en', 'restitution', enTranslations);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i7.PryCatalogCssComponent","i1","i4","i5","i6.PryRestitutionComponent","i5.PryRestitutionComponent","i6.PryCatalogCssComponent","i7.PryRestitutionListItemComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAQa,sBAAsB,CAAA;+GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,2DAJvB,EAAE,EAAA,QAAA,EAAA,IAAA,EAA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,UAAA,EAAA,CAAA;kBAhChC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,SAAS,EAAE,CAAC,QAAQ,CAAC;AACrB,oBAAA,YAAY,EAAE;wBACZ,2BAA2B;wBAC3B,uBAAuB;wBACvB,sBAAsB;wBACtB,8BAA8B;wBAC9B,+BAA+B;AAChC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,WAAW;wBACX,gBAAgB;wBAChB,eAAe;wBACf,kBAAkB;wBAClB,cAAc;wBACd,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,2BAA2B;wBAC3B,uBAAuB;wBACvB,8BAA8B;wBAC9B,+BAA+B;AAChC,qBAAA;AACF,iBAAA,CAAA;;;ACzDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"provoly-dashboard-restitution.mjs","sources":["../../../../projects/provoly/dashboard/restitution/style/css.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution/restitution.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution/restitution.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-catalog/restitution-catalog.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-catalog/restitution-catalog.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-list-item/restitution-list-item.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-list-item/restitution-list-item.component.html","../../../../projects/provoly/dashboard/restitution/components/restitution-list/restitution-list.component.ts","../../../../projects/provoly/dashboard/restitution/components/restitution-list/restitution-list.component.html","../../../../projects/provoly/dashboard/restitution/i18n/en.translations.ts","../../../../projects/provoly/dashboard/restitution/i18n/fr.translations.ts","../../../../projects/provoly/dashboard/restitution/restitution.module.ts","../../../../projects/provoly/dashboard/restitution/provoly-dashboard-restitution.ts"],"sourcesContent":["import { Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'pry-restitution-css',\n template: '',\n styleUrls: ['./_o-restitution-list.scss', './_o-restitution.scss', './restitution-catalog.component.scss'],\n encapsulation: ViewEncapsulation.None\n})\nexport class PryCatalogCssComponent {}\n","import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n Class,\n ClassActions,\n ClassSelectors,\n ConfigActions,\n DataSource,\n DataSourceActions,\n DEFAULT_RESTITUTION_ICON_URL,\n FieldActions,\n LibraryTypes,\n PryVisibility,\n PryVisibilityType,\n SearchActions,\n SubscriptionnerDirective,\n ToolboxManifestService,\n ToolboxMenuService,\n Widget,\n WidgetManifest\n} from '@provoly/dashboard';\nimport { PryStepperComponent } from '@provoly/dashboard/components/stepper';\nimport { map, Observable, Subject } from 'rxjs';\nimport { v4 } from 'uuid';\nimport { RestitutionForm } from '../../model/restitution.model';\n\n@Component({\n selector: 'pry-restitution',\n templateUrl: './restitution.component.html'\n})\nexport class PryRestitutionComponent extends SubscriptionnerDirective implements OnInit {\n types$: Observable<{ icon: string; label: string; type: string; manifest: WidgetManifest }[]>;\n classes$: Observable<Class[]>;\n customManifest: WidgetManifest = {\n type: 'detail',\n layout: { x: 1, y: 1, width: 1, height: 1 },\n options: { itemIds: [] as string[] }\n };\n form: RestitutionForm = {\n selectedWidget: '',\n selectedDataSources: [],\n title: '',\n image: DEFAULT_RESTITUTION_ICON_URL,\n description: '',\n cover: false\n };\n visibility: PryVisibility = {\n type: PryVisibilityType.PRIVATE,\n users: []\n };\n openSettings$: Subject<void> = new Subject<void>();\n users$: Observable<any[]> | null = null;\n consultMode: boolean = false;\n @Input() selectedRestitution: Widget | null = null;\n @Input() edit: boolean = true;\n @Output() restitutionCreated = new EventEmitter<void>();\n widgetsList$: Observable<CatalogEntry[]>;\n type: LibraryTypes = LibraryTypes.ILLUSTRATION;\n @Input() isDataSourceSelected = false;\n @Input() bindId: any;\n image: string = DEFAULT_RESTITUTION_ICON_URL;\n widgetTypes: { icon: string; label: string; type: string; manifest: WidgetManifest }[] = [];\n\n constructor(\n private toolboxManifestService: ToolboxManifestService,\n private store: Store,\n private toolboxMenuService: ToolboxMenuService\n ) {\n super();\n this.store.dispatch(DataSourceActions.load());\n this.store.dispatch(ClassActions.load());\n this.store.dispatch(ConfigActions.loadCustomization());\n this.store.dispatch(FieldActions.load());\n\n this.types$ = this.toolboxMenuService.types$.pipe(\n map((type) => type.filter((filteredType) => filteredType.type !== 'detail'))\n );\n this.subscriptions.add(this.types$.subscribe((types) => (this.widgetTypes = types)));\n this.classes$ = this.store.select(ClassSelectors.classes);\n this.widgetsList$ = this.toolboxMenuService.menuStructure$.pipe(\n map((menu) =>\n menu\n .map((items) => [...items.sub.filter((s) => this.toolboxManifestService.isModel(s.type))])\n .reduce((acc, items) => [...acc, ...items], [])\n )\n );\n }\n\n ngOnInit(): void {\n if (this.selectedRestitution) {\n if (!this.edit) {\n this.consultMode = true;\n }\n this.customManifest = JSON.parse(this.selectedRestitution.content);\n if (Array.isArray(this.customManifest.datasource)) {\n this.customManifest.datasource.forEach((dataSource: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: dataSource,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-1'\n })\n );\n });\n } else {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: this.customManifest.datasource as string,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-2'\n })\n );\n }\n if (this.selectedRestitution.visibility) {\n this.visibility = this.selectedRestitution.visibility;\n }\n this.form.selectedDataSources.forEach((dataSource: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: dataSource,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.ngOnInit()-3'\n })\n );\n });\n this.customManifest = JSON.parse(this.selectedRestitution.content);\n this.customManifest.header = {\n datasourceSelection: false,\n parameters: true,\n window: false,\n maximize: false,\n addToCatalog: false,\n delete: false,\n changeSpot: false\n };\n this.form = {\n selectedWidget: this.customManifest.type,\n selectedDataSources: this.customManifest.datasource as string[],\n title: this.selectedRestitution.name,\n cover: this.selectedRestitution.cover,\n ...this.selectedRestitution\n };\n }\n this.image = this.selectedRestitution?.image ?? DEFAULT_RESTITUTION_ICON_URL;\n }\n\n cancel(stepper: PryStepperComponent) {\n this.form.selectedWidget = '';\n this.form.selectedDataSources = [];\n this.form.title = '';\n this.form.description = '';\n this.form.image = '';\n this.form.cover = false;\n if (this.consultMode || this.selectedRestitution) {\n this.restitutionCreated.emit();\n return;\n }\n this.prev(stepper);\n }\n\n datasourcesChanged($event: DataSource[]) {\n this.form.selectedDataSources = $event.map((ds) => ds.id);\n }\n\n submit(stepper: PryStepperComponent) {\n if (this.consultMode) {\n this.goNext(stepper);\n return;\n }\n\n const widgetType = this.widgetTypes.find((widgetType) => widgetType.type === this.form.selectedWidget);\n\n this.customManifest = {\n ...this.customManifest,\n type: this.form.selectedWidget,\n title: this.form.title,\n datasource: this.form.selectedDataSources,\n cover: this.form.cover ?? false,\n header: {\n datasourceSelection: false,\n parameters: true,\n window: false,\n maximize: false,\n addToCatalog: false,\n delete: false,\n changeSpot: false\n },\n options: {\n ...widgetType?.manifest.options,\n title: this.form.title\n }\n };\n this.form.selectedDataSources.forEach((nameQuery: string) => {\n this.store.dispatch(\n SearchActions.getDatasourceItems({\n id: nameQuery,\n excludeGeo: this.customManifest.type === 'map',\n from: 'PryRestitutionComponent.submit()'\n })\n );\n });\n this.goNext(stepper);\n setTimeout(() => {\n this.openSettings$.next();\n }, 150);\n }\n\n goNext(stepper: PryStepperComponent) {\n stepper.next();\n }\n\n prev(stepper: PryStepperComponent) {\n stepper.prev();\n }\n\n updateManifest($event: { widgetIndex: number; manifest: WidgetManifest }) {\n this.customManifest = $event.manifest;\n }\n\n lastStepCompleted() {\n this.form.image = this.image;\n if (this.edit) {\n this.store.dispatch(\n ConfigActions.saveWidget({\n widget: {\n id: this.selectedRestitution?.id ?? v4(),\n content: JSON.stringify(this.customManifest),\n name: this.form.title,\n description: this.form.description,\n image: this.form.image ?? '',\n visibility: this.visibility,\n datasource: this.form.selectedDataSources,\n cover: this.form.cover ?? false,\n modificationDate: ''\n }\n })\n );\n }\n this.store.dispatch(ConfigActions.loadWidgets());\n this.restitutionCreated.emit();\n }\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-restitution\">\n <h3 class=\"a-h2 o-restitution__title\">\n {{ (consultMode ? '@pry.restitution.consult_title' : '@pry.restitution.create_title') | i18n }}\n </h3>\n <pry-stepper #stepper [isConsultMode]=\"consultMode || edit\" (lastStepCompleted)=\"lastStepCompleted()\">\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.configure' | i18n }}</h4>\n <div>\n <div class=\"m-form-label-field\">\n <label for=\"restitution\" class=\"a-label\">{{ '@pry.restitution.restitution_type' | i18n }}</label>\n <pry-select\n id=\"restitution\"\n class=\"a-pry-select\"\n [itemsAsOption]=\"true\"\n [items]=\"types$ | async\"\n [labelTranslate]=\"true\"\n [(ngModel)]=\"form.selectedWidget\"\n [disabled]=\"consultMode\"\n bindIcon=\"icon\"\n bindLabel=\"label\"\n bindValue=\"type\"\n >\n </pry-select>\n </div>\n <div *ngIf=\"form.selectedWidget !== ''\">\n <div class=\"m-form-label-field\">\n <label for=\"graphTitle\" class=\"a-label\">{{ '@pry.restitution.graph_title' | i18n }}</label>\n <input\n name=\"title\"\n id=\"graphTitle\"\n class=\"a-form-field\"\n [(ngModel)]=\"form.title\"\n type=\"text\"\n [disabled]=\"consultMode\"\n maxlength=\"30\"\n ngDefaultControl\n />\n </div>\n <div class=\"m-form-label-field\">\n <label for=\"description\" class=\"a-label\">{{ '@pry.restitution.description' | i18n }}</label>\n <textarea\n name=\"description\"\n id=\"description\"\n class=\"a-form-field\"\n [(ngModel)]=\"form.description\"\n style=\"resize: none\"\n [disabled]=\"consultMode\"\n maxlength=\"255\"\n ngDefaultControl\n >\n </textarea>\n </div>\n <div class=\"m-form-label-field -width-full\">\n <label class=\"a-label\">{{ '@pry.presentation.form.image' | i18n }}</label>\n <div class=\"o-file-input\">\n <pry-select-image (changed)=\"image = $event\" [iconUrl]=\"image\" [mode]=\"type\"></pry-select-image>\n <pry-checkbox [(ngModel)]=\"form.cover\" name=\"cover\"> {{ '@pry.restitution.cover' | i18n }}</pry-checkbox>\n </div>\n </div>\n <div class=\"m-btn-group -space-evenly actions\">\n <button (click)=\"cancel(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button\n (click)=\"goNext(stepper)\"\n [disabled]=\"form.selectedWidget === '' || form.title.trim().length === 0\"\n class=\"a-btn a-btn--primary\"\n >\n {{ '@pry.restitution.validate' | i18n }}\n </button>\n </div>\n </div>\n </div>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.dataSource' | i18n }}</h4>\n <pry-datasource-selector\n (cancel)=\"prev(stepper)\"\n (validated)=\"submit(stepper)\"\n (datasourcesChanged)=\"datasourcesChanged($event)\"\n [datasourceIds]=\"form.selectedDataSources\"\n ></pry-datasource-selector>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.visualize' | i18n }}</h4>\n <div class=\"widget-instanciator\">\n <pry-widget-instanciator\n [standalone]=\"true\"\n [staticManifest]=\"customManifest\"\n [open$]=\"openSettings$\"\n (manifestModified)=\"updateManifest($event)\"\n ></pry-widget-instanciator>\n </div>\n <div class=\"m-btn-group -space-evenly actions\" *ngIf=\"!consultMode; else consult\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.validate' | i18n }}\n </button>\n </div>\n </pry-step>\n <pry-step>\n <h4 class=\"m-stepper-item__title\" *stepTitle>{{ '@pry.restitution.broadcast' | i18n }}</h4>\n <div class=\"\">\n <h3>{{ '@pry.restitution.access' | i18n }}</h3>\n {{ '@pry.restitution.choice' | i18n }}\n <ul>\n <li>\n {{ '@pry.restitution.public' | i18n }}\n </li>\n </ul>\n {{ '@pry.restitution.or' | i18n }}\n <ul>\n <li>\n {{ '@pry.restitution.private' | i18n }}\n </li>\n </ul>\n </div>\n <pry-share\n [(ngModel)]=\"visibility\"\n [users$]=\"users$\"\n labelProperty=\"name\"\n valueProperty=\"id\"\n [disabled]=\"consultMode\"\n ></pry-share>\n <div class=\"m-btn-group -space-evenly actions\" *ngIf=\"!consultMode; else consult\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.broadcast' | i18n }}\n </button>\n </div>\n </pry-step>\n </pry-stepper>\n</div>\n\n<ng-template #consult>\n <div class=\"m-btn-group -space-evenly actions\">\n <button (click)=\"prev(stepper)\" type=\"button\" class=\"a-btn a-btn--secondary\">\n {{ '@pry.restitution.close' | i18n }}\n </button>\n <button (click)=\"goNext(stepper)\" type=\"button\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.next' | i18n }}\n </button>\n </div>\n</ng-template>\n<ng-template #noDatasource>\n <p class=\"search-home__container-search\">{{ '@pry.restitution.noDataSource' | i18n }}</p>\n</ng-template>\n","import { Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';\nimport { Component, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n ConfigActions,\n ConfigSelectors, DashboardActions,\n ManifestDescription,\n PryVisibilityType,\n ViewMode,\n Widget\n} from '@provoly/dashboard';\nimport { BehaviorSubject, combineLatest, map, Observable } from 'rxjs';\nimport { TemplatePortal } from \"@angular/cdk/portal\";\n\n@Component({\n selector: 'pry-restitution-catalog',\n templateUrl: './restitution-catalog.component.html'\n})\nexport class PryRestitutionCatalogComponent {\n restitutions$: Observable<Widget[]>;\n search$ = new BehaviorSubject('');\n filteredRestitution$: Observable<Widget[]>;\n mode = ViewMode;\n selectedMode: ViewMode = ViewMode.CATALOG;\n selectedRestitution: Widget | null = null;\n restitution?: Widget;\n PryVisibilityType = PryVisibilityType;\n overlayRef?: OverlayRef;\n @ViewChild('modalActions', { read: TemplateRef }) templateActions!: TemplateRef<any>;\n\n constructor(private store: Store, protected overlay: Overlay, protected viewContainerRef: ViewContainerRef) {\n this.store.dispatch(ConfigActions.loadWidgets());\n this.store.dispatch(ConfigActions.getMapStyles());\n\n this.restitutions$ = this.store\n .select(ConfigSelectors.catalog)\n .pipe(\n map((restitutionList) =>\n [...restitutionList].sort((a, b) =>\n a.modificationDate ? b.modificationDate.localeCompare(a.modificationDate) : 1\n )\n )\n );\n this.filteredRestitution$ = combineLatest([this.restitutions$, this.search$]).pipe(\n map(([restitutions, search]) =>\n restitutions.filter(\n (restitution) => search.length === 0 || restitution.name.toLowerCase().includes(search.toLowerCase())\n )\n )\n );\n }\n\n selectMode(newMode: ViewMode) {\n this.selectedMode = newMode;\n }\n\n selectRestitution(restitution: Widget) {\n this.selectedRestitution = restitution;\n this.selectMode(this.mode.CONSULT);\n this.search$.next('');\n }\n\n closeRestitution($event: void) {\n this.selectedRestitution = null;\n this.selectMode(this.mode.CATALOG);\n }\n\n deleteRestitution(id: string) {\n this.store.dispatch(ConfigActions.confirmRestitutionDeletion({ id }));\n this.toggleModalActions()\n }\n\n editRestitution(restitution: Widget) {\n this.selectedRestitution = restitution;\n this.selectMode(ViewMode.EDITION);\n this.search$.next('');\n this.overlayRef?.dispose();\n this.overlayRef = undefined\n }\n\n toggleModalActions(restitution?: Widget ) {\n if (!this.overlayRef && restitution){\n this.selectedRestitution = restitution\n this.overlayRef = this.overlay.create(\n new OverlayConfig({\n hasBackdrop: true,\n panelClass: ['o-modal-wrapper'],\n backdropClass: 'backdrop'\n })\n );\n this.overlayRef.backdropClick().subscribe(() => this.toggleModalActions(restitution));\n this.overlayRef.attach(new TemplatePortal(this.templateActions, this.viewContainerRef));\n } else {\n this.overlayRef?.dispose();\n this.overlayRef = undefined\n this.selectedRestitution = null;\n }\n }\n\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-manifest-layout o-restitution-catalog\">\n <ng-template [ngIf]=\"selectedMode === mode.CATALOG\">\n <div class=\"o-manifest-layout__toolbox\">\n <button\n type=\"button\"\n (click)=\"selectMode(mode.CREATION)\"\n class=\"a-btn a-btn--primary a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.create_title' | i18n\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'create' }\"\n >\n {{ '@pry.restitution.create_title' | i18n }}\n </button>\n <div>\n <div class=\"o-catalog__search\">\n <label id=\"catalog-search-label\" for=\"catalog-search\" class=\"u-visually-hidden\">\n <span>{{ '@pry.toolbox.catalog.filter.name' | i18n }}</span>\n </label>\n <input\n id=\"catalog-search\"\n type=\"text\"\n class=\"a-form-field\"\n [placeholder]=\"'@pry.restitution.search' | i18n\"\n [ngModel]=\"search$ | async\"\n (ngModelChange)=\"this.search$.next($event)\"\n />\n\n <pry-icon iconSvg=\"search\" [width]=\"17\" [height]=\"17\"></pry-icon>\n </div>\n </div>\n </div>\n <div class=\"o-manifest-layout__content\">\n <h1 class=\"a-h1\">{{ '@pry.restitution.catalog' | i18n }}</h1>\n\n <div class=\"o-presentation-wrapper\">\n <ul class=\"o-presentation\">\n <li class=\"o-presentation__item\" *ngFor=\"let restitution of filteredRestitution$ | async\">\n <div class=\"o-presentation__item__header\">\n <ng-container *ngIf=\"restitution.visibility?.type === PryVisibilityType.PRIVATE\">\n <pry-icon\n iconSvg=\"private\"\n class=\"is-private a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.lock' | i18n\"\n [height]=\"17\"\n [width]=\"17\"\n ></pry-icon>\n </ng-container>\n <div class=\"a-tooltip\">\n <div class=\"o-presentation__item__image\">\n <img\n alt=\"\"\n [height]=\"restitution.cover ? 600 : 128\"\n [width]=\"restitution.cover ? 600 : 128\"\n [class.is-full-width]=\"restitution.cover\"\n [src]=\"restitution.image | getSecuredImage : [600, 600] | async\"\n class=\"pointer\"\n />\n </div>\n </div>\n <ng-container *ngIf=\"restitution.visibility?.type === PryVisibilityType.PRIVATE\">\n <div class=\"more-actions\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--more a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.more' | i18n\"\n (click)=\"toggleModalActions(restitution)\"\n >\n <pry-icon [height]=\"25\" [width]=\"25\" iconSvg=\"more_horiz\"></pry-icon>\n </button>\n </div>\n </ng-container>\n </div>\n <div class=\"o-presentation__item__txt\">\n <h3 class=\"a-h3\">{{ restitution.name }}</h3>\n <p class=\"a-p -date\">{{ restitution.modificationDate | sinceDate }}</p>\n </div>\n\n <div class=\"o-presentation__item__footer\">\n <button class=\"a-btn a-tooltip\" (click)=\"selectRestitution(restitution)\" [attr.data-tooltip]=\"'@pry.presentation.view' | i18n\">\n {{'@pry.restitution.view' | i18n}}</button>\n </div>\n </li>\n </ul>\n </div>\n </div>\n </ng-template>\n<ng-template #modalActions>\n <div class=\"o-modal\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"dialog presenation options\"\n *ngIf=\"selectedRestitution\">\n <div class=\"o-modal__top\">\n <div class=\"o-modal__top__title\">\n <h2 class=\"a-h2\" id=\"dialog_title\">{{ '@pry.restitution.options' | i18n }}</h2>\n </div>\n <div class=\"o-modal__top__close\">\n <button\n class=\"a-btn a-btn--icon-only\"\n (click)=\"toggleModalActions(selectedRestitution)\"\n >\n <pry-icon iconSvg=\"close\" [height]=\"35\" [width]=\"35\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.toolbox.close' | i18n }}</span>\n </button>\n </div>\n </div>\n <ul class=\"actions-list\">\n <li>\n <button\n type=\"button\"\n class=\"a-btn a-btn icon-only a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.update' | i18n\"\n (click)=\"editRestitution(selectedRestitution)\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'edit' }\"\n >\n <pry-icon iconSvg=\"edit\"></pry-icon>\n </button>\n </li>\n <li>\n <button\n type=\"button\"\n class=\"a-btn a-btn icon-only a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.delete' | i18n\"\n (click)=\"deleteRestitution(selectedRestitution.id)\"\n *pryAccess=\"{ module: 'dashboard', page: 'restitution', action: 'delete' }\"\n >\n <pry-icon iconSvg=\"delete\"></pry-icon>\n </button>\n </li>\n </ul>\n </div>\n</ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.CONSULT\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution\n [selectedRestitution]=\"selectedRestitution\"\n [edit]=\"false\"\n (restitutionCreated)=\"closeRestitution($event)\"\n class=\"restitution\"\n ></pry-restitution>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.CREATION\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution (restitutionCreated)=\"closeRestitution($event)\" class=\"restitution\"></pry-restitution>\n </div>\n </ng-template>\n <ng-template [ngIf]=\"selectedMode === mode.EDITION\">\n <div class=\"o-manifest-layout__toolbox\">\n <button type=\"button\" (click)=\"selectMode(mode.CATALOG)\" class=\"a-btn a-btn--primary\">\n {{ '@pry.restitution.backToCatalog' | i18n }}\n </button>\n </div>\n <div class=\"o-manifest-layout__content\">\n <pry-restitution\n (restitutionCreated)=\"closeRestitution($event)\"\n [selectedRestitution]=\"selectedRestitution\"\n class=\"restitution\"\n ></pry-restitution>\n </div>\n </ng-template>\n</div>\n","import { Component, EventEmitter, Input, Output } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n ConfigSelectors,\n DashboardActions,\n DashboardGridLayout,\n DashboardSelectors,\n PryVisibilityType,\n SubscriptionnerDirective,\n ToolboxManifestService,\n Widget\n} from '@provoly/dashboard';\nimport { map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-catalog-item',\n templateUrl: './restitution-list-item.component.html'\n})\nexport class PryRestitutionListItemComponent extends SubscriptionnerDirective {\n @Input() widget!: CatalogEntry;\n @Input() translate: boolean = true;\n @Output() selectRestitution = new EventEmitter<Widget>();\n catalog: Widget[] | undefined;\n automaticGridMode$: Observable<boolean>;\n automaticGridMode: boolean = false;\n PryVisibilityType = PryVisibilityType;\n\n constructor(private store: Store, private toolboxManifestService: ToolboxManifestService) {\n super();\n this.store.select(ConfigSelectors.catalog).subscribe((catalog: Widget[]) => (this.catalog = catalog));\n this.automaticGridMode$ = this.store\n .select(DashboardSelectors.gridLayout)\n .pipe(map((layout) => layout !== DashboardGridLayout.MANUAL));\n this.subscriptions.add(this.automaticGridMode$.subscribe((modeAuto) => (this.automaticGridMode = modeAuto)));\n }\n\n dragStart($event: DragEvent, type: string) {\n if (!this.automaticGridMode) {\n this.toolboxManifestService.dataTransfer($event, type);\n }\n }\n\n emitSelectedRestitution(catalogEntry: CatalogEntry) {\n if (catalogEntry.isCustom) {\n this.catalog?.forEach((widget: Widget) => {\n if (widget.id === catalogEntry.type) {\n this.selectRestitution.emit(widget);\n }\n });\n }\n }\n\n viewInDashboard(widget: CatalogEntry) {\n this.store.dispatch(DashboardActions.addWidgetToPresentation({ widgetType: widget.type }));\n }\n}\n","<li\n class=\"o-catalog__list__item\"\n [class.is-point]=\"automaticGridMode$ | async\"\n [draggable]=\"!(automaticGridMode$ | async)\"\n role=\"listitem\"\n aria-grabbed=\"false\"\n aria-haspopup=\"true\"\n tabindex=\"-1\"\n [title]=\"widget.description ?? widget.label | i18n : { warn: false }\"\n (dragstart)=\"dragStart($event, widget.type)\"\n>\n <ng-container *ngIf=\"automaticGridMode$ | async\">\n <button\n type=\"button\"\n class=\"a-btn a-btn--icon-only\"\n (click)=\"viewInDashboard(widget)\"\n [title]=\"'@pry.restitution.add_icon' | i18n\"\n >\n <pry-icon [width]=\"25\" [height]=\"25\" iconSvg=\"add_column\" class=\"o-catalog__list__icon\"></pry-icon>\n <span class=\"u-visually-hidden\">{{ '@pry.restitution.add_icon' | i18n }}</span>\n </button>\n </ng-container>\n <img\n [alt]=\"widget.label | i18n : { warn: false }\"\n [src]=\"widget.icon | getSecuredImage : [600, 600] | async\"\n [height]=\"widget.cover ? 600 : 53\"\n [width]=\"widget.cover ? 600 : 53\"\n [class.is-full-width]=\"widget.cover\"\n />\n <p class=\"o-catalog__list__item__libelle\" *ngIf=\"widget.isCustom; else translate\">{{ widget.label }}</p>\n <ng-template #translate>\n <p class=\"o-catalog__list__item__libelle\">{{ widget.label | i18n : { warn: false } }}</p>\n </ng-template>\n <ng-container *ngIf=\"widget.visibility?.type === PryVisibilityType.PRIVATE\">\n <pry-icon\n iconSvg=\"private\"\n class=\"is-private a-tooltip\"\n [attr.data-tooltip]=\"'@pry.restitution.lock' | i18n\"\n [height]=\"17\"\n [width]=\"17\"\n ></pry-icon>\n </ng-container>\n <div class=\"o-catalog__list__item__action\" *ngIf=\"widget.isCustom\">\n <button type=\"button\" class=\"a-btn a-btn--ghost\" (click)=\"emitSelectedRestitution(widget)\">\n {{ '@pry.restitution.view' | i18n }}\n </button>\n </div>\n</li>\n","import { Component, Input } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport {\n CatalogEntry,\n ConfigActions,\n PryI18nService,\n PryVisibilityType,\n SubscriptionnerDirective,\n ToolboxManifestService,\n ToolboxMenuService,\n ViewMode,\n Widget\n} from '@provoly/dashboard';\nimport { BehaviorSubject, combineLatest, map, Observable } from 'rxjs';\n\n@Component({\n selector: 'pry-catalog',\n templateUrl: './restitution-list.component.html'\n})\nexport class PryRestitutionListComponent extends SubscriptionnerDirective {\n @Input() showTabs = true;\n @Input()\n get customModels(): string[] {\n return this._customModels;\n }\n set customModels(models: string[]) {\n this._customModels = ['detail', 'iframe', ...models];\n }\n private _customModels = ['detail', 'iframe'];\n search$ = new BehaviorSubject('');\n type$ = new BehaviorSubject<undefined | string>(undefined);\n filteredWidgets$: Observable<CatalogEntry[]>;\n nonCustomWidgets$: Observable<CatalogEntry[]>;\n customWidgets$: Observable<CatalogEntry[]>;\n types$: Observable<{ icon: string; label: string; type: string }[]>;\n selectedRestitution: Widget | null = null;\n mode = ViewMode;\n selectedMode: ViewMode = ViewMode.CATALOG;\n categories = ['model', 'noModel'];\n PryVisibilityType = PryVisibilityType;\n\n constructor(\n private toolboxMenuService: ToolboxMenuService,\n private translateService: PryI18nService,\n private toolboxManifestService: ToolboxManifestService,\n private store: Store\n ) {\n super();\n this.store.dispatch(ConfigActions.loadWidgets());\n this.types$ = this.toolboxMenuService.types$;\n this.filteredWidgets$ = combineLatest([this.toolboxMenuService.menuList$, this.search$, this.type$]).pipe(\n map(([widgets, search, type]) =>\n widgets.filter(\n (widget) =>\n (search.length === 0 ||\n this.translateService.instant(widget.label).toLocaleLowerCase().includes(search.toLocaleLowerCase())) &&\n (!type || this.toolboxManifestService.get(widget.type).type === type)\n )\n )\n );\n this.nonCustomWidgets$ = this.filteredWidgets$.pipe(\n map((widgets) =>\n widgets.filter(\n (widget) => this.toolboxManifestService.isModel(widget.type) || this.customModels.includes(widget.type)\n )\n )\n );\n this.customWidgets$ = this.filteredWidgets$.pipe(\n map((widgets) =>\n widgets.filter(\n (widget) => !this.toolboxManifestService.isModel(widget.type) && !this.customModels.includes(widget.type)\n )\n )\n );\n }\n\n selectMode(newMode: ViewMode) {\n this.selectedMode = newMode;\n }\n\n selectRestitution($event: Widget) {\n this.selectedRestitution = $event;\n this.selectMode(ViewMode.CONSULT);\n }\n\n closeRestitution() {\n this.selectedRestitution = null;\n this.selectMode(this.mode.CATALOG);\n }\n}\n","<pry-restitution-css></pry-restitution-css>\n<div class=\"o-catalog\">\n <ng-template [ngIf]=\"selectedMode === mode.CATALOG\">\n <h2 class=\"a-h2\">{{ '@pry.restitution.catalog' | i18n }}</h2>\n <div class=\"o-catalog__filters\">\n <div class=\"o-catalog__filters__by-name\">\n <label id=\"catalog-search-label\" for=\"catalog-search\" class=\"a-label u-visually-hidden\">\n <span>{{ '@pry.toolbox.catalog.filter.name' | i18n }}</span>\n </label>\n <pry-icon iconSvg=\"search\" [width]=\"17\" [height]=\"17\"></pry-icon>\n <input\n id=\"catalog-search\"\n type=\"text\"\n class=\"a-form-field\"\n [placeholder]=\"'@pry.action.search' | i18n\"\n [ngModel]=\"search$ | async\"\n (ngModelChange)=\"this.search$.next($event)\"\n />\n </div>\n <label class=\"a-label\">{{ '@pry.action.filterByType' | i18n }}</label>\n <div class=\"o-catalog__filters__by-type\">\n <ul class=\"o-catalog__filters__by-type__list\">\n <li *ngFor=\"let typeOpt of types$ | async\">\n <input\n type=\"radio\"\n class=\"a-form-field u-sr-only\"\n name=\"catalog-filter\"\n id=\"catalog-button-{{ typeOpt.type }}\"\n [checked]=\"typeOpt.type === (type$ | async)\"\n (change)=\"type$.next(typeOpt.type)\"\n />\n <label\n class=\"a-label\"\n id=\"catalog-button-label-{{ typeOpt.type }}\"\n for=\"catalog-button-{{ typeOpt.type }}\"\n [title]=\"typeOpt.label | i18n : { warn: false }\"\n >\n <span class=\"u-sr-only\">{{ typeOpt.label | i18n : { warn: false } }} </span>\n <pry-icon [width]=\"18\" [height]=\"18\" [iconSvg]=\"typeOpt.icon\"></pry-icon>\n </label>\n </li>\n </ul>\n <button\n type=\"button\"\n class=\"a-btn a-btn--icon-text -link-like\"\n (click)=\"type$.next(undefined)\"\n [disabled]=\"!type$.getValue()\"\n [class.u-visually-hidden]=\"!type$.getValue()\"\n >\n <pry-icon [width]=\"15\" [height]=\"15\" iconSvg=\"delete\"></pry-icon>\n {{ '@pry.toolbox.catalog.filter.delete' | i18n }}\n </button>\n </div>\n </div>\n <ng-container *ngIf=\"showTabs; else list\">\n <div class=\"o-accordion\" role=\"tablist\" aria-multiselectable=\"false\">\n <pry-accordion>\n <pry-accordion-item\n *ngFor=\"let category of categories; let index = index\"\n [item]=\"category\"\n [index]=\"index\"\n translationStringBase=\"@pry.restitution.catalogTabs.\"\n [length]=\"\n (category === 'model' ? (nonCustomWidgets$ | async)?.length : (customWidgets$ | async)?.length) ?? 0\n \"\n >\n <ul class=\"o-catalog__list\" role=\"list\" aria-live=\"polite\">\n <ng-container *ngIf=\"category === 'model'\">\n <pry-catalog-item\n *ngFor=\"let widget of nonCustomWidgets$ | async\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ng-container>\n <ng-container *ngIf=\"category === 'noModel'\">\n <pry-catalog-item\n *ngFor=\"let widget of customWidgets$ | async\"\n [translate]=\"false\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ng-container>\n </ul>\n </pry-accordion-item>\n </pry-accordion>\n </div>\n </ng-container>\n\n <ng-template #list>\n <ul class=\"o-catalog__list\" role=\"list\" aria-live=\"polite\">\n <pry-catalog-item\n *ngFor=\"let widget of filteredWidgets$ | async\"\n [widget]=\"widget\"\n (selectRestitution)=\"selectRestitution($event)\"\n ></pry-catalog-item>\n </ul>\n </ng-template>\n </ng-template>\n\n <ng-template [ngIf]=\"selectedMode === mode.CONSULT\">\n <div class=\"o-catalog__create\">\n <button class=\"a-btn a-btn--secondary\" (click)=\"closeRestitution()\">\n {{ '@pry.restitution.cancel' | i18n }}\n </button>\n </div>\n\n <pry-restitution\n [selectedRestitution]=\"selectedRestitution\"\n [edit]=\"false\"\n (restitutionCreated)=\"closeRestitution()\"\n ></pry-restitution>\n </ng-template>\n\n <ng-template [ngIf]=\"selectedMode === mode.CREATION\">\n <div class=\"o-catalog__create\">\n <button class=\"a-btn a-btn--ghost\" (click)=\"selectMode(mode.CATALOG)\">\n {{ '@pry.restitution.cancel' | i18n }}\n </button>\n </div>\n\n <pry-restitution (restitutionCreated)=\"closeRestitution()\"></pry-restitution>\n </ng-template>\n</div>\n","export const enTranslations = {\n '@pry': {\n restitution: {\n restitution_type: 'Restitution type',\n data_type: 'Data type',\n graph_title: 'Title',\n description: 'Description',\n image: 'Image',\n close: 'Cancel',\n validate: 'Save',\n broadcast: 'Submit',\n view: 'View',\n create: 'Create restitution',\n cancel: 'Cancel',\n configure: 'Configure',\n visualize: 'Visualize',\n access: 'Do you want to give access / invite users?',\n public: 'Make this participatory survey accessible to all users in the restitution catalog',\n private: 'Invite certain users of your choice to respond to this participatory survey',\n choice: 'You can :',\n or: 'Or',\n create_title: 'Create a restitution',\n consult_title: 'Consult a restitution',\n search: 'Search',\n backToCatalog: 'Back to catalog',\n options: 'Restitution options',\n consult: 'Consult',\n catalog: 'Restitutions catalog',\n add_icon: 'Add this restitution on the presentation',\n selection: 'Selected data source(s):',\n select: 'Select one or more data source(s) :',\n selectDataSource: 'Select this data source',\n unselectDataSource: 'Unselect this data source',\n dataSource: 'Data',\n noDataSource: 'No data available',\n delete: 'Delete restitution',\n next: 'Next',\n lock: 'Private restitution',\n update: 'Edit information',\n cover: 'Image will cover the whole restitution card',\n noDataSourceSelected: 'No data source selected',\n catalogTabs: {\n model: 'Restitution models',\n noModel: 'Restitutions catalog'\n }\n }\n }\n};\n","export const frTranslations = {\n '@pry': {\n restitution: {\n restitution_type: 'Type de restitution',\n data_type: 'Type de données',\n graph_title: 'Titre de la restitution',\n description: 'Description',\n image: 'Image',\n close: 'Annuler',\n validate: 'Valider',\n broadcast: 'Diffuser',\n more: 'Options',\n options: 'Options de la restitution',\n view: 'Consulter',\n create: 'Créer une restitution',\n cancel: 'Annuler',\n configure: 'Configurer',\n visualize: 'Visualiser',\n access: 'Vous souhaitez donner accès / inviter des utilisateurs ?',\n public: 'Rendre accessible cette restitution à tous les utilisateurs',\n private: 'Rendre accessible à certains utilisateurs de votre choix cette restitution',\n choice: 'Vous pouvez :',\n or: 'Ou',\n create_title: 'Créer une restitution',\n consult_title: 'Consulter une restitution',\n search: 'Rechercher',\n backToCatalog: 'Retour au catalogue',\n consult: 'Consulter',\n catalog: 'Catalogue des restitutions',\n add_icon: 'Ajouter cette restitution sur la présentation',\n selection: 'Source(s) de données sélectionnées:',\n select: 'Sélectionner une ou plusieurs source(s) de données :',\n selectDataSource: 'Sélectionner la source de données',\n unselectDataSource: 'Désélectionner la source de données',\n dataSource: 'Donnée(s)',\n noDataSource: 'Aucune donnée disponible',\n delete: 'Supprimer la restitution',\n next: 'Suivant',\n lock: 'Restitution privée',\n update: 'Modifier les informations',\n cover: \"L'image doit couvrir la carte de la restitution\",\n noDataSourceSelected: 'Aucune source de données sélectionnée',\n catalogTabs: {\n model: 'Modèles de restitution',\n noModel: 'Restitutions du catalogue'\n }\n }\n }\n};\n","import { CommonModule, DatePipe } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n PryCoreModule,\n PryDashboardModule,\n PryI18nModule,\n PryI18nService,\n PryIconModule,\n PryOverlayModule,\n PrySelectModule,\n PryShareModule\n} from '@provoly/dashboard';\nimport { PryCardModule } from '@provoly/dashboard/components/card';\nimport { PryCheckboxModule } from '@provoly/dashboard/components/checkbox';\nimport { PrySinceDateModule } from '@provoly/dashboard/components/sinceDate';\nimport { PryStepperModule } from '@provoly/dashboard/components/stepper';\nimport { PrySearchModule } from '@provoly/dashboard/search';\nimport { PryRestitutionCatalogComponent } from './components/restitution-catalog/restitution-catalog.component';\nimport { PryRestitutionListComponent } from './components/restitution-list/restitution-list.component';\nimport { PryRestitutionComponent } from './components/restitution/restitution.component';\nimport { enTranslations } from './i18n/en.translations';\nimport { frTranslations } from './i18n/fr.translations';\nimport { PryCatalogCssComponent } from './style/css.component';\nimport { PryRestitutionListItemComponent } from './components/restitution-list-item/restitution-list-item.component';\n\n@NgModule({\n providers: [DatePipe],\n declarations: [\n PryRestitutionListComponent,\n PryRestitutionComponent,\n PryCatalogCssComponent,\n PryRestitutionCatalogComponent,\n PryRestitutionListItemComponent\n ],\n imports: [\n CommonModule,\n PryCoreModule,\n PryIconModule,\n FormsModule,\n PryStepperModule,\n PrySelectModule,\n PryDashboardModule,\n PryShareModule,\n PrySearchModule,\n PryI18nModule,\n PryCardModule,\n PryCheckboxModule,\n PryOverlayModule,\n PrySinceDateModule\n ],\n exports: [\n PryRestitutionListComponent,\n PryRestitutionComponent,\n PryRestitutionCatalogComponent,\n PryRestitutionListItemComponent\n ]\n})\nexport class PryRestitutionModule {\n constructor(private pryTranslateService: PryI18nService) {\n this.pryTranslateService.addLangObject('fr', 'restitution', frTranslations);\n this.pryTranslateService.addLangObject('en', 'restitution', enTranslations);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i7.PryCatalogCssComponent","i1","i4","i5","i6.PryRestitutionComponent","i5.PryRestitutionComponent","i6.PryCatalogCssComponent","i7.PryRestitutionListItemComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;MAQa,sBAAsB,CAAA;+GAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,2DAJvB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,ghFAAA,EAAA,+iBAAA,EAAA,6rIAAA,CAAA,EAAA,aAAA,EAAA,EAAA,CAAA,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,CAAC;AACrB,oBAAA,YAAY,EAAE;wBACZ,2BAA2B;wBAC3B,uBAAuB;wBACvB,sBAAsB;wBACtB,8BAA8B;wBAC9B,+BAA+B;AAChC,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,WAAW;wBACX,gBAAgB;wBAChB,eAAe;wBACf,kBAAkB;wBAClB,cAAc;wBACd,eAAe;wBACf,aAAa;wBACb,aAAa;wBACb,iBAAiB;wBACjB,gBAAgB;wBAChB,kBAAkB;AACnB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,2BAA2B;wBAC3B,uBAAuB;wBACvB,8BAA8B;wBAC9B,+BAA+B;AAChC,qBAAA;AACF,iBAAA,CAAA;;;ACzDD;;AAEG;;;;"}
|
|
@@ -3718,7 +3718,6 @@ const DashboardActions = {
|
|
|
3718
3718
|
updateManifest: createAction('[Dashboard] (bus) updating manifest', props()),
|
|
3719
3719
|
updateManifestAfterFetch: createAction('[Dashboard] (bus) updating manifest after fetch', props()),
|
|
3720
3720
|
updateManifestWithoutActivation: createAction('[Dashboard] (bus) updating manifest but do not activate it', props()),
|
|
3721
|
-
updateManifestAfterResize: createAction('[Dashboard] (bus) updating manifest after resize', props()),
|
|
3722
3721
|
updateManifestAfterTenantJoin: createAction('[Dashboard] (bus) updating manifest after tenant join', props()),
|
|
3723
3722
|
updateManifestAfterTenantLeave: createAction('[Dashboard] (bus) updating manifest after tenant leave', props()),
|
|
3724
3723
|
selectPresentation: createAction('[Dashboard] (bus) selectPresentation', props()),
|
|
@@ -8103,8 +8102,7 @@ class DashboardComponent extends SubscriptionnerDirective {
|
|
|
8103
8102
|
? this.manifest.grid.gap || DEFAULT_GAP_PX
|
|
8104
8103
|
: DEFAULT_GAP_PX
|
|
8105
8104
|
: 0;
|
|
8106
|
-
this.params.cellHeight =
|
|
8107
|
-
(this.params.gridHeight - (this.params.rows - 1) * this.params.gridGap) / this.params.rows;
|
|
8105
|
+
this.params.cellHeight = Math.max(0, (this.params.gridHeight - (this.params.rows - 1) * this.params.gridGap) / this.params.rows);
|
|
8108
8106
|
this.params.cellWidth =
|
|
8109
8107
|
(this.params.gridWidth - (this.params.columns - 1) * this.params.gridGap) / this.params.columns;
|
|
8110
8108
|
this.store.dispatch(DashboardActions.updateDashboardParams({ params: this.params }));
|
|
@@ -9625,9 +9623,9 @@ class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
9625
9623
|
.flexibleConnectedTo(this.togglePanel)
|
|
9626
9624
|
.withPositions([
|
|
9627
9625
|
{
|
|
9628
|
-
originX: '
|
|
9626
|
+
originX: 'end',
|
|
9629
9627
|
originY: 'bottom',
|
|
9630
|
-
overlayX: '
|
|
9628
|
+
overlayX: 'end',
|
|
9631
9629
|
overlayY: 'top'
|
|
9632
9630
|
}
|
|
9633
9631
|
])
|
|
@@ -9635,6 +9633,10 @@ class PryWidgetHeaderComponent extends SubscriptionnerDirective {
|
|
|
9635
9633
|
this.store.dispatch(ConfigActions.addingOverlay({ id: this.constructor.name + '-menu' }));
|
|
9636
9634
|
this.menuRef.backdropClick().subscribe((_) => this.menuOpen());
|
|
9637
9635
|
this.menuRef.attach(new TemplatePortal(this.overlayMenu, this.viewContainerRef));
|
|
9636
|
+
const contextMenu = document.querySelector('div.m-context-menu');
|
|
9637
|
+
const rect = this.togglePanel?.nativeElement.getBoundingClientRect();
|
|
9638
|
+
if (!!contextMenu && !!rect)
|
|
9639
|
+
contextMenu.style.left = (rect?.left ?? 0) - (this.menuList?.nativeElement?.clientWidth ?? 0) - 200 + 'px';
|
|
9638
9640
|
setTimeout(() => {
|
|
9639
9641
|
this.selectedItem = this.menuList?.nativeElement?.firstElementChild;
|
|
9640
9642
|
if (this.selectedItem) {
|
|
@@ -10590,26 +10592,12 @@ class DashboardEffects {
|
|
|
10590
10592
|
}
|
|
10591
10593
|
})));
|
|
10592
10594
|
this.sendAggregatesEvent$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.triggerAggregate), filter$1((action) => action.id !== DEFAULT_NAMED_QUERY_ID && action.id !== EXPLORE_NAMED_QUERY_ID), tap((action) => window.dispatchEvent(new CustomEvent('datasourceRefresh', { detail: action.id })))), { dispatch: false });
|
|
10593
|
-
this.
|
|
10594
|
-
// forward new manifest after any of these types of actions
|
|
10595
|
-
ofType(DashboardActions.updateDashboardManifest, DashboardActions.moveWidget, DashboardActions.updateWidgetManifest),
|
|
10596
|
-
// @ts-ignore
|
|
10597
|
-
filter$1((action) => !action.sender), withLatestFrom(this.store.select(DashboardSelectors.globalManifest), this.store.select(DashboardSelectors.tenants), this.store.select(DashboardSelectors.selectedItemIds)), map$1(([action, manifest, tenants, selectedIds]) => {
|
|
10598
|
-
const params = {
|
|
10599
|
-
manifest,
|
|
10600
|
-
selectedIds
|
|
10601
|
-
};
|
|
10602
|
-
if (!!tenants && tenants.length > 1) {
|
|
10603
|
-
params.tenants = tenants;
|
|
10604
|
-
}
|
|
10605
|
-
return DashboardActions.updateManifestAfterResize(params);
|
|
10606
|
-
})));
|
|
10607
|
-
this.startMissingViewAfterViewUpdate$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.updateManifest, DashboardActions.updateManifestAfterFetch, DashboardActions.updateManifestAfterResize, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.explore, DashboardActions.detail, DashboardActions.restoreInitialManifest, DashboardActions.createTab), withLatestFrom(this.store.select(DashboardSelectors.rank)), filter$1(([action, rank]) => rank === 0), mergeMap$1((action) => [
|
|
10595
|
+
this.startMissingViewAfterViewUpdate$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.updateManifest, DashboardActions.updateManifestAfterFetch, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.explore, DashboardActions.detail, DashboardActions.restoreInitialManifest, DashboardActions.createTab), withLatestFrom(this.store.select(DashboardSelectors.rank)), filter$1(([action, rank]) => rank === 0), mergeMap$1((action) => [
|
|
10608
10596
|
DashboardActions.startingMissingViews(),
|
|
10609
10597
|
DashboardActions.assertResultSets({}),
|
|
10610
10598
|
DashboardActions.solveCollisions()
|
|
10611
10599
|
])));
|
|
10612
|
-
this.updateTitle$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.updateManifest, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterFetch, DashboardActions.
|
|
10600
|
+
this.updateTitle$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.updateManifest, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterFetch, DashboardActions.declareSenderId), withLatestFrom(this.store.select(DashboardSelectors.rank)), tap(([action, rank]) => {
|
|
10613
10601
|
this.titleService.changeTitle();
|
|
10614
10602
|
})), { dispatch: false });
|
|
10615
10603
|
this.openOther$ = createEffect(() => this.actions$.pipe(ofType(DashboardActions.startingMissingViews), withLatestFrom(this.store.select(DashboardSelectors.rank), this.store.select(DashboardSelectors.tenants), this.store.select(DashboardSelectors.globalManifest)), debounceTime$1(1000), filter$1(([action, rank, tenants, manifest]) => rank === 0), tap(([action, rank, tenants, manifest]) => {
|
|
@@ -10913,7 +10901,7 @@ const internalReducer = createReducer(dashboardInitialState, on(DashboardActions
|
|
|
10913
10901
|
sender: action.sender,
|
|
10914
10902
|
tenants: state.manifests.tenants.length === 0 ? action.tenants : state.manifests.tenants
|
|
10915
10903
|
}
|
|
10916
|
-
})), on(DashboardActions.updateManifest, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterFetch, DashboardActions.
|
|
10904
|
+
})), on(DashboardActions.updateManifest, DashboardActions.updateManifestAfterTenantJoin, DashboardActions.updateManifestAfterTenantLeave, DashboardActions.updateManifestAfterFetch, DashboardActions.updateManifestWithoutActivation, (state, action) => {
|
|
10917
10905
|
// @ts-ignore
|
|
10918
10906
|
if (!!action.sender && !state.manifests.tenants.find((tenant) => tenant === action.sender) && !action.joining) {
|
|
10919
10907
|
// ignore manifest updates from tenants that have not joined
|