@ionic/core 8.7.4-dev.11756747371.11c148d6 → 8.7.4-dev.11756911316.113c35b0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ion-col.js +48 -47
- package/components/ion-row.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +42 -48
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/col/col.css +166 -0
- package/dist/collection/components/col/col.js +203 -58
- package/dist/collection/components/row/row.css +2 -0
- package/dist/docs.json +246 -13
- package/dist/esm/ion-col_3.entry.js +43 -49
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +24 -0
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/p-1a10c26a.entry.js +4 -0
- package/dist/types/components/col/col.d.ts +48 -5
- package/dist/types/components.d.ts +72 -0
- package/hydrate/index.js +88 -88
- package/hydrate/index.mjs +88 -88
- package/package.json +1 -1
- package/dist/ionic/p-dc66e8cc.entry.js +0 -4
package/hydrate/index.js
CHANGED
|
@@ -249,7 +249,7 @@ const printRequiredElementError = (el, ...targetSelectors) => {
|
|
|
249
249
|
return console.error(`<${el.tagName.toLowerCase()}> must be used inside ${targetSelectors.join(' or ')}.`);
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
const win$
|
|
252
|
+
const win$1 = typeof window !== 'undefined' ? window : undefined;
|
|
253
253
|
const doc = typeof document !== 'undefined' ? document : undefined;
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -264,7 +264,7 @@ const doc = typeof document !== 'undefined' ? document : undefined;
|
|
|
264
264
|
* moment this file is evaluated which could be
|
|
265
265
|
* before the config is set.
|
|
266
266
|
*/
|
|
267
|
-
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$
|
|
267
|
+
const shouldUseCloseWatcher = () => config.get('experimentalCloseWatcher', false) && win$1 !== undefined && 'CloseWatcher' in win$1;
|
|
268
268
|
const OVERLAY_BACK_BUTTON_PRIORITY = 100;
|
|
269
269
|
const MENU_BACK_BUTTON_PRIORITY = 99; // 1 less than overlay priority since menu is displayed behind overlays
|
|
270
270
|
|
|
@@ -964,10 +964,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
964
964
|
var _a;
|
|
965
965
|
const scopeId2 = getScopeId(cmpMeta, mode);
|
|
966
966
|
const style = styles.get(scopeId2);
|
|
967
|
-
if (!win
|
|
967
|
+
if (!win.document) {
|
|
968
968
|
return scopeId2;
|
|
969
969
|
}
|
|
970
|
-
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win
|
|
970
|
+
styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
|
|
971
971
|
if (style) {
|
|
972
972
|
if (typeof style === "string") {
|
|
973
973
|
styleContainerNode = styleContainerNode.head || styleContainerNode;
|
|
@@ -980,9 +980,9 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
|
980
980
|
if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
|
|
981
981
|
styleElm.innerHTML = style;
|
|
982
982
|
} else {
|
|
983
|
-
styleElm = win
|
|
983
|
+
styleElm = win.document.createElement("style");
|
|
984
984
|
styleElm.innerHTML = style;
|
|
985
|
-
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win
|
|
985
|
+
const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
|
|
986
986
|
if (nonce != null) {
|
|
987
987
|
styleElm.setAttribute("nonce", nonce);
|
|
988
988
|
}
|
|
@@ -1190,8 +1190,8 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1190
1190
|
delete hostElm["s-sc"];
|
|
1191
1191
|
}
|
|
1192
1192
|
}
|
|
1193
|
-
if (win
|
|
1194
|
-
initializeDocumentHydrate(win
|
|
1193
|
+
if (win.document && (!plt.$orgLocNodes$ || !plt.$orgLocNodes$.size)) {
|
|
1194
|
+
initializeDocumentHydrate(win.document.body, plt.$orgLocNodes$ = /* @__PURE__ */ new Map());
|
|
1195
1195
|
}
|
|
1196
1196
|
hostElm[HYDRATE_ID] = hostId;
|
|
1197
1197
|
hostElm.removeAttribute(HYDRATE_ID);
|
|
@@ -1225,7 +1225,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
|
|
|
1225
1225
|
cmpMeta.$cmpMeta$,
|
|
1226
1226
|
childRenderNode.$elm$.getAttribute("s-mode")
|
|
1227
1227
|
);
|
|
1228
|
-
const styleSheet = win
|
|
1228
|
+
const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
|
|
1229
1229
|
if (styleSheet) {
|
|
1230
1230
|
hostElm.shadowRoot.append(styleSheet.cloneNode(true));
|
|
1231
1231
|
}
|
|
@@ -1535,8 +1535,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
|
|
|
1535
1535
|
childVNode.$name$ = slotName || null;
|
|
1536
1536
|
childVNode.$tag$ = "slot";
|
|
1537
1537
|
const parentNodeId = (parentVNode == null ? void 0 : parentVNode.$elm$) ? parentVNode.$elm$["s-id"] || parentVNode.$elm$.getAttribute("s-id") : "";
|
|
1538
|
-
if (shadowRootNodes && win
|
|
1539
|
-
const slot = childVNode.$elm$ = win
|
|
1538
|
+
if (shadowRootNodes && win.document) {
|
|
1539
|
+
const slot = childVNode.$elm$ = win.document.createElement(childVNode.$tag$);
|
|
1540
1540
|
if (childVNode.$name$) {
|
|
1541
1541
|
childVNode.$elm$.setAttribute("name", slotName);
|
|
1542
1542
|
}
|
|
@@ -2097,7 +2097,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
|
|
|
2097
2097
|
} else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
|
|
2098
2098
|
if (memberName[2] === "-") {
|
|
2099
2099
|
memberName = memberName.slice(3);
|
|
2100
|
-
} else if (isMemberInElement(win
|
|
2100
|
+
} else if (isMemberInElement(win, ln)) {
|
|
2101
2101
|
memberName = ln.slice(2);
|
|
2102
2102
|
} else {
|
|
2103
2103
|
memberName = ln[2] + memberName.slice(3);
|
|
@@ -2244,7 +2244,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
2246
|
if (newVNode2.$text$ !== null) {
|
|
2247
|
-
elm = newVNode2.$elm$ = win
|
|
2247
|
+
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
2248
2248
|
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
2249
2249
|
elm = newVNode2.$elm$ = slotReferenceDebugNode(newVNode2) ;
|
|
2250
2250
|
{
|
|
@@ -2254,12 +2254,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
2254
2254
|
if (!isSvgMode) {
|
|
2255
2255
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
2256
2256
|
}
|
|
2257
|
-
if (!win
|
|
2257
|
+
if (!win.document) {
|
|
2258
2258
|
throw new Error(
|
|
2259
2259
|
"You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
|
|
2260
2260
|
);
|
|
2261
2261
|
}
|
|
2262
|
-
elm = newVNode2.$elm$ = win
|
|
2262
|
+
elm = newVNode2.$elm$ = win.document.createElementNS(
|
|
2263
2263
|
isSvgMode ? SVG_NS : HTML_NS,
|
|
2264
2264
|
!useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
|
|
2265
2265
|
) ;
|
|
@@ -2636,7 +2636,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2636
2636
|
markSlotContentForRelocation(rootVnode.$elm$);
|
|
2637
2637
|
for (const relocateData of relocateNodes) {
|
|
2638
2638
|
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
2639
|
-
if (!nodeToRelocate["s-ol"] && win
|
|
2639
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
2640
2640
|
const orgLocationNode = originalLocationDebugNode(nodeToRelocate) ;
|
|
2641
2641
|
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
2642
2642
|
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
@@ -2682,13 +2682,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
2682
2682
|
};
|
|
2683
2683
|
var slotReferenceDebugNode = (slotVNode) => {
|
|
2684
2684
|
var _a;
|
|
2685
|
-
return (_a = win
|
|
2685
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
2686
2686
|
`<slot${slotVNode.$name$ ? ' name="' + slotVNode.$name$ + '"' : ""}> (host=${hostTagName.toLowerCase()})`
|
|
2687
2687
|
);
|
|
2688
2688
|
};
|
|
2689
2689
|
var originalLocationDebugNode = (nodeToRelocate) => {
|
|
2690
2690
|
var _a;
|
|
2691
|
-
return (_a = win
|
|
2691
|
+
return (_a = win.document) == null ? void 0 : _a.createComment(
|
|
2692
2692
|
`org-location for ` + (nodeToRelocate.localName ? `<${nodeToRelocate.localName}> (host=${nodeToRelocate["s-hn"]})` : `[${nodeToRelocate.textContent}]`)
|
|
2693
2693
|
);
|
|
2694
2694
|
};
|
|
@@ -2866,7 +2866,7 @@ var appDidLoad = (who) => {
|
|
|
2866
2866
|
if (BUILD.asyncQueue) {
|
|
2867
2867
|
plt.$flags$ |= 2 /* appLoaded */;
|
|
2868
2868
|
}
|
|
2869
|
-
nextTick(() => emitEvent(win
|
|
2869
|
+
nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
|
|
2870
2870
|
{
|
|
2871
2871
|
if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
|
|
2872
2872
|
plt.$orgLocNodes$.clear();
|
|
@@ -3160,10 +3160,10 @@ var connectedCallback = (elm) => {
|
|
|
3160
3160
|
}
|
|
3161
3161
|
};
|
|
3162
3162
|
var setContentReference = (elm) => {
|
|
3163
|
-
if (!win
|
|
3163
|
+
if (!win.document) {
|
|
3164
3164
|
return;
|
|
3165
3165
|
}
|
|
3166
|
-
const contentRefElm = elm["s-cr"] = win
|
|
3166
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
3167
3167
|
""
|
|
3168
3168
|
);
|
|
3169
3169
|
contentRefElm["s-cn"] = true;
|
|
@@ -3173,9 +3173,9 @@ var setContentReference = (elm) => {
|
|
|
3173
3173
|
// src/runtime/fragment.ts
|
|
3174
3174
|
var Fragment = (_, children) => children;
|
|
3175
3175
|
var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
|
|
3176
|
-
if (listeners && win
|
|
3176
|
+
if (listeners && win.document) {
|
|
3177
3177
|
listeners.map(([flags, name, method]) => {
|
|
3178
|
-
const target = getHostListenerTarget(win
|
|
3178
|
+
const target = getHostListenerTarget(win.document, elm, flags) ;
|
|
3179
3179
|
const handler = hostListenerProxy(hostRef, method);
|
|
3180
3180
|
const opts = hostListenerOpts(flags);
|
|
3181
3181
|
plt.ael(target, name, handler, opts);
|
|
@@ -3202,7 +3202,7 @@ var getHostListenerTarget = (doc, elm, flags) => {
|
|
|
3202
3202
|
return doc;
|
|
3203
3203
|
}
|
|
3204
3204
|
if (flags & 8 /* TargetWindow */) {
|
|
3205
|
-
return win
|
|
3205
|
+
return win;
|
|
3206
3206
|
}
|
|
3207
3207
|
if (flags & 16 /* TargetBody */) {
|
|
3208
3208
|
return doc.body;
|
|
@@ -3768,7 +3768,7 @@ var registerComponents = (Cstrs) => {
|
|
|
3768
3768
|
});
|
|
3769
3769
|
}
|
|
3770
3770
|
};
|
|
3771
|
-
var win
|
|
3771
|
+
var win = window;
|
|
3772
3772
|
var readTask = (cb) => {
|
|
3773
3773
|
nextTick(() => {
|
|
3774
3774
|
try {
|
|
@@ -3802,7 +3802,7 @@ var plt = {
|
|
|
3802
3802
|
raf: (h2) => requestAnimationFrame(h2),
|
|
3803
3803
|
ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
|
|
3804
3804
|
rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
|
|
3805
|
-
ce: (eventName, opts) => new win
|
|
3805
|
+
ce: (eventName, opts) => new win.CustomEvent(eventName, opts)
|
|
3806
3806
|
};
|
|
3807
3807
|
var getHostRef = (ref) => {
|
|
3808
3808
|
if (ref.__stencil__getHostRef) {
|
|
@@ -5003,8 +5003,8 @@ class AccordionGroup {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
|
|
5005
5005
|
const getCapacitor = () => {
|
|
5006
|
-
if (win$
|
|
5007
|
-
return win$
|
|
5006
|
+
if (win$1 !== undefined) {
|
|
5007
|
+
return win$1.Capacitor;
|
|
5008
5008
|
}
|
|
5009
5009
|
return undefined;
|
|
5010
5010
|
};
|
|
@@ -7055,7 +7055,7 @@ const createAnimation = (animationId) => {
|
|
|
7055
7055
|
const _afterAddWriteFunctions = [];
|
|
7056
7056
|
const webAnimations = [];
|
|
7057
7057
|
const supportsAnimationEffect = typeof AnimationEffect === 'function' ||
|
|
7058
|
-
(win$
|
|
7058
|
+
(win$1 !== undefined && typeof win$1.AnimationEffect === 'function');
|
|
7059
7059
|
/**
|
|
7060
7060
|
* This is a feature detection for Web Animations.
|
|
7061
7061
|
*
|
|
@@ -10584,11 +10584,9 @@ const matchBreakpoint = (breakpoint) => {
|
|
|
10584
10584
|
return false;
|
|
10585
10585
|
};
|
|
10586
10586
|
|
|
10587
|
-
const colCss = ":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}";
|
|
10587
|
+
const colCss = ":host{--col-unit-size:calc((100% - (var(--ion-grid-columns) - 1) * var(--ion-grid-gap)) / var(--ion-grid-columns));-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}:host(.ion-grid-col-auto){-ms-flex:0 0 auto;flex:0 0 auto}:host([class^=ion-grid-col-],[class*=\" ion-grid-col-\"]){-ms-flex:0 0 calc(var(--ion-grid-col-span) * var(--col-unit-size) + (var(--ion-grid-col-span) - 1) * var(--ion-grid-gap));flex:0 0 calc(var(--ion-grid-col-span) * var(--col-unit-size) + (var(--ion-grid-col-span) - 1) * var(--ion-grid-gap))}:host([class^=ion-grid-offset-col-],[class*=\" ion-grid-offset-col-\"]){--margin-calc:calc(\n var(--col-unit-size) * var(--ion-grid-col-margin) + (var(--ion-grid-gap) * var(--ion-grid-col-margin))\n );-webkit-margin-start:var(--margin-calc);margin-inline-start:var(--margin-calc);-webkit-margin-end:0;margin-inline-end:0}.ion-grid-col-1{--ion-grid-col-span:1}.ion-grid-order-col-1{-ms-flex-order:1;order:1}.ion-grid-offset-col-1{--ion-grid-col-margin:1}.ion-grid-col-2{--ion-grid-col-span:2}.ion-grid-order-col-2{-ms-flex-order:2;order:2}.ion-grid-offset-col-2{--ion-grid-col-margin:2}.ion-grid-col-3{--ion-grid-col-span:3}.ion-grid-order-col-3{-ms-flex-order:3;order:3}.ion-grid-offset-col-3{--ion-grid-col-margin:3}.ion-grid-col-4{--ion-grid-col-span:4}.ion-grid-order-col-4{-ms-flex-order:4;order:4}.ion-grid-offset-col-4{--ion-grid-col-margin:4}.ion-grid-col-5{--ion-grid-col-span:5}.ion-grid-order-col-5{-ms-flex-order:5;order:5}.ion-grid-offset-col-5{--ion-grid-col-margin:5}.ion-grid-col-6{--ion-grid-col-span:6}.ion-grid-order-col-6{-ms-flex-order:6;order:6}.ion-grid-offset-col-6{--ion-grid-col-margin:6}.ion-grid-col-7{--ion-grid-col-span:7}.ion-grid-order-col-7{-ms-flex-order:7;order:7}.ion-grid-offset-col-7{--ion-grid-col-margin:7}.ion-grid-col-8{--ion-grid-col-span:8}.ion-grid-order-col-8{-ms-flex-order:8;order:8}.ion-grid-offset-col-8{--ion-grid-col-margin:8}.ion-grid-col-9{--ion-grid-col-span:9}.ion-grid-order-col-9{-ms-flex-order:9;order:9}.ion-grid-offset-col-9{--ion-grid-col-margin:9}.ion-grid-col-10{--ion-grid-col-span:10}.ion-grid-order-col-10{-ms-flex-order:10;order:10}.ion-grid-offset-col-10{--ion-grid-col-margin:10}.ion-grid-col-11{--ion-grid-col-span:11}.ion-grid-order-col-11{-ms-flex-order:11;order:11}.ion-grid-offset-col-11{--ion-grid-col-margin:11}.ion-grid-col-12{--ion-grid-col-span:12}.ion-grid-order-col-12{-ms-flex-order:12;order:12}.ion-grid-offset-col-12{--ion-grid-col-margin:12}";
|
|
10588
10588
|
|
|
10589
|
-
const win = typeof window !== 'undefined' ? window : undefined;
|
|
10590
10589
|
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
10591
|
-
const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));
|
|
10592
10590
|
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
10593
10591
|
/**
|
|
10594
10592
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
@@ -10617,66 +10615,62 @@ class Col {
|
|
|
10617
10615
|
// increase in size and we want to return the largest match
|
|
10618
10616
|
return matched;
|
|
10619
10617
|
}
|
|
10620
|
-
|
|
10621
|
-
const
|
|
10618
|
+
getStyleClass(property, className, acceptsAuto = false) {
|
|
10619
|
+
const colPropertyValue = this.getColumns(property);
|
|
10622
10620
|
// If size wasn't set for any breakpoint
|
|
10623
10621
|
// or if the user set the size without a value
|
|
10624
10622
|
// it means we need to stick with the default and return
|
|
10625
10623
|
// e.g. <ion-col size-md>
|
|
10626
|
-
if (!
|
|
10624
|
+
if (!colPropertyValue || colPropertyValue === '') {
|
|
10627
10625
|
return;
|
|
10628
10626
|
}
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
|
10635
|
-
: // Convert the columns to a percentage by dividing by the total number
|
|
10636
|
-
// of columns (12) and then multiplying by 100
|
|
10637
|
-
(columns / 12) * 100 + '%';
|
|
10638
|
-
return {
|
|
10639
|
-
flex: `0 0 ${colSize}`,
|
|
10640
|
-
width: `${colSize}`,
|
|
10641
|
-
'max-width': `${colSize}`,
|
|
10642
|
-
};
|
|
10643
|
-
}
|
|
10644
|
-
// Called by push, pull, and offset since they use the same calculations
|
|
10645
|
-
calculatePosition(property, modifier) {
|
|
10646
|
-
const columns = this.getColumns(property);
|
|
10647
|
-
if (!columns) {
|
|
10627
|
+
if (acceptsAuto && colPropertyValue === 'auto') {
|
|
10628
|
+
return 'ion-grid-col-auto';
|
|
10629
|
+
}
|
|
10630
|
+
const valueNumber = parseInt(colPropertyValue);
|
|
10631
|
+
if (isNaN(valueNumber)) {
|
|
10648
10632
|
return;
|
|
10649
10633
|
}
|
|
10650
|
-
|
|
10651
|
-
// 12 we can position the column, else default to auto
|
|
10652
|
-
const amount = SUPPORTS_VARS
|
|
10653
|
-
? // If CSS supports variables we should use the grid columns var
|
|
10654
|
-
`calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
|
10655
|
-
: // Convert the columns to a percentage by dividing by the total number
|
|
10656
|
-
// of columns (12) and then multiplying by 100
|
|
10657
|
-
columns > 0 && columns < 12
|
|
10658
|
-
? (columns / 12) * 100 + '%'
|
|
10659
|
-
: 'auto';
|
|
10660
|
-
return {
|
|
10661
|
-
[modifier]: amount,
|
|
10662
|
-
};
|
|
10634
|
+
return `${className}-col-${valueNumber}`;
|
|
10663
10635
|
}
|
|
10664
|
-
|
|
10665
|
-
return this.
|
|
10636
|
+
getSizeClass() {
|
|
10637
|
+
return this.getStyleClass('size', 'ion-grid', true);
|
|
10666
10638
|
}
|
|
10667
|
-
|
|
10668
|
-
return this.
|
|
10639
|
+
getOrderClass() {
|
|
10640
|
+
return this.getStyleClass('order', 'ion-grid-order');
|
|
10669
10641
|
}
|
|
10670
|
-
|
|
10671
|
-
return this.
|
|
10642
|
+
getOffsetClass() {
|
|
10643
|
+
return this.getStyleClass('offset', 'ion-grid-offset');
|
|
10644
|
+
}
|
|
10645
|
+
componentDidLoad() {
|
|
10646
|
+
if (this.pull ||
|
|
10647
|
+
this.pullLg ||
|
|
10648
|
+
this.pullMd ||
|
|
10649
|
+
this.pullSm ||
|
|
10650
|
+
this.pullXl ||
|
|
10651
|
+
this.pullXs ||
|
|
10652
|
+
this.push ||
|
|
10653
|
+
this.pushLg ||
|
|
10654
|
+
this.pushMd ||
|
|
10655
|
+
this.pushSm ||
|
|
10656
|
+
this.pushXl ||
|
|
10657
|
+
this.pushXs) {
|
|
10658
|
+
printIonWarning('[ion-col] - The pull and push properties are deprecated and no longer work, in favor of the order and size properties.', this.el);
|
|
10659
|
+
}
|
|
10672
10660
|
}
|
|
10673
10661
|
render() {
|
|
10674
|
-
const isRTL = document.dir === 'rtl';
|
|
10675
10662
|
const theme = getIonTheme(this);
|
|
10676
|
-
|
|
10663
|
+
const colSize = this.getSizeClass();
|
|
10664
|
+
const colOrder = this.getOrderClass();
|
|
10665
|
+
const colOffset = this.getOffsetClass();
|
|
10666
|
+
return (hAsync(Host, { key: '13acd2681e3e16bbf196eb3ca8ad01230fbb0df8', class: {
|
|
10677
10667
|
[theme]: true,
|
|
10678
|
-
|
|
10668
|
+
[`${colSize}`]: colSize !== undefined,
|
|
10669
|
+
[`${colOrder}`]: colOrder !== undefined,
|
|
10670
|
+
[`${colOffset}`]: colOffset !== undefined,
|
|
10671
|
+
} }, hAsync("slot", { key: '525e1f5b3102009f16ae985a838f68f440eea7e4' })));
|
|
10679
10672
|
}
|
|
10673
|
+
get el() { return getElement(this); }
|
|
10680
10674
|
static get style() { return colCss; }
|
|
10681
10675
|
static get cmpMeta() { return {
|
|
10682
10676
|
"$flags$": 265,
|
|
@@ -10688,6 +10682,12 @@ class Col {
|
|
|
10688
10682
|
"offsetMd": [1, "offset-md"],
|
|
10689
10683
|
"offsetLg": [1, "offset-lg"],
|
|
10690
10684
|
"offsetXl": [1, "offset-xl"],
|
|
10685
|
+
"order": [1],
|
|
10686
|
+
"orderXs": [1, "order-xs"],
|
|
10687
|
+
"orderSm": [1, "order-sm"],
|
|
10688
|
+
"orderMd": [1, "order-md"],
|
|
10689
|
+
"orderLg": [1, "order-lg"],
|
|
10690
|
+
"orderXl": [1, "order-xl"],
|
|
10691
10691
|
"pull": [1],
|
|
10692
10692
|
"pullXs": [1, "pull-xs"],
|
|
10693
10693
|
"pullSm": [1, "pull-sm"],
|
|
@@ -15760,8 +15760,8 @@ const createKeyboardController = async (keyboardChangeCallback) => {
|
|
|
15760
15760
|
keyboardVisible = false;
|
|
15761
15761
|
fireChangeCallback(keyboardVisible, resizeMode);
|
|
15762
15762
|
};
|
|
15763
|
-
win$
|
|
15764
|
-
win$
|
|
15763
|
+
win$1 === null || win$1 === void 0 ? void 0 : win$1.addEventListener('keyboardWillShow', keyboardWillShowHandler);
|
|
15764
|
+
win$1 === null || win$1 === void 0 ? void 0 : win$1.addEventListener('keyboardWillHide', keyboardWillHideHandler);
|
|
15765
15765
|
};
|
|
15766
15766
|
const fireChangeCallback = (state, resizeMode) => {
|
|
15767
15767
|
if (keyboardChangeCallback) {
|
|
@@ -15838,8 +15838,8 @@ const createKeyboardController = async (keyboardChangeCallback) => {
|
|
|
15838
15838
|
});
|
|
15839
15839
|
};
|
|
15840
15840
|
const destroy = () => {
|
|
15841
|
-
win$
|
|
15842
|
-
win$
|
|
15841
|
+
win$1 === null || win$1 === void 0 ? void 0 : win$1.removeEventListener('keyboardWillShow', keyboardWillShowHandler);
|
|
15842
|
+
win$1 === null || win$1 === void 0 ? void 0 : win$1.removeEventListener('keyboardWillHide', keyboardWillHideHandler);
|
|
15843
15843
|
keyboardWillShowHandler = keyboardWillHideHandler = undefined;
|
|
15844
15844
|
};
|
|
15845
15845
|
const isKeyboardVisible = () => keyboardVisible;
|
|
@@ -17196,8 +17196,8 @@ const createNotchController = (el, getNotchSpacerEl, getLabelSlot) => {
|
|
|
17196
17196
|
*/
|
|
17197
17197
|
width === 0 &&
|
|
17198
17198
|
notchSpacerEl.offsetParent === null &&
|
|
17199
|
-
win$
|
|
17200
|
-
'IntersectionObserver' in win$
|
|
17199
|
+
win$1 !== undefined &&
|
|
17200
|
+
'IntersectionObserver' in win$1) {
|
|
17201
17201
|
/**
|
|
17202
17202
|
* If there is an IO already attached
|
|
17203
17203
|
* then that will update the notch
|
|
@@ -17302,7 +17302,7 @@ const isOptionSelected = (currentValue, compareValue, compareWith) => {
|
|
|
17302
17302
|
const createSlotMutationController = (el, slotName, mutationCallback) => {
|
|
17303
17303
|
let hostMutationObserver;
|
|
17304
17304
|
let slottedContentMutationObserver;
|
|
17305
|
-
if (win$
|
|
17305
|
+
if (win$1 !== undefined && 'MutationObserver' in win$1) {
|
|
17306
17306
|
const slots = Array.isArray(slotName) ? slotName : [slotName];
|
|
17307
17307
|
hostMutationObserver = new MutationObserver((entries) => {
|
|
17308
17308
|
for (const entry of entries) {
|
|
@@ -22113,13 +22113,13 @@ const getBackdropValueForSheet = (x, backdropBreakpoint) => {
|
|
|
22113
22113
|
*
|
|
22114
22114
|
*/
|
|
22115
22115
|
const setCardStatusBarDark = () => {
|
|
22116
|
-
if (!win$
|
|
22116
|
+
if (!win$1 || win$1.innerWidth >= 768) {
|
|
22117
22117
|
return;
|
|
22118
22118
|
}
|
|
22119
22119
|
StatusBar.setStyle({ style: Style.Dark });
|
|
22120
22120
|
};
|
|
22121
22121
|
const setCardStatusBarDefault = (defaultStyle = Style.Default) => {
|
|
22122
|
-
if (!win$
|
|
22122
|
+
if (!win$1 || win$1.innerWidth >= 768) {
|
|
22123
22123
|
return;
|
|
22124
22124
|
}
|
|
22125
22125
|
StatusBar.setStyle({ style: defaultStyle });
|
|
@@ -32968,7 +32968,7 @@ class RouterOutlet {
|
|
|
32968
32968
|
}; }
|
|
32969
32969
|
}
|
|
32970
32970
|
|
|
32971
|
-
const rowCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
32971
|
+
const rowCss = ":host{--ion-grid-gap:0px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--ion-grid-gap, 0px)}";
|
|
32972
32972
|
|
|
32973
32973
|
/**
|
|
32974
32974
|
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
|
|
@@ -37071,7 +37071,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
37071
37071
|
* bottom anchor edge is targeted. For position="bottom", the top
|
|
37072
37072
|
* anchor edge is targeted.
|
|
37073
37073
|
*/
|
|
37074
|
-
if (positionAnchor && win$
|
|
37074
|
+
if (positionAnchor && win$1) {
|
|
37075
37075
|
warnIfAnchorIsHidden(positionAnchor, toast);
|
|
37076
37076
|
const box = positionAnchor.getBoundingClientRect();
|
|
37077
37077
|
if (position === 'top') {
|
|
@@ -37083,7 +37083,7 @@ function getAnimationPosition(position, positionAnchor, mode, toast) {
|
|
|
37083
37083
|
* to the top edge of the anchor. We want to calculate from the
|
|
37084
37084
|
* bottom edge of the screen instead.
|
|
37085
37085
|
*/
|
|
37086
|
-
offset -= win$
|
|
37086
|
+
offset -= win$1.innerHeight - box.top;
|
|
37087
37087
|
}
|
|
37088
37088
|
/**
|
|
37089
37089
|
* We don't include safe area here because that should already be
|