@plusscommunities/pluss-core-web 1.4.15-beta.0 → 1.4.17-beta.0
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/dist/index.cjs.js +46 -14
- package/dist/index.esm.js +46 -14
- package/dist/index.umd.js +46 -14
- package/package.json +1 -1
- package/src/components/AudienceSelector.js +8 -4
- package/src/components/OptionsSection.js +14 -2
- package/src/components/svg-icons.json +2 -2
- package/src/helper/site/getSiteLevelFromState.js +6 -0
- package/src/session.js +10 -2
package/dist/index.cjs.js
CHANGED
|
@@ -455,9 +455,11 @@ var getApiError = function getApiError(error) {
|
|
|
455
455
|
// }
|
|
456
456
|
// };
|
|
457
457
|
|
|
458
|
-
var isTVEnabled = function isTVEnabled(interfaces) {
|
|
458
|
+
var isTVEnabled = function isTVEnabled(interfaces, feature) {
|
|
459
459
|
return ___default['default'].some(interfaces, function (t) {
|
|
460
|
-
return t.Type === 'TV'
|
|
460
|
+
return t.Type === 'TV' && (!feature || ___default['default'].some(t.Settings.widgets, function (f) {
|
|
461
|
+
return f.key === feature;
|
|
462
|
+
}));
|
|
461
463
|
});
|
|
462
464
|
};
|
|
463
465
|
|
|
@@ -818,7 +820,10 @@ var getSiteLevelFromState = function getSiteLevelFromState(state) {
|
|
|
818
820
|
hasTV: true,
|
|
819
821
|
hasKiosk: false,
|
|
820
822
|
hasPayments: true,
|
|
821
|
-
hasLinkedContent: true
|
|
823
|
+
hasLinkedContent: true,
|
|
824
|
+
hasPersonalNotes: true,
|
|
825
|
+
hasEmergencyContacts: true,
|
|
826
|
+
hasPersonalDocuments: true
|
|
822
827
|
};
|
|
823
828
|
|
|
824
829
|
switch (siteType) {
|
|
@@ -827,6 +832,9 @@ var getSiteLevelFromState = function getSiteLevelFromState(state) {
|
|
|
827
832
|
siteConfig.hasTV = false;
|
|
828
833
|
siteConfig.hasPayments = false;
|
|
829
834
|
siteConfig.hasLinkedContent = false;
|
|
835
|
+
siteConfig.hasPersonalNotes = false;
|
|
836
|
+
siteConfig.hasEmergencyContacts = false;
|
|
837
|
+
siteConfig.hasPersonalDocuments = false;
|
|
830
838
|
break;
|
|
831
839
|
}
|
|
832
840
|
|
|
@@ -3248,9 +3256,9 @@ var close = {
|
|
|
3248
3256
|
]
|
|
3249
3257
|
};
|
|
3250
3258
|
var check = {
|
|
3251
|
-
viewBox: "0 0
|
|
3259
|
+
viewBox: "0 0 48 48",
|
|
3252
3260
|
paths: [
|
|
3253
|
-
"
|
|
3261
|
+
"M18.9 35.7 7.7 24.5l2.15-2.15 9.05 9.05 19.2-19.2 2.15 2.15Z"
|
|
3254
3262
|
]
|
|
3255
3263
|
};
|
|
3256
3264
|
var contractor = {
|
|
@@ -9563,11 +9571,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9563
9571
|
key: "componentDidMount",
|
|
9564
9572
|
value: function componentDidMount() {
|
|
9565
9573
|
var _this$props2 = this.props,
|
|
9566
|
-
disallowUserType = _this$props2.disallowUserType,
|
|
9567
9574
|
custom = _this$props2.custom,
|
|
9568
9575
|
disallowSingleUsers = _this$props2.disallowSingleUsers,
|
|
9569
9576
|
allowTags = _this$props2.allowTags;
|
|
9570
|
-
|
|
9577
|
+
this.getUserTypes();
|
|
9571
9578
|
if (!disallowSingleUsers) this.getUsers();
|
|
9572
9579
|
if (allowTags || custom) this.getUserTags();
|
|
9573
9580
|
}
|
|
@@ -9806,10 +9813,19 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9806
9813
|
e.Title = "".concat(shortName, " ").concat(e.Title);
|
|
9807
9814
|
}
|
|
9808
9815
|
});
|
|
9809
|
-
|
|
9810
|
-
_this7.setState({
|
|
9816
|
+
var newState = {
|
|
9811
9817
|
types: res.data
|
|
9812
|
-
}
|
|
9818
|
+
};
|
|
9819
|
+
|
|
9820
|
+
if (!___default['default'].some(res.data, function (t) {
|
|
9821
|
+
return t.category === 'family';
|
|
9822
|
+
})) {
|
|
9823
|
+
newState.categories = ___default['default'].filter(_this7.state.categories, function (c) {
|
|
9824
|
+
return c.Key !== 'family';
|
|
9825
|
+
});
|
|
9826
|
+
}
|
|
9827
|
+
|
|
9828
|
+
_this7.setState(newState);
|
|
9813
9829
|
}).catch(function (error) {});
|
|
9814
9830
|
}
|
|
9815
9831
|
}, {
|
|
@@ -10349,13 +10365,18 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10349
10365
|
}
|
|
10350
10366
|
|
|
10351
10367
|
_createClass__default['default'](OptionsSection, [{
|
|
10352
|
-
key: "
|
|
10353
|
-
value: function
|
|
10368
|
+
key: "getSelectedOption",
|
|
10369
|
+
value: function getSelectedOption() {
|
|
10354
10370
|
var _this = this;
|
|
10355
10371
|
|
|
10356
|
-
|
|
10372
|
+
return ___default['default'].find(this.props.options, function (o) {
|
|
10357
10373
|
return _this.props.selected === o.key;
|
|
10358
10374
|
});
|
|
10375
|
+
}
|
|
10376
|
+
}, {
|
|
10377
|
+
key: "getTitle",
|
|
10378
|
+
value: function getTitle() {
|
|
10379
|
+
var selectedOption = this.getSelectedOption();
|
|
10359
10380
|
|
|
10360
10381
|
if (!selectedOption) {
|
|
10361
10382
|
return '';
|
|
@@ -10385,6 +10406,17 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10385
10406
|
className: "optionsButton_text"
|
|
10386
10407
|
}, o.text));
|
|
10387
10408
|
}
|
|
10409
|
+
}, {
|
|
10410
|
+
key: "renderContent",
|
|
10411
|
+
value: function renderContent() {
|
|
10412
|
+
var selectedOption = this.getSelectedOption();
|
|
10413
|
+
|
|
10414
|
+
if (selectedOption && selectedOption.content) {
|
|
10415
|
+
return selectedOption.content;
|
|
10416
|
+
}
|
|
10417
|
+
|
|
10418
|
+
return this.props.children;
|
|
10419
|
+
}
|
|
10388
10420
|
}, {
|
|
10389
10421
|
key: "render",
|
|
10390
10422
|
value: function render() {
|
|
@@ -10411,7 +10443,7 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10411
10443
|
className: "optionsContent_box_top"
|
|
10412
10444
|
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
10413
10445
|
type: "formTitleSmall"
|
|
10414
|
-
}, this.getTitle())), this.
|
|
10446
|
+
}, this.getTitle())), this.renderContent())));
|
|
10415
10447
|
}
|
|
10416
10448
|
}]);
|
|
10417
10449
|
|
package/dist/index.esm.js
CHANGED
|
@@ -425,9 +425,11 @@ var getApiError = function getApiError(error) {
|
|
|
425
425
|
// }
|
|
426
426
|
// };
|
|
427
427
|
|
|
428
|
-
var isTVEnabled = function isTVEnabled(interfaces) {
|
|
428
|
+
var isTVEnabled = function isTVEnabled(interfaces, feature) {
|
|
429
429
|
return _.some(interfaces, function (t) {
|
|
430
|
-
return t.Type === 'TV'
|
|
430
|
+
return t.Type === 'TV' && (!feature || _.some(t.Settings.widgets, function (f) {
|
|
431
|
+
return f.key === feature;
|
|
432
|
+
}));
|
|
431
433
|
});
|
|
432
434
|
};
|
|
433
435
|
|
|
@@ -788,7 +790,10 @@ var getSiteLevelFromState = function getSiteLevelFromState(state) {
|
|
|
788
790
|
hasTV: true,
|
|
789
791
|
hasKiosk: false,
|
|
790
792
|
hasPayments: true,
|
|
791
|
-
hasLinkedContent: true
|
|
793
|
+
hasLinkedContent: true,
|
|
794
|
+
hasPersonalNotes: true,
|
|
795
|
+
hasEmergencyContacts: true,
|
|
796
|
+
hasPersonalDocuments: true
|
|
792
797
|
};
|
|
793
798
|
|
|
794
799
|
switch (siteType) {
|
|
@@ -797,6 +802,9 @@ var getSiteLevelFromState = function getSiteLevelFromState(state) {
|
|
|
797
802
|
siteConfig.hasTV = false;
|
|
798
803
|
siteConfig.hasPayments = false;
|
|
799
804
|
siteConfig.hasLinkedContent = false;
|
|
805
|
+
siteConfig.hasPersonalNotes = false;
|
|
806
|
+
siteConfig.hasEmergencyContacts = false;
|
|
807
|
+
siteConfig.hasPersonalDocuments = false;
|
|
800
808
|
break;
|
|
801
809
|
}
|
|
802
810
|
|
|
@@ -3218,9 +3226,9 @@ var close = {
|
|
|
3218
3226
|
]
|
|
3219
3227
|
};
|
|
3220
3228
|
var check = {
|
|
3221
|
-
viewBox: "0 0
|
|
3229
|
+
viewBox: "0 0 48 48",
|
|
3222
3230
|
paths: [
|
|
3223
|
-
"
|
|
3231
|
+
"M18.9 35.7 7.7 24.5l2.15-2.15 9.05 9.05 19.2-19.2 2.15 2.15Z"
|
|
3224
3232
|
]
|
|
3225
3233
|
};
|
|
3226
3234
|
var contractor = {
|
|
@@ -9533,11 +9541,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9533
9541
|
key: "componentDidMount",
|
|
9534
9542
|
value: function componentDidMount() {
|
|
9535
9543
|
var _this$props2 = this.props,
|
|
9536
|
-
disallowUserType = _this$props2.disallowUserType,
|
|
9537
9544
|
custom = _this$props2.custom,
|
|
9538
9545
|
disallowSingleUsers = _this$props2.disallowSingleUsers,
|
|
9539
9546
|
allowTags = _this$props2.allowTags;
|
|
9540
|
-
|
|
9547
|
+
this.getUserTypes();
|
|
9541
9548
|
if (!disallowSingleUsers) this.getUsers();
|
|
9542
9549
|
if (allowTags || custom) this.getUserTags();
|
|
9543
9550
|
}
|
|
@@ -9776,10 +9783,19 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9776
9783
|
e.Title = "".concat(shortName, " ").concat(e.Title);
|
|
9777
9784
|
}
|
|
9778
9785
|
});
|
|
9779
|
-
|
|
9780
|
-
_this7.setState({
|
|
9786
|
+
var newState = {
|
|
9781
9787
|
types: res.data
|
|
9782
|
-
}
|
|
9788
|
+
};
|
|
9789
|
+
|
|
9790
|
+
if (!_.some(res.data, function (t) {
|
|
9791
|
+
return t.category === 'family';
|
|
9792
|
+
})) {
|
|
9793
|
+
newState.categories = _.filter(_this7.state.categories, function (c) {
|
|
9794
|
+
return c.Key !== 'family';
|
|
9795
|
+
});
|
|
9796
|
+
}
|
|
9797
|
+
|
|
9798
|
+
_this7.setState(newState);
|
|
9783
9799
|
}).catch(function (error) {});
|
|
9784
9800
|
}
|
|
9785
9801
|
}, {
|
|
@@ -10319,13 +10335,18 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10319
10335
|
}
|
|
10320
10336
|
|
|
10321
10337
|
_createClass(OptionsSection, [{
|
|
10322
|
-
key: "
|
|
10323
|
-
value: function
|
|
10338
|
+
key: "getSelectedOption",
|
|
10339
|
+
value: function getSelectedOption() {
|
|
10324
10340
|
var _this = this;
|
|
10325
10341
|
|
|
10326
|
-
|
|
10342
|
+
return _.find(this.props.options, function (o) {
|
|
10327
10343
|
return _this.props.selected === o.key;
|
|
10328
10344
|
});
|
|
10345
|
+
}
|
|
10346
|
+
}, {
|
|
10347
|
+
key: "getTitle",
|
|
10348
|
+
value: function getTitle() {
|
|
10349
|
+
var selectedOption = this.getSelectedOption();
|
|
10329
10350
|
|
|
10330
10351
|
if (!selectedOption) {
|
|
10331
10352
|
return '';
|
|
@@ -10355,6 +10376,17 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10355
10376
|
className: "optionsButton_text"
|
|
10356
10377
|
}, o.text));
|
|
10357
10378
|
}
|
|
10379
|
+
}, {
|
|
10380
|
+
key: "renderContent",
|
|
10381
|
+
value: function renderContent() {
|
|
10382
|
+
var selectedOption = this.getSelectedOption();
|
|
10383
|
+
|
|
10384
|
+
if (selectedOption && selectedOption.content) {
|
|
10385
|
+
return selectedOption.content;
|
|
10386
|
+
}
|
|
10387
|
+
|
|
10388
|
+
return this.props.children;
|
|
10389
|
+
}
|
|
10358
10390
|
}, {
|
|
10359
10391
|
key: "render",
|
|
10360
10392
|
value: function render() {
|
|
@@ -10381,7 +10413,7 @@ var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
|
10381
10413
|
className: "optionsContent_box_top"
|
|
10382
10414
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
10383
10415
|
type: "formTitleSmall"
|
|
10384
|
-
}, this.getTitle())), this.
|
|
10416
|
+
}, this.getTitle())), this.renderContent())));
|
|
10385
10417
|
}
|
|
10386
10418
|
}]);
|
|
10387
10419
|
|
package/dist/index.umd.js
CHANGED
|
@@ -426,9 +426,11 @@
|
|
|
426
426
|
// }
|
|
427
427
|
// };
|
|
428
428
|
|
|
429
|
-
var isTVEnabled = function isTVEnabled(interfaces) {
|
|
429
|
+
var isTVEnabled = function isTVEnabled(interfaces, feature) {
|
|
430
430
|
return ___default['default'].some(interfaces, function (t) {
|
|
431
|
-
return t.Type === 'TV'
|
|
431
|
+
return t.Type === 'TV' && (!feature || ___default['default'].some(t.Settings.widgets, function (f) {
|
|
432
|
+
return f.key === feature;
|
|
433
|
+
}));
|
|
432
434
|
});
|
|
433
435
|
};
|
|
434
436
|
|
|
@@ -789,7 +791,10 @@
|
|
|
789
791
|
hasTV: true,
|
|
790
792
|
hasKiosk: false,
|
|
791
793
|
hasPayments: true,
|
|
792
|
-
hasLinkedContent: true
|
|
794
|
+
hasLinkedContent: true,
|
|
795
|
+
hasPersonalNotes: true,
|
|
796
|
+
hasEmergencyContacts: true,
|
|
797
|
+
hasPersonalDocuments: true
|
|
793
798
|
};
|
|
794
799
|
|
|
795
800
|
switch (siteType) {
|
|
@@ -798,6 +803,9 @@
|
|
|
798
803
|
siteConfig.hasTV = false;
|
|
799
804
|
siteConfig.hasPayments = false;
|
|
800
805
|
siteConfig.hasLinkedContent = false;
|
|
806
|
+
siteConfig.hasPersonalNotes = false;
|
|
807
|
+
siteConfig.hasEmergencyContacts = false;
|
|
808
|
+
siteConfig.hasPersonalDocuments = false;
|
|
801
809
|
break;
|
|
802
810
|
}
|
|
803
811
|
|
|
@@ -3219,9 +3227,9 @@
|
|
|
3219
3227
|
]
|
|
3220
3228
|
};
|
|
3221
3229
|
var check = {
|
|
3222
|
-
viewBox: "0 0
|
|
3230
|
+
viewBox: "0 0 48 48",
|
|
3223
3231
|
paths: [
|
|
3224
|
-
"
|
|
3232
|
+
"M18.9 35.7 7.7 24.5l2.15-2.15 9.05 9.05 19.2-19.2 2.15 2.15Z"
|
|
3225
3233
|
]
|
|
3226
3234
|
};
|
|
3227
3235
|
var contractor = {
|
|
@@ -9534,11 +9542,10 @@
|
|
|
9534
9542
|
key: "componentDidMount",
|
|
9535
9543
|
value: function componentDidMount() {
|
|
9536
9544
|
var _this$props2 = this.props,
|
|
9537
|
-
disallowUserType = _this$props2.disallowUserType,
|
|
9538
9545
|
custom = _this$props2.custom,
|
|
9539
9546
|
disallowSingleUsers = _this$props2.disallowSingleUsers,
|
|
9540
9547
|
allowTags = _this$props2.allowTags;
|
|
9541
|
-
|
|
9548
|
+
this.getUserTypes();
|
|
9542
9549
|
if (!disallowSingleUsers) this.getUsers();
|
|
9543
9550
|
if (allowTags || custom) this.getUserTags();
|
|
9544
9551
|
}
|
|
@@ -9777,10 +9784,19 @@
|
|
|
9777
9784
|
e.Title = "".concat(shortName, " ").concat(e.Title);
|
|
9778
9785
|
}
|
|
9779
9786
|
});
|
|
9780
|
-
|
|
9781
|
-
_this7.setState({
|
|
9787
|
+
var newState = {
|
|
9782
9788
|
types: res.data
|
|
9783
|
-
}
|
|
9789
|
+
};
|
|
9790
|
+
|
|
9791
|
+
if (!___default['default'].some(res.data, function (t) {
|
|
9792
|
+
return t.category === 'family';
|
|
9793
|
+
})) {
|
|
9794
|
+
newState.categories = ___default['default'].filter(_this7.state.categories, function (c) {
|
|
9795
|
+
return c.Key !== 'family';
|
|
9796
|
+
});
|
|
9797
|
+
}
|
|
9798
|
+
|
|
9799
|
+
_this7.setState(newState);
|
|
9784
9800
|
}).catch(function (error) {});
|
|
9785
9801
|
}
|
|
9786
9802
|
}, {
|
|
@@ -10320,13 +10336,18 @@
|
|
|
10320
10336
|
}
|
|
10321
10337
|
|
|
10322
10338
|
_createClass__default['default'](OptionsSection, [{
|
|
10323
|
-
key: "
|
|
10324
|
-
value: function
|
|
10339
|
+
key: "getSelectedOption",
|
|
10340
|
+
value: function getSelectedOption() {
|
|
10325
10341
|
var _this = this;
|
|
10326
10342
|
|
|
10327
|
-
|
|
10343
|
+
return ___default['default'].find(this.props.options, function (o) {
|
|
10328
10344
|
return _this.props.selected === o.key;
|
|
10329
10345
|
});
|
|
10346
|
+
}
|
|
10347
|
+
}, {
|
|
10348
|
+
key: "getTitle",
|
|
10349
|
+
value: function getTitle() {
|
|
10350
|
+
var selectedOption = this.getSelectedOption();
|
|
10330
10351
|
|
|
10331
10352
|
if (!selectedOption) {
|
|
10332
10353
|
return '';
|
|
@@ -10356,6 +10377,17 @@
|
|
|
10356
10377
|
className: "optionsButton_text"
|
|
10357
10378
|
}, o.text));
|
|
10358
10379
|
}
|
|
10380
|
+
}, {
|
|
10381
|
+
key: "renderContent",
|
|
10382
|
+
value: function renderContent() {
|
|
10383
|
+
var selectedOption = this.getSelectedOption();
|
|
10384
|
+
|
|
10385
|
+
if (selectedOption && selectedOption.content) {
|
|
10386
|
+
return selectedOption.content;
|
|
10387
|
+
}
|
|
10388
|
+
|
|
10389
|
+
return this.props.children;
|
|
10390
|
+
}
|
|
10359
10391
|
}, {
|
|
10360
10392
|
key: "render",
|
|
10361
10393
|
value: function render() {
|
|
@@ -10382,7 +10414,7 @@
|
|
|
10382
10414
|
className: "optionsContent_box_top"
|
|
10383
10415
|
}, /*#__PURE__*/React__default['default'].createElement(Text, {
|
|
10384
10416
|
type: "formTitleSmall"
|
|
10385
|
-
}, this.getTitle())), this.
|
|
10417
|
+
}, this.getTitle())), this.renderContent())));
|
|
10386
10418
|
}
|
|
10387
10419
|
}]);
|
|
10388
10420
|
|
package/package.json
CHANGED
|
@@ -49,8 +49,8 @@ class AudienceSelector extends Component {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
componentDidMount() {
|
|
52
|
-
const {
|
|
53
|
-
|
|
52
|
+
const { custom, disallowSingleUsers, allowTags } = this.props;
|
|
53
|
+
this.getUserTypes();
|
|
54
54
|
if (!disallowSingleUsers) this.getUsers();
|
|
55
55
|
if (allowTags || custom) this.getUserTags();
|
|
56
56
|
}
|
|
@@ -250,9 +250,13 @@ class AudienceSelector extends Component {
|
|
|
250
250
|
e.Title = `${shortName} ${e.Title}`;
|
|
251
251
|
}
|
|
252
252
|
});
|
|
253
|
-
|
|
253
|
+
const newState = {
|
|
254
254
|
types: res.data,
|
|
255
|
-
}
|
|
255
|
+
};
|
|
256
|
+
if (!_.some(res.data, (t) => t.category === 'family')) {
|
|
257
|
+
newState.categories = _.filter(this.state.categories, (c) => c.Key !== 'family');
|
|
258
|
+
}
|
|
259
|
+
this.setState(newState);
|
|
256
260
|
})
|
|
257
261
|
.catch((error) => {});
|
|
258
262
|
}
|
|
@@ -5,8 +5,12 @@ import { SVGIcon } from './SVGIcon';
|
|
|
5
5
|
import { Text } from './Text';
|
|
6
6
|
|
|
7
7
|
class OptionsSection extends Component {
|
|
8
|
+
getSelectedOption() {
|
|
9
|
+
return _.find(this.props.options, (o) => this.props.selected === o.key);
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
getTitle() {
|
|
9
|
-
const selectedOption =
|
|
13
|
+
const selectedOption = this.getSelectedOption();
|
|
10
14
|
if (!selectedOption) {
|
|
11
15
|
return '';
|
|
12
16
|
}
|
|
@@ -33,6 +37,14 @@ class OptionsSection extends Component {
|
|
|
33
37
|
);
|
|
34
38
|
}
|
|
35
39
|
|
|
40
|
+
renderContent() {
|
|
41
|
+
const selectedOption = this.getSelectedOption();
|
|
42
|
+
if (selectedOption && selectedOption.content) {
|
|
43
|
+
return selectedOption.content;
|
|
44
|
+
}
|
|
45
|
+
return this.props.children;
|
|
46
|
+
}
|
|
47
|
+
|
|
36
48
|
render() {
|
|
37
49
|
return (
|
|
38
50
|
<div className={`optionsSection${this.props.overflowButtons ? ' optionsSection-overflowButtons' : ''}`}>
|
|
@@ -53,7 +65,7 @@ class OptionsSection extends Component {
|
|
|
53
65
|
<div className="optionsContent_box_top">
|
|
54
66
|
<Text type="formTitleSmall">{this.getTitle()}</Text>
|
|
55
67
|
</div>
|
|
56
|
-
{this.
|
|
68
|
+
{this.renderContent()}
|
|
57
69
|
</div>
|
|
58
70
|
</div>
|
|
59
71
|
</div>
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
]
|
|
7
7
|
},
|
|
8
8
|
"check": {
|
|
9
|
-
"viewBox": "0 0
|
|
10
|
-
"paths": ["
|
|
9
|
+
"viewBox": "0 0 48 48",
|
|
10
|
+
"paths": ["M18.9 35.7 7.7 24.5l2.15-2.15 9.05 9.05 19.2-19.2 2.15 2.15Z"]
|
|
11
11
|
},
|
|
12
12
|
"contractor": {
|
|
13
13
|
"viewBox": "0 0 512 512",
|
|
@@ -10,6 +10,9 @@ const getSiteLevelFromState = (state) => {
|
|
|
10
10
|
hasKiosk: false,
|
|
11
11
|
hasPayments: true,
|
|
12
12
|
hasLinkedContent: true,
|
|
13
|
+
hasPersonalNotes: true,
|
|
14
|
+
hasEmergencyContacts: true,
|
|
15
|
+
hasPersonalDocuments: true,
|
|
13
16
|
};
|
|
14
17
|
|
|
15
18
|
switch (siteType) {
|
|
@@ -18,6 +21,9 @@ const getSiteLevelFromState = (state) => {
|
|
|
18
21
|
siteConfig.hasTV = false;
|
|
19
22
|
siteConfig.hasPayments = false;
|
|
20
23
|
siteConfig.hasLinkedContent = false;
|
|
24
|
+
siteConfig.hasPersonalNotes = false;
|
|
25
|
+
siteConfig.hasEmergencyContacts = false;
|
|
26
|
+
siteConfig.hasPersonalDocuments = false;
|
|
21
27
|
break;
|
|
22
28
|
default:
|
|
23
29
|
break;
|
package/src/session.js
CHANGED
|
@@ -276,6 +276,14 @@ export const getApiError = (error) => {
|
|
|
276
276
|
// }
|
|
277
277
|
// };
|
|
278
278
|
|
|
279
|
-
export const isTVEnabled = (interfaces) => {
|
|
280
|
-
return _.some(interfaces, (t) =>
|
|
279
|
+
export const isTVEnabled = (interfaces, feature) => {
|
|
280
|
+
return _.some(interfaces, (t) => {
|
|
281
|
+
return (
|
|
282
|
+
t.Type === 'TV' &&
|
|
283
|
+
(!feature ||
|
|
284
|
+
_.some(t.Settings.widgets, (f) => {
|
|
285
|
+
return f.key === feature;
|
|
286
|
+
}))
|
|
287
|
+
);
|
|
288
|
+
});
|
|
281
289
|
};
|