@ulu/frontend 0.1.0-beta.12 → 0.1.0-beta.121
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 +717 -0
- package/GEMINI.md +9 -0
- package/README.dev.md +3 -3
- package/README.md +14 -4
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +36 -29
- package/docs-dev/.nojekyll +1 -0
- package/docs-dev/assets/main.js +832 -421
- package/docs-dev/assets/placeholder/icon-calendar.svg +1 -0
- package/docs-dev/assets/placeholder/icon-check.svg +1 -0
- package/docs-dev/assets/style.css +629 -233
- package/docs-dev/changelog/index.html +7613 -0
- package/docs-dev/changelog/updates-and-changes/index.html +5109 -0
- package/docs-dev/demos/accordion/index.html +1496 -358
- package/docs-dev/demos/badge/index.html +5895 -0
- package/docs-dev/demos/badge-stack/index.html +5876 -0
- package/docs-dev/demos/basic-hero/index.html +111 -0
- package/docs-dev/demos/breadcrumb/index.html +5930 -0
- package/docs-dev/demos/breakpoints-manager/index.html +5906 -0
- package/docs-dev/demos/button/index.html +1537 -343
- package/docs-dev/demos/button-group/index.html +5892 -0
- package/docs-dev/demos/button-verbose/index.html +5898 -0
- package/docs-dev/demos/callout/index.html +1559 -379
- package/docs-dev/demos/captioned-figure/index.html +1492 -339
- package/docs-dev/demos/card/index.html +1592 -800
- package/docs-dev/demos/card-grid/index.html +6017 -0
- package/docs-dev/demos/card-new/index.html +5088 -0
- package/docs-dev/demos/card-old/index.html +5223 -0
- package/docs-dev/demos/card.1/index.html +5223 -0
- package/docs-dev/demos/card.TRASH/index.html +5541 -0
- package/docs-dev/demos/counter-list/index.html +5900 -0
- package/docs-dev/demos/css-icons/index.html +1556 -380
- package/docs-dev/demos/data-grid/index.html +1492 -339
- package/docs-dev/demos/data-table/index.html +1634 -348
- package/docs-dev/demos/definition-list/index.html +6011 -0
- package/docs-dev/demos/details-group/index.html +5927 -0
- package/docs-dev/demos/donut-chart/index.html +5874 -0
- package/docs-dev/demos/file-save/index.html +1492 -339
- package/docs-dev/demos/flipcard/index.html +1492 -339
- package/docs-dev/demos/form-theme/index.html +1500 -347
- package/docs-dev/demos/headline-label/index.html +5862 -0
- package/docs-dev/demos/hero/index.html +12 -4
- package/docs-dev/demos/image-grid/index.html +12 -4
- package/docs-dev/demos/index.html +1493 -340
- package/docs-dev/demos/list-inline/index.html +1492 -339
- package/docs-dev/demos/list-lines/index.html +1492 -339
- package/docs-dev/demos/menu-stack/index.html +1652 -378
- package/docs-dev/demos/modals/index.html +1642 -366
- package/docs-dev/demos/nav-strip/index.html +1492 -339
- package/docs-dev/demos/overlay-section/index.html +1611 -388
- package/docs-dev/demos/panel/index.html +5922 -0
- package/docs-dev/demos/popovers/index.html +1752 -357
- package/docs-dev/demos/print/index.html +1492 -339
- package/docs-dev/demos/progress-bar/index.html +6030 -0
- package/docs-dev/demos/progress-circle/index.html +6197 -0
- package/docs-dev/demos/progress-donut/index.html +6107 -0
- package/docs-dev/demos/pull-quote/index.html +1492 -339
- package/docs-dev/demos/rail/index.html +5970 -0
- package/docs-dev/demos/rule/index.html +1509 -344
- package/docs-dev/demos/scroll-slider/index.html +72 -106
- package/docs-dev/demos/scrollpoints/index.html +1493 -340
- package/docs-dev/demos/skeleton/index.html +5918 -0
- package/docs-dev/demos/slider/index.html +12 -4
- package/docs-dev/demos/spoke-spinner/index.html +1492 -339
- package/docs-dev/demos/sticky-list/index.html +5883 -0
- package/docs-dev/demos/tabs/index.html +1565 -376
- package/docs-dev/demos/tag/index.html +1510 -345
- package/docs-dev/demos/theme-toggle/index.html +5939 -0
- package/docs-dev/demos/tile-grid-overlay/index.html +12 -4
- package/docs-dev/demos/tiles/index.html +1492 -339
- package/docs-dev/demos/tooltip/index.html +1492 -339
- package/docs-dev/demos/wysiwyg/index.html +5912 -0
- package/docs-dev/guide/building-stylesheet/index.html +1492 -339
- package/docs-dev/guide/developing-ulu-scss-module/index.html +1492 -339
- package/docs-dev/guide/index.html +1492 -339
- package/docs-dev/guide/updates-and-changes/index.html +5033 -0
- package/docs-dev/index.html +1492 -339
- package/docs-dev/javascript/events/index.html +1567 -376
- package/docs-dev/javascript/index.html +1492 -339
- package/docs-dev/javascript/settings/index.html +6065 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +1506 -355
- package/docs-dev/javascript/ui-collapsible/index.html +1491 -340
- package/docs-dev/javascript/ui-details-group/index.html +5982 -0
- package/docs-dev/javascript/ui-dialog/index.html +1523 -357
- package/docs-dev/javascript/ui-flipcard/index.html +1552 -345
- package/docs-dev/javascript/ui-grid/index.html +1538 -413
- package/docs-dev/javascript/ui-modal-builder/index.html +1761 -470
- package/docs-dev/javascript/ui-overflow-scroller/index.html +1491 -340
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +1491 -340
- package/docs-dev/javascript/ui-page/index.html +1491 -340
- package/docs-dev/javascript/ui-popover/index.html +1501 -354
- package/docs-dev/javascript/ui-print/index.html +1489 -346
- package/docs-dev/javascript/ui-print-details/index.html +1491 -340
- package/docs-dev/javascript/ui-programmatic-modal/index.html +1491 -340
- package/docs-dev/javascript/ui-proxy-click/index.html +1591 -355
- package/docs-dev/javascript/ui-resizer/index.html +1850 -434
- package/docs-dev/javascript/ui-scroll-slider/index.html +1531 -348
- package/docs-dev/javascript/ui-scrollpoint/index.html +1501 -357
- package/docs-dev/javascript/ui-slider/index.html +1708 -366
- package/docs-dev/javascript/ui-tabs/index.html +1523 -409
- package/docs-dev/javascript/ui-theme-toggle/index.html +6070 -0
- package/docs-dev/javascript/ui-tooltip/index.html +1501 -354
- package/docs-dev/javascript/utils-class-logger/index.html +1492 -341
- package/docs-dev/javascript/utils-css/index.html +5884 -0
- package/docs-dev/javascript/utils-dom/index.html +1523 -452
- package/docs-dev/javascript/utils-file-save/index.html +1491 -340
- package/docs-dev/javascript/utils-floating-ui/index.html +1491 -340
- package/docs-dev/javascript/utils-id/index.html +1491 -340
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +1491 -340
- package/docs-dev/javascript/utils-system/index.html +6187 -0
- package/docs-dev/sass/base/color/index.html +1491 -340
- package/docs-dev/sass/base/elements/index.html +1492 -341
- package/docs-dev/sass/base/index/index.html +1492 -341
- package/docs-dev/sass/base/index.html +1492 -339
- package/docs-dev/sass/base/keyframes/index.html +1492 -341
- package/docs-dev/sass/base/layout/index.html +1492 -341
- package/docs-dev/sass/base/normalize/index.html +1491 -340
- package/docs-dev/sass/base/print/index.html +1492 -341
- package/docs-dev/sass/base/root/index.html +1495 -344
- package/docs-dev/sass/base/typography/index.html +1491 -340
- package/docs-dev/sass/components/accordion/index.html +1628 -436
- package/docs-dev/sass/components/adaptive-spacing/index.html +1491 -340
- package/docs-dev/sass/components/badge/index.html +1522 -353
- package/docs-dev/sass/components/badge-stack/index.html +6051 -0
- package/docs-dev/sass/components/basic-hero/index.html +6045 -0
- package/docs-dev/sass/components/breadcrumb/index.html +6092 -0
- package/docs-dev/sass/components/button/index.html +1491 -340
- package/docs-dev/sass/components/button-group/index.html +6043 -0
- package/docs-dev/sass/components/button-verbose/index.html +1613 -387
- package/docs-dev/sass/components/callout/index.html +1598 -388
- package/docs-dev/sass/components/captioned-figure/index.html +1491 -340
- package/docs-dev/sass/components/card/index.html +1601 -393
- package/docs-dev/sass/components/card-grid/index.html +1491 -340
- package/docs-dev/sass/components/counter-list/index.html +6127 -0
- package/docs-dev/sass/components/css-icon/index.html +1492 -341
- package/docs-dev/sass/components/data-grid/index.html +1511 -353
- package/docs-dev/sass/components/data-table/index.html +1510 -352
- package/docs-dev/sass/components/definition-list/index.html +6107 -0
- package/docs-dev/sass/components/fill-context/index.html +1491 -340
- package/docs-dev/sass/components/flipcard/index.html +1569 -387
- package/docs-dev/sass/components/flipcard-grid/index.html +1491 -340
- package/docs-dev/sass/components/form-theme/index.html +1718 -572
- package/docs-dev/sass/components/headline-label/index.html +6073 -0
- package/docs-dev/sass/components/hero/index.html +1499 -348
- package/docs-dev/sass/components/horizontal-rule/index.html +1491 -340
- package/docs-dev/sass/components/image-grid/index.html +1491 -340
- package/docs-dev/sass/components/index/index.html +1514 -349
- package/docs-dev/sass/components/index.html +1492 -339
- package/docs-dev/sass/components/links/index.html +1491 -340
- package/docs-dev/sass/components/list-inline/index.html +1491 -340
- package/docs-dev/sass/components/list-lines/index.html +1491 -340
- package/docs-dev/sass/components/list-ordered/index.html +1491 -340
- package/docs-dev/sass/components/list-unordered/index.html +1491 -340
- package/docs-dev/sass/components/menu-stack/index.html +1578 -378
- package/docs-dev/sass/components/modal/index.html +1576 -390
- package/docs-dev/sass/components/nav-strip/index.html +1499 -348
- package/docs-dev/sass/components/overlay-section/index.html +1499 -348
- package/docs-dev/sass/components/pager/index.html +1491 -340
- package/docs-dev/sass/components/panel/index.html +6273 -0
- package/docs-dev/sass/components/placeholder-block/index.html +1491 -340
- package/docs-dev/sass/components/popover/index.html +1561 -404
- package/docs-dev/sass/components/progress-bar/index.html +6252 -0
- package/docs-dev/sass/components/progress-circle/index.html +6144 -0
- package/docs-dev/sass/components/pull-quote/index.html +1491 -340
- package/docs-dev/sass/components/rail/index.html +6063 -0
- package/docs-dev/sass/components/ratio-box/index.html +1499 -348
- package/docs-dev/sass/components/rule/index.html +1492 -341
- package/docs-dev/sass/components/scroll-slider/index.html +1501 -362
- package/docs-dev/sass/components/skeleton/index.html +6101 -0
- package/docs-dev/sass/components/skip-link/index.html +1491 -340
- package/docs-dev/sass/components/slider/index.html +1581 -442
- package/docs-dev/sass/components/spoke-spinner/index.html +1493 -342
- package/docs-dev/sass/components/sticky-list/index.html +6263 -0
- package/docs-dev/sass/components/table-sticky/index.html +5707 -0
- package/docs-dev/sass/components/tabs/index.html +1519 -353
- package/docs-dev/sass/components/tag/index.html +1648 -403
- package/docs-dev/sass/components/tile-button/index.html +1491 -340
- package/docs-dev/sass/components/tile-grid/index.html +1491 -340
- package/docs-dev/sass/components/tile-grid-overlay/index.html +1491 -340
- package/docs-dev/sass/components/vignette/index.html +1499 -348
- package/docs-dev/sass/components/wysiwyg/index.html +1524 -355
- package/docs-dev/sass/core/breakpoint/index.html +1577 -374
- package/docs-dev/sass/core/button/index.html +1523 -370
- package/docs-dev/sass/core/color/index.html +1768 -485
- package/docs-dev/sass/core/cssvar/index.html +1491 -340
- package/docs-dev/sass/core/element/index.html +1837 -404
- package/docs-dev/sass/core/index.html +1491 -340
- package/docs-dev/sass/core/layout/index.html +1582 -412
- package/docs-dev/sass/core/path/index.html +1491 -340
- package/docs-dev/sass/core/selector/index.html +1491 -340
- package/docs-dev/sass/core/typography/index.html +1657 -448
- package/docs-dev/sass/core/units/index.html +1499 -342
- package/docs-dev/sass/core/utils/index.html +2781 -481
- package/docs-dev/sass/helpers/color/index.html +1491 -340
- package/docs-dev/sass/helpers/display/index.html +1492 -341
- package/docs-dev/sass/helpers/index/index.html +1491 -340
- package/docs-dev/sass/helpers/index.html +1492 -339
- package/docs-dev/sass/helpers/print/index.html +759 -298
- package/docs-dev/sass/helpers/typography/index.html +1491 -340
- package/docs-dev/sass/helpers/units/index.html +1491 -340
- package/docs-dev/sass/helpers/utilities/index.html +1495 -340
- package/docs-dev/sass/index.html +1492 -339
- package/js/events/index.js +17 -5
- package/js/index.js +1 -0
- package/js/settings.js +97 -0
- package/js/ui/breakpoints.js +19 -16
- package/js/ui/collapsible.js +8 -1
- package/js/ui/details-group.js +112 -0
- package/js/ui/dialog.js +103 -44
- package/js/ui/dialog.todo +2 -36
- package/js/ui/flipcard.js +37 -57
- package/js/ui/grid.js +15 -13
- package/js/ui/index.js +1 -0
- package/js/ui/modal-builder.js +127 -70
- package/js/ui/overflow-scroller.js +6 -4
- package/js/ui/page.js +2 -2
- package/js/ui/popover.js +38 -38
- package/js/ui/print.js +16 -25
- package/js/ui/programmatic-modal.js +9 -3
- package/js/ui/proxy-click.js +50 -36
- package/js/ui/resizer.js +408 -39
- package/js/ui/scroll-slider.js +24 -30
- package/js/ui/scrollpoint.js +29 -64
- package/js/ui/slider.js +108 -63
- package/js/ui/tabs.js +23 -36
- package/js/ui/theme-toggle.js +332 -94
- package/js/ui/tooltip.js +27 -32
- package/js/utils/class-logger.js +3 -3
- package/js/utils/css.js +13 -0
- package/js/utils/dom.js +23 -64
- package/js/utils/font-awesome.js +19 -0
- package/js/utils/index.js +2 -1
- package/js/utils/system.js +155 -0
- package/package.json +24 -9
- package/scss/README.md +9 -0
- package/scss/_breakpoint.scss +39 -5
- package/scss/_button.scss +7 -5
- package/scss/_color.scss +71 -40
- package/scss/_element.scss +124 -2
- package/scss/_layout.scss +7 -8
- package/scss/_typography.scss +15 -0
- package/scss/_units.scss +3 -2
- package/scss/_utils.scss +387 -16
- package/scss/base/_elements.scss +0 -1
- package/scss/base/_index.scss +1 -1
- package/scss/base/_keyframes.scss +15 -0
- package/scss/base/_layout.scss +1 -0
- package/scss/base/_print.scss +2 -0
- package/scss/base/_root.scss +2 -0
- package/scss/components/_accordion.scss +167 -110
- package/scss/components/_badge-stack.scss +84 -0
- package/scss/components/_badge.scss +30 -7
- package/scss/components/_basic-hero.scss +112 -0
- package/scss/components/_breadcrumb.scss +110 -0
- package/scss/components/_button-group.scss +90 -0
- package/scss/components/_button-verbose.scss +100 -18
- package/scss/components/_callout.scss +112 -53
- package/scss/components/_card-grid.scss +5 -2
- package/scss/components/_card.scss +216 -87
- package/scss/components/_counter-list.scss +151 -0
- package/scss/components/_css-icon.scss +27 -17
- package/scss/components/_data-grid.scss +55 -12
- package/scss/components/_data-table.scss +3 -0
- package/scss/components/_definition-list.scss +178 -0
- package/scss/components/_flipcard.scss +8 -3
- package/scss/components/_form-theme.scss +106 -95
- package/scss/components/_headline-label.scss +83 -0
- package/scss/components/_hero.scss +3 -10
- package/scss/components/_index.scss +79 -0
- package/scss/components/_menu-stack.scss +87 -23
- package/scss/components/_modal.scss +51 -23
- package/scss/components/_nav-strip.scss +2 -0
- package/scss/components/_overlay-section.scss +2 -5
- package/scss/components/_panel.scss +246 -0
- package/scss/components/_popover.scss +139 -38
- package/scss/components/_progress-bar.scss +260 -0
- package/scss/components/_progress-circle.scss +175 -0
- package/scss/components/_pull-quote.scss +1 -1
- package/scss/components/_rail.scss +127 -0
- package/scss/components/_ratio-box.scss +2 -5
- package/scss/components/_rule.scss +1 -0
- package/scss/components/_scroll-slider.scss +1 -5
- package/scss/components/_skeleton.scss +126 -0
- package/scss/components/_slider.scss +49 -72
- package/scss/components/_spoke-spinner.scss +2 -2
- package/scss/components/_sticky-list.scss +206 -0
- package/scss/components/_tabs.scss +22 -4
- package/scss/components/_tag.scss +49 -7
- package/scss/components/_vignette.scss +2 -5
- package/scss/components/_wysiwyg.scss +21 -13
- package/scss/helpers/_display.scss +15 -18
- package/scss/helpers/_print.scss +12 -7
- package/scss/helpers/_utilities.scss +62 -34
- package/types/events/index.d.ts +10 -1
- package/types/events/index.d.ts.map +1 -1
- package/types/index.d.ts +1 -0
- package/types/settings.d.ts +70 -0
- package/types/settings.d.ts.map +1 -0
- package/types/ui/breakpoints.d.ts +14 -14
- package/types/ui/breakpoints.d.ts.map +1 -1
- package/types/ui/collapsible.d.ts.map +1 -1
- package/types/ui/details-group.d.ts +38 -0
- package/types/ui/details-group.d.ts.map +1 -0
- package/types/ui/dialog.d.ts +20 -14
- package/types/ui/dialog.d.ts.map +1 -1
- package/types/ui/flipcard.d.ts +16 -10
- package/types/ui/flipcard.d.ts.map +1 -1
- package/types/ui/grid.d.ts +4 -6
- package/types/ui/grid.d.ts.map +1 -1
- package/types/ui/index.d.ts +1 -0
- package/types/ui/modal-builder.d.ts +116 -11
- package/types/ui/modal-builder.d.ts.map +1 -1
- package/types/ui/overflow-scroller.d.ts +2 -2
- package/types/ui/overflow-scroller.d.ts.map +1 -1
- package/types/ui/popover.d.ts +6 -7
- package/types/ui/popover.d.ts.map +1 -1
- package/types/ui/print.d.ts +0 -4
- package/types/ui/print.d.ts.map +1 -1
- package/types/ui/programmatic-modal.d.ts.map +1 -1
- package/types/ui/proxy-click.d.ts +19 -3
- package/types/ui/proxy-click.d.ts.map +1 -1
- package/types/ui/resizer.d.ts +116 -16
- package/types/ui/resizer.d.ts.map +1 -1
- package/types/ui/scroll-slider.d.ts +5 -7
- package/types/ui/scroll-slider.d.ts.map +1 -1
- package/types/ui/scrollpoint.d.ts +3 -8
- package/types/ui/scrollpoint.d.ts.map +1 -1
- package/types/ui/slider.d.ts +33 -14
- package/types/ui/slider.d.ts.map +1 -1
- package/types/ui/tabs.d.ts +6 -8
- package/types/ui/tabs.d.ts.map +1 -1
- package/types/ui/theme-toggle.d.ts +51 -7
- package/types/ui/theme-toggle.d.ts.map +1 -1
- package/types/ui/tooltip.d.ts +3 -5
- package/types/ui/tooltip.d.ts.map +1 -1
- package/types/utils/css.d.ts +11 -0
- package/types/utils/css.d.ts.map +1 -0
- package/types/utils/dom.d.ts +12 -32
- package/types/utils/dom.d.ts.map +1 -1
- package/types/utils/font-awesome.d.ts +5 -0
- package/types/utils/font-awesome.d.ts.map +1 -0
- package/types/utils/index.d.ts +1 -0
- package/types/utils/system.d.ts +113 -0
- package/types/utils/system.d.ts.map +1 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize everything in document
|
|
3
|
+
* - This will only initialize elements once, it is safe to call on page changes
|
|
4
|
+
*/
|
|
5
|
+
export function init(): void;
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {Object} DetailsGroupInstance
|
|
8
|
+
* @property {Function} destroy A function to remove event listeners and attributes.
|
|
9
|
+
* @property {HTMLElement} element The parent element.
|
|
10
|
+
* @property {Function} setupChildren A function to initialize the child details elements.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Sets up a single group of details elements to manage their behavior.
|
|
14
|
+
* @param {HTMLElement} element - The parent element containing the details elements.
|
|
15
|
+
* @param {Object} options - The options for this group
|
|
16
|
+
* @returns {DetailsGroupInstance}
|
|
17
|
+
*/
|
|
18
|
+
export function setupGroup(element: HTMLElement, userOptions: any): DetailsGroupInstance;
|
|
19
|
+
/**
|
|
20
|
+
* Dialog Component Initializer
|
|
21
|
+
*/
|
|
22
|
+
export const initializer: ComponentInitializer;
|
|
23
|
+
export type DetailsGroupInstance = {
|
|
24
|
+
/**
|
|
25
|
+
* A function to remove event listeners and attributes.
|
|
26
|
+
*/
|
|
27
|
+
destroy: Function;
|
|
28
|
+
/**
|
|
29
|
+
* The parent element.
|
|
30
|
+
*/
|
|
31
|
+
element: HTMLElement;
|
|
32
|
+
/**
|
|
33
|
+
* A function to initialize the child details elements.
|
|
34
|
+
*/
|
|
35
|
+
setupChildren: Function;
|
|
36
|
+
};
|
|
37
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
38
|
+
//# sourceMappingURL=details-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-group.d.ts","sourceRoot":"","sources":["../../js/ui/details-group.js"],"names":[],"mappings":"AAqBA;;;GAGG;AACH,6BASC;AAED;;;;;GAKG;AAEH;;;;;GAKG;AACH,oCAJW,WAAW,qBAET,oBAAoB,CAgEhC;AAxGD;;GAEG;AACH,+CAGG;;;;;;;;;aA0BW,WAAW;;;;;;qCAlCY,oBAAoB"}
|
package/types/ui/dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {Object} options Change options used as default for dialogs, can then be
|
|
2
|
+
* @param {Object} options Change options used as default for dialogs, can then be overridden by data attribute settings on element
|
|
3
3
|
*/
|
|
4
4
|
export function setDefaults(options: any): void;
|
|
5
5
|
/**
|
|
@@ -7,36 +7,42 @@ export function setDefaults(options: any): void;
|
|
|
7
7
|
* - This will only initialize elements once, it is safe to call on page changes
|
|
8
8
|
*/
|
|
9
9
|
export function init(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Setup dialogs and triggers
|
|
12
|
-
*/
|
|
13
|
-
export function setup(): void;
|
|
14
10
|
/**
|
|
15
11
|
* Setup click handlers on a trigger
|
|
16
|
-
* @param {Node} trigger
|
|
12
|
+
* @param {Node} trigger Trigger button element
|
|
13
|
+
* @param {String} dialogId The dialog's id to open
|
|
17
14
|
*/
|
|
18
|
-
export function setupTrigger(trigger: Node): void;
|
|
15
|
+
export function setupTrigger(trigger: Node, dialogId: string): void;
|
|
19
16
|
/**
|
|
20
17
|
* Setup click handlers for a dialog
|
|
21
18
|
* @param {Node} dialog
|
|
22
19
|
*/
|
|
23
|
-
export function setupDialog(dialog: Node): void;
|
|
20
|
+
export function setupDialog(dialog: Node, userOptions: any): void;
|
|
24
21
|
/**
|
|
25
22
|
* For a given dialog, get it's options (from data attribute)
|
|
26
23
|
* @param {Node} dialog
|
|
27
24
|
* @returns {Object}
|
|
28
25
|
*/
|
|
29
26
|
export function getDialogOptions(dialog: Node): any;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Base attribute for a dialog
|
|
29
|
+
*/
|
|
30
|
+
export const baseAttribute: "data-ulu-dialog";
|
|
31
|
+
/**
|
|
32
|
+
* Dialog Component Initializer
|
|
33
|
+
*/
|
|
34
|
+
export const initializer: ComponentInitializer;
|
|
35
|
+
/**
|
|
36
|
+
* Attribute for close buttons within a dialog
|
|
37
|
+
*/
|
|
38
|
+
export const closeAttribute: string;
|
|
36
39
|
export namespace defaults {
|
|
37
40
|
let nonModal: boolean;
|
|
38
41
|
let documentEnd: boolean;
|
|
39
42
|
let clickOutsideCloses: boolean;
|
|
40
43
|
let pauseVideos: boolean;
|
|
44
|
+
let preventScroll: boolean;
|
|
45
|
+
let preventScrollShift: boolean;
|
|
41
46
|
}
|
|
47
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
42
48
|
//# sourceMappingURL=dialog.d.ts.map
|
package/types/ui/dialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../js/ui/dialog.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../js/ui/dialog.js"],"names":[],"mappings":"AA6DA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAqBC;AAED;;;;GAIG;AACH,sCAHW,IAAI,0BA2Bd;AAED;;;GAGG;AACH,oCAFW,IAAI,0BA6Dd;AAED;;;;GAIG;AACH,yCAHW,IAAI,OAKd;AA7LD;;GAEG;AACH,8CAA+C;AAE/C;;GAEG;AACH,+CAAuF;AAEvF;;GAEG;AACH,oCAAgE;;;;;;;;;qCAjB3B,oBAAoB"}
|
package/types/ui/flipcard.d.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize flipcards using data-ulu-flipcard attribute
|
|
3
|
+
*/
|
|
1
4
|
export function init(): void;
|
|
2
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Flipcard Component Initializer
|
|
7
|
+
*/
|
|
8
|
+
export const initializer: ComponentInitializer;
|
|
9
|
+
/**
|
|
10
|
+
* Flipcard class (creates flipcard instance and behaviors)
|
|
11
|
+
*/
|
|
3
12
|
export class Flipcard {
|
|
4
13
|
static instances: any[];
|
|
14
|
+
/**
|
|
15
|
+
* Default options for Flipcard
|
|
16
|
+
*/
|
|
5
17
|
static defaults: {
|
|
6
18
|
namespace: string;
|
|
7
19
|
proxyClick: {
|
|
@@ -10,9 +22,8 @@ export class Flipcard {
|
|
|
10
22
|
exclude: string;
|
|
11
23
|
};
|
|
12
24
|
};
|
|
13
|
-
constructor(container: any, front: any, back: any, config: any
|
|
25
|
+
constructor(container: any, front: any, back: any, config: any);
|
|
14
26
|
options: any;
|
|
15
|
-
debug: boolean;
|
|
16
27
|
elements: {
|
|
17
28
|
container: any;
|
|
18
29
|
front: any;
|
|
@@ -32,14 +43,9 @@ export class Flipcard {
|
|
|
32
43
|
}): void;
|
|
33
44
|
getClass(child: any): any;
|
|
34
45
|
createControlContent(): string;
|
|
35
|
-
|
|
46
|
+
setVisibility(visible: any): void;
|
|
36
47
|
containerCss(): string;
|
|
37
48
|
panelCss(zIndex?: number): string;
|
|
38
49
|
}
|
|
39
|
-
|
|
40
|
-
let init: string;
|
|
41
|
-
let flipcard: string;
|
|
42
|
-
let front: string;
|
|
43
|
-
let back: string;
|
|
44
|
-
}
|
|
50
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
45
51
|
//# sourceMappingURL=flipcard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flipcard.d.ts","sourceRoot":"","sources":["../../js/ui/flipcard.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flipcard.d.ts","sourceRoot":"","sources":["../../js/ui/flipcard.js"],"names":[],"mappings":"AAgBA;;GAEG;AACH,6BAYC;AAvBD;;GAEG;AACH,+CAGG;AAmBH;;GAEG;AACH;IACE,wBAAsB;IACtB;;OAEG;IACH;;;;;;;MAOE;IACF,gEAgBC;IAZC,aAA2D;IAK3D;;;;MAA0C;IAC1C,gBAAmB;IACnB,YAA6D;IAC7D,kBAA0D;IAK5D,eAEC;IACD,cAqCC;IACD;;;OAGG;IACH;;aAQC;IACD,0BAGC;IACD,+BAIC;IACD,kCASC;IACD,uBAWC;IACD,kCAKC;CACF;qCAzJoC,oBAAoB"}
|
package/types/ui/grid.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Sets up document for grid position classes
|
|
3
|
-
* @param {String} selector The selector for the parent element
|
|
4
3
|
* @param {Object} classes Classes (optional) @see setPositionClasses
|
|
5
4
|
*/
|
|
6
|
-
export function init(
|
|
5
|
+
export function init(classes: any): void;
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {String} selector The selector for the parent element
|
|
10
|
-
* @param {Object} classes Classes (optional) @see setPositionClasses
|
|
7
|
+
* Dialog Component Initializer
|
|
11
8
|
*/
|
|
12
|
-
export
|
|
9
|
+
export const initializer: ComponentInitializer;
|
|
10
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
13
11
|
//# sourceMappingURL=grid.d.ts.map
|
package/types/ui/grid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../js/ui/grid.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../js/ui/grid.js"],"names":[],"mappings":"AAeA;;;GAGG;AACH,yCAQC;AApBD;;GAEG;AACH,+CAGG;qCATkC,oBAAoB"}
|
package/types/ui/index.d.ts
CHANGED
|
@@ -19,5 +19,6 @@ export * as print from "./print.js";
|
|
|
19
19
|
export * as printDetails from "./print-details.js";
|
|
20
20
|
export * as scrollSlider from "./scroll-slider.js";
|
|
21
21
|
export * as themeToggle from "./theme-toggle.js";
|
|
22
|
+
export * as detailsGroup from "./details-group.js";
|
|
22
23
|
declare namespace ___Users_joescherben_Personal_Projects_ULU_frontend_js_ui_index_ { }
|
|
23
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -7,15 +7,6 @@ export function setDefaults(options: any): void;
|
|
|
7
7
|
* - This will only initialize elements once, it is safe to call on page changes
|
|
8
8
|
*/
|
|
9
9
|
export function init(): void;
|
|
10
|
-
/**
|
|
11
|
-
* Query and setup all builder
|
|
12
|
-
*/
|
|
13
|
-
export function setup(): void;
|
|
14
|
-
/**
|
|
15
|
-
* Build a dialog for the given content
|
|
16
|
-
* @param {Node} element
|
|
17
|
-
*/
|
|
18
|
-
export function setupBuilder(element: Node): void;
|
|
19
10
|
/**
|
|
20
11
|
*
|
|
21
12
|
* @param {Node} content Content element of the dialog (what is inserted into the body)
|
|
@@ -23,10 +14,18 @@ export function setupBuilder(element: Node): void;
|
|
|
23
14
|
*/
|
|
24
15
|
export function buildModal(content: Node, options: any): {
|
|
25
16
|
modal: Element;
|
|
17
|
+
resizer: Resizer;
|
|
26
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* Modal Builder Component Initializer
|
|
21
|
+
*/
|
|
22
|
+
export const initializer: ComponentInitializer;
|
|
27
23
|
export namespace defaults {
|
|
28
24
|
export let title: any;
|
|
29
25
|
export let titleIcon: any;
|
|
26
|
+
export let titleClass: string;
|
|
27
|
+
export let labelledby: any;
|
|
28
|
+
export let describedby: any;
|
|
30
29
|
export let nonModal: boolean;
|
|
31
30
|
export let documentEnd: boolean;
|
|
32
31
|
export let allowResize: boolean;
|
|
@@ -38,8 +37,12 @@ export namespace defaults {
|
|
|
38
37
|
export let noMinHeight: boolean;
|
|
39
38
|
let _class: string;
|
|
40
39
|
export { _class as class };
|
|
41
|
-
export let
|
|
42
|
-
export let
|
|
40
|
+
export let baseClass: string;
|
|
41
|
+
export let footerElement: any;
|
|
42
|
+
export let footerHtml: any;
|
|
43
|
+
export let classCloseIcon: any;
|
|
44
|
+
export let classResizerIcon: any;
|
|
45
|
+
export let classResizerIconBoth: any;
|
|
43
46
|
export let debug: boolean;
|
|
44
47
|
export function templateCloseIcon(config: any): string;
|
|
45
48
|
export function templateResizerIcon(config: any): string;
|
|
@@ -51,4 +54,106 @@ export namespace defaults {
|
|
|
51
54
|
*/
|
|
52
55
|
export function template(id: string, config: any): string;
|
|
53
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Default builder options (extends dialog defaults, watch name collisions)
|
|
59
|
+
* - Decided to extend defaults so the interface in HTML is singular
|
|
60
|
+
* - This is sometimes easier to template (merging and serializing options
|
|
61
|
+
* in twig for example)
|
|
62
|
+
*/
|
|
63
|
+
export type DefaultModalOptions = {
|
|
64
|
+
/**
|
|
65
|
+
* - The title of the modal. Defaults to `null`.
|
|
66
|
+
*/
|
|
67
|
+
title: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* - The class name for an icon to display in the title. Defaults to `null`.
|
|
70
|
+
*/
|
|
71
|
+
titleIcon: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* - Extra class/classes to add to title
|
|
74
|
+
*/
|
|
75
|
+
titleClass: string;
|
|
76
|
+
/**
|
|
77
|
+
* - Set the aria-labelledby attribute to a specific title within the modal, to connect to a custom title implementation, if using built in title this will be set automatically
|
|
78
|
+
*/
|
|
79
|
+
labelledby: string;
|
|
80
|
+
/**
|
|
81
|
+
* - Set the aria-describedby on the dialog, elements id, to tie a specific part of the content to be the accessible description
|
|
82
|
+
*/
|
|
83
|
+
describedby: string;
|
|
84
|
+
/**
|
|
85
|
+
* - If `true`, the modal will not prevent interaction with elements behind it. Defaults to `false`.
|
|
86
|
+
*/
|
|
87
|
+
nonModal: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* - If `true`, the modal will be appended to the end of the `document.body`. Defaults to `true`.
|
|
90
|
+
*/
|
|
91
|
+
documentEnd: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* - If `true`, the modal will be resizable. Defaults to `false`.
|
|
94
|
+
*/
|
|
95
|
+
allowResize: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* - The initial position of the modal. Defaults to `"center"`.
|
|
98
|
+
*/
|
|
99
|
+
position: "center" | "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
100
|
+
/**
|
|
101
|
+
* - If `true`, the modal body will fill the available space. Defaults to `false`.
|
|
102
|
+
*/
|
|
103
|
+
bodyFills: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* - If `true`, no backdrop will be displayed behind the modal. Defaults to `false`.
|
|
106
|
+
*/
|
|
107
|
+
noBackdrop: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* - The size of the modal. Defaults to `"default"`.
|
|
110
|
+
*/
|
|
111
|
+
size: "default" | "small" | "large" | "fullscreen";
|
|
112
|
+
/**
|
|
113
|
+
* - If `true`, the modal content will be optimized for printing. Defaults to `false`.
|
|
114
|
+
*/
|
|
115
|
+
print: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* - If `true`, the modal will not have a minimum height. Defaults to `false`.
|
|
118
|
+
*/
|
|
119
|
+
noMinHeight: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* - Additional CSS class(es) to add to the modal. Defaults to `""`.
|
|
122
|
+
*/
|
|
123
|
+
class: string;
|
|
124
|
+
/**
|
|
125
|
+
* - The base CSS class for the modal elements. Defaults to `"modal"`.
|
|
126
|
+
*/
|
|
127
|
+
baseClass: string;
|
|
128
|
+
/**
|
|
129
|
+
* - The class name for the close icon. Uses the wrapped setting string.
|
|
130
|
+
*/
|
|
131
|
+
classCloseIcon: string;
|
|
132
|
+
/**
|
|
133
|
+
* - The class name for the resizer icon. Uses the wrapped setting string.
|
|
134
|
+
*/
|
|
135
|
+
classResizerIcon: string;
|
|
136
|
+
/**
|
|
137
|
+
* - Element or selector to use as the footer (will be moved to dialog on creation, used for DOM API)
|
|
138
|
+
*/
|
|
139
|
+
footerElement: string | Node;
|
|
140
|
+
/**
|
|
141
|
+
* - Markup to use in the footer
|
|
142
|
+
*/
|
|
143
|
+
footerHtml: string | Node;
|
|
144
|
+
/**
|
|
145
|
+
* - Enables debug logging. Defaults to `false`.
|
|
146
|
+
*/
|
|
147
|
+
debug: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* - A function that returns the HTML for the close icon.
|
|
150
|
+
*/
|
|
151
|
+
templateCloseIcon: (arg0: object) => string;
|
|
152
|
+
/**
|
|
153
|
+
* - The resolved modal configuration object.
|
|
154
|
+
*/
|
|
155
|
+
config: (arg0: object) => string;
|
|
156
|
+
};
|
|
157
|
+
import { Resizer } from "./resizer.js";
|
|
158
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
54
159
|
//# sourceMappingURL=modal-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-builder.d.ts","sourceRoot":"","sources":["../../js/ui/modal-builder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal-builder.d.ts","sourceRoot":"","sources":["../../js/ui/modal-builder.js"],"names":[],"mappings":"AAkJA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BAQC;AAED;;;;GAIG;AACH,oCAHW,IAAI;;;EAsEd;AAlOD;;GAEG;AACH,+CAGG;;;;;;;;;;;;;;;;;;;;;;;;;IA+DD,uDAGC;IACD,yDAIC;IACD;;;;;OAKG;IACH,0DA2CC;;;;;;;;;;;;WAjHW,MAAM,GAAC,IAAI;;;;eACX,MAAM,GAAC,IAAI;;;;gBACX,MAAM;;;;gBACN,MAAM;;;;iBACN,MAAM;;;;cACN,OAAO;;;;iBACP,OAAO;;;;iBACP,OAAO;;;;cACP,QAAQ,GAAC,UAAU,GAAC,YAAY,GAAC,WAAW,GAAC,aAAa,GAAC,eAAe,GAAC,cAAc;;;;eACzF,OAAO;;;;gBACP,OAAO;;;;UACP,SAAS,GAAC,OAAO,GAAC,OAAO,GAAC,YAAY;;;;WACtC,OAAO;;;;iBACP,OAAO;;;;WACP,MAAM;;;;eACN,MAAM;;;;oBACN,MAAM;;;;sBACN,MAAM;;;;mBACN,MAAM,GAAC,IAAI;;;;gBACX,MAAM,GAAC,IAAI;;;;WACX,OAAO;;;;8BACE,MAAM,KAAG,MAAM;;;;mBACf,MAAM,KAAG,MAAM;;wBAzCd,cAAc;qCAHD,oBAAoB"}
|
|
@@ -8,8 +8,8 @@ export class OverflowScroller {
|
|
|
8
8
|
offsetEnd: number;
|
|
9
9
|
amount: string;
|
|
10
10
|
buttonClasses: string[];
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
iconClassPrevious: any;
|
|
12
|
+
iconClassNext: any;
|
|
13
13
|
};
|
|
14
14
|
constructor(elements: any, config: any);
|
|
15
15
|
options: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overflow-scroller.d.ts","sourceRoot":"","sources":["../../js/ui/overflow-scroller.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"overflow-scroller.d.ts","sourceRoot":"","sources":["../../js/ui/overflow-scroller.js"],"names":[],"mappings":"AAmBA;IACE,wBAAsB;IACtB;;;;;;;;;;MAUC;IACD,wCAgBC;IAfC,aAAmE;IAKnE,cAGC;IACD,qBAAuB;IACvB,yBAA2B;IAC3B,gCAA4C;IAK9C,sBAGC;IADC,qBAAwD;IAE1D;;;;;;MA2BC;IACD,oDAQC;IACD,uCAMC;IACD,2BAGC;IACD,2BAiBC;IACD,8CAeC;IACD,6BAaC;IACD,aAMC;IACD,iBAMC;IACD,6BAGC;CACF"}
|
package/types/ui/popover.d.ts
CHANGED
|
@@ -2,16 +2,10 @@
|
|
|
2
2
|
* Initialize default popover
|
|
3
3
|
*/
|
|
4
4
|
export function init(): void;
|
|
5
|
-
/**
|
|
6
|
-
* Query all popovers on current page and set them up
|
|
7
|
-
* - Use this manually if needed
|
|
8
|
-
* - Won't setup a popover more than once
|
|
9
|
-
*/
|
|
10
|
-
export function setup(): void;
|
|
11
5
|
/**
|
|
12
6
|
* Find the popover's elements
|
|
13
7
|
*/
|
|
14
|
-
export function resolve(trigger: any): false | {
|
|
8
|
+
export function resolve(trigger: any, userOptions: any): false | {
|
|
15
9
|
elements: {
|
|
16
10
|
trigger: any;
|
|
17
11
|
content: any;
|
|
@@ -22,6 +16,10 @@ export function resolve(trigger: any): false | {
|
|
|
22
16
|
floatingOptions: any;
|
|
23
17
|
};
|
|
24
18
|
export function getContentByTrigger(trigger: any): any;
|
|
19
|
+
/**
|
|
20
|
+
* Popover Component Initializer
|
|
21
|
+
*/
|
|
22
|
+
export const initializer: ComponentInitializer;
|
|
25
23
|
/**
|
|
26
24
|
* Array of current instances
|
|
27
25
|
*/
|
|
@@ -36,5 +34,6 @@ export class Popover extends Collapsible {
|
|
|
36
34
|
floatingCleanup: Function;
|
|
37
35
|
destroyFloatingInstance(): void;
|
|
38
36
|
}
|
|
37
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
39
38
|
import { Collapsible } from "./collapsible.js";
|
|
40
39
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../js/ui/popover.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../js/ui/popover.js"],"names":[],"mappings":"AAgCA;;GAEG;AACH,6BAmBC;AAED;;GAEG;AACH;;;;;;;;;EAiBC;AAKD,uDAmBC;AA5FD;;GAEG;AACH,+CAGG;AAOH;;GAEG;AACH,4BAAqC;AA+ErC;;GAEG;AACH;IACE,8DAIC;IADC,qBAA4C;IAa9C,+BAIC;IADC,0BAA+E;IAEjF,gCAKC;CACF;qCAlIoC,oBAAoB;4BAE7B,kBAAkB"}
|
package/types/ui/print.d.ts
CHANGED
package/types/ui/print.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../js/ui/print.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../../js/ui/print.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,6BASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"programmatic-modal.d.ts","sourceRoot":"","sources":["../../js/ui/programmatic-modal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"programmatic-modal.d.ts","sourceRoot":"","sources":["../../js/ui/programmatic-modal.js"],"names":[],"mappings":"AAUA;IACE;;;MAGE;IACF,gCAeC;IAbC,aAAsB;IACtB,cAAoB;IACpB,mBAAyB;IAEzB,qCAGC;IACD,2BAEC;IAIH,sBAMC;IACD,gBAMC;IACD;;;;MAkDC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {Object} options Change options used as default for dialogs, can then be
|
|
2
|
+
* @param {Object} options Change options used as default for dialogs, can then be overridden by data attribute settings on element
|
|
3
3
|
*/
|
|
4
4
|
export function setDefaults(options: any): void;
|
|
5
5
|
/**
|
|
@@ -7,12 +7,28 @@ export function setDefaults(options: any): void;
|
|
|
7
7
|
* - This will only initialize elements once, it is safe to call on page changes
|
|
8
8
|
*/
|
|
9
9
|
export function init(): void;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Setup a single proxy click
|
|
12
|
+
* @param {Node} proxy The container who's click should proxy the click of inner element with options.selector (defaults to [data-ulu-proxy-click-source])
|
|
13
|
+
* @param {Object} userOptions Options to override defaults
|
|
14
|
+
*/
|
|
15
|
+
export function setupProxy(proxy: Node, userOptions: any): void;
|
|
16
|
+
/**
|
|
17
|
+
* Main function for attaching behaviors that enable proxy click
|
|
18
|
+
* @param {Node} proxy The container who's click should proxy the click of inner element with options.selector (defaults to [data-ulu-proxy-click-source])
|
|
19
|
+
* @param {Node} child The element who is being proxied and will get clicked if the proxy is clicked (as long as not an interactive element within proxy)
|
|
20
|
+
* @param {Object} config Merged/final options object
|
|
21
|
+
*/
|
|
22
|
+
export function attachHandlers(proxy: Node, child: Node, config: any): void;
|
|
23
|
+
/**
|
|
24
|
+
* Proxy Click Component Initializer
|
|
25
|
+
*/
|
|
26
|
+
export const initializer: ComponentInitializer;
|
|
12
27
|
export namespace defaults {
|
|
13
28
|
let selector: string;
|
|
14
29
|
let selectorPreventBase: string;
|
|
15
30
|
let selectorPrevent: string;
|
|
16
31
|
let mousedownDurationPrevent: number;
|
|
17
32
|
}
|
|
33
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
18
34
|
//# sourceMappingURL=proxy-click.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proxy-click.d.ts","sourceRoot":"","sources":["../../js/ui/proxy-click.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"proxy-click.d.ts","sourceRoot":"","sources":["../../js/ui/proxy-click.js"],"names":[],"mappings":"AAkCA;;GAEG;AACH,gDAEC;AACD;;;GAGG;AACH,6BASC;AAED;;;;GAIG;AACH,kCAHW,IAAI,0BAWd;AAED;;;;;GAKG;AACH,sCAJW,IAAI,SACJ,IAAI,qBAoBd;AAhFD;;GAEG;AACH,+CAGG;;;;;;;qCARkC,oBAAoB"}
|
package/types/ui/resizer.d.ts
CHANGED
|
@@ -1,28 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class for creating/controlling a container size with a handle/control
|
|
3
|
+
*/
|
|
1
4
|
export class Resizer {
|
|
2
5
|
static defaults: {
|
|
3
6
|
debug: boolean;
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Amount to increase size by (ie. pointer movement * multiplier)
|
|
9
|
+
*/
|
|
10
|
+
multiplier: number;
|
|
11
|
+
/**
|
|
12
|
+
* Remove max-width, max-height
|
|
13
|
+
*/
|
|
14
|
+
overrideMaxDimensions: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @type {"left"|"right"|null}
|
|
17
|
+
* Specifies the horizontal edge from which resizing occurs.
|
|
18
|
+
* `null` means no horizontal resizing.
|
|
19
|
+
* - Default null
|
|
20
|
+
*/
|
|
21
|
+
fromX: "left" | "right" | null;
|
|
22
|
+
/**
|
|
23
|
+
* @type {"top"|"bottom"|null}
|
|
24
|
+
* Specifies the vertical edge from which resizing occurs.
|
|
25
|
+
* - `null` means no vertical resizing.
|
|
26
|
+
* - Default null
|
|
27
|
+
*/
|
|
28
|
+
fromY: "top" | "bottom" | null;
|
|
29
|
+
/**
|
|
30
|
+
* The step in pixels for keyboard resizing with arrow keys.
|
|
31
|
+
*/
|
|
32
|
+
keyboardStep: number;
|
|
33
|
+
/**
|
|
34
|
+
* Debounce time in milliseconds for ending a keyboard resize.
|
|
35
|
+
*/
|
|
36
|
+
keyboardDebounceTime: number;
|
|
37
|
+
/**
|
|
38
|
+
* If true, the Resizer instance will automatically bind its own DOM event listeners
|
|
39
|
+
* (pointerdown, keydown) to the control element. If `false`, the user is
|
|
40
|
+
* responsible for calling `resizerInstance.onPointerdown(event)` and
|
|
41
|
+
* `resizerInstance.onKeydown(event)` from their own listeners.
|
|
42
|
+
* Default: true
|
|
43
|
+
*/
|
|
44
|
+
manageEvents: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* If true, the Resizer instance will automatically manage the `aria-label`
|
|
47
|
+
* attribute of the control element. If `false`, the user is responsible
|
|
48
|
+
* for setting this attribute.
|
|
49
|
+
* Default: false
|
|
50
|
+
*/
|
|
51
|
+
manageAriaLabel: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* If true, pointer events (mouse/touch) will enable resizing.
|
|
54
|
+
* Default: true
|
|
55
|
+
*/
|
|
56
|
+
enablePointerResizing: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* If true, keyboard events (arrow keys) will enable resizing.
|
|
59
|
+
* Default: true
|
|
60
|
+
*/
|
|
61
|
+
enableKeyboardResizing: boolean;
|
|
6
62
|
};
|
|
7
63
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {
|
|
10
|
-
* @param {
|
|
11
|
-
* @param {
|
|
12
|
-
* @param {Boolean}
|
|
13
|
-
* @param {Boolean}
|
|
14
|
-
* @param {
|
|
64
|
+
* @param {Node} container Container to be resized
|
|
65
|
+
* @param {HTMLElement} control Resize handle element (should be focusable like a button)
|
|
66
|
+
* @param {Object} config Options to configure the resizer.
|
|
67
|
+
* @param {Boolean} [config.debug=false] Enable non-essential debugging logs.
|
|
68
|
+
* @param {Boolean} [config.multiplier=1] Amount to increase size by (ie. pointer movement * multiplier).
|
|
69
|
+
* @param {Boolean} [config.overrideMaxDimensions=false] When script is activated by handle, remove the element's max-width/max-height and allow the resize to exceed them.
|
|
70
|
+
* @param {"left"|"right"|null} [config.fromX=null] Horizontal resizing direction.
|
|
71
|
+
* @param {"top"|"bottom"|null} [config.fromY=null] Vertical resizing direction.
|
|
72
|
+
* @param {number} [config.keyboardStep=10] The step in pixels for keyboard resizing.
|
|
73
|
+
* @param {number} [config.keyboardDebounceTime=200] Debounce time for keyboard resize end.
|
|
74
|
+
* @param {boolean} [config.manageEvents=true] If true, the Resizer will automatically bind its own events.
|
|
75
|
+
* @param {boolean} [config.manageAriaLabel=false] If true, the Resizer will manage the control's aria-label.
|
|
76
|
+
* @param {boolean} [config.enablePointerResizing=true] If true, pointer events will enable resizing.
|
|
77
|
+
* @param {boolean} [config.enableKeyboardResizing=true] If true, keyboard events will enable resizing.
|
|
15
78
|
*/
|
|
16
|
-
constructor(container: Node, control:
|
|
17
|
-
debug
|
|
18
|
-
|
|
19
|
-
|
|
79
|
+
constructor(container: Node, control: HTMLElement, config: {
|
|
80
|
+
debug?: boolean;
|
|
81
|
+
multiplier?: boolean;
|
|
82
|
+
overrideMaxDimensions?: boolean;
|
|
83
|
+
fromX?: "left" | "right" | null;
|
|
84
|
+
fromY?: "top" | "bottom" | null;
|
|
85
|
+
keyboardStep?: number;
|
|
86
|
+
keyboardDebounceTime?: number;
|
|
87
|
+
manageEvents?: boolean;
|
|
88
|
+
manageAriaLabel?: boolean;
|
|
89
|
+
enablePointerResizing?: boolean;
|
|
90
|
+
enableKeyboardResizing?: boolean;
|
|
20
91
|
});
|
|
21
92
|
options: any;
|
|
22
93
|
container: Node;
|
|
23
|
-
control:
|
|
24
|
-
|
|
94
|
+
control: HTMLElement;
|
|
95
|
+
debug: any;
|
|
96
|
+
resizeHorizontal: boolean;
|
|
97
|
+
resizeVertical: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Cleans up event listeners and internal state to prevent memory leaks.
|
|
100
|
+
*/
|
|
25
101
|
destroy(): void;
|
|
26
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Public handler for pointerdown events. Call this method from your own event listeners
|
|
104
|
+
* if `manageEvents` is false. Its logic will only execute if `enablePointerResizing` is true.
|
|
105
|
+
* @param {PointerEvent} e The pointerdown event.
|
|
106
|
+
*/
|
|
107
|
+
onPointerdown(e: PointerEvent): void;
|
|
108
|
+
/**
|
|
109
|
+
* Public handler for keydown events. Call this method from your own event listeners
|
|
110
|
+
* if `manageEvents` is false. Its logic will only execute if `enableKeyboardResizing` is true.
|
|
111
|
+
* @param {KeyboardEvent} e The keydown event.
|
|
112
|
+
*/
|
|
113
|
+
onKeydown(e: KeyboardEvent): void;
|
|
114
|
+
/**
|
|
115
|
+
* Generates an accessible label for the resize control based on its configuration.
|
|
116
|
+
* This is a convenience function that can be used by the consumer if `manageAriaLabel` is false.
|
|
117
|
+
* @returns {string} The suggested aria-label for the control.
|
|
118
|
+
*/
|
|
119
|
+
getAriaLabel(): string;
|
|
120
|
+
/**
|
|
121
|
+
* Dispatches a custom event on the container element.
|
|
122
|
+
* @param {string} type The event type (e.g., "resizer:start", "resizer:update", "resizer:end").
|
|
123
|
+
* @param {Object} [data={}] Optional data to attach to the event's detail property.
|
|
124
|
+
*/
|
|
125
|
+
dispatchEvent(type: string, data?: any): void;
|
|
126
|
+
#private;
|
|
27
127
|
}
|
|
28
128
|
//# sourceMappingURL=resizer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resizer.d.ts","sourceRoot":"","sources":["../../js/ui/resizer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resizer.d.ts","sourceRoot":"","sources":["../../js/ui/resizer.js"],"names":[],"mappings":"AAUA;;GAEG;AACH;IACE;;QAEE;;WAEG;;QAEH;;WAEG;;QAEH;;;;;WAKG;eAJO,MAAM,GAAC,OAAO,GAAC,IAAI;QAM7B;;;;;WAKG;eAJO,KAAK,GAAC,QAAQ,GAAC,IAAI;QAM7B;;WAEG;;QAEH;;WAEG;;QAEH;;;;;;WAMG;;QAEH;;;;;WAKG;;QAEH;;;WAGG;;QAEH;;;WAGG;;MAEH;IAaF;;;;;;;;;;;;;;;OAeG;IACH,uBAfW,IAAI,WACJ,WAAW;QAEM,KAAK;QACL,UAAU;QACV,qBAAqB;QACT,KAAK,GAAlC,MAAM,GAAC,OAAO,GAAC,IAAI;QACU,KAAK,GAAlC,KAAK,GAAC,QAAQ,GAAC,IAAI;QACH,YAAY,GAA5B,MAAM;QACU,oBAAoB,GAApC,MAAM;QACW,YAAY,GAA7B,OAAO;QACU,eAAe,GAAhC,OAAO;QACU,qBAAqB,GAAtC,OAAO;QACU,sBAAsB,GAAvC,OAAO;OAmDjB;IA3CC,aAAsB;IACtB,gBAA0B;IAC1B,qBAAsB;IACtB,WAA0B;IAmB1B,0BAA8C;IAC9C,wBAA4C;IAqC9C;;OAEG;IACH,gBAsBC;IAwGD;;;;OAIG;IACH,iBAFW,YAAY,QAyCtB;IAED;;;;OAIG;IACH,aAFW,aAAa,QA4DvB;IAED;;;;OAIG;IACH,gBAFa,MAAM,CAYlB;IAED;;;;OAIG;IACH,oBAHW,MAAM,oBAKhB;;CACF"}
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
* - This will only initialize elements once, it is safe to call on page changes
|
|
4
4
|
*/
|
|
5
5
|
export function init(): void;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
let controls: string;
|
|
12
|
-
}
|
|
6
|
+
/**
|
|
7
|
+
* Scroll Slider Component Initializer
|
|
8
|
+
*/
|
|
9
|
+
export const initializer: ComponentInitializer;
|
|
10
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
13
11
|
//# sourceMappingURL=scroll-slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-slider.d.ts","sourceRoot":"","sources":["../../js/ui/scroll-slider.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scroll-slider.d.ts","sourceRoot":"","sources":["../../js/ui/scroll-slider.js"],"names":[],"mappings":"AAuBA;;;GAGG;AACH,6BASC;AA5BD;;GAEG;AACH,+CAGG;qCAVkC,oBAAoB"}
|