@nanoporetech-digital/components 4.10.0 → 5.0.0
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/CHANGELOG.md +30 -0
- package/dist/cjs/{form-control-2e900f54.js → form-control-443e90bf.js} +2 -3
- package/dist/cjs/form-control-443e90bf.js.map +1 -0
- package/dist/cjs/index-71f899a7.js +6 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/nano-components.cjs.js +1 -1
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js +2 -2
- package/dist/cjs/nano-global-nav-user-profile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-grid-item.cjs.entry.js +29 -0
- package/dist/cjs/nano-grid-item.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-grid_2.cjs.entry.js +436 -0
- package/dist/cjs/nano-grid_2.cjs.entry.js.map +1 -0
- package/dist/cjs/nano-hero.cjs.entry.js +4 -10
- package/dist/cjs/nano-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button_2.cjs.entry.js +2 -2
- package/dist/cjs/nano-icon-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-input.cjs.entry.js +2 -2
- package/dist/cjs/nano-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-range.cjs.entry.js +1 -1
- package/dist/cjs/nano-range.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sortable.cjs.entry.js +1 -0
- package/dist/cjs/nano-sortable.cjs.entry.js.map +1 -1
- package/dist/cjs/{nano-table-ff33dc43.js → nano-table-11052a34.js} +37 -30
- package/dist/cjs/nano-table-11052a34.js.map +1 -0
- package/dist/cjs/nano-table.cjs.entry.js +1 -1
- package/dist/cjs/{table.worker-0a6bc962.js → table.worker-83433a8b.js} +2 -2
- package/dist/cjs/table.worker-83433a8b.js.map +1 -0
- package/dist/collection/components/form-control/form-control.js +1 -2
- package/dist/collection/components/form-control/form-control.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +11 -136
- package/dist/collection/components/grid/grid-item.js.map +1 -1
- package/dist/collection/components/grid/grid.css +9 -242
- package/dist/collection/components/grid/grid.js +248 -240
- package/dist/collection/components/grid/grid.js.map +1 -1
- package/dist/collection/components/hero/hero.css +42 -89
- package/dist/collection/components/hero/hero.js +4 -11
- package/dist/collection/components/hero/hero.js.map +1 -1
- package/dist/collection/components/icon-button/icon-button.css +12 -0
- package/dist/collection/components/icon-button/icon-button.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/input/input.css +8 -9
- package/dist/collection/components/range/range.css +0 -3
- package/dist/collection/components/select/select.css +8 -9
- package/dist/collection/components/sortable/sortable.js +2 -1
- package/dist/collection/components/sortable/sortable.js.map +1 -1
- package/dist/collection/components/table/table.css +6 -0
- package/dist/collection/components/table/table.js +25 -18
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/table/table.row.js +7 -7
- package/dist/collection/components/table/table.row.js.map +1 -1
- package/dist/collection/utils/constructible-style.js +129 -0
- package/dist/collection/utils/constructible-style.js.map +1 -0
- package/dist/components/form-control.js +1 -2
- package/dist/components/form-control.js.map +1 -1
- package/dist/components/grid.js +268 -183
- package/dist/components/grid.js.map +1 -1
- package/dist/components/icon-button.js +2 -2
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/input.js.map +1 -1
- package/dist/components/nano-grid-item.js +33 -1
- package/dist/components/nano-grid-item.js.map +1 -1
- package/dist/components/nano-hero.js +6 -19
- package/dist/components/nano-hero.js.map +1 -1
- package/dist/components/nano-range.js +1 -1
- package/dist/components/nano-range.js.map +1 -1
- package/dist/components/nano-sortable.js +1 -0
- package/dist/components/nano-sortable.js.map +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/select.js.map +1 -1
- package/dist/components/table.js +36 -29
- package/dist/components/table.js.map +1 -1
- package/dist/esm/{form-control-269ba84f.js → form-control-e8739b2e.js} +2 -3
- package/dist/esm/form-control-e8739b2e.js.map +1 -0
- package/dist/esm/index-dad5627b.js +6 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/nano-components.js +1 -1
- package/dist/esm/nano-global-nav-user-profile_3.entry.js +2 -2
- package/dist/esm/nano-global-nav-user-profile_3.entry.js.map +1 -1
- package/dist/esm/nano-grid-item.entry.js +25 -0
- package/dist/esm/nano-grid-item.entry.js.map +1 -0
- package/dist/esm/nano-grid_2.entry.js +431 -0
- package/dist/esm/nano-grid_2.entry.js.map +1 -0
- package/dist/esm/nano-hero.entry.js +4 -10
- package/dist/esm/nano-hero.entry.js.map +1 -1
- package/dist/esm/nano-icon-button_2.entry.js +2 -2
- package/dist/esm/nano-icon-button_2.entry.js.map +1 -1
- package/dist/esm/nano-input.entry.js +2 -2
- package/dist/esm/nano-input.entry.js.map +1 -1
- package/dist/esm/nano-range.entry.js +1 -1
- package/dist/esm/nano-range.entry.js.map +1 -1
- package/dist/esm/nano-sortable.entry.js +1 -0
- package/dist/esm/nano-sortable.entry.js.map +1 -1
- package/dist/esm/{nano-table-ec980076.js → nano-table-ba637f26.js} +37 -30
- package/dist/esm/nano-table-ba637f26.js.map +1 -0
- package/dist/esm/nano-table.entry.js +1 -1
- package/dist/esm/{table.worker-b53db58e.js → table.worker-1cae39c9.js} +2 -2
- package/dist/esm/table.worker-1cae39c9.js.map +1 -0
- package/dist/nano-components/nano-components.css +1 -1
- package/dist/nano-components/nano-components.esm.js +1 -1
- package/dist/nano-components/nano-components.esm.js.map +1 -1
- package/dist/nano-components/p-00cf8021.entry.js +5 -0
- package/dist/nano-components/p-00cf8021.entry.js.map +1 -0
- package/dist/nano-components/{p-f591400b.entry.js → p-158c73b0.entry.js} +2 -2
- package/dist/nano-components/p-365c997a.js +5 -0
- package/dist/nano-components/p-553acf24.entry.js +5 -0
- package/dist/nano-components/{p-58b53239.entry.js.map → p-553acf24.entry.js.map} +1 -1
- package/dist/nano-components/p-6975f110.entry.js +5 -0
- package/dist/nano-components/p-6975f110.entry.js.map +1 -0
- package/dist/nano-components/p-71057181.js +5 -0
- package/dist/nano-components/p-71057181.js.map +1 -0
- package/dist/nano-components/p-ad6209ec.entry.js +5 -0
- package/dist/nano-components/p-ad6209ec.entry.js.map +1 -0
- package/dist/nano-components/p-bdef618c.entry.js +5 -0
- package/dist/nano-components/p-bdef618c.entry.js.map +1 -0
- package/dist/nano-components/{p-241baff8.entry.js → p-d79c6862.entry.js} +2 -2
- package/dist/nano-components/p-d79c6862.entry.js.map +1 -0
- package/dist/nano-components/p-deb0799c.entry.js +5 -0
- package/dist/nano-components/{p-6a3a29c6.entry.js.map → p-deb0799c.entry.js.map} +1 -1
- package/dist/nano-components/p-ebb98a9e.entry.js +5 -0
- package/dist/nano-components/p-ebb98a9e.entry.js.map +1 -0
- package/dist/nano-components/p-fc585ea2.js +5 -0
- package/dist/nano-components/p-fc585ea2.js.map +1 -0
- package/dist/types/components/grid/grid-item.d.ts +3 -11
- package/dist/types/components/grid/grid.d.ts +44 -68
- package/dist/types/components/hero/hero.d.ts +1 -3
- package/dist/types/components/table/table.d.ts +5 -0
- package/dist/types/components.d.ts +85 -61
- package/dist/types/utils/constructible-style.d.ts +31 -0
- package/docs-json.json +147 -88
- package/docs-vscode.json +28 -21
- package/hydrate/index.js +340 -306
- package/package.json +2 -2
- package/dist/cjs/form-control-2e900f54.js.map +0 -1
- package/dist/cjs/nano-grid_3.cjs.entry.js +0 -431
- package/dist/cjs/nano-grid_3.cjs.entry.js.map +0 -1
- package/dist/cjs/nano-table-ff33dc43.js.map +0 -1
- package/dist/cjs/table.worker-0a6bc962.js.map +0 -1
- package/dist/collection/components/grid/grid-item.css +0 -15
- package/dist/components/grid-item.js +0 -107
- package/dist/components/grid-item.js.map +0 -1
- package/dist/esm/form-control-269ba84f.js.map +0 -1
- package/dist/esm/nano-grid_3.entry.js +0 -425
- package/dist/esm/nano-grid_3.entry.js.map +0 -1
- package/dist/esm/nano-table-ec980076.js.map +0 -1
- package/dist/esm/table.worker-b53db58e.js.map +0 -1
- package/dist/nano-components/p-064af7d0.js +0 -5
- package/dist/nano-components/p-064af7d0.js.map +0 -1
- package/dist/nano-components/p-107d4549.entry.js +0 -5
- package/dist/nano-components/p-107d4549.entry.js.map +0 -1
- package/dist/nano-components/p-239d343a.entry.js +0 -5
- package/dist/nano-components/p-239d343a.entry.js.map +0 -1
- package/dist/nano-components/p-241baff8.entry.js.map +0 -1
- package/dist/nano-components/p-58b53239.entry.js +0 -5
- package/dist/nano-components/p-5ac74848.js +0 -5
- package/dist/nano-components/p-5ac74848.js.map +0 -1
- package/dist/nano-components/p-6a3a29c6.entry.js +0 -5
- package/dist/nano-components/p-806bcd46.js +0 -5
- package/dist/nano-components/p-d3de231c.entry.js +0 -5
- package/dist/nano-components/p-d3de231c.entry.js.map +0 -1
- package/dist/nano-components/p-d792f692.entry.js +0 -5
- package/dist/nano-components/p-d792f692.entry.js.map +0 -1
- /package/dist/nano-components/{p-806bcd46.js.map → p-158c73b0.entry.js.map} +0 -0
- /package/dist/nano-components/{p-f591400b.entry.js.map → p-365c997a.js.map} +0 -0
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2023-
|
2
|
+
"timestamp": "2023-07-07T11:52:57",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.23.0",
|
@@ -7369,22 +7369,34 @@
|
|
7369
7369
|
"encapsulation": "shadow",
|
7370
7370
|
"tag": "nano-grid",
|
7371
7371
|
"readme": "# nano-grid (extra examples and methods)\n\n## 1. Define the number of grid columns to display at various container sizes (from 1 to 10). \n\n```html\n<nano-grid m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" xxl-cols=\"10\" show-helper></nano-grid>\n```\n<nano-grid style=\"min-height: 200px\" m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" xxl-cols=\"10\" show-helper></nano-grid>\n\n## 2. Put items into the grid\n\nBy default items will fill one column.\n\n```html\n<nano-grid m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" show-helper>\n <div></div>\n <div></div>\n <div></div>\n</nano-grid>\n```\n\n## 3. Set items to span columns and rows and / or start on different columns and rows at different sizes\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"\n xl-col-span-2 \n xl-col-start-2 \n xl-row-span-2 \n l-col-span-4\n \"></div>\n <div grid-states=\"xl-col-start-1 xl-row-start-1\"></div>\n <div grid-states=\"xl-col-start-6\"></div>\n <div grid-states=\"l-col-span-2\"></div>\n</nano-grid>\n```\n\n### IE11 Notes\n\nIf you need to support IE11 there are some things to consider.\n\nThere is no native way for IE11 to wrap items to new rows automatically. In order to achive this, items have been statically assigned to their row and column.\n\nThis causes 2 side-effects:\n\n1. In-order to strike a balance between flexibility and not creating humongous CSS files; the maximum grid columns currently supported is *10* with a potential *20* items spread accross them. If you need more look at nesting grids.\n\n2. If you wish to use any item grid-state property (col-span, col-start, row-span or row start) you will then need to assign corresponding properies to ALL items within the grid. E.g.\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"l-col-span-2 l-col-start-2 l-row-span-2\">1</div>\n <div grid-states=\"l-col-start-1 l-row-start-1\">2</div>\n <div grid-states=\"l-col-start-6\">3</div>\n <div grid-states=\"l-col-span-2\">4</div>\n</nano-grid>\n```\n\n(Something that will work on modern browsers) Will need to become:\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"l-col-span-2 l-col-start-2 l-row-span-2 l-row-start-1\">1</div>\n <div grid-states=\"l-col-start-1 l-row-start-1\">2</div>\n <div grid-states=\"l-col-start-6 l-row-start-1\">3</div>\n <div grid-states=\"l-col-start-4 l-col-span-2 l-row-start-2\">4</div>\n</nano-grid>\n```\n",
|
7372
|
-
"docs": "A context-aware CSS grid implementation.\
|
7373
|
-
"docsTags": [
|
7372
|
+
"docs": "A lightweight, context-aware CSS grid implementation.\n\n- Define multiple grids templates at different breakpoints\n- Uses `@container` queries to select the correct grid depending on the current dimensions\n- Use `grid-states=\"...\"` on direct descendants for `column` / `row` - `start` / `end`\n- SSR optimised",
|
7373
|
+
"docsTags": [
|
7374
|
+
{
|
7375
|
+
"name": "part",
|
7376
|
+
"text": "grid - the main grid element.\nUse this to set css such as `justify-items|content` / `align-items|content` / `place-content`"
|
7377
|
+
},
|
7378
|
+
{
|
7379
|
+
"name": "part",
|
7380
|
+
"text": "helper - a replica grid showed when `show-helper` is true"
|
7381
|
+
},
|
7382
|
+
{
|
7383
|
+
"name": "slot",
|
7384
|
+
"text": "- default slot. Use this to place grid items. Use `grid-states=\"...\"` attribute to opt-out of auto / sequential placement."
|
7385
|
+
}
|
7386
|
+
],
|
7374
7387
|
"usage": {},
|
7375
7388
|
"props": [
|
7376
7389
|
{
|
7377
|
-
"name": "
|
7378
|
-
"type": "
|
7390
|
+
"name": "lCols",
|
7391
|
+
"type": "number",
|
7379
7392
|
"mutable": false,
|
7380
|
-
"attr": "
|
7381
|
-
"reflectToAttr":
|
7382
|
-
"docs": "
|
7393
|
+
"attr": "l-cols",
|
7394
|
+
"reflectToAttr": false,
|
7395
|
+
"docs": "the number of columns the grid has at the large breakpoint.",
|
7383
7396
|
"docsTags": [],
|
7384
|
-
"default": "false",
|
7385
7397
|
"values": [
|
7386
7398
|
{
|
7387
|
-
"type": "
|
7399
|
+
"type": "number"
|
7388
7400
|
}
|
7389
7401
|
],
|
7390
7402
|
"optional": false,
|
@@ -7393,17 +7405,20 @@
|
|
7393
7405
|
"setter": false
|
7394
7406
|
},
|
7395
7407
|
{
|
7396
|
-
"name": "
|
7397
|
-
"type": "
|
7408
|
+
"name": "lSize",
|
7409
|
+
"type": "number | string",
|
7398
7410
|
"mutable": false,
|
7399
|
-
"attr": "
|
7400
|
-
"reflectToAttr":
|
7401
|
-
"docs": "
|
7411
|
+
"attr": "l-size",
|
7412
|
+
"reflectToAttr": false,
|
7413
|
+
"docs": "the component's large breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`",
|
7402
7414
|
"docsTags": [],
|
7403
|
-
"default": "
|
7415
|
+
"default": "800",
|
7404
7416
|
"values": [
|
7405
7417
|
{
|
7406
|
-
"type": "
|
7418
|
+
"type": "number"
|
7419
|
+
},
|
7420
|
+
{
|
7421
|
+
"type": "string"
|
7407
7422
|
}
|
7408
7423
|
],
|
7409
7424
|
"optional": false,
|
@@ -7412,32 +7427,31 @@
|
|
7412
7427
|
"setter": false
|
7413
7428
|
},
|
7414
7429
|
{
|
7415
|
-
"name": "
|
7416
|
-
"type": "
|
7430
|
+
"name": "lTpl",
|
7431
|
+
"type": "string",
|
7417
7432
|
"mutable": false,
|
7418
|
-
"attr": "l-
|
7433
|
+
"attr": "l-tpl",
|
7419
7434
|
"reflectToAttr": false,
|
7420
|
-
"docs": "
|
7435
|
+
"docs": "Optional large `grid-template`. *Note* - you must set `lCols` for this to take affect",
|
7421
7436
|
"docsTags": [],
|
7422
7437
|
"values": [
|
7423
7438
|
{
|
7424
|
-
"type": "
|
7439
|
+
"type": "string"
|
7425
7440
|
}
|
7426
7441
|
],
|
7427
|
-
"optional":
|
7442
|
+
"optional": true,
|
7428
7443
|
"required": false,
|
7429
7444
|
"getter": false,
|
7430
7445
|
"setter": false
|
7431
7446
|
},
|
7432
7447
|
{
|
7433
|
-
"name": "
|
7448
|
+
"name": "mCols",
|
7434
7449
|
"type": "number",
|
7435
7450
|
"mutable": false,
|
7436
|
-
"attr": "
|
7451
|
+
"attr": "m-cols",
|
7437
7452
|
"reflectToAttr": false,
|
7438
|
-
"docs": "the
|
7453
|
+
"docs": "the number of columns the grid has at the medium breakpoint.",
|
7439
7454
|
"docsTags": [],
|
7440
|
-
"default": "800",
|
7441
7455
|
"values": [
|
7442
7456
|
{
|
7443
7457
|
"type": "number"
|
@@ -7449,16 +7463,20 @@
|
|
7449
7463
|
"setter": false
|
7450
7464
|
},
|
7451
7465
|
{
|
7452
|
-
"name": "
|
7453
|
-
"type": "number",
|
7466
|
+
"name": "mSize",
|
7467
|
+
"type": "number | string",
|
7454
7468
|
"mutable": false,
|
7455
|
-
"attr": "m-
|
7469
|
+
"attr": "m-size",
|
7456
7470
|
"reflectToAttr": false,
|
7457
|
-
"docs": "the
|
7471
|
+
"docs": "the component's medium breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`",
|
7458
7472
|
"docsTags": [],
|
7473
|
+
"default": "550",
|
7459
7474
|
"values": [
|
7460
7475
|
{
|
7461
7476
|
"type": "number"
|
7477
|
+
},
|
7478
|
+
{
|
7479
|
+
"type": "string"
|
7462
7480
|
}
|
7463
7481
|
],
|
7464
7482
|
"optional": false,
|
@@ -7467,20 +7485,19 @@
|
|
7467
7485
|
"setter": false
|
7468
7486
|
},
|
7469
7487
|
{
|
7470
|
-
"name": "
|
7471
|
-
"type": "
|
7488
|
+
"name": "mTpl",
|
7489
|
+
"type": "string",
|
7472
7490
|
"mutable": false,
|
7473
|
-
"attr": "m-
|
7491
|
+
"attr": "m-tpl",
|
7474
7492
|
"reflectToAttr": false,
|
7475
|
-
"docs": "
|
7493
|
+
"docs": "Optional medium `grid-template`. *Note* - you must set `mCols` for this to take affect",
|
7476
7494
|
"docsTags": [],
|
7477
|
-
"default": "550",
|
7478
7495
|
"values": [
|
7479
7496
|
{
|
7480
|
-
"type": "
|
7497
|
+
"type": "string"
|
7481
7498
|
}
|
7482
7499
|
],
|
7483
|
-
"optional":
|
7500
|
+
"optional": true,
|
7484
7501
|
"required": false,
|
7485
7502
|
"getter": false,
|
7486
7503
|
"setter": false
|
@@ -7505,16 +7522,19 @@
|
|
7505
7522
|
},
|
7506
7523
|
{
|
7507
7524
|
"name": "sSize",
|
7508
|
-
"type": "number",
|
7525
|
+
"type": "number | string",
|
7509
7526
|
"mutable": false,
|
7510
7527
|
"attr": "s-size",
|
7511
7528
|
"reflectToAttr": false,
|
7512
|
-
"docs": "the component's small breakpoint. Note - all breakpoints are based on component width, not screen width.",
|
7529
|
+
"docs": "the component's small breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`",
|
7513
7530
|
"docsTags": [],
|
7514
7531
|
"default": "300",
|
7515
7532
|
"values": [
|
7516
7533
|
{
|
7517
7534
|
"type": "number"
|
7535
|
+
},
|
7536
|
+
{
|
7537
|
+
"type": "string"
|
7518
7538
|
}
|
7519
7539
|
],
|
7520
7540
|
"optional": false,
|
@@ -7522,6 +7542,24 @@
|
|
7522
7542
|
"getter": false,
|
7523
7543
|
"setter": false
|
7524
7544
|
},
|
7545
|
+
{
|
7546
|
+
"name": "sTpl",
|
7547
|
+
"type": "string",
|
7548
|
+
"mutable": false,
|
7549
|
+
"attr": "s-tpl",
|
7550
|
+
"reflectToAttr": false,
|
7551
|
+
"docs": "Optional small `grid-template`. *Note* - you must set `sCols` for this to take affect",
|
7552
|
+
"docsTags": [],
|
7553
|
+
"values": [
|
7554
|
+
{
|
7555
|
+
"type": "string"
|
7556
|
+
}
|
7557
|
+
],
|
7558
|
+
"optional": true,
|
7559
|
+
"required": false,
|
7560
|
+
"getter": false,
|
7561
|
+
"setter": false
|
7562
|
+
},
|
7525
7563
|
{
|
7526
7564
|
"name": "showHelper",
|
7527
7565
|
"type": "boolean",
|
@@ -7561,16 +7599,19 @@
|
|
7561
7599
|
},
|
7562
7600
|
{
|
7563
7601
|
"name": "xlSize",
|
7564
|
-
"type": "number",
|
7602
|
+
"type": "number | string",
|
7565
7603
|
"mutable": false,
|
7566
7604
|
"attr": "xl-size",
|
7567
7605
|
"reflectToAttr": false,
|
7568
|
-
"docs": "the component's xl breakpoint. Note - all breakpoints are based on component width, not screen width.",
|
7606
|
+
"docs": "the component's xl breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`",
|
7569
7607
|
"docsTags": [],
|
7570
7608
|
"default": "1000",
|
7571
7609
|
"values": [
|
7572
7610
|
{
|
7573
7611
|
"type": "number"
|
7612
|
+
},
|
7613
|
+
{
|
7614
|
+
"type": "string"
|
7574
7615
|
}
|
7575
7616
|
],
|
7576
7617
|
"optional": false,
|
@@ -7578,6 +7619,24 @@
|
|
7578
7619
|
"getter": false,
|
7579
7620
|
"setter": false
|
7580
7621
|
},
|
7622
|
+
{
|
7623
|
+
"name": "xlTpl",
|
7624
|
+
"type": "string",
|
7625
|
+
"mutable": false,
|
7626
|
+
"attr": "xl-tpl",
|
7627
|
+
"reflectToAttr": false,
|
7628
|
+
"docs": "Optional xl `grid-template`. *Note* - you must set `xlCols` for this to take affect",
|
7629
|
+
"docsTags": [],
|
7630
|
+
"values": [
|
7631
|
+
{
|
7632
|
+
"type": "string"
|
7633
|
+
}
|
7634
|
+
],
|
7635
|
+
"optional": true,
|
7636
|
+
"required": false,
|
7637
|
+
"getter": false,
|
7638
|
+
"setter": false
|
7639
|
+
},
|
7581
7640
|
{
|
7582
7641
|
"name": "xxlCols",
|
7583
7642
|
"type": "number",
|
@@ -7595,20 +7654,28 @@
|
|
7595
7654
|
"required": false,
|
7596
7655
|
"getter": false,
|
7597
7656
|
"setter": false
|
7598
|
-
}
|
7599
|
-
],
|
7600
|
-
"methods": [],
|
7601
|
-
"events": [
|
7657
|
+
},
|
7602
7658
|
{
|
7603
|
-
"
|
7604
|
-
"
|
7605
|
-
"
|
7606
|
-
"
|
7607
|
-
"
|
7608
|
-
"docs": "
|
7609
|
-
"docsTags": []
|
7659
|
+
"name": "xxlTpl",
|
7660
|
+
"type": "string",
|
7661
|
+
"mutable": false,
|
7662
|
+
"attr": "xxl-tpl",
|
7663
|
+
"reflectToAttr": false,
|
7664
|
+
"docs": "Optional xxl `grid-template`. *Note* - you must set `xxlCols` for this to take affect",
|
7665
|
+
"docsTags": [],
|
7666
|
+
"values": [
|
7667
|
+
{
|
7668
|
+
"type": "string"
|
7669
|
+
}
|
7670
|
+
],
|
7671
|
+
"optional": true,
|
7672
|
+
"required": false,
|
7673
|
+
"getter": false,
|
7674
|
+
"setter": false
|
7610
7675
|
}
|
7611
7676
|
],
|
7677
|
+
"methods": [],
|
7678
|
+
"events": [],
|
7612
7679
|
"listeners": [],
|
7613
7680
|
"styles": [
|
7614
7681
|
{
|
@@ -7622,8 +7689,22 @@
|
|
7622
7689
|
"docs": "gap between all rows. Defaults to theme's global padding"
|
7623
7690
|
}
|
7624
7691
|
],
|
7625
|
-
"slots": [
|
7626
|
-
|
7692
|
+
"slots": [
|
7693
|
+
{
|
7694
|
+
"name": "",
|
7695
|
+
"docs": "default slot. Use this to place grid items. Use `grid-states=\"...\"` attribute to opt-out of auto / sequential placement."
|
7696
|
+
}
|
7697
|
+
],
|
7698
|
+
"parts": [
|
7699
|
+
{
|
7700
|
+
"name": "grid",
|
7701
|
+
"docs": "the main grid element.\nUse this to set css such as `justify-items|content` / `align-items|content` / `place-content`"
|
7702
|
+
},
|
7703
|
+
{
|
7704
|
+
"name": "helper",
|
7705
|
+
"docs": "a replica grid showed when `show-helper` is true"
|
7706
|
+
}
|
7707
|
+
],
|
7627
7708
|
"dependents": [
|
7628
7709
|
"nano-hero"
|
7629
7710
|
],
|
@@ -7639,45 +7720,25 @@
|
|
7639
7720
|
"encapsulation": "shadow",
|
7640
7721
|
"tag": "nano-grid-item",
|
7641
7722
|
"readme": "# nano-grid (extra examples and methods)\n\n## 1. Define the number of grid columns to display at various container sizes (from 1 to 10). \n\n```html\n<nano-grid m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" xxl-cols=\"10\" show-helper></nano-grid>\n```\n<nano-grid style=\"min-height: 200px\" m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" xxl-cols=\"10\" show-helper></nano-grid>\n\n## 2. Put items into the grid\n\nBy default items will fill one column.\n\n```html\n<nano-grid m-cols=\"2\" l-cols=\"4\" xl-cols=\"6\" show-helper>\n <div></div>\n <div></div>\n <div></div>\n</nano-grid>\n```\n\n## 3. Set items to span columns and rows and / or start on different columns and rows at different sizes\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"\n xl-col-span-2 \n xl-col-start-2 \n xl-row-span-2 \n l-col-span-4\n \"></div>\n <div grid-states=\"xl-col-start-1 xl-row-start-1\"></div>\n <div grid-states=\"xl-col-start-6\"></div>\n <div grid-states=\"l-col-span-2\"></div>\n</nano-grid>\n```\n\n### IE11 Notes\n\nIf you need to support IE11 there are some things to consider.\n\nThere is no native way for IE11 to wrap items to new rows automatically. In order to achive this, items have been statically assigned to their row and column.\n\nThis causes 2 side-effects:\n\n1. In-order to strike a balance between flexibility and not creating humongous CSS files; the maximum grid columns currently supported is *10* with a potential *20* items spread accross them. If you need more look at nesting grids.\n\n2. If you wish to use any item grid-state property (col-span, col-start, row-span or row start) you will then need to assign corresponding properies to ALL items within the grid. E.g.\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"l-col-span-2 l-col-start-2 l-row-span-2\">1</div>\n <div grid-states=\"l-col-start-1 l-row-start-1\">2</div>\n <div grid-states=\"l-col-start-6\">3</div>\n <div grid-states=\"l-col-span-2\">4</div>\n</nano-grid>\n```\n\n(Something that will work on modern browsers) Will need to become:\n\n```html\n<nano-grid l-cols=\"6\" show-helper>\n <div grid-states=\"l-col-span-2 l-col-start-2 l-row-span-2 l-row-start-1\">1</div>\n <div grid-states=\"l-col-start-1 l-row-start-1\">2</div>\n <div grid-states=\"l-col-start-6 l-row-start-1\">3</div>\n <div grid-states=\"l-col-start-4 l-col-span-2 l-row-start-2\">4</div>\n</nano-grid>\n```\n",
|
7642
|
-
"docs": "
|
7643
|
-
"docsTags": [
|
7644
|
-
"usage": {},
|
7645
|
-
"props": [
|
7723
|
+
"docs": "",
|
7724
|
+
"docsTags": [
|
7646
7725
|
{
|
7647
|
-
"name": "
|
7648
|
-
"
|
7649
|
-
"mutable": false,
|
7650
|
-
"attr": "grid-states",
|
7651
|
-
"reflectToAttr": false,
|
7652
|
-
"docs": "How to position this item within it's parent grid at different break points. Examples:\nxl-col-span-2\nl-col-start-2\nxxl-row-span-2\nm-row-start-2",
|
7653
|
-
"docsTags": [],
|
7654
|
-
"default": "''",
|
7655
|
-
"values": [
|
7656
|
-
{
|
7657
|
-
"type": "string"
|
7658
|
-
}
|
7659
|
-
],
|
7660
|
-
"optional": false,
|
7661
|
-
"required": false,
|
7662
|
-
"getter": false,
|
7663
|
-
"setter": false
|
7726
|
+
"name": "deprecated",
|
7727
|
+
"text": "- you can now use `grid-states=\"...\"`\non any direct `nano-grid` descendent without limitation rendering `nano-grid-item` obsolete.\n\nGrid items to be used with [grid](/story/nano-components-grid) elements"
|
7664
7728
|
}
|
7665
7729
|
],
|
7730
|
+
"usage": {},
|
7731
|
+
"props": [],
|
7666
7732
|
"methods": [],
|
7667
7733
|
"events": [],
|
7668
7734
|
"listeners": [],
|
7669
7735
|
"styles": [],
|
7670
7736
|
"slots": [],
|
7671
7737
|
"parts": [],
|
7672
|
-
"dependents": [
|
7673
|
-
"nano-hero"
|
7674
|
-
],
|
7738
|
+
"dependents": [],
|
7675
7739
|
"dependencies": [],
|
7676
|
-
"dependencyGraph": {
|
7677
|
-
|
7678
|
-
"nano-grid-item"
|
7679
|
-
]
|
7680
|
-
}
|
7740
|
+
"dependencyGraph": {},
|
7741
|
+
"deprecation": "- you can now use `grid-states=\"...\"`\non any direct `nano-grid` descendent without limitation rendering `nano-grid-item` obsolete.\n\nGrid items to be used with [grid](/story/nano-components-grid) elements"
|
7681
7742
|
},
|
7682
7743
|
{
|
7683
7744
|
"filePath": "./src/components/hero/hero.tsx",
|
@@ -7739,7 +7800,7 @@
|
|
7739
7800
|
"mutable": false,
|
7740
7801
|
"attr": "img-src",
|
7741
7802
|
"reflectToAttr": false,
|
7742
|
-
"docs": "src for
|
7803
|
+
"docs": "src for background image. For more control use the `background` slot instead.",
|
7743
7804
|
"docsTags": [],
|
7744
7805
|
"values": [
|
7745
7806
|
{
|
@@ -7938,13 +7999,11 @@
|
|
7938
7999
|
"dependents": [],
|
7939
8000
|
"dependencies": [
|
7940
8001
|
"nano-grid",
|
7941
|
-
"nano-grid-item",
|
7942
8002
|
"nano-img"
|
7943
8003
|
],
|
7944
8004
|
"dependencyGraph": {
|
7945
8005
|
"nano-hero": [
|
7946
8006
|
"nano-grid",
|
7947
|
-
"nano-grid-item",
|
7948
8007
|
"nano-img"
|
7949
8008
|
],
|
7950
8009
|
"nano-img": [
|
@@ -13966,7 +14025,7 @@
|
|
13966
14025
|
"text": "a function that attaches a keyboard accessible handle control element.\nThe function itself *must* return the handle element."
|
13967
14026
|
}
|
13968
14027
|
],
|
13969
|
-
"default": "(_number: number, _element: Element) => {\n const handleTpl = /* html */ `\n <nano-icon-button\n slot=\"end\"\n icon-name=\"light/arrows\"\n class=\"nano-sortable__keyboard-handle visually-hidden\"\n ></nano-icon-button>`;\n const div = globalThis.document.createElement('div');\n div.innerHTML = handleTpl;\n\n const handle = div.children[0] as HTMLElement;\n _element.append(handle);\n return handle;\n }",
|
14028
|
+
"default": "(_number: number, _element: Element) => {\n const handleTpl = /* html */ `\n <nano-icon-button\n slot=\"end\"\n icon-name=\"light/arrows\"\n class=\"nano-sortable__keyboard-handle visually-hidden\"\n label=\"Re-order this item\"\n ></nano-icon-button>`;\n const div = globalThis.document.createElement('div');\n div.innerHTML = handleTpl;\n\n const handle = div.children[0] as HTMLElement;\n _element.append(handle);\n return handle;\n }",
|
13970
14029
|
"values": [
|
13971
14030
|
{
|
13972
14031
|
"type": "(_number: number, _element: Element) => HTMLElement"
|
package/docs-vscode.json
CHANGED
@@ -1330,24 +1330,20 @@
|
|
1330
1330
|
"name": "nano-grid",
|
1331
1331
|
"description": {
|
1332
1332
|
"kind": "markdown",
|
1333
|
-
"value": "A context-aware CSS grid implementation.\
|
1333
|
+
"value": "A lightweight, context-aware CSS grid implementation.\n\n- Define multiple grids templates at different breakpoints\n- Uses `@container` queries to select the correct grid depending on the current dimensions\n- Use `grid-states=\"...\"` on direct descendants for `column` / `row` - `start` / `end`\n- SSR optimised"
|
1334
1334
|
},
|
1335
1335
|
"attributes": [
|
1336
|
-
{
|
1337
|
-
"name": "content-panel",
|
1338
|
-
"description": "shortcut for a traditional website like grid (requires more than one row). The second row will auto expand to fill the grid height. The first row and > 2nd row will be the size of their content. e.g. header, body and footer."
|
1339
|
-
},
|
1340
|
-
{
|
1341
|
-
"name": "full-height",
|
1342
|
-
"description": "Helper to make grid items expand to full height in IE11"
|
1343
|
-
},
|
1344
1336
|
{
|
1345
1337
|
"name": "l-cols",
|
1346
1338
|
"description": "the number of columns the grid has at the large breakpoint."
|
1347
1339
|
},
|
1348
1340
|
{
|
1349
1341
|
"name": "l-size",
|
1350
|
-
"description": "the component's large breakpoint. Note - all breakpoints are based on component width, not screen width."
|
1342
|
+
"description": "the component's large breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`"
|
1343
|
+
},
|
1344
|
+
{
|
1345
|
+
"name": "l-tpl",
|
1346
|
+
"description": "Optional large `grid-template`. *Note* - you must set `lCols` for this to take affect"
|
1351
1347
|
},
|
1352
1348
|
{
|
1353
1349
|
"name": "m-cols",
|
@@ -1355,7 +1351,11 @@
|
|
1355
1351
|
},
|
1356
1352
|
{
|
1357
1353
|
"name": "m-size",
|
1358
|
-
"description": "the component's medium breakpoint. Note - all breakpoints are based on component width, not screen width."
|
1354
|
+
"description": "the component's medium breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`"
|
1355
|
+
},
|
1356
|
+
{
|
1357
|
+
"name": "m-tpl",
|
1358
|
+
"description": "Optional medium `grid-template`. *Note* - you must set `mCols` for this to take affect"
|
1359
1359
|
},
|
1360
1360
|
{
|
1361
1361
|
"name": "s-cols",
|
@@ -1363,7 +1363,11 @@
|
|
1363
1363
|
},
|
1364
1364
|
{
|
1365
1365
|
"name": "s-size",
|
1366
|
-
"description": "the component's small breakpoint. Note - all breakpoints are based on component width, not screen width."
|
1366
|
+
"description": "the component's small breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`"
|
1367
|
+
},
|
1368
|
+
{
|
1369
|
+
"name": "s-tpl",
|
1370
|
+
"description": "Optional small `grid-template`. *Note* - you must set `sCols` for this to take affect"
|
1367
1371
|
},
|
1368
1372
|
{
|
1369
1373
|
"name": "show-helper",
|
@@ -1375,11 +1379,19 @@
|
|
1375
1379
|
},
|
1376
1380
|
{
|
1377
1381
|
"name": "xl-size",
|
1378
|
-
"description": "the component's xl breakpoint. Note - all breakpoints are based on component width, not screen width."
|
1382
|
+
"description": "the component's xl breakpoint. Note - all breakpoints are based on component width, not screen width.\nWill default to `px` if no unit supplied e.g. `20rem`"
|
1383
|
+
},
|
1384
|
+
{
|
1385
|
+
"name": "xl-tpl",
|
1386
|
+
"description": "Optional xl `grid-template`. *Note* - you must set `xlCols` for this to take affect"
|
1379
1387
|
},
|
1380
1388
|
{
|
1381
1389
|
"name": "xxl-cols",
|
1382
1390
|
"description": "the number of columns the grid has at the xxl breakpoint (anything greater than the xl breakpoint)"
|
1391
|
+
},
|
1392
|
+
{
|
1393
|
+
"name": "xxl-tpl",
|
1394
|
+
"description": "Optional xxl `grid-template`. *Note* - you must set `xxlCols` for this to take affect"
|
1383
1395
|
}
|
1384
1396
|
]
|
1385
1397
|
},
|
@@ -1387,14 +1399,9 @@
|
|
1387
1399
|
"name": "nano-grid-item",
|
1388
1400
|
"description": {
|
1389
1401
|
"kind": "markdown",
|
1390
|
-
"value": "
|
1402
|
+
"value": ""
|
1391
1403
|
},
|
1392
|
-
"attributes": [
|
1393
|
-
{
|
1394
|
-
"name": "grid-states",
|
1395
|
-
"description": "How to position this item within it's parent grid at different break points. Examples:\nxl-col-span-2\nl-col-start-2\nxxl-row-span-2\nm-row-start-2"
|
1396
|
-
}
|
1397
|
-
]
|
1404
|
+
"attributes": []
|
1398
1405
|
},
|
1399
1406
|
{
|
1400
1407
|
"name": "nano-hero",
|
@@ -1405,7 +1412,7 @@
|
|
1405
1412
|
"attributes": [
|
1406
1413
|
{
|
1407
1414
|
"name": "img-src",
|
1408
|
-
"description": "src for
|
1415
|
+
"description": "src for background image. For more control use the `background` slot instead."
|
1409
1416
|
},
|
1410
1417
|
{
|
1411
1418
|
"name": "img-src-set",
|