@plusscommunities/pluss-maintenance-app-forms 6.0.10 → 6.0.11-auth.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/module/actions/JobActions.js +44 -1
- package/dist/module/actions/JobActions.js.map +1 -1
- package/dist/module/actions/index.js +1 -1
- package/dist/module/actions/index.js.map +1 -1
- package/dist/module/actions/types.js +4 -1
- package/dist/module/actions/types.js.map +1 -1
- package/dist/module/apis/index.js +4 -1
- package/dist/module/apis/index.js.map +1 -1
- package/dist/module/apis/maintenanceActions.js +61 -38
- package/dist/module/apis/maintenanceActions.js.map +1 -1
- package/dist/module/apis/userActions.js +23 -0
- package/dist/module/apis/userActions.js.map +1 -0
- package/dist/module/components/FilterPopupMenu.js +82 -58
- package/dist/module/components/FilterPopupMenu.js.map +1 -1
- package/dist/module/components/MaintenanceList.js +84 -92
- package/dist/module/components/MaintenanceList.js.map +1 -1
- package/dist/module/components/MaintenanceListItem.js +94 -80
- package/dist/module/components/MaintenanceListItem.js.map +1 -1
- package/dist/module/components/MaintenanceWidgetItem.js +39 -38
- package/dist/module/components/MaintenanceWidgetItem.js.map +1 -1
- package/dist/module/components/PrioritySelectorPopup.js +83 -0
- package/dist/module/components/PrioritySelectorPopup.js.map +1 -0
- package/dist/module/components/StatusSelectorPopup.js +23 -27
- package/dist/module/components/StatusSelectorPopup.js.map +1 -1
- package/dist/module/components/WidgetLarge.js +2 -2
- package/dist/module/components/WidgetLarge.js.map +1 -1
- package/dist/module/components/WidgetSmall.js +25 -20
- package/dist/module/components/WidgetSmall.js.map +1 -1
- package/dist/module/core.config.js +2 -3
- package/dist/module/core.config.js.map +1 -1
- package/dist/module/feature.config.js +17 -17
- package/dist/module/feature.config.js.map +1 -1
- package/dist/module/helper.js +41 -26
- package/dist/module/helper.js.map +1 -1
- package/dist/module/index.js +12 -10
- package/dist/module/index.js.map +1 -1
- package/dist/module/reducers/JobsReducer.js +36 -6
- package/dist/module/reducers/JobsReducer.js.map +1 -1
- package/dist/module/screens/JobTypePicker.js +18 -17
- package/dist/module/screens/JobTypePicker.js.map +1 -1
- package/dist/module/screens/MaintenancePage.js +10 -10
- package/dist/module/screens/MaintenancePage.js.map +1 -1
- package/dist/module/screens/MaintenanceUserPicker.js +219 -0
- package/dist/module/screens/MaintenanceUserPicker.js.map +1 -0
- package/dist/module/screens/RequestDetail.js +410 -142
- package/dist/module/screens/RequestDetail.js.map +1 -1
- package/dist/module/screens/RequestNotes.js +462 -52
- package/dist/module/screens/RequestNotes.js.map +1 -1
- package/dist/module/screens/ServiceRequest.js +519 -181
- package/dist/module/screens/ServiceRequest.js.map +1 -1
- package/dist/module/values.config.a.js +30 -23
- package/dist/module/values.config.a.js.map +1 -1
- package/dist/module/values.config.default.js +35 -28
- package/dist/module/values.config.default.js.map +1 -1
- package/dist/module/values.config.enquiry.js +43 -0
- package/dist/module/values.config.enquiry.js.map +1 -0
- package/dist/module/values.config.feedback.js +43 -0
- package/dist/module/values.config.feedback.js.map +1 -0
- package/dist/module/values.config.food.js +43 -0
- package/dist/module/values.config.food.js.map +1 -0
- package/dist/module/values.config.forms.js +35 -28
- package/dist/module/values.config.forms.js.map +1 -1
- package/dist/module/values.config.js +35 -28
- package/dist/module/values.config.js.map +1 -1
- package/package.json +55 -51
- package/src/actions/JobActions.js +75 -16
- package/src/actions/index.js +1 -1
- package/src/actions/types.js +4 -1
- package/src/apis/index.js +6 -1
- package/src/apis/maintenanceActions.js +189 -160
- package/src/apis/userActions.js +21 -0
- package/src/components/FilterPopupMenu.js +316 -230
- package/src/components/MaintenanceList.js +391 -326
- package/src/components/MaintenanceListItem.js +348 -274
- package/src/components/MaintenanceWidgetItem.js +146 -120
- package/src/components/PrioritySelectorPopup.js +93 -0
- package/src/components/StatusSelectorPopup.js +82 -76
- package/src/components/WidgetLarge.js +5 -5
- package/src/components/WidgetSmall.js +154 -131
- package/src/core.config.js +25 -3
- package/src/feature.config.js +62 -62
- package/src/helper.js +67 -30
- package/src/index.js +22 -20
- package/src/reducers/JobsReducer.js +85 -41
- package/src/screens/JobTypePicker.js +116 -92
- package/src/screens/MaintenancePage.js +89 -80
- package/src/screens/MaintenanceUserPicker.js +233 -0
- package/src/screens/RequestDetail.js +1354 -892
- package/src/screens/RequestNotes.js +946 -408
- package/src/screens/ServiceRequest.js +1808 -1222
- package/src/values.config.a.js +33 -26
- package/src/values.config.default.js +39 -32
- package/src/values.config.enquiry.js +43 -0
- package/src/values.config.feedback.js +43 -0
- package/src/values.config.food.js +43 -0
- package/src/values.config.forms.js +39 -32
- package/src/values.config.js +39 -32
- package/dist/module/values.config.b.js +0 -30
- package/dist/module/values.config.b.js.map +0 -1
- package/dist/module/values.config.c.js +0 -30
- package/dist/module/values.config.c.js.map +0 -1
- package/dist/module/values.config.d.js +0 -30
- package/dist/module/values.config.d.js.map +0 -1
- package/src/values.config.b.js +0 -30
- package/src/values.config.c.js +0 -30
- package/src/values.config.d.js +0 -30
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","Text","View","StyleSheet","TouchableOpacity","connect","Icon","moment","_","getJobStatusProps","jobStatusOptions","Services","Colours","Helper","values","MaintenanceWidgetItem","constructor","args","_defineProperty","navigation","navigate","screenRequestDetail","job","props","render","createdTime","createdUnix","createdTimeText","format","statusText","statusColor","status","seenText","name","seen","createElement","key","id","onPress","onPressJob","style","styles","jobContainer","jobInnerContainer","jobTopSection","numberOfLines","jobTitleText","title","jobCreatedTimeText","jobSeenContainer","isEmpty","type","iconStyle","jobSeenIcon","color","colourBrandingMain","jobSeenText","jobBottomSection","jobStatusContainer","backgroundColor","jobStatusText","create","padding","width","height","getShadowStyle","flex","paddingTop","fontFamily","fontSize","TEXT_DARK","TEXT_LIGHT","flexDirection","alignItems","marginRight","TEXT_SUPER_LIGHT","justifyContent","paddingVertical","borderTopWidth","borderTopColor","LINEGREY","paddingHorizontal","borderRadius","jobStatusIcon","textAlign","mapStateToProps","state","getMainBrandingColourFromState"],"sources":["MaintenanceWidgetItem.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Text, View, StyleSheet, TouchableOpacity } from 'react-native';\nimport { connect } from 'react-redux';\nimport { Icon } from 'react-native-elements';\nimport moment from 'moment';\nimport _ from 'lodash';\nimport { getJobStatusProps, jobStatusOptions } from '../helper';\nimport { Services } from '../feature.config';\nimport { Colours, Helper } from '../core.config';\nimport { values } from '../values.config';\n\nclass MaintenanceWidgetItem extends Component {\n onPressJob = () => {\n Services.navigation.navigate(values.screenRequestDetail, { job: this.props.job });\n };\n\n render() {\n const { job } = this.props;\n const createdTime = moment(job.createdUnix);\n const createdTimeText = `${createdTime.format('ddd, D MMMM')} • ${createdTime.format('h:mma')}`;\n const { statusText, statusColor } = getJobStatusProps(job.status);\n const seenText = (() => {\n if (!job.status || job.status === jobStatusOptions[0].name) {\n return job.seen ? 'Seen' : 'Unseen';\n }\n return '';\n })();\n\n return (\n <TouchableOpacity key={job.id} onPress={this.onPressJob}>\n <View style={styles.jobContainer}>\n <View style={styles.jobInnerContainer}>\n <View style={styles.jobTopSection}>\n <Text numberOfLines={2} style={styles.jobTitleText}>\n {job.title}\n </Text>\n <Text style={styles.jobCreatedTimeText}>{createdTimeText}</Text>\n <View style={styles.jobSeenContainer}>\n {job.seen && !_.isEmpty(seenText) && (\n <Icon name=\"check\" type=\"font-awesome\" iconStyle={[styles.jobSeenIcon, { color: this.props.colourBrandingMain }]} />\n )}\n <Text style={[styles.jobSeenText, job.seen && { color: this.props.colourBrandingMain }]}>{seenText}</Text>\n </View>\n </View>\n <View style={styles.jobBottomSection}>\n <View style={[styles.jobStatusContainer, { backgroundColor: statusColor }]}>\n {/* <Icon name=\"wrench\" type=\"font-awesome\" iconStyle={styles.jobStatusIcon} /> */}\n <Text style={styles.jobStatusText}>{statusText}</Text>\n </View>\n </View>\n </View>\n </View>\n </TouchableOpacity>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n jobContainer: {\n padding: 10,\n },\n jobInnerContainer: {\n width: 140,\n height: 160,\n ...Helper.getShadowStyle(),\n },\n jobTopSection: {\n flex: 1,\n padding: 10,\n paddingTop: 20,\n },\n jobTitleText: {\n flex: 1,\n fontFamily: 'sf-semibold',\n fontSize: 16,\n color: Colours.TEXT_DARK,\n },\n jobCreatedTimeText: {\n fontFamily: 'sf-medium',\n fontSize: 11,\n color: Colours.TEXT_LIGHT,\n paddingTop: 3,\n },\n jobSeenContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n paddingTop: 5,\n },\n jobSeenIcon: {\n fontSize: 12,\n marginRight: 4,\n },\n jobSeenText: {\n fontFamily: 'sf-semibold',\n fontSize: 12,\n color: Colours.TEXT_SUPER_LIGHT,\n },\n jobBottomSection: {\n alignItems: 'center',\n justifyContent: 'center',\n paddingVertical: 10,\n borderTopWidth: 1,\n borderTopColor: Colours.LINEGREY,\n },\n jobStatusContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n width: 105,\n height: 30,\n paddingHorizontal: 8,\n borderRadius: 4,\n },\n jobStatusIcon: {\n color: '#fff',\n fontSize: 14,\n },\n jobStatusText: {\n color: '#fff',\n textAlign: 'center',\n fontFamily: 'sf-semibold',\n fontSize: 13,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {})(MaintenanceWidgetItem);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACvE,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,OAAOC,MAAM,MAAM,QAAQ;AAC3B,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,iBAAiB,EAAEC,gBAAgB,QAAQ,WAAW;AAC/D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAA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Ac,EAAE,eAAe;IAC/Bb,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACViB,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDC,aAAa,EAAE;IACb7B,KAAK,EAAE,MAAM;IACbe,QAAQ,EAAE;EACZ,CAAC;EACDT,aAAa,EAAE;IACbN,KAAK,EAAE,MAAM;IACb8B,SAAS,EAAE,QAAQ;IACnBhB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC;AAEF,MAAMgB,eAAe,GAAGC,KAAK,IAAI;EAC/B,OAAO;IACL/B,kBAAkB,EAAE3C,OAAO,CAAC2E,8BAA8B,CAACD,KAAK;EAClE,CAAC;AACH,CAAC;AAED,eAAejF,OAAO,CAACgF,eAAe,EAAE,CAAC,CAAC,CAAC,CAACtE,qBAAqB,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","TouchableOpacity","Text","connect","Icon","moment","_","getJobStatus","Services","Colours","Helper","values","MaintenanceWidgetItem","constructor","args","_defineProperty","navigation","navigate","screenRequestDetail","job","props","render","hideSeen","createdTime","createdUnix","createdTimeText","format","status","seenText","text","seen","createElement","key","id","onPress","onPressJob","style","styles","jobContainer","jobInnerContainer","jobTopSection","numberOfLines","jobTitleText","title","jobCreatedTimeText","jobSeenContainer","isEmpty","name","type","iconStyle","jobSeenIcon","color","colourBrandingMain","jobSeenText","jobBottomSection","jobStatusContainer","backgroundColor","jobStatusText","create","padding","width","height","getShadowStyle","flex","paddingTop","fontFamily","fontSize","TEXT_DARK","TEXT_LIGHT","flexDirection","alignItems","marginRight","TEXT_SUPER_LIGHT","justifyContent","paddingVertical","borderTopWidth","borderTopColor","LINEGREY","paddingHorizontal","borderRadius","jobStatusIcon","textAlign","mapStateToProps","state","getMainBrandingColourFromState","statusTypes","reducerKey","jobstatuses"],"sources":["MaintenanceWidgetItem.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, StyleSheet, TouchableOpacity } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { connect } from \"react-redux\";\nimport { Icon } from \"@rneui/themed\";\nimport moment from \"moment\";\nimport _ from \"lodash\";\nimport { getJobStatus } from \"../helper\";\nimport { Services } from \"../feature.config\";\nimport { Colours, Helper } from \"../core.config\";\nimport { values } from \"../values.config\";\n\nclass MaintenanceWidgetItem extends Component {\n\tonPressJob = () => {\n\t\tServices.navigation.navigate(values.screenRequestDetail, {\n\t\t\tjob: this.props.job,\n\t\t});\n\t};\n\n\trender() {\n\t\tconst { job, hideSeen } = this.props;\n\t\tconst createdTime = moment(job.createdUnix);\n\t\tconst createdTimeText = `${createdTime.format(\"ddd, D MMMM\")} • ${createdTime.format(\"h:mma\")}`;\n\t\tconst status = getJobStatus(job.status, this.props);\n\t\tconst seenText = (() => {\n\t\t\tif (!job.status || job.status === getJobStatus(null, this.props).text) {\n\t\t\t\treturn job.seen ? \"Seen\" : \"Unseen\";\n\t\t\t}\n\t\t\treturn \"\";\n\t\t})();\n\n\t\treturn (\n\t\t\t<TouchableOpacity key={job.id} onPress={this.onPressJob}>\n\t\t\t\t<View style={styles.jobContainer}>\n\t\t\t\t\t<View style={styles.jobInnerContainer}>\n\t\t\t\t\t\t<View style={styles.jobTopSection}>\n\t\t\t\t\t\t\t<Text numberOfLines={2} style={styles.jobTitleText}>\n\t\t\t\t\t\t\t\t{job.title}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t<Text style={styles.jobCreatedTimeText}>{createdTimeText}</Text>\n\t\t\t\t\t\t\t{!hideSeen ? (\n\t\t\t\t\t\t\t\t<View style={styles.jobSeenContainer}>\n\t\t\t\t\t\t\t\t\t{job.seen && !_.isEmpty(seenText) && (\n\t\t\t\t\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\t\t\t\t\tname=\"check\"\n\t\t\t\t\t\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\t\t\t\t\t\tstyles.jobSeenIcon,\n\t\t\t\t\t\t\t\t\t\t\t\t{ color: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\t\t\tstyles.jobSeenText,\n\t\t\t\t\t\t\t\t\t\t\tjob.seen && { color: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t{seenText}\n\t\t\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</View>\n\t\t\t\t\t\t<View style={styles.jobBottomSection}>\n\t\t\t\t\t\t\t<View\n\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\tstyles.jobStatusContainer,\n\t\t\t\t\t\t\t\t\t{ backgroundColor: status?.color },\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{/* <Icon name=\"wrench\" type=\"font-awesome\" iconStyle={styles.jobStatusIcon} /> */}\n\t\t\t\t\t\t\t\t<Text style={styles.jobStatusText}>{status?.text}</Text>\n\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t</View>\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tjobContainer: {\n\t\tpadding: 10,\n\t},\n\tjobInnerContainer: {\n\t\twidth: 140,\n\t\theight: 160,\n\t\t...Helper.getShadowStyle(),\n\t},\n\tjobTopSection: {\n\t\tflex: 1,\n\t\tpadding: 10,\n\t\tpaddingTop: 20,\n\t},\n\tjobTitleText: {\n\t\tflex: 1,\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 16,\n\t\tcolor: Colours.TEXT_DARK,\n\t},\n\tjobCreatedTimeText: {\n\t\tfontFamily: \"sf-medium\",\n\t\tfontSize: 11,\n\t\tcolor: Colours.TEXT_LIGHT,\n\t\tpaddingTop: 3,\n\t},\n\tjobSeenContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tpaddingTop: 5,\n\t},\n\tjobSeenIcon: {\n\t\tfontSize: 12,\n\t\tmarginRight: 4,\n\t},\n\tjobSeenText: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 12,\n\t\tcolor: Colours.TEXT_SUPER_LIGHT,\n\t},\n\tjobBottomSection: {\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tpaddingVertical: 10,\n\t\tborderTopWidth: 1,\n\t\tborderTopColor: Colours.LINEGREY,\n\t},\n\tjobStatusContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t\twidth: 105,\n\t\theight: 30,\n\t\tpaddingHorizontal: 8,\n\t\tborderRadius: 4,\n\t},\n\tjobStatusIcon: {\n\t\tcolor: \"#fff\",\n\t\tfontSize: 14,\n\t},\n\tjobStatusText: {\n\t\tcolor: \"#fff\",\n\t\ttextAlign: \"center\",\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 13,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t\tstatusTypes: state[values.reducerKey].jobstatuses,\n\t\thideSeen: state[values.reducerKey].hideSeen,\n\t};\n};\n\nexport default connect(mapStateToProps, {})(MaintenanceWidgetItem);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACjE,SAASC,IAAI,QAAQ,6CA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ZY,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE,EAAE;IACZf,KAAK,EAAE1C,OAAO,CAAC+D;EAChB,CAAC;EACDlB,gBAAgB,EAAE;IACjBgB,UAAU,EAAE,QAAQ;IACpBG,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE,EAAE;IACnBC,cAAc,EAAE,CAAC;IACjBC,cAAc,EAAEnE,OAAO,CAACoE;EACzB,CAAC;EACDtB,kBAAkB,EAAE;IACnBc,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBG,cAAc,EAAE,eAAe;IAC/Bb,KAAK,EAAE,GAAG;IACVC,MAAM,EAAE,EAAE;IACViB,iBAAiB,EAAE,CAAC;IACpBC,YAAY,EAAE;EACf,CAAC;EACDC,aAAa,EAAE;IACd7B,KAAK,EAAE,MAAM;IACbe,QAAQ,EAAE;EACX,CAAC;EACDT,aAAa,EAAE;IACdN,KAAK,EAAE,MAAM;IACb8B,SAAS,EAAE,QAAQ;IACnBhB,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE;EACX;AACD,CAAC,CAAC;AAEF,MAAMgB,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACN/B,kBAAkB,EAAE3C,OAAO,CAAC2E,8BAA8B,CAACD,KAAK,CAAC;IACjEE,WAAW,EAAEF,KAAK,CAACxE,MAAM,CAAC2E,UAAU,CAAC,CAACC,WAAW;IACjDjE,QAAQ,EAAE6D,KAAK,CAACxE,MAAM,CAAC2E,UAAU,CAAC,CAAChE;EACpC,CAAC;AACF,CAAC;AAED,eAAenB,OAAO,CAAC+E,eAAe,EAAE,CAAC,CAAC,CAAC,CAACtE,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View, StyleSheet, TouchableOpacity } from "react-native";
|
|
3
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import { jobPriorityOptions } from "../helper";
|
|
6
|
+
import { Components, Colours } from "../core.config";
|
|
7
|
+
class PrioritySelectorPopup extends PureComponent {
|
|
8
|
+
render() {
|
|
9
|
+
const {
|
|
10
|
+
title,
|
|
11
|
+
includeAll,
|
|
12
|
+
allText,
|
|
13
|
+
onClose,
|
|
14
|
+
onSelect
|
|
15
|
+
} = this.props;
|
|
16
|
+
let priorities = jobPriorityOptions;
|
|
17
|
+
if (includeAll) priorities = [{
|
|
18
|
+
label: allText || "Show All",
|
|
19
|
+
color: this.props.colourBrandingMain
|
|
20
|
+
}, ...priorities];
|
|
21
|
+
return /*#__PURE__*/React.createElement(Components.MiddlePopup, {
|
|
22
|
+
style: [styles.statusPopup, {
|
|
23
|
+
height: priorities.length * 50 + 40
|
|
24
|
+
}],
|
|
25
|
+
onClose: onClose
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
27
|
+
style: styles.statusPopupTitle
|
|
28
|
+
}, title || "Select Priority"), /*#__PURE__*/React.createElement(View, {
|
|
29
|
+
style: styles.statusPopupOptionsContainer
|
|
30
|
+
}, priorities.map(priority => {
|
|
31
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
32
|
+
key: priority.label,
|
|
33
|
+
onPress: () => onSelect(priority.label)
|
|
34
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
35
|
+
style: [styles.jobStatusContainer, {
|
|
36
|
+
backgroundColor: priority.color
|
|
37
|
+
}]
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
39
|
+
style: styles.jobStatusText
|
|
40
|
+
}, priority.label)));
|
|
41
|
+
})));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const styles = StyleSheet.create({
|
|
45
|
+
statusPopup: {
|
|
46
|
+
width: 160,
|
|
47
|
+
padding: 16,
|
|
48
|
+
borderRadius: 12
|
|
49
|
+
},
|
|
50
|
+
statusPopupTitle: {
|
|
51
|
+
fontFamily: "sf-bold",
|
|
52
|
+
color: Colours.TEXT_DARK,
|
|
53
|
+
fontSize: 18,
|
|
54
|
+
marginBottom: 16
|
|
55
|
+
},
|
|
56
|
+
statusPopupOptionsContainer: {
|
|
57
|
+
flex: 1,
|
|
58
|
+
justifyContent: "space-between"
|
|
59
|
+
},
|
|
60
|
+
jobStatusContainer: {
|
|
61
|
+
flexDirection: "row",
|
|
62
|
+
alignItems: "center",
|
|
63
|
+
justifyContent: "space-between",
|
|
64
|
+
width: 105,
|
|
65
|
+
height: 30,
|
|
66
|
+
paddingHorizontal: 8,
|
|
67
|
+
borderRadius: 4
|
|
68
|
+
},
|
|
69
|
+
jobStatusText: {
|
|
70
|
+
color: "#fff",
|
|
71
|
+
textAlign: "center",
|
|
72
|
+
fontFamily: "sf-semibold",
|
|
73
|
+
fontSize: 13,
|
|
74
|
+
flex: 1
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const mapStateToProps = state => {
|
|
78
|
+
return {
|
|
79
|
+
colourBrandingMain: Colours.getMainBrandingColourFromState(state)
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export default connect(mapStateToProps, {})(PrioritySelectorPopup);
|
|
83
|
+
//# sourceMappingURL=PrioritySelectorPopup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","StyleSheet","TouchableOpacity","Text","connect","jobPriorityOptions","Components","Colours","PrioritySelectorPopup","render","title","includeAll","allText","onClose","onSelect","props","priorities","label","color","colourBrandingMain","createElement","MiddlePopup","style","styles","statusPopup","height","length","statusPopupTitle","statusPopupOptionsContainer","map","priority","key","onPress","jobStatusContainer","backgroundColor","jobStatusText","create","width","padding","borderRadius","fontFamily","TEXT_DARK","fontSize","marginBottom","flex","justifyContent","flexDirection","alignItems","paddingHorizontal","textAlign","mapStateToProps","state","getMainBrandingColourFromState"],"sources":["PrioritySelectorPopup.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, StyleSheet, TouchableOpacity } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { connect } from \"react-redux\";\nimport { jobPriorityOptions } from \"../helper\";\nimport { Components, Colours } from \"../core.config\";\n\nclass PrioritySelectorPopup extends PureComponent {\n\trender() {\n\t\tconst { title, includeAll, allText, onClose, onSelect } = this.props;\n\t\tlet priorities = jobPriorityOptions;\n\t\tif (includeAll)\n\t\t\tpriorities = [\n\t\t\t\t{\n\t\t\t\t\tlabel: allText || \"Show All\",\n\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t},\n\t\t\t\t...priorities,\n\t\t\t];\n\n\t\treturn (\n\t\t\t<Components.MiddlePopup\n\t\t\t\tstyle={[styles.statusPopup, { height: priorities.length * 50 + 40 }]}\n\t\t\t\tonClose={onClose}\n\t\t\t>\n\t\t\t\t<Text style={styles.statusPopupTitle}>\n\t\t\t\t\t{title || \"Select Priority\"}\n\t\t\t\t</Text>\n\t\t\t\t<View style={styles.statusPopupOptionsContainer}>\n\t\t\t\t\t{priorities.map((priority) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\tkey={priority.label}\n\t\t\t\t\t\t\t\tonPress={() => onSelect(priority.label)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<View\n\t\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\t\tstyles.jobStatusContainer,\n\t\t\t\t\t\t\t\t\t\t{ backgroundColor: priority.color },\n\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Text style={styles.jobStatusText}>{priority.label}</Text>\n\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</View>\n\t\t\t</Components.MiddlePopup>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tstatusPopup: {\n\t\twidth: 160,\n\t\tpadding: 16,\n\t\tborderRadius: 12,\n\t},\n\tstatusPopupTitle: {\n\t\tfontFamily: \"sf-bold\",\n\t\tcolor: Colours.TEXT_DARK,\n\t\tfontSize: 18,\n\t\tmarginBottom: 16,\n\t},\n\tstatusPopupOptionsContainer: {\n\t\tflex: 1,\n\t\tjustifyContent: \"space-between\",\n\t},\n\tjobStatusContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t\twidth: 105,\n\t\theight: 30,\n\t\tpaddingHorizontal: 8,\n\t\tborderRadius: 4,\n\t},\n\tjobStatusText: {\n\t\tcolor: \"#fff\",\n\t\ttextAlign: \"center\",\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 13,\n\t\tflex: 1,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps, {})(PrioritySelectorPopup);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACjE,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,kBAAkB,QAAQ,WAAW;AAC9C,SAASC,UAAU,EAAEC,OAAO,QAAQ,gBAAgB;AAEpD,MAAMC,qBAAqB,SAAST,aAAa,CAAC;EACjDU,MAAMA,CAAA,EAAG;IACR,MAAM;MAAEC,KAAK;MAAEC,UAAU;MAAEC,OAAO;MAAEC,OAAO;MAAEC;IAAS,CAAC,GAAG,IAAI,CAACC,KAAK;IACpE,IAAIC,UAAU,GAAGX,kBAAkB;IACnC,IAAIM,UAAU,EACbK,UAAU,GAAG,CACZ;MACCC,KAAK,EAAEL,OAAO,IAAI,UAAU;MAC5BM,KAAK,EAAE,IAAI,CAACH,KAAK,CAACI;IACnB,C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AAY,EAAE;EACf,CAAC;EACDf,2BAA2B,EAAE;IAC5BgB,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EACjB,CAAC;EACDZ,kBAAkB,EAAE;IACnBa,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBF,cAAc,EAAE,eAAe;IAC/BR,KAAK,EAAE,GAAG;IACVZ,MAAM,EAAE,EAAE;IACVuB,iBAAiB,EAAE,CAAC;IACpBT,YAAY,EAAE;EACf,CAAC;EACDJ,aAAa,EAAE;IACdjB,KAAK,EAAE,MAAM;IACb+B,SAAS,EAAE,QAAQ;IACnBT,UAAU,EAAE,aAAa;IACzBE,QAAQ,EAAE,EAAE;IACZE,IAAI,EAAE;EACP;AACD,CAAC,CAAC;AAEF,MAAMM,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACNhC,kBAAkB,EAAEZ,OAAO,CAAC6C,8BAA8B,CAACD,KAAK;EACjE,CAAC;AACF,CAAC;AAED,eAAe/C,OAAO,CAAC8C,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC1C,qBAAqB,CAAC","ignoreList":[]}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import React, { PureComponent } from
|
|
2
|
-
import { View, StyleSheet, TouchableOpacity
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View, StyleSheet, TouchableOpacity } from "react-native";
|
|
3
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
4
|
+
import { connect } from "react-redux";
|
|
5
|
+
import { getJobStatusOptions } from "../helper";
|
|
6
|
+
import { Components, Colours } from "../core.config";
|
|
7
|
+
import { values } from "../values.config";
|
|
6
8
|
class StatusSelectorPopup extends PureComponent {
|
|
7
9
|
render() {
|
|
8
10
|
const {
|
|
9
11
|
title,
|
|
10
|
-
filter,
|
|
11
12
|
includeAll,
|
|
12
13
|
allText,
|
|
13
14
|
onClose,
|
|
14
15
|
onSelect
|
|
15
16
|
} = this.props;
|
|
16
|
-
let statuses =
|
|
17
|
-
return {
|
|
18
|
-
name: status,
|
|
19
|
-
label: getJobStatusLabel(status),
|
|
20
|
-
color: getJobStatusColour(status)
|
|
21
|
-
};
|
|
22
|
-
}) : jobStatusOptions;
|
|
17
|
+
let statuses = getJobStatusOptions(this.props);
|
|
23
18
|
if (includeAll) statuses = [{
|
|
24
|
-
|
|
19
|
+
text: allText || "Show All",
|
|
25
20
|
color: this.props.colourBrandingMain
|
|
26
21
|
}, ...statuses];
|
|
27
22
|
return /*#__PURE__*/React.createElement(Components.MiddlePopup, {
|
|
@@ -31,19 +26,19 @@ class StatusSelectorPopup extends PureComponent {
|
|
|
31
26
|
onClose: onClose
|
|
32
27
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
33
28
|
style: styles.statusPopupTitle
|
|
34
|
-
}, title ||
|
|
29
|
+
}, title || "Select Status"), /*#__PURE__*/React.createElement(View, {
|
|
35
30
|
style: styles.statusPopupOptionsContainer
|
|
36
31
|
}, statuses.map(status => {
|
|
37
32
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
38
|
-
key: status.
|
|
39
|
-
onPress: () => onSelect(status.
|
|
33
|
+
key: status.text,
|
|
34
|
+
onPress: () => onSelect(status.text)
|
|
40
35
|
}, /*#__PURE__*/React.createElement(View, {
|
|
41
36
|
style: [styles.jobStatusContainer, {
|
|
42
37
|
backgroundColor: status.color
|
|
43
38
|
}]
|
|
44
39
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
45
40
|
style: styles.jobStatusText
|
|
46
|
-
}, status.
|
|
41
|
+
}, status.text)));
|
|
47
42
|
})));
|
|
48
43
|
}
|
|
49
44
|
}
|
|
@@ -54,35 +49,36 @@ const styles = StyleSheet.create({
|
|
|
54
49
|
borderRadius: 12
|
|
55
50
|
},
|
|
56
51
|
statusPopupTitle: {
|
|
57
|
-
fontFamily:
|
|
52
|
+
fontFamily: "sf-bold",
|
|
58
53
|
color: Colours.TEXT_DARK,
|
|
59
54
|
fontSize: 18,
|
|
60
55
|
marginBottom: 16
|
|
61
56
|
},
|
|
62
57
|
statusPopupOptionsContainer: {
|
|
63
58
|
flex: 1,
|
|
64
|
-
justifyContent:
|
|
59
|
+
justifyContent: "space-between"
|
|
65
60
|
},
|
|
66
61
|
jobStatusContainer: {
|
|
67
|
-
flexDirection:
|
|
68
|
-
alignItems:
|
|
69
|
-
justifyContent:
|
|
62
|
+
flexDirection: "row",
|
|
63
|
+
alignItems: "center",
|
|
64
|
+
justifyContent: "space-between",
|
|
70
65
|
width: 105,
|
|
71
66
|
height: 30,
|
|
72
67
|
paddingHorizontal: 8,
|
|
73
68
|
borderRadius: 4
|
|
74
69
|
},
|
|
75
70
|
jobStatusText: {
|
|
76
|
-
color:
|
|
77
|
-
textAlign:
|
|
78
|
-
fontFamily:
|
|
71
|
+
color: "#fff",
|
|
72
|
+
textAlign: "center",
|
|
73
|
+
fontFamily: "sf-semibold",
|
|
79
74
|
fontSize: 13,
|
|
80
75
|
flex: 1
|
|
81
76
|
}
|
|
82
77
|
});
|
|
83
78
|
const mapStateToProps = state => {
|
|
84
79
|
return {
|
|
85
|
-
colourBrandingMain: Colours.getMainBrandingColourFromState(state)
|
|
80
|
+
colourBrandingMain: Colours.getMainBrandingColourFromState(state),
|
|
81
|
+
statusTypes: state[values.reducerKey].jobstatuses
|
|
86
82
|
};
|
|
87
83
|
};
|
|
88
84
|
export default connect(mapStateToProps, {})(StatusSelectorPopup);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","View","StyleSheet","TouchableOpacity","Text","connect","
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","StyleSheet","TouchableOpacity","Text","connect","getJobStatusOptions","Components","Colours","values","StatusSelectorPopup","render","title","includeAll","allText","onClose","onSelect","props","statuses","text","color","colourBrandingMain","createElement","MiddlePopup","style","styles","statusPopup","height","length","statusPopupTitle","statusPopupOptionsContainer","map","status","key","onPress","jobStatusContainer","backgroundColor","jobStatusText","create","width","padding","borderRadius","fontFamily","TEXT_DARK","fontSize","marginBottom","flex","justifyContent","flexDirection","alignItems","paddingHorizontal","textAlign","mapStateToProps","state","getMainBrandingColourFromState","statusTypes","reducerKey","jobstatuses"],"sources":["StatusSelectorPopup.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, StyleSheet, TouchableOpacity } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { connect } from \"react-redux\";\nimport { getJobStatusOptions } from \"../helper\";\nimport { Components, Colours } from \"../core.config\";\nimport { values } from \"../values.config\";\n\nclass StatusSelectorPopup extends PureComponent {\n\trender() {\n\t\tconst { title, includeAll, allText, onClose, onSelect } = this.props;\n\t\tlet statuses = getJobStatusOptions(this.props);\n\t\tif (includeAll)\n\t\t\tstatuses = [\n\t\t\t\t{\n\t\t\t\t\ttext: allText || \"Show All\",\n\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t},\n\t\t\t\t...statuses,\n\t\t\t];\n\n\t\treturn (\n\t\t\t<Components.MiddlePopup\n\t\t\t\tstyle={[styles.statusPopup, { height: statuses.length * 50 + 40 }]}\n\t\t\t\tonClose={onClose}\n\t\t\t>\n\t\t\t\t<Text style={styles.statusPopupTitle}>{title || \"Select Status\"}</Text>\n\t\t\t\t<View style={styles.statusPopupOptionsContainer}>\n\t\t\t\t\t{statuses.map((status) => {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\t\tkey={status.text}\n\t\t\t\t\t\t\t\tonPress={() => onSelect(status.text)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<View\n\t\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\t\tstyles.jobStatusContainer,\n\t\t\t\t\t\t\t\t\t\t{ backgroundColor: status.color },\n\t\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<Text style={styles.jobStatusText}>{status.text}</Text>\n\t\t\t\t\t\t\t\t</View>\n\t\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t\t);\n\t\t\t\t\t})}\n\t\t\t\t</View>\n\t\t\t</Components.MiddlePopup>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tstatusPopup: {\n\t\twidth: 160,\n\t\tpadding: 16,\n\t\tborderRadius: 12,\n\t},\n\tstatusPopupTitle: {\n\t\tfontFamily: \"sf-bold\",\n\t\tcolor: Colours.TEXT_DARK,\n\t\tfontSize: 18,\n\t\tmarginBottom: 16,\n\t},\n\tstatusPopupOptionsContainer: {\n\t\tflex: 1,\n\t\tjustifyContent: \"space-between\",\n\t},\n\tjobStatusContainer: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"space-between\",\n\t\twidth: 105,\n\t\theight: 30,\n\t\tpaddingHorizontal: 8,\n\t\tborderRadius: 4,\n\t},\n\tjobStatusText: {\n\t\tcolor: \"#fff\",\n\t\ttextAlign: \"center\",\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 13,\n\t\tflex: 1,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t\tstatusTypes: state[values.reducerKey].jobstatuses,\n\t};\n};\n\nexport default connect(mapStateToProps, {})(StatusSelectorPopup);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AACjE,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,mBAAmB,QAAQ,WAAW;AAC/C,SAASC,UAAU,EAAEC,OAAO,QAAQ,gBAAgB;AACpD,SAASC,MAAM,QAAQ,kBAAkB;AAEzC,MAAMC,mBAAmB,SAASV,aAAa,CAAC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AACb,IAAW,CACjD,CACW,CAAC;IAErB,CAAC,CACI,CACiB,CAAC;EAE3B;AACD;AAEA,MAAMM,MAAM,GAAGvB,UAAU,CAACoC,MAAM,CAAC;EAChCZ,WAAW,EAAE;IACZa,KAAK,EAAE,GAAG;IACVC,OAAO,EAAE,EAAE;IACXC,YAAY,EAAE;EACf,CAAC;EACDZ,gBAAgB,EAAE;IACjBa,UAAU,EAAE,SAAS;IACrBtB,KAAK,EAAEZ,OAAO,CAACmC,SAAS;IACxBC,QAAQ,EAAE,EAAE;IACZC,YAAY,EAAE;EACf,CAAC;EACDf,2BAA2B,EAAE;IAC5BgB,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE;EACjB,CAAC;EACDZ,kBAAkB,EAAE;IACnBa,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBF,cAAc,EAAE,eAAe;IAC/BR,KAAK,EAAE,GAAG;IACVZ,MAAM,EAAE,EAAE;IACVuB,iBAAiB,EAAE,CAAC;IACpBT,YAAY,EAAE;EACf,CAAC;EACDJ,aAAa,EAAE;IACdjB,KAAK,EAAE,MAAM;IACb+B,SAAS,EAAE,QAAQ;IACnBT,UAAU,EAAE,aAAa;IACzBE,QAAQ,EAAE,EAAE;IACZE,IAAI,EAAE;EACP;AACD,CAAC,CAAC;AAEF,MAAMM,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACNhC,kBAAkB,EAAEb,OAAO,CAAC8C,8BAA8B,CAACD,KAAK,CAAC;IACjEE,WAAW,EAAEF,KAAK,CAAC5C,MAAM,CAAC+C,UAAU,CAAC,CAACC;EACvC,CAAC;AACF,CAAC;AAED,eAAepD,OAAO,CAAC+C,eAAe,EAAE,CAAC,CAAC,CAAC,CAAC1C,mBAAmB,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { PureComponent } from
|
|
2
|
-
import MaintenanceList from
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import MaintenanceList from "./MaintenanceList";
|
|
3
3
|
class WidgetLarge extends PureComponent {
|
|
4
4
|
render() {
|
|
5
5
|
return /*#__PURE__*/React.createElement(MaintenanceList, this.props);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","MaintenanceList","WidgetLarge","render","createElement","props"],"sources":["WidgetLarge.js"],"sourcesContent":["import React, { PureComponent } from
|
|
1
|
+
{"version":3,"names":["React","PureComponent","MaintenanceList","WidgetLarge","render","createElement","props"],"sources":["WidgetLarge.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport MaintenanceList from \"./MaintenanceList\";\n\nclass WidgetLarge extends PureComponent {\n\trender() {\n\t\treturn <MaintenanceList {...this.props} />;\n\t}\n}\n\nexport default WidgetLarge;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,OAAOC,eAAe,MAAM,mBAAmB;AAE/C,MAAMC,WAAW,SAASF,aAAa,CAAC;EACvCG,MAAMA,CAAA,EAAG;IACR,oBAAOJ,KAAA,CAAAK,aAAA,CAACH,eAAe,EAAK,IAAI,CAACI,KAAQ,CAAC;EAC3C;AACD;AAEA,eAAeH,WAAW","ignoreList":[]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
2
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
3
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
-
import React, { Component } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { View, ScrollView, StyleSheet } from "react-native";
|
|
6
|
+
import { Text } from "@plusscommunities/pluss-core-app/components";
|
|
7
|
+
import { connect } from "react-redux";
|
|
8
|
+
import _ from "lodash";
|
|
9
|
+
import { maintenanceActions } from "../apis";
|
|
10
|
+
import { jobsLoaded, jobStatusesUpdate, jobHideSeenUpdate } from "../actions";
|
|
11
|
+
import MaintenanceWidgetItem from "./MaintenanceWidgetItem";
|
|
12
|
+
import { Services } from "../feature.config";
|
|
13
|
+
import { Colours, Components } from "../core.config";
|
|
14
|
+
import { values } from "../values.config";
|
|
14
15
|
const MAX_ITEMS = 10;
|
|
15
16
|
class WidgetSmall extends Component {
|
|
16
17
|
constructor(props) {
|
|
@@ -28,7 +29,7 @@ class WidgetSmall extends Component {
|
|
|
28
29
|
userCategory
|
|
29
30
|
} = this.props;
|
|
30
31
|
if (options && !_.isEmpty(options.EmptyText)) return options.EmptyText;
|
|
31
|
-
return userCategory ===
|
|
32
|
+
return userCategory === "staff" ? values.emptyRequestsStaff : values.emptyRequestsUser;
|
|
32
33
|
});
|
|
33
34
|
_defineProperty(this, "refresh", () => {
|
|
34
35
|
this.onLoadingChanged(true, async () => {
|
|
@@ -37,7 +38,7 @@ class WidgetSmall extends Component {
|
|
|
37
38
|
// console.log('WidgetSmall - refresh', res.data);
|
|
38
39
|
this.props.jobsLoaded(res);
|
|
39
40
|
} catch (error) {
|
|
40
|
-
console.log(
|
|
41
|
+
console.log("refresh error", error);
|
|
41
42
|
} finally {
|
|
42
43
|
this.onLoadingChanged(false);
|
|
43
44
|
}
|
|
@@ -61,6 +62,8 @@ class WidgetSmall extends Component {
|
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
componentDidMount() {
|
|
65
|
+
this.props.jobStatusesUpdate(this.props.site);
|
|
66
|
+
this.props.jobHideSeenUpdate(this.props.site);
|
|
64
67
|
this.refresh();
|
|
65
68
|
}
|
|
66
69
|
componentDidUpdate(prevProps) {
|
|
@@ -118,14 +121,14 @@ class WidgetSmall extends Component {
|
|
|
118
121
|
paddingTop: 6
|
|
119
122
|
},
|
|
120
123
|
textStyle: {
|
|
121
|
-
color:
|
|
124
|
+
color: "#fff"
|
|
122
125
|
}
|
|
123
126
|
}, "View All"))), this.renderContent());
|
|
124
127
|
}
|
|
125
128
|
}
|
|
126
129
|
const styles = StyleSheet.create({
|
|
127
130
|
sectionContainer: {
|
|
128
|
-
backgroundColor:
|
|
131
|
+
backgroundColor: "#fff",
|
|
129
132
|
paddingTop: 16
|
|
130
133
|
},
|
|
131
134
|
sectionPadding: {
|
|
@@ -137,12 +140,12 @@ const styles = StyleSheet.create({
|
|
|
137
140
|
},
|
|
138
141
|
sectionHeading: {
|
|
139
142
|
marginBottom: 4,
|
|
140
|
-
flexDirection:
|
|
141
|
-
alignContent:
|
|
142
|
-
justifyContent:
|
|
143
|
+
flexDirection: "row",
|
|
144
|
+
alignContent: "flex-start",
|
|
145
|
+
justifyContent: "space-between"
|
|
143
146
|
},
|
|
144
147
|
sectionTitle: {
|
|
145
|
-
fontFamily:
|
|
148
|
+
fontFamily: "sf-bold",
|
|
146
149
|
fontSize: 24,
|
|
147
150
|
color: Colours.TEXT_DARKEST
|
|
148
151
|
}
|
|
@@ -156,7 +159,7 @@ const mapStateToProps = state => {
|
|
|
156
159
|
const jobs = state[values.reducerKey];
|
|
157
160
|
return {
|
|
158
161
|
colourBrandingMain: Colours.getMainBrandingColourFromState(state),
|
|
159
|
-
jobs: _.orderBy(jobs.jobs, [
|
|
162
|
+
jobs: _.orderBy(jobs.jobs, ["createdUnix"], ["desc"]),
|
|
160
163
|
site: user.site,
|
|
161
164
|
userCategory: user.category,
|
|
162
165
|
dataUpdated: notifications.dataUpdated[values.updateKey],
|
|
@@ -164,7 +167,9 @@ const mapStateToProps = state => {
|
|
|
164
167
|
};
|
|
165
168
|
};
|
|
166
169
|
export default connect(mapStateToProps, {
|
|
167
|
-
jobsLoaded
|
|
170
|
+
jobsLoaded,
|
|
171
|
+
jobStatusesUpdate,
|
|
172
|
+
jobHideSeenUpdate
|
|
168
173
|
}, null, {
|
|
169
174
|
forwardRef: true
|
|
170
175
|
})(WidgetSmall);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Component","Text","View","ScrollView","StyleSheet","connect","_","maintenanceActions","jobsLoaded","MaintenanceWidgetItem","Services","Colours","Components","Config","values","MAX_ITEMS","WidgetSmall","constructor","props","_defineProperty","options","isEmpty","Title","strings","featureKey","textFeatureTitle","userCategory","EmptyText","emptyRequestsStaff","emptyRequestsUser","onLoadingChanged","res","getJobsRecursive","site","error","console","log","loading","callback","setState","state","navigation","navigate","screenMaintenance","componentDidMount","refresh","componentDidUpdate","prevProps","dataUpdated","renderContent","jobs","createElement","style","styles","loadingPadding","LoadingStateWidget","height","EmptyStateWidget","title","getEmptyStateText","horizontal","contentContainerStyle","paddingLeft","paddingRight","showsHorizontalScrollIndicator","slice","map","job","key","id","render","colourBrandingMain","sectionContainer","sectionPadding","sectionHeading","sectionTitle","getTitle","InlineButton","onPress","onPressAll","color","touchableStyle","paddingTop","textStyle","create","backgroundColor","paddingHorizontal","paddingBottom","marginBottom","flexDirection","alignContent","justifyContent","fontFamily","fontSize","TEXT_DARKEST","mapStateToProps","_state$strings","user","notifications","reducerKey","getMainBrandingColourFromState","orderBy","category","updateKey","config","forwardRef"],"sources":["WidgetSmall.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Text, View, ScrollView, StyleSheet } from 'react-native';\nimport { connect } from 'react-redux';\nimport _ from 'lodash';\nimport { maintenanceActions } from '../apis';\nimport { jobsLoaded } from '../actions';\nimport MaintenanceWidgetItem from './MaintenanceWidgetItem';\nimport { Services } from '../feature.config';\nimport { Colours, Components, Config } from '../core.config';\nimport { values } from '../values.config';\n\nconst MAX_ITEMS = 10;\n\nclass WidgetSmall extends Component {\n constructor(props) {\n super(props);\n this.state = { loading: false };\n }\n\n componentDidMount() {\n this.refresh();\n }\n\n componentDidUpdate(prevProps) {\n if (!prevProps.dataUpdated && this.props.dataUpdated) this.refresh();\n }\n\n getTitle = () => {\n const { options } = this.props;\n if (options && !_.isEmpty(options.Title)) return options.Title;\n return this.props.strings[`${values.featureKey}_textFeatureTitle`] || values.textFeatureTitle;\n };\n\n getEmptyStateText = () => {\n const { options, userCategory } = this.props;\n if (options && !_.isEmpty(options.EmptyText)) return options.EmptyText;\n return userCategory === 'staff' ? values.emptyRequestsStaff : values.emptyRequestsUser;\n };\n\n refresh = () => {\n this.onLoadingChanged(true, async () => {\n try {\n const res = await maintenanceActions.getJobsRecursive(this.props.site);\n // console.log('WidgetSmall - refresh', res.data);\n this.props.jobsLoaded(res);\n } catch (error) {\n console.log('refresh error', error);\n } finally {\n this.onLoadingChanged(false);\n }\n });\n };\n\n onLoadingChanged = (loading, callback) => {\n this.setState({ loading }, () => {\n if (this.props.onLoadingChanged) this.props.onLoadingChanged(this.state.loading);\n if (callback) callback();\n });\n };\n\n onPressAll = () => {\n Services.navigation.navigate(values.screenMaintenance, { options: this.props.options });\n };\n\n renderContent() {\n const { jobs } = this.props;\n if (_.isEmpty(jobs)) {\n if (this.state.loading) {\n return (\n <View style={styles.loadingPadding}>\n <Components.LoadingStateWidget height={180} />\n </View>\n );\n }\n return (\n <View style={styles.loadingPadding}>\n <Components.EmptyStateWidget title={this.getEmptyStateText()} height={180} />\n </View>\n );\n }\n return (\n <ScrollView horizontal contentContainerStyle={{ paddingLeft: 6, paddingRight: 8 }} showsHorizontalScrollIndicator={false}>\n {jobs.slice(0, MAX_ITEMS).map(job => {\n return <MaintenanceWidgetItem key={job.id} job={job} />;\n })}\n </ScrollView>\n );\n }\n\n render() {\n const { colourBrandingMain } = this.props;\n\n return (\n <View style={styles.sectionContainer}>\n <View style={styles.sectionPadding}>\n <View style={styles.sectionHeading}>\n <Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n <Components.InlineButton\n onPress={this.onPressAll}\n color={colourBrandingMain}\n touchableStyle={{ paddingTop: 6 }}\n textStyle={{ color: '#fff' }}\n >\n View All\n </Components.InlineButton>\n </View>\n </View>\n {this.renderContent()}\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n sectionContainer: {\n backgroundColor: '#fff',\n paddingTop: 16,\n },\n sectionPadding: {\n paddingHorizontal: 16,\n paddingBottom: 6,\n },\n loadingPadding: {\n paddingHorizontal: 16,\n },\n sectionHeading: {\n marginBottom: 4,\n flexDirection: 'row',\n alignContent: 'flex-start',\n justifyContent: 'space-between',\n },\n sectionTitle: {\n fontFamily: 'sf-bold',\n fontSize: 24,\n color: Colours.TEXT_DARKEST,\n },\n});\n\nconst mapStateToProps = state => {\n const { user, notifications } = state;\n const jobs = state[values.reducerKey];\n return {\n colourBrandingMain: Colours.getMainBrandingColourFromState(state),\n jobs: _.orderBy(jobs.jobs, ['createdUnix'], ['desc']),\n site: user.site,\n userCategory: user.category,\n dataUpdated: notifications.dataUpdated[values.updateKey],\n strings: state.strings?.config || {},\n };\n};\n\nexport default connect(mapStateToProps, { jobsLoaded }, null, { forwardRef: true })(WidgetSmall);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AACjE,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,kBAAkB,QAAQ,SAAS;AAC5C,SAASC,UAAU,QAAQ,YAAY;AACvC,OAAOC,qBAAqB,MAAM,yBAAyB;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,EAAEC,UAAU,EAAEC,MAAM,QAAQ,gBAAgB;AAC5D,SAASC,MAAM,QAAQ,kBAAkB;AAEzC,MAAMC,SAAS,GAAG,EAAE;AAEpB,MAAMC,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CAAeQ,MAAM,KAAI,CAAC;EACrC,CAAC;AACH,CAAC;AAED,eAAenG,OAAO,CAAC0F,eAAe,EAAE;EAAEvF;AAAW,CAAC,EAAE,IAAI,EAAE;EAAEiG,UAAU,EAAE;AAAK,CAAC,CAAC,CAACzF,WAAW,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["React","Component","View","ScrollView","StyleSheet","Text","connect","_","maintenanceActions","jobsLoaded","jobStatusesUpdate","jobHideSeenUpdate","MaintenanceWidgetItem","Services","Colours","Components","values","MAX_ITEMS","WidgetSmall","constructor","props","_defineProperty","options","isEmpty","Title","strings","featureKey","textFeatureTitle","userCategory","EmptyText","emptyRequestsStaff","emptyRequestsUser","onLoadingChanged","res","getJobsRecursive","site","error","console","log","loading","callback","setState","state","navigation","navigate","screenMaintenance","componentDidMount","refresh","componentDidUpdate","prevProps","dataUpdated","renderContent","jobs","createElement","style","styles","loadingPadding","LoadingStateWidget","height","EmptyStateWidget","title","getEmptyStateText","horizontal","contentContainerStyle","paddingLeft","paddingRight","showsHorizontalScrollIndicator","slice","map","job","key","id","render","colourBrandingMain","sectionContainer","sectionPadding","sectionHeading","sectionTitle","getTitle","InlineButton","onPress","onPressAll","color","touchableStyle","paddingTop","textStyle","create","backgroundColor","paddingHorizontal","paddingBottom","marginBottom","flexDirection","alignContent","justifyContent","fontFamily","fontSize","TEXT_DARKEST","mapStateToProps","_state$strings","user","notifications","reducerKey","getMainBrandingColourFromState","orderBy","category","updateKey","config","forwardRef"],"sources":["WidgetSmall.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, ScrollView, StyleSheet } from \"react-native\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport { connect } from \"react-redux\";\nimport _ from \"lodash\";\nimport { maintenanceActions } from \"../apis\";\nimport { jobsLoaded, jobStatusesUpdate, jobHideSeenUpdate } from \"../actions\";\nimport MaintenanceWidgetItem from \"./MaintenanceWidgetItem\";\nimport { Services } from \"../feature.config\";\nimport { Colours, Components } from \"../core.config\";\nimport { values } from \"../values.config\";\n\nconst MAX_ITEMS = 10;\n\nclass WidgetSmall extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = { loading: false };\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.props.jobStatusesUpdate(this.props.site);\n\t\tthis.props.jobHideSeenUpdate(this.props.site);\n\t\tthis.refresh();\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (!prevProps.dataUpdated && this.props.dataUpdated) this.refresh();\n\t}\n\n\tgetTitle = () => {\n\t\tconst { options } = this.props;\n\t\tif (options && !_.isEmpty(options.Title)) return options.Title;\n\t\treturn (\n\t\t\tthis.props.strings[`${values.featureKey}_textFeatureTitle`] ||\n\t\t\tvalues.textFeatureTitle\n\t\t);\n\t};\n\n\tgetEmptyStateText = () => {\n\t\tconst { options, userCategory } = this.props;\n\t\tif (options && !_.isEmpty(options.EmptyText)) return options.EmptyText;\n\t\treturn userCategory === \"staff\"\n\t\t\t? values.emptyRequestsStaff\n\t\t\t: values.emptyRequestsUser;\n\t};\n\n\trefresh = () => {\n\t\tthis.onLoadingChanged(true, async () => {\n\t\t\ttry {\n\t\t\t\tconst res = await maintenanceActions.getJobsRecursive(this.props.site);\n\t\t\t\t// console.log('WidgetSmall - refresh', res.data);\n\t\t\t\tthis.props.jobsLoaded(res);\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(\"refresh error\", error);\n\t\t\t} finally {\n\t\t\t\tthis.onLoadingChanged(false);\n\t\t\t}\n\t\t});\n\t};\n\n\tonLoadingChanged = (loading, callback) => {\n\t\tthis.setState({ loading }, () => {\n\t\t\tif (this.props.onLoadingChanged)\n\t\t\t\tthis.props.onLoadingChanged(this.state.loading);\n\t\t\tif (callback) callback();\n\t\t});\n\t};\n\n\tonPressAll = () => {\n\t\tServices.navigation.navigate(values.screenMaintenance, {\n\t\t\toptions: this.props.options,\n\t\t});\n\t};\n\n\trenderContent() {\n\t\tconst { jobs } = this.props;\n\t\tif (_.isEmpty(jobs)) {\n\t\t\tif (this.state.loading) {\n\t\t\t\treturn (\n\t\t\t\t\t<View style={styles.loadingPadding}>\n\t\t\t\t\t\t<Components.LoadingStateWidget height={180} />\n\t\t\t\t\t</View>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn (\n\t\t\t\t<View style={styles.loadingPadding}>\n\t\t\t\t\t<Components.EmptyStateWidget\n\t\t\t\t\t\ttitle={this.getEmptyStateText()}\n\t\t\t\t\t\theight={180}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<ScrollView\n\t\t\t\thorizontal\n\t\t\t\tcontentContainerStyle={{ paddingLeft: 6, paddingRight: 8 }}\n\t\t\t\tshowsHorizontalScrollIndicator={false}\n\t\t\t>\n\t\t\t\t{jobs.slice(0, MAX_ITEMS).map((job) => {\n\t\t\t\t\treturn <MaintenanceWidgetItem key={job.id} job={job} />;\n\t\t\t\t})}\n\t\t\t</ScrollView>\n\t\t);\n\t}\n\n\trender() {\n\t\tconst { colourBrandingMain } = this.props;\n\n\t\treturn (\n\t\t\t<View style={styles.sectionContainer}>\n\t\t\t\t<View style={styles.sectionPadding}>\n\t\t\t\t\t<View style={styles.sectionHeading}>\n\t\t\t\t\t\t<Text style={styles.sectionTitle}>{this.getTitle()}</Text>\n\t\t\t\t\t\t<Components.InlineButton\n\t\t\t\t\t\t\tonPress={this.onPressAll}\n\t\t\t\t\t\t\tcolor={colourBrandingMain}\n\t\t\t\t\t\t\ttouchableStyle={{ paddingTop: 6 }}\n\t\t\t\t\t\t\ttextStyle={{ color: \"#fff\" }}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\tView All\n\t\t\t\t\t\t</Components.InlineButton>\n\t\t\t\t\t</View>\n\t\t\t\t</View>\n\t\t\t\t{this.renderContent()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tsectionContainer: {\n\t\tbackgroundColor: \"#fff\",\n\t\tpaddingTop: 16,\n\t},\n\tsectionPadding: {\n\t\tpaddingHorizontal: 16,\n\t\tpaddingBottom: 6,\n\t},\n\tloadingPadding: {\n\t\tpaddingHorizontal: 16,\n\t},\n\tsectionHeading: {\n\t\tmarginBottom: 4,\n\t\tflexDirection: \"row\",\n\t\talignContent: \"flex-start\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\tsectionTitle: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 24,\n\t\tcolor: Colours.TEXT_DARKEST,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\tconst { user, notifications } = state;\n\tconst jobs = state[values.reducerKey];\n\treturn {\n\t\tcolourBrandingMain: Colours.getMainBrandingColourFromState(state),\n\t\tjobs: _.orderBy(jobs.jobs, [\"createdUnix\"], [\"desc\"]),\n\t\tsite: user.site,\n\t\tuserCategory: user.category,\n\t\tdataUpdated: notifications.dataUpdated[values.updateKey],\n\t\tstrings: state.strings?.config || {},\n\t};\n};\n\nexport default connect(\n\tmapStateToProps,\n\t{ jobsLoaded, jobStatusesUpdate, jobHideSeenUpdate },\n\tnull,\n\t{ forwardRef: true },\n)(WidgetSmall);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,kBAAkB,QAAQ,SAAS;AAC5C,SAASC,UAAU,EAAEC,iBAAiB,EAAEC,iBAAiB,QAAQ,YAAY;AAC7E,OAAOC,qBAAqB,MAAM,yBAAyB;AAC3D,SAASC,QAAQ,QAAQ,mBAAmB;AAC5C,SAASC,OAAO,EAAEC,UAAU,QAAQ,gBAAgB;AACpD,SAASC,MAAM,QAAQ,kBAAkB;AAEzC,MAAMC,SAAS,GAAG,EAAE;AAEpB,MA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IAC3BtD,WAAW,EAAEkD,aAAa,CAAClD,WAAW,CAAClC,MAAM,CAACyF,SAAS,CAAC;IACxDhF,OAAO,EAAE,EAAAyE,cAAA,GAAAxD,KAAK,CAACjB,OAAO,cAAAyE,cAAA,uBAAbA,cAAA,CAAeQ,MAAM,KAAI,CAAC;EACpC,CAAC;AACF,CAAC;AAED,eAAepG,OAAO,CACrB2F,eAAe,EACf;EAAExF,UAAU;EAAEC,iBAAiB;EAAEC;AAAkB,CAAC,EACpD,IAAI,EACJ;EAAEgG,UAAU,EAAE;AAAK,CACpB,CAAC,CAACzF,WAAW,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
-
import * as PlussCore from
|
|
2
|
+
import * as PlussCore from "@plusscommunities/pluss-core-app";
|
|
3
3
|
const {
|
|
4
4
|
Apis,
|
|
5
|
-
Fonts,
|
|
6
5
|
Actions,
|
|
7
6
|
ActionTypes,
|
|
8
7
|
Config,
|
|
@@ -13,5 +12,5 @@ const {
|
|
|
13
12
|
Constants,
|
|
14
13
|
Colours
|
|
15
14
|
} = PlussCore;
|
|
16
|
-
export { Apis,
|
|
15
|
+
export { Apis, Actions, ActionTypes, Config, Components, Styles, Session, Helper, Constants, Colours };
|
|
17
16
|
//# sourceMappingURL=core.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlussCore","Apis","
|
|
1
|
+
{"version":3,"names":["PlussCore","Apis","Actions","ActionTypes","Config","Components","Styles","Session","Helper","Constants","Colours"],"sources":["core.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from \"@plusscommunities/pluss-core-app\";\n\nconst {\n\tApis,\n\tActions,\n\tActionTypes,\n\tConfig,\n\tComponents,\n\tStyles,\n\tSession,\n\tHelper,\n\tConstants,\n\tColours,\n} = PlussCore;\nexport {\n\tApis,\n\tActions,\n\tActionTypes,\n\tConfig,\n\tComponents,\n\tStyles,\n\tSession,\n\tHelper,\n\tConstants,\n\tColours,\n};\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAE7D,MAAM;EACLC,IAAI;EACJC,OAAO;EACPC,WAAW;EACXC,MAAM;EACNC,UAAU;EACVC,MAAM;EACNC,OAAO;EACPC,MAAM;EACNC,SAAS;EACTC;AACD,CAAC,GAAGV,SAAS;AACb,SACCC,IAAI,EACJC,OAAO,EACPC,WAAW,EACXC,MAAM,EACNC,UAAU,EACVC,MAAM,EACNC,OAAO,EACPC,MAAM,EACNC,SAAS,EACTC,OAAO","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// import * as PlussCore from '../../pluss-core/src';
|
|
2
|
-
import * as PlussCore from
|
|
3
|
-
import { values } from
|
|
2
|
+
import * as PlussCore from "@plusscommunities/pluss-core-app";
|
|
3
|
+
import { values } from "./values.config";
|
|
4
4
|
export const Services = {
|
|
5
5
|
navigation: null
|
|
6
6
|
};
|
|
@@ -22,7 +22,7 @@ const FeatureConfig = {
|
|
|
22
22
|
title: values.textAddMenuTitle,
|
|
23
23
|
navigate: values.screenServiceRequest,
|
|
24
24
|
visibleExps: {
|
|
25
|
-
type:
|
|
25
|
+
type: "feature",
|
|
26
26
|
value: values.featureKey
|
|
27
27
|
}
|
|
28
28
|
},
|
|
@@ -31,13 +31,13 @@ const FeatureConfig = {
|
|
|
31
31
|
title: values.textMoreMenuTitle,
|
|
32
32
|
navigate: values.screenMaintenance,
|
|
33
33
|
visibleExps: {
|
|
34
|
-
type:
|
|
34
|
+
type: "and",
|
|
35
35
|
exps: [{
|
|
36
|
-
type:
|
|
37
|
-
value:
|
|
36
|
+
type: "notHidden",
|
|
37
|
+
value: "maintenanceRequest"
|
|
38
38
|
}, {
|
|
39
|
-
type:
|
|
40
|
-
value:
|
|
39
|
+
type: "notUserType",
|
|
40
|
+
value: "KIOSK"
|
|
41
41
|
}]
|
|
42
42
|
}
|
|
43
43
|
} : undefined,
|
|
@@ -49,19 +49,19 @@ const FeatureConfig = {
|
|
|
49
49
|
},
|
|
50
50
|
hideTabBar: [],
|
|
51
51
|
env: {
|
|
52
|
-
baseStage:
|
|
53
|
-
baseAPIUrl:
|
|
52
|
+
baseStage: "",
|
|
53
|
+
baseAPIUrl: "",
|
|
54
54
|
hasGradientHeader: false,
|
|
55
|
-
defaultProfileImage:
|
|
56
|
-
tinyChatDefault:
|
|
57
|
-
baseUploadsUrl:
|
|
55
|
+
defaultProfileImage: "",
|
|
56
|
+
tinyChatDefault: "",
|
|
57
|
+
baseUploadsUrl: "",
|
|
58
58
|
allowMediaDownload: false,
|
|
59
59
|
allowMediaSharing: false,
|
|
60
|
-
awsUploadsBucket:
|
|
61
|
-
awsStorageBucket:
|
|
62
|
-
preferredSite:
|
|
60
|
+
awsUploadsBucket: "",
|
|
61
|
+
awsStorageBucket: "",
|
|
62
|
+
preferredSite: "",
|
|
63
63
|
strings: {},
|
|
64
|
-
newEventDefaults:
|
|
64
|
+
newEventDefaults: "",
|
|
65
65
|
defaultAllowComments: true
|
|
66
66
|
},
|
|
67
67
|
init: (environment, navigation, notificationBell) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlussCore","values","Services","navigation","BaseComponents","NotificationBell","FeatureConfig","key","featureKey","aliases","title","textFeatureTitle","gridMenu","icon","iconGridMenu","viewBox","gridViewBox","navigate","screenMaintenance","addMenu","order","orderAddMenu","iconAddMenu","textAddMenuTitle","screenServiceRequest","visibleExps","type","value","moreMenu","hasMoreOption","orderMoreMenu","textMoreMenuTitle","exps","undefined","kioskAction","orderKioskAction","iconKioskAction","textKioskActionTitle","hideTabBar","env","baseStage","baseAPIUrl","hasGradientHeader","defaultProfileImage","tinyChatDefault","baseUploadsUrl","allowMediaDownload","allowMediaSharing","awsUploadsBucket","awsStorageBucket","preferredSite","strings","newEventDefaults","defaultAllowComments","init","environment","notificationBell","Config"],"sources":["feature.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from
|
|
1
|
+
{"version":3,"names":["PlussCore","values","Services","navigation","BaseComponents","NotificationBell","FeatureConfig","key","featureKey","aliases","title","textFeatureTitle","gridMenu","icon","iconGridMenu","viewBox","gridViewBox","navigate","screenMaintenance","addMenu","order","orderAddMenu","iconAddMenu","textAddMenuTitle","screenServiceRequest","visibleExps","type","value","moreMenu","hasMoreOption","orderMoreMenu","textMoreMenuTitle","exps","undefined","kioskAction","orderKioskAction","iconKioskAction","textKioskActionTitle","hideTabBar","env","baseStage","baseAPIUrl","hasGradientHeader","defaultProfileImage","tinyChatDefault","baseUploadsUrl","allowMediaDownload","allowMediaSharing","awsUploadsBucket","awsStorageBucket","preferredSite","strings","newEventDefaults","defaultAllowComments","init","environment","notificationBell","Config"],"sources":["feature.config.js"],"sourcesContent":["// import * as PlussCore from '../../pluss-core/src';\nimport * as PlussCore from \"@plusscommunities/pluss-core-app\";\nimport { values } from \"./values.config\";\n\nexport const Services = {\n\tnavigation: null,\n};\n\nexport const BaseComponents = {\n\tNotificationBell: null,\n};\n\nconst FeatureConfig = {\n\tkey: values.featureKey,\n\taliases: values.aliases,\n\ttitle: values.textFeatureTitle,\n\tgridMenu: {\n\t\ticon: values.iconGridMenu,\n\t\tviewBox: values.gridViewBox,\n\t\tnavigate: values.screenMaintenance,\n\t},\n\taddMenu: {\n\t\torder: values.orderAddMenu,\n\t\ticon: values.iconAddMenu,\n\t\ttitle: values.textAddMenuTitle,\n\t\tnavigate: values.screenServiceRequest,\n\t\tvisibleExps: { type: \"feature\", value: values.featureKey },\n\t},\n\tmoreMenu: values.hasMoreOption\n\t\t? {\n\t\t\t\torder: values.orderMoreMenu,\n\t\t\t\ttitle: values.textMoreMenuTitle,\n\t\t\t\tnavigate: values.screenMaintenance,\n\t\t\t\tvisibleExps: {\n\t\t\t\t\ttype: \"and\",\n\t\t\t\t\texps: [\n\t\t\t\t\t\t{ type: \"notHidden\", value: \"maintenanceRequest\" },\n\t\t\t\t\t\t{ type: \"notUserType\", value: \"KIOSK\" },\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t}\n\t\t: undefined,\n\tkioskAction: {\n\t\torder: values.orderKioskAction,\n\t\ticon: values.iconKioskAction,\n\t\ttitle: values.textKioskActionTitle,\n\t\tnavigate: values.screenServiceRequest,\n\t},\n\thideTabBar: [],\n\tenv: {\n\t\tbaseStage: \"\",\n\t\tbaseAPIUrl: \"\",\n\t\thasGradientHeader: false,\n\t\tdefaultProfileImage: \"\",\n\t\ttinyChatDefault: \"\",\n\t\tbaseUploadsUrl: \"\",\n\t\tallowMediaDownload: false,\n\t\tallowMediaSharing: false,\n\t\tawsUploadsBucket: \"\",\n\t\tawsStorageBucket: \"\",\n\t\tpreferredSite: \"\",\n\t\tstrings: {},\n\t\tnewEventDefaults: \"\",\n\t\tdefaultAllowComments: true,\n\t},\n\tinit: (environment, navigation, notificationBell) => {\n\t\tFeatureConfig.env = environment;\n\t\tServices.navigation = navigation;\n\t\tBaseComponents.NotificationBell = notificationBell;\n\t\tPlussCore.Config.init(environment, navigation);\n\t},\n};\nexport default FeatureConfig;\n"],"mappings":"AAAA;AACA,OAAO,KAAKA,SAAS,MAAM,kCAAkC;AAC7D,SAASC,MAAM,QAAQ,iBAAiB;AAExC,OAAO,MAAMC,QAAQ,GAAG;EACvBC,UAAU,EAAE;AACb,CAAC;AAED,OAAO,MAAMC,cAAc,GAAG;EAC7BC,gBAAgB,EAAE;AACnB,CAAC;AAED,MAAMC,aAAa,GAAG;EACrBC,GAAG,EAAEN,MAAM,CAACO,UAAU;EACtBC,OAAO,EAAER,MAAM,CAACQ,OAAO;EACvBC,KAAK,EAAET,MAAM,CAACU,gBAAgB;EAC9BC,QAAQ,EAAE;IACTC,IAAI,EAAEZ,MAAM,CAACa,YAAY;IACzBC,OAAO,EAAEd,MAAM,CAACe,WAAW;IAC3BC,QAAQ,EAAEhB,MAAM,CAACiB;EAClB,CAAC;EACDC,OAAO,EAAE;I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