@ionic/core 8.7.4-dev.11757000835.106af570 → 8.7.4-dev.11757003456.1d9738d5
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-card-content.js +3 -2
- package/components/ion-col.js +47 -48
- package/components/ion-datetime.js +22 -4
- package/components/ion-input-otp.js +5 -4
- package/components/ion-input.js +5 -4
- package/components/ion-row.js +1 -1
- package/components/ion-textarea.js +5 -4
- package/dist/cjs/ion-card_5.cjs.entry.js +1 -1
- package/dist/cjs/ion-col_3.cjs.entry.js +48 -42
- package/dist/cjs/ion-datetime_3.cjs.entry.js +22 -4
- package/dist/cjs/ion-input-otp.cjs.entry.js +3 -3
- package/dist/cjs/ion-input.cjs.entry.js +3 -3
- package/dist/cjs/ion-textarea.cjs.entry.js +3 -3
- package/dist/cjs/ionic.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/card-content/card-content.js +2 -1
- package/dist/collection/components/col/col.css +0 -168
- package/dist/collection/components/col/col.js +58 -203
- package/dist/collection/components/datetime/datetime.js +22 -4
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input-otp/input-otp.js +1 -1
- package/dist/collection/components/row/row.css +0 -2
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/docs.json +17 -250
- package/dist/esm/ion-card_5.entry.js +1 -1
- package/dist/esm/ion-col_3.entry.js +49 -43
- package/dist/esm/ion-datetime_3.entry.js +22 -4
- package/dist/esm/ion-input-otp.entry.js +3 -3
- package/dist/esm/ion-input.entry.js +3 -3
- package/dist/esm/ion-textarea.entry.js +3 -3
- package/dist/esm/ionic.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/html.html-data.json +0 -24
- package/dist/ionic/ionic.esm.js +1 -1
- package/dist/ionic/{p-b8c602ec.entry.js → p-19bda0d1.entry.js} +1 -1
- package/dist/ionic/p-3f780ab8.entry.js +4 -0
- package/dist/ionic/p-6935c9f1.entry.js +4 -0
- package/dist/ionic/p-7a2392c9.entry.js +4 -0
- package/dist/ionic/p-d38b7cdc.entry.js +4 -0
- package/dist/ionic/p-dc66e8cc.entry.js +4 -0
- package/dist/types/components/col/col.d.ts +5 -48
- package/dist/types/components/datetime/datetime.d.ts +2 -0
- package/dist/types/components.d.ts +0 -72
- package/hydrate/index.js +124 -106
- package/hydrate/index.mjs +124 -106
- package/package.json +1 -1
- package/dist/ionic/p-0edc2fcf.entry.js +0 -4
- package/dist/ionic/p-417569b5.entry.js +0 -4
- package/dist/ionic/p-5a3ba1f6.entry.js +0 -4
- package/dist/ionic/p-80faabb9.entry.js +0 -4
- package/dist/ionic/p-9af1c2e0.entry.js +0 -4
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2025-09-
|
|
2
|
+
"timestamp": "2025-09-04T16:33:20",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.36.2",
|
|
@@ -7169,7 +7169,7 @@
|
|
|
7169
7169
|
},
|
|
7170
7170
|
{
|
|
7171
7171
|
"filePath": "src/components/card-content/card-content.tsx",
|
|
7172
|
-
"encapsulation": "
|
|
7172
|
+
"encapsulation": "shadow",
|
|
7173
7173
|
"tag": "ion-card-content",
|
|
7174
7174
|
"docs": "",
|
|
7175
7175
|
"docsTags": [
|
|
@@ -9178,162 +9178,6 @@
|
|
|
9178
9178
|
"getter": false,
|
|
9179
9179
|
"setter": false
|
|
9180
9180
|
},
|
|
9181
|
-
{
|
|
9182
|
-
"name": "order",
|
|
9183
|
-
"type": "string | undefined",
|
|
9184
|
-
"complexType": {
|
|
9185
|
-
"original": "string",
|
|
9186
|
-
"resolved": "string | undefined",
|
|
9187
|
-
"references": {}
|
|
9188
|
-
},
|
|
9189
|
-
"mutable": false,
|
|
9190
|
-
"attr": "order",
|
|
9191
|
-
"reflectToAttr": false,
|
|
9192
|
-
"docs": "The order of the column, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9193
|
-
"docsTags": [],
|
|
9194
|
-
"values": [
|
|
9195
|
-
{
|
|
9196
|
-
"type": "string"
|
|
9197
|
-
},
|
|
9198
|
-
{
|
|
9199
|
-
"type": "undefined"
|
|
9200
|
-
}
|
|
9201
|
-
],
|
|
9202
|
-
"optional": true,
|
|
9203
|
-
"required": false,
|
|
9204
|
-
"getter": false,
|
|
9205
|
-
"setter": false
|
|
9206
|
-
},
|
|
9207
|
-
{
|
|
9208
|
-
"name": "orderLg",
|
|
9209
|
-
"type": "string | undefined",
|
|
9210
|
-
"complexType": {
|
|
9211
|
-
"original": "string",
|
|
9212
|
-
"resolved": "string | undefined",
|
|
9213
|
-
"references": {}
|
|
9214
|
-
},
|
|
9215
|
-
"mutable": false,
|
|
9216
|
-
"attr": "order-lg",
|
|
9217
|
-
"reflectToAttr": false,
|
|
9218
|
-
"docs": "The order of the column for lg screens, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9219
|
-
"docsTags": [],
|
|
9220
|
-
"values": [
|
|
9221
|
-
{
|
|
9222
|
-
"type": "string"
|
|
9223
|
-
},
|
|
9224
|
-
{
|
|
9225
|
-
"type": "undefined"
|
|
9226
|
-
}
|
|
9227
|
-
],
|
|
9228
|
-
"optional": true,
|
|
9229
|
-
"required": false,
|
|
9230
|
-
"getter": false,
|
|
9231
|
-
"setter": false
|
|
9232
|
-
},
|
|
9233
|
-
{
|
|
9234
|
-
"name": "orderMd",
|
|
9235
|
-
"type": "string | undefined",
|
|
9236
|
-
"complexType": {
|
|
9237
|
-
"original": "string",
|
|
9238
|
-
"resolved": "string | undefined",
|
|
9239
|
-
"references": {}
|
|
9240
|
-
},
|
|
9241
|
-
"mutable": false,
|
|
9242
|
-
"attr": "order-md",
|
|
9243
|
-
"reflectToAttr": false,
|
|
9244
|
-
"docs": "The order of the column for md screens, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9245
|
-
"docsTags": [],
|
|
9246
|
-
"values": [
|
|
9247
|
-
{
|
|
9248
|
-
"type": "string"
|
|
9249
|
-
},
|
|
9250
|
-
{
|
|
9251
|
-
"type": "undefined"
|
|
9252
|
-
}
|
|
9253
|
-
],
|
|
9254
|
-
"optional": true,
|
|
9255
|
-
"required": false,
|
|
9256
|
-
"getter": false,
|
|
9257
|
-
"setter": false
|
|
9258
|
-
},
|
|
9259
|
-
{
|
|
9260
|
-
"name": "orderSm",
|
|
9261
|
-
"type": "string | undefined",
|
|
9262
|
-
"complexType": {
|
|
9263
|
-
"original": "string",
|
|
9264
|
-
"resolved": "string | undefined",
|
|
9265
|
-
"references": {}
|
|
9266
|
-
},
|
|
9267
|
-
"mutable": false,
|
|
9268
|
-
"attr": "order-sm",
|
|
9269
|
-
"reflectToAttr": false,
|
|
9270
|
-
"docs": "The order of the column for sm screens, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9271
|
-
"docsTags": [],
|
|
9272
|
-
"values": [
|
|
9273
|
-
{
|
|
9274
|
-
"type": "string"
|
|
9275
|
-
},
|
|
9276
|
-
{
|
|
9277
|
-
"type": "undefined"
|
|
9278
|
-
}
|
|
9279
|
-
],
|
|
9280
|
-
"optional": true,
|
|
9281
|
-
"required": false,
|
|
9282
|
-
"getter": false,
|
|
9283
|
-
"setter": false
|
|
9284
|
-
},
|
|
9285
|
-
{
|
|
9286
|
-
"name": "orderXl",
|
|
9287
|
-
"type": "string | undefined",
|
|
9288
|
-
"complexType": {
|
|
9289
|
-
"original": "string",
|
|
9290
|
-
"resolved": "string | undefined",
|
|
9291
|
-
"references": {}
|
|
9292
|
-
},
|
|
9293
|
-
"mutable": false,
|
|
9294
|
-
"attr": "order-xl",
|
|
9295
|
-
"reflectToAttr": false,
|
|
9296
|
-
"docs": "The order of the column for xl screens, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9297
|
-
"docsTags": [],
|
|
9298
|
-
"values": [
|
|
9299
|
-
{
|
|
9300
|
-
"type": "string"
|
|
9301
|
-
},
|
|
9302
|
-
{
|
|
9303
|
-
"type": "undefined"
|
|
9304
|
-
}
|
|
9305
|
-
],
|
|
9306
|
-
"optional": true,
|
|
9307
|
-
"required": false,
|
|
9308
|
-
"getter": false,
|
|
9309
|
-
"setter": false
|
|
9310
|
-
},
|
|
9311
|
-
{
|
|
9312
|
-
"name": "orderXs",
|
|
9313
|
-
"type": "string | undefined",
|
|
9314
|
-
"complexType": {
|
|
9315
|
-
"original": "string",
|
|
9316
|
-
"resolved": "string | undefined",
|
|
9317
|
-
"references": {}
|
|
9318
|
-
},
|
|
9319
|
-
"mutable": false,
|
|
9320
|
-
"attr": "order-xs",
|
|
9321
|
-
"reflectToAttr": false,
|
|
9322
|
-
"docs": "The order of the column for xs screens, in terms of where the column should position itself in the columns renderer.\nIf no value is passed, the column order implicit value will be the order in the html structure.",
|
|
9323
|
-
"docsTags": [],
|
|
9324
|
-
"values": [
|
|
9325
|
-
{
|
|
9326
|
-
"type": "string"
|
|
9327
|
-
},
|
|
9328
|
-
{
|
|
9329
|
-
"type": "undefined"
|
|
9330
|
-
}
|
|
9331
|
-
],
|
|
9332
|
-
"optional": true,
|
|
9333
|
-
"required": false,
|
|
9334
|
-
"getter": false,
|
|
9335
|
-
"setter": false
|
|
9336
|
-
},
|
|
9337
9181
|
{
|
|
9338
9182
|
"name": "pull",
|
|
9339
9183
|
"type": "string | undefined",
|
|
@@ -9346,13 +9190,7 @@
|
|
|
9346
9190
|
"attr": "pull",
|
|
9347
9191
|
"reflectToAttr": false,
|
|
9348
9192
|
"docs": "The amount to pull the column, in terms of how many columns it should shift to the start of\nthe total available.",
|
|
9349
|
-
"docsTags": [
|
|
9350
|
-
{
|
|
9351
|
-
"name": "deprecated",
|
|
9352
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9353
|
-
}
|
|
9354
|
-
],
|
|
9355
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9193
|
+
"docsTags": [],
|
|
9356
9194
|
"values": [
|
|
9357
9195
|
{
|
|
9358
9196
|
"type": "string"
|
|
@@ -9378,13 +9216,7 @@
|
|
|
9378
9216
|
"attr": "pull-lg",
|
|
9379
9217
|
"reflectToAttr": false,
|
|
9380
9218
|
"docs": "The amount to pull the column for lg screens, in terms of how many columns it should shift\nto the start of the total available.",
|
|
9381
|
-
"docsTags": [
|
|
9382
|
-
{
|
|
9383
|
-
"name": "deprecated",
|
|
9384
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9385
|
-
}
|
|
9386
|
-
],
|
|
9387
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9219
|
+
"docsTags": [],
|
|
9388
9220
|
"values": [
|
|
9389
9221
|
{
|
|
9390
9222
|
"type": "string"
|
|
@@ -9410,13 +9242,7 @@
|
|
|
9410
9242
|
"attr": "pull-md",
|
|
9411
9243
|
"reflectToAttr": false,
|
|
9412
9244
|
"docs": "The amount to pull the column for md screens, in terms of how many columns it should shift\nto the start of the total available.",
|
|
9413
|
-
"docsTags": [
|
|
9414
|
-
{
|
|
9415
|
-
"name": "deprecated",
|
|
9416
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9417
|
-
}
|
|
9418
|
-
],
|
|
9419
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9245
|
+
"docsTags": [],
|
|
9420
9246
|
"values": [
|
|
9421
9247
|
{
|
|
9422
9248
|
"type": "string"
|
|
@@ -9442,13 +9268,7 @@
|
|
|
9442
9268
|
"attr": "pull-sm",
|
|
9443
9269
|
"reflectToAttr": false,
|
|
9444
9270
|
"docs": "The amount to pull the column for sm screens, in terms of how many columns it should shift\nto the start of the total available.",
|
|
9445
|
-
"docsTags": [
|
|
9446
|
-
{
|
|
9447
|
-
"name": "deprecated",
|
|
9448
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9449
|
-
}
|
|
9450
|
-
],
|
|
9451
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9271
|
+
"docsTags": [],
|
|
9452
9272
|
"values": [
|
|
9453
9273
|
{
|
|
9454
9274
|
"type": "string"
|
|
@@ -9474,13 +9294,7 @@
|
|
|
9474
9294
|
"attr": "pull-xl",
|
|
9475
9295
|
"reflectToAttr": false,
|
|
9476
9296
|
"docs": "The amount to pull the column for xl screens, in terms of how many columns it should shift\nto the start of the total available.",
|
|
9477
|
-
"docsTags": [
|
|
9478
|
-
{
|
|
9479
|
-
"name": "deprecated",
|
|
9480
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9481
|
-
}
|
|
9482
|
-
],
|
|
9483
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9297
|
+
"docsTags": [],
|
|
9484
9298
|
"values": [
|
|
9485
9299
|
{
|
|
9486
9300
|
"type": "string"
|
|
@@ -9506,13 +9320,7 @@
|
|
|
9506
9320
|
"attr": "pull-xs",
|
|
9507
9321
|
"reflectToAttr": false,
|
|
9508
9322
|
"docs": "The amount to pull the column for xs screens, in terms of how many columns it should shift\nto the start of the total available.",
|
|
9509
|
-
"docsTags": [
|
|
9510
|
-
{
|
|
9511
|
-
"name": "deprecated",
|
|
9512
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9513
|
-
}
|
|
9514
|
-
],
|
|
9515
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9323
|
+
"docsTags": [],
|
|
9516
9324
|
"values": [
|
|
9517
9325
|
{
|
|
9518
9326
|
"type": "string"
|
|
@@ -9538,13 +9346,7 @@
|
|
|
9538
9346
|
"attr": "push",
|
|
9539
9347
|
"reflectToAttr": false,
|
|
9540
9348
|
"docs": "The amount to push the column, in terms of how many columns it should shift to the end\nof the total available.",
|
|
9541
|
-
"docsTags": [
|
|
9542
|
-
{
|
|
9543
|
-
"name": "deprecated",
|
|
9544
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9545
|
-
}
|
|
9546
|
-
],
|
|
9547
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9349
|
+
"docsTags": [],
|
|
9548
9350
|
"values": [
|
|
9549
9351
|
{
|
|
9550
9352
|
"type": "string"
|
|
@@ -9570,13 +9372,7 @@
|
|
|
9570
9372
|
"attr": "push-lg",
|
|
9571
9373
|
"reflectToAttr": false,
|
|
9572
9374
|
"docs": "The amount to push the column for lg screens, in terms of how many columns it should shift\nto the end of the total available.",
|
|
9573
|
-
"docsTags": [
|
|
9574
|
-
{
|
|
9575
|
-
"name": "deprecated",
|
|
9576
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9577
|
-
}
|
|
9578
|
-
],
|
|
9579
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9375
|
+
"docsTags": [],
|
|
9580
9376
|
"values": [
|
|
9581
9377
|
{
|
|
9582
9378
|
"type": "string"
|
|
@@ -9602,13 +9398,7 @@
|
|
|
9602
9398
|
"attr": "push-md",
|
|
9603
9399
|
"reflectToAttr": false,
|
|
9604
9400
|
"docs": "The amount to push the column for md screens, in terms of how many columns it should shift\nto the end of the total available.",
|
|
9605
|
-
"docsTags": [
|
|
9606
|
-
{
|
|
9607
|
-
"name": "deprecated",
|
|
9608
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9609
|
-
}
|
|
9610
|
-
],
|
|
9611
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9401
|
+
"docsTags": [],
|
|
9612
9402
|
"values": [
|
|
9613
9403
|
{
|
|
9614
9404
|
"type": "string"
|
|
@@ -9634,13 +9424,7 @@
|
|
|
9634
9424
|
"attr": "push-sm",
|
|
9635
9425
|
"reflectToAttr": false,
|
|
9636
9426
|
"docs": "The amount to push the column for sm screens, in terms of how many columns it should shift\nto the end of the total available.",
|
|
9637
|
-
"docsTags": [
|
|
9638
|
-
{
|
|
9639
|
-
"name": "deprecated",
|
|
9640
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9641
|
-
}
|
|
9642
|
-
],
|
|
9643
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9427
|
+
"docsTags": [],
|
|
9644
9428
|
"values": [
|
|
9645
9429
|
{
|
|
9646
9430
|
"type": "string"
|
|
@@ -9666,13 +9450,7 @@
|
|
|
9666
9450
|
"attr": "push-xl",
|
|
9667
9451
|
"reflectToAttr": false,
|
|
9668
9452
|
"docs": "The amount to push the column for xl screens, in terms of how many columns it should shift\nto the end of the total available.",
|
|
9669
|
-
"docsTags": [
|
|
9670
|
-
{
|
|
9671
|
-
"name": "deprecated",
|
|
9672
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9673
|
-
}
|
|
9674
|
-
],
|
|
9675
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9453
|
+
"docsTags": [],
|
|
9676
9454
|
"values": [
|
|
9677
9455
|
{
|
|
9678
9456
|
"type": "string"
|
|
@@ -9698,13 +9476,7 @@
|
|
|
9698
9476
|
"attr": "push-xs",
|
|
9699
9477
|
"reflectToAttr": false,
|
|
9700
9478
|
"docs": "The amount to push the column for xs screens, in terms of how many columns it should shift\nto the end of the total available.",
|
|
9701
|
-
"docsTags": [
|
|
9702
|
-
{
|
|
9703
|
-
"name": "deprecated",
|
|
9704
|
-
"text": "Use the combination of `size` and `order` properties to achieve the same effect."
|
|
9705
|
-
}
|
|
9706
|
-
],
|
|
9707
|
-
"deprecation": "Use the combination of `size` and `order` properties to achieve the same effect.",
|
|
9479
|
+
"docsTags": [],
|
|
9708
9480
|
"values": [
|
|
9709
9481
|
{
|
|
9710
9482
|
"type": "string"
|
|
@@ -9911,11 +9683,6 @@
|
|
|
9911
9683
|
}
|
|
9912
9684
|
],
|
|
9913
9685
|
"styles": [
|
|
9914
|
-
{
|
|
9915
|
-
"name": "--col-unit-size",
|
|
9916
|
-
"annotation": "prop",
|
|
9917
|
-
"docs": "The size of each Column unit."
|
|
9918
|
-
},
|
|
9919
9686
|
{
|
|
9920
9687
|
"name": "--ion-grid-column-padding",
|
|
9921
9688
|
"annotation": "prop",
|
|
@@ -15013,7 +14780,7 @@
|
|
|
15013
14780
|
},
|
|
15014
14781
|
{
|
|
15015
14782
|
"filePath": "src/components/input/input.tsx",
|
|
15016
|
-
"encapsulation": "
|
|
14783
|
+
"encapsulation": "shadow",
|
|
15017
14784
|
"tag": "ion-input",
|
|
15018
14785
|
"docs": "",
|
|
15019
14786
|
"docsTags": [
|
|
@@ -16946,7 +16713,7 @@
|
|
|
16946
16713
|
},
|
|
16947
16714
|
{
|
|
16948
16715
|
"filePath": "src/components/input-otp/input-otp.tsx",
|
|
16949
|
-
"encapsulation": "
|
|
16716
|
+
"encapsulation": "shadow",
|
|
16950
16717
|
"tag": "ion-input-otp",
|
|
16951
16718
|
"docs": "",
|
|
16952
16719
|
"docsTags": [],
|
|
@@ -40616,7 +40383,7 @@
|
|
|
40616
40383
|
},
|
|
40617
40384
|
{
|
|
40618
40385
|
"filePath": "src/components/textarea/textarea.tsx",
|
|
40619
|
-
"encapsulation": "
|
|
40386
|
+
"encapsulation": "shadow",
|
|
40620
40387
|
"tag": "ion-textarea",
|
|
40621
40388
|
"docs": "",
|
|
40622
40389
|
"docsTags": [
|
|
@@ -94,7 +94,7 @@ const CardContent = class {
|
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
96
|
const theme = getIonTheme(this);
|
|
97
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '02e1dcb024098b03783235cdcf0311ece428a9a6', class: {
|
|
98
98
|
[theme]: true,
|
|
99
99
|
// Used internally for styling
|
|
100
100
|
[`card-content-${theme}`]: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* (C) Ionic http://ionicframework.com - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, i as forceUpdate,
|
|
4
|
+
import { r as registerInstance, i as forceUpdate, h, d as Host } from './index-4DxY6_gG.js';
|
|
5
5
|
import { c as getIonTheme } from './ionic-global-Dtd5Ma5B.js';
|
|
6
6
|
|
|
7
7
|
const SIZE_TO_MEDIA = {
|
|
@@ -25,9 +25,11 @@ const matchBreakpoint = (breakpoint) => {
|
|
|
25
25
|
return false;
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
const colCss = ":host{
|
|
28
|
+
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))}}";
|
|
29
29
|
|
|
30
|
+
const win = typeof window !== 'undefined' ? window : undefined;
|
|
30
31
|
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
32
|
+
const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));
|
|
31
33
|
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
|
32
34
|
const Col = class {
|
|
33
35
|
constructor(hostRef) {
|
|
@@ -53,62 +55,66 @@ const Col = class {
|
|
|
53
55
|
// increase in size and we want to return the largest match
|
|
54
56
|
return matched;
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
+
calculateSize() {
|
|
59
|
+
const columns = this.getColumns('size');
|
|
58
60
|
// If size wasn't set for any breakpoint
|
|
59
61
|
// or if the user set the size without a value
|
|
60
62
|
// it means we need to stick with the default and return
|
|
61
63
|
// e.g. <ion-col size-md>
|
|
62
|
-
if (!
|
|
64
|
+
if (!columns || columns === '') {
|
|
63
65
|
return;
|
|
64
66
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
// If the size is set to auto then don't calculate a size
|
|
68
|
+
const colSize = columns === 'auto'
|
|
69
|
+
? 'auto'
|
|
70
|
+
: // If CSS supports variables we should use the grid columns var
|
|
71
|
+
SUPPORTS_VARS
|
|
72
|
+
? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
|
73
|
+
: // Convert the columns to a percentage by dividing by the total number
|
|
74
|
+
// of columns (12) and then multiplying by 100
|
|
75
|
+
(columns / 12) * 100 + '%';
|
|
76
|
+
return {
|
|
77
|
+
flex: `0 0 ${colSize}`,
|
|
78
|
+
width: `${colSize}`,
|
|
79
|
+
'max-width': `${colSize}`,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
// Called by push, pull, and offset since they use the same calculations
|
|
83
|
+
calculatePosition(property, modifier) {
|
|
84
|
+
const columns = this.getColumns(property);
|
|
85
|
+
if (!columns) {
|
|
70
86
|
return;
|
|
71
87
|
}
|
|
72
|
-
|
|
88
|
+
// If the number of columns passed are greater than 0 and less than
|
|
89
|
+
// 12 we can position the column, else default to auto
|
|
90
|
+
const amount = SUPPORTS_VARS
|
|
91
|
+
? // If CSS supports variables we should use the grid columns var
|
|
92
|
+
`calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
|
93
|
+
: // Convert the columns to a percentage by dividing by the total number
|
|
94
|
+
// of columns (12) and then multiplying by 100
|
|
95
|
+
columns > 0 && columns < 12
|
|
96
|
+
? (columns / 12) * 100 + '%'
|
|
97
|
+
: 'auto';
|
|
98
|
+
return {
|
|
99
|
+
[modifier]: amount,
|
|
100
|
+
};
|
|
73
101
|
}
|
|
74
|
-
|
|
75
|
-
return this.
|
|
102
|
+
calculateOffset(isRTL) {
|
|
103
|
+
return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');
|
|
76
104
|
}
|
|
77
|
-
|
|
78
|
-
return this.
|
|
105
|
+
calculatePull(isRTL) {
|
|
106
|
+
return this.calculatePosition('pull', isRTL ? 'left' : 'right');
|
|
79
107
|
}
|
|
80
|
-
|
|
81
|
-
return this.
|
|
82
|
-
}
|
|
83
|
-
componentDidLoad() {
|
|
84
|
-
if (this.pull ||
|
|
85
|
-
this.pullLg ||
|
|
86
|
-
this.pullMd ||
|
|
87
|
-
this.pullSm ||
|
|
88
|
-
this.pullXl ||
|
|
89
|
-
this.pullXs ||
|
|
90
|
-
this.push ||
|
|
91
|
-
this.pushLg ||
|
|
92
|
-
this.pushMd ||
|
|
93
|
-
this.pushSm ||
|
|
94
|
-
this.pushXl ||
|
|
95
|
-
this.pushXs) {
|
|
96
|
-
printIonWarning('[ion-col] - The pull and push properties are deprecated and no longer work, in favor of the order and size properties.', this.el);
|
|
97
|
-
}
|
|
108
|
+
calculatePush(isRTL) {
|
|
109
|
+
return this.calculatePosition('push', isRTL ? 'right' : 'left');
|
|
98
110
|
}
|
|
99
111
|
render() {
|
|
112
|
+
const isRTL = document.dir === 'rtl';
|
|
100
113
|
const theme = getIonTheme(this);
|
|
101
|
-
|
|
102
|
-
const colOrder = this.getOrderClass();
|
|
103
|
-
const colOffset = this.getOffsetClass();
|
|
104
|
-
return (h(Host, { key: '13acd2681e3e16bbf196eb3ca8ad01230fbb0df8', class: {
|
|
114
|
+
return (h(Host, { key: '18eb6aff60f43b28b7e157b7d6ce787635f25fa1', class: {
|
|
105
115
|
[theme]: true,
|
|
106
|
-
|
|
107
|
-
[`${colOrder}`]: colOrder !== undefined,
|
|
108
|
-
[`${colOffset}`]: colOffset !== undefined,
|
|
109
|
-
} }, h("slot", { key: '525e1f5b3102009f16ae985a838f68f440eea7e4' })));
|
|
116
|
+
}, style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, h("slot", { key: '3848d5cb525b42a550aa36a486f97b2e20240def' })));
|
|
110
117
|
}
|
|
111
|
-
get el() { return getElement(this); }
|
|
112
118
|
};
|
|
113
119
|
Col.style = colCss;
|
|
114
120
|
|
|
@@ -132,7 +138,7 @@ const Grid = class {
|
|
|
132
138
|
};
|
|
133
139
|
Grid.style = gridCss;
|
|
134
140
|
|
|
135
|
-
const rowCss = ":host{
|
|
141
|
+
const rowCss = ":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
136
142
|
|
|
137
143
|
const Row = class {
|
|
138
144
|
constructor(hostRef) {
|
|
@@ -942,6 +942,9 @@ const Datetime = class {
|
|
|
942
942
|
this.toggleMonthAndYearView = () => {
|
|
943
943
|
this.showMonthAndYear = !this.showMonthAndYear;
|
|
944
944
|
};
|
|
945
|
+
this.asBlob = (icon) => new Blob([Uint8Array.from(icon.split("").map(function (c) {
|
|
946
|
+
return c.charCodeAt(0);
|
|
947
|
+
}))], { type: "image/svg+xml" });
|
|
945
948
|
}
|
|
946
949
|
formatOptionsChanged() {
|
|
947
950
|
const { el, formatOptions, presentation } = this;
|
|
@@ -1533,6 +1536,22 @@ const Datetime = class {
|
|
|
1533
1536
|
[`wheel-order-${columnOrder}`]: true,
|
|
1534
1537
|
} }, this.renderWheelPicker(forcePresentation)));
|
|
1535
1538
|
}
|
|
1539
|
+
getIconProps(icon) {
|
|
1540
|
+
if (typeof icon === 'string' && icon.trim().startsWith('data:image/svg+xml')) {
|
|
1541
|
+
// Extract and decode the SVG string from the data URL
|
|
1542
|
+
const svgString = decodeURIComponent(atob(icon.split(',')[1])
|
|
1543
|
+
.split('')
|
|
1544
|
+
.map(function (c) {
|
|
1545
|
+
return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);
|
|
1546
|
+
})
|
|
1547
|
+
.join(''));
|
|
1548
|
+
const url = URL.createObjectURL(this.asBlob(svgString));
|
|
1549
|
+
console.log(url);
|
|
1550
|
+
return { src: url };
|
|
1551
|
+
}
|
|
1552
|
+
// Ionicons icon name/object or undefined
|
|
1553
|
+
return { icon };
|
|
1554
|
+
}
|
|
1536
1555
|
/**
|
|
1537
1556
|
* Grid Render Methods
|
|
1538
1557
|
*/
|
|
@@ -1541,12 +1560,11 @@ const Datetime = class {
|
|
|
1541
1560
|
const prevMonthDisabled = disabled || isPrevMonthDisabled(this.workingParts, this.minParts, this.maxParts);
|
|
1542
1561
|
const nextMonthDisabled = disabled || isNextMonthDisabled(this.workingParts, this.maxParts);
|
|
1543
1562
|
// don't use the inheritAttributes util because it removes dir from the host, and we still need that
|
|
1544
|
-
const hostDir = this.el.getAttribute('dir') || undefined;
|
|
1545
1563
|
return (h("div", { class: "calendar-header" }, h("div", { class: "calendar-action-buttons" }, h("div", { class: "calendar-month-year" }, h("button", { class: {
|
|
1546
1564
|
'calendar-month-year-toggle': true,
|
|
1547
1565
|
'ion-activatable': true,
|
|
1548
1566
|
'ion-focusable': true,
|
|
1549
|
-
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, h("span", { id: "toggle-wrapper" }, getMonthAndYear(this.locale, this.workingParts), theme !== 'ionic' && (h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? datetimeExpandedIcon : datetimeCollapsedIcon, lazy: false, flipRtl: true }))), theme === 'md' && h("ion-ripple-effect", null))), h("div", { class: "calendar-next-prev" }, h("ion-buttons", null, h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, h("ion-icon", {
|
|
1567
|
+
}, part: "month-year-button", disabled: disabled, "aria-label": this.showMonthAndYear ? 'Hide year picker' : 'Show year picker', onClick: () => this.toggleMonthAndYearView() }, h("span", { id: "toggle-wrapper" }, getMonthAndYear(this.locale, this.workingParts), theme !== 'ionic' && (h("ion-icon", { "aria-hidden": "true", icon: this.showMonthAndYear ? datetimeExpandedIcon : datetimeCollapsedIcon, lazy: false, flipRtl: true }))), theme === 'md' && h("ion-ripple-effect", null))), h("div", { class: "calendar-next-prev" }, h("ion-buttons", null, h("ion-button", { "aria-label": "Previous month", disabled: prevMonthDisabled, onClick: () => this.prevMonth() }, h("ion-icon", Object.assign({ "aria-hidden": "true", slot: "icon-only", lazy: false, flipRtl: true }, this.getIconProps(datetimePreviousIcon)))), h("ion-button", { "aria-label": "Next month", disabled: nextMonthDisabled, onClick: () => this.nextMonth() }, h("ion-icon", Object.assign({ "aria-hidden": "true", slot: "icon-only", lazy: false, flipRtl: true }, this.getIconProps(datetimeNextIcon))))))), h("div", { class: "calendar-days-of-week", "aria-hidden": "true" }, getDaysOfWeek(this.locale, theme, this.firstDayOfWeek % 7).map((d) => {
|
|
1550
1568
|
return h("div", { class: "day-of-week" }, d);
|
|
1551
1569
|
}))));
|
|
1552
1570
|
}
|
|
@@ -1930,7 +1948,7 @@ const Datetime = class {
|
|
|
1930
1948
|
const hasDatePresentation = presentation === 'date' || presentation === 'date-time' || presentation === 'time-date';
|
|
1931
1949
|
const hasWheelVariant = hasDatePresentation && preferWheel;
|
|
1932
1950
|
renderHiddenInput(true, el, name, formatValue(value), disabled);
|
|
1933
|
-
return (h(Host, { key: '
|
|
1951
|
+
return (h(Host, { key: '1cab6e719cb32cd1cb8082f228ce26346ede22f1', "aria-disabled": disabled ? 'true' : null, onFocus: this.onFocus, onBlur: this.onBlur, class: Object.assign({}, createColorClasses(color, {
|
|
1934
1952
|
[theme]: true,
|
|
1935
1953
|
['datetime-readonly']: readonly,
|
|
1936
1954
|
['datetime-disabled']: disabled,
|
|
@@ -1940,7 +1958,7 @@ const Datetime = class {
|
|
|
1940
1958
|
[`datetime-size-${size}`]: true,
|
|
1941
1959
|
[`datetime-prefer-wheel`]: hasWheelVariant,
|
|
1942
1960
|
[`datetime-grid`]: isGridStyle,
|
|
1943
|
-
})) }, h("div", { key: '
|
|
1961
|
+
})) }, h("div", { key: '53e49d7bb6b8a99b7e485bf4c75acda59f45c8b1', class: "intersection-tracker", ref: (el) => (this.intersectionTrackerRef = el) }), this.renderDatetime(theme)));
|
|
1944
1962
|
}
|
|
1945
1963
|
get el() { return getElement(this); }
|
|
1946
1964
|
static get watchers() { return {
|