@rankingcoach/vanguard 1.12.3 → 1.14.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-AdvancedMarker.js +235 -0
- package/dist/index-Autocomplete.js +62 -62
- package/dist/index-ControlledValuePlugin.js +1 -1
- package/dist/index-CsvContentValidator.js +30 -0
- package/dist/index-DateRange.js +1 -1
- package/dist/index-DefaultValuePlugin.js +1 -1
- package/dist/index-Document.types.js +3 -3
- package/dist/index-DocumentContentProcessor.js +42 -0
- package/dist/index-DocumentUpload.js +103 -109
- package/dist/index-GoogleMaps.js +42 -36
- package/dist/index-GoogleMapsAdvancedMarker.js +64 -0
- package/dist/index-GoogleMapsAdvancedMarkerContent.js +41 -0
- package/dist/index-HyperlinkPlugin.js +1 -1
- package/dist/index-KeywordNode.js +1 -1
- package/dist/index-KeywordPlugin.js +1 -1
- package/dist/index-ModalService.js +3 -1
- package/dist/index-OnChangeContentPlugin.js +1 -1
- package/dist/index-OnFocusOnBlurPlugin.js +1 -1
- package/dist/index-Select2.js +1 -1
- package/dist/index-SelectInput.js +478 -26
- package/dist/index-_virtual10.js +2 -3
- package/dist/index-_virtual21.js +2 -2
- package/dist/index-_virtual22.js +2 -2
- package/dist/index-_virtual23.js +3 -2
- package/dist/index-_virtual24.js +2 -2
- package/dist/index-_virtual25.js +2 -2
- package/dist/index-_virtual26.js +2 -2
- package/dist/index-_virtual27.js +2 -2
- package/dist/index-_virtual28.js +2 -2
- package/dist/index-_virtual29.js +2 -2
- package/dist/index-_virtual31.js +2 -2
- package/dist/index-_virtual32.js +2 -2
- package/dist/index-_virtual33.js +2 -2
- package/dist/index-_virtual34.js +2 -3
- package/dist/index-_virtual63.js +2 -2
- package/dist/index-_virtual64.js +2 -2
- package/dist/index-_virtual77.js +4 -2
- package/dist/index-_virtual78.js +1 -1
- package/dist/index-_virtual79.js +1 -1
- package/dist/index-_virtual80.js +1 -1
- package/dist/index-_virtual81.js +1 -1
- package/dist/index-_virtual82.js +1 -1
- package/dist/index-_virtual83.js +1 -1
- package/dist/index-_virtual84.js +1 -1
- package/dist/index-_virtual85.js +2 -4
- package/dist/index-_virtual9.js +3 -2
- package/dist/index-applyInternationalSeparatorStyle.js +1 -1
- package/dist/index-cjs.js +1 -1
- package/dist/index-colorManipulator3.js +2 -2
- package/dist/index-constants.js +1 -1
- package/dist/index-constants2.js +8 -2
- package/dist/index-constants3.js +2 -8
- package/dist/index-createExtensionPattern.js +1 -1
- package/dist/index-createStyled2.js +6 -6
- package/dist/index-dist3.js +1 -1
- package/dist/index-dist5.js +1 -1
- package/dist/index-exenv.js +1 -1
- package/dist/index-extractCountryCallingCode.js +1 -1
- package/dist/index-extractPhoneContext.js +1 -1
- package/dist/index-isViablePhoneNumber.js +1 -1
- package/dist/index-keycode.js +1 -1
- package/dist/index-lib2.js +1 -1
- package/dist/index-lib3.js +1 -1
- package/dist/index-lib4.js +1 -1
- package/dist/index-lib5.js +1 -1
- package/dist/index-map-context.js +12 -0
- package/dist/index-map-helper.js +38 -0
- package/dist/index-mpd-parser.es.js +1 -1
- package/dist/index-parse2.js +1 -1
- package/dist/index-stripIddPrefix.js +1 -1
- package/dist/index-style-to-object.js +1 -1
- package/dist/index-tiny-invariant.js +12 -0
- package/dist/index-useHyperlinkEditor.js +1 -1
- package/dist/index-useLexicalToolbar.js +1 -1
- package/dist/index-useThemeWithoutDefault3.js +1 -1
- package/dist/index.js +427 -418
- package/dist/types/core/Autocomplete/stories/WithMultiple.story.d.ts +0 -4
- package/dist/types/core/Documents/Document.types.d.ts +2 -1
- package/dist/types/core/Documents/DocumentUpload/stories/WithCustomDimensions.story.d.ts +2 -0
- package/dist/types/core/Documents/DocumentUpload/stories/WithDocumentName.story.d.ts +2 -0
- package/dist/types/core/Documents/DocumentUpload/stories/_DocumentUpload.default.d.ts +2 -2
- package/dist/types/core/FileSelect/MediaItemProcessors/DocumentContentProcessor.d.ts +9 -0
- package/dist/types/core/FileSelect/MediaItemValidators/CsvContentValidator.d.ts +15 -0
- package/dist/types/core/FileSelect/index.d.ts +2 -1
- package/dist/types/core/FileSelect/stories/WithCsvValidator.story.d.ts +2 -0
- package/dist/types/core/FileSelect/stories/WithDocumentContentProcessor.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/GoogleMaps.d.ts +2 -1
- package/dist/types/core/GoogleMaps/GoogleMapsAdvancedMarker/GoogleMapsAdvancedMarker.d.ts +55 -0
- package/dist/types/core/GoogleMaps/GoogleMapsAdvancedMarker/GoogleMapsAdvancedMarkerContent.d.ts +41 -0
- package/dist/types/core/GoogleMaps/index.d.ts +6 -0
- package/dist/types/core/GoogleMaps/map-context.d.ts +1 -1
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarker.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarkerCustomIcon.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithAdvancedMarkerHTML.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMapIdAndMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMarkerInfoBox.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMultipleAdvancedMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithMultipleMarkers.story.d.ts +2 -0
- package/dist/types/core/GoogleMaps/stories/WithSingleMarker.story.d.ts +2 -0
- package/dist/types/core/Modal/stories/CloseConfirmModalViaHeader.story.d.ts +2 -0
- package/dist/types/core/Modal/stories/CloseViaHeaderButtonWithResponse.story.d.ts +2 -0
- package/dist/types/index.d.ts +8 -1
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist-wordpress/index.js +396 -394
- package/package.json +1 -1
- package/dist/index-SelectInput2.js +0 -484
- package/dist/types/core/FileSelect/SelectInput.d.ts +0 -11
|
@@ -1,146 +1,140 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { translationService as
|
|
3
|
-
import { Button as
|
|
4
|
-
import { ComponentContainer as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { translationService as F } from "./index-translation.service.js";
|
|
3
|
+
import { Button as S, ButtonSizes as y, ButtonTypes as g } from "./index-Button.js";
|
|
4
|
+
import { ComponentContainer as m } from "./index-ComponentContainer.js";
|
|
5
|
+
import { ContentType as n } from "./index-Document.types.js";
|
|
6
|
+
import { DocumentContentProcessor as U } from "./index-DocumentContentProcessor.js";
|
|
7
|
+
import { ImageContentProcessor as B } from "./index-ImageContentProcessor.js";
|
|
8
|
+
import { ImageCompressorTransformer as R } from "./index-ImageCompressorTransformer.js";
|
|
9
|
+
import { FileSizeValidator as A } from "./index-FileSizeValidator.js";
|
|
10
|
+
import { MediaItemSelectInput as O } from "./index-MediaItemSelectInput.js";
|
|
11
|
+
import { Icon as W, IconSize as _ } from "./index-Icon.js";
|
|
12
|
+
import { IconNames as V } from "./index-IconNames.js";
|
|
13
|
+
import { Render as T } from "./index-Render.js";
|
|
14
|
+
import { snackbarService as j } from "./index-SnackBarService.js";
|
|
15
|
+
import { Text as D, FontWeights as P, TextTypes as H } from "./index-Text.js";
|
|
16
|
+
import { useState as x } from "react";
|
|
17
|
+
import s from "./index-DocumentUpload.module.scss.js";
|
|
18
|
+
import J from "./index-Collapse2.js";
|
|
19
|
+
import { DocumentDisplay as q } from "./index-DocumentDisplay.js";
|
|
20
|
+
const L = new R({
|
|
21
|
+
compressorOptions: {
|
|
22
|
+
maxWidth: 3e3,
|
|
23
|
+
maxHeight: 3e3,
|
|
24
|
+
quality: 0.8,
|
|
25
|
+
convertSize: 5242880
|
|
26
|
+
}
|
|
27
|
+
}), K = new U(), Q = new B({}), X = new A({
|
|
28
|
+
maxSize: 5242880
|
|
29
|
+
}), Se = (t) => {
|
|
17
30
|
const {
|
|
18
|
-
testId:
|
|
19
|
-
onDocumentSelected:
|
|
20
|
-
onDocumentRemoved:
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
23
|
-
documentName:
|
|
24
|
-
} = t, [e,
|
|
25
|
-
documentName:
|
|
26
|
-
}).value : "Upload document",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
srcIsBase64: !0,
|
|
34
|
-
fileSrc: (C = l.target) == null ? void 0 : C.result,
|
|
35
|
-
fileName: i.name,
|
|
36
|
-
fileMimeType: i.type,
|
|
37
|
-
documentName: n
|
|
38
|
-
};
|
|
39
|
-
f(y), U(y);
|
|
40
|
-
}, i.type == "application/pdf") {
|
|
41
|
-
if (i.size > 5242880) {
|
|
42
|
-
E.openErrorSnackbar("File size must be between 10kb and 5MB.");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
a.readAsDataURL(i);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
new G(i, {
|
|
49
|
-
maxWidth: 3e3,
|
|
50
|
-
maxHeight: 3e3,
|
|
51
|
-
quality: 0.8,
|
|
52
|
-
convertSize: 5242880,
|
|
53
|
-
success: (l) => {
|
|
54
|
-
if (l.size > 5242880) {
|
|
55
|
-
E.openErrorSnackbar("File size must be between 10kb and 5MB.");
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
a.readAsDataURL(l);
|
|
59
|
-
}
|
|
60
|
-
});
|
|
31
|
+
testId: N = "DocumentUpload",
|
|
32
|
+
onDocumentSelected: k,
|
|
33
|
+
onDocumentRemoved: v,
|
|
34
|
+
width: a = "192px",
|
|
35
|
+
height: c = "154px",
|
|
36
|
+
documentName: r
|
|
37
|
+
} = t, [e, p] = x(), [w, d] = x(!1), z = r ? F.get("Upload %documentName%", {
|
|
38
|
+
documentName: r
|
|
39
|
+
}).value : "Upload document", M = (G) => {
|
|
40
|
+
var C, I;
|
|
41
|
+
const i = G[0];
|
|
42
|
+
if (!i) return;
|
|
43
|
+
if (i.isInvalid) {
|
|
44
|
+
j.openErrorSnackbar("File size must be between 10kb and 5MB.");
|
|
45
|
+
return;
|
|
61
46
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
47
|
+
const h = (C = i.mediaItemContent) == null ? void 0 : C.base64EncodedContent;
|
|
48
|
+
if (!h) return;
|
|
49
|
+
const E = ((I = i.file) == null ? void 0 : I.name) ?? "document", u = {
|
|
50
|
+
srcIsBase64: !0,
|
|
51
|
+
fileSrc: h,
|
|
52
|
+
fileName: E,
|
|
53
|
+
fileMimeType: i.fileType,
|
|
54
|
+
documentName: r
|
|
55
|
+
};
|
|
56
|
+
p(u), k(u);
|
|
57
|
+
}, b = () => {
|
|
58
|
+
p(void 0), v();
|
|
59
|
+
}, f = () => {
|
|
60
|
+
d(!0);
|
|
66
61
|
};
|
|
67
|
-
return
|
|
68
|
-
testId:
|
|
69
|
-
className:
|
|
70
|
-
children: [o(
|
|
71
|
-
type:
|
|
72
|
-
fontWeight:
|
|
73
|
-
children:
|
|
74
|
-
}), o(
|
|
62
|
+
return l(m, {
|
|
63
|
+
testId: N,
|
|
64
|
+
className: s.container,
|
|
65
|
+
children: [o(D, {
|
|
66
|
+
type: H.textHelp,
|
|
67
|
+
fontWeight: P.medium,
|
|
68
|
+
children: r
|
|
69
|
+
}), o(J, {
|
|
75
70
|
in: !!(e != null && e.fileSrc),
|
|
76
|
-
children: o(
|
|
77
|
-
onRemove:
|
|
78
|
-
onChange:
|
|
71
|
+
children: o(Z, {
|
|
72
|
+
onRemove: b,
|
|
73
|
+
onChange: f
|
|
79
74
|
})
|
|
80
|
-
}), o(
|
|
75
|
+
}), o(T, {
|
|
81
76
|
if: !(e != null && e.fileSrc) || !(e != null && e.fileMimeType),
|
|
82
77
|
children: o("div", {
|
|
83
78
|
style: {
|
|
84
|
-
width:
|
|
85
|
-
height:
|
|
79
|
+
width: a,
|
|
80
|
+
height: c
|
|
86
81
|
},
|
|
87
|
-
children: o(
|
|
88
|
-
text:
|
|
89
|
-
onClick:
|
|
82
|
+
children: o(Y, {
|
|
83
|
+
text: z,
|
|
84
|
+
onClick: f
|
|
90
85
|
})
|
|
91
86
|
})
|
|
92
|
-
}), o(
|
|
87
|
+
}), o(T, {
|
|
93
88
|
if: !!(e != null && e.fileSrc) && !!(e != null && e.fileMimeType),
|
|
94
|
-
children: o(
|
|
89
|
+
children: o(q, {
|
|
95
90
|
fileName: (e == null ? void 0 : e.fileName) ?? "file",
|
|
96
91
|
fileSrc: (e == null ? void 0 : e.fileSrc) ?? "",
|
|
97
92
|
fileMimeType: e == null ? void 0 : e.fileMimeType,
|
|
98
|
-
width:
|
|
99
|
-
height:
|
|
93
|
+
width: a,
|
|
94
|
+
height: c,
|
|
100
95
|
showDownload: !1
|
|
101
96
|
})
|
|
102
|
-
}), o(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
onChange: P
|
|
97
|
+
}), o(O, {
|
|
98
|
+
isOpen: w,
|
|
99
|
+
openCallback: () => d(!1),
|
|
100
|
+
accept: [n.APPLICATION_PDF, n.IMAGE_PNG, n.IMAGE_JPG, n.IMAGE_JPEG],
|
|
101
|
+
mediaItemTransformers: [L],
|
|
102
|
+
mediaItemProcessors: [K, Q],
|
|
103
|
+
mediaItemValidators: [X],
|
|
104
|
+
onFilesSelected: M
|
|
111
105
|
})]
|
|
112
106
|
});
|
|
113
|
-
},
|
|
107
|
+
}, Y = (t) => l(m, {
|
|
114
108
|
testId: "UploadDocumentPlaceholder",
|
|
115
109
|
onClick: t.onClick,
|
|
116
|
-
className:
|
|
117
|
-
children: [o(
|
|
118
|
-
type:
|
|
110
|
+
className: s.button,
|
|
111
|
+
children: [o(W, {
|
|
112
|
+
type: _.large,
|
|
119
113
|
hasCircle: !0,
|
|
120
114
|
color: "--n000",
|
|
121
115
|
fillColor: "--p500",
|
|
122
116
|
circleSize: 40,
|
|
123
|
-
children:
|
|
124
|
-
}), o(
|
|
125
|
-
fontWeight:
|
|
117
|
+
children: V.add
|
|
118
|
+
}), o(D, {
|
|
119
|
+
fontWeight: P.bold,
|
|
126
120
|
color: "--p500",
|
|
127
121
|
children: t.text
|
|
128
122
|
})]
|
|
129
|
-
}),
|
|
123
|
+
}), Z = (t) => l(m, {
|
|
130
124
|
testId: "UploadDocumentEditGroup",
|
|
131
|
-
className:
|
|
132
|
-
children: [o(
|
|
125
|
+
className: s.editGroup,
|
|
126
|
+
children: [o(S, {
|
|
133
127
|
onClick: t.onRemove,
|
|
134
|
-
type:
|
|
135
|
-
size:
|
|
128
|
+
type: g.secondary,
|
|
129
|
+
size: y.small,
|
|
136
130
|
children: "Remove"
|
|
137
|
-
}), o(
|
|
131
|
+
}), o(S, {
|
|
138
132
|
onClick: t.onChange,
|
|
139
|
-
type:
|
|
140
|
-
size:
|
|
133
|
+
type: g.secondary,
|
|
134
|
+
size: y.small,
|
|
141
135
|
children: "Change"
|
|
142
136
|
})]
|
|
143
137
|
});
|
|
144
138
|
export {
|
|
145
|
-
|
|
139
|
+
Se as DocumentUpload
|
|
146
140
|
};
|
package/dist/index-GoogleMaps.js
CHANGED
|
@@ -1,62 +1,68 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import { useGoogleMapApiLoader as
|
|
4
|
-
import { GoogleMap as
|
|
5
|
-
import { googleMapBlackWhiteTheme_NoPoi as
|
|
6
|
-
import { googleMapColouredTheme as
|
|
7
|
-
import { Render as
|
|
8
|
-
import "react";
|
|
9
|
-
import { ComponentContainer as
|
|
10
|
-
|
|
3
|
+
import { useGoogleMapApiLoader as h } from "./index-use-google-map-api-loader.js";
|
|
4
|
+
import { GoogleMap as L } from "./index-esm.js";
|
|
5
|
+
import { googleMapBlackWhiteTheme_NoPoi as M, googleMapBlackWhiteTheme as I } from "./index-GoogleMapBlackWhiteTheme.js";
|
|
6
|
+
import { googleMapColouredTheme as A } from "./index-GoogleMapColouredTheme.js";
|
|
7
|
+
import { Render as x } from "./index-Render.js";
|
|
8
|
+
import { useState as y } from "react";
|
|
9
|
+
import { ComponentContainer as C } from "./index-ComponentContainer.js";
|
|
10
|
+
import { MapContext as T } from "./index-map-context.js";
|
|
11
|
+
const b = "fb831772aadb7781", D = (t) => {
|
|
11
12
|
const {
|
|
12
|
-
apiKey:
|
|
13
|
-
isJsApiLoaded:
|
|
14
|
-
theme:
|
|
15
|
-
testId:
|
|
16
|
-
onLoad:
|
|
17
|
-
mapId: e
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
apiKey: s,
|
|
14
|
+
isJsApiLoaded: n,
|
|
15
|
+
theme: d = "default",
|
|
16
|
+
testId: l = "presence-insights-competitors-map-google-itself-textid",
|
|
17
|
+
onLoad: i,
|
|
18
|
+
mapId: e,
|
|
19
|
+
children: p
|
|
20
|
+
} = t, [r, m] = y(null), {
|
|
21
|
+
isLoaded: c
|
|
22
|
+
} = h([], s), u = n !== void 0 ? n : c, f = (a) => {
|
|
23
|
+
m(a), i && i(a);
|
|
22
24
|
};
|
|
23
|
-
function
|
|
25
|
+
function g() {
|
|
24
26
|
if (e)
|
|
25
27
|
return null;
|
|
26
|
-
switch (
|
|
28
|
+
switch (d) {
|
|
27
29
|
case "coloured":
|
|
28
|
-
return
|
|
30
|
+
return A;
|
|
29
31
|
case "blackWhite":
|
|
30
|
-
return
|
|
32
|
+
return I;
|
|
31
33
|
case "blackWhiteNoPoi":
|
|
32
|
-
return
|
|
34
|
+
return M;
|
|
33
35
|
case "default":
|
|
34
36
|
default:
|
|
35
37
|
return null;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
|
-
return
|
|
39
|
-
"data-testid":
|
|
40
|
+
return o(C, {
|
|
41
|
+
"data-testid": l,
|
|
40
42
|
className: "GoogleMaps-container",
|
|
41
|
-
children:
|
|
42
|
-
if:
|
|
43
|
-
children:
|
|
44
|
-
...
|
|
45
|
-
onLoad:
|
|
43
|
+
children: o(x, {
|
|
44
|
+
if: u,
|
|
45
|
+
children: o(L, {
|
|
46
|
+
...t,
|
|
47
|
+
onLoad: f,
|
|
46
48
|
mapContainerStyle: {
|
|
47
49
|
width: "100%",
|
|
48
50
|
height: "100%"
|
|
49
51
|
},
|
|
50
52
|
options: {
|
|
51
53
|
gestureHandling: "greedy",
|
|
52
|
-
...
|
|
53
|
-
styles:
|
|
54
|
-
mapId: typeof e == "string" ? e : e === !0 ?
|
|
55
|
-
}
|
|
54
|
+
...t.options,
|
|
55
|
+
styles: g(),
|
|
56
|
+
mapId: typeof e == "string" ? e : e === !0 ? b : void 0
|
|
57
|
+
},
|
|
58
|
+
children: r !== null ? o(T.Provider, {
|
|
59
|
+
value: r,
|
|
60
|
+
children: p
|
|
61
|
+
}) : null
|
|
56
62
|
})
|
|
57
63
|
})
|
|
58
64
|
});
|
|
59
65
|
};
|
|
60
66
|
export {
|
|
61
|
-
|
|
67
|
+
D as GoogleMaps
|
|
62
68
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { useMemo as k, useState as L, useEffect as r } from "react";
|
|
2
|
+
import { createPortal as M } from "react-dom";
|
|
3
|
+
import { useGoogleMap as E } from "./index-map-context.js";
|
|
4
|
+
const x = (p) => {
|
|
5
|
+
const {
|
|
6
|
+
onClick: s,
|
|
7
|
+
onMouseOver: a,
|
|
8
|
+
onMouseOut: i,
|
|
9
|
+
id: u,
|
|
10
|
+
zIndex: o,
|
|
11
|
+
pos: t,
|
|
12
|
+
title: f,
|
|
13
|
+
draggable: l,
|
|
14
|
+
onDragEnd: m,
|
|
15
|
+
children: v
|
|
16
|
+
} = p, c = E(), d = k(() => document.createElement("div"), []), [e, g] = L(null);
|
|
17
|
+
return r(() => {
|
|
18
|
+
if (isNaN(t.lat) || isNaN(t.lng)) return;
|
|
19
|
+
const n = new google.maps.marker.AdvancedMarkerElement({
|
|
20
|
+
map: c,
|
|
21
|
+
position: t,
|
|
22
|
+
content: d,
|
|
23
|
+
zIndex: o,
|
|
24
|
+
title: f,
|
|
25
|
+
gmpDraggable: l
|
|
26
|
+
});
|
|
27
|
+
return g(n), () => {
|
|
28
|
+
n.map = null, g(null);
|
|
29
|
+
};
|
|
30
|
+
}, [c]), r(() => {
|
|
31
|
+
e && (e.position = t);
|
|
32
|
+
}, [e, t.lat, t.lng]), r(() => {
|
|
33
|
+
e && o !== void 0 && (e.zIndex = o);
|
|
34
|
+
}, [e, o]), r(() => {
|
|
35
|
+
e && (e.gmpDraggable = !!l);
|
|
36
|
+
}, [e, l]), r(() => {
|
|
37
|
+
if (!e || !s) return;
|
|
38
|
+
const n = e.addListener("click", () => s(u));
|
|
39
|
+
return () => {
|
|
40
|
+
google.maps.event.removeListener(n);
|
|
41
|
+
};
|
|
42
|
+
}, [e, s, u]), r(() => {
|
|
43
|
+
if (!e || !a) return;
|
|
44
|
+
const n = e.addListener("mouseover", a);
|
|
45
|
+
return () => {
|
|
46
|
+
google.maps.event.removeListener(n);
|
|
47
|
+
};
|
|
48
|
+
}, [e, a]), r(() => {
|
|
49
|
+
if (!e || !i) return;
|
|
50
|
+
const n = e.addListener("mouseout", i);
|
|
51
|
+
return () => {
|
|
52
|
+
google.maps.event.removeListener(n);
|
|
53
|
+
};
|
|
54
|
+
}, [e, i]), r(() => {
|
|
55
|
+
if (!e || !m) return;
|
|
56
|
+
const n = e.addListener("dragend", m);
|
|
57
|
+
return () => {
|
|
58
|
+
google.maps.event.removeListener(n);
|
|
59
|
+
};
|
|
60
|
+
}, [e, m]), M(v, d);
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
x as GoogleMapsAdvancedMarker
|
|
64
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const s = ({
|
|
4
|
+
icon: t,
|
|
5
|
+
size: r = {
|
|
6
|
+
x: 28,
|
|
7
|
+
y: 35
|
|
8
|
+
},
|
|
9
|
+
color: l = "#EA4335"
|
|
10
|
+
}) => t ? e("img", {
|
|
11
|
+
src: t,
|
|
12
|
+
alt: "marker",
|
|
13
|
+
draggable: !1,
|
|
14
|
+
style: {
|
|
15
|
+
width: `${r.x}px`,
|
|
16
|
+
height: `${r.y}px`,
|
|
17
|
+
cursor: "pointer",
|
|
18
|
+
userSelect: "none"
|
|
19
|
+
}
|
|
20
|
+
}) : o("svg", {
|
|
21
|
+
width: r.x,
|
|
22
|
+
height: r.y,
|
|
23
|
+
viewBox: "0 0 24 35",
|
|
24
|
+
fill: "none",
|
|
25
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
+
style: {
|
|
27
|
+
cursor: "pointer"
|
|
28
|
+
},
|
|
29
|
+
children: [e("path", {
|
|
30
|
+
d: "M12 0C5.4 0 0 5.4 0 12c0 8 12 23 12 23s12-15 12-23c0-6.6-5.4-12-12-12z",
|
|
31
|
+
fill: l
|
|
32
|
+
}), e("circle", {
|
|
33
|
+
cx: "12",
|
|
34
|
+
cy: "12",
|
|
35
|
+
r: "4",
|
|
36
|
+
fill: "white"
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
s as GoogleMapsAdvancedMarkerContent
|
|
41
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as e } from "./index-
|
|
1
|
+
import { __exports as e } from "./index-_virtual29.js";
|
|
2
2
|
import f from "react";
|
|
3
3
|
import { __require as s } from "./index-LexicalLinkPlugin.js";
|
|
4
4
|
import { __require as m } from "./index-LexicalAutoLinkPlugin.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as r } from "./index-
|
|
1
|
+
import { __exports as r } from "./index-_virtual30.js";
|
|
2
2
|
import { __require as p } from "./index-LexicalComposerContext2.js";
|
|
3
3
|
import { __require as h } from "./index-useLexicalTextEntity.js";
|
|
4
4
|
import P from "react";
|
|
@@ -260,7 +260,9 @@ class Q {
|
|
|
260
260
|
const a = {
|
|
261
261
|
...e
|
|
262
262
|
}, s = (m) => {
|
|
263
|
-
a.props.close && a.props.close(m
|
|
263
|
+
a.props.close && a.props.close(m ?? {
|
|
264
|
+
isOk: !1
|
|
265
|
+
}), this.closeEv(l, m);
|
|
264
266
|
};
|
|
265
267
|
o != null && o.wrapInModal && (e = n(K, {
|
|
266
268
|
close: s,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as e } from "./index-
|
|
1
|
+
import { __exports as e } from "./index-_virtual31.js";
|
|
2
2
|
import p from "react";
|
|
3
3
|
import { __require as P } from "./index-LexicalComposerContext2.js";
|
|
4
4
|
import { __require as O } from "./index-LexicalOnChangePlugin.js";
|
package/dist/index-Select2.js
CHANGED
|
@@ -3,7 +3,7 @@ import I from "./index-objectWithoutPropertiesLoose.js";
|
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import e from "./index-_virtual16.js";
|
|
5
5
|
import { clsx as z } from "./index-clsx.js";
|
|
6
|
-
import B from "./index-
|
|
6
|
+
import B from "./index-SelectInput.js";
|
|
7
7
|
import G from "./index-formControlState.js";
|
|
8
8
|
import H from "./index-useFormControl.js";
|
|
9
9
|
import J from "./index-ArrowDropDown.js";
|