@sitecore-jss/sitecore-jss-angular 20.0.0-canary.49 → 20.0.0-canary.54

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@sitecore-jss/sitecore-jss/media'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@angular/common'), require('@sitecore-jss/sitecore-jss/utils'), require('@sitecore-jss/sitecore-jss/i18n'), require('@sitecore-jss/sitecore-jss/layout'), require('@sitecore-jss/sitecore-jss')) :
3
3
  typeof define === 'function' && define.amd ? define('@sitecore-jss/sitecore-jss-angular', ['exports', '@angular/core', '@sitecore-jss/sitecore-jss/media', '@angular/router', 'rxjs', 'rxjs/operators', '@angular/common', '@sitecore-jss/sitecore-jss/utils', '@sitecore-jss/sitecore-jss/i18n', '@sitecore-jss/sitecore-jss/layout', '@sitecore-jss/sitecore-jss'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sitecore-jss'] = global['sitecore-jss'] || {}, global['sitecore-jss']['sitecore-jss-angular'] = {}), global.ng.core, global.media, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.utils, global.i18n, global.layout, global['@sitecore-jss/sitecore-jss']));
5
- }(this, (function (exports, core, media, router, rxjs, operators, common, utils, i18n, layout, sitecoreJss) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sitecore-jss"] = global["sitecore-jss"] || {}, global["sitecore-jss"]["sitecore-jss-angular"] = {}), global.ng.core, global.media, global.ng.router, global.rxjs, global.rxjs.operators, global.ng.common, global.utils, global.i18n, global.layout, global["@sitecore-jss/sitecore-jss"]));
5
+ })(this, (function (exports, core, media, router, rxjs, operators, common, utils, i18n, layout, sitecoreJss) { 'use strict';
6
6
 
7
7
  /**
8
8
  * File fields cannot be managed via the EE. We never output "editable."
@@ -50,29 +50,31 @@
50
50
  };
51
51
 
52
52
  /*! *****************************************************************************
53
- Copyright (c) Microsoft Corporation. All rights reserved.
54
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
55
- this file except in compliance with the License. You may obtain a copy of the
56
- License at http://www.apache.org/licenses/LICENSE-2.0
53
+ Copyright (c) Microsoft Corporation.
57
54
 
58
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
59
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
60
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
61
- MERCHANTABLITY OR NON-INFRINGEMENT.
55
+ Permission to use, copy, modify, and/or distribute this software for any
56
+ purpose with or without fee is hereby granted.
62
57
 
63
- See the Apache Version 2.0 License for specific language governing permissions
64
- and limitations under the License.
58
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
59
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
60
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
61
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
62
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
63
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
64
+ PERFORMANCE OF THIS SOFTWARE.
65
65
  ***************************************************************************** */
66
66
  /* global Reflect, Promise */
67
67
  var extendStatics = function (d, b) {
68
68
  extendStatics = Object.setPrototypeOf ||
69
69
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
70
70
  function (d, b) { for (var p in b)
71
- if (b.hasOwnProperty(p))
71
+ if (Object.prototype.hasOwnProperty.call(b, p))
72
72
  d[p] = b[p]; };
73
73
  return extendStatics(d, b);
74
74
  };
75
75
  function __extends(d, b) {
76
+ if (typeof b !== "function" && b !== null)
77
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
76
78
  extendStatics(d, b);
77
79
  function __() { this.constructor = d; }
78
80
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -119,6 +121,7 @@
119
121
  return Reflect.metadata(metadataKey, metadataValue);
120
122
  }
121
123
  function __awaiter(thisArg, _arguments, P, generator) {
124
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
122
125
  return new (P || (P = Promise))(function (resolve, reject) {
123
126
  function fulfilled(value) { try {
124
127
  step(generator.next(value));
@@ -132,7 +135,7 @@
132
135
  catch (e) {
133
136
  reject(e);
134
137
  } }
135
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
138
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
136
139
  step((generator = generator.apply(thisArg, _arguments || [])).next());
137
140
  });
138
141
  }
@@ -205,22 +208,33 @@
205
208
  return { value: op[0] ? op[1] : void 0, done: true };
206
209
  }
207
210
  }
208
- function __exportStar(m, exports) {
211
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
212
+ if (k2 === undefined)
213
+ k2 = k;
214
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
215
+ }) : (function (o, m, k, k2) {
216
+ if (k2 === undefined)
217
+ k2 = k;
218
+ o[k2] = m[k];
219
+ });
220
+ function __exportStar(m, o) {
209
221
  for (var p in m)
210
- if (!exports.hasOwnProperty(p))
211
- exports[p] = m[p];
222
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
223
+ __createBinding(o, m, p);
212
224
  }
213
225
  function __values(o) {
214
- var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
226
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
215
227
  if (m)
216
228
  return m.call(o);
217
- return {
218
- next: function () {
219
- if (o && i >= o.length)
220
- o = void 0;
221
- return { value: o && o[i++], done: !o };
222
- }
223
- };
229
+ if (o && typeof o.length === "number")
230
+ return {
231
+ next: function () {
232
+ if (o && i >= o.length)
233
+ o = void 0;
234
+ return { value: o && o[i++], done: !o };
235
+ }
236
+ };
237
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
224
238
  }
225
239
  function __read(o, n) {
226
240
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -246,11 +260,13 @@
246
260
  }
247
261
  return ar;
248
262
  }
263
+ /** @deprecated */
249
264
  function __spread() {
250
265
  for (var ar = [], i = 0; i < arguments.length; i++)
251
266
  ar = ar.concat(__read(arguments[i]));
252
267
  return ar;
253
268
  }
269
+ /** @deprecated */
254
270
  function __spreadArrays() {
255
271
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
256
272
  s += arguments[i].length;
@@ -259,7 +275,17 @@
259
275
  r[k] = a[j];
260
276
  return r;
261
277
  }
262
- ;
278
+ function __spreadArray(to, from, pack) {
279
+ if (pack || arguments.length === 2)
280
+ for (var i = 0, l = from.length, ar; i < l; i++) {
281
+ if (ar || !(i in from)) {
282
+ if (!ar)
283
+ ar = Array.prototype.slice.call(from, 0, i);
284
+ ar[i] = from[i];
285
+ }
286
+ }
287
+ return to.concat(ar || Array.prototype.slice.call(from));
288
+ }
263
289
  function __await(v) {
264
290
  return this instanceof __await ? (this.v = v, this) : new __await(v);
265
291
  }
@@ -305,20 +331,41 @@
305
331
  return cooked;
306
332
  }
307
333
  ;
334
+ var __setModuleDefault = Object.create ? (function (o, v) {
335
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
336
+ }) : function (o, v) {
337
+ o["default"] = v;
338
+ };
308
339
  function __importStar(mod) {
309
340
  if (mod && mod.__esModule)
310
341
  return mod;
311
342
  var result = {};
312
343
  if (mod != null)
313
344
  for (var k in mod)
314
- if (Object.hasOwnProperty.call(mod, k))
315
- result[k] = mod[k];
316
- result.default = mod;
345
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
346
+ __createBinding(result, mod, k);
347
+ __setModuleDefault(result, mod);
317
348
  return result;
318
349
  }
319
350
  function __importDefault(mod) {
320
351
  return (mod && mod.__esModule) ? mod : { default: mod };
321
352
  }
353
+ function __classPrivateFieldGet(receiver, state, kind, f) {
354
+ if (kind === "a" && !f)
355
+ throw new TypeError("Private accessor was defined without a getter");
356
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
357
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
358
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
359
+ }
360
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
361
+ if (kind === "m")
362
+ throw new TypeError("Private method is not writable");
363
+ if (kind === "a" && !f)
364
+ throw new TypeError("Private accessor was defined without a setter");
365
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
366
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
367
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
368
+ }
322
369
 
323
370
  var ImageDirective = /** @class */ (function () {
324
371
  function ImageDirective(viewContainer, templateRef, renderer, elementRef) {
@@ -1480,81 +1527,55 @@
1480
1527
 
1481
1528
  Object.defineProperty(exports, 'mediaApi', {
1482
1529
  enumerable: true,
1483
- get: function () {
1484
- return media.mediaApi;
1485
- }
1530
+ get: function () { return media.mediaApi; }
1486
1531
  });
1487
1532
  Object.defineProperty(exports, 'isEditorActive', {
1488
1533
  enumerable: true,
1489
- get: function () {
1490
- return utils.isEditorActive;
1491
- }
1534
+ get: function () { return utils.isEditorActive; }
1492
1535
  });
1493
1536
  Object.defineProperty(exports, 'isExperienceEditorActive', {
1494
1537
  enumerable: true,
1495
- get: function () {
1496
- return utils.isExperienceEditorActive;
1497
- }
1538
+ get: function () { return utils.isExperienceEditorActive; }
1498
1539
  });
1499
1540
  Object.defineProperty(exports, 'isServer', {
1500
1541
  enumerable: true,
1501
- get: function () {
1502
- return utils.isServer;
1503
- }
1542
+ get: function () { return utils.isServer; }
1504
1543
  });
1505
1544
  Object.defineProperty(exports, 'resetEditorChromes', {
1506
1545
  enumerable: true,
1507
- get: function () {
1508
- return utils.resetEditorChromes;
1509
- }
1546
+ get: function () { return utils.resetEditorChromes; }
1510
1547
  });
1511
1548
  Object.defineProperty(exports, 'resetExperienceEditorChromes', {
1512
1549
  enumerable: true,
1513
- get: function () {
1514
- return utils.resetExperienceEditorChromes;
1515
- }
1550
+ get: function () { return utils.resetExperienceEditorChromes; }
1516
1551
  });
1517
1552
  Object.defineProperty(exports, 'GraphQLDictionaryService', {
1518
1553
  enumerable: true,
1519
- get: function () {
1520
- return i18n.GraphQLDictionaryService;
1521
- }
1554
+ get: function () { return i18n.GraphQLDictionaryService; }
1522
1555
  });
1523
1556
  Object.defineProperty(exports, 'RestDictionaryService', {
1524
1557
  enumerable: true,
1525
- get: function () {
1526
- return i18n.RestDictionaryService;
1527
- }
1558
+ get: function () { return i18n.RestDictionaryService; }
1528
1559
  });
1529
1560
  Object.defineProperty(exports, 'GraphQLLayoutService', {
1530
1561
  enumerable: true,
1531
- get: function () {
1532
- return layout.GraphQLLayoutService;
1533
- }
1562
+ get: function () { return layout.GraphQLLayoutService; }
1534
1563
  });
1535
1564
  Object.defineProperty(exports, 'RestLayoutService', {
1536
1565
  enumerable: true,
1537
- get: function () {
1538
- return layout.RestLayoutService;
1539
- }
1566
+ get: function () { return layout.RestLayoutService; }
1540
1567
  });
1541
1568
  Object.defineProperty(exports, 'getChildPlaceholder', {
1542
1569
  enumerable: true,
1543
- get: function () {
1544
- return layout.getChildPlaceholder;
1545
- }
1570
+ get: function () { return layout.getChildPlaceholder; }
1546
1571
  });
1547
1572
  Object.defineProperty(exports, 'getFieldValue', {
1548
1573
  enumerable: true,
1549
- get: function () {
1550
- return layout.getFieldValue;
1551
- }
1574
+ get: function () { return layout.getFieldValue; }
1552
1575
  });
1553
1576
  Object.defineProperty(exports, 'constants', {
1554
1577
  enumerable: true,
1555
- get: function () {
1556
- return sitecoreJss.constants;
1557
- }
1578
+ get: function () { return sitecoreJss.constants; }
1558
1579
  });
1559
1580
  exports.ComponentNameAndType = ComponentNameAndType;
1560
1581
  exports.DYNAMIC_COMPONENT = DYNAMIC_COMPONENT;
@@ -1570,20 +1591,20 @@
1570
1591
  exports.TextDirective = TextDirective;
1571
1592
  exports.handleEditorAnchors = handleEditorAnchors;
1572
1593
  exports.isRawRendering = isRawRendering;
1573
- exports.ɵb = PLACEHOLDER_COMPONENTS;
1574
- exports.ɵc = PLACEHOLDER_LAZY_COMPONENTS;
1575
- exports.ɵd = PLACEHOLDER_MISSING_COMPONENT_COMPONENT;
1576
- exports.ɵe = PLACEHOLDER_HIDDEN_RENDERING_COMPONENT;
1577
- exports.ɵf = RenderEachDirective;
1578
- exports.ɵg = RenderEmptyDirective;
1579
- exports.ɵh = JssComponentFactoryService;
1580
- exports.ɵi = DateDirective;
1581
- exports.ɵj = RenderComponentComponent;
1582
- exports.ɵk = RawComponent;
1583
- exports.ɵl = MissingComponentComponent;
1584
- exports.ɵm = HiddenRenderingComponent;
1594
+ exports["ɵb"] = PLACEHOLDER_COMPONENTS;
1595
+ exports["ɵc"] = PLACEHOLDER_LAZY_COMPONENTS;
1596
+ exports["ɵd"] = PLACEHOLDER_MISSING_COMPONENT_COMPONENT;
1597
+ exports["ɵe"] = PLACEHOLDER_HIDDEN_RENDERING_COMPONENT;
1598
+ exports["ɵf"] = RenderEachDirective;
1599
+ exports["ɵg"] = RenderEmptyDirective;
1600
+ exports["ɵh"] = JssComponentFactoryService;
1601
+ exports["ɵi"] = DateDirective;
1602
+ exports["ɵj"] = RenderComponentComponent;
1603
+ exports["ɵk"] = RawComponent;
1604
+ exports["ɵl"] = MissingComponentComponent;
1605
+ exports["ɵm"] = HiddenRenderingComponent;
1585
1606
 
1586
1607
  Object.defineProperty(exports, '__esModule', { value: true });
1587
1608
 
1588
- })));
1609
+ }));
1589
1610
  //# sourceMappingURL=sitecore-jss-sitecore-jss-angular.umd.js.map