From ab9f2a9a2d739abc1400f8a07d5b61fa6f1a3625 Mon Sep 17 00:00:00 2001 From: neodigm <3151842+neodigm@users.noreply.github.com> Date: Mon, 16 Oct 2023 16:56:48 -0500 Subject: [PATCH] picnicLifeCycle --- dist/neodigm55__v3_1.css | 2 +- dist/neodigm55__v3_1.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dist/neodigm55__v3_1.css b/dist/neodigm55__v3_1.css index 395ecd4..6b7b506 100644 --- a/dist/neodigm55__v3_1.css +++ b/dist/neodigm55__v3_1.css @@ -963,7 +963,7 @@ neodigm-picnic[data-n55-theme='party'] DIV{ border-color: var( --neodigm-theme-p [data-n55-ampm-theme="dark"] neodigm-picnic > header > div { background-color: var( --neodigm-theme-night-alt )} [data-n55-ampm-theme="dark"] neodigm-picnic div { background-color: var( --neodigm-theme-night )} -[data-n55-ampm-theme="light"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-night-alt ) } +[data-n55-ampm-theme="light"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-brand-alt ) } [data-n55-ampm-theme="dark"] neodigm-picnic [data-n55-picnic-select='true'] { background-color: var( --neodigm-theme-brand ) } /* Neodigm Picnic End */ \ No newline at end of file diff --git a/dist/neodigm55__v3_1.js b/dist/neodigm55__v3_1.js index 6340084..5400e8b 100644 --- a/dist/neodigm55__v3_1.js +++ b/dist/neodigm55__v3_1.js @@ -1637,15 +1637,16 @@ class NeodigmPicnic { } select( elRow ){ // TODO fire callback let elRowContr = elRow.parentElement - if( elRowContr ){ // TODO multiselect + if( elRowContr ){ // Unselect all - TODO multiselect elRowContr = elRowContr.querySelector( "[data-n55-picnic-select='true']" ) if( elRowContr ) elRowContr.dataset.n55PicnicSelect = "false" } - + if(this.fOnRowClick[_sId]) this.fOnRowClick[_sId]( this.sId ) + if(this.fOnRowClick["def"]) this.fOnRowClick["def"]( this.sId ) + if( neodigmOpt.N55_GTM_DL_PICNIC ) neodigmUtils.doDataLayer( neodigmOpt.N55_GTM_DL_PICNIC, _sId ) elRow.dataset.n55PicnicSelect = "true" -console.log( " ~~~ elRow | " , elRow) } - setOnRowClick ( _f, id="def" ){ this.fOnRowClick[ id ] = _f; return this; } + setOnRowClick( _f, id="def" ){ this.fOnRowClick[ id ] = _f; return this; } } let neodigmPicnic = new NeodigmPicnic( document, ["neodigm-picnic"] )