@sprucelabs/spruce-location-utils 3.2.31 → 5.0.1
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/build/esm/index-module.d.ts +0 -1
- package/build/esm/index-module.js +0 -1
- package/build/esm/viewControllers/LocationListCard.vc.js +1 -1
- package/build/index-module.d.ts +0 -1
- package/build/index-module.js +1 -3
- package/build/viewControllers/LocationListCard.vc.js +2 -5
- package/package.json +1 -5
- package/build/esm/renderers/locationRenderer.d.ts +0 -5
- package/build/esm/renderers/locationRenderer.js +0 -8
- package/build/renderers/locationRenderer.d.ts +0 -5
- package/build/renderers/locationRenderer.js +0 -10
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { default as organizationAssert } from './tests/organizationAssert';
|
|
2
2
|
export { default as LocationListCardViewController } from './viewControllers/LocationListCard.vc';
|
|
3
3
|
export * from './types-module';
|
|
4
|
-
export { default as locationRenderer } from './renderers/locationRenderer';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { default as organizationAssert } from './tests/organizationAssert.js';
|
|
2
2
|
export { default as LocationListCardViewController } from './viewControllers/LocationListCard.vc.js';
|
|
3
3
|
export * from './types-module.js';
|
|
4
|
-
export { default as locationRenderer } from './renderers/locationRenderer.js';
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { AbstractViewController, buildActiveRecordCard, } from '@sprucelabs/heartwood-view-controllers';
|
|
11
11
|
import { eventResponseUtil } from '@sprucelabs/spruce-event-utils';
|
|
12
|
-
import locationRenderer from '
|
|
12
|
+
import { locationRenderer } from '@sprucelabs/spruce-skill-utils';
|
|
13
13
|
export default class LocationListCardViewController extends AbstractViewController {
|
|
14
14
|
constructor(options) {
|
|
15
15
|
super(options);
|
package/build/index-module.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export { default as organizationAssert } from './tests/organizationAssert';
|
|
2
2
|
export { default as LocationListCardViewController } from './viewControllers/LocationListCard.vc';
|
|
3
3
|
export * from './types-module';
|
|
4
|
-
export { default as locationRenderer } from './renderers/locationRenderer';
|
package/build/index-module.js
CHANGED
|
@@ -17,11 +17,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
20
|
+
exports.LocationListCardViewController = exports.organizationAssert = void 0;
|
|
21
21
|
var organizationAssert_1 = require("./tests/organizationAssert");
|
|
22
22
|
Object.defineProperty(exports, "organizationAssert", { enumerable: true, get: function () { return __importDefault(organizationAssert_1).default; } });
|
|
23
23
|
var LocationListCard_vc_1 = require("./viewControllers/LocationListCard.vc");
|
|
24
24
|
Object.defineProperty(exports, "LocationListCardViewController", { enumerable: true, get: function () { return __importDefault(LocationListCard_vc_1).default; } });
|
|
25
25
|
__exportStar(require("./types-module"), exports);
|
|
26
|
-
var locationRenderer_1 = require("./renderers/locationRenderer");
|
|
27
|
-
Object.defineProperty(exports, "locationRenderer", { enumerable: true, get: function () { return __importDefault(locationRenderer_1).default; } });
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const heartwood_view_controllers_1 = require("@sprucelabs/heartwood-view-controllers");
|
|
7
4
|
const spruce_event_utils_1 = require("@sprucelabs/spruce-event-utils");
|
|
8
|
-
const
|
|
5
|
+
const spruce_skill_utils_1 = require("@sprucelabs/spruce-skill-utils");
|
|
9
6
|
class LocationListCardViewController extends heartwood_view_controllers_1.AbstractViewController {
|
|
10
7
|
constructor(options) {
|
|
11
8
|
super(options);
|
|
@@ -47,7 +44,7 @@ class LocationListCardViewController extends heartwood_view_controllers_1.Abstra
|
|
|
47
44
|
content: location.name,
|
|
48
45
|
},
|
|
49
46
|
subText: {
|
|
50
|
-
content:
|
|
47
|
+
content: spruce_skill_utils_1.locationRenderer.renderAddress(address),
|
|
51
48
|
},
|
|
52
49
|
},
|
|
53
50
|
{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sprucelabs/spruce-location-utils",
|
|
3
3
|
"description": "Location Utilities",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.1",
|
|
5
5
|
"skill": {
|
|
6
6
|
"namespace": "locations"
|
|
7
7
|
},
|
|
@@ -16,16 +16,12 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"build/index-module.js",
|
|
18
18
|
"build/index-module.d.ts",
|
|
19
|
-
"build/renderers/locationRenderer.js",
|
|
20
|
-
"build/renderers/locationRenderer.d.ts",
|
|
21
19
|
"build/tests/organizationAssert.js",
|
|
22
20
|
"build/tests/organizationAssert.d.ts",
|
|
23
21
|
"build/viewControllers/LocationListCard.vc.js",
|
|
24
22
|
"build/viewControllers/LocationListCard.vc.d.ts",
|
|
25
23
|
"build/esm/index-module.js",
|
|
26
24
|
"build/esm/index-module.d.ts",
|
|
27
|
-
"build/esm/renderers/locationRenderer.js",
|
|
28
|
-
"build/esm/renderers/locationRenderer.d.ts",
|
|
29
25
|
"build/esm/tests/organizationAssert.js",
|
|
30
26
|
"build/esm/tests/organizationAssert.d.ts",
|
|
31
27
|
"build/esm/viewControllers/LocationListCard.vc.js",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const locationRenderer = {
|
|
4
|
-
renderAddress(address) {
|
|
5
|
-
return `${address
|
|
6
|
-
? `${address.street1}${address.street2 ? ` ${address.street2}` : ``} ${address.city} ${address.zip}`
|
|
7
|
-
: ``}`;
|
|
8
|
-
},
|
|
9
|
-
};
|
|
10
|
-
exports.default = locationRenderer;
|