@nanoporetech-digital/components 2.10.1 → 2.13.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 +58 -0
- package/dist/cjs/{date-utils-0ae9a12d.js → date-utils-b3af910d.js} +2 -2
- package/dist/cjs/date-utils-b3af910d.js.map +1 -0
- package/dist/cjs/{global-0d4f3b77.js → global-989678ec.js} +1 -8
- package/dist/cjs/global-989678ec.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/nano-algolia.cjs.entry.js +5 -1
- package/dist/cjs/nano-algolia.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-components.cjs.js +2 -2
- package/dist/cjs/nano-datalist_3.cjs.entry.js +3 -1
- package/dist/cjs/nano-datalist_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-input.cjs.entry.js +16 -5
- package/dist/cjs/nano-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/nano-date-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-details.cjs.entry.js +1 -2
- package/dist/cjs/nano-details.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-field-validator.cjs.entry.js +292 -96
- package/dist/cjs/nano-field-validator.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-file-upload.cjs.entry.js +5 -2
- package/dist/cjs/nano-file-upload.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-global-search-results.cjs.entry.js +21 -6
- package/dist/cjs/nano-global-search-results.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-grid_3.cjs.entry.js +1 -2
- package/dist/cjs/nano-grid_3.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-icon-button.cjs.entry.js +4 -0
- package/dist/cjs/nano-icon-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-input.cjs.entry.js +16 -3
- package/dist/cjs/nano-input.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-nav-item_2.cjs.entry.js +2 -0
- package/dist/cjs/nano-nav-item_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js +1 -2
- package/dist/cjs/nano-resize-observe_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-slides.cjs.entry.js +1 -2
- package/dist/cjs/nano-slides.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-sticker.cjs.entry.js +2 -3
- package/dist/cjs/nano-sticker.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab-group.cjs.entry.js +4 -2
- package/dist/cjs/nano-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tab.cjs.entry.js +5 -1
- package/dist/cjs/nano-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/nano-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/nano-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/algolia/algolia-filter.js +2 -2
- package/dist/collection/components/algolia/algolia-input.js +5 -5
- package/dist/collection/components/algolia/algolia-results.js +1 -1
- package/dist/collection/components/algolia/algolia.js +12 -6
- package/dist/collection/components/algolia/algolia.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox-group.js +2 -2
- package/dist/collection/components/checkbox/checkbox.js +3 -3
- package/dist/collection/components/datalist/datalist.js +4 -2
- package/dist/collection/components/datalist/datalist.js.map +1 -1
- package/dist/collection/components/date-input/date-input.js +65 -11
- package/dist/collection/components/date-input/date-input.js.map +1 -1
- package/dist/collection/components/date-picker/date-picker.css +1 -1
- package/dist/collection/components/date-picker/date-picker.js +5 -5
- package/dist/collection/components/details/details.js +1 -2
- package/dist/collection/components/details/details.js.map +1 -1
- package/dist/collection/components/dialog/dialog.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/field-validator/field-validator-interface.js +5 -0
- package/dist/collection/components/field-validator/field-validator-interface.js.map +1 -0
- package/dist/collection/components/field-validator/field-validator.js +434 -113
- package/dist/collection/components/field-validator/field-validator.js.map +1 -1
- package/dist/collection/components/file-upload/file-upload.css +0 -1
- package/dist/collection/components/file-upload/file-upload.js +10 -7
- package/dist/collection/components/file-upload/file-upload.js.map +1 -1
- package/dist/collection/components/global-nav/global-nav.js +4 -4
- package/dist/collection/components/global-search-results/global-search-results.css +7 -0
- package/dist/collection/components/global-search-results/global-search-results.js +19 -4
- package/dist/collection/components/global-search-results/global-search-results.js.map +1 -1
- package/dist/collection/components/grid/grid-item.js +1 -1
- package/dist/collection/components/grid/grid.js +0 -1
- package/dist/collection/components/grid/grid.js.map +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon-button/icon-button.js +23 -1
- package/dist/collection/components/icon-button/icon-button.js.map +1 -1
- package/dist/collection/components/input/input.js +37 -8
- package/dist/collection/components/input/input.js.map +1 -1
- package/dist/collection/components/nav-item/nav-item.js +4 -4
- package/dist/collection/components/range/range.js +4 -4
- package/dist/collection/components/resize-observe/resize-observe.js +1 -2
- package/dist/collection/components/resize-observe/resize-observe.js.map +1 -1
- package/dist/collection/components/select/select.js +9 -7
- package/dist/collection/components/select/select.js.map +1 -1
- package/dist/collection/components/slides/slides.js +7 -8
- package/dist/collection/components/slides/slides.js.map +1 -1
- package/dist/collection/components/sticker/sticker.js +0 -1
- package/dist/collection/components/sticker/sticker.js.map +1 -1
- package/dist/collection/components/tabs/tab-group.js +5 -3
- package/dist/collection/components/tabs/tab-group.js.map +1 -1
- package/dist/collection/components/tabs/tab.js +5 -1
- package/dist/collection/components/tabs/tab.js.map +1 -1
- package/dist/collection/components/tooltip/tooltip.css +0 -1
- package/dist/collection/global/script/global.js +0 -7
- package/dist/collection/global/script/global.js.map +1 -1
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/date-utils.js +1 -1
- package/dist/collection/utils/date-utils.js.map +1 -1
- package/dist/components/algolia.js +5 -1
- package/dist/components/algolia.js.map +1 -1
- package/dist/components/datalist.js +3 -1
- package/dist/components/datalist.js.map +1 -1
- package/dist/components/date-picker.js +2 -2
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/grid.js +1 -2
- package/dist/components/grid.js.map +1 -1
- package/dist/components/icon-button.js +6 -1
- package/dist/components/icon-button.js.map +1 -1
- package/dist/components/index.js +1 -7
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.js +17 -3
- package/dist/components/input.js.map +1 -1
- package/dist/components/nano-date-input.js +17 -4
- package/dist/components/nano-date-input.js.map +1 -1
- package/dist/components/nano-details.js +1 -2
- package/dist/components/nano-details.js.map +1 -1
- package/dist/components/nano-field-validator.js +300 -99
- package/dist/components/nano-field-validator.js.map +1 -1
- package/dist/components/nano-file-upload.js +6 -3
- package/dist/components/nano-file-upload.js.map +1 -1
- package/dist/components/nano-global-search-results.js +21 -6
- package/dist/components/nano-global-search-results.js.map +1 -1
- package/dist/components/nano-slides.js +1 -2
- package/dist/components/nano-slides.js.map +1 -1
- package/dist/components/nano-tab-group.js +4 -2
- package/dist/components/nano-tab-group.js.map +1 -1
- package/dist/components/nano-tab.js +5 -1
- package/dist/components/nano-tab.js.map +1 -1
- package/dist/components/resize-observe.js +1 -2
- package/dist/components/resize-observe.js.map +1 -1
- package/dist/components/select.js +2 -0
- package/dist/components/select.js.map +1 -1
- package/dist/components/sticker.js +2 -3
- package/dist/components/sticker.js.map +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/tooltip.js.map +1 -1
- package/dist/custom-elements/index.js +386 -2046
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/{date-utils-e4b757ff.js → date-utils-839cb010.js} +2 -2
- package/dist/esm/date-utils-839cb010.js.map +1 -0
- package/dist/esm/{global-d5ec4d53.js → global-8047b4ff.js} +1 -8
- package/dist/esm/global-8047b4ff.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/nano-algolia.entry.js +5 -1
- package/dist/esm/nano-algolia.entry.js.map +1 -1
- package/dist/esm/nano-components.js +2 -2
- package/dist/esm/nano-datalist_3.entry.js +3 -1
- package/dist/esm/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm/nano-date-input.entry.js +16 -5
- package/dist/esm/nano-date-input.entry.js.map +1 -1
- package/dist/esm/nano-date-picker.entry.js +2 -2
- package/dist/esm/nano-date-picker.entry.js.map +1 -1
- package/dist/esm/nano-details.entry.js +1 -2
- package/dist/esm/nano-details.entry.js.map +1 -1
- package/dist/esm/nano-field-validator.entry.js +292 -96
- package/dist/esm/nano-field-validator.entry.js.map +1 -1
- package/dist/esm/nano-file-upload.entry.js +5 -2
- package/dist/esm/nano-file-upload.entry.js.map +1 -1
- package/dist/esm/nano-global-search-results.entry.js +21 -6
- package/dist/esm/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm/nano-grid_3.entry.js +1 -2
- package/dist/esm/nano-grid_3.entry.js.map +1 -1
- package/dist/esm/nano-icon-button.entry.js +4 -0
- package/dist/esm/nano-icon-button.entry.js.map +1 -1
- package/dist/esm/nano-input.entry.js +16 -3
- package/dist/esm/nano-input.entry.js.map +1 -1
- package/dist/esm/nano-nav-item_2.entry.js +2 -0
- package/dist/esm/nano-nav-item_2.entry.js.map +1 -1
- package/dist/esm/nano-resize-observe_2.entry.js +1 -2
- package/dist/esm/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/esm/nano-slides.entry.js +1 -2
- package/dist/esm/nano-slides.entry.js.map +1 -1
- package/dist/esm/nano-sticker.entry.js +2 -3
- package/dist/esm/nano-sticker.entry.js.map +1 -1
- package/dist/esm/nano-tab-group.entry.js +4 -2
- package/dist/esm/nano-tab-group.entry.js.map +1 -1
- package/dist/esm/nano-tab.entry.js +5 -1
- package/dist/esm/nano-tab.entry.js.map +1 -1
- package/dist/esm/nano-tooltip.entry.js +1 -1
- package/dist/esm/nano-tooltip.entry.js.map +1 -1
- package/dist/esm-es5/date-utils-839cb010.js +5 -0
- package/dist/esm-es5/date-utils-839cb010.js.map +1 -0
- package/dist/esm-es5/{global-d5ec4d53.js → global-8047b4ff.js} +2 -2
- package/dist/esm-es5/global-8047b4ff.js.map +1 -0
- package/dist/esm-es5/index.js +2 -2
- package/dist/esm-es5/index.js.map +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/nano-algolia.entry.js +1 -1
- package/dist/esm-es5/nano-algolia.entry.js.map +1 -1
- package/dist/esm-es5/nano-components.js +1 -1
- package/dist/esm-es5/nano-components.js.map +1 -1
- package/dist/esm-es5/nano-datalist_3.entry.js +1 -1
- package/dist/esm-es5/nano-datalist_3.entry.js.map +1 -1
- package/dist/esm-es5/nano-date-input.entry.js +1 -1
- package/dist/esm-es5/nano-date-input.entry.js.map +1 -1
- package/dist/esm-es5/nano-date-picker.entry.js +1 -1
- package/dist/esm-es5/nano-date-picker.entry.js.map +1 -1
- package/dist/esm-es5/nano-details.entry.js +1 -1
- package/dist/esm-es5/nano-details.entry.js.map +1 -1
- package/dist/esm-es5/nano-field-validator.entry.js +2 -2
- package/dist/esm-es5/nano-field-validator.entry.js.map +1 -1
- package/dist/esm-es5/nano-file-upload.entry.js +1 -1
- package/dist/esm-es5/nano-file-upload.entry.js.map +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js +1 -1
- package/dist/esm-es5/nano-global-search-results.entry.js.map +1 -1
- package/dist/esm-es5/nano-grid_3.entry.js +1 -1
- package/dist/esm-es5/nano-grid_3.entry.js.map +1 -1
- package/dist/esm-es5/nano-icon-button.entry.js +2 -2
- package/dist/esm-es5/nano-icon-button.entry.js.map +1 -1
- package/dist/esm-es5/nano-input.entry.js +1 -1
- package/dist/esm-es5/nano-input.entry.js.map +1 -1
- package/dist/esm-es5/nano-nav-item_2.entry.js +1 -1
- package/dist/esm-es5/nano-nav-item_2.entry.js.map +1 -1
- package/dist/esm-es5/nano-resize-observe_2.entry.js +1 -1
- package/dist/esm-es5/nano-resize-observe_2.entry.js.map +1 -1
- package/dist/esm-es5/nano-slides.entry.js +2 -2
- package/dist/esm-es5/nano-slides.entry.js.map +1 -1
- package/dist/esm-es5/nano-sticker.entry.js +1 -1
- package/dist/esm-es5/nano-sticker.entry.js.map +1 -1
- package/dist/esm-es5/nano-tab-group.entry.js +2 -2
- package/dist/esm-es5/nano-tab-group.entry.js.map +1 -1
- package/dist/esm-es5/nano-tab.entry.js +2 -2
- package/dist/esm-es5/nano-tab.entry.js.map +1 -1
- package/dist/esm-es5/nano-tooltip.entry.js +1 -1
- package/dist/esm-es5/nano-tooltip.entry.js.map +1 -1
- package/dist/nano-components/index.esm.js +1 -1
- package/dist/nano-components/index.esm.js.map +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/nano-components.js +1 -1
- package/dist/nano-components/p-018b7047.entry.js +5 -0
- package/dist/nano-components/p-018b7047.entry.js.map +1 -0
- package/dist/nano-components/p-0193a282.entry.js +5 -0
- package/dist/nano-components/p-0193a282.entry.js.map +1 -0
- package/dist/nano-components/p-0320410c.entry.js +5 -0
- package/dist/nano-components/p-0320410c.entry.js.map +1 -0
- package/dist/nano-components/p-0d699368.system.js +5 -0
- package/dist/nano-components/{p-3258c568.system.js.map → p-0d699368.system.js.map} +1 -1
- package/dist/nano-components/p-18863670.system.entry.js +5 -0
- package/dist/nano-components/p-18863670.system.entry.js.map +1 -0
- package/dist/nano-components/p-32900c91.entry.js +5 -0
- package/dist/nano-components/p-32900c91.entry.js.map +1 -0
- package/dist/nano-components/p-33fce1a6.js +5 -0
- package/dist/nano-components/p-33fce1a6.js.map +1 -0
- package/dist/nano-components/p-371aebe7.system.entry.js +23 -0
- package/dist/nano-components/p-371aebe7.system.entry.js.map +1 -0
- package/dist/nano-components/p-41899a31.system.entry.js +5 -0
- package/dist/nano-components/p-41899a31.system.entry.js.map +1 -0
- package/dist/nano-components/p-53957ec6.system.js +5 -0
- package/dist/nano-components/{p-e7140887.system.js.map → p-53957ec6.system.js.map} +1 -1
- package/dist/nano-components/p-561500f0.system.entry.js +5 -0
- package/dist/nano-components/p-561500f0.system.entry.js.map +1 -0
- package/dist/nano-components/p-596c1711.system.entry.js +5 -0
- package/dist/nano-components/p-596c1711.system.entry.js.map +1 -0
- package/dist/nano-components/{p-01667573.entry.js → p-634a58f7.entry.js} +2 -2
- package/dist/nano-components/p-634a58f7.entry.js.map +1 -0
- package/dist/nano-components/p-6a949280.system.entry.js +5 -0
- package/dist/nano-components/p-6a949280.system.entry.js.map +1 -0
- package/dist/nano-components/{p-bf9aa89d.system.entry.js → p-6af10533.system.entry.js} +3 -3
- package/dist/nano-components/p-6af10533.system.entry.js.map +1 -0
- package/dist/nano-components/p-70272eae.js +5 -0
- package/dist/nano-components/p-70272eae.js.map +1 -0
- package/dist/nano-components/p-755d9227.entry.js +5 -0
- package/dist/nano-components/p-755d9227.entry.js.map +1 -0
- package/dist/nano-components/p-7bd25494.entry.js +5 -0
- package/dist/nano-components/p-7bd25494.entry.js.map +1 -0
- package/dist/nano-components/p-7c837460.entry.js +5 -0
- package/dist/nano-components/p-7c837460.entry.js.map +1 -0
- package/dist/nano-components/p-7f051c20.entry.js +5 -0
- package/dist/nano-components/p-7f051c20.entry.js.map +1 -0
- package/dist/nano-components/{p-93880c28.system.js → p-82e28afd.system.js} +2 -2
- package/dist/nano-components/p-82e28afd.system.js.map +1 -0
- package/dist/nano-components/p-8378428e.system.js +5 -0
- package/dist/nano-components/p-8378428e.system.js.map +1 -0
- package/dist/nano-components/p-8df4f125.system.entry.js +5 -0
- package/dist/nano-components/p-8df4f125.system.entry.js.map +1 -0
- package/dist/nano-components/{p-d0385948.system.entry.js → p-93596c3d.system.entry.js} +2 -2
- package/dist/nano-components/p-93596c3d.system.entry.js.map +1 -0
- package/dist/nano-components/{p-3e930ac7.entry.js → p-9d9b0b66.entry.js} +2 -2
- package/dist/nano-components/p-9d9b0b66.entry.js.map +1 -0
- package/dist/nano-components/p-9ffdf6cc.entry.js +5 -0
- package/dist/nano-components/{p-222d8095.entry.js.map → p-9ffdf6cc.entry.js.map} +1 -1
- package/dist/nano-components/p-a07cf44c.system.entry.js +5 -0
- package/dist/nano-components/p-a07cf44c.system.entry.js.map +1 -0
- package/dist/nano-components/p-a1444980.entry.js +5 -0
- package/dist/nano-components/p-a1444980.entry.js.map +1 -0
- package/dist/nano-components/p-aa84c727.system.entry.js +5 -0
- package/dist/nano-components/p-aa84c727.system.entry.js.map +1 -0
- package/dist/nano-components/p-ac5e3775.system.entry.js +5 -0
- package/dist/nano-components/p-ac5e3775.system.entry.js.map +1 -0
- package/dist/nano-components/p-b85cf493.system.entry.js +5 -0
- package/dist/nano-components/{p-e817ab4a.system.entry.js.map → p-b85cf493.system.entry.js.map} +1 -1
- package/dist/nano-components/{p-96d9b8b9.system.entry.js → p-c2bbf0fb.system.entry.js} +2 -2
- package/dist/nano-components/p-c2bbf0fb.system.entry.js.map +1 -0
- package/dist/nano-components/{p-f780d2f6.system.entry.js → p-cb512cff.system.entry.js} +2 -2
- package/dist/nano-components/p-cb512cff.system.entry.js.map +1 -0
- package/dist/nano-components/{p-4e2c0abb.entry.js → p-ccd6c206.entry.js} +2 -2
- package/dist/nano-components/p-ccd6c206.entry.js.map +1 -0
- package/dist/nano-components/{p-1030797a.entry.js → p-d37e1489.entry.js} +2 -2
- package/dist/nano-components/p-d37e1489.entry.js.map +1 -0
- package/dist/nano-components/p-da88981f.entry.js +23 -0
- package/dist/nano-components/p-da88981f.entry.js.map +1 -0
- package/dist/nano-components/p-e8a913ac.system.entry.js +5 -0
- package/dist/nano-components/p-e8a913ac.system.entry.js.map +1 -0
- package/dist/nano-components/p-e9fddc1a.entry.js +5 -0
- package/dist/nano-components/p-e9fddc1a.entry.js.map +1 -0
- package/dist/nano-components/p-ea54ee12.entry.js +5 -0
- package/dist/nano-components/p-ea54ee12.entry.js.map +1 -0
- package/dist/nano-components/{p-86bd5194.entry.js → p-ed0bdea9.entry.js} +2 -2
- package/dist/nano-components/p-ed0bdea9.entry.js.map +1 -0
- package/dist/nano-components/p-faba2fc1.system.entry.js +5 -0
- package/dist/nano-components/p-faba2fc1.system.entry.js.map +1 -0
- package/dist/nano-components/p-ff026352.system.entry.js +5 -0
- package/dist/nano-components/p-ff026352.system.entry.js.map +1 -0
- package/dist/themes/nanopore.css +1 -1
- package/dist/themes/nanopore.css.map +1 -1
- package/dist/types/components/algolia/algolia.d.ts +1 -0
- package/dist/types/components/date-input/date-input.d.ts +6 -1
- package/dist/types/components/field-validator/field-validator-interface.d.ts +19 -0
- package/dist/types/components/field-validator/field-validator.d.ts +77 -31
- package/dist/types/components/file-upload/file-upload.d.ts +2 -1
- package/dist/types/components/global-search-results/global-search-results.d.ts +1 -0
- package/dist/types/components/icon-button/icon-button.d.ts +2 -0
- package/dist/types/components/input/input.d.ts +6 -1
- package/dist/types/components/tabs/tab.d.ts +1 -0
- package/dist/types/components.d.ts +67 -12
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interface.d.ts +1 -0
- package/docs-json.json +161 -13
- package/docs-vscode.json +6 -2
- package/package.json +2 -4
- package/dist/cjs/ResizeObserver.es-09b81a1b.js +0 -935
- package/dist/cjs/ResizeObserver.es-09b81a1b.js.map +0 -1
- package/dist/cjs/date-utils-0ae9a12d.js.map +0 -1
- package/dist/cjs/global-0d4f3b77.js.map +0 -1
- package/dist/cjs/intersection-observer-1822c787.js +0 -987
- package/dist/cjs/intersection-observer-1822c787.js.map +0 -1
- package/dist/components/ResizeObserver.es.js +0 -933
- package/dist/components/ResizeObserver.es.js.map +0 -1
- package/dist/components/intersection-observer.js +0 -985
- package/dist/components/intersection-observer.js.map +0 -1
- package/dist/esm/ResizeObserver.es-724af9fd.js +0 -933
- package/dist/esm/ResizeObserver.es-724af9fd.js.map +0 -1
- package/dist/esm/date-utils-e4b757ff.js.map +0 -1
- package/dist/esm/global-d5ec4d53.js.map +0 -1
- package/dist/esm/intersection-observer-dff9fb5b.js +0 -985
- package/dist/esm/intersection-observer-dff9fb5b.js.map +0 -1
- package/dist/esm-es5/ResizeObserver.es-724af9fd.js +0 -5
- package/dist/esm-es5/ResizeObserver.es-724af9fd.js.map +0 -1
- package/dist/esm-es5/date-utils-e4b757ff.js +0 -5
- package/dist/esm-es5/date-utils-e4b757ff.js.map +0 -1
- package/dist/esm-es5/global-d5ec4d53.js.map +0 -1
- package/dist/esm-es5/intersection-observer-dff9fb5b.js +0 -5
- package/dist/esm-es5/intersection-observer-dff9fb5b.js.map +0 -1
- package/dist/nano-components/p-00eaa36a.entry.js +0 -5
- package/dist/nano-components/p-00eaa36a.entry.js.map +0 -1
- package/dist/nano-components/p-01667573.entry.js.map +0 -1
- package/dist/nano-components/p-1030797a.entry.js.map +0 -1
- package/dist/nano-components/p-11a2dcce.js +0 -5
- package/dist/nano-components/p-11a2dcce.js.map +0 -1
- package/dist/nano-components/p-1a30dfdd.system.entry.js +0 -5
- package/dist/nano-components/p-1a30dfdd.system.entry.js.map +0 -1
- package/dist/nano-components/p-1b120f53.entry.js +0 -5
- package/dist/nano-components/p-1b120f53.entry.js.map +0 -1
- package/dist/nano-components/p-21d6d31e.system.entry.js +0 -5
- package/dist/nano-components/p-21d6d31e.system.entry.js.map +0 -1
- package/dist/nano-components/p-222d8095.entry.js +0 -5
- package/dist/nano-components/p-241d90eb.system.entry.js +0 -5
- package/dist/nano-components/p-241d90eb.system.entry.js.map +0 -1
- package/dist/nano-components/p-2c8d7273.entry.js +0 -5
- package/dist/nano-components/p-2c8d7273.entry.js.map +0 -1
- package/dist/nano-components/p-3093915f.entry.js +0 -5
- package/dist/nano-components/p-3093915f.entry.js.map +0 -1
- package/dist/nano-components/p-3258c568.system.js +0 -5
- package/dist/nano-components/p-325c1cad.entry.js +0 -5
- package/dist/nano-components/p-325c1cad.entry.js.map +0 -1
- package/dist/nano-components/p-32f396c0.system.entry.js +0 -5
- package/dist/nano-components/p-32f396c0.system.entry.js.map +0 -1
- package/dist/nano-components/p-35108e08.entry.js +0 -5
- package/dist/nano-components/p-35108e08.entry.js.map +0 -1
- package/dist/nano-components/p-3ccb176c.system.entry.js +0 -5
- package/dist/nano-components/p-3ccb176c.system.entry.js.map +0 -1
- package/dist/nano-components/p-3e930ac7.entry.js.map +0 -1
- package/dist/nano-components/p-42cebbfe.system.entry.js +0 -5
- package/dist/nano-components/p-42cebbfe.system.entry.js.map +0 -1
- package/dist/nano-components/p-4e2c0abb.entry.js.map +0 -1
- package/dist/nano-components/p-5d17cfbb.system.entry.js +0 -23
- package/dist/nano-components/p-5d17cfbb.system.entry.js.map +0 -1
- package/dist/nano-components/p-5d5ea4ab.system.entry.js +0 -5
- package/dist/nano-components/p-5d5ea4ab.system.entry.js.map +0 -1
- package/dist/nano-components/p-6722447c.entry.js +0 -5
- package/dist/nano-components/p-6722447c.entry.js.map +0 -1
- package/dist/nano-components/p-6d138abf.entry.js +0 -5
- package/dist/nano-components/p-6d138abf.entry.js.map +0 -1
- package/dist/nano-components/p-76d9d1d4.entry.js +0 -5
- package/dist/nano-components/p-76d9d1d4.entry.js.map +0 -1
- package/dist/nano-components/p-866f083f.system.entry.js +0 -5
- package/dist/nano-components/p-866f083f.system.entry.js.map +0 -1
- package/dist/nano-components/p-86bd5194.entry.js.map +0 -1
- package/dist/nano-components/p-88779174.system.entry.js +0 -5
- package/dist/nano-components/p-88779174.system.entry.js.map +0 -1
- package/dist/nano-components/p-93880c28.system.js.map +0 -1
- package/dist/nano-components/p-96d9b8b9.system.entry.js.map +0 -1
- package/dist/nano-components/p-97b13ad2.entry.js +0 -5
- package/dist/nano-components/p-97b13ad2.entry.js.map +0 -1
- package/dist/nano-components/p-b430a9b6.system.js +0 -5
- package/dist/nano-components/p-b430a9b6.system.js.map +0 -1
- package/dist/nano-components/p-bc394857.system.entry.js +0 -5
- package/dist/nano-components/p-bc394857.system.entry.js.map +0 -1
- package/dist/nano-components/p-bf9aa89d.system.entry.js.map +0 -1
- package/dist/nano-components/p-c3830c43.entry.js +0 -5
- package/dist/nano-components/p-c3830c43.entry.js.map +0 -1
- package/dist/nano-components/p-d0385948.system.entry.js.map +0 -1
- package/dist/nano-components/p-debd9efc.js +0 -5
- package/dist/nano-components/p-debd9efc.js.map +0 -1
- package/dist/nano-components/p-e195ab77.system.js +0 -5
- package/dist/nano-components/p-e195ab77.system.js.map +0 -1
- package/dist/nano-components/p-e7140887.system.js +0 -5
- package/dist/nano-components/p-e817ab4a.system.entry.js +0 -5
- package/dist/nano-components/p-f5d4d13b.system.js +0 -5
- package/dist/nano-components/p-f5d4d13b.system.js.map +0 -1
- package/dist/nano-components/p-f66958c1.js +0 -5
- package/dist/nano-components/p-f66958c1.js.map +0 -1
- package/dist/nano-components/p-f710c763.system.entry.js +0 -5
- package/dist/nano-components/p-f710c763.system.entry.js.map +0 -1
- package/dist/nano-components/p-f780d2f6.system.entry.js.map +0 -1
- package/dist/nano-components/p-f9c7d961.js +0 -5
- package/dist/nano-components/p-f9c7d961.js.map +0 -1
- package/dist/nano-components/p-ffc2063a.entry.js +0 -23
- package/dist/nano-components/p-ffc2063a.entry.js.map +0 -1
- package/dist/nano-components/p-fff27907.system.entry.js +0 -5
- package/dist/nano-components/p-fff27907.system.entry.js.map +0 -1
@@ -5,7 +5,7 @@
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
6
6
|
*/
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
8
|
-
import { AlgoliaNetworkError, AloliaSearchResultDetail, CheckboxChangeEventDetail, Color, ControlValidity, ControlValidityEventDetail, DateDisabledPredicate, DateInputChangeEventDetail, DragEvent, DuetLocalizedText, FileInputChangeEventDetail, FileWithUrl, FilterChangeEventDetail, Flickity, FlickityOptions, GridSizes, IndexResult, InputChangeEventDetail, LocalDateOpts, NavItemEventDetail, OptionInterface, PageChangeEventDetail, PickerChangeEvent, RangeChangeEventDetail, RangeValue, ResizeStateChangeEventDetail, SearchIndex, SelectChangeEventDetail, SlideAnimation, StyleEventDetail, TextFieldTypes } from "./interface.d";
|
8
|
+
import { AlgoliaNetworkError, AloliaSearchResultDetail, CheckboxChangeEventDetail, Color, ControlValidity, ControlValidityEventDetail, DateDisabledPredicate, DateInputChangeEventDetail, DragEvent, DuetLocalizedText, FileInputChangeEventDetail, FileWithUrl, FilterChangeEventDetail, Flickity, FlickityOptions, GridSizes, IndexResult, InputChangeEventDetail, LocalDateOpts, NanoFormEles, NavItemEventDetail, OptionInterface, PageChangeEventDetail, PickerChangeEvent, PlainFormEles, RangeChangeEventDetail, RangeValue, ResizeStateChangeEventDetail, SearchIndex, SelectChangeEventDetail, SlideAnimation, StyleEventDetail, TextFieldTypes, ValidationState, ValidatorValueStore } from "./interface.d";
|
9
9
|
import { StorageMethods } from "./utils/store/component-store";
|
10
10
|
import { DaysOfWeek } from "./utils/date-utils";
|
11
11
|
import { PopoverPlacement } from "./utils/popover";
|
@@ -414,6 +414,10 @@ export namespace Components {
|
|
414
414
|
* The order of the date parts for entry and display. e.g. dmy = dd mm yyyy
|
415
415
|
*/
|
416
416
|
"dateOrder": 'dmy' | 'mdy' | 'ymd' | 'dym';
|
417
|
+
/**
|
418
|
+
* @readonly get the value as a `Date`
|
419
|
+
*/
|
420
|
+
"dateValue": Date;
|
417
421
|
/**
|
418
422
|
* If `true`, the user cannot interact with the input.
|
419
423
|
*/
|
@@ -458,6 +462,10 @@ export namespace Components {
|
|
458
462
|
* This will be true when the control is in an invalid state. Validity is determined by the `required` prop. Or if custom validity message is set. @readonly
|
459
463
|
*/
|
460
464
|
"invalid": boolean;
|
465
|
+
/**
|
466
|
+
* Controls which days are disabled and therefore disallowed. For example, this can be used to disallow selection of weekends.
|
467
|
+
*/
|
468
|
+
"isDateDisabled": DateDisabledPredicate;
|
461
469
|
/**
|
462
470
|
* String to place within a label element. Alternatively you may use a label slot.
|
463
471
|
*/
|
@@ -736,17 +744,40 @@ export namespace Components {
|
|
736
744
|
*/
|
737
745
|
"dirty": boolean;
|
738
746
|
/**
|
739
|
-
*
|
747
|
+
* By default, `nano-field-validator` will also track all native form field elements. You can add extra web-component form fields to listen to (as long as they match the standard form field spec) by using the `fieldSelector` prop.
|
748
|
+
*/
|
749
|
+
"extraFieldSelector": string;
|
750
|
+
/**
|
751
|
+
* The current form payload as a reactive proxy. @readonly
|
740
752
|
*/
|
741
|
-
"payload":
|
753
|
+
"payload": ValidatorValueStore;
|
754
|
+
/**
|
755
|
+
* Clear all custom validation.
|
756
|
+
* @param validity
|
757
|
+
*/
|
758
|
+
"resetValidity": () => Promise<void[]>;
|
742
759
|
/**
|
743
760
|
* Tries to scroll to the first invalid field on submit
|
744
761
|
*/
|
745
762
|
"scrollToInvalid": boolean;
|
746
763
|
/**
|
747
|
-
*
|
764
|
+
* Sets custom validity for all / some form fields.
|
765
|
+
* @param validity - a validity object of `{fieldName: errorString}` pairs. Set as an empty string to clear the error.
|
766
|
+
*/
|
767
|
+
"setCustomValidity": (validity: { [key: string]: string; }) => Promise<void[]>;
|
768
|
+
/**
|
769
|
+
* Sets the state of the form using an object of key / value pairs.
|
770
|
+
* @param state - the state to load in the store
|
771
|
+
*/
|
772
|
+
"setStore": (state: ValidatorValueStore) => Promise<void>;
|
773
|
+
/**
|
774
|
+
* Returns true if validation errors will be displayed to the user. @readonly
|
748
775
|
*/
|
749
776
|
"showValidation": boolean;
|
777
|
+
/**
|
778
|
+
* The current form state as a stencil store.
|
779
|
+
*/
|
780
|
+
"store": ObservableMap<ValidatorValueStore>;
|
750
781
|
/**
|
751
782
|
* Returns true if all the nested fields are currently valid @readonly
|
752
783
|
*/
|
@@ -765,7 +796,7 @@ export namespace Components {
|
|
765
796
|
"validation": (
|
766
797
|
field: string,
|
767
798
|
value: string,
|
768
|
-
fields:
|
799
|
+
fields: ValidatorValueStore
|
769
800
|
) => { [key: string]: { msg: string; valid?: boolean } };
|
770
801
|
/**
|
771
802
|
* Get the current validation state of all form fields. @readonly ``` { fields: NanoFormEles[]; valid: boolean; validityMessage: string; dirty: boolean; name: string | number; value: any; }[] ```
|
@@ -790,7 +821,7 @@ export namespace Components {
|
|
790
821
|
*/
|
791
822
|
"disabled": boolean;
|
792
823
|
/**
|
793
|
-
* A File array that lists every selected file. Has an added `objectURL` property returning a `DOMString` containing an object URL that can be used to reference the contents of the specified source This list has no more than one member unless the multiple attribute is specified
|
824
|
+
* A File array that lists every selected file. Has an added `objectURL` property returning a `DOMString` containing an object URL that can be used to reference the contents of the specified source This list has no more than one member unless the multiple attribute is specified
|
794
825
|
*/
|
795
826
|
"files": FileWithUrl[];
|
796
827
|
/**
|
@@ -1100,6 +1131,10 @@ export namespace Components {
|
|
1100
1131
|
* The name of the button, submitted as a pair with the button’s value as part of the form data.
|
1101
1132
|
*/
|
1102
1133
|
"name"?: string;
|
1134
|
+
/**
|
1135
|
+
* Sets focus on the internal button
|
1136
|
+
*/
|
1137
|
+
"setFocus": () => Promise<void>;
|
1103
1138
|
/**
|
1104
1139
|
* Specifies where to display the linked URL. Only applies when an `href` is provided. Special keywords: `"_blank"`, `"_self"`, `"_parent"`, `"_top"`.
|
1105
1140
|
*/
|
@@ -1269,6 +1304,10 @@ export namespace Components {
|
|
1269
1304
|
* relevant to type="textarea". Default number of rows to show
|
1270
1305
|
*/
|
1271
1306
|
"rows": number;
|
1307
|
+
/**
|
1308
|
+
* Sets focus and select the text on the specified `nano-input`. Use this method instead of the global `input.select()`.
|
1309
|
+
*/
|
1310
|
+
"select": () => Promise<void>;
|
1272
1311
|
/**
|
1273
1312
|
* Sets focus on the specified `nano-input`. Use this method instead of the global `input.focus()`.
|
1274
1313
|
*/
|
@@ -2734,6 +2773,10 @@ declare namespace LocalJSX {
|
|
2734
2773
|
* The order of the date parts for entry and display. e.g. dmy = dd mm yyyy
|
2735
2774
|
*/
|
2736
2775
|
"dateOrder"?: 'dmy' | 'mdy' | 'ymd' | 'dym';
|
2776
|
+
/**
|
2777
|
+
* @readonly get the value as a `Date`
|
2778
|
+
*/
|
2779
|
+
"dateValue"?: Date;
|
2737
2780
|
/**
|
2738
2781
|
* If `true`, the user cannot interact with the input.
|
2739
2782
|
*/
|
@@ -2774,6 +2817,10 @@ declare namespace LocalJSX {
|
|
2774
2817
|
* This will be true when the control is in an invalid state. Validity is determined by the `required` prop. Or if custom validity message is set. @readonly
|
2775
2818
|
*/
|
2776
2819
|
"invalid"?: boolean;
|
2820
|
+
/**
|
2821
|
+
* Controls which days are disabled and therefore disallowed. For example, this can be used to disallow selection of weekends.
|
2822
|
+
*/
|
2823
|
+
"isDateDisabled"?: DateDisabledPredicate;
|
2777
2824
|
/**
|
2778
2825
|
* String to place within a label element. Alternatively you may use a label slot.
|
2779
2826
|
*/
|
@@ -3087,6 +3134,10 @@ declare namespace LocalJSX {
|
|
3087
3134
|
* Returns true if any nested fields have been changed @readonly
|
3088
3135
|
*/
|
3089
3136
|
"dirty"?: boolean;
|
3137
|
+
/**
|
3138
|
+
* By default, `nano-field-validator` will also track all native form field elements. You can add extra web-component form fields to listen to (as long as they match the standard form field spec) by using the `fieldSelector` prop.
|
3139
|
+
*/
|
3140
|
+
"extraFieldSelector"?: string;
|
3090
3141
|
/**
|
3091
3142
|
* Fire on invalid form submission attempt
|
3092
3143
|
*/
|
@@ -3094,23 +3145,27 @@ declare namespace LocalJSX {
|
|
3094
3145
|
/**
|
3095
3146
|
* Fired whenever the payload changes
|
3096
3147
|
*/
|
3097
|
-
"onNanoPayloadChange"?: (event: CustomEvent<
|
3148
|
+
"onNanoPayloadChange"?: (event: CustomEvent<ValidatorValueStore>) => void;
|
3098
3149
|
/**
|
3099
3150
|
* Fired on valid form submission. Note: if you wish to prevent a form from submitting, instead of using / preventing the native `submit` event, use this event ```js ele.addEventListener('nanoSubmit', (e) => { e.preventDefault() }) ```
|
3100
3151
|
*/
|
3101
3152
|
"onNanoSubmit"?: (event: CustomEvent<any>) => void;
|
3102
3153
|
/**
|
3103
|
-
* The current form payload as a reactive
|
3154
|
+
* The current form payload as a reactive proxy. @readonly
|
3104
3155
|
*/
|
3105
|
-
"payload"?:
|
3156
|
+
"payload"?: ValidatorValueStore;
|
3106
3157
|
/**
|
3107
3158
|
* Tries to scroll to the first invalid field on submit
|
3108
3159
|
*/
|
3109
3160
|
"scrollToInvalid"?: boolean;
|
3110
3161
|
/**
|
3111
|
-
* Returns true if validation errors will be displayed to the user
|
3162
|
+
* Returns true if validation errors will be displayed to the user. @readonly
|
3112
3163
|
*/
|
3113
3164
|
"showValidation"?: boolean;
|
3165
|
+
/**
|
3166
|
+
* The current form state as a stencil store.
|
3167
|
+
*/
|
3168
|
+
"store"?: ObservableMap<ValidatorValueStore>;
|
3114
3169
|
/**
|
3115
3170
|
* Returns true if all the nested fields are currently valid @readonly
|
3116
3171
|
*/
|
@@ -3129,7 +3184,7 @@ declare namespace LocalJSX {
|
|
3129
3184
|
"validation"?: (
|
3130
3185
|
field: string,
|
3131
3186
|
value: string,
|
3132
|
-
fields:
|
3187
|
+
fields: ValidatorValueStore
|
3133
3188
|
) => { [key: string]: { msg: string; valid?: boolean } };
|
3134
3189
|
/**
|
3135
3190
|
* Get the current validation state of all form fields. @readonly ``` { fields: NanoFormEles[]; valid: boolean; validityMessage: string; dirty: boolean; name: string | number; value: any; }[] ```
|
@@ -3154,7 +3209,7 @@ declare namespace LocalJSX {
|
|
3154
3209
|
*/
|
3155
3210
|
"disabled"?: boolean;
|
3156
3211
|
/**
|
3157
|
-
* A File array that lists every selected file. Has an added `objectURL` property returning a `DOMString` containing an object URL that can be used to reference the contents of the specified source This list has no more than one member unless the multiple attribute is specified
|
3212
|
+
* A File array that lists every selected file. Has an added `objectURL` property returning a `DOMString` containing an object URL that can be used to reference the contents of the specified source This list has no more than one member unless the multiple attribute is specified
|
3158
3213
|
*/
|
3159
3214
|
"files"?: FileWithUrl[];
|
3160
3215
|
/**
|
package/dist/types/index.d.ts
CHANGED
@@ -2,3 +2,4 @@ export * from './components/alert/alert.helpers';
|
|
2
2
|
export * from './components/dialog/dialog.helpers';
|
3
3
|
export { debounce as nanoDebounce, throttle as nanoThrottle, } from './utils/throttle';
|
4
4
|
export { raf as nanoRaf } from './utils';
|
5
|
+
export { getTabbableElements as nanoGetTabElements } from './utils/tabbable';
|
@@ -17,6 +17,7 @@ export * from './components/resize-observe/resize-observe-interface';
|
|
17
17
|
export * from './components/alert/alert-interface';
|
18
18
|
export * from './components/file-upload/file-upload-interface';
|
19
19
|
export * from './components/option/option-interface';
|
20
|
+
export * from './components/field-validator/field-validator-interface';
|
20
21
|
|
21
22
|
export { Gesture, GestureConfig, GestureDetail } from './utils/gesture';
|
22
23
|
export type PredefinedColors =
|
package/docs-json.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"timestamp": "2022-
|
2
|
+
"timestamp": "2022-09-13T14:34:19",
|
3
3
|
"compiler": {
|
4
4
|
"name": "@stencil/core",
|
5
5
|
"version": "2.12.2",
|
@@ -2923,6 +2923,28 @@
|
|
2923
2923
|
"getter": false,
|
2924
2924
|
"setter": false
|
2925
2925
|
},
|
2926
|
+
{
|
2927
|
+
"name": "dateValue",
|
2928
|
+
"type": "Date",
|
2929
|
+
"mutable": false,
|
2930
|
+
"reflectToAttr": false,
|
2931
|
+
"docs": "",
|
2932
|
+
"docsTags": [
|
2933
|
+
{
|
2934
|
+
"name": "readonly",
|
2935
|
+
"text": "get the value as a `Date`"
|
2936
|
+
}
|
2937
|
+
],
|
2938
|
+
"values": [
|
2939
|
+
{
|
2940
|
+
"type": "Date"
|
2941
|
+
}
|
2942
|
+
],
|
2943
|
+
"optional": false,
|
2944
|
+
"required": false,
|
2945
|
+
"getter": true,
|
2946
|
+
"setter": false
|
2947
|
+
},
|
2926
2948
|
{
|
2927
2949
|
"name": "disabled",
|
2928
2950
|
"type": "boolean",
|
@@ -3126,6 +3148,24 @@
|
|
3126
3148
|
"getter": true,
|
3127
3149
|
"setter": false
|
3128
3150
|
},
|
3151
|
+
{
|
3152
|
+
"name": "isDateDisabled",
|
3153
|
+
"type": "(date: Date) => boolean",
|
3154
|
+
"mutable": false,
|
3155
|
+
"reflectToAttr": false,
|
3156
|
+
"docs": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends.",
|
3157
|
+
"docsTags": [],
|
3158
|
+
"default": "() => false",
|
3159
|
+
"values": [
|
3160
|
+
{
|
3161
|
+
"type": "(date: Date) => boolean"
|
3162
|
+
}
|
3163
|
+
],
|
3164
|
+
"optional": false,
|
3165
|
+
"required": false,
|
3166
|
+
"getter": false,
|
3167
|
+
"setter": false
|
3168
|
+
},
|
3129
3169
|
{
|
3130
3170
|
"name": "label",
|
3131
3171
|
"type": "string",
|
@@ -5335,7 +5375,7 @@
|
|
5335
5375
|
"encapsulation": "none",
|
5336
5376
|
"tag": "nano-field-validator",
|
5337
5377
|
"readme": "# nano-field-validator\n\n\n",
|
5338
|
-
"docs": "A toolbox for `nano-...` form fields and form validation.\n
|
5378
|
+
"docs": "A toolbox for `nano-...` form fields and form validation.\n- Easy to add validation accross field dependencies - e.g. \"When Field1 contains '123' Field2 must contain '456'\"\n- Easy access to whole form and individual field validity states\n- Easy access to form data payload\n= Access to 2-way, data bound reactive store\n- Scroll to invalid field on submit",
|
5339
5379
|
"docsTags": [],
|
5340
5380
|
"usage": {},
|
5341
5381
|
"props": [
|
@@ -5358,16 +5398,35 @@
|
|
5358
5398
|
"getter": true,
|
5359
5399
|
"setter": false
|
5360
5400
|
},
|
5401
|
+
{
|
5402
|
+
"name": "extraFieldSelector",
|
5403
|
+
"type": "string",
|
5404
|
+
"mutable": false,
|
5405
|
+
"attr": "extra-field-selector",
|
5406
|
+
"reflectToAttr": false,
|
5407
|
+
"docs": "By default, `nano-field-validator` will also track all native form field elements.\nYou can add extra web-component form fields to listen to\n(as long as they match the standard form field spec) by using the `fieldSelector` prop.",
|
5408
|
+
"docsTags": [],
|
5409
|
+
"default": "'input, select, textarea'",
|
5410
|
+
"values": [
|
5411
|
+
{
|
5412
|
+
"type": "string"
|
5413
|
+
}
|
5414
|
+
],
|
5415
|
+
"optional": false,
|
5416
|
+
"required": false,
|
5417
|
+
"getter": false,
|
5418
|
+
"setter": false
|
5419
|
+
},
|
5361
5420
|
{
|
5362
5421
|
"name": "payload",
|
5363
|
-
"type": "
|
5422
|
+
"type": "ValidatorValueStore",
|
5364
5423
|
"mutable": false,
|
5365
5424
|
"reflectToAttr": false,
|
5366
|
-
"docs": "The current form payload as a reactive
|
5425
|
+
"docs": "The current form payload as a reactive proxy. @readonly",
|
5367
5426
|
"docsTags": [],
|
5368
5427
|
"values": [
|
5369
5428
|
{
|
5370
|
-
"type": "
|
5429
|
+
"type": "ValidatorValueStore"
|
5371
5430
|
}
|
5372
5431
|
],
|
5373
5432
|
"optional": false,
|
@@ -5400,7 +5459,7 @@
|
|
5400
5459
|
"mutable": false,
|
5401
5460
|
"attr": "show-validation",
|
5402
5461
|
"reflectToAttr": false,
|
5403
|
-
"docs": "Returns true if validation errors will be displayed to the user",
|
5462
|
+
"docs": "Returns true if validation errors will be displayed to the user. @readonly",
|
5404
5463
|
"docsTags": [],
|
5405
5464
|
"values": [
|
5406
5465
|
{
|
@@ -5412,6 +5471,23 @@
|
|
5412
5471
|
"getter": true,
|
5413
5472
|
"setter": false
|
5414
5473
|
},
|
5474
|
+
{
|
5475
|
+
"name": "store",
|
5476
|
+
"type": "ObservableMap<ValidatorValueStore>",
|
5477
|
+
"mutable": false,
|
5478
|
+
"reflectToAttr": false,
|
5479
|
+
"docs": "The current form state as a stencil store.",
|
5480
|
+
"docsTags": [],
|
5481
|
+
"values": [
|
5482
|
+
{
|
5483
|
+
"type": "ObservableMap<ValidatorValueStore>"
|
5484
|
+
}
|
5485
|
+
],
|
5486
|
+
"optional": false,
|
5487
|
+
"required": false,
|
5488
|
+
"getter": true,
|
5489
|
+
"setter": false
|
5490
|
+
},
|
5415
5491
|
{
|
5416
5492
|
"name": "valid",
|
5417
5493
|
"type": "boolean",
|
@@ -5460,7 +5536,7 @@
|
|
5460
5536
|
},
|
5461
5537
|
{
|
5462
5538
|
"name": "validation",
|
5463
|
-
"type": "(field: string, value: string, fields:
|
5539
|
+
"type": "(field: string, value: string, fields: ValidatorValueStore) => { [key: string]: { msg: string; valid?: boolean; }; }",
|
5464
5540
|
"mutable": false,
|
5465
5541
|
"reflectToAttr": false,
|
5466
5542
|
"docs": "A validation callback method.",
|
@@ -5484,7 +5560,7 @@
|
|
5484
5560
|
],
|
5485
5561
|
"values": [
|
5486
5562
|
{
|
5487
|
-
"type": "(field: string, value: string, fields:
|
5563
|
+
"type": "(field: string, value: string, fields: ValidatorValueStore) => { [key: string]: { msg: string; valid?: boolean; }; }"
|
5488
5564
|
}
|
5489
5565
|
],
|
5490
5566
|
"optional": false,
|
@@ -5510,7 +5586,56 @@
|
|
5510
5586
|
"setter": false
|
5511
5587
|
}
|
5512
5588
|
],
|
5513
|
-
"methods": [
|
5589
|
+
"methods": [
|
5590
|
+
{
|
5591
|
+
"name": "resetValidity",
|
5592
|
+
"returns": {
|
5593
|
+
"type": "Promise<void[]>",
|
5594
|
+
"docs": ""
|
5595
|
+
},
|
5596
|
+
"signature": "resetValidity() => Promise<void[]>",
|
5597
|
+
"parameters": [],
|
5598
|
+
"docs": "Clear all custom validation.",
|
5599
|
+
"docsTags": [
|
5600
|
+
{
|
5601
|
+
"name": "param",
|
5602
|
+
"text": "validity"
|
5603
|
+
}
|
5604
|
+
]
|
5605
|
+
},
|
5606
|
+
{
|
5607
|
+
"name": "setCustomValidity",
|
5608
|
+
"returns": {
|
5609
|
+
"type": "Promise<void[]>",
|
5610
|
+
"docs": ""
|
5611
|
+
},
|
5612
|
+
"signature": "setCustomValidity(validity: { [key: string]: string; }) => Promise<void[]>",
|
5613
|
+
"parameters": [],
|
5614
|
+
"docs": "Sets custom validity for all / some form fields.",
|
5615
|
+
"docsTags": [
|
5616
|
+
{
|
5617
|
+
"name": "param",
|
5618
|
+
"text": "validity - a validity object of `{fieldName: errorString}` pairs. Set as an empty string to clear the error."
|
5619
|
+
}
|
5620
|
+
]
|
5621
|
+
},
|
5622
|
+
{
|
5623
|
+
"name": "setStore",
|
5624
|
+
"returns": {
|
5625
|
+
"type": "Promise<void>",
|
5626
|
+
"docs": ""
|
5627
|
+
},
|
5628
|
+
"signature": "setStore(state: ValidatorValueStore) => Promise<void>",
|
5629
|
+
"parameters": [],
|
5630
|
+
"docs": "Sets the state of the form using an object of key / value pairs.",
|
5631
|
+
"docsTags": [
|
5632
|
+
{
|
5633
|
+
"name": "param",
|
5634
|
+
"text": "state - the state to load in the store"
|
5635
|
+
}
|
5636
|
+
]
|
5637
|
+
}
|
5638
|
+
],
|
5514
5639
|
"events": [
|
5515
5640
|
{
|
5516
5641
|
"event": "nanoInvalid",
|
@@ -5523,7 +5648,7 @@
|
|
5523
5648
|
},
|
5524
5649
|
{
|
5525
5650
|
"event": "nanoPayloadChange",
|
5526
|
-
"detail": "
|
5651
|
+
"detail": "ValidatorValueStore",
|
5527
5652
|
"bubbles": true,
|
5528
5653
|
"cancelable": true,
|
5529
5654
|
"composed": true,
|
@@ -5641,7 +5766,7 @@
|
|
5641
5766
|
"type": "FileWithUrl[]",
|
5642
5767
|
"mutable": false,
|
5643
5768
|
"reflectToAttr": false,
|
5644
|
-
"docs": "A File array that lists every selected file.\nHas an added `objectURL` property returning a `DOMString`\ncontaining an object URL that can be used to reference the contents of the specified source\nThis list has no more than one member unless the multiple attribute is specified
|
5769
|
+
"docs": "A File array that lists every selected file.\nHas an added `objectURL` property returning a `DOMString`\ncontaining an object URL that can be used to reference the contents of the specified source\nThis list has no more than one member unless the multiple attribute is specified",
|
5645
5770
|
"docsTags": [],
|
5646
5771
|
"values": [
|
5647
5772
|
{
|
@@ -5651,7 +5776,7 @@
|
|
5651
5776
|
"optional": false,
|
5652
5777
|
"required": false,
|
5653
5778
|
"getter": true,
|
5654
|
-
"setter":
|
5779
|
+
"setter": true
|
5655
5780
|
},
|
5656
5781
|
{
|
5657
5782
|
"name": "form",
|
@@ -7875,7 +8000,19 @@
|
|
7875
8000
|
"setter": false
|
7876
8001
|
}
|
7877
8002
|
],
|
7878
|
-
"methods": [
|
8003
|
+
"methods": [
|
8004
|
+
{
|
8005
|
+
"name": "setFocus",
|
8006
|
+
"returns": {
|
8007
|
+
"type": "Promise<void>",
|
8008
|
+
"docs": ""
|
8009
|
+
},
|
8010
|
+
"signature": "setFocus() => Promise<void>",
|
8011
|
+
"parameters": [],
|
8012
|
+
"docs": "Sets focus on the internal button",
|
8013
|
+
"docsTags": []
|
8014
|
+
}
|
8015
|
+
],
|
7879
8016
|
"events": [],
|
7880
8017
|
"listeners": [],
|
7881
8018
|
"styles": [
|
@@ -9038,6 +9175,17 @@
|
|
9038
9175
|
}
|
9039
9176
|
]
|
9040
9177
|
},
|
9178
|
+
{
|
9179
|
+
"name": "select",
|
9180
|
+
"returns": {
|
9181
|
+
"type": "Promise<void>",
|
9182
|
+
"docs": ""
|
9183
|
+
},
|
9184
|
+
"signature": "select() => Promise<void>",
|
9185
|
+
"parameters": [],
|
9186
|
+
"docs": "Sets focus and select the text on the specified `nano-input`. Use this method instead of the global\n`input.select()`.",
|
9187
|
+
"docsTags": []
|
9188
|
+
},
|
9041
9189
|
{
|
9042
9190
|
"name": "setFocus",
|
9043
9191
|
"returns": {
|
package/docs-vscode.json
CHANGED
@@ -1067,20 +1067,24 @@
|
|
1067
1067
|
"name": "nano-field-validator",
|
1068
1068
|
"description": {
|
1069
1069
|
"kind": "markdown",
|
1070
|
-
"value": "A toolbox for `nano-...` form fields and form validation.\n
|
1070
|
+
"value": "A toolbox for `nano-...` form fields and form validation.\n- Easy to add validation accross field dependencies - e.g. \"When Field1 contains '123' Field2 must contain '456'\"\n- Easy access to whole form and individual field validity states\n- Easy access to form data payload\n= Access to 2-way, data bound reactive store\n- Scroll to invalid field on submit"
|
1071
1071
|
},
|
1072
1072
|
"attributes": [
|
1073
1073
|
{
|
1074
1074
|
"name": "dirty",
|
1075
1075
|
"description": "Returns true if any nested fields have been changed @readonly"
|
1076
1076
|
},
|
1077
|
+
{
|
1078
|
+
"name": "extra-field-selector",
|
1079
|
+
"description": "By default, `nano-field-validator` will also track all native form field elements.\nYou can add extra web-component form fields to listen to\n(as long as they match the standard form field spec) by using the `fieldSelector` prop."
|
1080
|
+
},
|
1077
1081
|
{
|
1078
1082
|
"name": "scroll-to-invalid",
|
1079
1083
|
"description": "Tries to scroll to the first invalid field on submit"
|
1080
1084
|
},
|
1081
1085
|
{
|
1082
1086
|
"name": "show-validation",
|
1083
|
-
"description": "Returns true if validation errors will be displayed to the user"
|
1087
|
+
"description": "Returns true if validation errors will be displayed to the user. @readonly"
|
1084
1088
|
},
|
1085
1089
|
{
|
1086
1090
|
"name": "valid",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nanoporetech-digital/components",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.13.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://git.oxfordnanolabs.local/Digital/nano-components"
|
@@ -63,9 +63,7 @@
|
|
63
63
|
"algoliasearch": "^4.1.0",
|
64
64
|
"flickity": "^2.2.1",
|
65
65
|
"focus-options-polyfill": "^1.4.0",
|
66
|
-
"intersection-observer": "^0.10.0",
|
67
66
|
"qs": "^6.9.4",
|
68
|
-
"resize-observer-polyfill": "^1.5.1",
|
69
67
|
"scroll-behavior-polyfill": "^2.0.13",
|
70
68
|
"squirrelly": "8",
|
71
69
|
"stencil-wormhole": "3.2.1"
|
@@ -128,5 +126,5 @@
|
|
128
126
|
"peerDependencies": {
|
129
127
|
"@stencil/core": "^2.5.0"
|
130
128
|
},
|
131
|
-
"gitHead": "
|
129
|
+
"gitHead": "3bbc1d6f40367bb57c485de49c416000aa4abb79"
|
132
130
|
}
|