@ulu/frontend 0.1.0-beta.84 → 0.1.0-beta.85
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 +5 -0
- package/docs-dev/assets/main.js +7747 -503
- package/docs-dev/assets/style.css +221 -166
- package/docs-dev/changelog/index.html +51 -0
- package/docs-dev/demos/accordion/index.html +30 -0
- package/docs-dev/demos/badge/index.html +30 -0
- package/docs-dev/demos/breakpoints-manager/index.html +30 -0
- package/docs-dev/demos/button/index.html +30 -0
- package/docs-dev/demos/button-group/index.html +30 -0
- package/docs-dev/demos/button-verbose/index.html +30 -0
- package/docs-dev/demos/callout/index.html +30 -0
- package/docs-dev/demos/captioned-figure/index.html +30 -0
- package/docs-dev/demos/card/index.html +46 -16
- package/docs-dev/demos/card-grid/index.html +30 -0
- package/docs-dev/demos/counter-list/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 +130 -100
- package/docs-dev/demos/details-group/index.html +30 -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/headline-label/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 +30 -0
- package/docs-dev/demos/nav-strip/index.html +30 -0
- package/docs-dev/demos/overlay-section/index.html +30 -0
- package/docs-dev/demos/panel/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/rail/index.html +30 -0
- package/docs-dev/demos/rule/index.html +30 -0
- package/docs-dev/demos/scrollpoints/index.html +30 -0
- 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 +30 -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 +30 -0
- package/docs-dev/javascript/ui-dialog/index.html +30 -0
- package/docs-dev/javascript/ui-flipcard/index.html +30 -0
- package/docs-dev/javascript/ui-grid/index.html +30 -0
- package/docs-dev/javascript/ui-modal-builder/index.html +30 -0
- 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 +30 -0
- package/docs-dev/javascript/ui-print/index.html +30 -0
- 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 +30 -0
- package/docs-dev/javascript/ui-resizer/index.html +30 -0
- package/docs-dev/javascript/ui-scroll-slider/index.html +30 -0
- package/docs-dev/javascript/ui-scrollpoint/index.html +30 -0
- package/docs-dev/javascript/ui-slider/index.html +30 -0
- package/docs-dev/javascript/ui-tabs/index.html +30 -0
- package/docs-dev/javascript/ui-theme-toggle/index.html +30 -0
- package/docs-dev/javascript/ui-tooltip/index.html +30 -0
- package/docs-dev/javascript/utils-class-logger/index.html +30 -0
- package/docs-dev/javascript/utils-css/index.html +30 -0
- package/docs-dev/javascript/utils-dom/index.html +30 -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 +30 -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 +30 -0
- 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-group/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/counter-list/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 +30 -0
- 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 +30 -0
- package/docs-dev/sass/components/headline-label/index.html +30 -0
- 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 +41 -10
- 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/panel/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/rail/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 +30 -0
- 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/{demos/card.1 → sass/components/table-sticky}/index.html +671 -217
- 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/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/package.json +1 -1
- package/scss/components/_index.scss +6 -0
- package/scss/components/_table-sticky.scss +185 -0
- package/types/ui/index.d.ts +1 -1
- package/types/utils/index.d.ts +1 -1
- package/docs-dev/changelog/updates-and-changes/index.html +0 -5109
- package/docs-dev/demos/card-new/index.html +0 -5088
- package/docs-dev/demos/card-old/index.html +0 -5223
- package/docs-dev/demos/card.TRASH/index.html +0 -5541
- package/docs-dev/demos/list-inline.1/index.html +0 -4727
- package/docs-dev/guide/updates-and-changes/index.html +0 -5033
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group table-sticky
|
|
3
|
+
/// For use with table-sticky plugin (vue) or other framework implementations, not output by default must be enabled.
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
@use "sass:map";
|
|
7
|
+
@use "sass:meta";
|
|
8
|
+
|
|
9
|
+
@use "../selector";
|
|
10
|
+
@use "../utils";
|
|
11
|
+
@use "../color";
|
|
12
|
+
@use "../element";
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// Used for function fallback
|
|
16
|
+
$-fallbacks: (
|
|
17
|
+
"box-shadow" : (
|
|
18
|
+
"function" : meta.get-function("get", false, "element"),
|
|
19
|
+
"property" : "box-shadow"
|
|
20
|
+
),
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
/// Module Settings
|
|
24
|
+
/// @type Map
|
|
25
|
+
/// @prop {CssValue} box-shadow [true] Box shadow for controls, defaults to element box-shadow
|
|
26
|
+
|
|
27
|
+
$config: (
|
|
28
|
+
"box-shadow": true,
|
|
29
|
+
"ui-color-disabled": #6490af,
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
/// Change modules $config
|
|
33
|
+
/// @param {Map} $changes Map of changes
|
|
34
|
+
/// @example scss
|
|
35
|
+
/// @include ulu.component-table-sticky-set(( "property" : value ));
|
|
36
|
+
|
|
37
|
+
@mixin set($changes) {
|
|
38
|
+
$config: map.merge($config, $changes) !global;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/// Get a config option
|
|
42
|
+
/// @param {Map} $name Name of property
|
|
43
|
+
/// @example scss
|
|
44
|
+
/// @include ulu.component-table-sticky-get("property");
|
|
45
|
+
|
|
46
|
+
@function get($name) {
|
|
47
|
+
$value: utils.require-map-get($config, $name, "table-sticky [config]");
|
|
48
|
+
@return utils.function-fallback($name, $value, $-fallbacks);
|
|
49
|
+
}
|
|
50
|
+
/// Prints component styles
|
|
51
|
+
/// @demo table-sticky
|
|
52
|
+
/// @example scss
|
|
53
|
+
/// @include ulu.component-table-sticky-styles();
|
|
54
|
+
|
|
55
|
+
@mixin styles {
|
|
56
|
+
$prefix: selector.class("table-sticky");
|
|
57
|
+
|
|
58
|
+
#{ $prefix } {
|
|
59
|
+
position: relative; // For controls
|
|
60
|
+
width: 100%;
|
|
61
|
+
* {
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
#{ $prefix }__display {
|
|
66
|
+
overflow-x: auto;
|
|
67
|
+
overflow-y: hidden;
|
|
68
|
+
// scroll-behavior: smooth;
|
|
69
|
+
}
|
|
70
|
+
#{ $prefix }__table {
|
|
71
|
+
// border-collapse: collapse;
|
|
72
|
+
margin: 0;
|
|
73
|
+
padding: 0;
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
#{ $prefix }__sticky-wrap {
|
|
77
|
+
position: sticky;
|
|
78
|
+
top: -1px;
|
|
79
|
+
left: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
z-index: 2;
|
|
82
|
+
margin-bottom: 200px; // Distance from bottom of table to disable
|
|
83
|
+
margin-top: -200px; // Distance from bottom of table to disable
|
|
84
|
+
}
|
|
85
|
+
#{ $prefix }__sticky-wrap--first-column-header {
|
|
86
|
+
z-index: 4;
|
|
87
|
+
}
|
|
88
|
+
#{ $prefix }__sticky-wrap--controls {
|
|
89
|
+
margin-top: -52vh;
|
|
90
|
+
margin-bottom: 52vh;
|
|
91
|
+
}
|
|
92
|
+
#{ $prefix }__header-wrap {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
right: 0;
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
}
|
|
99
|
+
#{ $prefix }__table--first-column-header,
|
|
100
|
+
#{ $prefix }__table--first-column {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
width: auto !important;
|
|
105
|
+
}
|
|
106
|
+
#{ $prefix }__table--first-column {
|
|
107
|
+
z-index: 3;
|
|
108
|
+
}
|
|
109
|
+
#{ $prefix }__table--header {
|
|
110
|
+
will-change: transform;
|
|
111
|
+
}
|
|
112
|
+
#{ $prefix }__hidden-visually {
|
|
113
|
+
position: absolute;
|
|
114
|
+
left: -10000px;
|
|
115
|
+
top: auto;
|
|
116
|
+
width: 1px;
|
|
117
|
+
height: 1px;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
}
|
|
120
|
+
// NOTE: The table caption needs to be positioned normally
|
|
121
|
+
// as display table-cell. Making absolute for hidden-visually
|
|
122
|
+
// is causing chrome to add an anonymous cell to the table resulting in a 1px
|
|
123
|
+
// cell under the header. Which is messing up alignments. The only solution
|
|
124
|
+
// without removing the <caption> (not good for WCAG) is to position it at the
|
|
125
|
+
// of the table so it doesn't affect the header alignments. Then cropping it to
|
|
126
|
+
// a pixel and using negative margin to remove it's pixel from the flow beneath
|
|
127
|
+
#{ $prefix }__caption {
|
|
128
|
+
margin-bottom: -1px;
|
|
129
|
+
height: 1px;
|
|
130
|
+
padding: 0 !important;
|
|
131
|
+
margin: 0 !important;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
// Allow initiating scrolling by dragging first column
|
|
136
|
+
#{ $prefix }--can-scroll-right:not(#{ $prefix }--can-scroll-left) {
|
|
137
|
+
#{ $prefix }__table--first-column-header,
|
|
138
|
+
#{ $prefix }__table--first-column {
|
|
139
|
+
// pointer-events: none;
|
|
140
|
+
visibility: hidden;
|
|
141
|
+
// opacity: 0 !important;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
#{ $prefix }__controls {
|
|
145
|
+
position: absolute;
|
|
146
|
+
top: 50vh;
|
|
147
|
+
right: 20px;
|
|
148
|
+
}
|
|
149
|
+
#{ $prefix }__controls-inner {
|
|
150
|
+
display: flex;
|
|
151
|
+
}
|
|
152
|
+
#{ $prefix }__control {
|
|
153
|
+
box-shadow: get("box-shadow");
|
|
154
|
+
}
|
|
155
|
+
#{ $prefix }__sort-button {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
font-weight: inherit;
|
|
159
|
+
font-style: inherit;
|
|
160
|
+
font-size: inherit;
|
|
161
|
+
}
|
|
162
|
+
#{ $prefix }__sort-button--focused {
|
|
163
|
+
outline: 2px auto Highlight;
|
|
164
|
+
outline: 2px auto -webkit-focus-ring-color;
|
|
165
|
+
}
|
|
166
|
+
#{ $prefix }__sort-icon {
|
|
167
|
+
margin-left: auto;
|
|
168
|
+
padding-left: 1em;
|
|
169
|
+
display: block;
|
|
170
|
+
opacity: 0.5;
|
|
171
|
+
.sort-active & {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
.sort-ascending & {
|
|
175
|
+
#{ $prefix }__sort-icon-inner {
|
|
176
|
+
transform: rotate(180deg);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
#{ $prefix }__sort-icon-inner {
|
|
181
|
+
display: block;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
package/types/ui/index.d.ts
CHANGED
|
@@ -20,5 +20,5 @@ 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
22
|
export * as detailsGroup from "./details-group.js";
|
|
23
|
-
declare namespace
|
|
23
|
+
declare namespace ___Users_joe_Projects_Personal_Github_frontend_js_ui_index_ { }
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/types/utils/index.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export * as index from "./index.js";
|
|
|
6
6
|
export * as pauseYoutubeVideo from "./pause-youtube-video.js";
|
|
7
7
|
export * as fileSave from "./file-save.js";
|
|
8
8
|
export * as fontAwesome from "./font-awesome.js";
|
|
9
|
-
declare namespace
|
|
9
|
+
declare namespace ___Users_joe_Projects_Personal_Github_frontend_js_utils_index_ { }
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|