@daffodil/core 0.68.0 → 0.69.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/esm2022/external-script/daffodil-core-external-script.mjs +5 -0
- package/esm2022/external-script/external-script.service.mjs +90 -0
- package/esm2022/external-script/index.mjs +2 -0
- package/esm2022/external-script/interface.mjs +2 -0
- package/esm2022/external-script/public_api.mjs +2 -0
- package/esm2022/external-script/script.mjs +2 -0
- package/esm2022/external-script/testing/constants.mjs +2 -0
- package/esm2022/external-script/testing/daffodil-core-external-script-testing.mjs +5 -0
- package/esm2022/external-script/testing/external-script.service.mjs +53 -0
- package/esm2022/external-script/testing/index.mjs +2 -0
- package/esm2022/external-script/testing/public_api.mjs +2 -0
- package/esm2022/injection-tokens/config.factory.mjs +24 -0
- package/esm2022/injection-tokens/config.type.mjs +2 -0
- package/esm2022/injection-tokens/multi.factory.mjs +25 -0
- package/esm2022/injection-tokens/multi.type.mjs +2 -0
- package/esm2022/injection-tokens/public_api.mjs +9 -0
- package/esm2022/injection-tokens/services.factory.mjs +25 -0
- package/esm2022/injection-tokens/services.type.mjs +2 -0
- package/esm2022/injection-tokens/single.factory.mjs +18 -0
- package/esm2022/injection-tokens/single.type.mjs +2 -0
- package/esm2022/injection-tokens/token-constuctor-params.type.mjs +2 -0
- package/esm2022/public_api.mjs +2 -1
- package/external-script/external-script.service.d.ts +50 -0
- package/external-script/index.d.ts +1 -0
- package/external-script/interface.d.ts +11 -0
- package/external-script/public_api.d.ts +3 -0
- package/external-script/script.d.ts +33 -0
- package/external-script/testing/constants.d.ts +4 -0
- package/external-script/testing/external-script.service.d.ts +40 -0
- package/external-script/testing/index.d.ts +1 -0
- package/external-script/testing/public_api.d.ts +2 -0
- package/fesm2022/daffodil-core-external-script-testing.mjs +60 -0
- package/fesm2022/daffodil-core-external-script-testing.mjs.map +1 -0
- package/fesm2022/daffodil-core-external-script.mjs +97 -0
- package/fesm2022/daffodil-core-external-script.mjs.map +1 -0
- package/fesm2022/daffodil-core.mjs +89 -1
- package/fesm2022/daffodil-core.mjs.map +1 -1
- package/injection-tokens/config.factory.d.ts +8 -0
- package/injection-tokens/config.type.d.ts +17 -0
- package/injection-tokens/multi.factory.d.ts +8 -0
- package/injection-tokens/multi.type.d.ts +15 -0
- package/injection-tokens/public_api.d.ts +8 -0
- package/injection-tokens/services.factory.d.ts +8 -0
- package/injection-tokens/services.type.d.ts +15 -0
- package/injection-tokens/single.factory.d.ts +10 -0
- package/injection-tokens/single.type.d.ts +14 -0
- package/injection-tokens/token-constuctor-params.type.d.ts +3 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { DOCUMENT } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, Inject } from '@angular/core';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { filter } from 'rxjs/operators';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* A service for loading external scripts into the document.
|
|
9
|
+
*
|
|
10
|
+
* ### Usage example
|
|
11
|
+
*
|
|
12
|
+
* The following loads an external script into the document.
|
|
13
|
+
*
|
|
14
|
+
* ```ts
|
|
15
|
+
* import { DOCUMENT } from '@angular/common';
|
|
16
|
+
* import { inject } from '@angular/core';
|
|
17
|
+
*
|
|
18
|
+
* import { DaffExternalScriptService } from '@daffodil/core/external-script';
|
|
19
|
+
*
|
|
20
|
+
* const externalScriptService = new DaffExternalScriptService(inject(DOCUMENT));
|
|
21
|
+
*
|
|
22
|
+
* externalScriptService.load('exampleScript', {
|
|
23
|
+
* src: 'https://example.com/script.js',
|
|
24
|
+
* async: true,
|
|
25
|
+
* defer: false,
|
|
26
|
+
* 'data-custom-attribute': 'value',
|
|
27
|
+
* }).subscribe({
|
|
28
|
+
* next: (result) => {
|
|
29
|
+
* console.log('Script loaded successfully:', result);
|
|
30
|
+
* },
|
|
31
|
+
* error: (error) => {
|
|
32
|
+
* console.error('Error loading script:', error);
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
class DaffExternalScriptService {
|
|
38
|
+
constructor(doc) {
|
|
39
|
+
this.scriptMap = new Map();
|
|
40
|
+
this.doc = doc;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @inheritdoc
|
|
44
|
+
*/
|
|
45
|
+
load(name, script) {
|
|
46
|
+
// Don't load the same script twice.
|
|
47
|
+
if (this.scriptMap.has(name)) {
|
|
48
|
+
return this.scriptMap.get(name).subject;
|
|
49
|
+
}
|
|
50
|
+
const scriptEl = this.doc.createElement('script');
|
|
51
|
+
scriptEl.setAttribute('type', 'text/javascript');
|
|
52
|
+
scriptEl.setAttribute('src', script.src);
|
|
53
|
+
scriptEl.setAttribute('charset', 'utf-8');
|
|
54
|
+
// Set custom attributes prefixed with 'data-'.
|
|
55
|
+
Object.keys(script).filter(key => key.startsWith('data-')).map((key) => {
|
|
56
|
+
// setAttribute would lowercase the value of "key", which isn't always correct.
|
|
57
|
+
// setAttributeNS maintains key casing.
|
|
58
|
+
scriptEl.setAttributeNS(null, key, script[key]);
|
|
59
|
+
});
|
|
60
|
+
if (script.async) {
|
|
61
|
+
scriptEl.async = true;
|
|
62
|
+
}
|
|
63
|
+
if (script.defer) {
|
|
64
|
+
scriptEl.defer = true;
|
|
65
|
+
}
|
|
66
|
+
const readySubject = new BehaviorSubject(undefined);
|
|
67
|
+
scriptEl.onload = () => {
|
|
68
|
+
this.scriptMap.get(name).ready = true;
|
|
69
|
+
readySubject.next(true);
|
|
70
|
+
};
|
|
71
|
+
scriptEl.onerror = () => {
|
|
72
|
+
this.scriptMap.get(name).ready = false;
|
|
73
|
+
readySubject.error(new Error(`Failed to load ${script.src}`));
|
|
74
|
+
};
|
|
75
|
+
this.doc.body.appendChild(scriptEl);
|
|
76
|
+
this.scriptMap.set(name, { ...script, ready: undefined, subject: readySubject, el: scriptEl });
|
|
77
|
+
return readySubject.pipe(filter((s) => s !== undefined));
|
|
78
|
+
}
|
|
79
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffExternalScriptService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
80
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffExternalScriptService, providedIn: 'root' }); }
|
|
81
|
+
}
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.1", ngImport: i0, type: DaffExternalScriptService, decorators: [{
|
|
83
|
+
type: Injectable,
|
|
84
|
+
args: [{
|
|
85
|
+
providedIn: 'root',
|
|
86
|
+
}]
|
|
87
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
88
|
+
type: Inject,
|
|
89
|
+
args: [DOCUMENT]
|
|
90
|
+
}] }] });
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Generated bundle index. Do not edit.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
export { DaffExternalScriptService };
|
|
97
|
+
//# sourceMappingURL=daffodil-core-external-script.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daffodil-core-external-script.mjs","sources":["../../../libs/core/external-script/src/external-script.service.ts","../../../libs/core/external-script/src/daffodil-core-external-script.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n BehaviorSubject,\n Observable,\n Subject,\n} from 'rxjs';\nimport { filter } from 'rxjs/operators';\n\nimport { DaffExternalScriptServiceInterface } from './interface';\nimport { DaffExternalScript } from './script';\n\nexport interface LoadedExternalScript extends DaffExternalScript {\n ready: boolean | undefined;\n subject: Observable<boolean>;\n el: HTMLElement | undefined;\n}\n\n/**\n * A service for loading external scripts into the document.\n *\n * ### Usage example\n *\n * The following loads an external script into the document.\n *\n * ```ts\n * import { DOCUMENT } from '@angular/common';\n * import { inject } from '@angular/core';\n *\n * import { DaffExternalScriptService } from '@daffodil/core/external-script';\n *\n * const externalScriptService = new DaffExternalScriptService(inject(DOCUMENT));\n *\n * externalScriptService.load('exampleScript', {\n * src: 'https://example.com/script.js',\n * async: true,\n * defer: false,\n * 'data-custom-attribute': 'value',\n * }).subscribe({\n * next: (result) => {\n * console.log('Script loaded successfully:', result);\n * },\n * error: (error) => {\n * console.error('Error loading script:', error);\n * },\n * });\n * ```\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class DaffExternalScriptService implements DaffExternalScriptServiceInterface {\n readonly scriptMap: Map<string, LoadedExternalScript> = new Map();\n private doc: Document;\n\n constructor(\n @Inject(DOCUMENT) doc,\n ) {\n this.doc = doc;\n }\n\n /**\n * @inheritdoc\n */\n load(name: string, script: DaffExternalScript): Observable<boolean> {\n // Don't load the same script twice.\n if(this.scriptMap.has(name)){\n return this.scriptMap.get(name).subject;\n }\n\n const scriptEl = this.doc.createElement('script');\n\n scriptEl.setAttribute('type', 'text/javascript');\n\n scriptEl.setAttribute('src', script.src);\n\n scriptEl.setAttribute('charset', 'utf-8');\n\n // Set custom attributes prefixed with 'data-'.\n Object.keys(script).filter(key => key.startsWith('data-')).map((key) => {\n // setAttribute would lowercase the value of \"key\", which isn't always correct.\n // setAttributeNS maintains key casing.\n scriptEl.setAttributeNS(null, key,script[key]);\n });\n\n if(script.async) {\n scriptEl.async = true;\n }\n\n if(script.defer) {\n scriptEl.defer = true;\n }\n\n const readySubject = new BehaviorSubject<boolean | undefined>(undefined);\n\n scriptEl.onload = () => {\n this.scriptMap.get(name).ready = true;\n readySubject.next(true);\n };\n\n scriptEl.onerror = () => {\n this.scriptMap.get(name).ready = false;\n readySubject.error(new Error(`Failed to load ${ script.src }`));\n };\n\n this.doc.body.appendChild(scriptEl);\n this.scriptMap.set(name, { ...script, ready: undefined, subject: readySubject, el: scriptEl });\n\n return readySubject.pipe(\n filter((s) => s !== undefined),\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1099,9 +1099,97 @@ const daffCollectionBuildRequestFromMetadata = (metadata) => ({
|
|
|
1099
1099
|
*/
|
|
1100
1100
|
const daffIdentifiableArrayToDict = (ary) => daffArrayToDict(ary, ({ id }) => id);
|
|
1101
1101
|
|
|
1102
|
+
/**
|
|
1103
|
+
* Creates an injection token/provider pair for a single valued DI token.
|
|
1104
|
+
*
|
|
1105
|
+
* See {@link DaffSingleInjectionToken}.
|
|
1106
|
+
*/
|
|
1107
|
+
const createSingleInjectionToken = (...args) => {
|
|
1108
|
+
const token = new InjectionToken(...args);
|
|
1109
|
+
const provider = (value) => ({
|
|
1110
|
+
provide: token,
|
|
1111
|
+
useValue: value,
|
|
1112
|
+
});
|
|
1113
|
+
return {
|
|
1114
|
+
token,
|
|
1115
|
+
provider,
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
|
|
1119
|
+
// having a single instance of the default factory
|
|
1120
|
+
// will hopefully reduce memory footprint
|
|
1121
|
+
const defaultFactory$1 = () => [];
|
|
1122
|
+
/**
|
|
1123
|
+
* Creates an injection token/provider pair for a multi valued DI token.
|
|
1124
|
+
*
|
|
1125
|
+
* See {@link DaffMultiInjectionToken}.
|
|
1126
|
+
*/
|
|
1127
|
+
const createMultiInjectionToken = (desc, options) => {
|
|
1128
|
+
const token = new InjectionToken(desc, {
|
|
1129
|
+
factory: defaultFactory$1,
|
|
1130
|
+
...options,
|
|
1131
|
+
});
|
|
1132
|
+
const provider = (...values) => values.map((value) => ({
|
|
1133
|
+
provide: token,
|
|
1134
|
+
useValue: value,
|
|
1135
|
+
multi: true,
|
|
1136
|
+
}));
|
|
1137
|
+
return {
|
|
1138
|
+
token,
|
|
1139
|
+
provider,
|
|
1140
|
+
};
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Creates an injection token/provider pair for a DI token that holds a configuration.
|
|
1145
|
+
*
|
|
1146
|
+
* See {@link DaffConfigInjectionToken}.
|
|
1147
|
+
*/
|
|
1148
|
+
const createConfigInjectionToken = (defaultConfig, desc, options) => {
|
|
1149
|
+
const token = new InjectionToken(desc, {
|
|
1150
|
+
factory: () => defaultConfig,
|
|
1151
|
+
...options,
|
|
1152
|
+
});
|
|
1153
|
+
const provider = (config) => ({
|
|
1154
|
+
provide: token,
|
|
1155
|
+
useValue: {
|
|
1156
|
+
...defaultConfig,
|
|
1157
|
+
...config,
|
|
1158
|
+
},
|
|
1159
|
+
});
|
|
1160
|
+
return {
|
|
1161
|
+
token,
|
|
1162
|
+
provider,
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
|
|
1166
|
+
// having a single instance of the default factory
|
|
1167
|
+
// will hopefully reduce memory footprint
|
|
1168
|
+
const defaultFactory = () => [];
|
|
1169
|
+
/**
|
|
1170
|
+
* Creates an injection token/provider pair for a DI token that holds services.
|
|
1171
|
+
*
|
|
1172
|
+
* See {@link DaffServicesInjectionToken}.
|
|
1173
|
+
*/
|
|
1174
|
+
const createServicesInjectionToken = (desc, options) => {
|
|
1175
|
+
const token = new InjectionToken(desc, {
|
|
1176
|
+
factory: defaultFactory,
|
|
1177
|
+
...options,
|
|
1178
|
+
});
|
|
1179
|
+
const provider = (...classes) => classes.map((klass) => ({
|
|
1180
|
+
provide: token,
|
|
1181
|
+
useExisting: klass,
|
|
1182
|
+
multi: true,
|
|
1183
|
+
}));
|
|
1184
|
+
return {
|
|
1185
|
+
token,
|
|
1186
|
+
provider,
|
|
1187
|
+
};
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1102
1190
|
/**
|
|
1103
1191
|
* Generated bundle index. Do not edit.
|
|
1104
1192
|
*/
|
|
1105
1193
|
|
|
1106
|
-
export { DAFF_COLLECTION_PAGE_OUT_OF_BOUNDS_ERROR_CODE, DAFF_SERVER_STORAGE_SERVICE_ERROR_CODE, DAFF_STORAGE_SERVICE_ERROR_CODE, DaffBase64ServiceToken, DaffBrowserBase64Service, DaffCollectionPageOutOfBoundsError, DaffErrorStorageService, DaffFilterFromToFilterSeparator, DaffFilterNotFound, DaffFilterRequestNameMismatch, DaffFilterRequestTypeMismatch, DaffFilterType, DaffFilterUnknownType, DaffInheritableError, DaffLocalStorageService, DaffNoopStorageService, DaffPersistenceServiceToken, DaffServerBase64Service, DaffServerErrorStorageService, DaffServerSafePersistenceServiceToken, DaffServerSideStorageError, DaffSortDirectionEnum, DaffStorageServiceError, allOf, anyOf, backoff, catchAndArrayifyErrors, collect, daffAdd, daffApplyFilter, daffApplyRequestToFilters, daffApplyRequestsToFilters, daffArrayToDict, daffClearFilter, daffClearFilters, daffCollectionBuildMetadataFromRequest, daffCollectionBuildRequestFromMetadata, daffCollectionErrorMap, daffComputeAppliedFilters, daffDivide, daffFilterArrayToDict, daffFilterComputeRangePairLabel, daffFilterEqualOptionArrayToDict, daffFilterFindAppliedOptions, daffFilterRangePairArrayToDict, daffFilterToRequest, daffFilterValidateRequestNameMatch, daffFilterValidateRequestTypeMatch, daffFiltersToRequests, daffIdentifiableArrayToDict, daffIsError, daffIsFilterApplied, daffIsToggleRequestAppliedToFilter, daffMultiply, daffPrecision, daffRemoveFilter, daffRemoveRequestFromFilters, daffRemoveRequestsFromFilters, daffSubtract, daffToggleFilter, daffToggleRequestOnFilters, randomSlice, randomSubset, range, sample, shallowCompare, shuffle, unique };
|
|
1194
|
+
export { DAFF_COLLECTION_PAGE_OUT_OF_BOUNDS_ERROR_CODE, DAFF_SERVER_STORAGE_SERVICE_ERROR_CODE, DAFF_STORAGE_SERVICE_ERROR_CODE, DaffBase64ServiceToken, DaffBrowserBase64Service, DaffCollectionPageOutOfBoundsError, DaffErrorStorageService, DaffFilterFromToFilterSeparator, DaffFilterNotFound, DaffFilterRequestNameMismatch, DaffFilterRequestTypeMismatch, DaffFilterType, DaffFilterUnknownType, DaffInheritableError, DaffLocalStorageService, DaffNoopStorageService, DaffPersistenceServiceToken, DaffServerBase64Service, DaffServerErrorStorageService, DaffServerSafePersistenceServiceToken, DaffServerSideStorageError, DaffSortDirectionEnum, DaffStorageServiceError, allOf, anyOf, backoff, catchAndArrayifyErrors, collect, createConfigInjectionToken, createMultiInjectionToken, createServicesInjectionToken, createSingleInjectionToken, daffAdd, daffApplyFilter, daffApplyRequestToFilters, daffApplyRequestsToFilters, daffArrayToDict, daffClearFilter, daffClearFilters, daffCollectionBuildMetadataFromRequest, daffCollectionBuildRequestFromMetadata, daffCollectionErrorMap, daffComputeAppliedFilters, daffDivide, daffFilterArrayToDict, daffFilterComputeRangePairLabel, daffFilterEqualOptionArrayToDict, daffFilterFindAppliedOptions, daffFilterRangePairArrayToDict, daffFilterToRequest, daffFilterValidateRequestNameMatch, daffFilterValidateRequestTypeMatch, daffFiltersToRequests, daffIdentifiableArrayToDict, daffIsError, daffIsFilterApplied, daffIsToggleRequestAppliedToFilter, daffMultiply, daffPrecision, daffRemoveFilter, daffRemoveRequestFromFilters, daffRemoveRequestsFromFilters, daffSubtract, daffToggleFilter, daffToggleRequestOnFilters, randomSlice, randomSubset, range, sample, shallowCompare, shuffle, unique };
|
|
1107
1195
|
//# sourceMappingURL=daffodil-core.mjs.map
|