@arcgis/toolkit 5.0.0-next.141 → 5.0.0-next.144
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/dom/slots.d.cts +7 -7
- package/dist/dom/slots.d.ts +7 -7
- package/dist/string/index.cjs +1 -3
- package/dist/string/index.d.cts +5 -5
- package/dist/string/index.d.ts +5 -5
- package/dist/string/index.js +1 -3
- package/dist/url/index.d.cts +1 -1
- package/dist/url/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/dom/slots.d.cts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function slotChangeHasContent(event: Event): boolean;
|
|
|
14
14
|
* Returns a string of textContent if the target `slot` element from the `onSlotchange` event has any text content.
|
|
15
15
|
*
|
|
16
16
|
* @param event The event.
|
|
17
|
-
* @returns
|
|
17
|
+
* @returns The slots text.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```tsx
|
|
@@ -73,9 +73,9 @@ export declare function slotChangeHasAssignedElement(event: Event): boolean;
|
|
|
73
73
|
/**
|
|
74
74
|
* Returns the assigned elements on a `slot` element from the `onSlotchange` event.
|
|
75
75
|
*
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @returns
|
|
76
|
+
* @param event The event.
|
|
77
|
+
* @param selector The CSS selector string to filter the returned elements by.
|
|
78
|
+
* @returns An array of elements.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```tsx
|
|
@@ -86,8 +86,8 @@ export declare function slotChangeGetAssignedElements<T extends Element>(event:
|
|
|
86
86
|
/**
|
|
87
87
|
* Returns the assigned elements on a `slot` element, filtered by an optional css selector.
|
|
88
88
|
*
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @returns
|
|
89
|
+
* @param slot The slot element.
|
|
90
|
+
* @param selector CSS selector string to filter the returned elements by.
|
|
91
|
+
* @returns An array of elements.
|
|
92
92
|
*/
|
|
93
93
|
export declare function getSlotAssignedElements<T extends Element>(slot: HTMLSlotElement, selector?: string): T[];
|
package/dist/dom/slots.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function slotChangeHasContent(event: Event): boolean;
|
|
|
14
14
|
* Returns a string of textContent if the target `slot` element from the `onSlotchange` event has any text content.
|
|
15
15
|
*
|
|
16
16
|
* @param event The event.
|
|
17
|
-
* @returns
|
|
17
|
+
* @returns The slots text.
|
|
18
18
|
*
|
|
19
19
|
* @example
|
|
20
20
|
* ```tsx
|
|
@@ -73,9 +73,9 @@ export declare function slotChangeHasAssignedElement(event: Event): boolean;
|
|
|
73
73
|
/**
|
|
74
74
|
* Returns the assigned elements on a `slot` element from the `onSlotchange` event.
|
|
75
75
|
*
|
|
76
|
-
* @param
|
|
77
|
-
* @param
|
|
78
|
-
* @returns
|
|
76
|
+
* @param event The event.
|
|
77
|
+
* @param selector The CSS selector string to filter the returned elements by.
|
|
78
|
+
* @returns An array of elements.
|
|
79
79
|
*
|
|
80
80
|
* @example
|
|
81
81
|
* ```tsx
|
|
@@ -86,8 +86,8 @@ export declare function slotChangeGetAssignedElements<T extends Element>(event:
|
|
|
86
86
|
/**
|
|
87
87
|
* Returns the assigned elements on a `slot` element, filtered by an optional css selector.
|
|
88
88
|
*
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @returns
|
|
89
|
+
* @param slot The slot element.
|
|
90
|
+
* @param selector CSS selector string to filter the returned elements by.
|
|
91
|
+
* @returns An array of elements.
|
|
92
92
|
*/
|
|
93
93
|
export declare function getSlotAssignedElements<T extends Element>(slot: HTMLSlotElement, selector?: string): T[];
|
package/dist/string/index.cjs
CHANGED
|
@@ -72,9 +72,7 @@ const getMinorVersion = (version) => {
|
|
|
72
72
|
};
|
|
73
73
|
const getPreamble = (version) => (
|
|
74
74
|
//#endregion getPreamble
|
|
75
|
-
`
|
|
76
|
-
See https://js.arcgis.com/${getMinorVersion(version)}/esri/copyright.txt for details.
|
|
77
|
-
v${version}`
|
|
75
|
+
`COPYRIGHT Esri - https://js.arcgis.com/${getMinorVersion(version)}/LICENSE.txt`
|
|
78
76
|
);
|
|
79
77
|
const setValuesInString = (message, values = {}) => (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
80
78
|
exports.addLtrMark = addLtrMark;
|
package/dist/string/index.d.cts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const quoteString: (value: string) => string;
|
|
|
42
42
|
* Create a filter expression from a filter word.
|
|
43
43
|
*
|
|
44
44
|
* @remarks Once browser support permits, use `RegExp.escape()` instead.
|
|
45
|
-
* @
|
|
45
|
+
* @privateRemarks TODO: DEPRECATE
|
|
46
46
|
*/
|
|
47
47
|
export declare const createFilterExpression: (filterWord: string) => RegExp;
|
|
48
48
|
/**
|
|
@@ -88,12 +88,12 @@ export declare const getMinorVersion: (version: string) => string;
|
|
|
88
88
|
* notice at the top of a file.
|
|
89
89
|
* The preamble text contains the version number and a link to the license.
|
|
90
90
|
* The version number should normally come from package.json.
|
|
91
|
+
*
|
|
92
|
+
* @see https://webgis.esri.com/webgis/platform-guidelines/licensing
|
|
91
93
|
* @example
|
|
92
94
|
* ```ts
|
|
93
|
-
* const preamble = getPreamble("
|
|
94
|
-
* //
|
|
95
|
-
* // See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
96
|
-
* // v4.34.0-next.123
|
|
95
|
+
* const preamble = getPreamble("5.0.1-next.456");
|
|
96
|
+
* // COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
export declare const getPreamble: (version: string) => string;
|
package/dist/string/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export declare const quoteString: (value: string) => string;
|
|
|
42
42
|
* Create a filter expression from a filter word.
|
|
43
43
|
*
|
|
44
44
|
* @remarks Once browser support permits, use `RegExp.escape()` instead.
|
|
45
|
-
* @
|
|
45
|
+
* @privateRemarks TODO: DEPRECATE
|
|
46
46
|
*/
|
|
47
47
|
export declare const createFilterExpression: (filterWord: string) => RegExp;
|
|
48
48
|
/**
|
|
@@ -88,12 +88,12 @@ export declare const getMinorVersion: (version: string) => string;
|
|
|
88
88
|
* notice at the top of a file.
|
|
89
89
|
* The preamble text contains the version number and a link to the license.
|
|
90
90
|
* The version number should normally come from package.json.
|
|
91
|
+
*
|
|
92
|
+
* @see https://webgis.esri.com/webgis/platform-guidelines/licensing
|
|
91
93
|
* @example
|
|
92
94
|
* ```ts
|
|
93
|
-
* const preamble = getPreamble("
|
|
94
|
-
* //
|
|
95
|
-
* // See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
96
|
-
* // v4.34.0-next.123
|
|
95
|
+
* const preamble = getPreamble("5.0.1-next.456");
|
|
96
|
+
* // COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt
|
|
97
97
|
* ```
|
|
98
98
|
*/
|
|
99
99
|
export declare const getPreamble: (version: string) => string;
|
package/dist/string/index.js
CHANGED
|
@@ -70,9 +70,7 @@ const getMinorVersion = (version) => {
|
|
|
70
70
|
};
|
|
71
71
|
const getPreamble = (version) => (
|
|
72
72
|
//#endregion getPreamble
|
|
73
|
-
`
|
|
74
|
-
See https://js.arcgis.com/${getMinorVersion(version)}/esri/copyright.txt for details.
|
|
75
|
-
v${version}`
|
|
73
|
+
`COPYRIGHT Esri - https://js.arcgis.com/${getMinorVersion(version)}/LICENSE.txt`
|
|
76
74
|
);
|
|
77
75
|
const setValuesInString = (message, values = {}) => (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
|
|
78
76
|
export {
|
package/dist/url/index.d.cts
CHANGED
|
@@ -13,6 +13,6 @@ export declare const hasSameOrigin: (url1: string | null | undefined, url2: stri
|
|
|
13
13
|
* @returns True if the string is a URL.
|
|
14
14
|
*
|
|
15
15
|
* @remarks If browser support permits, use https://developer.mozilla.org/en-US/docs/Web/API/URL/parse_static instead
|
|
16
|
-
* @
|
|
16
|
+
* @privateRemarks TODO: DEPRECATE
|
|
17
17
|
*/
|
|
18
18
|
export declare const isURL: (url: string) => boolean;
|
package/dist/url/index.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare const hasSameOrigin: (url1: string | null | undefined, url2: stri
|
|
|
13
13
|
* @returns True if the string is a URL.
|
|
14
14
|
*
|
|
15
15
|
* @remarks If browser support permits, use https://developer.mozilla.org/en-US/docs/Web/API/URL/parse_static instead
|
|
16
|
-
* @
|
|
16
|
+
* @privateRemarks TODO: DEPRECATE
|
|
17
17
|
*/
|
|
18
18
|
export declare const isURL: (url: string) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/toolkit",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.144",
|
|
4
4
|
"description": "Collection of common internal patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
6
6
|
"sideEffects": false,
|