@yoobic/yobi 8.1.0-131 → 8.1.0-132

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.
@@ -1998,7 +1998,7 @@ const YooFormDynamicComponent = class {
1998
1998
  (_a = this.formFooterElement) === null || _a === void 0 ? void 0 : _a.classList.remove('hide');
1999
1999
  }
2000
2000
  onHideTabbar(ev) {
2001
- if (index$1.getSession().isExternal) {
2001
+ if (index$1.getSession().isExternal || index$1.isWeb(this.host)) {
2002
2002
  return;
2003
2003
  }
2004
2004
  if (this.isMission()) {
@@ -20,7 +20,7 @@ function race(...args) {
20
20
  }
21
21
 
22
22
  /**
23
- * @license Angular v13.3.1
23
+ * @license Angular v13.3.2
24
24
  * (c) 2010-2022 Google LLC. https://angular.io/
25
25
  * License: MIT
26
26
  */
@@ -10070,7 +10070,7 @@ function elementPropertyInternal(tView, tNode, lView, propName, value, renderer,
10070
10070
  else if (tNode.type & 12 /* AnyContainer */) {
10071
10071
  // If the node is a container and the property didn't
10072
10072
  // match any of the inputs or schemas we should throw.
10073
- if (ngDevMode && !matchingSchemas(tView, tNode.value)) {
10073
+ if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {
10074
10074
  logUnknownPropertyError(propName, tNode);
10075
10075
  }
10076
10076
  }
@@ -10132,15 +10132,20 @@ function validateProperty(tView, element, propName, tNode) {
10132
10132
  return true;
10133
10133
  // The property is considered valid if the element matches the schema, it exists on the element
10134
10134
  // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).
10135
- if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {
10135
+ if (matchingSchemas(tView.schemas, tNode.value) || propName in element ||
10136
+ isAnimationProp(propName)) {
10136
10137
  return true;
10137
10138
  }
10138
10139
  // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we
10139
10140
  // need to account for both here, while being careful for `typeof null` also returning 'object'.
10140
10141
  return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
10141
10142
  }
10142
- function matchingSchemas(tView, tagName) {
10143
- const schemas = tView.schemas;
10143
+ /**
10144
+ * Returns true if the tag name is allowed by specified schemas.
10145
+ * @param schemas Array of schemas
10146
+ * @param tagName Name of the tag
10147
+ */
10148
+ function matchingSchemas(schemas, tagName) {
10144
10149
  if (schemas !== null) {
10145
10150
  for (let i = 0; i < schemas.length; i++) {
10146
10151
  const schema = schemas[i];
@@ -14491,7 +14496,7 @@ function elementStartFirstCreatePass(index, tView, lView, native, name, attrsInd
14491
14496
  const attrs = getConstant(tViewConsts, attrsIndex);
14492
14497
  const tNode = getOrCreateTNode(tView, index, 2 /* Element */, name, attrs);
14493
14498
  const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
14494
- ngDevMode && logUnknownElementError(tView, native, tNode, hasDirectives);
14499
+ ngDevMode && validateElementIsKnown(native, tNode.value, tView.schemas, hasDirectives);
14495
14500
  if (tNode.attrs !== null) {
14496
14501
  computeStaticStyling(tNode, tNode.attrs, false);
14497
14502
  }
@@ -14615,18 +14620,33 @@ function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
14615
14620
  ɵɵelementEnd();
14616
14621
  return ɵɵelement;
14617
14622
  }
14618
- function logUnknownElementError(tView, element, tNode, hasDirectives) {
14619
- const schemas = tView.schemas;
14623
+ /**
14624
+ * Validates that the element is known at runtime and produces
14625
+ * an error if it's not the case.
14626
+ * This check is relevant for JIT-compiled components (for AOT-compiled
14627
+ * ones this check happens at build time).
14628
+ *
14629
+ * The element is considered known if either:
14630
+ * - it's a known HTML element
14631
+ * - it's a known custom element
14632
+ * - the element matches any directive
14633
+ * - the element is allowed by one of the schemas
14634
+ *
14635
+ * @param element Element to validate
14636
+ * @param tagName Name of the tag to check
14637
+ * @param schemas Array of schemas
14638
+ * @param hasDirectives Boolean indicating that the element matches any directive
14639
+ */
14640
+ function validateElementIsKnown(element, tagName, schemas, hasDirectives) {
14620
14641
  // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
14621
14642
  // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
14622
14643
  // defined as an array (as an empty array in case `schemas` field is not defined) and we should
14623
14644
  // execute the check below.
14624
14645
  if (schemas === null)
14625
14646
  return;
14626
- const tagName = tNode.value;
14627
14647
  // If the element matches any directive, it's considered as valid.
14628
14648
  if (!hasDirectives && tagName !== null) {
14629
- // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered
14649
+ // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered
14630
14650
  // as a custom element. Note that unknown elements with a dash in their name won't be instances
14631
14651
  // of HTMLUnknownElement in browsers that support web components.
14632
14652
  const isUnknown =
@@ -14636,7 +14656,7 @@ function logUnknownElementError(tView, element, tNode, hasDirectives) {
14636
14656
  element instanceof HTMLUnknownElement) ||
14637
14657
  (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&
14638
14658
  !customElements.get(tagName));
14639
- if (isUnknown && !matchingSchemas(tView, tagName)) {
14659
+ if (isUnknown && !matchingSchemas(schemas, tagName)) {
14640
14660
  let message = `'${tagName}' is not a known element:\n`;
14641
14661
  message += `1. If '${tagName}' is an Angular component, then verify that it is part of this module.\n`;
14642
14662
  if (tagName && tagName.indexOf('-') > -1) {
@@ -21106,7 +21126,7 @@ class Version {
21106
21126
  /**
21107
21127
  * @publicApi
21108
21128
  */
21109
- const VERSION = new Version('13.3.1');
21129
+ const VERSION = new Version('13.3.2');
21110
21130
 
21111
21131
  /**
21112
21132
  * @license
@@ -1794,7 +1794,7 @@ export class YooFormDynamicComponent {
1794
1794
  (_a = this.formFooterElement) === null || _a === void 0 ? void 0 : _a.classList.remove('hide');
1795
1795
  }
1796
1796
  onHideTabbar(ev) {
1797
- if (getSession().isExternal) {
1797
+ if (getSession().isExternal || isWeb(this.host)) {
1798
1798
  return;
1799
1799
  }
1800
1800
  if (this.isMission()) {
@@ -1994,7 +1994,7 @@ const YooFormDynamicComponent = class {
1994
1994
  (_a = this.formFooterElement) === null || _a === void 0 ? void 0 : _a.classList.remove('hide');
1995
1995
  }
1996
1996
  onHideTabbar(ev) {
1997
- if (getSession().isExternal) {
1997
+ if (getSession().isExternal || isWeb(this.host)) {
1998
1998
  return;
1999
1999
  }
2000
2000
  if (this.isMission()) {
@@ -16,7 +16,7 @@ function race(...args) {
16
16
  }
17
17
 
18
18
  /**
19
- * @license Angular v13.3.1
19
+ * @license Angular v13.3.2
20
20
  * (c) 2010-2022 Google LLC. https://angular.io/
21
21
  * License: MIT
22
22
  */
@@ -10066,7 +10066,7 @@ function elementPropertyInternal(tView, tNode, lView, propName, value, renderer,
10066
10066
  else if (tNode.type & 12 /* AnyContainer */) {
10067
10067
  // If the node is a container and the property didn't
10068
10068
  // match any of the inputs or schemas we should throw.
10069
- if (ngDevMode && !matchingSchemas(tView, tNode.value)) {
10069
+ if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {
10070
10070
  logUnknownPropertyError(propName, tNode);
10071
10071
  }
10072
10072
  }
@@ -10128,15 +10128,20 @@ function validateProperty(tView, element, propName, tNode) {
10128
10128
  return true;
10129
10129
  // The property is considered valid if the element matches the schema, it exists on the element
10130
10130
  // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).
10131
- if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {
10131
+ if (matchingSchemas(tView.schemas, tNode.value) || propName in element ||
10132
+ isAnimationProp(propName)) {
10132
10133
  return true;
10133
10134
  }
10134
10135
  // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we
10135
10136
  // need to account for both here, while being careful for `typeof null` also returning 'object'.
10136
10137
  return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
10137
10138
  }
10138
- function matchingSchemas(tView, tagName) {
10139
- const schemas = tView.schemas;
10139
+ /**
10140
+ * Returns true if the tag name is allowed by specified schemas.
10141
+ * @param schemas Array of schemas
10142
+ * @param tagName Name of the tag
10143
+ */
10144
+ function matchingSchemas(schemas, tagName) {
10140
10145
  if (schemas !== null) {
10141
10146
  for (let i = 0; i < schemas.length; i++) {
10142
10147
  const schema = schemas[i];
@@ -14487,7 +14492,7 @@ function elementStartFirstCreatePass(index, tView, lView, native, name, attrsInd
14487
14492
  const attrs = getConstant(tViewConsts, attrsIndex);
14488
14493
  const tNode = getOrCreateTNode(tView, index, 2 /* Element */, name, attrs);
14489
14494
  const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
14490
- ngDevMode && logUnknownElementError(tView, native, tNode, hasDirectives);
14495
+ ngDevMode && validateElementIsKnown(native, tNode.value, tView.schemas, hasDirectives);
14491
14496
  if (tNode.attrs !== null) {
14492
14497
  computeStaticStyling(tNode, tNode.attrs, false);
14493
14498
  }
@@ -14611,18 +14616,33 @@ function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
14611
14616
  ɵɵelementEnd();
14612
14617
  return ɵɵelement;
14613
14618
  }
14614
- function logUnknownElementError(tView, element, tNode, hasDirectives) {
14615
- const schemas = tView.schemas;
14619
+ /**
14620
+ * Validates that the element is known at runtime and produces
14621
+ * an error if it's not the case.
14622
+ * This check is relevant for JIT-compiled components (for AOT-compiled
14623
+ * ones this check happens at build time).
14624
+ *
14625
+ * The element is considered known if either:
14626
+ * - it's a known HTML element
14627
+ * - it's a known custom element
14628
+ * - the element matches any directive
14629
+ * - the element is allowed by one of the schemas
14630
+ *
14631
+ * @param element Element to validate
14632
+ * @param tagName Name of the tag to check
14633
+ * @param schemas Array of schemas
14634
+ * @param hasDirectives Boolean indicating that the element matches any directive
14635
+ */
14636
+ function validateElementIsKnown(element, tagName, schemas, hasDirectives) {
14616
14637
  // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
14617
14638
  // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
14618
14639
  // defined as an array (as an empty array in case `schemas` field is not defined) and we should
14619
14640
  // execute the check below.
14620
14641
  if (schemas === null)
14621
14642
  return;
14622
- const tagName = tNode.value;
14623
14643
  // If the element matches any directive, it's considered as valid.
14624
14644
  if (!hasDirectives && tagName !== null) {
14625
- // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered
14645
+ // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered
14626
14646
  // as a custom element. Note that unknown elements with a dash in their name won't be instances
14627
14647
  // of HTMLUnknownElement in browsers that support web components.
14628
14648
  const isUnknown =
@@ -14632,7 +14652,7 @@ function logUnknownElementError(tView, element, tNode, hasDirectives) {
14632
14652
  element instanceof HTMLUnknownElement) ||
14633
14653
  (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&
14634
14654
  !customElements.get(tagName));
14635
- if (isUnknown && !matchingSchemas(tView, tagName)) {
14655
+ if (isUnknown && !matchingSchemas(schemas, tagName)) {
14636
14656
  let message = `'${tagName}' is not a known element:\n`;
14637
14657
  message += `1. If '${tagName}' is an Angular component, then verify that it is part of this module.\n`;
14638
14658
  if (tagName && tagName.indexOf('-') > -1) {
@@ -21102,7 +21122,7 @@ class Version {
21102
21122
  /**
21103
21123
  * @publicApi
21104
21124
  */
21105
- const VERSION = new Version('13.3.1');
21125
+ const VERSION = new Version('13.3.2');
21106
21126
 
21107
21127
  /**
21108
21128
  * @license
@@ -1994,7 +1994,7 @@ const YooFormDynamicComponent = class {
1994
1994
  (_a = this.formFooterElement) === null || _a === void 0 ? void 0 : _a.classList.remove('hide');
1995
1995
  }
1996
1996
  onHideTabbar(ev) {
1997
- if (getSession().isExternal) {
1997
+ if (getSession().isExternal || isWeb(this.host)) {
1998
1998
  return;
1999
1999
  }
2000
2000
  if (this.isMission()) {
@@ -16,7 +16,7 @@ function race(...args) {
16
16
  }
17
17
 
18
18
  /**
19
- * @license Angular v13.3.1
19
+ * @license Angular v13.3.2
20
20
  * (c) 2010-2022 Google LLC. https://angular.io/
21
21
  * License: MIT
22
22
  */
@@ -10066,7 +10066,7 @@ function elementPropertyInternal(tView, tNode, lView, propName, value, renderer,
10066
10066
  else if (tNode.type & 12 /* AnyContainer */) {
10067
10067
  // If the node is a container and the property didn't
10068
10068
  // match any of the inputs or schemas we should throw.
10069
- if (ngDevMode && !matchingSchemas(tView, tNode.value)) {
10069
+ if (ngDevMode && !matchingSchemas(tView.schemas, tNode.value)) {
10070
10070
  logUnknownPropertyError(propName, tNode);
10071
10071
  }
10072
10072
  }
@@ -10128,15 +10128,20 @@ function validateProperty(tView, element, propName, tNode) {
10128
10128
  return true;
10129
10129
  // The property is considered valid if the element matches the schema, it exists on the element
10130
10130
  // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).
10131
- if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {
10131
+ if (matchingSchemas(tView.schemas, tNode.value) || propName in element ||
10132
+ isAnimationProp(propName)) {
10132
10133
  return true;
10133
10134
  }
10134
10135
  // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we
10135
10136
  // need to account for both here, while being careful for `typeof null` also returning 'object'.
10136
10137
  return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
10137
10138
  }
10138
- function matchingSchemas(tView, tagName) {
10139
- const schemas = tView.schemas;
10139
+ /**
10140
+ * Returns true if the tag name is allowed by specified schemas.
10141
+ * @param schemas Array of schemas
10142
+ * @param tagName Name of the tag
10143
+ */
10144
+ function matchingSchemas(schemas, tagName) {
10140
10145
  if (schemas !== null) {
10141
10146
  for (let i = 0; i < schemas.length; i++) {
10142
10147
  const schema = schemas[i];
@@ -14487,7 +14492,7 @@ function elementStartFirstCreatePass(index, tView, lView, native, name, attrsInd
14487
14492
  const attrs = getConstant(tViewConsts, attrsIndex);
14488
14493
  const tNode = getOrCreateTNode(tView, index, 2 /* Element */, name, attrs);
14489
14494
  const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
14490
- ngDevMode && logUnknownElementError(tView, native, tNode, hasDirectives);
14495
+ ngDevMode && validateElementIsKnown(native, tNode.value, tView.schemas, hasDirectives);
14491
14496
  if (tNode.attrs !== null) {
14492
14497
  computeStaticStyling(tNode, tNode.attrs, false);
14493
14498
  }
@@ -14611,18 +14616,33 @@ function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
14611
14616
  ɵɵelementEnd();
14612
14617
  return ɵɵelement;
14613
14618
  }
14614
- function logUnknownElementError(tView, element, tNode, hasDirectives) {
14615
- const schemas = tView.schemas;
14619
+ /**
14620
+ * Validates that the element is known at runtime and produces
14621
+ * an error if it's not the case.
14622
+ * This check is relevant for JIT-compiled components (for AOT-compiled
14623
+ * ones this check happens at build time).
14624
+ *
14625
+ * The element is considered known if either:
14626
+ * - it's a known HTML element
14627
+ * - it's a known custom element
14628
+ * - the element matches any directive
14629
+ * - the element is allowed by one of the schemas
14630
+ *
14631
+ * @param element Element to validate
14632
+ * @param tagName Name of the tag to check
14633
+ * @param schemas Array of schemas
14634
+ * @param hasDirectives Boolean indicating that the element matches any directive
14635
+ */
14636
+ function validateElementIsKnown(element, tagName, schemas, hasDirectives) {
14616
14637
  // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
14617
14638
  // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
14618
14639
  // defined as an array (as an empty array in case `schemas` field is not defined) and we should
14619
14640
  // execute the check below.
14620
14641
  if (schemas === null)
14621
14642
  return;
14622
- const tagName = tNode.value;
14623
14643
  // If the element matches any directive, it's considered as valid.
14624
14644
  if (!hasDirectives && tagName !== null) {
14625
- // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered
14645
+ // The element is unknown if it's an instance of HTMLUnknownElement, or it isn't registered
14626
14646
  // as a custom element. Note that unknown elements with a dash in their name won't be instances
14627
14647
  // of HTMLUnknownElement in browsers that support web components.
14628
14648
  const isUnknown =
@@ -14632,7 +14652,7 @@ function logUnknownElementError(tView, element, tNode, hasDirectives) {
14632
14652
  element instanceof HTMLUnknownElement) ||
14633
14653
  (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&
14634
14654
  !customElements.get(tagName));
14635
- if (isUnknown && !matchingSchemas(tView, tagName)) {
14655
+ if (isUnknown && !matchingSchemas(schemas, tagName)) {
14636
14656
  let message = `'${tagName}' is not a known element:\n`;
14637
14657
  message += `1. If '${tagName}' is an Angular component, then verify that it is part of this module.\n`;
14638
14658
  if (tagName && tagName.indexOf('-') > -1) {
@@ -21102,7 +21122,7 @@ class Version {
21102
21122
  /**
21103
21123
  * @publicApi
21104
21124
  */
21105
- const VERSION = new Version('13.3.1');
21125
+ const VERSION = new Version('13.3.2');
21106
21126
 
21107
21127
  /**
21108
21128
  * @license