@dnncommunity/dnn-elements 0.14.1 → 0.15.0-beta.3
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/LICENSE +21 -21
- package/README.md +24 -24
- package/dist/.storybook/utilities.js +16 -0
- package/dist/.storybook/utilities.js.map +1 -0
- package/dist/cjs/{css-shim-3bfdba4f.js → css-shim-aaf4fec9.js} +3 -3
- package/dist/cjs/css-shim-aaf4fec9.js.map +1 -0
- package/dist/cjs/{debounce-1de79bc7.js → debounce-901e1f0c.js} +18 -18
- package/dist/cjs/{debounce-1de79bc7.js.map → debounce-901e1f0c.js.map} +1 -1
- package/dist/cjs/dnn-button.cjs.entry.js +80 -76
- package/dist/cjs/dnn-button.cjs.entry.js.map +1 -1
- package/dist/cjs/{dnn-button_16.cjs.entry.js → dnn-button_17.cjs.entry.js} +2024 -1710
- package/dist/cjs/dnn-button_17.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-checkbox.cjs.entry.js +47 -47
- package/dist/cjs/dnn-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-chevron.cjs.entry.js +22 -22
- package/dist/cjs/dnn-chevron.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-collapsible.cjs.entry.js +57 -54
- package/dist/cjs/dnn-collapsible.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-color-picker.cjs.entry.js +494 -494
- package/dist/cjs/dnn-color-picker.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-dropzone.cjs.entry.js +141 -141
- package/dist/cjs/dnn-dropzone.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-image-cropper.cjs.entry.js +394 -394
- package/dist/cjs/dnn-image-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-modal.cjs.entry.js +53 -50
- package/dist/cjs/dnn-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-permissions-grid.cjs.entry.js +320 -0
- package/dist/cjs/dnn-permissions-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/dnn-searchbox.cjs.entry.js +54 -54
- package/dist/cjs/dnn-searchbox.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-sort-icon.cjs.entry.js +32 -32
- package/dist/cjs/dnn-sort-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-tab.cjs.entry.js +19 -19
- package/dist/cjs/dnn-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-tabs.cjs.entry.js +40 -40
- package/dist/cjs/dnn-tabs.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-toggle.cjs.entry.js +26 -26
- package/dist/cjs/dnn-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-treeview-item.cjs.entry.js +56 -56
- package/dist/cjs/dnn-treeview-item.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-vertical-overflow-menu.cjs.entry.js +113 -111
- package/dist/cjs/dnn-vertical-overflow-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn-vertical-splitview.cjs.entry.js +121 -121
- package/dist/cjs/dnn-vertical-splitview.cjs.entry.js.map +1 -1
- package/dist/cjs/dnn.cjs.js +8 -4
- package/dist/cjs/dnn.cjs.js.map +1 -1
- package/dist/cjs/{dom-8ac1ad03.js → dom-14886762.js} +2 -2
- package/dist/cjs/{dom-8ac1ad03.js.map → dom-14886762.js.map} +1 -1
- package/dist/cjs/{index-7505bd72.js → index-514ef6dd.js} +32 -2
- package/dist/cjs/index-514ef6dd.js.map +1 -0
- package/dist/cjs/{index-aff4d89a.js → index-d53702a3.js} +30 -4
- package/dist/cjs/index-d53702a3.js.map +1 -0
- package/dist/cjs/index.cjs.js +41 -41
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{mouseUtilities-75be531a.js → mouseUtilities-ecd5ecf7.js} +19 -19
- package/dist/cjs/{mouseUtilities-75be531a.js.map → mouseUtilities-ecd5ecf7.js.map} +1 -1
- package/dist/cjs/{shadow-css-41d9783d.js → shadow-css-c44ea13a.js} +2 -2
- package/dist/cjs/{shadow-css-41d9783d.js.map → shadow-css-c44ea13a.js.map} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/dnn-button/dnn-button.js +275 -271
- package/dist/collection/components/dnn-button/dnn-button.js.map +1 -1
- package/dist/collection/components/dnn-button/dnn-button.stories.js +72 -0
- package/dist/collection/components/dnn-button/dnn-button.stories.js.map +1 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.css +6 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js +151 -139
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.js.map +1 -1
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js +39 -0
- package/dist/collection/components/dnn-checkbox/dnn-checkbox.stories.js.map +1 -0
- package/dist/collection/components/dnn-chevron/dnn-chevron.js +106 -106
- package/dist/collection/components/dnn-chevron/dnn-chevron.js.map +1 -1
- package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js +38 -0
- package/dist/collection/components/dnn-chevron/dnn-chevron.stories.js.map +1 -0
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js +145 -142
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.js.map +1 -1
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js +39 -0
- package/dist/collection/components/dnn-collapsible/dnn-collapsible.stories.js.map +1 -0
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js +433 -433
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.js.map +1 -1
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js +33 -0
- package/dist/collection/components/dnn-color-picker/dnn-color-picker.stories.js.map +1 -0
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js +265 -265
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.js.map +1 -1
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js +48 -0
- package/dist/collection/components/dnn-dropzone/dnn-dropzone.stories.js.map +1 -0
- package/dist/collection/components/dnn-image-cropper/CornerType.js +8 -8
- package/dist/collection/components/dnn-image-cropper/CornerType.js.map +1 -1
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js +522 -522
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.js.map +1 -1
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js +60 -0
- package/dist/collection/components/dnn-image-cropper/dnn-image-cropper.stories.js.map +1 -0
- package/dist/collection/components/dnn-modal/dnn-modal.js +190 -172
- package/dist/collection/components/dnn-modal/dnn-modal.js.map +1 -1
- package/dist/collection/components/dnn-modal/dnn-modal.stories.js +47 -0
- package/dist/collection/components/dnn-modal/dnn-modal.stories.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.css +83 -0
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js +531 -0
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js +273 -0
- package/dist/collection/components/dnn-permissions-grid/dnn-permissions-grid.stories.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/localization-interface.js +3 -0
- package/dist/collection/components/dnn-permissions-grid/localization-interface.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/permissions-interface.js +3 -0
- package/dist/collection/components/dnn-permissions-grid/permissions-interface.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/role-group-interface.js +2 -0
- package/dist/collection/components/dnn-permissions-grid/role-group-interface.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/role-interface.js +2 -0
- package/dist/collection/components/dnn-permissions-grid/role-interface.js.map +1 -0
- package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js +2 -0
- package/dist/collection/components/dnn-permissions-grid/searched-user-interface.js.map +1 -0
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js +136 -136
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.js.map +1 -1
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js +26 -0
- package/dist/collection/components/dnn-searchbox/dnn-searchbox.stories.js.map +1 -0
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.css +6 -3
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js +80 -80
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.js.map +1 -1
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js +58 -0
- package/dist/collection/components/dnn-sort-icon/dnn-sort-icon.stories.js.map +1 -0
- package/dist/collection/components/dnn-tab/dnn-tab.js +83 -83
- package/dist/collection/components/dnn-tab/dnn-tab.js.map +1 -1
- package/dist/collection/components/dnn-tab/dnn-tab.stories.js +25 -0
- package/dist/collection/components/dnn-tab/dnn-tab.stories.js.map +1 -0
- package/dist/collection/components/dnn-tabs/dnn-tabs.js +54 -54
- package/dist/collection/components/dnn-tabs/dnn-tabs.js.map +1 -1
- package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js +48 -0
- package/dist/collection/components/dnn-tabs/dnn-tabs.stories.js.map +1 -0
- package/dist/collection/components/dnn-toggle/dnn-toggle.css +1 -1
- package/dist/collection/components/dnn-toggle/dnn-toggle.js +93 -93
- package/dist/collection/components/dnn-toggle/dnn-toggle.js.map +1 -1
- package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js +53 -0
- package/dist/collection/components/dnn-toggle/dnn-toggle.stories.js.map +1 -0
- package/dist/collection/components/dnn-toggle/toggle-interface.js +1 -1
- package/dist/collection/components/dnn-toggle/toggle-interface.js.map +1 -1
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js +130 -126
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.js.map +1 -1
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js +36 -0
- package/dist/collection/components/dnn-treeview-item/dnn-treeview-item.stories.js.map +1 -0
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.css +6 -7
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js +133 -131
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.js.map +1 -1
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js +60 -0
- package/dist/collection/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.js.map +1 -0
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.css +4 -2
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js +233 -233
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.js.map +1 -1
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js +75 -0
- package/dist/collection/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.js.map +1 -0
- package/dist/collection/index.js +2 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utilities/colorInfo.js +190 -190
- package/dist/collection/utilities/colorInfo.js.map +1 -1
- package/dist/collection/utilities/debounce.js +18 -18
- package/dist/collection/utilities/debounce.js.map +1 -1
- package/dist/collection/utilities/dnnServicesFramework.js +41 -41
- package/dist/collection/utilities/dnnServicesFramework.js.map +1 -1
- package/dist/collection/utilities/mouseUtilities.js +19 -19
- package/dist/collection/utilities/mouseUtilities.js.map +1 -1
- package/dist/{esm/css-shim-20dbffa5.js → dnn/css-shim-091f949f.js} +3 -3
- package/dist/dnn/css-shim-091f949f.js.map +1 -0
- package/dist/dnn/{css-shim-856c55de.system.js → css-shim-c5bffe6b.system.js} +2 -2
- package/dist/dnn/css-shim-c5bffe6b.system.js.map +1 -0
- package/dist/{esm/debounce-06f55268.js → dnn/debounce-6be67abd.js} +18 -18
- package/dist/dnn/{debounce-06f55268.js.map → debounce-6be67abd.js.map} +1 -1
- package/dist/dnn/{debounce-eef81bf7.system.js → debounce-db438a09.system.js} +1 -1
- package/dist/dnn/{debounce-eef81bf7.system.js.map → debounce-db438a09.system.js.map} +0 -0
- package/dist/dnn/dnn-button.entry.js +80 -76
- package/dist/dnn/dnn-button.entry.js.map +1 -1
- package/dist/dnn/dnn-button.system.entry.js +1 -1
- package/dist/dnn/dnn-button.system.entry.js.map +1 -1
- package/dist/dnn/dnn-checkbox.entry.js +47 -47
- package/dist/dnn/dnn-checkbox.entry.js.map +1 -1
- package/dist/dnn/dnn-checkbox.system.entry.js +1 -1
- package/dist/dnn/dnn-checkbox.system.entry.js.map +1 -1
- package/dist/dnn/dnn-chevron.entry.js +22 -22
- package/dist/dnn/dnn-chevron.entry.js.map +1 -1
- package/dist/dnn/dnn-chevron.system.entry.js +1 -1
- package/dist/dnn/dnn-chevron.system.entry.js.map +1 -1
- package/dist/dnn/dnn-collapsible.entry.js +57 -54
- package/dist/dnn/dnn-collapsible.entry.js.map +1 -1
- package/dist/dnn/dnn-collapsible.system.entry.js +1 -1
- package/dist/dnn/dnn-collapsible.system.entry.js.map +1 -1
- package/dist/dnn/dnn-color-picker.entry.js +494 -494
- package/dist/dnn/dnn-color-picker.entry.js.map +1 -1
- package/dist/dnn/dnn-color-picker.system.entry.js +2 -2
- package/dist/dnn/dnn-color-picker.system.entry.js.map +1 -1
- package/dist/dnn/dnn-dropzone.entry.js +141 -141
- package/dist/dnn/dnn-dropzone.entry.js.map +1 -1
- package/dist/dnn/dnn-dropzone.system.entry.js +1 -1
- package/dist/dnn/dnn-dropzone.system.entry.js.map +1 -1
- package/dist/dnn/dnn-image-cropper.entry.js +394 -394
- package/dist/dnn/dnn-image-cropper.entry.js.map +1 -1
- package/dist/dnn/dnn-image-cropper.system.entry.js +1 -1
- package/dist/dnn/dnn-image-cropper.system.entry.js.map +1 -1
- package/dist/dnn/dnn-modal.entry.js +53 -50
- package/dist/dnn/dnn-modal.entry.js.map +1 -1
- package/dist/dnn/dnn-modal.system.entry.js +1 -1
- package/dist/dnn/dnn-modal.system.entry.js.map +1 -1
- package/dist/dnn/dnn-permissions-grid.entry.js +316 -0
- package/dist/dnn/dnn-permissions-grid.entry.js.map +1 -0
- package/dist/dnn/dnn-permissions-grid.system.entry.js +2 -0
- package/dist/dnn/dnn-permissions-grid.system.entry.js.map +1 -0
- package/dist/dnn/dnn-searchbox.entry.js +54 -54
- package/dist/dnn/dnn-searchbox.entry.js.map +1 -1
- package/dist/dnn/dnn-searchbox.system.entry.js +1 -1
- package/dist/dnn/dnn-searchbox.system.entry.js.map +1 -1
- package/dist/dnn/dnn-sort-icon.entry.js +32 -32
- package/dist/dnn/dnn-sort-icon.entry.js.map +1 -1
- package/dist/dnn/dnn-sort-icon.system.entry.js +1 -1
- package/dist/dnn/dnn-sort-icon.system.entry.js.map +1 -1
- package/dist/dnn/dnn-tab.entry.js +19 -19
- package/dist/dnn/dnn-tab.entry.js.map +1 -1
- package/dist/dnn/dnn-tab.system.entry.js +1 -1
- package/dist/dnn/dnn-tabs.entry.js +40 -40
- package/dist/dnn/dnn-tabs.entry.js.map +1 -1
- package/dist/dnn/dnn-tabs.system.entry.js +1 -1
- package/dist/dnn/dnn-tabs.system.entry.js.map +1 -1
- package/dist/dnn/dnn-toggle.entry.js +26 -26
- package/dist/dnn/dnn-toggle.entry.js.map +1 -1
- package/dist/dnn/dnn-toggle.system.entry.js +1 -1
- package/dist/dnn/dnn-toggle.system.entry.js.map +1 -1
- package/dist/dnn/dnn-treeview-item.entry.js +56 -56
- package/dist/dnn/dnn-treeview-item.entry.js.map +1 -1
- package/dist/dnn/dnn-treeview-item.system.entry.js +1 -1
- package/dist/dnn/dnn-treeview-item.system.entry.js.map +1 -1
- package/dist/dnn/dnn-vertical-overflow-menu.entry.js +113 -111
- package/dist/dnn/dnn-vertical-overflow-menu.entry.js.map +1 -1
- package/dist/dnn/dnn-vertical-overflow-menu.system.entry.js +1 -1
- package/dist/dnn/dnn-vertical-overflow-menu.system.entry.js.map +1 -1
- package/dist/dnn/dnn-vertical-splitview.entry.js +121 -121
- package/dist/dnn/dnn-vertical-splitview.entry.js.map +1 -1
- package/dist/dnn/dnn-vertical-splitview.system.entry.js +1 -1
- package/dist/dnn/dnn-vertical-splitview.system.entry.js.map +1 -1
- package/dist/dnn/dnn.esm.js +8 -4
- package/dist/dnn/dnn.esm.js.map +1 -1
- package/dist/dnn/dnn.system.js +1 -1
- package/dist/dnn/dnn.system.js.map +1 -1
- package/dist/dnn/{dom-938307ec.system.js → dom-99eb7b76.system.js} +1 -1
- package/dist/dnn/{dom-938307ec.system.js.map → dom-99eb7b76.system.js.map} +1 -1
- package/dist/dnn/{dom-c5ed0ba5.js → dom-a385e381.js} +2 -2
- package/dist/{esm/dom-c5ed0ba5.js.map → dnn/dom-a385e381.js.map} +1 -1
- package/dist/dnn/{index-b5a28c1d.js → index-20e42ad7.js} +30 -4
- package/dist/dnn/index-20e42ad7.js.map +1 -0
- package/dist/dnn/index-c3cc3b5b.system.js +2 -0
- package/dist/dnn/index-c3cc3b5b.system.js.map +1 -0
- package/dist/dnn/index.esm.js +41 -41
- package/dist/dnn/index.system.js +1 -1
- package/dist/dnn/{mouseUtilities-e7e4e78f.system.js → mouseUtilities-233ad7e3.system.js} +1 -1
- package/dist/dnn/{mouseUtilities-e7e4e78f.system.js.map → mouseUtilities-233ad7e3.system.js.map} +0 -0
- package/dist/{esm/mouseUtilities-817973b4.js → dnn/mouseUtilities-b261ca4f.js} +19 -19
- package/dist/dnn/{mouseUtilities-817973b4.js.map → mouseUtilities-b261ca4f.js.map} +1 -1
- package/dist/dnn/{p-646cfb1b.system.js → p-1e26a4e1.system.js} +1 -1
- package/dist/dnn/{p-646cfb1b.system.js.map → p-1e26a4e1.system.js.map} +0 -0
- package/dist/dnn/p-31dc68a7.system.entry.js +11 -0
- package/dist/dnn/p-31dc68a7.system.entry.js.map +1 -0
- package/dist/dnn/p-5bcf3629.system.js +2 -0
- package/dist/dnn/p-5bcf3629.system.js.map +1 -0
- package/dist/dnn/{p-fb637662.system.js → p-78561bb1.system.js} +2 -2
- package/dist/dnn/{p-fb637662.system.js.map → p-78561bb1.system.js.map} +0 -0
- package/dist/dnn/p-7ffdbed1.js +2 -0
- package/dist/dnn/p-7ffdbed1.js.map +1 -0
- package/dist/dnn/{p-0e94f5ee.js → p-9b8731a9.js} +1 -1
- package/dist/dnn/{p-0e94f5ee.js.map → p-9b8731a9.js.map} +0 -0
- package/dist/dnn/p-b8064287.system.js +2 -0
- package/dist/dnn/p-b8064287.system.js.map +1 -0
- package/dist/dnn/p-c222c8b7.entry.js +11 -0
- package/dist/dnn/p-c222c8b7.entry.js.map +1 -0
- package/dist/dnn/shadow-css-27708fdd.system.js +14 -0
- package/dist/dnn/shadow-css-27708fdd.system.js.map +1 -0
- package/dist/dnn/{shadow-css-8c625855.js → shadow-css-ef431969.js} +2 -2
- package/dist/{esm/shadow-css-8c625855.js.map → dnn/shadow-css-ef431969.js.map} +1 -1
- package/dist/{dnn/css-shim-20dbffa5.js → esm/css-shim-091f949f.js} +3 -3
- package/dist/esm/css-shim-091f949f.js.map +1 -0
- package/dist/{dnn/debounce-06f55268.js → esm/debounce-6be67abd.js} +18 -18
- package/dist/esm/{debounce-06f55268.js.map → debounce-6be67abd.js.map} +1 -1
- package/dist/esm/dnn-button.entry.js +80 -76
- package/dist/esm/dnn-button.entry.js.map +1 -1
- package/dist/esm/{dnn-button_16.entry.js → dnn-button_17.entry.js} +2024 -1711
- package/dist/esm/dnn-button_17.entry.js.map +1 -0
- package/dist/esm/dnn-checkbox.entry.js +47 -47
- package/dist/esm/dnn-checkbox.entry.js.map +1 -1
- package/dist/esm/dnn-chevron.entry.js +22 -22
- package/dist/esm/dnn-chevron.entry.js.map +1 -1
- package/dist/esm/dnn-collapsible.entry.js +57 -54
- package/dist/esm/dnn-collapsible.entry.js.map +1 -1
- package/dist/esm/dnn-color-picker.entry.js +494 -494
- package/dist/esm/dnn-color-picker.entry.js.map +1 -1
- package/dist/esm/dnn-dropzone.entry.js +141 -141
- package/dist/esm/dnn-dropzone.entry.js.map +1 -1
- package/dist/esm/dnn-image-cropper.entry.js +394 -394
- package/dist/esm/dnn-image-cropper.entry.js.map +1 -1
- package/dist/esm/dnn-modal.entry.js +53 -50
- package/dist/esm/dnn-modal.entry.js.map +1 -1
- package/dist/esm/dnn-permissions-grid.entry.js +316 -0
- package/dist/esm/dnn-permissions-grid.entry.js.map +1 -0
- package/dist/esm/dnn-searchbox.entry.js +54 -54
- package/dist/esm/dnn-searchbox.entry.js.map +1 -1
- package/dist/esm/dnn-sort-icon.entry.js +32 -32
- package/dist/esm/dnn-sort-icon.entry.js.map +1 -1
- package/dist/esm/dnn-tab.entry.js +19 -19
- package/dist/esm/dnn-tab.entry.js.map +1 -1
- package/dist/esm/dnn-tabs.entry.js +40 -40
- package/dist/esm/dnn-tabs.entry.js.map +1 -1
- package/dist/esm/dnn-toggle.entry.js +26 -26
- package/dist/esm/dnn-toggle.entry.js.map +1 -1
- package/dist/esm/dnn-treeview-item.entry.js +56 -56
- package/dist/esm/dnn-treeview-item.entry.js.map +1 -1
- package/dist/esm/dnn-vertical-overflow-menu.entry.js +113 -111
- package/dist/esm/dnn-vertical-overflow-menu.entry.js.map +1 -1
- package/dist/esm/dnn-vertical-splitview.entry.js +121 -121
- package/dist/esm/dnn-vertical-splitview.entry.js.map +1 -1
- package/dist/esm/dnn.js +8 -4
- package/dist/esm/dnn.js.map +1 -1
- package/dist/esm/{dom-c5ed0ba5.js → dom-a385e381.js} +2 -2
- package/dist/{dnn/dom-c5ed0ba5.js.map → esm/dom-a385e381.js.map} +1 -1
- package/dist/esm/{index-b5a28c1d.js → index-20e42ad7.js} +30 -4
- package/dist/esm/index-20e42ad7.js.map +1 -0
- package/dist/esm/{index-cdbad319.js → index-59e0950f.js} +32 -2
- package/dist/esm/index-59e0950f.js.map +1 -0
- package/dist/esm/index.js +41 -41
- package/dist/esm/loader.js +4 -4
- package/dist/esm/loader.js.map +1 -1
- package/dist/{dnn/mouseUtilities-817973b4.js → esm/mouseUtilities-b261ca4f.js} +19 -19
- package/dist/esm/{mouseUtilities-817973b4.js.map → mouseUtilities-b261ca4f.js.map} +1 -1
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/{shadow-css-8c625855.js → shadow-css-ef431969.js} +2 -2
- package/dist/{dnn/shadow-css-8c625855.js.map → esm/shadow-css-ef431969.js.map} +1 -1
- package/dist/esm-es5/{debounce-06f55268.js → debounce-6be67abd.js} +1 -1
- package/dist/esm-es5/{debounce-06f55268.js.map → debounce-6be67abd.js.map} +0 -0
- package/dist/esm-es5/dnn-button_17.entry.js +11 -0
- package/dist/esm-es5/dnn-button_17.entry.js.map +1 -0
- package/dist/esm-es5/dnn.js +1 -1
- package/dist/esm-es5/dnn.js.map +1 -1
- package/dist/esm-es5/index-59e0950f.js +2 -0
- package/dist/esm-es5/index-59e0950f.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components/dnn-button/dnn-button.d.ts +56 -55
- package/dist/types/components/dnn-button/dnn-button.stories.d.ts +4 -0
- package/dist/types/components/dnn-checkbox/dnn-checkbox.d.ts +20 -16
- package/dist/types/components/dnn-checkbox/dnn-checkbox.stories.d.ts +4 -0
- package/dist/types/components/dnn-chevron/dnn-chevron.d.ts +13 -13
- package/dist/types/components/dnn-chevron/dnn-chevron.stories.d.ts +4 -0
- package/dist/types/components/dnn-collapsible/dnn-collapsible.d.ts +19 -18
- package/dist/types/components/dnn-collapsible/dnn-collapsible.stories.d.ts +4 -0
- package/dist/types/components/dnn-color-picker/dnn-color-picker.d.ts +46 -46
- package/dist/types/components/dnn-color-picker/dnn-color-picker.stories.d.ts +4 -0
- package/dist/types/components/dnn-dropzone/dnn-dropzone.d.ts +45 -45
- package/dist/types/components/dnn-dropzone/dnn-dropzone.stories.d.ts +4 -0
- package/dist/types/components/dnn-image-cropper/CornerType.d.ts +6 -6
- package/dist/types/components/dnn-image-cropper/dnn-image-cropper.d.ts +61 -61
- package/dist/types/components/dnn-image-cropper/dnn-image-cropper.stories.d.ts +4 -0
- package/dist/types/components/dnn-modal/dnn-modal.d.ts +38 -35
- package/dist/types/components/dnn-modal/dnn-modal.stories.d.ts +4 -0
- package/dist/types/components/dnn-permissions-grid/dnn-permissions-grid.d.ts +47 -0
- package/dist/types/components/dnn-permissions-grid/dnn-permissions-grid.stories.d.ts +4 -0
- package/dist/types/components/dnn-permissions-grid/localization-interface.d.ts +11 -0
- package/dist/types/components/dnn-permissions-grid/permissions-interface.d.ts +26 -0
- package/dist/types/components/dnn-permissions-grid/role-group-interface.d.ts +6 -0
- package/dist/types/components/dnn-permissions-grid/role-interface.d.ts +6 -0
- package/dist/types/components/dnn-permissions-grid/searched-user-interface.d.ts +4 -0
- package/dist/types/components/dnn-searchbox/dnn-searchbox.d.ts +22 -22
- package/dist/types/components/dnn-searchbox/dnn-searchbox.stories.d.ts +4 -0
- package/dist/types/components/dnn-sort-icon/dnn-sort-icon.d.ts +9 -9
- package/dist/types/components/dnn-sort-icon/dnn-sort-icon.stories.d.ts +4 -0
- package/dist/types/components/dnn-tab/dnn-tab.d.ts +11 -11
- package/dist/types/components/dnn-tab/dnn-tab.stories.d.ts +4 -0
- package/dist/types/components/dnn-tabs/dnn-tabs.d.ts +11 -11
- package/dist/types/components/dnn-tabs/dnn-tabs.stories.d.ts +4 -0
- package/dist/types/components/dnn-toggle/dnn-toggle.d.ts +13 -13
- package/dist/types/components/dnn-toggle/dnn-toggle.stories.d.ts +4 -0
- package/dist/types/components/dnn-toggle/toggle-interface.d.ts +3 -3
- package/dist/types/components/dnn-treeview-item/dnn-treeview-item.d.ts +28 -24
- package/dist/types/components/dnn-treeview-item/dnn-treeview-item.stories.d.ts +4 -0
- package/dist/types/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.d.ts +16 -16
- package/dist/types/components/dnn-vertical-overflow-menu/dnn-vertical-overflow-menu.stories.d.ts +4 -0
- package/dist/types/components/dnn-vertical-splitview/dnn-vertical-splitview.d.ts +28 -28
- package/dist/types/components/dnn-vertical-splitview/dnn-vertical-splitview.stories.d.ts +4 -0
- package/dist/types/components.d.ts +108 -34
- package/dist/types/global.d.ts +1 -0
- package/dist/types/home/runner/work/dnn-elements/dnn-elements/.stencil/.storybook/utilities.d.ts +1 -0
- package/dist/types/index.d.ts +3 -3
- package/dist/types/utilities/colorInfo.d.ts +52 -52
- package/dist/types/utilities/debounce.d.ts +5 -5
- package/dist/types/utilities/dnnServicesFramework.d.ts +19 -19
- package/dist/types/utilities/mouseUtilities.d.ts +4 -4
- package/package.json +63 -48
- package/dist/cjs/css-shim-3bfdba4f.js.map +0 -1
- package/dist/cjs/dnn-button_16.cjs.entry.js.map +0 -1
- package/dist/cjs/index-7505bd72.js.map +0 -1
- package/dist/cjs/index-aff4d89a.js.map +0 -1
- package/dist/dnn/css-shim-20dbffa5.js.map +0 -1
- package/dist/dnn/css-shim-856c55de.system.js.map +0 -1
- package/dist/dnn/index-a3a55419.system.js +0 -2
- package/dist/dnn/index-a3a55419.system.js.map +0 -1
- package/dist/dnn/index-b5a28c1d.js.map +0 -1
- package/dist/dnn/p-058ba146.system.js +0 -2
- package/dist/dnn/p-058ba146.system.js.map +0 -1
- package/dist/dnn/p-45ce2139.js +0 -2
- package/dist/dnn/p-45ce2139.js.map +0 -1
- package/dist/dnn/p-755d047d.system.entry.js +0 -11
- package/dist/dnn/p-755d047d.system.entry.js.map +0 -1
- package/dist/dnn/p-8ec1f3a8.entry.js +0 -11
- package/dist/dnn/p-8ec1f3a8.entry.js.map +0 -1
- package/dist/dnn/p-f91193e2.system.js +0 -2
- package/dist/dnn/p-f91193e2.system.js.map +0 -1
- package/dist/dnn/shadow-css-d573707f.system.js +0 -14
- package/dist/dnn/shadow-css-d573707f.system.js.map +0 -1
- package/dist/esm/css-shim-20dbffa5.js.map +0 -1
- package/dist/esm/dnn-button_16.entry.js.map +0 -1
- package/dist/esm/index-b5a28c1d.js.map +0 -1
- package/dist/esm/index-cdbad319.js.map +0 -1
- package/dist/esm-es5/dnn-button_16.entry.js +0 -11
- package/dist/esm-es5/dnn-button_16.entry.js.map +0 -1
- package/dist/esm-es5/index-cdbad319.js +0 -2
- package/dist/esm-es5/index-cdbad319.js.map +0 -1
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import { Component, Host, h, Prop, Event } from '@stencil/core';
|
|
2
|
-
import { Watch } from '@stencil/core';
|
|
3
|
-
export class DnnChevron {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** Expand text for screen readers */
|
|
6
|
-
this.expandText = "expand";
|
|
7
|
-
/** Collapse text for screen readers */
|
|
8
|
-
this.collapseText = "collapse";
|
|
9
|
-
/** Is the chevron expanded */
|
|
10
|
-
this.expanded = false;
|
|
11
|
-
}
|
|
12
|
-
handleExpandedChanged(newValue) {
|
|
13
|
-
this.changed.emit(newValue);
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return (h(Host, null,
|
|
17
|
-
h("button", { "aria-label": this.expanded ? this.collapseText : this.expandText, onClick: () => this.expanded = !this.expanded },
|
|
18
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
|
|
19
|
-
h("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
20
|
-
h("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })))));
|
|
21
|
-
}
|
|
22
|
-
static get is() { return "dnn-chevron"; }
|
|
23
|
-
static get encapsulation() { return "shadow"; }
|
|
24
|
-
static get originalStyleUrls() { return {
|
|
25
|
-
"$": ["dnn-chevron.scss"]
|
|
26
|
-
}; }
|
|
27
|
-
static get styleUrls() { return {
|
|
28
|
-
"$": ["dnn-chevron.css"]
|
|
29
|
-
}; }
|
|
30
|
-
static get properties() { return {
|
|
31
|
-
"expandText": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"mutable": false,
|
|
34
|
-
"complexType": {
|
|
35
|
-
"original": "string",
|
|
36
|
-
"resolved": "string",
|
|
37
|
-
"references": {}
|
|
38
|
-
},
|
|
39
|
-
"required": false,
|
|
40
|
-
"optional": true,
|
|
41
|
-
"docs": {
|
|
42
|
-
"tags": [],
|
|
43
|
-
"text": "Expand text for screen readers"
|
|
44
|
-
},
|
|
45
|
-
"attribute": "expand-text",
|
|
46
|
-
"reflect": false,
|
|
47
|
-
"defaultValue": "\"expand\""
|
|
48
|
-
},
|
|
49
|
-
"collapseText": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"mutable": false,
|
|
52
|
-
"complexType": {
|
|
53
|
-
"original": "string",
|
|
54
|
-
"resolved": "string",
|
|
55
|
-
"references": {}
|
|
56
|
-
},
|
|
57
|
-
"required": false,
|
|
58
|
-
"optional": true,
|
|
59
|
-
"docs": {
|
|
60
|
-
"tags": [],
|
|
61
|
-
"text": "Collapse text for screen readers"
|
|
62
|
-
},
|
|
63
|
-
"attribute": "collapse-text",
|
|
64
|
-
"reflect": false,
|
|
65
|
-
"defaultValue": "\"collapse\""
|
|
66
|
-
},
|
|
67
|
-
"expanded": {
|
|
68
|
-
"type": "boolean",
|
|
69
|
-
"mutable": true,
|
|
70
|
-
"complexType": {
|
|
71
|
-
"original": "boolean",
|
|
72
|
-
"resolved": "boolean",
|
|
73
|
-
"references": {}
|
|
74
|
-
},
|
|
75
|
-
"required": false,
|
|
76
|
-
"optional": true,
|
|
77
|
-
"docs": {
|
|
78
|
-
"tags": [],
|
|
79
|
-
"text": "Is the chevron expanded"
|
|
80
|
-
},
|
|
81
|
-
"attribute": "expanded",
|
|
82
|
-
"reflect": true,
|
|
83
|
-
"defaultValue": "false"
|
|
84
|
-
}
|
|
85
|
-
}; }
|
|
86
|
-
static get events() { return [{
|
|
87
|
-
"method": "changed",
|
|
88
|
-
"name": "changed",
|
|
89
|
-
"bubbles": true,
|
|
90
|
-
"cancelable": true,
|
|
91
|
-
"composed": true,
|
|
92
|
-
"docs": {
|
|
93
|
-
"tags": [],
|
|
94
|
-
"text": "Fires up when the expanded status changes"
|
|
95
|
-
},
|
|
96
|
-
"complexType": {
|
|
97
|
-
"original": "any",
|
|
98
|
-
"resolved": "any",
|
|
99
|
-
"references": {}
|
|
100
|
-
}
|
|
101
|
-
}]; }
|
|
102
|
-
static get watchers() { return [{
|
|
103
|
-
"propName": "expanded",
|
|
104
|
-
"methodName": "handleExpandedChanged"
|
|
105
|
-
}]; }
|
|
106
|
-
}
|
|
1
|
+
import { Component, Host, h, Prop, Event } from '@stencil/core';
|
|
2
|
+
import { Watch } from '@stencil/core';
|
|
3
|
+
export class DnnChevron {
|
|
4
|
+
constructor() {
|
|
5
|
+
/** Expand text for screen readers */
|
|
6
|
+
this.expandText = "expand";
|
|
7
|
+
/** Collapse text for screen readers */
|
|
8
|
+
this.collapseText = "collapse";
|
|
9
|
+
/** Is the chevron expanded */
|
|
10
|
+
this.expanded = false;
|
|
11
|
+
}
|
|
12
|
+
handleExpandedChanged(newValue) {
|
|
13
|
+
this.changed.emit(newValue);
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
return (h(Host, null,
|
|
17
|
+
h("button", { "aria-label": this.expanded ? this.collapseText : this.expandText, onClick: () => this.expanded = !this.expanded },
|
|
18
|
+
h("svg", { xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 0 24 24", width: "24px", fill: "#000000" },
|
|
19
|
+
h("path", { d: "M0 0h24v24H0z", fill: "none" }),
|
|
20
|
+
h("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" })))));
|
|
21
|
+
}
|
|
22
|
+
static get is() { return "dnn-chevron"; }
|
|
23
|
+
static get encapsulation() { return "shadow"; }
|
|
24
|
+
static get originalStyleUrls() { return {
|
|
25
|
+
"$": ["dnn-chevron.scss"]
|
|
26
|
+
}; }
|
|
27
|
+
static get styleUrls() { return {
|
|
28
|
+
"$": ["dnn-chevron.css"]
|
|
29
|
+
}; }
|
|
30
|
+
static get properties() { return {
|
|
31
|
+
"expandText": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"mutable": false,
|
|
34
|
+
"complexType": {
|
|
35
|
+
"original": "string",
|
|
36
|
+
"resolved": "string",
|
|
37
|
+
"references": {}
|
|
38
|
+
},
|
|
39
|
+
"required": false,
|
|
40
|
+
"optional": true,
|
|
41
|
+
"docs": {
|
|
42
|
+
"tags": [],
|
|
43
|
+
"text": "Expand text for screen readers"
|
|
44
|
+
},
|
|
45
|
+
"attribute": "expand-text",
|
|
46
|
+
"reflect": false,
|
|
47
|
+
"defaultValue": "\"expand\""
|
|
48
|
+
},
|
|
49
|
+
"collapseText": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"mutable": false,
|
|
52
|
+
"complexType": {
|
|
53
|
+
"original": "string",
|
|
54
|
+
"resolved": "string",
|
|
55
|
+
"references": {}
|
|
56
|
+
},
|
|
57
|
+
"required": false,
|
|
58
|
+
"optional": true,
|
|
59
|
+
"docs": {
|
|
60
|
+
"tags": [],
|
|
61
|
+
"text": "Collapse text for screen readers"
|
|
62
|
+
},
|
|
63
|
+
"attribute": "collapse-text",
|
|
64
|
+
"reflect": false,
|
|
65
|
+
"defaultValue": "\"collapse\""
|
|
66
|
+
},
|
|
67
|
+
"expanded": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": true,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": true,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": "Is the chevron expanded"
|
|
80
|
+
},
|
|
81
|
+
"attribute": "expanded",
|
|
82
|
+
"reflect": true,
|
|
83
|
+
"defaultValue": "false"
|
|
84
|
+
}
|
|
85
|
+
}; }
|
|
86
|
+
static get events() { return [{
|
|
87
|
+
"method": "changed",
|
|
88
|
+
"name": "changed",
|
|
89
|
+
"bubbles": true,
|
|
90
|
+
"cancelable": true,
|
|
91
|
+
"composed": true,
|
|
92
|
+
"docs": {
|
|
93
|
+
"tags": [],
|
|
94
|
+
"text": "Fires up when the expanded status changes"
|
|
95
|
+
},
|
|
96
|
+
"complexType": {
|
|
97
|
+
"original": "any",
|
|
98
|
+
"resolved": "any",
|
|
99
|
+
"references": {}
|
|
100
|
+
}
|
|
101
|
+
}]; }
|
|
102
|
+
static get watchers() { return [{
|
|
103
|
+
"propName": "expanded",
|
|
104
|
+
"methodName": "handleExpandedChanged"
|
|
105
|
+
}]; }
|
|
106
|
+
}
|
|
107
107
|
//# sourceMappingURL=dnn-chevron.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnn-chevron.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dnn-chevron.js","sourceRoot":"","sources":["../../../../src/components/dnn-chevron/dnn-chevron.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC,MAAM,OAAO,UAAU;EALvB;IAOE,qCAAqC;IAC7B,eAAU,GAAY,QAAQ,CAAC;IAEvC,uCAAuC;IAC/B,iBAAY,GAAY,UAAU,CAAC;IAE3C,8BAA8B;IACQ,aAAQ,GAAa,KAAK,CAAC;GAsBlE;EAhBC,qBAAqB,CAAC,QAAiB;IACrC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;EAC9B,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,4BAAoB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EACrE,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ;QAE7C,WAAK,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,SAAS;UAAC,YAAM,CAAC,EAAC,eAAe,EAAC,IAAI,EAAC,MAAM,GAAE;UAAA,YAAM,CAAC,EAAC,gDAAgD,GAAE,CAAM,CACpM,CACJ,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Event } from '@stencil/core';\nimport { EventEmitter } from '@stencil/core';\nimport { Watch } from '@stencil/core';\n\n@Component({\n tag: 'dnn-chevron',\n styleUrl: 'dnn-chevron.scss',\n shadow: true\n})\nexport class DnnChevron {\n\n /** Expand text for screen readers */\n @Prop() expandText?: string = \"expand\";\n\n /** Collapse text for screen readers */\n @Prop() collapseText?: string = \"collapse\";\n\n /** Is the chevron expanded */\n @Prop({mutable: true, reflect: true}) expanded?: boolean = false;\n\n /** Fires up when the expanded status changes */\n @Event() changed: EventEmitter;\n\n @Watch('expanded')\n handleExpandedChanged(newValue: boolean) {\n this.changed.emit(newValue);\n }\n\n render() {\n return (\n <Host>\n <button aria-label={this.expanded ? this.collapseText : this.expandText}\n onClick={() => this.expanded = !this.expanded}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z\"/></svg>\n </button>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { html } from "lit-html";
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
3
|
+
import readme from './readme.md';
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Elements/Chevron',
|
|
6
|
+
component: 'dnn-chevron',
|
|
7
|
+
parameters: {
|
|
8
|
+
actions: {
|
|
9
|
+
handles: ['changed'],
|
|
10
|
+
},
|
|
11
|
+
notes: readme,
|
|
12
|
+
},
|
|
13
|
+
argTypes: {
|
|
14
|
+
'expand-text': {
|
|
15
|
+
control: 'text',
|
|
16
|
+
},
|
|
17
|
+
'collapse-text': {
|
|
18
|
+
control: 'text',
|
|
19
|
+
},
|
|
20
|
+
'expanded': {
|
|
21
|
+
control: 'boolean',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const Template = (args) => html `
|
|
26
|
+
<dnn-chevron
|
|
27
|
+
expand-text=${ifDefined(args.expandText)}
|
|
28
|
+
collapse-text=${ifDefined(args.collapseText)}
|
|
29
|
+
?expanded=${ifDefined(args.expanded)}>
|
|
30
|
+
</dnn-chevron>
|
|
31
|
+
`;
|
|
32
|
+
export const Chevron = Template.bind({});
|
|
33
|
+
Chevron.args = {
|
|
34
|
+
expandText: 'expand',
|
|
35
|
+
collapseText: 'collapse',
|
|
36
|
+
expanded: false,
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=dnn-chevron.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnn-chevron.stories.js","sourceRoot":"","sources":["../../../../src/components/dnn-chevron/dnn-chevron.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,eAAe;EACX,KAAK,EAAE,kBAAkB;EACzB,SAAS,EAAE,aAAa;EACxB,UAAU,EAAE;IACR,OAAO,EAAE;MACL,OAAO,EAAE,CAAC,SAAS,CAAC;KACvB;IACD,KAAK,EAAG,MAAM;GACjB;EACD,QAAQ,EAAE;IACN,aAAa,EAAE;MACX,OAAO,EAAE,MAAM;KAClB;IACD,eAAe,EAAE;MACb,OAAO,EAAE,MAAM;KAClB;IACD,UAAU,EAAE;MACR,OAAO,EAAE,SAAS;KACnB;GACF;CACA,CAAC;AAEV,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,EAAE,CACtB,IAAI,CAAA;;0BAEkB,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC;4BACxB,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;wBAChC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;;KAE3C,CAAC;AAEN,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACzC,OAAO,CAAC,IAAI,GAAG;EACX,UAAU,EAAE,QAAQ;EACpB,YAAY,EAAE,UAAU;EACxB,QAAQ,EAAE,KAAK;CAClB,CAAC","sourcesContent":["import { html } from \"lit-html\";\nimport { ifDefined } from 'lit-html/directives/if-defined';\nimport { Meta } from \"@storybook/web-components\";\nimport readme from './readme.md';\n\nexport default {\n title: 'Elements/Chevron',\n component: 'dnn-chevron',\n parameters: {\n actions: {\n handles: ['changed'],\n },\n notes: readme,\n },\n argTypes: {\n 'expand-text': {\n control: 'text',\n },\n 'collapse-text': {\n control: 'text',\n },\n 'expanded': {\n control: 'boolean',\n },\n },\n} as Meta;\n\nconst Template = (args) =>\n html`\n <dnn-chevron\n expand-text=${ifDefined(args.expandText)}\n collapse-text=${ifDefined(args.collapseText)}\n ?expanded=${ifDefined(args.expanded)}>\n </dnn-chevron>\n `;\n\nexport const Chevron = Template.bind({});\nChevron.args = {\n expandText: 'expand',\n collapseText: 'collapse',\n expanded: false,\n};\n"]}
|
|
@@ -1,143 +1,146 @@
|
|
|
1
|
-
import { Component, Host, h, Prop, Element, Event, Watch, Listen, Method } from '@stencil/core';
|
|
2
|
-
export class DnnCollapsible {
|
|
3
|
-
constructor() {
|
|
4
|
-
/** Defines if the panel is expanded or not. */
|
|
5
|
-
this.expanded = false;
|
|
6
|
-
/** Defines the transition time in ms, defaults to
|
|
7
|
-
this.transitionDuration = 150;
|
|
8
|
-
}
|
|
9
|
-
handleHeightChanged() {
|
|
10
|
-
requestAnimationFrame(() => {
|
|
11
|
-
this.updateSize();
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Updates the component height, use to update after a slot content changes.
|
|
16
|
-
*/
|
|
17
|
-
async updateSize() {
|
|
18
|
-
if (this.expanded) {
|
|
19
|
-
requestAnimationFrame(() => {
|
|
20
|
-
this.container.style.maxHeight = `${this.container.scrollHeight}px`;
|
|
21
|
-
});
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
this.container.style.maxHeight = "none";
|
|
24
|
-
}, this.transitionDuration);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
handledExpandedChanged(expanded) {
|
|
28
|
-
if (expanded) {
|
|
29
|
-
this.updateSize();
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
requestAnimationFrame(() => {
|
|
33
|
-
this.container.style.maxHeight = `${this.container.scrollHeight}px`;
|
|
34
|
-
requestAnimationFrame(() => {
|
|
35
|
-
this.container.style.maxHeight = "0px";
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
setTimeout(() => {
|
|
40
|
-
requestAnimationFrame(() => {
|
|
41
|
-
this.dnnCollapsibleHeightChanged.emit();
|
|
42
|
-
});
|
|
43
|
-
}, this.transitionDuration);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
static get
|
|
56
|
-
"$": ["dnn-collapsible.
|
|
57
|
-
}; }
|
|
58
|
-
static get
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
1
|
+
import { Component, Host, h, Prop, Element, Event, Watch, Listen, Method } from '@stencil/core';
|
|
2
|
+
export class DnnCollapsible {
|
|
3
|
+
constructor() {
|
|
4
|
+
/** Defines if the panel is expanded or not. */
|
|
5
|
+
this.expanded = false;
|
|
6
|
+
/** Defines the transition time in ms, defaults to 150ms */
|
|
7
|
+
this.transitionDuration = 150;
|
|
8
|
+
}
|
|
9
|
+
handleHeightChanged() {
|
|
10
|
+
requestAnimationFrame(() => {
|
|
11
|
+
this.updateSize();
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Updates the component height, use to update after a slot content changes.
|
|
16
|
+
*/
|
|
17
|
+
async updateSize() {
|
|
18
|
+
if (this.expanded) {
|
|
19
|
+
requestAnimationFrame(() => {
|
|
20
|
+
this.container.style.maxHeight = `${this.container.scrollHeight}px`;
|
|
21
|
+
});
|
|
22
|
+
setTimeout(() => {
|
|
23
|
+
this.container.style.maxHeight = "none";
|
|
24
|
+
}, this.transitionDuration);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
handledExpandedChanged(expanded) {
|
|
28
|
+
if (expanded) {
|
|
29
|
+
this.updateSize();
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
requestAnimationFrame(() => {
|
|
33
|
+
this.container.style.maxHeight = `${this.container.scrollHeight}px`;
|
|
34
|
+
requestAnimationFrame(() => {
|
|
35
|
+
this.container.style.maxHeight = "0px";
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
requestAnimationFrame(() => {
|
|
41
|
+
this.dnnCollapsibleHeightChanged.emit();
|
|
42
|
+
});
|
|
43
|
+
}, this.transitionDuration);
|
|
44
|
+
}
|
|
45
|
+
componentDidLoad() {
|
|
46
|
+
this.container.style.transition = `max-height ${this.transitionDuration}ms ease-in-out`;
|
|
47
|
+
}
|
|
48
|
+
render() {
|
|
49
|
+
return (h(Host, null,
|
|
50
|
+
h("div", { id: "container", class: this.expanded && "expanded", ref: el => this.container = el, style: { transition: `max-height ${this.transitionDuration}ms ease-in-out` } },
|
|
51
|
+
h("slot", null))));
|
|
52
|
+
}
|
|
53
|
+
static get is() { return "dnn-collapsible"; }
|
|
54
|
+
static get encapsulation() { return "shadow"; }
|
|
55
|
+
static get originalStyleUrls() { return {
|
|
56
|
+
"$": ["dnn-collapsible.scss"]
|
|
57
|
+
}; }
|
|
58
|
+
static get styleUrls() { return {
|
|
59
|
+
"$": ["dnn-collapsible.css"]
|
|
60
|
+
}; }
|
|
61
|
+
static get properties() { return {
|
|
62
|
+
"expanded": {
|
|
63
|
+
"type": "boolean",
|
|
64
|
+
"mutable": false,
|
|
65
|
+
"complexType": {
|
|
66
|
+
"original": "boolean",
|
|
67
|
+
"resolved": "boolean",
|
|
68
|
+
"references": {}
|
|
69
|
+
},
|
|
70
|
+
"required": false,
|
|
71
|
+
"optional": false,
|
|
72
|
+
"docs": {
|
|
73
|
+
"tags": [],
|
|
74
|
+
"text": "Defines if the panel is expanded or not."
|
|
75
|
+
},
|
|
76
|
+
"attribute": "expanded",
|
|
77
|
+
"reflect": true,
|
|
78
|
+
"defaultValue": "false"
|
|
79
|
+
},
|
|
80
|
+
"transitionDuration": {
|
|
81
|
+
"type": "number",
|
|
82
|
+
"mutable": false,
|
|
83
|
+
"complexType": {
|
|
84
|
+
"original": "number",
|
|
85
|
+
"resolved": "number",
|
|
86
|
+
"references": {}
|
|
87
|
+
},
|
|
88
|
+
"required": false,
|
|
89
|
+
"optional": true,
|
|
90
|
+
"docs": {
|
|
91
|
+
"tags": [],
|
|
92
|
+
"text": "Defines the transition time in ms, defaults to 150ms"
|
|
93
|
+
},
|
|
94
|
+
"attribute": "transition-duration",
|
|
95
|
+
"reflect": false,
|
|
96
|
+
"defaultValue": "150"
|
|
97
|
+
}
|
|
98
|
+
}; }
|
|
99
|
+
static get events() { return [{
|
|
100
|
+
"method": "dnnCollapsibleHeightChanged",
|
|
101
|
+
"name": "dnnCollapsibleHeightChanged",
|
|
102
|
+
"bubbles": true,
|
|
103
|
+
"cancelable": true,
|
|
104
|
+
"composed": true,
|
|
105
|
+
"docs": {
|
|
106
|
+
"tags": [],
|
|
107
|
+
"text": "Fires whenever the collapsible height has changed"
|
|
108
|
+
},
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "void",
|
|
111
|
+
"resolved": "void",
|
|
112
|
+
"references": {}
|
|
113
|
+
}
|
|
114
|
+
}]; }
|
|
115
|
+
static get methods() { return {
|
|
116
|
+
"updateSize": {
|
|
117
|
+
"complexType": {
|
|
118
|
+
"signature": "() => Promise<void>",
|
|
119
|
+
"parameters": [],
|
|
120
|
+
"references": {
|
|
121
|
+
"Promise": {
|
|
122
|
+
"location": "global"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"return": "Promise<void>"
|
|
126
|
+
},
|
|
127
|
+
"docs": {
|
|
128
|
+
"text": "Updates the component height, use to update after a slot content changes.",
|
|
129
|
+
"tags": []
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}; }
|
|
133
|
+
static get elementRef() { return "el"; }
|
|
134
|
+
static get watchers() { return [{
|
|
135
|
+
"propName": "expanded",
|
|
136
|
+
"methodName": "handledExpandedChanged"
|
|
137
|
+
}]; }
|
|
138
|
+
static get listeners() { return [{
|
|
139
|
+
"name": "dnnCollapsibleHeightChanged",
|
|
140
|
+
"method": "handleHeightChanged",
|
|
141
|
+
"target": undefined,
|
|
142
|
+
"capture": false,
|
|
143
|
+
"passive": false
|
|
144
|
+
}]; }
|
|
145
|
+
}
|
|
143
146
|
//# sourceMappingURL=dnn-collapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dnn-collapsible.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"dnn-collapsible.js","sourceRoot":"","sources":["../../../../src/components/dnn-collapsible/dnn-collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAO9G,MAAM,OAAO,cAAc;EAL3B;IASE,+CAA+C;IACxB,aAAQ,GAAY,KAAK,CAAC;IAEjD,2DAA2D;IACnD,uBAAkB,GAAY,GAAG,CAAC;GAoE3C;EA9DC,mBAAmB;IACjB,qBAAqB,CAAC,GAAG,EAAE;MACzB,IAAI,CAAC,UAAU,EAAE,CAAC;IACpB,CAAC,CAAC,CAAA;EACJ,CAAC;EAED;;KAEG;EAEH,KAAK,CAAC,UAAU;IACd,IAAI,IAAI,CAAC,QAAQ,EAAC;MACd,qBAAqB,CAAC,GAAG,EAAE;QACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,IAAI,CAAC;MACtE,CAAC,CAAC,CAAC;MACH,UAAU,CAAC,GAAG,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;MAC1C,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;KAC/B;EACH,CAAC;EAGD,sBAAsB,CAAC,QAAiB;IACtC,IAAI,QAAQ,EAAC;MACX,IAAI,CAAC,UAAU,EAAE,CAAC;KACnB;SACG;MACF,qBAAqB,CAAC,GAAG,EAAE;QACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,IAAI,CAAC;QACpE,qBAAqB,CAAC,GAAG,EAAE;UACzB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC;QACzC,CAAC,CAAC,CAAC;MACL,CAAC,CAAC,CAAC;KACJ;IACD,UAAU,CAAC,GAAG,EAAE;MACd,qBAAqB,CAAC,GAAG,EAAE;QACzB,IAAI,CAAC,2BAA2B,CAAC,IAAI,EAAE,CAAC;MAC1C,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,CAAC;EAC9B,CAAC;EAID,gBAAgB;IACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,cAAc,IAAI,CAAC,kBAAkB,gBAAgB,CAAC;EAC1F,CAAC;EAED,MAAM;IACJ,OAAO,CACL,EAAC,IAAI;MACH,WACE,EAAE,EAAC,WAAW,EACd,KAAK,EAAE,IAAI,CAAC,QAAQ,IAAI,UAAU,EAClC,GAAG,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,GAAG,EAAE,EAC9B,KAAK,EAAE,EAAC,UAAU,EAAE,cAAc,IAAI,CAAC,kBAAkB,gBAAgB,EAAC;QAExE,eAAa,CACX,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEF","sourcesContent":["import { Component, Host, h, Prop, Element, Event, EventEmitter, Watch, Listen, Method } from '@stencil/core';\n\n@Component({\n tag: \"dnn-collapsible\",\n styleUrl: \"dnn-collapsible.scss\",\n shadow: true\n})\nexport class DnnCollapsible {\n\n @Element() el: HTMLDnnCollapsibleElement;\n\n /** Defines if the panel is expanded or not. */\n @Prop({reflect: true}) expanded: boolean = false;\n\n /** Defines the transition time in ms, defaults to 150ms */\n @Prop() transitionDuration?: number = 150;\n\n /** Fires whenever the collapsible height has changed */\n @Event({bubbles: true, composed: true}) dnnCollapsibleHeightChanged: EventEmitter<void>;\n\n @Listen(\"dnnCollapsibleHeightChanged\")\n handleHeightChanged(){\n requestAnimationFrame(() => {\n this.updateSize();\n })\n }\n\n /**\n * Updates the component height, use to update after a slot content changes.\n */\n @Method()\n async updateSize() {\n if (this.expanded){\n requestAnimationFrame(() => {\n this.container.style.maxHeight = `${this.container.scrollHeight}px`;\n });\n setTimeout(() => {\n this.container.style.maxHeight = \"none\";\n }, this.transitionDuration);\n }\n }\n \n @Watch(\"expanded\")\n handledExpandedChanged(expanded: boolean){\n if (expanded){\n this.updateSize();\n }\n else{\n requestAnimationFrame(() => {\n this.container.style.maxHeight = `${this.container.scrollHeight}px`;\n requestAnimationFrame(() => {\n this.container.style.maxHeight = \"0px\";\n });\n });\n }\n setTimeout(() => {\n requestAnimationFrame(() => {\n this.dnnCollapsibleHeightChanged.emit();\n });\n }, this.transitionDuration);\n }\n \n private container: HTMLDivElement;\n\n componentDidLoad() {\n this.container.style.transition = `max-height ${this.transitionDuration}ms ease-in-out`;\n }\n\n render() {\n return (\n <Host>\n <div\n id=\"container\"\n class={this.expanded && \"expanded\"}\n ref={el => this.container = el}\n style={{transition: `max-height ${this.transitionDuration}ms ease-in-out`}}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n\n}\n"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { html } from "lit-html";
|
|
2
|
+
import { ifDefined } from 'lit-html/directives/if-defined';
|
|
3
|
+
import readme from "./readme.md";
|
|
4
|
+
export default {
|
|
5
|
+
title: "Elements/Collapsible",
|
|
6
|
+
component: "dnn-collapsible",
|
|
7
|
+
parameters: {
|
|
8
|
+
notes: readme,
|
|
9
|
+
actions: {
|
|
10
|
+
handles: ['dnnCollapsibleHeightChanged'],
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
argTypes: {
|
|
14
|
+
expanded: {
|
|
15
|
+
type: "boolean",
|
|
16
|
+
},
|
|
17
|
+
transitionDuration: {
|
|
18
|
+
type: "number",
|
|
19
|
+
},
|
|
20
|
+
'transition-duration': {
|
|
21
|
+
type: "number",
|
|
22
|
+
control: "number",
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
const Template = (args) => html `
|
|
27
|
+
<dnn-collapsible ?expanded=${ifDefined(args.expanded)} transition-duration=${ifDefined(args.transitionDuration)}>
|
|
28
|
+
<div style="border: 1px solid lightgray">
|
|
29
|
+
<h1>This title is inside the collapsible</h1>
|
|
30
|
+
<p>Bacon ipsum dolor amet cupim hamburger beef ribs pork belly porchetta shankle swine. Pork belly jowl rump swine corned beef, pancetta kevin cow. Picanha pork chop pork loin corned beef beef prosciutto t-bone short loin bresaola short ribs chicken andouille. Pig leberkas meatball alcatra ribeye meatloaf. Prosciutto shoulder tongue chuck burgdoggen tenderloin, shank sirloin landjaeger doner shankle meatball kevin pork loin ham hock.</p>
|
|
31
|
+
</div>
|
|
32
|
+
</dnn-collapsible>
|
|
33
|
+
`;
|
|
34
|
+
export const Collapsible = Template.bind({});
|
|
35
|
+
Collapsible.args = {
|
|
36
|
+
expanded: false,
|
|
37
|
+
transitionDuration: 150,
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=dnn-collapsible.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnn-collapsible.stories.js","sourceRoot":"","sources":["../../../../src/components/dnn-collapsible/dnn-collapsible.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,eAAe;EACX,KAAK,EAAE,sBAAsB;EAC7B,SAAS,EAAE,iBAAiB;EAC5B,UAAU,EAAE;IACR,KAAK,EAAE,MAAM;IACb,OAAO,EAAE;MACL,OAAO,EAAE,CAAC,6BAA6B,CAAC;KAC3C;GACJ;EACD,QAAQ,EAAE;IACN,QAAQ,EAAE;MACN,IAAI,EAAE,SAAS;KAClB;IACD,kBAAkB,EAAE;MAChB,IAAI,EAAE,QAAQ;KACjB;IACD,qBAAqB,EAAE;MACnB,IAAI,EAAE,QAAQ;MACd,OAAO,EAAE,QAAQ;KACpB;GACJ;CACI,CAAC;AAEV,MAAM,QAAQ,GAAG,CAAC,IAAwD,EAAE,EAAE,CAC1E,IAAI,CAAA;qCAC6B,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,wBAAwB,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC;;;;;;KAMlH,CAAC;AAEN,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC7C,WAAW,CAAC,IAAI,GAAG;EACf,QAAQ,EAAE,KAAK;EACf,kBAAkB,EAAE,GAAG;CAC1B,CAAC","sourcesContent":["import { html } from \"lit-html\";\r\nimport { ifDefined } from 'lit-html/directives/if-defined';\r\nimport { Meta } from \"@storybook/web-components\";\r\nimport readme from \"./readme.md\";\r\n\r\nexport default {\r\n title: \"Elements/Collapsible\",\r\n component: \"dnn-collapsible\",\r\n parameters: {\r\n notes: readme,\r\n actions: {\r\n handles: ['dnnCollapsibleHeightChanged'],\r\n },\r\n },\r\n argTypes: {\r\n expanded: {\r\n type: \"boolean\",\r\n },\r\n transitionDuration: {\r\n type: \"number\",\r\n },\r\n 'transition-duration': {\r\n type: \"number\",\r\n control: \"number\",\r\n }\r\n }\r\n} as Meta;\r\n\r\nconst Template = (args: { expanded: boolean; transitionDuration: number; }) =>\r\n html`\r\n <dnn-collapsible ?expanded=${ifDefined(args.expanded)} transition-duration=${ifDefined(args.transitionDuration)}>\r\n <div style=\"border: 1px solid lightgray\">\r\n <h1>This title is inside the collapsible</h1>\r\n <p>Bacon ipsum dolor amet cupim hamburger beef ribs pork belly porchetta shankle swine. Pork belly jowl rump swine corned beef, pancetta kevin cow. Picanha pork chop pork loin corned beef beef prosciutto t-bone short loin bresaola short ribs chicken andouille. Pig leberkas meatball alcatra ribeye meatloaf. Prosciutto shoulder tongue chuck burgdoggen tenderloin, shank sirloin landjaeger doner shankle meatball kevin pork loin ham hock.</p>\r\n </div>\r\n </dnn-collapsible>\r\n `;\r\n\r\nexport const Collapsible = Template.bind({});\r\nCollapsible.args = {\r\n expanded: false,\r\n transitionDuration: 150,\r\n};"]}
|