@ulu/frontend 0.1.0-beta.33 → 0.1.0-beta.34
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 +38 -17
- package/dist/ulu-frontend.min.css +1 -1
- package/dist/ulu-frontend.min.js +23 -23
- package/docs-dev/changelog/index.html +94 -10
- package/docs-dev/demos/accordion/index.html +30 -0
- package/docs-dev/demos/button/index.html +30 -0
- package/docs-dev/demos/button-verbose/index.html +30 -0
- package/docs-dev/demos/callout/index.html +39 -0
- package/docs-dev/demos/captioned-figure/index.html +30 -0
- package/docs-dev/demos/card/index.html +44 -14
- package/docs-dev/demos/card-grid/index.html +30 -0
- package/docs-dev/demos/css-icons/index.html +30 -0
- package/docs-dev/demos/data-grid/index.html +30 -0
- package/docs-dev/demos/data-table/index.html +55 -25
- package/docs-dev/demos/details-group/index.html +63 -0
- package/docs-dev/demos/file-save/index.html +30 -0
- package/docs-dev/demos/flipcard/index.html +30 -0
- package/docs-dev/demos/form-theme/index.html +30 -0
- package/docs-dev/demos/index.html +30 -0
- package/docs-dev/demos/list-inline/index.html +30 -0
- package/docs-dev/demos/list-lines/index.html +30 -0
- package/docs-dev/demos/menu-stack/index.html +30 -0
- package/docs-dev/demos/modals/index.html +43 -2
- package/docs-dev/demos/nav-strip/index.html +30 -0
- package/docs-dev/demos/overlay-section/index.html +30 -0
- package/docs-dev/demos/popovers/index.html +30 -0
- package/docs-dev/demos/print/index.html +30 -0
- package/docs-dev/demos/pull-quote/index.html +30 -0
- package/docs-dev/demos/rule/index.html +30 -0
- package/docs-dev/demos/scrollpoints/index.html +31 -1
- package/docs-dev/demos/spoke-spinner/index.html +30 -0
- package/docs-dev/demos/sticky-list/index.html +30 -0
- package/docs-dev/demos/tabs/index.html +66 -0
- package/docs-dev/demos/tag/index.html +30 -0
- package/docs-dev/demos/theme-toggle/index.html +30 -0
- package/docs-dev/demos/tiles/index.html +30 -0
- package/docs-dev/demos/tooltip/index.html +30 -0
- package/docs-dev/guide/building-stylesheet/index.html +30 -0
- package/docs-dev/guide/developing-ulu-scss-module/index.html +30 -0
- package/docs-dev/guide/index.html +30 -0
- package/docs-dev/index.html +30 -0
- package/docs-dev/javascript/events/index.html +30 -0
- package/docs-dev/javascript/index.html +30 -0
- package/docs-dev/javascript/settings/index.html +30 -0
- package/docs-dev/javascript/ui-breakpoints/index.html +30 -0
- package/docs-dev/javascript/ui-collapsible/index.html +30 -0
- package/docs-dev/javascript/ui-details-group/index.html +48 -30
- package/docs-dev/javascript/ui-dialog/index.html +62 -17
- package/docs-dev/javascript/ui-flipcard/index.html +91 -5
- package/docs-dev/javascript/ui-grid/index.html +40 -36
- package/docs-dev/javascript/ui-modal-builder/index.html +41 -32
- package/docs-dev/javascript/ui-overflow-scroller/index.html +30 -0
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +30 -0
- package/docs-dev/javascript/ui-page/index.html +30 -0
- package/docs-dev/javascript/ui-popover/index.html +38 -12
- package/docs-dev/javascript/ui-print/index.html +30 -8
- package/docs-dev/javascript/ui-print-details/index.html +30 -0
- package/docs-dev/javascript/ui-programmatic-modal/index.html +30 -0
- package/docs-dev/javascript/ui-proxy-click/index.html +117 -2
- package/docs-dev/javascript/ui-resizer/index.html +30 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +68 -6
- package/docs-dev/javascript/ui-scrollpoint/index.html +36 -13
- package/docs-dev/javascript/ui-slider/index.html +226 -5
- package/docs-dev/javascript/ui-tabs/index.html +41 -48
- package/docs-dev/javascript/ui-theme-toggle/index.html +35 -13
- package/docs-dev/javascript/ui-tooltip/index.html +37 -11
- package/docs-dev/javascript/utils-class-logger/index.html +30 -0
- package/docs-dev/javascript/utils-dom/index.html +55 -0
- package/docs-dev/javascript/utils-file-save/index.html +30 -0
- package/docs-dev/javascript/utils-floating-ui/index.html +30 -0
- package/docs-dev/javascript/utils-id/index.html +30 -0
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +30 -0
- package/docs-dev/javascript/utils-system/index.html +5437 -0
- package/docs-dev/sass/base/color/index.html +30 -0
- package/docs-dev/sass/base/elements/index.html +30 -0
- package/docs-dev/sass/base/index/index.html +30 -0
- package/docs-dev/sass/base/index.html +30 -0
- package/docs-dev/sass/base/keyframes/index.html +30 -0
- package/docs-dev/sass/base/layout/index.html +30 -0
- package/docs-dev/sass/base/normalize/index.html +30 -0
- package/docs-dev/sass/base/print/index.html +30 -0
- package/docs-dev/sass/base/root/index.html +30 -0
- package/docs-dev/sass/base/typography/index.html +30 -0
- package/docs-dev/sass/components/accordion/index.html +31 -1
- package/docs-dev/sass/components/adaptive-spacing/index.html +30 -0
- package/docs-dev/sass/components/badge/index.html +30 -0
- package/docs-dev/sass/components/basic-hero/index.html +30 -0
- package/docs-dev/sass/components/button/index.html +30 -0
- package/docs-dev/sass/components/button-verbose/index.html +30 -0
- package/docs-dev/sass/components/callout/index.html +30 -0
- package/docs-dev/sass/components/captioned-figure/index.html +30 -0
- package/docs-dev/sass/components/card/index.html +30 -0
- package/docs-dev/sass/components/card-grid/index.html +30 -0
- package/docs-dev/sass/components/css-icon/index.html +30 -0
- package/docs-dev/sass/components/data-grid/index.html +30 -0
- package/docs-dev/sass/components/data-table/index.html +45 -8
- package/docs-dev/sass/components/fill-context/index.html +30 -0
- package/docs-dev/sass/components/flipcard/index.html +30 -0
- package/docs-dev/sass/components/flipcard-grid/index.html +30 -0
- package/docs-dev/sass/components/form-theme/index.html +76 -52
- package/docs-dev/sass/components/hero/index.html +30 -0
- package/docs-dev/sass/components/horizontal-rule/index.html +30 -0
- package/docs-dev/sass/components/image-grid/index.html +30 -0
- package/docs-dev/sass/components/index/index.html +30 -0
- package/docs-dev/sass/components/index.html +30 -0
- package/docs-dev/sass/components/links/index.html +30 -0
- package/docs-dev/sass/components/list-inline/index.html +30 -0
- package/docs-dev/sass/components/list-lines/index.html +30 -0
- package/docs-dev/sass/components/list-ordered/index.html +30 -0
- package/docs-dev/sass/components/list-unordered/index.html +30 -0
- package/docs-dev/sass/components/menu-stack/index.html +30 -0
- package/docs-dev/sass/components/modal/index.html +30 -0
- package/docs-dev/sass/components/nav-strip/index.html +30 -0
- package/docs-dev/sass/components/overlay-section/index.html +30 -0
- package/docs-dev/sass/components/pager/index.html +30 -0
- package/docs-dev/sass/components/placeholder-block/index.html +30 -0
- package/docs-dev/sass/components/popover/index.html +30 -0
- package/docs-dev/sass/components/pull-quote/index.html +30 -0
- package/docs-dev/sass/components/ratio-box/index.html +30 -0
- package/docs-dev/sass/components/rule/index.html +30 -0
- package/docs-dev/sass/components/scroll-slider/index.html +38 -20
- package/docs-dev/sass/components/skip-link/index.html +30 -0
- package/docs-dev/sass/components/slider/index.html +30 -0
- package/docs-dev/sass/components/spoke-spinner/index.html +30 -0
- package/docs-dev/sass/components/sticky-list/index.html +30 -0
- package/docs-dev/sass/components/tabs/index.html +30 -0
- package/docs-dev/sass/components/tag/index.html +30 -0
- package/docs-dev/sass/components/tile-button/index.html +30 -0
- package/docs-dev/sass/components/tile-grid/index.html +30 -0
- package/docs-dev/sass/components/tile-grid-overlay/index.html +30 -0
- package/docs-dev/sass/components/vignette/index.html +30 -0
- package/docs-dev/sass/components/wysiwyg/index.html +30 -0
- package/docs-dev/sass/core/breakpoint/index.html +30 -0
- package/docs-dev/sass/core/button/index.html +30 -0
- package/docs-dev/sass/core/color/index.html +30 -0
- package/docs-dev/sass/core/cssvar/index.html +30 -0
- package/docs-dev/sass/core/element/index.html +30 -0
- package/docs-dev/sass/core/index.html +30 -0
- package/docs-dev/sass/core/layout/index.html +30 -0
- package/docs-dev/sass/core/path/index.html +30 -0
- package/docs-dev/sass/core/selector/index.html +30 -0
- package/docs-dev/sass/core/typography/index.html +30 -0
- package/docs-dev/sass/core/units/index.html +30 -0
- package/docs-dev/sass/core/utils/index.html +30 -0
- package/docs-dev/sass/helpers/color/index.html +30 -0
- package/docs-dev/sass/helpers/display/index.html +30 -0
- package/docs-dev/sass/helpers/index/index.html +30 -0
- package/docs-dev/sass/helpers/index.html +30 -0
- package/docs-dev/sass/helpers/print/index.html +30 -0
- package/docs-dev/sass/helpers/typography/index.html +30 -0
- package/docs-dev/sass/helpers/units/index.html +30 -0
- package/docs-dev/sass/helpers/utilities/index.html +30 -0
- package/docs-dev/sass/index.html +30 -0
- package/js/ui/breakpoints.js +1 -2
- package/js/ui/details-group.js +33 -42
- package/js/ui/dialog.js +64 -41
- package/js/ui/dialog.todo +2 -36
- package/js/ui/flipcard.js +37 -57
- package/js/ui/grid.js +15 -13
- package/js/ui/modal-builder.js +24 -38
- package/js/ui/popover.js +38 -39
- package/js/ui/print.js +16 -25
- package/js/ui/proxy-click.js +50 -36
- package/js/ui/scroll-slider.js +24 -30
- package/js/ui/scrollpoint.js +27 -63
- package/js/ui/slider.js +53 -55
- package/js/ui/tabs.js +23 -36
- package/js/ui/theme-toggle.js +37 -41
- package/js/ui/tooltip.js +27 -33
- package/js/utils/dom.js +12 -0
- package/js/utils/system.js +154 -0
- package/package.json +1 -1
- package/scss/components/_accordion.scss +1 -2
- package/scss/components/_data-table.scss +3 -0
- package/scss/components/_form-theme.scss +24 -25
- package/scss/components/_scroll-slider.scss +0 -4
- package/types/ui/breakpoints.d.ts.map +1 -1
- package/types/ui/details-group.d.ts +7 -12
- package/types/ui/details-group.d.ts.map +1 -1
- package/types/ui/dialog.d.ts +19 -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/modal-builder.d.ts +5 -9
- package/types/ui/modal-builder.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/proxy-click.d.ts +19 -3
- package/types/ui/proxy-click.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 +22 -12
- 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 +6 -13
- 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/dom.d.ts +6 -0
- package/types/utils/dom.d.ts.map +1 -1
- package/types/utils/system.d.ts +113 -0
- package/types/utils/system.d.ts.map +1 -0
|
@@ -4,15 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export function init(): void;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Scrollpoint Component Initializer
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
10
|
-
export namespace attrs {
|
|
11
|
-
let init: string;
|
|
12
|
-
let point: string;
|
|
13
|
-
let group: string;
|
|
14
|
-
let groupAnchors: string;
|
|
15
|
-
}
|
|
9
|
+
export const initializer: ComponentInitializer;
|
|
16
10
|
/**
|
|
17
11
|
* Single scrollpoint
|
|
18
12
|
* - Note "forward" and "reverse" refer to scroll directions
|
|
@@ -130,4 +124,5 @@ export class Scrollpoint {
|
|
|
130
124
|
updateStateAttribute(isActive: any, isForward: any): void;
|
|
131
125
|
destroy(): void;
|
|
132
126
|
}
|
|
127
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
133
128
|
//# sourceMappingURL=scrollpoint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrollpoint.d.ts","sourceRoot":"","sources":["../../js/ui/scrollpoint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrollpoint.d.ts","sourceRoot":"","sources":["../../js/ui/scrollpoint.js"],"names":[],"mappings":"AA0BA;;;GAGG;AACH,6BAUC;AAtBD;;GAEG;AACH,+CAGG;AAkBH;;;;;;;GAOG;AACH;IACE;QACE;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;QAEH;;WAEG;;QAEH;;WAEG;;MAIH;IACF;;;;OAIG;IACH,qBAHW,IAAI,eAkCd;IArBC,aAAsB;IACtB,+BAAoB;IACpB,kBAAwB;IACxB,kBAAqB;IACrB,cAAsB;IACtB,sBAGC;IACD;;;;;;;MAOC;IAMH,kCAEC;IACD;;;;MAMC;IACD;;;OAGG;IACH,8BAkBC;IACD,sBAUC;IACD,kBAGC;IACD,8CAcC;IACD,qBAEC;IACD,mDAmBC;IACD,0DAMC;IACD,gBASC;CACF;qCAlQoC,oBAAoB"}
|
package/types/ui/slider.d.ts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Initialize all sliders based on data attribute selectors
|
|
3
|
+
*/
|
|
1
4
|
export function init(): void;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Setup single slider instance from querying via data attribute selectors
|
|
7
|
+
* @param {Node} container The slide container to query children from
|
|
8
|
+
* @param {Object} options Options for slider class
|
|
9
|
+
*/
|
|
10
|
+
export function setupSlider(container: Node, options: any): void;
|
|
11
|
+
/**
|
|
12
|
+
* Slider Component Initializer
|
|
13
|
+
*/
|
|
14
|
+
export const initializer: ComponentInitializer;
|
|
15
|
+
/**
|
|
16
|
+
* Class that controls slider
|
|
17
|
+
*/
|
|
11
18
|
export class Slider {
|
|
12
19
|
static instances: any[];
|
|
20
|
+
/**
|
|
21
|
+
* Default options for slider
|
|
22
|
+
*/
|
|
13
23
|
static defaults: {
|
|
14
24
|
classAccessiblyHidden: string;
|
|
15
25
|
namespace: string;
|
|
@@ -23,8 +33,7 @@ export class Slider {
|
|
|
23
33
|
iconClassPrevious: any;
|
|
24
34
|
iconClassNext: any;
|
|
25
35
|
};
|
|
26
|
-
constructor(elements: any, config: any
|
|
27
|
-
debug: boolean;
|
|
36
|
+
constructor(elements: any, config: any);
|
|
28
37
|
options: any;
|
|
29
38
|
slide: {
|
|
30
39
|
element: any;
|
|
@@ -122,7 +131,8 @@ export class Slider {
|
|
|
122
131
|
};
|
|
123
132
|
createNavButton(slide: any, index: any): HTMLButtonElement;
|
|
124
133
|
getControlContent(action: any): string;
|
|
125
|
-
getNavContent(
|
|
134
|
+
getNavContent(slide: any): string;
|
|
126
135
|
emit(name: any, args: any): void;
|
|
127
136
|
}
|
|
137
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
128
138
|
//# sourceMappingURL=slider.d.ts.map
|
package/types/ui/slider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../js/ui/slider.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../js/ui/slider.js"],"names":[],"mappings":"AAsEA;;GAEG;AACH,6BASC;AAED;;;;GAIG;AACH,uCAHW,IAAI,sBAkBd;AAlED;;GAEG;AACH,+CAGG;AA8DH;;GAEG;AACH;IACE,wBAAsB;IACtB;;OAEG;IACH;;;;;;;;;;;;MAaC;IACD,wCAgCC;IA9BC,aAAsB;IACtB;;;;MAAiB;IACjB,WAAiB;IACjB,uBAA0B;IAQ1B;;;;QAME;IACF,cAIC;IAED;;;cACuF;IAMzF;;OAEG;IACH,qBAKC;IACD;;OAEG;IACH,2BAOC;IACD;;OAEG;IACH,uBAMC;IACD;;;;;;OAMG;IACH,8BAJW,MAAM,YACN,MAAM,kCAqChB;IACD;;OAEG;IACH,wCASC;IACD;;;OAGG;IACH,oDASC;IACD;;OAEG;IACH,yCAOC;IACD;;OAEG;IACH;;;;;;sBAoDC;IACD;;OAEG;IACH;;;sBAUC;IACD;;OAEG;IACH;;;YAOC;IACD,qDA0CC;IACD,cAYC;IACD,+BAKC;IACD,qCAOC;IACD,mBAQC;IACD,mBASC;IACD,yCASC;IACD,oDAUC;IACD;;;;;;MAwBC;IACD;;;;MAmBC;IACD,2DAQC;IACD,uCAMC;IACD,kCAEC;IACD,iCAIC;CACF;qCArfoC,oBAAoB"}
|
package/types/ui/tabs.d.ts
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Init all instances currently in document
|
|
3
|
-
* @param {Object} options Options to serve as defaults
|
|
4
3
|
*/
|
|
5
|
-
export function init(
|
|
6
|
-
/**
|
|
7
|
-
* Init all tabs within a certain context
|
|
8
|
-
* @param {Node} context Element to init within
|
|
9
|
-
* @param {Object} options Options to serve as defaults
|
|
10
|
-
*/
|
|
11
|
-
export function initWithin(context: Node, options?: any): void;
|
|
4
|
+
export function init(): void;
|
|
12
5
|
/**
|
|
13
6
|
*
|
|
14
7
|
* @param {Node} element Tablist Element
|
|
@@ -21,4 +14,9 @@ export function setup(element: Node, options?: Node): any;
|
|
|
21
14
|
* @type {Array}
|
|
22
15
|
*/
|
|
23
16
|
export const instances: any[];
|
|
17
|
+
/**
|
|
18
|
+
* Tabs Component Initializer
|
|
19
|
+
*/
|
|
20
|
+
export const initializer: ComponentInitializer;
|
|
21
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
24
22
|
//# sourceMappingURL=tabs.d.ts.map
|
package/types/ui/tabs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../js/ui/tabs.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../js/ui/tabs.js"],"names":[],"mappings":"AA2BA;;GAEG;AACH,6BAoBC;AAED;;;;;GAKG;AACH,+BAJW,IAAI,YACJ,IAAI,OA2Bd;AArED;;;GAGG;AACH,8BAA4B;AAE5B;;GAEG;AACH,+CAGG;qCAdkC,oBAAoB"}
|
|
@@ -7,29 +7,21 @@ 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
|
|
12
|
-
*/
|
|
13
|
-
export function setup(): void;
|
|
14
10
|
/**
|
|
15
11
|
* Sets up a single toggle
|
|
16
12
|
* @param {HTMLElement} toggle A toggle to be setup
|
|
17
13
|
*/
|
|
18
|
-
export function setupToggle(toggle: HTMLElement,
|
|
14
|
+
export function setupToggle(toggle: HTMLElement, userOptions: any): {
|
|
19
15
|
destroy: () => void;
|
|
20
16
|
toggle: HTMLElement;
|
|
21
17
|
options: any;
|
|
22
18
|
toggleState: (event: any) => void;
|
|
23
19
|
setState(themeKey: any): void;
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
let toggleLabel: string;
|
|
30
|
-
let toggleRemote: string;
|
|
31
|
-
let state: string;
|
|
32
|
-
}
|
|
21
|
+
/**
|
|
22
|
+
* Theme Toggle Component Initializer
|
|
23
|
+
*/
|
|
24
|
+
export const initializer: ComponentInitializer;
|
|
33
25
|
export namespace defaults {
|
|
34
26
|
namespace themes {
|
|
35
27
|
namespace light {
|
|
@@ -62,4 +54,5 @@ export namespace defaults {
|
|
|
62
54
|
let storagePrefix: string;
|
|
63
55
|
let debug: boolean;
|
|
64
56
|
}
|
|
57
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
65
58
|
//# sourceMappingURL=theme-toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../js/ui/theme-toggle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme-toggle.d.ts","sourceRoot":"","sources":["../../js/ui/theme-toggle.js"],"names":[],"mappings":"AAkGA;;GAEG;AACH,gDAEC;AAED;;;GAGG;AACH,6BASC;AAED;;;GAGG;AACH,oCAFW,WAAW;;;;;;EA+FrB;AAhND;;GAEG;AACH,+CAGG;;;;;;;;;;;;;;;;;;;;;;;IAmDD;;OAEG;IACH,mCAAiB;;;;;;;qCAjEkB,oBAAoB"}
|
package/types/ui/tooltip.d.ts
CHANGED
|
@@ -3,12 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export function init(): void;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* - Use this manually if needed
|
|
8
|
-
* - Won't setup a popover more than once
|
|
6
|
+
* Tooltip Component Initializer
|
|
9
7
|
*/
|
|
10
|
-
export
|
|
11
|
-
export function setupTrigger(trigger: any): Tooltip;
|
|
8
|
+
export const initializer: ComponentInitializer;
|
|
12
9
|
/**
|
|
13
10
|
* Tooltip
|
|
14
11
|
* - Provides basic tooltip functionality
|
|
@@ -95,4 +92,5 @@ export class Tooltip {
|
|
|
95
92
|
show(event: any): void;
|
|
96
93
|
hide(event: any): void;
|
|
97
94
|
}
|
|
95
|
+
import { ComponentInitializer } from "../utils/system.js";
|
|
98
96
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../js/ui/tooltip.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../js/ui/tooltip.js"],"names":[],"mappings":"AAuBA;;GAEG;AACH,6BAaC;AA5BD;;GAEG;AACH,+CAGG;AAwBH;;;;GAIG;AACH;IACE;;OAEG;IACH;QACE;;;;WAIG;;QAEH;;;WAGG;;;;;QAKH;;;WAGG;qBADO,SAAO,IAAI;QAGrB;;WAEG;;QAEH;;;WAGG;;QAEH;;;WAGG;oBADO,aAAc;QAGxB;;;WAGG;oBADO,aAAc;QAGxB;;;WAGG;;QAEH;;WAEG;;QAUH;;;WAGG;;MAIH;IACF,kCAEE;IACF,mEAaC;IAPC,aAA+D;IAC/D,qBAAyF;IACzF,cAA+B;IAC/B,aAAkB;IAClB,gBAAmB;IAIrB,cAIC;IACD,2BAKC;IACD,gBAGC;IACD,uBAcC;IACD,gCASC;IACD,6BAkBC;IACD,uBAiCC;IACD,wBAiBC;IACD,wCAmBC;IACD,sDAEC;IACD,+BAEC;IADC,0BAA4E;IAE9E,gCAKC;IACD,uBAEC;IACD,uBAEC;CACF;qCApRoC,oBAAoB"}
|
package/types/utils/dom.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a data attribute name to its corresponding dataset property name.
|
|
3
|
+
* @param {string} dataAttribute - The data attribute name (e.g., "data-ulu-dialog").
|
|
4
|
+
* @returns {string} - The dataset property name (e.g., "uluDialog").
|
|
5
|
+
*/
|
|
6
|
+
export function dataAttributeToDatasetKey(attribute: any): string;
|
|
1
7
|
/**
|
|
2
8
|
* Get an elements JSON dataset value
|
|
3
9
|
* @param {Node} element
|
package/types/utils/dom.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../js/utils/dom.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,wCAJW,IAAI,oBAYd;AAED;;;;;;GAMG;AACH,gDAJW,IAAI,gBAEF,YAAa,CASzB;AAED;;GAEG;AACH,mEAMC;AAGD;;;;;;;;;GASG;AACH,2CAHa,IAAI,uBAoChB;AAED;;;;;GAKG;AACH,mCAJW,SAAO,IAAI,kBAEV,WAAW,CAWtB;AAED;;;;;GAKG;AACH,oCAJW,SAAO,IAAI,wBAerB;AAED;;;;;;;;GAQG;AACH,8CANa,MAAM,EAAE,CAiBpB;AAED;;;;;GAKG;AACH,+CAJW,IAAI,cACJ,IAAI,2BAMd;
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../js/utils/dom.js"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,2DAFa,MAAM,CAOlB;AAED;;;;;GAKG;AACH,wCAJW,IAAI,oBAYd;AAED;;;;;;GAMG;AACH,gDAJW,IAAI,gBAEF,YAAa,CASzB;AAED;;GAEG;AACH,mEAMC;AAGD;;;;;;;;;GASG;AACH,2CAHa,IAAI,uBAoChB;AAED;;;;;GAKG;AACH,mCAJW,SAAO,IAAI,kBAEV,WAAW,CAWtB;AAED;;;;;GAKG;AACH,oCAJW,SAAO,IAAI,wBAerB;AAED;;;;;;;;GAQG;AACH,8CANa,MAAM,EAAE,CAiBpB;AAED;;;;;GAKG;AACH,+CAJW,IAAI,cACJ,IAAI,2BAMd;AA/KD;;GAEG;AAGH,qCAAqD"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Class serves as a utility for UI modules, handling the selection of elements and the initialization of corresponding component instances, ensuring consistent setup within the module
|
|
3
|
+
*/
|
|
4
|
+
export class ComponentInitializer {
|
|
5
|
+
static defaults: {
|
|
6
|
+
type: any;
|
|
7
|
+
baseAttribute: any;
|
|
8
|
+
};
|
|
9
|
+
static requiredOptions: string[];
|
|
10
|
+
static hasRequiredOptions: Function;
|
|
11
|
+
/**
|
|
12
|
+
* Create a new instance of ComponentInitializer
|
|
13
|
+
* @param {Object} options Options for configuring the component initializer.
|
|
14
|
+
* @param {String} options.type Type of component (used for logs).
|
|
15
|
+
* @param {String} options.baseAttribute Prefix and base attribute name (used for base attribute and further element attribute names).
|
|
16
|
+
*/
|
|
17
|
+
constructor(options: {
|
|
18
|
+
type: string;
|
|
19
|
+
baseAttribute: string;
|
|
20
|
+
});
|
|
21
|
+
options: any;
|
|
22
|
+
logTitle: string;
|
|
23
|
+
/**
|
|
24
|
+
* Initializes the component based on the provided configuration.
|
|
25
|
+
* @param {Object} config The initialization configuration.
|
|
26
|
+
* @param {Function} config.setup The setup function to call for each element.
|
|
27
|
+
* @param {String} config.key [null] The optional key to use with attribute selector.
|
|
28
|
+
* @param {Boolean} config.withData [null] Whether to retrieve element data.
|
|
29
|
+
* @param {Array} config.events [null] Ulu events that should call setup when dispatched (ie. pageModified, pageResized)
|
|
30
|
+
* @param {Boolean} config.onPageResized [null] Whether to bind event listener for page resize end
|
|
31
|
+
* @param {HTMLElement} config.context [document] The context to query within.
|
|
32
|
+
*/
|
|
33
|
+
init(config: {
|
|
34
|
+
setup: Function;
|
|
35
|
+
key: string;
|
|
36
|
+
withData: boolean;
|
|
37
|
+
events: any[];
|
|
38
|
+
onPageResized: boolean;
|
|
39
|
+
context: HTMLElement;
|
|
40
|
+
}): void;
|
|
41
|
+
/**
|
|
42
|
+
* Processes the elements based on the provided configuration.
|
|
43
|
+
* @param {object} config The initialization configuration.
|
|
44
|
+
* @param {function} config.setup The setup function to call for each element.
|
|
45
|
+
* @param {string} config.key The optional key to use with attribute selector.
|
|
46
|
+
* @param {boolean} config.withData [false] Whether to retrieve element data.
|
|
47
|
+
* @param {boolean} config.onPageModified [true] Whether to bind event listener for page modifications.
|
|
48
|
+
* @param {HTMLElement} config.context [document] The context to query within.
|
|
49
|
+
*/
|
|
50
|
+
setupElements(config: {
|
|
51
|
+
setup: Function;
|
|
52
|
+
key: string;
|
|
53
|
+
withData: boolean;
|
|
54
|
+
onPageModified: boolean;
|
|
55
|
+
context: HTMLElement;
|
|
56
|
+
}): void;
|
|
57
|
+
/**
|
|
58
|
+
* Get an attribute name
|
|
59
|
+
* @param {String} key Optional key, if no key will return baseAttribute if key will return key added to base
|
|
60
|
+
* @returns {String} String like data-ulu-dialog or data-ulu-dialog-element
|
|
61
|
+
*/
|
|
62
|
+
getAttribute(key: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Create an attribute selector
|
|
65
|
+
* @param {String} key Optional key (see getAttribute)
|
|
66
|
+
*/
|
|
67
|
+
attributeSelector(key: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Create an attribute selector for initial
|
|
70
|
+
* @return {String}
|
|
71
|
+
*/
|
|
72
|
+
attributeSelectorInitial(key: any): string;
|
|
73
|
+
/**
|
|
74
|
+
* Queries all main elements of a component that have not been initialized and extracts their data attributes.
|
|
75
|
+
* @param {HTMLElement} context The context to query within.
|
|
76
|
+
* @param {Boolean} withData Include dataset from element (as optional JSON)
|
|
77
|
+
* @param {Node} context Element to query elements from
|
|
78
|
+
* @returns {Array<{element: HTMLElement, data: object, initialize: Function}>} An array of objects containing the elements, their data, and convenience function initialize() which when called will set the init attribute on the element
|
|
79
|
+
*/
|
|
80
|
+
queryAllInitial(key: any, withData: boolean, context?: HTMLElement): Array<{
|
|
81
|
+
element: HTMLElement;
|
|
82
|
+
data: object;
|
|
83
|
+
initialize: Function;
|
|
84
|
+
}>;
|
|
85
|
+
/**
|
|
86
|
+
* Sets the init attribute on an element, marking it as initialized.
|
|
87
|
+
* @param {HTMLElement} element The element to initialize.
|
|
88
|
+
*/
|
|
89
|
+
initializeElement(element: HTMLElement): void;
|
|
90
|
+
/**
|
|
91
|
+
* Get an elements dataset value as JSON or other value
|
|
92
|
+
* @return {*} The value of the dataset, if JSON will return object else will return string value or undefined
|
|
93
|
+
*/
|
|
94
|
+
getData(element: any, key: any): any;
|
|
95
|
+
/**
|
|
96
|
+
* Will output namespaced console logs for the given initializer
|
|
97
|
+
*/
|
|
98
|
+
log(...msgs: any[]): void;
|
|
99
|
+
/**
|
|
100
|
+
* Will output namespaced console warnings for the given initializer
|
|
101
|
+
*/
|
|
102
|
+
warn(...msgs: any[]): void;
|
|
103
|
+
/**
|
|
104
|
+
* Will output namespaced console error for the given initializer
|
|
105
|
+
*/
|
|
106
|
+
logError(...msgs: any[]): void;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Class serves as a base for representing individual occurrences of a UI component, providing a consistent structure for each
|
|
110
|
+
*/
|
|
111
|
+
export class ComponentInstance {
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=system.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../js/utils/system.js"],"names":[],"mappings":"AASA;;GAEG;AACH;IACE;;;MAGE;IACF,iCAGE;IACF,oCAEE;IAEF;;;;;OAKG;IACH;QAH2B,IAAI;QACJ,aAAa;OAUvC;IAFC,aAAwE;IACxE,iBAAgD;IAElD;;;;;;;;;OASG;IACH;QAP4B,KAAK;QACP,GAAG;QACF,QAAQ;QACV,MAAM;QACJ,aAAa;QACT,OAAO,EAA3B,WAAW;aAYrB;IACD;;;;;;;;OAQG;IACH;QAN4B,KAAK;QACP,GAAG,EAAlB,MAAM;QACU,QAAQ,EAAxB,OAAO;QACS,cAAc,EAA9B,OAAO;QACa,OAAO,EAA3B,WAAW;aAMrB;IACD;;;;OAIG;IACH,kCAGC;IACD;;;OAGG;IACH,uCAEC;IACD;;;OAGG;IACH,2CAEC;IACD;;;;;;OAMG;IACH,uDALW,WAAW,GAGT,MAAM;QAAC,OAAO,EAAE,WAAW,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,UAAU,WAAU;KAAC,CAAC,CAS7E;IACD;;;OAGG;IACH,2BAFW,WAAW,QAIrB;IACD;;;OAGG;IACH,qCAGC;IACD;;OAEG;IACH,0BAEC;IACD;;OAEG;IACH,2BAEC;IACD;;OAEG;IACH,+BAEC;CACF;AAED;;GAEG;AACH;CAEC"}
|