@ionic/core 7.3.1-nightly.20230822 → 7.3.1

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,3 +1,9 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
1
7
  /**
2
8
  * Used to manually set the base path where assets can be found.
3
9
  * If the script is used as "module", it's recommended to use "import.meta.url",
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * (C) Ionic http://ionicframework.com - MIT License
3
3
  */
4
- export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
4
+ export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
5
5
  export { c as createAnimation } from './animation.js';
6
6
  export { iosTransitionAnimation } from './ios.transition.js';
7
7
  export { mdTransitionAnimation } from './md.transition.js';
@@ -10,7 +10,7 @@ const appGlobals = require('./app-globals-a579aafd.js');
10
10
  require('./ionic-global-f81d8b73.js');
11
11
 
12
12
  /*
13
- Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
13
+ Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com
14
14
  */
15
15
  const patchBrowser = () => {
16
16
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('ionic.cjs.js', document.baseURI).href));
@@ -94,7 +94,7 @@
94
94
  ],
95
95
  "compiler": {
96
96
  "name": "@stencil/core",
97
- "version": "4.0.3",
97
+ "version": "4.1.0",
98
98
  "typescriptVersion": "5.0.4"
99
99
  },
100
100
  "collections": [
package/dist/docs.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2023-08-22T06:03:52",
2
+ "timestamp": "2023-08-23T13:33:16",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.0.3",
5
+ "version": "4.1.0",
6
6
  "typescriptVersion": "5.0.4"
7
7
  },
8
8
  "components": [
@@ -28972,7 +28972,7 @@
28972
28972
  "path": "src/components/picker/picker-interface.ts"
28973
28973
  },
28974
28974
  "src/components/picker/picker-interface.ts::PickerColumn": {
28975
- "declaration": "export interface PickerColumn {\n name: string;\n align?: string;\n selectedIndex?: number;\n prevSelected?: number;\n prefix?: string;\n suffix?: string;\n options: PickerColumnOption[];\n cssClass?: string | string[];\n columnWidth?: string;\n prefixWidth?: string;\n suffixWidth?: string;\n optionsWidth?: string;\n}",
28975
+ "declaration": "export interface PickerColumn {\n name: string;\n align?: string;\n /**\n * Changing this value allows the initial value of a picker column to be set.\n */\n selectedIndex?: number;\n prevSelected?: number;\n prefix?: string;\n suffix?: string;\n options: PickerColumnOption[];\n cssClass?: string | string[];\n columnWidth?: string;\n prefixWidth?: string;\n suffixWidth?: string;\n optionsWidth?: string;\n}",
28976
28976
  "docstring": "",
28977
28977
  "path": "src/components/picker/picker-interface.ts"
28978
28978
  },
package/dist/esm/ionic.js CHANGED
@@ -7,7 +7,7 @@ import { g as globalScripts } from './app-globals-e8ddf830.js';
7
7
  import './ionic-global-1ef19007.js';
8
8
 
9
9
  /*
10
- Stencil Client Patch Browser v4.0.3 | MIT Licensed | https://stenciljs.com
10
+ Stencil Client Patch Browser v4.1.0 | MIT Licensed | https://stenciljs.com
11
11
  */
12
12
  const patchBrowser = () => {
13
13
  const importMeta = import.meta.url;
@@ -115,7 +115,7 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-6405e9f0.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-721933ff.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -24,6 +24,9 @@ export interface PickerButton {
24
24
  export interface PickerColumn {
25
25
  name: string;
26
26
  align?: string;
27
+ /**
28
+ * Changing this value allows the initial value of a picker column to be set.
29
+ */
27
30
  selectedIndex?: number;
28
31
  prevSelected?: number;
29
32
  prefix?: string;
@@ -872,6 +872,8 @@ export declare namespace JSXBase {
872
872
  }
873
873
  interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
874
874
  alt?: string;
875
+ crossOrigin?: string;
876
+ crossorigin?: string;
875
877
  decoding?: 'async' | 'auto' | 'sync';
876
878
  importance?: 'low' | 'auto' | 'high';
877
879
  height?: number | string;
@@ -1623,8 +1625,14 @@ export declare namespace JSXBase {
1623
1625
  onAnimationEndCapture?: (event: AnimationEvent) => void;
1624
1626
  onAnimationIteration?: (event: AnimationEvent) => void;
1625
1627
  onAnimationIterationCapture?: (event: AnimationEvent) => void;
1628
+ onTransitionCancel?: (event: TransitionEvent) => void;
1629
+ onTransitionCancelCapture?: (event: TransitionEvent) => void;
1626
1630
  onTransitionEnd?: (event: TransitionEvent) => void;
1627
1631
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1632
+ onTransitionRun?: (event: TransitionEvent) => void;
1633
+ onTransitionRunCapture?: (event: TransitionEvent) => void;
1634
+ onTransitionStart?: (event: TransitionEvent) => void;
1635
+ onTransitionStartCapture?: (event: TransitionEvent) => void;
1628
1636
  }
1629
1637
  }
1630
1638
  export interface JSXAttributes<T = Element> {
package/hydrate/index.js CHANGED
@@ -6,7 +6,7 @@
6
6
  Object.defineProperty(exports, '__esModule', { value: true });
7
7
 
8
8
  /*!
9
- Stencil Mock Doc v4.0.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Mock Doc v4.1.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  const CONTENT_REF_ID = 'r';
12
12
  const ORG_LOCATION_ID = 'o';
@@ -5708,10 +5708,7 @@ const callRender = (e, t, o, n) => {
5708
5708
  e.$onRenderResolve$ = void 0), 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))),
5709
5709
  e.$flags$ &= -517);
5710
5710
  }, forceUpdate$1 = e => {
5711
- {
5712
- const t = getHostRef(e), o = t.$hostElement$.isConnected;
5713
- return o && 2 == (18 & t.$flags$) && scheduleUpdate(t, !1), o;
5714
- }
5711
+ return !1;
5715
5712
  }, appDidLoad = e => {
5716
5713
  addHydratedFlag(doc$1.documentElement), nextTick((() => emitEvent(win$2, "appload", {
5717
5714
  detail: {
@@ -10581,12 +10578,10 @@ class Alert {
10581
10578
  }
10582
10579
  this.activeId = selectedInput.id;
10583
10580
  safeCall(selectedInput.handler, selectedInput);
10584
- forceUpdate$1(this);
10585
10581
  }
10586
10582
  cbClick(selectedInput) {
10587
10583
  selectedInput.checked = !selectedInput.checked;
10588
10584
  safeCall(selectedInput.handler, selectedInput);
10589
- forceUpdate$1(this);
10590
10585
  }
10591
10586
  async buttonClick(button) {
10592
10587
  const role = button.role;
@@ -12285,7 +12280,6 @@ class Col {
12285
12280
  this.sizeXl = undefined;
12286
12281
  }
12287
12282
  onResize() {
12288
- forceUpdate$1(this);
12289
12283
  }
12290
12284
  // Loop through all of the breakpoints to see if the media query
12291
12285
  // matches and grab the column value from the relevant prop if so
@@ -12524,7 +12518,6 @@ class Content {
12524
12518
  if (dirty) {
12525
12519
  this.cTop = top;
12526
12520
  this.cBottom = bottom;
12527
- forceUpdate$1(this);
12528
12521
  }
12529
12522
  }
12530
12523
  onScroll(ev) {
@@ -18233,7 +18226,7 @@ class Input {
18233
18226
  connectedCallback() {
18234
18227
  const { el } = this;
18235
18228
  this.legacyFormController = createLegacyFormController(el);
18236
- this.slotMutationController = createSlotMutationController(el, 'label', () => forceUpdate$1(this));
18229
+ this.slotMutationController = createSlotMutationController(el, 'label', () => forceUpdate$1());
18237
18230
  this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
18238
18231
  this.emitStyle();
18239
18232
  this.debounceChanged();
@@ -18631,7 +18624,6 @@ class Item {
18631
18624
  }
18632
18625
  if (hasStyleChange) {
18633
18626
  this.itemStyles.set(tagName, newStyles);
18634
- forceUpdate$1(this);
18635
18627
  }
18636
18628
  }
18637
18629
  connectedCallback() {
@@ -30607,7 +30599,6 @@ class Searchbar {
30607
30599
  showCancelButtonChanged() {
30608
30600
  requestAnimationFrame(() => {
30609
30601
  this.positionElements();
30610
- forceUpdate$1(this);
30611
30602
  });
30612
30603
  }
30613
30604
  connectedCallback() {
@@ -31293,7 +31284,6 @@ class SegmentButton {
31293
31284
  this.segmentEl = null;
31294
31285
  this.inheritedAttributes = {};
31295
31286
  this.updateStyle = () => {
31296
- forceUpdate$1(this);
31297
31287
  };
31298
31288
  this.updateState = () => {
31299
31289
  const { segmentEl } = this;
@@ -31478,13 +31468,6 @@ class Select {
31478
31468
  this.emitStyle();
31479
31469
  this.mutationO = watchForOptions(this.el, 'ion-select-option', async () => {
31480
31470
  this.updateOverlayOptions();
31481
- /**
31482
- * We need to re-render the component
31483
- * because one of the new ion-select-option
31484
- * elements may match the value. In this case,
31485
- * the rendered selected text should be updated.
31486
- */
31487
- forceUpdate$1(this);
31488
31471
  });
31489
31472
  }
31490
31473
  disconnectedCallback() {
@@ -32221,8 +32204,6 @@ class SelectPopover {
32221
32204
  }, getClassMap(option.cssClass)) }, hAsync("ion-checkbox", { value: option.value, disabled: option.disabled, checked: option.checked, justify: "start", labelPlacement: "end", onIonChange: (ev) => {
32222
32205
  this.setChecked(ev);
32223
32206
  this.callOptionHandler(ev);
32224
- // TODO FW-4784
32225
- forceUpdate$1(this);
32226
32207
  } }, option.text))));
32227
32208
  }
32228
32209
  renderRadioOptions(options) {
@@ -33029,7 +33010,7 @@ class Textarea {
33029
33010
  connectedCallback() {
33030
33011
  const { el } = this;
33031
33012
  this.legacyFormController = createLegacyFormController(el);
33032
- this.slotMutationController = createSlotMutationController(el, 'label', () => forceUpdate$1(this));
33013
+ this.slotMutationController = createSlotMutationController(el, 'label', () => forceUpdate$1());
33033
33014
  this.notchController = createNotchController(el, () => this.notchSpacerEl, () => this.labelSlot);
33034
33015
  this.emitStyle();
33035
33016
  this.debounceChanged();
@@ -34040,7 +34021,6 @@ class Toolbar {
34040
34021
  });
34041
34022
  if (hasStyleChange) {
34042
34023
  this.childrenStyles.set(tagName, newStyles);
34043
- forceUpdate$1(this);
34044
34024
  }
34045
34025
  }
34046
34026
  render() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/core",
3
- "version": "7.3.1-nightly.20230822",
3
+ "version": "7.3.1",
4
4
  "description": "Base components for Ionic",
5
5
  "keywords": [
6
6
  "ionic",
@@ -31,7 +31,7 @@
31
31
  "loader/"
32
32
  ],
33
33
  "dependencies": {
34
- "@stencil/core": "^4.0.3",
34
+ "@stencil/core": "^4.1.0",
35
35
  "ionicons": "7.1.0",
36
36
  "tslib": "^2.1.0"
37
37
  },