@yoobic/yobi 8.3.0-8 → 8.3.0-9

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.
@@ -930,9 +930,6 @@ const YooGridComponent = class {
930
930
  },
931
931
  onRowClicked: (event) => {
932
932
  var _a, _b, _c;
933
- if (this.isReadonly) {
934
- return;
935
- }
936
933
  if (((_a = event.node) === null || _a === void 0 ? void 0 : _a.data) && !this.disconnected && (((_c = (_b = this.gridApi) === null || _b === void 0 ? void 0 : _b.getEditingCells()) === null || _c === void 0 ? void 0 : _c.length) || 0) === 0 && !this.disableRowClick) {
937
934
  this.onItemSelect(event.node.data, false);
938
935
  }
@@ -21,7 +21,7 @@ function race(...args) {
21
21
  }
22
22
 
23
23
  /**
24
- * @license Angular v14.0.2
24
+ * @license Angular v14.0.3
25
25
  * (c) 2010-2022 Google LLC. https://angular.io/
26
26
  * License: MIT
27
27
  */
@@ -4856,10 +4856,8 @@ function setCurrentInjector(injector) {
4856
4856
  }
4857
4857
  function injectInjectorOnly(token, flags = InjectFlags.Default) {
4858
4858
  if (_currentInjector === undefined) {
4859
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4860
- `inject() must be called from an injection context (a constructor, a factory function or a field initializer)` :
4861
- '';
4862
- throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, errorMessage);
4859
+ throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&
4860
+ `inject() must be called from an injection context (a constructor, a factory function or a field initializer)`);
4863
4861
  }
4864
4862
  else if (_currentInjector === null) {
4865
4863
  return injectRootLimpMode(token, undefined, flags);
@@ -4965,10 +4963,7 @@ function injectArgs(types) {
4965
4963
  const arg = resolveForwardRef(types[i]);
4966
4964
  if (Array.isArray(arg)) {
4967
4965
  if (arg.length === 0) {
4968
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4969
- 'Arguments array must have arguments.' :
4970
- '';
4971
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
4966
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');
4972
4967
  }
4973
4968
  let type = undefined;
4974
4969
  let flags = InjectFlags.Default;
@@ -6219,10 +6214,8 @@ function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
6219
6214
  if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL" /* BypassType.ResourceUrl */)) {
6220
6215
  return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));
6221
6216
  }
6222
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6223
- 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)' :
6224
- '';
6225
- throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, errorMessage);
6217
+ throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode &&
6218
+ 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
6226
6219
  }
6227
6220
  /**
6228
6221
  * A `script` sanitizer which only lets trusted javascript through.
@@ -6244,10 +6237,7 @@ function ɵɵsanitizeScript(unsafeScript) {
6244
6237
  if (allowSanitizationBypassAndThrow(unsafeScript, "Script" /* BypassType.Script */)) {
6245
6238
  return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));
6246
6239
  }
6247
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6248
- 'unsafe value used in a script context' :
6249
- '';
6250
- throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, errorMessage);
6240
+ throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');
6251
6241
  }
6252
6242
  /**
6253
6243
  * A template tag function for promoting the associated constant literal to a
@@ -14091,10 +14081,8 @@ function ɵɵInheritDefinitionFeature(definition) {
14091
14081
  }
14092
14082
  else {
14093
14083
  if (superType.ɵcmp) {
14094
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
14095
- `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}` :
14096
- '';
14097
- throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, errorMessage);
14084
+ throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode &&
14085
+ `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);
14098
14086
  }
14099
14087
  // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
14100
14088
  superDef = superType.ɵdir;
@@ -21791,7 +21779,7 @@ class Version {
21791
21779
  /**
21792
21780
  * @publicApi
21793
21781
  */
21794
- const VERSION = new Version('14.0.2');
21782
+ const VERSION = new Version('14.0.3');
21795
21783
 
21796
21784
  /**
21797
21785
  * @license
@@ -22129,8 +22117,7 @@ class ViewRef$1 {
22129
22117
  }
22130
22118
  attachToViewContainerRef() {
22131
22119
  if (this._appRef) {
22132
- const errorMessage = ngDevMode ? 'This view is already attached directly to the ApplicationRef!' : '';
22133
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22120
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');
22134
22121
  }
22135
22122
  this._attachedToViewContainer = true;
22136
22123
  }
@@ -22140,8 +22127,7 @@ class ViewRef$1 {
22140
22127
  }
22141
22128
  attachToAppRef(appRef) {
22142
22129
  if (this._attachedToViewContainer) {
22143
- const errorMessage = ngDevMode ? 'This view is already attached to a ViewContainer!' : '';
22144
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22130
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');
22145
22131
  }
22146
22132
  this._appRef = appRef;
22147
22133
  }
@@ -25172,14 +25158,20 @@ function getStandaloneDefFunctions(type, imports) {
25172
25158
  // Standalone components are always able to self-reference, so include the component's own
25173
25159
  // definition in its `directiveDefs`.
25174
25160
  cachedDirectiveDefs = [getComponentDef(type)];
25161
+ const seen = new Set();
25175
25162
  for (const rawDep of imports) {
25176
25163
  ngDevMode && verifyStandaloneImport(rawDep, type);
25177
25164
  const dep = resolveForwardRef(rawDep);
25165
+ if (seen.has(dep)) {
25166
+ continue;
25167
+ }
25168
+ seen.add(dep);
25178
25169
  if (!!getNgModuleDef(dep)) {
25179
25170
  const scope = transitiveScopesFor(dep);
25180
25171
  for (const dir of scope.exported.directives) {
25181
25172
  const def = getComponentDef(dir) || getDirectiveDef(dir);
25182
- if (def) {
25173
+ if (def && !seen.has(dir)) {
25174
+ seen.add(dir);
25183
25175
  cachedDirectiveDefs.push(def);
25184
25176
  }
25185
25177
  }
@@ -25197,11 +25189,22 @@ function getStandaloneDefFunctions(type, imports) {
25197
25189
  const pipeDefs = () => {
25198
25190
  if (cachedPipeDefs === null) {
25199
25191
  cachedPipeDefs = [];
25192
+ const seen = new Set();
25200
25193
  for (const rawDep of imports) {
25201
25194
  const dep = resolveForwardRef(rawDep);
25195
+ if (seen.has(dep)) {
25196
+ continue;
25197
+ }
25198
+ seen.add(dep);
25202
25199
  if (!!getNgModuleDef(dep)) {
25203
25200
  const scope = transitiveScopesFor(dep);
25204
- cachedPipeDefs.push(...Array.from(scope.exported.pipes).map(pipe => getPipeDef$1(pipe)));
25201
+ for (const pipe of scope.exported.pipes) {
25202
+ const def = getPipeDef$1(pipe);
25203
+ if (def && !seen.has(pipe)) {
25204
+ seen.add(pipe);
25205
+ cachedPipeDefs.push(def);
25206
+ }
25207
+ }
25205
25208
  }
25206
25209
  else {
25207
25210
  const def = getPipeDef$1(dep);
@@ -26981,10 +26984,8 @@ class NgProbeToken {
26981
26984
  */
26982
26985
  function createPlatform(injector) {
26983
26986
  if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
26984
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
26985
- 'There can be only one platform. Destroy the previous one to create a new one.' :
26986
- '';
26987
- throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, errorMessage);
26987
+ throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode &&
26988
+ 'There can be only one platform. Destroy the previous one to create a new one.');
26988
26989
  }
26989
26990
  publishDefaultGlobalUtils();
26990
26991
  _platformInjector = injector;
@@ -27104,8 +27105,7 @@ function createPlatformFactory(parentPlatformFactory, name, providers = []) {
27104
27105
  function assertPlatform(requiredToken) {
27105
27106
  const platform = getPlatform();
27106
27107
  if (!platform) {
27107
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ? 'No platform exists!' : '';
27108
- throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, errorMessage);
27108
+ throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
27109
27109
  }
27110
27110
  if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
27111
27111
  !platform.injector.get(requiredToken, null)) {
@@ -27185,10 +27185,7 @@ class PlatformRef {
27185
27185
  const moduleRef = moduleFactory.create(ngZoneInjector);
27186
27186
  const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);
27187
27187
  if (!exceptionHandler) {
27188
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27189
- 'No ErrorHandler. Is platform module (BrowserModule) included?' :
27190
- '';
27191
- throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, errorMessage);
27188
+ throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, ngDevMode && 'No ErrorHandler. Is platform module (BrowserModule) included?');
27192
27189
  }
27193
27190
  ngZone.runOutsideAngular(() => {
27194
27191
  const subscription = ngZone.onError.subscribe({
@@ -27244,12 +27241,10 @@ class PlatformRef {
27244
27241
  moduleRef.instance.ngDoBootstrap(appRef);
27245
27242
  }
27246
27243
  else {
27247
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27244
+ throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode &&
27248
27245
  `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +
27249
27246
  `but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ` +
27250
- `Please define one of these.` :
27251
- '';
27252
- throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, errorMessage);
27247
+ `Please define one of these.`);
27253
27248
  }
27254
27249
  this._modules.push(moduleRef);
27255
27250
  }
@@ -27272,10 +27267,7 @@ class PlatformRef {
27272
27267
  */
27273
27268
  destroy() {
27274
27269
  if (this._destroyed) {
27275
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27276
- 'The platform has already been destroyed!' :
27277
- '';
27278
- throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, errorMessage);
27270
+ throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');
27279
27271
  }
27280
27272
  this._modules.slice().forEach(module => module.destroy());
27281
27273
  this._destroyListeners.forEach(listener => listener());
@@ -27609,10 +27601,7 @@ class ApplicationRef {
27609
27601
  tick() {
27610
27602
  NG_DEV_MODE && this.warnIfDestroyed();
27611
27603
  if (this._runningTick) {
27612
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27613
- 'ApplicationRef.tick is called recursively' :
27614
- '';
27615
- throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, errorMessage);
27604
+ throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');
27616
27605
  }
27617
27606
  try {
27618
27607
  this._runningTick = true;
@@ -27701,7 +27690,7 @@ class ApplicationRef {
27701
27690
  */
27702
27691
  destroy() {
27703
27692
  if (this._destroyed) {
27704
- throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, NG_DEV_MODE && 'This instance of the `ApplicationRef` has already been destroyed.');
27693
+ throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');
27705
27694
  }
27706
27695
  const injector = this._injector;
27707
27696
  // Check that this injector instance supports destroy operation.
@@ -28740,10 +28729,8 @@ class DefaultIterableDiffer {
28740
28729
  if (collection == null)
28741
28730
  collection = [];
28742
28731
  if (!isListLikeIterable(collection)) {
28743
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
28744
- `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed` :
28745
- '';
28746
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
28732
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
28733
+ `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);
28747
28734
  }
28748
28735
  if (this.check(collection)) {
28749
28736
  return this;
@@ -29344,10 +29331,8 @@ class DefaultKeyValueDiffer {
29344
29331
  map = new Map();
29345
29332
  }
29346
29333
  else if (!(map instanceof Map || isJsObject(map))) {
29347
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29348
- `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed` :
29349
- '';
29350
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
29334
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
29335
+ `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);
29351
29336
  }
29352
29337
  return this.check(map) ? this : null;
29353
29338
  }
@@ -29594,10 +29579,8 @@ class IterableDiffers {
29594
29579
  return factory;
29595
29580
  }
29596
29581
  else {
29597
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29598
- `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'` :
29599
- '';
29600
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29582
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode &&
29583
+ `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);
29601
29584
  }
29602
29585
  }
29603
29586
  }
@@ -29671,10 +29654,7 @@ class KeyValueDiffers {
29671
29654
  if (factory) {
29672
29655
  return factory;
29673
29656
  }
29674
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29675
- `Cannot find a differ supporting object '${kv}'` :
29676
- '';
29677
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29657
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);
29678
29658
  }
29679
29659
  }
29680
29660
  /** @nocollapse */
@@ -846,9 +846,6 @@ export class YooGridComponent {
846
846
  },
847
847
  onRowClicked: (event) => {
848
848
  var _a, _b, _c;
849
- if (this.isReadonly) {
850
- return;
851
- }
852
849
  if (((_a = event.node) === null || _a === void 0 ? void 0 : _a.data) && !this.disconnected && (((_c = (_b = this.gridApi) === null || _b === void 0 ? void 0 : _b.getEditingCells()) === null || _c === void 0 ? void 0 : _c.length) || 0) === 0 && !this.disableRowClick) {
853
850
  this.onItemSelect(event.node.data, false);
854
851
  }
@@ -926,9 +926,6 @@ const YooGridComponent = class {
926
926
  },
927
927
  onRowClicked: (event) => {
928
928
  var _a, _b, _c;
929
- if (this.isReadonly) {
930
- return;
931
- }
932
929
  if (((_a = event.node) === null || _a === void 0 ? void 0 : _a.data) && !this.disconnected && (((_c = (_b = this.gridApi) === null || _b === void 0 ? void 0 : _b.getEditingCells()) === null || _c === void 0 ? void 0 : _c.length) || 0) === 0 && !this.disableRowClick) {
933
930
  this.onItemSelect(event.node.data, false);
934
931
  }
@@ -17,7 +17,7 @@ function race(...args) {
17
17
  }
18
18
 
19
19
  /**
20
- * @license Angular v14.0.2
20
+ * @license Angular v14.0.3
21
21
  * (c) 2010-2022 Google LLC. https://angular.io/
22
22
  * License: MIT
23
23
  */
@@ -4852,10 +4852,8 @@ function setCurrentInjector(injector) {
4852
4852
  }
4853
4853
  function injectInjectorOnly(token, flags = InjectFlags.Default) {
4854
4854
  if (_currentInjector === undefined) {
4855
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4856
- `inject() must be called from an injection context (a constructor, a factory function or a field initializer)` :
4857
- '';
4858
- throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, errorMessage);
4855
+ throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&
4856
+ `inject() must be called from an injection context (a constructor, a factory function or a field initializer)`);
4859
4857
  }
4860
4858
  else if (_currentInjector === null) {
4861
4859
  return injectRootLimpMode(token, undefined, flags);
@@ -4961,10 +4959,7 @@ function injectArgs(types) {
4961
4959
  const arg = resolveForwardRef(types[i]);
4962
4960
  if (Array.isArray(arg)) {
4963
4961
  if (arg.length === 0) {
4964
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4965
- 'Arguments array must have arguments.' :
4966
- '';
4967
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
4962
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');
4968
4963
  }
4969
4964
  let type = undefined;
4970
4965
  let flags = InjectFlags.Default;
@@ -6215,10 +6210,8 @@ function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
6215
6210
  if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL" /* BypassType.ResourceUrl */)) {
6216
6211
  return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));
6217
6212
  }
6218
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6219
- 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)' :
6220
- '';
6221
- throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, errorMessage);
6213
+ throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode &&
6214
+ 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
6222
6215
  }
6223
6216
  /**
6224
6217
  * A `script` sanitizer which only lets trusted javascript through.
@@ -6240,10 +6233,7 @@ function ɵɵsanitizeScript(unsafeScript) {
6240
6233
  if (allowSanitizationBypassAndThrow(unsafeScript, "Script" /* BypassType.Script */)) {
6241
6234
  return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));
6242
6235
  }
6243
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6244
- 'unsafe value used in a script context' :
6245
- '';
6246
- throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, errorMessage);
6236
+ throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');
6247
6237
  }
6248
6238
  /**
6249
6239
  * A template tag function for promoting the associated constant literal to a
@@ -14087,10 +14077,8 @@ function ɵɵInheritDefinitionFeature(definition) {
14087
14077
  }
14088
14078
  else {
14089
14079
  if (superType.ɵcmp) {
14090
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
14091
- `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}` :
14092
- '';
14093
- throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, errorMessage);
14080
+ throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode &&
14081
+ `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);
14094
14082
  }
14095
14083
  // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
14096
14084
  superDef = superType.ɵdir;
@@ -21787,7 +21775,7 @@ class Version {
21787
21775
  /**
21788
21776
  * @publicApi
21789
21777
  */
21790
- const VERSION = new Version('14.0.2');
21778
+ const VERSION = new Version('14.0.3');
21791
21779
 
21792
21780
  /**
21793
21781
  * @license
@@ -22125,8 +22113,7 @@ class ViewRef$1 {
22125
22113
  }
22126
22114
  attachToViewContainerRef() {
22127
22115
  if (this._appRef) {
22128
- const errorMessage = ngDevMode ? 'This view is already attached directly to the ApplicationRef!' : '';
22129
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22116
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');
22130
22117
  }
22131
22118
  this._attachedToViewContainer = true;
22132
22119
  }
@@ -22136,8 +22123,7 @@ class ViewRef$1 {
22136
22123
  }
22137
22124
  attachToAppRef(appRef) {
22138
22125
  if (this._attachedToViewContainer) {
22139
- const errorMessage = ngDevMode ? 'This view is already attached to a ViewContainer!' : '';
22140
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22126
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');
22141
22127
  }
22142
22128
  this._appRef = appRef;
22143
22129
  }
@@ -25168,14 +25154,20 @@ function getStandaloneDefFunctions(type, imports) {
25168
25154
  // Standalone components are always able to self-reference, so include the component's own
25169
25155
  // definition in its `directiveDefs`.
25170
25156
  cachedDirectiveDefs = [getComponentDef(type)];
25157
+ const seen = new Set();
25171
25158
  for (const rawDep of imports) {
25172
25159
  ngDevMode && verifyStandaloneImport(rawDep, type);
25173
25160
  const dep = resolveForwardRef(rawDep);
25161
+ if (seen.has(dep)) {
25162
+ continue;
25163
+ }
25164
+ seen.add(dep);
25174
25165
  if (!!getNgModuleDef(dep)) {
25175
25166
  const scope = transitiveScopesFor(dep);
25176
25167
  for (const dir of scope.exported.directives) {
25177
25168
  const def = getComponentDef(dir) || getDirectiveDef(dir);
25178
- if (def) {
25169
+ if (def && !seen.has(dir)) {
25170
+ seen.add(dir);
25179
25171
  cachedDirectiveDefs.push(def);
25180
25172
  }
25181
25173
  }
@@ -25193,11 +25185,22 @@ function getStandaloneDefFunctions(type, imports) {
25193
25185
  const pipeDefs = () => {
25194
25186
  if (cachedPipeDefs === null) {
25195
25187
  cachedPipeDefs = [];
25188
+ const seen = new Set();
25196
25189
  for (const rawDep of imports) {
25197
25190
  const dep = resolveForwardRef(rawDep);
25191
+ if (seen.has(dep)) {
25192
+ continue;
25193
+ }
25194
+ seen.add(dep);
25198
25195
  if (!!getNgModuleDef(dep)) {
25199
25196
  const scope = transitiveScopesFor(dep);
25200
- cachedPipeDefs.push(...Array.from(scope.exported.pipes).map(pipe => getPipeDef$1(pipe)));
25197
+ for (const pipe of scope.exported.pipes) {
25198
+ const def = getPipeDef$1(pipe);
25199
+ if (def && !seen.has(pipe)) {
25200
+ seen.add(pipe);
25201
+ cachedPipeDefs.push(def);
25202
+ }
25203
+ }
25201
25204
  }
25202
25205
  else {
25203
25206
  const def = getPipeDef$1(dep);
@@ -26977,10 +26980,8 @@ class NgProbeToken {
26977
26980
  */
26978
26981
  function createPlatform(injector) {
26979
26982
  if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
26980
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
26981
- 'There can be only one platform. Destroy the previous one to create a new one.' :
26982
- '';
26983
- throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, errorMessage);
26983
+ throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode &&
26984
+ 'There can be only one platform. Destroy the previous one to create a new one.');
26984
26985
  }
26985
26986
  publishDefaultGlobalUtils();
26986
26987
  _platformInjector = injector;
@@ -27100,8 +27101,7 @@ function createPlatformFactory(parentPlatformFactory, name, providers = []) {
27100
27101
  function assertPlatform(requiredToken) {
27101
27102
  const platform = getPlatform();
27102
27103
  if (!platform) {
27103
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ? 'No platform exists!' : '';
27104
- throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, errorMessage);
27104
+ throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
27105
27105
  }
27106
27106
  if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
27107
27107
  !platform.injector.get(requiredToken, null)) {
@@ -27181,10 +27181,7 @@ class PlatformRef {
27181
27181
  const moduleRef = moduleFactory.create(ngZoneInjector);
27182
27182
  const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);
27183
27183
  if (!exceptionHandler) {
27184
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27185
- 'No ErrorHandler. Is platform module (BrowserModule) included?' :
27186
- '';
27187
- throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, errorMessage);
27184
+ throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, ngDevMode && 'No ErrorHandler. Is platform module (BrowserModule) included?');
27188
27185
  }
27189
27186
  ngZone.runOutsideAngular(() => {
27190
27187
  const subscription = ngZone.onError.subscribe({
@@ -27240,12 +27237,10 @@ class PlatformRef {
27240
27237
  moduleRef.instance.ngDoBootstrap(appRef);
27241
27238
  }
27242
27239
  else {
27243
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27240
+ throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode &&
27244
27241
  `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +
27245
27242
  `but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ` +
27246
- `Please define one of these.` :
27247
- '';
27248
- throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, errorMessage);
27243
+ `Please define one of these.`);
27249
27244
  }
27250
27245
  this._modules.push(moduleRef);
27251
27246
  }
@@ -27268,10 +27263,7 @@ class PlatformRef {
27268
27263
  */
27269
27264
  destroy() {
27270
27265
  if (this._destroyed) {
27271
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27272
- 'The platform has already been destroyed!' :
27273
- '';
27274
- throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, errorMessage);
27266
+ throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');
27275
27267
  }
27276
27268
  this._modules.slice().forEach(module => module.destroy());
27277
27269
  this._destroyListeners.forEach(listener => listener());
@@ -27605,10 +27597,7 @@ class ApplicationRef {
27605
27597
  tick() {
27606
27598
  NG_DEV_MODE && this.warnIfDestroyed();
27607
27599
  if (this._runningTick) {
27608
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27609
- 'ApplicationRef.tick is called recursively' :
27610
- '';
27611
- throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, errorMessage);
27600
+ throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');
27612
27601
  }
27613
27602
  try {
27614
27603
  this._runningTick = true;
@@ -27697,7 +27686,7 @@ class ApplicationRef {
27697
27686
  */
27698
27687
  destroy() {
27699
27688
  if (this._destroyed) {
27700
- throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, NG_DEV_MODE && 'This instance of the `ApplicationRef` has already been destroyed.');
27689
+ throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');
27701
27690
  }
27702
27691
  const injector = this._injector;
27703
27692
  // Check that this injector instance supports destroy operation.
@@ -28736,10 +28725,8 @@ class DefaultIterableDiffer {
28736
28725
  if (collection == null)
28737
28726
  collection = [];
28738
28727
  if (!isListLikeIterable(collection)) {
28739
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
28740
- `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed` :
28741
- '';
28742
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
28728
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
28729
+ `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);
28743
28730
  }
28744
28731
  if (this.check(collection)) {
28745
28732
  return this;
@@ -29340,10 +29327,8 @@ class DefaultKeyValueDiffer {
29340
29327
  map = new Map();
29341
29328
  }
29342
29329
  else if (!(map instanceof Map || isJsObject(map))) {
29343
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29344
- `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed` :
29345
- '';
29346
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
29330
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
29331
+ `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);
29347
29332
  }
29348
29333
  return this.check(map) ? this : null;
29349
29334
  }
@@ -29590,10 +29575,8 @@ class IterableDiffers {
29590
29575
  return factory;
29591
29576
  }
29592
29577
  else {
29593
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29594
- `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'` :
29595
- '';
29596
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29578
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode &&
29579
+ `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);
29597
29580
  }
29598
29581
  }
29599
29582
  }
@@ -29667,10 +29650,7 @@ class KeyValueDiffers {
29667
29650
  if (factory) {
29668
29651
  return factory;
29669
29652
  }
29670
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29671
- `Cannot find a differ supporting object '${kv}'` :
29672
- '';
29673
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29653
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);
29674
29654
  }
29675
29655
  }
29676
29656
  /** @nocollapse */
@@ -926,9 +926,6 @@ const YooGridComponent = class {
926
926
  },
927
927
  onRowClicked: (event) => {
928
928
  var _a, _b, _c;
929
- if (this.isReadonly) {
930
- return;
931
- }
932
929
  if (((_a = event.node) === null || _a === void 0 ? void 0 : _a.data) && !this.disconnected && (((_c = (_b = this.gridApi) === null || _b === void 0 ? void 0 : _b.getEditingCells()) === null || _c === void 0 ? void 0 : _c.length) || 0) === 0 && !this.disableRowClick) {
933
930
  this.onItemSelect(event.node.data, false);
934
931
  }
@@ -17,7 +17,7 @@ function race(...args) {
17
17
  }
18
18
 
19
19
  /**
20
- * @license Angular v14.0.2
20
+ * @license Angular v14.0.3
21
21
  * (c) 2010-2022 Google LLC. https://angular.io/
22
22
  * License: MIT
23
23
  */
@@ -4852,10 +4852,8 @@ function setCurrentInjector(injector) {
4852
4852
  }
4853
4853
  function injectInjectorOnly(token, flags = InjectFlags.Default) {
4854
4854
  if (_currentInjector === undefined) {
4855
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4856
- `inject() must be called from an injection context (a constructor, a factory function or a field initializer)` :
4857
- '';
4858
- throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, errorMessage);
4855
+ throw new RuntimeError(-203 /* RuntimeErrorCode.MISSING_INJECTION_CONTEXT */, ngDevMode &&
4856
+ `inject() must be called from an injection context (a constructor, a factory function or a field initializer)`);
4859
4857
  }
4860
4858
  else if (_currentInjector === null) {
4861
4859
  return injectRootLimpMode(token, undefined, flags);
@@ -4961,10 +4959,7 @@ function injectArgs(types) {
4961
4959
  const arg = resolveForwardRef(types[i]);
4962
4960
  if (Array.isArray(arg)) {
4963
4961
  if (arg.length === 0) {
4964
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
4965
- 'Arguments array must have arguments.' :
4966
- '';
4967
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
4962
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode && 'Arguments array must have arguments.');
4968
4963
  }
4969
4964
  let type = undefined;
4970
4965
  let flags = InjectFlags.Default;
@@ -6215,10 +6210,8 @@ function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
6215
6210
  if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL" /* BypassType.ResourceUrl */)) {
6216
6211
  return trustedScriptURLFromStringBypass(unwrapSafeValue(unsafeResourceUrl));
6217
6212
  }
6218
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6219
- 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)' :
6220
- '';
6221
- throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, errorMessage);
6213
+ throw new RuntimeError(904 /* RuntimeErrorCode.UNSAFE_VALUE_IN_RESOURCE_URL */, ngDevMode &&
6214
+ 'unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
6222
6215
  }
6223
6216
  /**
6224
6217
  * A `script` sanitizer which only lets trusted javascript through.
@@ -6240,10 +6233,7 @@ function ɵɵsanitizeScript(unsafeScript) {
6240
6233
  if (allowSanitizationBypassAndThrow(unsafeScript, "Script" /* BypassType.Script */)) {
6241
6234
  return trustedScriptFromStringBypass(unwrapSafeValue(unsafeScript));
6242
6235
  }
6243
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
6244
- 'unsafe value used in a script context' :
6245
- '';
6246
- throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, errorMessage);
6236
+ throw new RuntimeError(905 /* RuntimeErrorCode.UNSAFE_VALUE_IN_SCRIPT */, ngDevMode && 'unsafe value used in a script context');
6247
6237
  }
6248
6238
  /**
6249
6239
  * A template tag function for promoting the associated constant literal to a
@@ -14087,10 +14077,8 @@ function ɵɵInheritDefinitionFeature(definition) {
14087
14077
  }
14088
14078
  else {
14089
14079
  if (superType.ɵcmp) {
14090
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
14091
- `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}` :
14092
- '';
14093
- throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, errorMessage);
14080
+ throw new RuntimeError(903 /* RuntimeErrorCode.INVALID_INHERITANCE */, ngDevMode &&
14081
+ `Directives cannot inherit Components. Directive ${stringifyForError(definition.type)} is attempting to extend component ${stringifyForError(superType)}`);
14094
14082
  }
14095
14083
  // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
14096
14084
  superDef = superType.ɵdir;
@@ -21787,7 +21775,7 @@ class Version {
21787
21775
  /**
21788
21776
  * @publicApi
21789
21777
  */
21790
- const VERSION = new Version('14.0.2');
21778
+ const VERSION = new Version('14.0.3');
21791
21779
 
21792
21780
  /**
21793
21781
  * @license
@@ -22125,8 +22113,7 @@ class ViewRef$1 {
22125
22113
  }
22126
22114
  attachToViewContainerRef() {
22127
22115
  if (this._appRef) {
22128
- const errorMessage = ngDevMode ? 'This view is already attached directly to the ApplicationRef!' : '';
22129
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22116
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached directly to the ApplicationRef!');
22130
22117
  }
22131
22118
  this._attachedToViewContainer = true;
22132
22119
  }
@@ -22136,8 +22123,7 @@ class ViewRef$1 {
22136
22123
  }
22137
22124
  attachToAppRef(appRef) {
22138
22125
  if (this._attachedToViewContainer) {
22139
- const errorMessage = ngDevMode ? 'This view is already attached to a ViewContainer!' : '';
22140
- throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, errorMessage);
22126
+ throw new RuntimeError(902 /* RuntimeErrorCode.VIEW_ALREADY_ATTACHED */, ngDevMode && 'This view is already attached to a ViewContainer!');
22141
22127
  }
22142
22128
  this._appRef = appRef;
22143
22129
  }
@@ -25168,14 +25154,20 @@ function getStandaloneDefFunctions(type, imports) {
25168
25154
  // Standalone components are always able to self-reference, so include the component's own
25169
25155
  // definition in its `directiveDefs`.
25170
25156
  cachedDirectiveDefs = [getComponentDef(type)];
25157
+ const seen = new Set();
25171
25158
  for (const rawDep of imports) {
25172
25159
  ngDevMode && verifyStandaloneImport(rawDep, type);
25173
25160
  const dep = resolveForwardRef(rawDep);
25161
+ if (seen.has(dep)) {
25162
+ continue;
25163
+ }
25164
+ seen.add(dep);
25174
25165
  if (!!getNgModuleDef(dep)) {
25175
25166
  const scope = transitiveScopesFor(dep);
25176
25167
  for (const dir of scope.exported.directives) {
25177
25168
  const def = getComponentDef(dir) || getDirectiveDef(dir);
25178
- if (def) {
25169
+ if (def && !seen.has(dir)) {
25170
+ seen.add(dir);
25179
25171
  cachedDirectiveDefs.push(def);
25180
25172
  }
25181
25173
  }
@@ -25193,11 +25185,22 @@ function getStandaloneDefFunctions(type, imports) {
25193
25185
  const pipeDefs = () => {
25194
25186
  if (cachedPipeDefs === null) {
25195
25187
  cachedPipeDefs = [];
25188
+ const seen = new Set();
25196
25189
  for (const rawDep of imports) {
25197
25190
  const dep = resolveForwardRef(rawDep);
25191
+ if (seen.has(dep)) {
25192
+ continue;
25193
+ }
25194
+ seen.add(dep);
25198
25195
  if (!!getNgModuleDef(dep)) {
25199
25196
  const scope = transitiveScopesFor(dep);
25200
- cachedPipeDefs.push(...Array.from(scope.exported.pipes).map(pipe => getPipeDef$1(pipe)));
25197
+ for (const pipe of scope.exported.pipes) {
25198
+ const def = getPipeDef$1(pipe);
25199
+ if (def && !seen.has(pipe)) {
25200
+ seen.add(pipe);
25201
+ cachedPipeDefs.push(def);
25202
+ }
25203
+ }
25201
25204
  }
25202
25205
  else {
25203
25206
  const def = getPipeDef$1(dep);
@@ -26977,10 +26980,8 @@ class NgProbeToken {
26977
26980
  */
26978
26981
  function createPlatform(injector) {
26979
26982
  if (_platformInjector && !_platformInjector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
26980
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
26981
- 'There can be only one platform. Destroy the previous one to create a new one.' :
26982
- '';
26983
- throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, errorMessage);
26983
+ throw new RuntimeError(400 /* RuntimeErrorCode.MULTIPLE_PLATFORMS */, ngDevMode &&
26984
+ 'There can be only one platform. Destroy the previous one to create a new one.');
26984
26985
  }
26985
26986
  publishDefaultGlobalUtils();
26986
26987
  _platformInjector = injector;
@@ -27100,8 +27101,7 @@ function createPlatformFactory(parentPlatformFactory, name, providers = []) {
27100
27101
  function assertPlatform(requiredToken) {
27101
27102
  const platform = getPlatform();
27102
27103
  if (!platform) {
27103
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ? 'No platform exists!' : '';
27104
- throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, errorMessage);
27104
+ throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
27105
27105
  }
27106
27106
  if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
27107
27107
  !platform.injector.get(requiredToken, null)) {
@@ -27181,10 +27181,7 @@ class PlatformRef {
27181
27181
  const moduleRef = moduleFactory.create(ngZoneInjector);
27182
27182
  const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);
27183
27183
  if (!exceptionHandler) {
27184
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27185
- 'No ErrorHandler. Is platform module (BrowserModule) included?' :
27186
- '';
27187
- throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, errorMessage);
27184
+ throw new RuntimeError(402 /* RuntimeErrorCode.ERROR_HANDLER_NOT_FOUND */, ngDevMode && 'No ErrorHandler. Is platform module (BrowserModule) included?');
27188
27185
  }
27189
27186
  ngZone.runOutsideAngular(() => {
27190
27187
  const subscription = ngZone.onError.subscribe({
@@ -27240,12 +27237,10 @@ class PlatformRef {
27240
27237
  moduleRef.instance.ngDoBootstrap(appRef);
27241
27238
  }
27242
27239
  else {
27243
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27240
+ throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, ngDevMode &&
27244
27241
  `The module ${stringify(moduleRef.instance.constructor)} was bootstrapped, ` +
27245
27242
  `but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ` +
27246
- `Please define one of these.` :
27247
- '';
27248
- throw new RuntimeError(403 /* RuntimeErrorCode.BOOTSTRAP_COMPONENTS_NOT_FOUND */, errorMessage);
27243
+ `Please define one of these.`);
27249
27244
  }
27250
27245
  this._modules.push(moduleRef);
27251
27246
  }
@@ -27268,10 +27263,7 @@ class PlatformRef {
27268
27263
  */
27269
27264
  destroy() {
27270
27265
  if (this._destroyed) {
27271
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27272
- 'The platform has already been destroyed!' :
27273
- '';
27274
- throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, errorMessage);
27266
+ throw new RuntimeError(404 /* RuntimeErrorCode.PLATFORM_ALREADY_DESTROYED */, ngDevMode && 'The platform has already been destroyed!');
27275
27267
  }
27276
27268
  this._modules.slice().forEach(module => module.destroy());
27277
27269
  this._destroyListeners.forEach(listener => listener());
@@ -27605,10 +27597,7 @@ class ApplicationRef {
27605
27597
  tick() {
27606
27598
  NG_DEV_MODE && this.warnIfDestroyed();
27607
27599
  if (this._runningTick) {
27608
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
27609
- 'ApplicationRef.tick is called recursively' :
27610
- '';
27611
- throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, errorMessage);
27600
+ throw new RuntimeError(101 /* RuntimeErrorCode.RECURSIVE_APPLICATION_REF_TICK */, ngDevMode && 'ApplicationRef.tick is called recursively');
27612
27601
  }
27613
27602
  try {
27614
27603
  this._runningTick = true;
@@ -27697,7 +27686,7 @@ class ApplicationRef {
27697
27686
  */
27698
27687
  destroy() {
27699
27688
  if (this._destroyed) {
27700
- throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, NG_DEV_MODE && 'This instance of the `ApplicationRef` has already been destroyed.');
27689
+ throw new RuntimeError(406 /* RuntimeErrorCode.APPLICATION_REF_ALREADY_DESTROYED */, ngDevMode && 'This instance of the `ApplicationRef` has already been destroyed.');
27701
27690
  }
27702
27691
  const injector = this._injector;
27703
27692
  // Check that this injector instance supports destroy operation.
@@ -28736,10 +28725,8 @@ class DefaultIterableDiffer {
28736
28725
  if (collection == null)
28737
28726
  collection = [];
28738
28727
  if (!isListLikeIterable(collection)) {
28739
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
28740
- `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed` :
28741
- '';
28742
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
28728
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
28729
+ `Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);
28743
28730
  }
28744
28731
  if (this.check(collection)) {
28745
28732
  return this;
@@ -29340,10 +29327,8 @@ class DefaultKeyValueDiffer {
29340
29327
  map = new Map();
29341
29328
  }
29342
29329
  else if (!(map instanceof Map || isJsObject(map))) {
29343
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29344
- `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed` :
29345
- '';
29346
- throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, errorMessage);
29330
+ throw new RuntimeError(900 /* RuntimeErrorCode.INVALID_DIFFER_INPUT */, ngDevMode &&
29331
+ `Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);
29347
29332
  }
29348
29333
  return this.check(map) ? this : null;
29349
29334
  }
@@ -29590,10 +29575,8 @@ class IterableDiffers {
29590
29575
  return factory;
29591
29576
  }
29592
29577
  else {
29593
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29594
- `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'` :
29595
- '';
29596
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29578
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode &&
29579
+ `Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);
29597
29580
  }
29598
29581
  }
29599
29582
  }
@@ -29667,10 +29650,7 @@ class KeyValueDiffers {
29667
29650
  if (factory) {
29668
29651
  return factory;
29669
29652
  }
29670
- const errorMessage = (typeof ngDevMode === 'undefined' || ngDevMode) ?
29671
- `Cannot find a differ supporting object '${kv}'` :
29672
- '';
29673
- throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, errorMessage);
29653
+ throw new RuntimeError(901 /* RuntimeErrorCode.NO_SUPPORTING_DIFFER_FACTORY */, ngDevMode && `Cannot find a differ supporting object '${kv}'`);
29674
29654
  }
29675
29655
  }
29676
29656
  /** @nocollapse */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoobic/yobi",
3
- "version": "8.3.0-8",
3
+ "version": "8.3.0-9",
4
4
  "description": "Yobi - Yoobic Design System",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.cjs.js",