awesome-timeline-react 0.10.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/_tsup-dts-rollup.d.mts +123 -18
- package/dist/_tsup-dts-rollup.d.ts +123 -18
- package/dist/index.css +22 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +330 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +331 -102
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\n width: 100px;\n height: fit-content;\n border-right: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n box-shadow: 4px 0px 20px black;\n /* above the canvas, so bars panned under the header slide beneath its shadow */\n position: relative;\n z-index: 2;\n}\n\n.main-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.body-wrapper {\n display: flex;\n flex-direction: row;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n width: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n",".row-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n/* The label wraps to as many lines as it needs; the row height is grown to\n fit it (see SceneStore.setLabelMinHeights) so wrapped labels stay vertically\n centered instead of overflowing into the next row. */\n.row-header-label {\n width: 100%;\n text-align: center;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* Custom row-header content (the `renderRowLabel` slot). Fills the fixed-width cell and the row's\n (dynamic) height so the content can size itself to the space it's given. */\n.row-header-custom {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 0;\n}\n\n/* base look of an event pill — used by the drag ghost */\n.event {\n position: absolute;\n height: 20px;\n border: 1px solid black;\n z-index: 1;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n border-radius: 5px;\n box-shadow: inset 0px 0px 5px gray;\n}\n\n.event-prompt {\n position: absolute;\n display: none;\n z-index: 3;\n}\n\n.time-bar {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 50px;\n min-height: 50px;\n border: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n /* its shadow falls over the canvas below rather than under the bars */\n position: relative;\n z-index: 2;\n}\n\n.empty-block {\n width: 100px;\n min-width: 100px;\n border-right: 1px solid yellow;\n box-sizing: border-box;\n}\n\n.rt-line {\n position: absolute;\n z-index: 3;\n height: calc(100% - 24px);\n top: 24px;\n width: 2px;\n box-sizing: border-box;\n border-right: dotted 2px red;\n}\n\n.rt-arrow {\n position: absolute;\n z-index: 3;\n top: 0px;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n\n border-top: 26px solid red;\n}\n\n.canvas-time-bar {\n height: 100%;\n /* replicates the legacy .hour-row drop shadow onto the content below */\n box-shadow: 0px 4px 20px black;\n}\n\n.canvas-rows-header {\n position: relative;\n flex-shrink: 0;\n}\n\n.canvas-row-header {\n position: absolute;\n width: 100%;\n box-sizing: border-box;\n /* transition is set inline from the `animations` prop */\n}\n\n.canvas-content-column {\n position: relative;\n flex: 1;\n min-width: 0;\n /* the body-wrapper is a flex row; without this the column is stretched to\n the viewport height, the scroll spacer overflows it, and the sticky\n canvas has no room to stick */\n align-self: flex-start;\n}\n\n.canvas-sticky {\n position: sticky;\n top: 0;\n height: 0;\n overflow: visible;\n z-index: 1;\n /* Isolate the sticky's internal layout. The viewport-sized canvases live\n inside it (absolutely positioned); without containment their height leaks\n into the content-sized body-wrapper's size, leaving it taller than its\n rows after a re-stack (a stale gap below the last row). `layout` keeps the\n canvases visible (unlike overflow:hidden) while stopping the leak. */\n contain: layout;\n}\n\n.canvas-sticky canvas {\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.canvas-sticky canvas:last-of-type {\n cursor: grab;\n touch-action: none;\n}\n\n.canvas-drag-ghost {\n display: none;\n height: 20px;\n opacity: 50%;\n background-color: white;\n pointer-events: none;\n z-index: 2;\n}\n"],"mappings":";AAAA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,gBAAc,IAAI,MAAM;AACxB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AACZ,cAAY,IAAI,IAAI,KAAK;AAEzB,YAAU;AACV,WAAS;AACX;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,kBAAgB;AAChB,UAAQ;AACR,SAAO;AACT;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,eAAa,IAAI,MAAM;AACvB,iBAAe,IAAI,MAAM;AACzB,gBAAc,IAAI,MAAM;AACxB,SAAO;AACP,YAAU;AACV,cAAY;AACd;;;AC9BA,CAAC;AACC,WAAS;AACT,mBAAiB;AACjB,eAAa;AACb,SAAO;AACP,cAAY;AACZ,YAAU;AACZ;AAKA,CAAC;AACC,SAAO;AACP,cAAY;AACZ,eAAa;AACb,iBAAe;AACf,cAAY;AACd;AAIA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,WAAS;AACT,eAAa;AACb,mBAAiB;AACjB,aAAW;AACb;AAGA,CAAC;AACC,YAAU;AACV,UAAQ;AACR,UAAQ,IAAI,MAAM;AAClB,WAAS;AACT,cAAY;AACZ,WAAS;AACT,mBAAiB;AACjB,iBAAe;AACf,cAAY,MAAM,IAAI,IAAI,IAAI;AAChC;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;AAChB,SAAO;AACP,UAAQ;AACR,cAAY;AACZ,UAAQ,IAAI,MAAM;AAClB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AAEZ,YAAU;AACV,WAAS;AACX;AAEA,CAAC;AACC,SAAO;AACP,aAAW;AACX,gBAAc,IAAI,MAAM;AACxB,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,UAAQ,KAAK,KAAK,EAAE;AACpB,OAAK;AACL,SAAO;AACP,cAAY;AACZ,gBAAc,OAAO,IAAI;AAC3B;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,OAAK;AACL,SAAO;AACP,UAAQ;AACR,eAAa,KAAK,MAAM;AACxB,gBAAc,KAAK,MAAM;AAEzB,cAAY,KAAK,MAAM;AACzB;AAEA,CAAC;AACC,UAAQ;AAER,cAAY,IAAI,IAAI,KAAK;AAC3B;AAEA,CAAC;AACC,YAAU;AACV,eAAa;AACf;AAEA,CAAC;AACC,YAAU;AACV,SAAO;AACP,cAAY;AAEd;AAEA,CAAC;AACC,YAAU;AACV,QAAM;AACN,aAAW;AAIX,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,OAAK;AACL,UAAQ;AACR,YAAU;AACV,WAAS;AAMT,WAAS;AACX;AAEA,CAdC,cAcc;AACb,YAAU;AACV,OAAK;AACL,QAAM;AACR;AAEA,CApBC,cAoBc,MAAM;AACnB,UAAQ;AACR,gBAAc;AAChB;AAEA,CAAC;AACC,WAAS;AACT,UAAQ;AACR,WAAS;AACT,oBAAkB;AAClB,kBAAgB;AAChB,WAAS;AACX;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\n width: 100px;\n height: fit-content;\n border-right: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n box-shadow: 4px 0px 20px black;\n /* above the canvas, so bars panned under the header slide beneath its shadow */\n position: relative;\n z-index: 2;\n}\n\n.main-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.body-wrapper {\n display: flex;\n flex-direction: row;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n width: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n",".row-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n/* The label wraps to as many lines as it needs; the row height is grown to\n fit it (see SceneStore.setLabelMinHeights) so wrapped labels stay vertically\n centered instead of overflowing into the next row. */\n.row-header-label {\n width: 100%;\n text-align: center;\n white-space: normal;\n overflow-wrap: break-word;\n word-break: break-word;\n}\n\n/* Custom row-header content (the `renderRowLabel` slot). Fills the fixed-width cell and the row's\n (dynamic) height so the content can size itself to the space it's given. */\n.row-header-custom {\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: 0;\n}\n\n/* base look of an event pill — used by the drag ghost */\n.event {\n position: absolute;\n height: 20px;\n border: 1px solid black;\n z-index: 1;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n border-radius: 5px;\n box-shadow: inset 0px 0px 5px gray;\n}\n\n.event-prompt {\n position: absolute;\n display: none;\n z-index: 3;\n}\n\n.time-bar {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 50px;\n min-height: 50px;\n border: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n /* its shadow falls over the canvas below rather than under the bars */\n position: relative;\n z-index: 2;\n}\n\n.empty-block {\n width: 100px;\n min-width: 100px;\n border-right: 1px solid yellow;\n box-sizing: border-box;\n}\n\n.rt-line {\n position: absolute;\n z-index: 3;\n height: calc(100% - 24px);\n top: 24px;\n width: 2px;\n box-sizing: border-box;\n border-right: dotted 2px red;\n}\n\n.rt-arrow {\n position: absolute;\n z-index: 3;\n top: 0px;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n\n border-top: 26px solid red;\n}\n\n.canvas-time-bar {\n height: 100%;\n /* replicates the legacy .hour-row drop shadow onto the content below */\n box-shadow: 0px 4px 20px black;\n}\n\n.canvas-rows-header {\n position: relative;\n flex-shrink: 0;\n}\n\n.canvas-row-header {\n position: absolute;\n width: 100%;\n box-sizing: border-box;\n /* transition is set inline from the `animations` prop */\n}\n\n.canvas-content-column {\n position: relative;\n flex: 1;\n min-width: 0;\n /* the body-wrapper is a flex row; without this the column is stretched to\n the viewport height, the scroll spacer overflows it, and the sticky\n canvas has no room to stick */\n align-self: flex-start;\n}\n\n.canvas-sticky {\n position: sticky;\n top: 0;\n height: 0;\n overflow: visible;\n z-index: 1;\n /* Isolate the sticky's internal layout. The viewport-sized canvases live\n inside it (absolutely positioned); without containment their height leaks\n into the content-sized body-wrapper's size, leaving it taller than its\n rows after a re-stack (a stale gap below the last row). `layout` keeps the\n canvases visible (unlike overflow:hidden) while stopping the leak. */\n contain: layout;\n}\n\n.canvas-sticky canvas {\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.canvas-sticky canvas:last-of-type {\n cursor: grab;\n touch-action: none;\n}\n\n.canvas-drag-ghost {\n display: none;\n height: 20px;\n opacity: 50%;\n background-color: white;\n pointer-events: none;\n z-index: 2;\n}\n\n.pointer-line {\n display: none;\n position: absolute;\n left: 0;\n width: 0;\n border-left: 1px dashed;\n pointer-events: none;\n z-index: 2;\n}\n\n.pointer-label {\n display: none;\n position: absolute;\n top: 26px;\n left: 0;\n padding: 0 6px;\n border-radius: 4px;\n line-height: 18px;\n font-size: 11px;\n white-space: nowrap;\n pointer-events: none;\n z-index: 4;\n}\n"],"mappings":";AAAA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,gBAAc,IAAI,MAAM;AACxB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AACZ,cAAY,IAAI,IAAI,KAAK;AAEzB,YAAU;AACV,WAAS;AACX;AAEA,CAAC;AACC,YAAU;AACV,WAAS;AACT,kBAAgB;AAChB,UAAQ;AACR,SAAO;AACT;AAEA,CAAC;AACC,WAAS;AACT,kBAAgB;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ACC,YAAU;AACV,SAAO;AACP,cAAY;AAEd;AAEA,CAAC;AACC,YAAU;AACV,QAAM;AACN,aAAW;AAIX,cAAY;AACd;AAEA,CAAC;AACC,YAAU;AACV,OAAK;AACL,UAAQ;AACR,YAAU;AACV,WAAS;AAMT,WAAS;AACX;AAEA,CAdC,cAcc;AACb,YAAU;AACV,OAAK;AACL,QAAM;AACR;AAEA,CApBC,cAoBc,MAAM;AACnB,UAAQ;AACR,gBAAc;AAChB;AAEA,CAAC;AACC,WAAS;AACT,UAAQ;AACR,WAAS;AACT,oBAAkB;AAClB,kBAAgB;AAChB,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,YAAU;AACV,QAAM;AACN,SAAO;AACP,eAAa,IAAI;AACjB,kBAAgB;AAChB,WAAS;AACX;AAEA,CAAC;AACC,WAAS;AACT,YAAU;AACV,OAAK;AACL,QAAM;AACN,WAAS,EAAE;AACX,iBAAe;AACf,eAAa;AACb,aAAW;AACX,eAAa;AACb,kBAAgB;AAChB,WAAS;AACX;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DEFAULT_TIME_BAR_LEVELS } from './_tsup-dts-rollup.mjs';
|
|
1
2
|
export { RowType } from './_tsup-dts-rollup.mjs';
|
|
2
3
|
export { EventType } from './_tsup-dts-rollup.mjs';
|
|
3
4
|
export { EventPropsType } from './_tsup-dts-rollup.mjs';
|
|
@@ -13,6 +14,10 @@ export { OnEventClickProps } from './_tsup-dts-rollup.mjs';
|
|
|
13
14
|
export { OnEventHoverProps } from './_tsup-dts-rollup.mjs';
|
|
14
15
|
export { DroppableError } from './_tsup-dts-rollup.mjs';
|
|
15
16
|
export { PanZoomConfig } from './_tsup-dts-rollup.mjs';
|
|
17
|
+
export { TimeBarConfig } from './_tsup-dts-rollup.mjs';
|
|
18
|
+
export { TimeBarLevel } from './_tsup-dts-rollup.mjs';
|
|
19
|
+
export { TimeBarRowConfig } from './_tsup-dts-rollup.mjs';
|
|
20
|
+
export { TimeBarUnit } from './_tsup-dts-rollup.mjs';
|
|
16
21
|
export { EventPatch } from './_tsup-dts-rollup.mjs';
|
|
17
22
|
export { TimelineHandle } from './_tsup-dts-rollup.mjs';
|
|
18
23
|
export { TimelineProps } from './_tsup-dts-rollup.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { DEFAULT_TIME_BAR_LEVELS } from './_tsup-dts-rollup.js';
|
|
1
2
|
export { RowType } from './_tsup-dts-rollup.js';
|
|
2
3
|
export { EventType } from './_tsup-dts-rollup.js';
|
|
3
4
|
export { EventPropsType } from './_tsup-dts-rollup.js';
|
|
@@ -13,6 +14,10 @@ export { OnEventClickProps } from './_tsup-dts-rollup.js';
|
|
|
13
14
|
export { OnEventHoverProps } from './_tsup-dts-rollup.js';
|
|
14
15
|
export { DroppableError } from './_tsup-dts-rollup.js';
|
|
15
16
|
export { PanZoomConfig } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { TimeBarConfig } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { TimeBarLevel } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { TimeBarRowConfig } from './_tsup-dts-rollup.js';
|
|
20
|
+
export { TimeBarUnit } from './_tsup-dts-rollup.js';
|
|
16
21
|
export { EventPatch } from './_tsup-dts-rollup.js';
|
|
17
22
|
export { TimelineHandle } from './_tsup-dts-rollup.js';
|
|
18
23
|
export { TimelineProps } from './_tsup-dts-rollup.js';
|