@memobit/libs 3.21.0 → 3.23.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/dist/components/ControlPanel/ControlPanel.css +1 -1
- package/dist/components/ControlPanel/ControlPanel2.js +112 -98
- package/dist/components/ControlPanel/ControlPanelContext.js +35 -17
- package/dist/components/DirectionPad/DirectionPad.css +1 -0
- package/dist/components/DirectionPad/DirectionPad2.js +35 -0
- package/dist/components/Toolbar/Toolbar2.js +7 -7
- package/dist/helpers/VersionInfo.js +1 -1
- package/dist/index.d.ts +30 -0
- package/dist/index.js +239 -237
- package/dist/memobit-icons.json +2 -0
- package/dist/version.js +1 -1
- package/dist/version.json +4 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.control-panel{--control-panel-width:280px;--control-panel-shadow:none;--control-panel-nav-depth:0;width:var(--control-panel-width);margin:var(--spacing-16);min-height:calc(100vh - var(--spacing-32));min-height:calc(100dvh - var(--spacing-32));background:var(--card-background-color);border:var(--spacing-1) solid var(--delimiter-color);border-radius:var(--radius);box-shadow:var(--control-panel-shadow);flex-shrink:0;transition:width .3s,transform .3s,border-color .3s;overflow-x:hidden}.control-panel__nav{gap:var(--spacing-4);padding:var(--spacing-8);border-top:var(--spacing-1) solid var(--delimiter-color);flex-direction:column;display:flex}.control-panel__nav-node{gap:var(--spacing-4);flex-direction:column;display:flex}.control-panel__nav-row{align-items:center;gap:var(--spacing-4);padding-left:calc(var(--control-panel-nav-depth) * var(--spacing-16));display:flex}.control-panel__nav-toggle,.control-panel__nav-toggle-placeholder{width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0}.control-panel__nav-toggle{border-radius:var(--radius-sm);color:var(--body-color-muted);cursor:pointer;transition:background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.control-panel__nav-toggle:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__nav-toggle--open{color:var(--body-accent-color);transform:rotate(90deg)}.control-panel__nav-toggle-placeholder{display:inline-block}.control-panel__nav-children{gap:var(--spacing-4);flex-direction:column;display:none}.control-panel__nav-children--open{display:flex}.control-panel__nav-item{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-12);border:var(--spacing-1) solid transparent;border-radius:var(--radius);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-normal);text-align:left;cursor:pointer;transition:background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);background:0 0;display:flex}.control-panel__nav-item:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__nav-item--active{border-color:var(--body-accent-color);background:var(--card-background-accent-color);color:var(--body-accent-color);font-weight:var(--font-weight-medium)}.control-panel__nav-item--dimmed{opacity:.45}.control-panel__nav-item--dimmed:hover{opacity:1}.control-panel__nav-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.control-panel__nav-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.control-panel__nav-icon{flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.control-panel__nav-badges{align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-8);margin-left:auto;display:flex}.control-panel__nav-badge{min-width:18px;height:18px;padding:0 var(--spacing-4);border-radius:var(--radius-full);font-size:var(--font-size-xxs);font-weight:var(--font-weight-semibold);justify-content:center;align-items:center;line-height:1;display:inline-flex}.control-panel__nav-badge--danger{background-color:var(--button-danger-background-color);color:var(--button-danger-color)}.control-panel__nav-badge--warning{background-color:var(--button-warning-background-color);color:var(--button-warning-color)}.control-panel__nav-count{padding-left:var(--spacing-8);color:var(--body-color-muted);font-size:var(--font-size-xs);margin-left:auto}.control-panel__actions{gap:var(--spacing-8);padding:var(--spacing-16);flex-direction:column;display:flex}.control-panel__action{justify-content:flex-start}.control-panel--closed:not(.control-panel--mobile){border-right-width:0;width:0}.control-panel--closed:not(.control-panel--mobile)>*{visibility:hidden;pointer-events:none}.control-panel--mobile{border:0;border-right:var(--spacing-1) solid var(--delimiter-color);z-index:1000;min-height:0;box-shadow:var(--spacing-2) 0 var(--spacing-8) var(--box-shadow);border-radius:0;margin:0;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.control-panel--mobile.control-panel--open{transform:translate(0)}.control-panel--contained{position:absolute}.control-panel--flush:not(.control-panel--mobile){border-radius:0;min-height:100dvh;margin:0}.control-panel--sticky:not(.control-panel--mobile){top:var(--spacing-16);min-height:0;height:calc(100vh - var(--spacing-32));height:calc(100dvh - var(--spacing-32));align-self:flex-start;position:sticky}.control-panel--sticky.control-panel--flush:not(.control-panel--mobile){height:100dvh;top:0}.control-panel__overlay{z-index:999;background:#00000080;position:fixed;inset:0}.control-panel__overlay--contained{position:absolute}.control-panel__filters{align-items:flex-start;gap:var(--spacing-16);padding:var(--spacing-16);border-top:var(--spacing-1) solid var(--delimiter-color);flex-wrap:wrap;display:flex}.control-panel__filters-header{justify-content:space-between;align-items:center;gap:var(--spacing-12);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);flex:100%;display:flex}.control-panel__filters-heading{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__filters-count{min-width:var(--spacing-20);height:var(--spacing-20);padding:0 var(--spacing-6);background:var(--body-accent-color);color:var(--button-info-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.control-panel__filters-clear{color:var(--body-accent-color);cursor:pointer;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);background:0 0;border:0;padding:0}.control-panel__filters--collapsible{gap:var(--spacing-4)}.control-panel__filter{gap:var(--spacing-8);flex-direction:column;flex:100%;min-width:0;display:flex}.control-panel__filter--checkbox{flex:none}.control-panel__filter--collapsible{gap:var(--spacing-4);padding-bottom:var(--spacing-4);border-bottom:var(--spacing-1) solid var(--delimiter-color)}.control-panel__filter--collapsible:last-child{border-bottom:0;padding-bottom:0}.control-panel__filter-toggle{align-items:center;gap:var(--spacing-8);width:100%;padding:var(--spacing-6) 0;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;font-family:inherit;display:flex}.control-panel__filter-toggle:hover .control-panel__filter-title,.control-panel__filter-toggle:hover .control-panel__filter-caret{color:var(--body-color-accent)}.control-panel__filter-toggle .control-panel__filter-title{flex:0 auto;min-width:0}.control-panel__filter-summary{min-width:0;color:var(--body-accent-color);font-size:var(--font-size-xs);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.control-panel__filter-caret{color:var(--body-color-muted);flex-shrink:0;margin-left:auto;transition:color .2s;display:inline-flex}.control-panel__filter-title{align-items:center;gap:var(--spacing-6);color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:0;text-transform:uppercase;display:flex}.control-panel__filter-title--active{color:var(--body-accent-color)}.control-panel__filter-active-dot{width:var(--spacing-6);height:var(--spacing-6);background:var(--body-accent-color);border-radius:999px;flex-shrink:0}.control-panel__filter-list,.control-panel__filter-chips{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-list--inline{flex-flow:wrap}.control-panel__filter-list--inline .control-panel__filter-radio{flex:none}.control-panel__filter-list--inline .control-panel__filter-radio-label{width:auto}.control-panel__filter-chips{flex-flow:wrap}.control-panel__filter-chips--stacked{gap:var(--spacing-4);flex-flow:column}.control-panel__filter-chips--stacked .chip{justify-content:flex-start;width:100%}.control-panel__filter-chips--stacked .chip__count{margin-left:auto}.control-panel__filter-chips-wrap{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-chip-search{width:100%}.control-panel__filter-chip-avatar{width:var(--spacing-20);height:var(--spacing-20);border-radius:var(--radius-full);object-fit:cover;margin-left:calc(var(--spacing-4) * -1);margin-right:var(--spacing-6);vertical-align:middle;flex-shrink:0}.control-panel__filter-radio{min-height:var(--spacing-40);border:var(--spacing-1) solid transparent;border-radius:var(--radius);color:var(--body-color);font-size:var(--font-size-sm);background:0 0;align-items:center;transition:background .2s,border-color .2s,color .2s;display:flex}.control-panel__filter-radio:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__filter-radio--selected{border-color:var(--body-accent-color);background:var(--card-background-accent-color);color:var(--body-accent-color)}.control-panel__filter-radio--disabled{opacity:.45;cursor:not-allowed}.control-panel__filter-radio--disabled:hover{color:var(--body-color);background:0 0}.control-panel__filter-radio--disabled .control-panel__filter-radio-label{cursor:not-allowed}.control-panel__filter-radio--stale,.control-panel__filter-radio--stale:hover{border-style:dashed;border-color:var(--button-warning-background-color);color:var(--button-warning-background-color)}.control-panel__filter-chip--stale.chip{border-style:dashed}.control-panel__filter-option--stale .dropdown-option-content{color:var(--button-warning-background-color)}.control-panel__filter-radio-label{align-items:center;gap:var(--spacing-8);width:100%;min-width:0;padding:10px var(--spacing-12);cursor:pointer;display:flex}.control-panel__filter-radio-input{opacity:0;pointer-events:none;width:0;height:0;margin:0;position:absolute}.control-panel__filter-swatch{border-radius:999px;flex-shrink:0;width:10px;height:10px}.control-panel__filter-icon{color:var(--body-color);flex-shrink:0;align-items:center;display:inline-flex}.control-panel__filter-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.control-panel__filter-count{color:var(--body-color-muted);font-size:var(--font-size-xs);text-align:right;margin-left:auto}.control-panel__filter-search,.control-panel__filter-text .input-text-wrapper,.control-panel__filter-number .input-number-wrapper{width:100%}.control-panel__filter-range{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__filter-range .input-number-wrapper{flex:1;min-width:0}.control-panel__filter-date-range{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-date-range .datepicker{width:100%;max-width:none}.control-panel__filter-date-presets{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.control-panel__filter-range-sep{color:var(--body-color-muted);flex-shrink:0}.control-panel__filter-dropdown{width:100%}.control-panel__options{gap:var(--spacing-16);padding:var(--spacing-16);flex-direction:column;display:flex}.control-panel__options-header{align-items:center;gap:var(--spacing-12);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);display:flex}.control-panel__options-heading{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__option-group{gap:var(--spacing-12);flex-direction:column;display:flex}.control-panel__option-group-label{color:var(--body-accent-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:.05em;text-transform:uppercase}.control-panel__option{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__option--checkbox{align-items:flex-start}.control-panel__option--slider .slider-input{margin-bottom:0}.control-panel__option-slider-value{color:var(--body-accent-color);font-variant-numeric:tabular-nums;text-transform:none;margin-left:auto}.control-panel__option-view-toggle{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.control-panel::-webkit-scrollbar{width:var(--scrollbar-size)}.control-panel::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.control-panel::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-radius)}.control-panel::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover-color)}@media (width>=769px){.control-panel{overflow-y:auto}}
|
|
1
|
+
.control-panel{--control-panel-width:280px;--control-panel-shadow:none;--control-panel-nav-depth:0;width:var(--control-panel-width);margin:var(--spacing-16);min-height:calc(100vh - var(--spacing-32));min-height:calc(100dvh - var(--spacing-32));background:var(--card-background-color);border:var(--spacing-1) solid var(--delimiter-color);border-radius:var(--radius);box-shadow:var(--control-panel-shadow);flex-shrink:0;transition:width .3s,transform .3s,border-color .3s;position:relative;overflow-x:hidden}.control-panel__nav{gap:var(--spacing-4);padding:var(--spacing-8);border-top:var(--spacing-1) solid var(--delimiter-color);flex-direction:column;display:flex}.control-panel__nav-node{gap:var(--spacing-4);flex-direction:column;display:flex}.control-panel__nav-row{align-items:center;gap:var(--spacing-4);padding-left:calc(var(--control-panel-nav-depth) * var(--spacing-16));display:flex}.control-panel__nav-toggle,.control-panel__nav-toggle-placeholder{width:var(--spacing-24);height:var(--spacing-24);flex-shrink:0}.control-panel__nav-toggle{border-radius:var(--radius-sm);color:var(--body-color-muted);cursor:pointer;transition:background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);background:0 0;border:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.control-panel__nav-toggle:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__nav-toggle--open{color:var(--body-accent-color);transform:rotate(90deg)}.control-panel__nav-toggle-placeholder{display:inline-block}.control-panel__nav-children{gap:var(--spacing-4);flex-direction:column;display:none}.control-panel__nav-children--open{display:flex}.control-panel__nav-item{align-items:center;gap:var(--spacing-8);width:100%;min-height:var(--spacing-40);padding:var(--spacing-8) var(--spacing-12);border:var(--spacing-1) solid transparent;border-radius:var(--radius);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-normal);text-align:left;cursor:pointer;transition:background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);background:0 0;display:flex}.control-panel__nav-item:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__nav-item--active{border-color:var(--body-accent-color);background:var(--card-background-accent-color);color:var(--body-accent-color);font-weight:var(--font-weight-medium)}.control-panel__nav-item--dimmed{opacity:.45}.control-panel__nav-item--dimmed:hover{opacity:1}.control-panel__nav-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.control-panel__nav-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.control-panel__nav-icon{flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.control-panel__nav-badges{align-items:center;gap:var(--spacing-4);padding-left:var(--spacing-8);margin-left:auto;display:flex}.control-panel__nav-badge{min-width:18px;height:18px;padding:0 var(--spacing-4);border-radius:var(--radius-full);font-size:var(--font-size-xxs);font-weight:var(--font-weight-semibold);justify-content:center;align-items:center;line-height:1;display:inline-flex}.control-panel__nav-badge--danger{background-color:var(--button-danger-background-color);color:var(--button-danger-color)}.control-panel__nav-badge--warning{background-color:var(--button-warning-background-color);color:var(--button-warning-color)}.control-panel__nav-count{padding-left:var(--spacing-8);color:var(--body-color-muted);font-size:var(--font-size-xs);margin-left:auto}.control-panel__actions{gap:var(--spacing-8);padding:var(--spacing-16);flex-direction:column;display:flex}.control-panel__action{justify-content:flex-start}.control-panel__dock{top:var(--spacing-12);right:var(--spacing-12);z-index:1;position:absolute}.control-panel--undockable .app-header{padding-right:calc(var(--spacing-16) + var(--spacing-32))}.control-panel--closed:not(.control-panel--mobile){border-right-width:0;width:0}.control-panel--closed:not(.control-panel--mobile)>*{visibility:hidden;pointer-events:none}.control-panel--mobile{border:0;border-right:var(--spacing-1) solid var(--delimiter-color);z-index:1000;min-height:0;box-shadow:var(--spacing-2) 0 var(--spacing-8) var(--box-shadow);border-radius:0;margin:0;position:fixed;top:0;bottom:0;left:0;transform:translate(-100%)}.control-panel--mobile.control-panel--open{transform:translate(0)}.control-panel--contained{position:absolute}.control-panel--flush:not(.control-panel--mobile){border-radius:0;min-height:100dvh;margin:0}.control-panel--sticky:not(.control-panel--mobile){top:var(--spacing-16);min-height:0;height:calc(100vh - var(--spacing-32));height:calc(100dvh - var(--spacing-32));align-self:flex-start;position:sticky}.control-panel--sticky.control-panel--flush:not(.control-panel--mobile){height:100dvh;top:0}.control-panel__overlay{z-index:999;background:#00000080;position:fixed;inset:0}.control-panel__overlay--contained{position:absolute}.control-panel__filters{align-items:flex-start;gap:var(--spacing-16);padding:var(--spacing-16);border-top:var(--spacing-1) solid var(--delimiter-color);flex-wrap:wrap;display:flex}.control-panel__filters-header{justify-content:space-between;align-items:center;gap:var(--spacing-12);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);flex:100%;display:flex}.control-panel__filters-heading{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__filters-count{min-width:var(--spacing-20);height:var(--spacing-20);padding:0 var(--spacing-6);background:var(--body-accent-color);color:var(--button-info-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.control-panel__filters-clear{color:var(--body-accent-color);cursor:pointer;font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);background:0 0;border:0;padding:0}.control-panel__filters--collapsible{gap:var(--spacing-4)}.control-panel__filter{gap:var(--spacing-8);flex-direction:column;flex:100%;min-width:0;display:flex}.control-panel__filter--checkbox{flex:none}.control-panel__filter--collapsible{gap:var(--spacing-4);padding-bottom:var(--spacing-4);border-bottom:var(--spacing-1) solid var(--delimiter-color)}.control-panel__filter--collapsible:last-child{border-bottom:0;padding-bottom:0}.control-panel__filter-toggle{align-items:center;gap:var(--spacing-8);width:100%;padding:var(--spacing-6) 0;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;font-family:inherit;display:flex}.control-panel__filter-toggle:hover .control-panel__filter-title,.control-panel__filter-toggle:hover .control-panel__filter-caret{color:var(--body-color-accent)}.control-panel__filter-toggle .control-panel__filter-title{flex:0 auto;min-width:0}.control-panel__filter-summary{min-width:0;color:var(--body-accent-color);font-size:var(--font-size-xs);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;overflow:hidden}.control-panel__filter-caret{color:var(--body-color-muted);flex-shrink:0;margin-left:auto;transition:color .2s;display:inline-flex}.control-panel__filter-title{align-items:center;gap:var(--spacing-6);color:var(--body-color-muted);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:0;text-transform:uppercase;display:flex}.control-panel__filter-title--active{color:var(--body-accent-color)}.control-panel__filter-active-dot{width:var(--spacing-6);height:var(--spacing-6);background:var(--body-accent-color);border-radius:999px;flex-shrink:0}.control-panel__filter-list,.control-panel__filter-chips{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-list--inline{flex-flow:wrap}.control-panel__filter-list--inline .control-panel__filter-radio{flex:none}.control-panel__filter-list--inline .control-panel__filter-radio-label{width:auto}.control-panel__filter-chips{flex-flow:wrap}.control-panel__filter-chips--stacked{gap:var(--spacing-4);flex-flow:column}.control-panel__filter-chips--stacked .chip{justify-content:flex-start;width:100%}.control-panel__filter-chips--stacked .chip__count{margin-left:auto}.control-panel__filter-chips-wrap{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-chip-search{width:100%}.control-panel__filter-chip-avatar{width:var(--spacing-20);height:var(--spacing-20);border-radius:var(--radius-full);object-fit:cover;margin-left:calc(var(--spacing-4) * -1);margin-right:var(--spacing-6);vertical-align:middle;flex-shrink:0}.control-panel__filter-radio{min-height:var(--spacing-40);border:var(--spacing-1) solid transparent;border-radius:var(--radius);color:var(--body-color);font-size:var(--font-size-sm);background:0 0;align-items:center;transition:background .2s,border-color .2s,color .2s;display:flex}.control-panel__filter-radio:hover{background:var(--card-background-accent-color);color:var(--body-color-accent)}.control-panel__filter-radio--selected{border-color:var(--body-accent-color);background:var(--card-background-accent-color);color:var(--body-accent-color)}.control-panel__filter-radio--disabled{opacity:.45;cursor:not-allowed}.control-panel__filter-radio--disabled:hover{color:var(--body-color);background:0 0}.control-panel__filter-radio--disabled .control-panel__filter-radio-label{cursor:not-allowed}.control-panel__filter-radio--stale,.control-panel__filter-radio--stale:hover{border-style:dashed;border-color:var(--button-warning-background-color);color:var(--button-warning-background-color)}.control-panel__filter-chip--stale.chip{border-style:dashed}.control-panel__filter-option--stale .dropdown-option-content{color:var(--button-warning-background-color)}.control-panel__filter-radio-label{align-items:center;gap:var(--spacing-8);width:100%;min-width:0;padding:10px var(--spacing-12);cursor:pointer;display:flex}.control-panel__filter-radio-input{opacity:0;pointer-events:none;width:0;height:0;margin:0;position:absolute}.control-panel__filter-swatch{border-radius:999px;flex-shrink:0;width:10px;height:10px}.control-panel__filter-icon{color:var(--body-color);flex-shrink:0;align-items:center;display:inline-flex}.control-panel__filter-label{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.control-panel__filter-count{color:var(--body-color-muted);font-size:var(--font-size-xs);text-align:right;margin-left:auto}.control-panel__filter-search,.control-panel__filter-text .input-text-wrapper,.control-panel__filter-number .input-number-wrapper{width:100%}.control-panel__filter-range{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__filter-range .input-number-wrapper{flex:1;min-width:0}.control-panel__filter-date-range{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__filter-date-range .datepicker{width:100%;max-width:none}.control-panel__filter-date-presets{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.control-panel__filter-range-sep{color:var(--body-color-muted);flex-shrink:0}.control-panel__filter-dropdown{width:100%}.control-panel__options{gap:var(--spacing-16);padding:var(--spacing-16);flex-direction:column;display:flex}.control-panel__options-header{align-items:center;gap:var(--spacing-12);color:var(--body-color);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);display:flex}.control-panel__options-heading{align-items:center;gap:var(--spacing-8);display:flex}.control-panel__option-group{gap:var(--spacing-12);flex-direction:column;display:flex}.control-panel__option-group-label{color:var(--body-accent-color);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);letter-spacing:.05em;text-transform:uppercase}.control-panel__option{gap:var(--spacing-8);flex-direction:column;display:flex}.control-panel__option--checkbox{align-items:flex-start}.control-panel__option--slider .slider-input{margin-bottom:0}.control-panel__option-slider-value{color:var(--body-accent-color);font-variant-numeric:tabular-nums;text-transform:none;margin-left:auto}.control-panel__option-view-toggle{gap:var(--spacing-8);flex-wrap:wrap;display:flex}.control-panel::-webkit-scrollbar{width:var(--scrollbar-size)}.control-panel::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.control-panel::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color);border-radius:var(--scrollbar-radius)}.control-panel::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover-color)}@media (width>=769px){.control-panel{overflow-y:auto}}
|
|
@@ -1,136 +1,150 @@
|
|
|
1
1
|
import './ControlPanel.css';
|
|
2
|
-
import { Button as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { Separator as
|
|
5
|
-
import { AppHeader as
|
|
2
|
+
import { Button as F } from "../Button/Button2.js";
|
|
3
|
+
import { Tooltip as T } from "../Tooltip/Tooltip2.js";
|
|
4
|
+
import { Separator as $ } from "../Separator/Separator2.js";
|
|
5
|
+
import { AppHeader as q } from "../AppHeader/AppHeader2.js";
|
|
6
6
|
import { ConfirmPopover as J } from "../ConfirmPopover/ConfirmPopover2.js";
|
|
7
|
-
import { ControlPanelFilterItem as
|
|
8
|
-
import { ControlPanelNav as
|
|
7
|
+
import { ControlPanelFilterItem as L } from "./ControlPanelFilter.js";
|
|
8
|
+
import { ControlPanelNav as M } from "./ControlPanelNav.js";
|
|
9
9
|
import { ControlPanelOptions as Q } from "./ControlPanelOptions.js";
|
|
10
|
-
import { useControlPanelContext as
|
|
10
|
+
import { useControlPanelContext as X } from "./useControlPanel.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import { useState as A } from "react";
|
|
13
|
-
import { Fragment as
|
|
14
|
-
var
|
|
15
|
-
const
|
|
16
|
-
}),
|
|
13
|
+
import { Fragment as V, jsx as n, jsxs as i } from "react/jsx-runtime";
|
|
14
|
+
var fe = ({ width: e = "280px", className: c = "", isOpen: u, onClose: C, isMobile: s, showOverlay: m = !0, contained: p = !1, flush: _ = !1, sticky: f = !1, shadow: d = "none", header: l, navigation: k = [], actions: x = [], filters: g = [], filtersCount: h, collapsibleFilters: b = !1, onFilterChange: D, onClearFilters: y, options: v = [], onOptionChange: E, viewToggle: j, groupBy: P, visibleColumns: O }) => {
|
|
15
|
+
const r = X(), o = s ?? r?.isDrawer ?? !1, w = u ?? (o ? r?.isOpen ?? !1 : !0), a = C ?? r?.close ?? (() => {
|
|
16
|
+
}), N = s === void 0 && r?.undockable ? r : null, H = [
|
|
17
17
|
"control-panel",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"--control-panel-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
w ? "control-panel--open" : "control-panel--closed",
|
|
19
|
+
o ? "control-panel--mobile" : "",
|
|
20
|
+
N ? "control-panel--undockable" : "",
|
|
21
|
+
p ? "control-panel--contained" : "",
|
|
22
|
+
_ ? "control-panel--flush" : "",
|
|
23
|
+
f ? "control-panel--sticky" : "",
|
|
24
|
+
c
|
|
25
|
+
].filter(Boolean).join(" "), W = ["control-panel__overlay", p ? "control-panel__overlay--contained" : ""].filter(Boolean).join(" "), G = {
|
|
26
|
+
"--control-panel-width": e,
|
|
27
|
+
"--control-panel-shadow": d
|
|
28
|
+
}, z = v.length === 0 ? [] : "type" in v[0] ? [{ options: v }] : v, B = !!(j || P || O || z.length > 0), I = g.length > 0 || h !== void 0 && h > 0, K = typeof b == "number" ? b : b ? 1 : 1 / 0, S = g.length >= K, R = ["control-panel__filters", S ? "control-panel__filters--collapsible" : ""].filter(Boolean).join(" ");
|
|
29
|
+
return /* @__PURE__ */ i(V, { children: [m && o && w && /* @__PURE__ */ n("div", {
|
|
30
|
+
className: W,
|
|
31
|
+
onClick: a
|
|
32
|
+
}), /* @__PURE__ */ i("aside", {
|
|
33
|
+
className: H,
|
|
34
|
+
style: G,
|
|
34
35
|
children: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
N && /* @__PURE__ */ n("div", {
|
|
37
|
+
className: "control-panel__dock",
|
|
38
|
+
children: /* @__PURE__ */ n(T, {
|
|
39
|
+
title: o ? "Keep the panel open beside the page" : "Hide the panel, and open it from the toolbar when needed",
|
|
40
|
+
position: "right",
|
|
41
|
+
children: /* @__PURE__ */ n(F, {
|
|
42
|
+
icon: o ? "pin" : "caret-left",
|
|
43
|
+
onClick: () => N.setUndocked(!o),
|
|
44
|
+
size: "small",
|
|
45
|
+
variant: "default"
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
l && /* @__PURE__ */ n(q, {
|
|
50
|
+
icon: l.icon,
|
|
51
|
+
emoji: l.emoji,
|
|
52
|
+
svg: l.svg,
|
|
53
|
+
appName: l.appName ?? l.siteName,
|
|
54
|
+
heading: l.heading,
|
|
55
|
+
onClick: l.onClick ? () => {
|
|
56
|
+
l.onClick?.(), o && a();
|
|
43
57
|
} : void 0
|
|
44
58
|
}),
|
|
45
|
-
x.length > 0 && /* @__PURE__ */
|
|
59
|
+
x.length > 0 && /* @__PURE__ */ n("div", {
|
|
46
60
|
className: "control-panel__actions",
|
|
47
|
-
children: x.map((
|
|
48
|
-
action:
|
|
49
|
-
onActionComplete:
|
|
50
|
-
},
|
|
61
|
+
children: x.map((t) => /* @__PURE__ */ n(Y, {
|
|
62
|
+
action: t,
|
|
63
|
+
onActionComplete: o ? a : void 0
|
|
64
|
+
}, t.id))
|
|
51
65
|
}),
|
|
52
|
-
|
|
53
|
-
navigation:
|
|
54
|
-
onNavigate:
|
|
66
|
+
k.length > 0 && /* @__PURE__ */ n(M, {
|
|
67
|
+
navigation: k,
|
|
68
|
+
onNavigate: o ? a : void 0
|
|
55
69
|
}),
|
|
56
|
-
|
|
57
|
-
className:
|
|
58
|
-
children: [/* @__PURE__ */
|
|
70
|
+
I && /* @__PURE__ */ i("div", {
|
|
71
|
+
className: R,
|
|
72
|
+
children: [/* @__PURE__ */ i("div", {
|
|
59
73
|
className: "control-panel__filters-header",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ i("span", {
|
|
61
75
|
className: "control-panel__filters-heading",
|
|
62
|
-
children: ["Filters",
|
|
76
|
+
children: ["Filters", h !== void 0 && /* @__PURE__ */ n("span", {
|
|
63
77
|
className: "control-panel__filters-count",
|
|
64
|
-
children:
|
|
78
|
+
children: h
|
|
65
79
|
})]
|
|
66
|
-
}),
|
|
80
|
+
}), y && /* @__PURE__ */ n("button", {
|
|
67
81
|
className: "control-panel__filters-clear",
|
|
68
82
|
type: "button",
|
|
69
|
-
onClick: () =>
|
|
83
|
+
onClick: () => y({ source: "control-panel" }),
|
|
70
84
|
children: "Clear filters"
|
|
71
85
|
})]
|
|
72
|
-
}),
|
|
73
|
-
filter:
|
|
74
|
-
collapsible:
|
|
75
|
-
onChange: (
|
|
76
|
-
},
|
|
86
|
+
}), g.map((t) => /* @__PURE__ */ n(L, {
|
|
87
|
+
filter: t,
|
|
88
|
+
collapsible: t.collapsible ?? S,
|
|
89
|
+
onChange: (U) => D?.(U)
|
|
90
|
+
}, t.id))]
|
|
77
91
|
}),
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
normalizedOptionGroups:
|
|
81
|
-
onOptionChange:
|
|
82
|
-
viewToggle:
|
|
83
|
-
onViewToggleComplete:
|
|
92
|
+
I && B && /* @__PURE__ */ n($, { spacing: 0 }),
|
|
93
|
+
B && /* @__PURE__ */ n(Q, {
|
|
94
|
+
normalizedOptionGroups: z,
|
|
95
|
+
onOptionChange: E,
|
|
96
|
+
viewToggle: j,
|
|
97
|
+
onViewToggleComplete: o ? a : void 0,
|
|
84
98
|
groupBy: P,
|
|
85
|
-
visibleColumns:
|
|
99
|
+
visibleColumns: O
|
|
86
100
|
})
|
|
87
101
|
]
|
|
88
102
|
})] });
|
|
89
|
-
},
|
|
90
|
-
const [
|
|
91
|
-
if (
|
|
92
|
-
C(
|
|
103
|
+
}, Y = ({ action: e, onActionComplete: c }) => {
|
|
104
|
+
const [u, C] = A(null), [s, m] = A(!1), p = (d) => {
|
|
105
|
+
if (e.confirm) {
|
|
106
|
+
C(d.currentTarget), m(!0);
|
|
93
107
|
return;
|
|
94
108
|
}
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
},
|
|
109
|
+
e.onClick?.(d), c?.();
|
|
110
|
+
}, _ = () => {
|
|
111
|
+
e.onClick?.({}), c?.();
|
|
112
|
+
}, f = /* @__PURE__ */ n(F, {
|
|
99
113
|
className: "control-panel__action",
|
|
100
|
-
disabled:
|
|
101
|
-
fullWidth:
|
|
102
|
-
icon:
|
|
103
|
-
onClick:
|
|
104
|
-
size:
|
|
105
|
-
sufixIcon:
|
|
106
|
-
variant:
|
|
107
|
-
children:
|
|
114
|
+
disabled: e.disabled,
|
|
115
|
+
fullWidth: e.fullWidth ?? !0,
|
|
116
|
+
icon: e.icon,
|
|
117
|
+
onClick: p,
|
|
118
|
+
size: e.size ?? "medium",
|
|
119
|
+
sufixIcon: e.suffixIcon,
|
|
120
|
+
variant: e.variant ?? "default",
|
|
121
|
+
children: e.label
|
|
108
122
|
});
|
|
109
|
-
return /* @__PURE__ */
|
|
110
|
-
title:
|
|
123
|
+
return /* @__PURE__ */ i(V, { children: [e.tooltip ? /* @__PURE__ */ n(T, {
|
|
124
|
+
title: e.tooltip,
|
|
111
125
|
position: "right",
|
|
112
|
-
children:
|
|
113
|
-
}) :
|
|
114
|
-
visible:
|
|
115
|
-
onClose: () =>
|
|
116
|
-
anchorEl:
|
|
117
|
-
title:
|
|
118
|
-
message:
|
|
119
|
-
icon:
|
|
120
|
-
placement:
|
|
126
|
+
children: f
|
|
127
|
+
}) : f, e.confirm && /* @__PURE__ */ n(J, {
|
|
128
|
+
visible: s,
|
|
129
|
+
onClose: () => m(!1),
|
|
130
|
+
anchorEl: u,
|
|
131
|
+
title: e.confirm.title ?? e.label,
|
|
132
|
+
message: e.confirm.message,
|
|
133
|
+
icon: e.confirm.icon,
|
|
134
|
+
placement: e.confirm.placement ?? "right",
|
|
121
135
|
confirm: {
|
|
122
|
-
text:
|
|
123
|
-
icon:
|
|
124
|
-
variant:
|
|
125
|
-
onClick:
|
|
136
|
+
text: e.confirm.confirm?.text ?? "Confirm",
|
|
137
|
+
icon: e.confirm.confirm?.icon,
|
|
138
|
+
variant: e.confirm.confirm?.variant ?? e.variant ?? "info",
|
|
139
|
+
onClick: _
|
|
126
140
|
},
|
|
127
141
|
cancel: {
|
|
128
|
-
text:
|
|
129
|
-
icon:
|
|
130
|
-
variant:
|
|
142
|
+
text: e.confirm.cancel?.text ?? "Cancel",
|
|
143
|
+
icon: e.confirm.cancel?.icon,
|
|
144
|
+
variant: e.confirm.cancel?.variant ?? "default"
|
|
131
145
|
}
|
|
132
146
|
})] });
|
|
133
147
|
};
|
|
134
148
|
export {
|
|
135
|
-
|
|
149
|
+
fe as ControlPanel
|
|
136
150
|
};
|
|
@@ -1,26 +1,44 @@
|
|
|
1
|
-
import { ControlPanelContext as
|
|
2
|
-
import { useBreakpoint as
|
|
3
|
-
import { useCallback as
|
|
4
|
-
import { jsx as
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { ControlPanelContext as U } from "./useControlPanel.js";
|
|
2
|
+
import { useBreakpoint as C } from "../../hooks/useBreakpoint.js";
|
|
3
|
+
import { useCallback as r, useMemo as S, useState as m } from "react";
|
|
4
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
5
|
+
var u = "memobit-control-panel-undocked", I = () => {
|
|
6
|
+
try {
|
|
7
|
+
return localStorage.getItem(u) === "true";
|
|
8
|
+
} catch {
|
|
9
|
+
return !1;
|
|
10
|
+
}
|
|
11
|
+
}, h = ({ children: p, undockable: f = !1 }) => {
|
|
12
|
+
const { isMobile: e } = C(), [s, o] = m(!1), [k, g] = m(I), a = r(() => o((t) => !t), []), c = r(() => o(!0), []), l = r(() => o(!1), []), i = r((t) => {
|
|
13
|
+
g(t), o(!1);
|
|
14
|
+
try {
|
|
15
|
+
localStorage.setItem(u, String(t));
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
}, []), n = f && !e, d = e || n && k, v = S(() => ({
|
|
19
|
+
isMobile: e,
|
|
20
|
+
isDrawer: d,
|
|
21
|
+
undockable: n,
|
|
22
|
+
setUndocked: i,
|
|
23
|
+
isOpen: s,
|
|
24
|
+
toggle: a,
|
|
25
|
+
open: c,
|
|
11
26
|
close: l
|
|
12
27
|
}), [
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
s,
|
|
28
|
+
e,
|
|
29
|
+
d,
|
|
16
30
|
n,
|
|
31
|
+
i,
|
|
32
|
+
s,
|
|
33
|
+
a,
|
|
34
|
+
c,
|
|
17
35
|
l
|
|
18
36
|
]);
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
value:
|
|
21
|
-
children:
|
|
37
|
+
return /* @__PURE__ */ b(U.Provider, {
|
|
38
|
+
value: v,
|
|
39
|
+
children: p
|
|
22
40
|
});
|
|
23
41
|
};
|
|
24
42
|
export {
|
|
25
|
-
|
|
43
|
+
h as ControlPanelProvider
|
|
26
44
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.DirectionPad{--pad-size:var(--spacing-100);--pad-button-size:var(--spacing-32);--pad-hub-size:var(--spacing-24);width:var(--pad-size);height:var(--pad-size);border-radius:var(--radius-full);background-color:var(--button-default-background-color);border:1px solid var(--button-default-border-color);flex-shrink:0;align-self:center;position:relative}.DirectionPad--large{--pad-size:calc(var(--spacing-100) + var(--spacing-40));--pad-button-size:var(--spacing-40)}.DirectionPad--floating{background-color:color-mix(in srgb, var(--button-default-background-color) 70%, transparent)}.DirectionPad--disabled{opacity:.5}.DirectionPad__button{width:var(--pad-button-size);height:var(--pad-button-size);border-radius:var(--radius-full);color:var(--button-default-color);cursor:pointer;transition:background-color var(--transition-fast), color var(--transition-fast);background-color:#0000;border:none;justify-content:center;align-items:center;padding:0;display:flex;position:absolute}.DirectionPad__button:not(:disabled):hover{background-color:var(--button-default-hover-background-color);color:var(--button-default-hover-color)}.DirectionPad__button:not(:disabled):active{background-color:var(--button-info-background-color);color:var(--button-info-color)}.DirectionPad__button:disabled{cursor:not-allowed}.DirectionPad__button--up,.DirectionPad__button--down{left:calc(50% - var(--pad-button-size) / 2)}.DirectionPad__button--left,.DirectionPad__button--right{top:calc(50% - var(--pad-button-size) / 2)}.DirectionPad__button--up{top:var(--spacing-4)}.DirectionPad__button--down{bottom:var(--spacing-4)}.DirectionPad__button--left{left:var(--spacing-4)}.DirectionPad__button--right{right:var(--spacing-4)}.DirectionPad__hub{top:calc(50% - var(--pad-hub-size) / 2);left:calc(50% - var(--pad-hub-size) / 2);width:var(--pad-hub-size);height:var(--pad-hub-size);border-radius:var(--radius-full);background-color:var(--card-background-accent-color);border:1px solid var(--button-default-border-color);position:absolute}.DirectionPad__hub--content{--pad-hub-size:var(--pad-button-size);justify-content:center;align-items:center;display:flex}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import './DirectionPad.css';
|
|
2
|
+
import { Icon as l } from "../Icon/Icon2.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { jsx as a, jsxs as d } from "react/jsx-runtime";
|
|
5
|
+
var m = [
|
|
6
|
+
"up",
|
|
7
|
+
"left",
|
|
8
|
+
"right",
|
|
9
|
+
"down"
|
|
10
|
+
];
|
|
11
|
+
function _({ onDirection: n, size: e = "compact", floating: c = !1, disabled: i = !1, center: o, className: r }) {
|
|
12
|
+
const s = [
|
|
13
|
+
"DirectionPad",
|
|
14
|
+
`DirectionPad--${e}`,
|
|
15
|
+
c ? "DirectionPad--floating" : "",
|
|
16
|
+
i ? "DirectionPad--disabled" : "",
|
|
17
|
+
r ?? ""
|
|
18
|
+
].filter(Boolean).join(" ");
|
|
19
|
+
return /* @__PURE__ */ d("div", {
|
|
20
|
+
className: s,
|
|
21
|
+
children: [m.map((t) => /* @__PURE__ */ a("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
className: `DirectionPad__button DirectionPad__button--${t}`,
|
|
24
|
+
disabled: i,
|
|
25
|
+
onClick: () => n(t),
|
|
26
|
+
children: /* @__PURE__ */ a(l, { name: `caret-${t}` })
|
|
27
|
+
}, t)), o === void 0 ? /* @__PURE__ */ a("span", { className: "DirectionPad__hub" }) : /* @__PURE__ */ a("div", {
|
|
28
|
+
className: "DirectionPad__hub DirectionPad__hub--content",
|
|
29
|
+
children: o
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
_ as DirectionPad
|
|
35
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './Toolbar.css';
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { Button as
|
|
2
|
+
import { Icon as w } from "../Icon/Icon2.js";
|
|
3
|
+
import { Button as S } from "../Button/Button2.js";
|
|
4
4
|
import { Tooltip as x } from "../Tooltip/Tooltip2.js";
|
|
5
5
|
import { Dropdown as k } from "../Dropdown/Dropdown2.js";
|
|
6
6
|
import { InputSearch as y } from "../InputSearch/InputSearch2.js";
|
|
@@ -10,7 +10,7 @@ import { NotificationPanel as R } from "../NotificationPanel/NotificationPanel2.
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
import "react";
|
|
12
12
|
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
13
|
-
var c = "::",
|
|
13
|
+
var c = "::", D = (o) => typeof o == "object" ? o.label : void 0, O = (o) => "fields" in o ? o.fields.flatMap((t) => [{
|
|
14
14
|
value: `${t.value}${c}asc`,
|
|
15
15
|
label: t.label,
|
|
16
16
|
suffixIcon: "arrow-up"
|
|
@@ -19,7 +19,7 @@ var c = "::", M = (o) => typeof o == "object" ? o.label : void 0, O = (o) => "fi
|
|
|
19
19
|
label: t.label,
|
|
20
20
|
suffixIcon: "arrow-down"
|
|
21
21
|
}]) : o.options, A = (o) => "fields" in o ? o.value ? `${o.value.field}${c}${o.value.direction}` : null : o.value, K = ({ actions: o, children: t, className: f = "", controlPanelToggle: r, heading: l, noCard: _ = !1, menuItems: v, notifications: n, search: s, sort: e }) => {
|
|
22
|
-
const u = B(), h = !!(r && u?.
|
|
22
|
+
const u = B(), h = !!(r && u?.isDrawer), d = typeof r == "object" ? r.count ?? 0 : 0, N = [
|
|
23
23
|
"memobit-toolbar",
|
|
24
24
|
_ ? "memobit-toolbar--no-card" : "",
|
|
25
25
|
f
|
|
@@ -45,13 +45,13 @@ var c = "::", M = (o) => typeof o == "object" ? o.label : void 0, O = (o) => "fi
|
|
|
45
45
|
children: [
|
|
46
46
|
h && /* @__PURE__ */ a(x, {
|
|
47
47
|
title: "Filters",
|
|
48
|
-
children: /* @__PURE__ */ i(
|
|
48
|
+
children: /* @__PURE__ */ i(S, {
|
|
49
49
|
className: "memobit-toolbar__control-panel-toggle",
|
|
50
50
|
icon: "tune",
|
|
51
51
|
onClick: u?.toggle,
|
|
52
52
|
size: "medium",
|
|
53
53
|
variant: "default",
|
|
54
|
-
children: [r &&
|
|
54
|
+
children: [r && D(r), d > 0 && /* @__PURE__ */ a("span", {
|
|
55
55
|
className: "memobit-toolbar__control-panel-toggle-count",
|
|
56
56
|
children: d
|
|
57
57
|
})]
|
|
@@ -64,7 +64,7 @@ var c = "::", M = (o) => typeof o == "object" ? o.label : void 0, O = (o) => "fi
|
|
|
64
64
|
className: "memobit-toolbar__heading-icon",
|
|
65
65
|
children: [
|
|
66
66
|
l.svg,
|
|
67
|
-
l.icon && /* @__PURE__ */ a(
|
|
67
|
+
l.icon && /* @__PURE__ */ a(w, { name: l.icon }),
|
|
68
68
|
l.emoji
|
|
69
69
|
]
|
|
70
70
|
}), /* @__PURE__ */ i("div", {
|
package/dist/index.d.ts
CHANGED
|
@@ -752,6 +752,11 @@ export declare interface ControlPanelClearFiltersEvent {
|
|
|
752
752
|
|
|
753
753
|
declare interface ControlPanelContextValue {
|
|
754
754
|
isMobile: boolean;
|
|
755
|
+
/** The panel opens over the page from the toolbar: always on mobile, and on desktop once undocked. */
|
|
756
|
+
isDrawer: boolean;
|
|
757
|
+
/** The panel can be undocked here: the provider allows it and the screen isn't mobile. */
|
|
758
|
+
undockable: boolean;
|
|
759
|
+
setUndocked: (undocked: boolean) => void;
|
|
755
760
|
isOpen: boolean;
|
|
756
761
|
toggle: () => void;
|
|
757
762
|
open: () => void;
|
|
@@ -971,6 +976,12 @@ export declare const ControlPanelProvider: default_2.FC<ControlPanelProviderProp
|
|
|
971
976
|
|
|
972
977
|
declare interface ControlPanelProviderProps {
|
|
973
978
|
children: default_2.ReactNode;
|
|
979
|
+
/**
|
|
980
|
+
* Lets the user undock the panel on desktop: it then opens over the page from the toolbar, like the
|
|
981
|
+
* mobile drawer, and the page gets the full width. The choice is remembered (per app, as each app
|
|
982
|
+
* has its own origin).
|
|
983
|
+
*/
|
|
984
|
+
undockable?: boolean;
|
|
974
985
|
}
|
|
975
986
|
|
|
976
987
|
/** Built-in listing modes. 'map' and 'calendar' have no default toggle button —
|
|
@@ -1364,6 +1375,25 @@ declare interface DiffViewerProps {
|
|
|
1364
1375
|
showLineNumbers?: boolean;
|
|
1365
1376
|
}
|
|
1366
1377
|
|
|
1378
|
+
/** A round pan/tilt pad: four arrows around a centre hub, like a camera app's joystick. */
|
|
1379
|
+
export declare function DirectionPad({ onDirection, size, floating, disabled, center, className }: DirectionPadProps): ReactElement;
|
|
1380
|
+
|
|
1381
|
+
export declare type DirectionPadDirection = 'up' | 'down' | 'left' | 'right';
|
|
1382
|
+
|
|
1383
|
+
export declare interface DirectionPadProps {
|
|
1384
|
+
onDirection: (direction: DirectionPadDirection) => void;
|
|
1385
|
+
/** 'compact' sits beside a row of small buttons, 'large' fills a settings section. */
|
|
1386
|
+
size?: DirectionPadSize;
|
|
1387
|
+
/** Translucent base, for sitting over a video or an image. */
|
|
1388
|
+
floating?: boolean;
|
|
1389
|
+
disabled?: boolean;
|
|
1390
|
+
/** Replaces the plain centre hub, e.g. with a "home" or "stop" button. */
|
|
1391
|
+
center?: ReactNode;
|
|
1392
|
+
className?: string;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
export declare type DirectionPadSize = 'compact' | 'large';
|
|
1396
|
+
|
|
1367
1397
|
export declare const Drawer: default_2.FC<DrawerProps>;
|
|
1368
1398
|
|
|
1369
1399
|
export declare interface DrawerHeaderAction {
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import { useComponentEffect as s } from "./hooks/useComponentEffect.js";
|
|
|
7
7
|
import { Button as g } from "./components/Button/Button2.js";
|
|
8
8
|
import { Tooltip as T } from "./components/Tooltip/Tooltip2.js";
|
|
9
9
|
import { Modal as I } from "./components/Modal/Modal2.js";
|
|
10
|
-
import { AlertDialog as
|
|
11
|
-
import { AnalogClock as
|
|
10
|
+
import { AlertDialog as P } from "./components/AlertDialog/AlertDialog2.js";
|
|
11
|
+
import { AnalogClock as C } from "./components/AnalogClock/AnalogClock2.js";
|
|
12
12
|
import { AngleSlider as h } from "./components/AngleSlider/AngleSlider2.js";
|
|
13
13
|
import { Separator as M } from "./components/Separator/Separator2.js";
|
|
14
14
|
import { AppHeader as B } from "./components/AppHeader/AppHeader2.js";
|
|
@@ -21,7 +21,7 @@ import { BMI as Q } from "./components/BMI/BMI2.js";
|
|
|
21
21
|
import { Breadcrumb as q } from "./components/Breadcrumb/Breadcrumb2.js";
|
|
22
22
|
import { BulkActionBar as j } from "./components/BulkActionBar/BulkActionBar2.js";
|
|
23
23
|
import { APP_DATE_FORMAT as X, APP_DATE_TIME_FORMAT as Z, addDays as $, addMonths as rr, formatAppDate as or, formatAppDateTime as tr, formatDate as mr, formatDateLocale as ir, formatDuration as er, formatRelativeDuration as pr, formatRelativeTime as ar, formatSecondsToMediaTime as fr, getDaysInMonth as nr, getIsoWeek as lr, getMonthMatrix as sr, getTodayDateString as ur, isAfter as gr, isBefore as dr, isDateInRange as Tr, isSameDay as cr, isToday as Ir, isWeekend as Sr } from "./helpers/Datetime.js";
|
|
24
|
-
import { Calendar as
|
|
24
|
+
import { Calendar as Ar } from "./components/Calendar/Calendar2.js";
|
|
25
25
|
import { CalendarHeatmap as Dr } from "./components/CalendarHeatmap/CalendarHeatmap2.js";
|
|
26
26
|
import { Card as Er } from "./components/Card/Card2.js";
|
|
27
27
|
import { Checkbox as Lr } from "./components/Checkbox/Checkbox2.js";
|
|
@@ -46,8 +46,8 @@ import { Dropdown as lo } from "./components/Dropdown/Dropdown2.js";
|
|
|
46
46
|
import { InputDate as uo } from "./components/InputDate/InputDate2.js";
|
|
47
47
|
import { InputSearch as To } from "./components/InputSearch/InputSearch2.js";
|
|
48
48
|
import { Rating as Io } from "./components/Rating/Rating2.js";
|
|
49
|
-
import { Slider as
|
|
50
|
-
import { useControlPanel as
|
|
49
|
+
import { Slider as Po } from "./components/Slider/Slider2.js";
|
|
50
|
+
import { useControlPanel as Co, useControlPanelContext as Do } from "./components/ControlPanel/useControlPanel.js";
|
|
51
51
|
import { ControlPanel as Eo } from "./components/ControlPanel/ControlPanel2.js";
|
|
52
52
|
import { breakpoints as Lo, useBreakpoint as Bo } from "./hooks/useBreakpoint.js";
|
|
53
53
|
import { ControlPanelProvider as Ro } from "./components/ControlPanel/ControlPanelContext.js";
|
|
@@ -68,112 +68,113 @@ import { useSwipe as pt } from "./hooks/useSwipe.js";
|
|
|
68
68
|
import { Drawer as ft } from "./components/Drawer/Drawer2.js";
|
|
69
69
|
import { DayAgenda as lt } from "./components/DayAgenda/DayAgenda2.js";
|
|
70
70
|
import { DiffViewer as ut } from "./components/DiffViewer/DiffViewer2.js";
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import {
|
|
107
|
-
import {
|
|
108
|
-
import {
|
|
109
|
-
import {
|
|
110
|
-
import {
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
113
|
-
import {
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
116
|
-
import {
|
|
117
|
-
import {
|
|
118
|
-
import {
|
|
119
|
-
import {
|
|
120
|
-
import {
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
123
|
-
import {
|
|
124
|
-
import {
|
|
125
|
-
import {
|
|
126
|
-
import {
|
|
127
|
-
import {
|
|
128
|
-
import {
|
|
129
|
-
import {
|
|
130
|
-
import {
|
|
131
|
-
import {
|
|
132
|
-
import {
|
|
133
|
-
import {
|
|
134
|
-
import {
|
|
135
|
-
import {
|
|
136
|
-
import {
|
|
137
|
-
import {
|
|
138
|
-
import {
|
|
139
|
-
import {
|
|
140
|
-
import {
|
|
141
|
-
import {
|
|
142
|
-
import {
|
|
143
|
-
import {
|
|
144
|
-
import {
|
|
145
|
-
import {
|
|
146
|
-
import {
|
|
147
|
-
import {
|
|
148
|
-
import {
|
|
149
|
-
import {
|
|
150
|
-
import {
|
|
151
|
-
import {
|
|
152
|
-
import {
|
|
153
|
-
import {
|
|
154
|
-
import {
|
|
155
|
-
import {
|
|
156
|
-
import {
|
|
157
|
-
import {
|
|
158
|
-
import {
|
|
159
|
-
import {
|
|
160
|
-
import {
|
|
161
|
-
import {
|
|
162
|
-
import {
|
|
71
|
+
import { DirectionPad as dt } from "./components/DirectionPad/DirectionPad2.js";
|
|
72
|
+
import { EmojiPicker as ct } from "./components/EmojiPicker/EmojiPicker2.js";
|
|
73
|
+
import { ErrorBoundary as St } from "./components/ErrorBoundary/ErrorBoundary2.js";
|
|
74
|
+
import { ToggleButtons as At } from "./components/ToggleButtons/ToggleButtons2.js";
|
|
75
|
+
import { EventCalendar as Dt } from "./components/EventCalendar/EventCalendar2.js";
|
|
76
|
+
import { FileDropzone as Et } from "./components/FileDropzone/FileDropzone2.js";
|
|
77
|
+
import { FloatButton as Lt } from "./components/FloatButton/FloatButton2.js";
|
|
78
|
+
import { FloatingWindow as kt } from "./components/FloatingWindow/FloatingWindow2.js";
|
|
79
|
+
import { Loading as _t } from "./components/Loading/Loading2.js";
|
|
80
|
+
import { FolderBrowserModal as Ft } from "./components/FolderBrowserModal/FolderBrowserModal2.js";
|
|
81
|
+
import { Col as vt } from "./components/Grid/Col.js";
|
|
82
|
+
import { Grid as xt } from "./components/Grid/Grid2.js";
|
|
83
|
+
import { IconPicker as Nt } from "./components/IconPicker/IconPicker2.js";
|
|
84
|
+
import { FULL_IMAGE as wt, cropImage as Vt, encodeCanvas as Wt, loadImageElement as zt, renderImageRegion as Kt, rotatedSize as Qt } from "./helpers/ImageCrop.js";
|
|
85
|
+
import { ToggleSwitch as qt } from "./components/ToggleSwitch/ToggleSwitch2.js";
|
|
86
|
+
import { ImageCropper as jt } from "./components/ImageCropper/ImageCropper2.js";
|
|
87
|
+
import { InfiniteScroll as Xt } from "./components/InfiniteScroll/InfiniteScroll2.js";
|
|
88
|
+
import { validateEmail as $t } from "./components/InputEmail/validateEmail.js";
|
|
89
|
+
import { InputEmail as om } from "./components/InputEmail/InputEmail2.js";
|
|
90
|
+
import { InputFile as mm } from "./components/InputFile/InputFile2.js";
|
|
91
|
+
import { InputMask as em } from "./components/InputMask/InputMask2.js";
|
|
92
|
+
import { InputMaskPresets as am } from "./components/InputMask/InputMaskPresets.js";
|
|
93
|
+
import { InputPassword as nm } from "./components/InputPassword/InputPassword2.js";
|
|
94
|
+
import { InputPhone as sm } from "./components/InputPhone/InputPhone2.js";
|
|
95
|
+
import { InputPIN as gm } from "./components/InputPIN/InputPIN2.js";
|
|
96
|
+
import { InputTextarea as Tm } from "./components/InputTextarea/InputTextarea2.js";
|
|
97
|
+
import { InputTime as Im } from "./components/InputTime/InputTime2.js";
|
|
98
|
+
import { InputUrl as Pm } from "./components/InputUrl/InputUrl2.js";
|
|
99
|
+
import { JourneyWizard as Cm } from "./components/JourneyWizard/JourneyWizard2.js";
|
|
100
|
+
import { List as hm } from "./components/List/List2.js";
|
|
101
|
+
import { MenuHamburger as Mm } from "./components/MenuHamburger/MenuHamburger2.js";
|
|
102
|
+
import { Minimap as Bm } from "./components/Minimap/Minimap2.js";
|
|
103
|
+
import { RollingNumber as Rm } from "./components/RollingNumber/RollingNumber2.js";
|
|
104
|
+
import { MiniStatsCard as ym } from "./components/MiniStatsCard/MiniStatsCard2.js";
|
|
105
|
+
import { NavBar as bm } from "./components/NavBar/NavBar2.js";
|
|
106
|
+
import { NotificationPanel as Om } from "./components/NotificationPanel/NotificationPanel2.js";
|
|
107
|
+
import { PieChart as Hm } from "./components/PieChart/PieChart2.js";
|
|
108
|
+
import { clamp as Um, format2Digits as wm, getPercent as Vm, getPercentsOf2Numbers as Wm } from "./helpers/Numbers.js";
|
|
109
|
+
import { ProgressBar as Km } from "./components/ProgressBar/ProgressBar2.js";
|
|
110
|
+
import { ProgressRing as Gm } from "./components/ProgressRing/ProgressRing2.js";
|
|
111
|
+
import { QuantitySelector as Ym } from "./components/QuantitySelector/QuantitySelector2.js";
|
|
112
|
+
import { QuickAdd as Jm } from "./components/QuickAdd/QuickAdd2.js";
|
|
113
|
+
import { QuickNumberUpdate as Zm } from "./components/QuickNumberUpdate/QuickNumberUpdate2.js";
|
|
114
|
+
import { Radio as ri } from "./components/Radio/Radio2.js";
|
|
115
|
+
import { QuickOptionUpdate as ti } from "./components/QuickOptionUpdate/QuickOptionUpdate2.js";
|
|
116
|
+
import { RangeSlider as ii } from "./components/RangeSlider/RangeSlider2.js";
|
|
117
|
+
import { ensureHtml as pi, htmlToMarkdown as ai, htmlToPlainText as fi, splitHtmlIntoSteps as ni } from "./helpers/HtmlContent.js";
|
|
118
|
+
import { RichTextEditor as si } from "./components/RichTextEditor/RichTextEditor2.js";
|
|
119
|
+
import { ScrollToTop as gi } from "./components/ScrollToTop/ScrollToTop2.js";
|
|
120
|
+
import { useSidebar as Ti } from "./components/Sidebar/useSidebar.js";
|
|
121
|
+
import { Sidebar as Ii } from "./components/Sidebar/Sidebar2.js";
|
|
122
|
+
import { SidebarProvider as Pi } from "./components/Sidebar/SidebarContext.js";
|
|
123
|
+
import { SignalStrength as Ci } from "./components/SignalStrength/SignalStrength2.js";
|
|
124
|
+
import { Skeleton as hi } from "./components/Skeleton/Skeleton2.js";
|
|
125
|
+
import { SplitPanel as Mi } from "./components/SplitPanel/SplitPanel2.js";
|
|
126
|
+
import { Splitter as Bi } from "./components/Splitter/Splitter2.js";
|
|
127
|
+
import { StackedBar as Ri } from "./components/StackedBar/StackedBar2.js";
|
|
128
|
+
import { Stats as yi } from "./components/Stats/Stats2.js";
|
|
129
|
+
import { StickyBar as bi } from "./components/StickyBar/StickyBar2.js";
|
|
130
|
+
import { SuggestionsList as Oi } from "./components/SuggestionsList/SuggestionsList2.js";
|
|
131
|
+
import { THEME_CONFIGS as Hi, getThemeConfig as Ni } from "./components/ThemeSettings/themeConfig.js";
|
|
132
|
+
import { getDefaultThemeForApp as wi } from "./components/ThemeSettings/getDefaultThemeForApp.js";
|
|
133
|
+
import { ThemeProvider as Wi } from "./components/ThemeSettings/ThemeContext.js";
|
|
134
|
+
import { ThemeSettings as Ki } from "./components/ThemeSettings/ThemeSettings2.js";
|
|
135
|
+
import { Timeline as Gi } from "./components/Timeline/Timeline2.js";
|
|
136
|
+
import { TipsOfTheDay as Yi } from "./components/TipsOfTheDay/TipsOfTheDay2.js";
|
|
137
|
+
import { Toast as Ji } from "./components/Toast/Toast2.js";
|
|
138
|
+
import { Toolbar as Zi } from "./components/Toolbar/Toolbar2.js";
|
|
139
|
+
import { TourHud as re } from "./components/TourHud/TourHud2.js";
|
|
140
|
+
import { Transition as te } from "./components/Transition/Transition2.js";
|
|
141
|
+
import { Tree as ie } from "./components/Tree/Tree2.js";
|
|
142
|
+
import { VirtualList as pe } from "./components/VirtualList/VirtualList2.js";
|
|
143
|
+
import { WHtR as fe } from "./components/WHtR/WHtR2.js";
|
|
144
|
+
import { ApiError as le, CSRF_HEADER as se, HttpMethod as ue, HttpStatus as ge, buildRequestHeaders as de, createApiClient as Te, getCsrfToken as ce, isClientErrorStatus as Ie, isServerErrorStatus as Se, isSuccessStatus as Pe, logUnexpectedError as Ae, readErrorMessage as Ce } from "./helpers/Http.js";
|
|
145
|
+
import { AuthContext as he } from "./contexts/AuthContext/AuthContext.context.js";
|
|
146
|
+
import { AuthProvider as Me } from "./contexts/AuthContext/AuthContext.js";
|
|
147
|
+
import { useAuth as Be } from "./hooks/useAuth/useAuth.js";
|
|
148
|
+
import { ChangePasswordModal as Re } from "./components/Auth/ChangePasswordModal/ChangePasswordModal2.js";
|
|
149
|
+
import { Login as ye } from "./components/Auth/Login/Login2.js";
|
|
150
|
+
import { useAccountMenu as be } from "./hooks/useAccountMenu.js";
|
|
151
|
+
import { AppPersistenceStorage as Oe } from "./helpers/AppPersistenceStorage.js";
|
|
152
|
+
import { useAppPersistence as He } from "./hooks/useAppPersistence.js";
|
|
153
|
+
import { chartColors as Ue, chartTooltipStyle as we } from "./helpers/Charts.js";
|
|
154
|
+
import { UNALLOCATED_FILTER_ID as We, UNALLOCATED_FILTER_KEY as ze, UNALLOCATED_FILTER_LABEL as Ke, getFilterOptions as Qe, getKeyFilterOptions as Ge, getMatchableFilterIds as qe, getMatchableFilterKeys as Ye, matchesIdFilter as je, matchesKeyFilter as Je } from "./helpers/FilterOptions.js";
|
|
155
|
+
import { formatBigNumber as Ze, formatBytes as $e, formatMoney as rp } from "./helpers/Format.js";
|
|
156
|
+
import { highlightText as tp } from "./helpers/Highlight.js";
|
|
157
|
+
import { DATA_FILES_PATH as ip, createImagePaths as ep } from "./helpers/Images.js";
|
|
158
|
+
import { matchStringsByLogicalOperator as ap } from "./helpers/LogicalOperators.js";
|
|
159
|
+
import { shortenText as np, slugify as lp, truncateText as sp } from "./helpers/Strings.js";
|
|
160
|
+
import { extractDomainFromUrl as gp, stripQueryString as dp, stripTrackingParams as Tp } from "./helpers/Urls.js";
|
|
161
|
+
import { LIB_BUILD_DATE as Ip, LIB_BUILD_ID as Sp, LIB_BUILD_NUMBER as Pp, LIB_COMMIT as Ap, LIB_VERSION as Cp } from "./version.js";
|
|
162
|
+
import { initVersionInfo as hp } from "./helpers/VersionInfo.js";
|
|
163
|
+
import { validateVin as Mp } from "./validators/Vin.js";
|
|
163
164
|
export {
|
|
164
165
|
H as ADULT_RANGES,
|
|
165
166
|
X as APP_DATE_FORMAT,
|
|
166
167
|
Z as APP_DATE_TIME_FORMAT,
|
|
167
168
|
m as Accordion,
|
|
168
|
-
|
|
169
|
-
|
|
169
|
+
P as AlertDialog,
|
|
170
|
+
C as AnalogClock,
|
|
170
171
|
h as AngleSlider,
|
|
171
|
-
|
|
172
|
+
le as ApiError,
|
|
172
173
|
B as AppHeader,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
Oe as AppPersistenceStorage,
|
|
175
|
+
he as AuthContext,
|
|
176
|
+
ye as AuthLogin,
|
|
177
|
+
Me as AuthProvider,
|
|
177
178
|
R as AvatarInitials,
|
|
178
179
|
Q as BMI,
|
|
179
180
|
y as Badge,
|
|
@@ -182,14 +183,14 @@ export {
|
|
|
182
183
|
q as Breadcrumb,
|
|
183
184
|
j as BulkActionBar,
|
|
184
185
|
g as Button,
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
se as CSRF_HEADER,
|
|
187
|
+
Ar as Calendar,
|
|
187
188
|
Dr as CalendarHeatmap,
|
|
188
189
|
Er as Card,
|
|
189
|
-
|
|
190
|
+
Re as ChangePasswordModal,
|
|
190
191
|
Lr as Checkbox,
|
|
191
192
|
kr as Chip,
|
|
192
|
-
|
|
193
|
+
vt as Col,
|
|
193
194
|
_r as CollapsibleSection,
|
|
194
195
|
xr as ColorPicker,
|
|
195
196
|
Nr as CommandPalette,
|
|
@@ -201,203 +202,204 @@ export {
|
|
|
201
202
|
Ro as ControlPanelProvider,
|
|
202
203
|
yo as CopyButton,
|
|
203
204
|
Oo as CountryWithFlag,
|
|
204
|
-
|
|
205
|
+
ip as DATA_FILES_PATH,
|
|
205
206
|
tt as DataView,
|
|
206
207
|
eo as DatePicker,
|
|
207
208
|
it as DateRangePicker,
|
|
208
209
|
lt as DayAgenda,
|
|
209
210
|
ut as DiffViewer,
|
|
211
|
+
dt as DirectionPad,
|
|
210
212
|
ft as Drawer,
|
|
211
213
|
lo as Dropdown,
|
|
212
|
-
|
|
214
|
+
ct as EmojiPicker,
|
|
213
215
|
Ko as EmptyState,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
St as ErrorBoundary,
|
|
217
|
+
Dt as EventCalendar,
|
|
218
|
+
wt as FULL_IMAGE,
|
|
219
|
+
Et as FileDropzone,
|
|
218
220
|
bo as Flag,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
Lt as FloatButton,
|
|
222
|
+
kt as FloatingWindow,
|
|
223
|
+
Ft as FolderBrowserModal,
|
|
224
|
+
xt as Grid,
|
|
225
|
+
ue as HttpMethod,
|
|
226
|
+
ge as HttpStatus,
|
|
225
227
|
o as Icon,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
228
|
+
Nt as IconPicker,
|
|
229
|
+
jt as ImageCropper,
|
|
230
|
+
Xt as InfiniteScroll,
|
|
229
231
|
uo as InputDate,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
om as InputEmail,
|
|
233
|
+
mm as InputFile,
|
|
234
|
+
em as InputMask,
|
|
235
|
+
am as InputMaskPresets,
|
|
234
236
|
Fr as InputNumber,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
gm as InputPIN,
|
|
238
|
+
nm as InputPassword,
|
|
239
|
+
sm as InputPhone,
|
|
238
240
|
To as InputSearch,
|
|
239
241
|
vr as InputText,
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
242
|
+
Tm as InputTextarea,
|
|
243
|
+
Im as InputTime,
|
|
244
|
+
Pm as InputUrl,
|
|
245
|
+
Cm as JourneyWizard,
|
|
246
|
+
Ip as LIB_BUILD_DATE,
|
|
247
|
+
Sp as LIB_BUILD_ID,
|
|
248
|
+
Pp as LIB_BUILD_NUMBER,
|
|
249
|
+
Ap as LIB_COMMIT,
|
|
250
|
+
Cp as LIB_VERSION,
|
|
249
251
|
Uo as LIST_MOTION_KEY_ATTRIBUTE,
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
hm as List,
|
|
253
|
+
_t as Loading,
|
|
254
|
+
Mm as MenuHamburger,
|
|
253
255
|
rt as MiniSort,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
+
ym as MiniStatsCard,
|
|
257
|
+
Bm as Minimap,
|
|
256
258
|
I as Modal,
|
|
257
|
-
|
|
258
|
-
|
|
259
|
+
bm as NavBar,
|
|
260
|
+
Om as NotificationPanel,
|
|
259
261
|
N as PEDIATRIC_THRESHOLDS,
|
|
260
262
|
Go as Pagination,
|
|
261
|
-
|
|
263
|
+
Hm as PieChart,
|
|
262
264
|
Gr as Popover,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
265
|
+
Km as ProgressBar,
|
|
266
|
+
Gm as ProgressRing,
|
|
267
|
+
Ym as QuantitySelector,
|
|
268
|
+
Jm as QuickAdd,
|
|
269
|
+
Zm as QuickNumberUpdate,
|
|
270
|
+
ti as QuickOptionUpdate,
|
|
271
|
+
ri as Radio,
|
|
272
|
+
ii as RangeSlider,
|
|
271
273
|
Io as Rating,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
si as RichTextEditor,
|
|
275
|
+
Rm as RollingNumber,
|
|
276
|
+
gi as ScrollToTop,
|
|
275
277
|
M as Separator,
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
278
|
+
Ii as Sidebar,
|
|
279
|
+
Pi as SidebarProvider,
|
|
280
|
+
Ci as SignalStrength,
|
|
281
|
+
hi as Skeleton,
|
|
282
|
+
Po as Slider,
|
|
283
|
+
Mi as SplitPanel,
|
|
284
|
+
Bi as Splitter,
|
|
285
|
+
Ri as StackedBar,
|
|
286
|
+
yi as Stats,
|
|
287
|
+
bi as StickyBar,
|
|
288
|
+
Oi as SuggestionsList,
|
|
289
|
+
Hi as THEME_CONFIGS,
|
|
288
290
|
a as ThemeContext,
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
Wi as ThemeProvider,
|
|
292
|
+
Ki as ThemeSettings,
|
|
291
293
|
mo as TimePicker,
|
|
292
|
-
|
|
294
|
+
Gi as Timeline,
|
|
293
295
|
Jo as TimelineMarkerDot,
|
|
294
296
|
Xo as TimelineMarkers,
|
|
295
297
|
Zo as TimelineMobileSeparator,
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
Yi as TipsOfTheDay,
|
|
299
|
+
Ji as Toast,
|
|
298
300
|
ro as ToastContainer,
|
|
299
301
|
oo as ToastProvider,
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
302
|
+
At as ToggleButtons,
|
|
303
|
+
qt as ToggleSwitch,
|
|
304
|
+
Zi as Toolbar,
|
|
303
305
|
T as Tooltip,
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
306
|
+
re as TourHud,
|
|
307
|
+
te as Transition,
|
|
308
|
+
ie as Tree,
|
|
309
|
+
We as UNALLOCATED_FILTER_ID,
|
|
310
|
+
ze as UNALLOCATED_FILTER_KEY,
|
|
311
|
+
Ke as UNALLOCATED_FILTER_LABEL,
|
|
312
|
+
pe as VirtualList,
|
|
313
|
+
fe as WHtR,
|
|
312
314
|
$ as addDays,
|
|
313
315
|
rr as addMonths,
|
|
314
316
|
Lo as breakpoints,
|
|
315
|
-
|
|
317
|
+
de as buildRequestHeaders,
|
|
316
318
|
U as calculateBMI,
|
|
317
319
|
Yo as calculateTimelineMarkers,
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
320
|
+
Ue as chartColors,
|
|
321
|
+
we as chartTooltipStyle,
|
|
322
|
+
Um as clamp,
|
|
323
|
+
Te as createApiClient,
|
|
324
|
+
ep as createImagePaths,
|
|
325
|
+
Vt as cropImage,
|
|
326
|
+
Wt as encodeCanvas,
|
|
327
|
+
pi as ensureHtml,
|
|
328
|
+
gp as extractDomainFromUrl,
|
|
327
329
|
ao as foldDiacritics,
|
|
328
|
-
|
|
330
|
+
wm as format2Digits,
|
|
329
331
|
or as formatAppDate,
|
|
330
332
|
tr as formatAppDateTime,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
+
Ze as formatBigNumber,
|
|
334
|
+
$e as formatBytes,
|
|
333
335
|
mr as formatDate,
|
|
334
336
|
ir as formatDateLocale,
|
|
335
337
|
er as formatDuration,
|
|
336
|
-
|
|
338
|
+
rp as formatMoney,
|
|
337
339
|
pr as formatRelativeDuration,
|
|
338
340
|
ar as formatRelativeTime,
|
|
339
341
|
fr as formatSecondsToMediaTime,
|
|
340
342
|
fo as fuzzyMatch,
|
|
341
|
-
|
|
343
|
+
ce as getCsrfToken,
|
|
342
344
|
nr as getDaysInMonth,
|
|
343
|
-
|
|
344
|
-
|
|
345
|
+
wi as getDefaultThemeForApp,
|
|
346
|
+
Qe as getFilterOptions,
|
|
345
347
|
w as getIndicatorColor,
|
|
346
348
|
V as getIndicatorPosition,
|
|
347
349
|
lr as getIsoWeek,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
350
|
+
Ge as getKeyFilterOptions,
|
|
351
|
+
qe as getMatchableFilterIds,
|
|
352
|
+
Ye as getMatchableFilterKeys,
|
|
351
353
|
sr as getMonthMatrix,
|
|
352
354
|
W as getPediatricRanges,
|
|
353
|
-
|
|
354
|
-
|
|
355
|
+
Vm as getPercent,
|
|
356
|
+
Wm as getPercentsOf2Numbers,
|
|
355
357
|
z as getRangeLabel,
|
|
356
358
|
Ho as getResultsCount,
|
|
357
|
-
|
|
359
|
+
Ni as getThemeConfig,
|
|
358
360
|
ur as getTodayDateString,
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
tp as highlightText,
|
|
362
|
+
ai as htmlToMarkdown,
|
|
363
|
+
fi as htmlToPlainText,
|
|
364
|
+
hp as initVersionInfo,
|
|
363
365
|
gr as isAfter,
|
|
364
366
|
dr as isBefore,
|
|
365
|
-
|
|
367
|
+
Ie as isClientErrorStatus,
|
|
366
368
|
Tr as isDateInRange,
|
|
367
369
|
cr as isSameDay,
|
|
368
|
-
|
|
369
|
-
|
|
370
|
+
Se as isServerErrorStatus,
|
|
371
|
+
Pe as isSuccessStatus,
|
|
370
372
|
Ir as isToday,
|
|
371
373
|
Sr as isWeekend,
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
374
|
+
zt as loadImageElement,
|
|
375
|
+
Ae as logUnexpectedError,
|
|
376
|
+
ap as matchStringsByLogicalOperator,
|
|
377
|
+
je as matchesIdFilter,
|
|
378
|
+
Je as matchesKeyFilter,
|
|
379
|
+
Ce as readErrorMessage,
|
|
380
|
+
Kt as renderImageRegion,
|
|
381
|
+
Qt as rotatedSize,
|
|
382
|
+
np as shortenText,
|
|
383
|
+
lp as slugify,
|
|
384
|
+
ni as splitHtmlIntoSteps,
|
|
385
|
+
dp as stripQueryString,
|
|
386
|
+
Tp as stripTrackingParams,
|
|
387
|
+
sp as truncateText,
|
|
388
|
+
be as useAccountMenu,
|
|
389
|
+
He as useAppPersistence,
|
|
390
|
+
Be as useAuth,
|
|
389
391
|
e as useBodyScrollLock,
|
|
390
392
|
Bo as useBreakpoint,
|
|
391
393
|
s as useComponentEffect,
|
|
392
|
-
|
|
394
|
+
Co as useControlPanel,
|
|
393
395
|
Do as useControlPanelContext,
|
|
394
396
|
Wo as useHighlight,
|
|
395
397
|
wo as useListMotion,
|
|
396
398
|
Kr as usePopover,
|
|
397
|
-
|
|
399
|
+
Ti as useSidebar,
|
|
398
400
|
pt as useSwipe,
|
|
399
401
|
n as useTheme,
|
|
400
402
|
Zr as useToast,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
+
$t as validateEmail,
|
|
404
|
+
Mp as validateVin
|
|
403
405
|
};
|
package/dist/memobit-icons.json
CHANGED
package/dist/version.js
CHANGED
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memobit/libs",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "React component library powering the Memobit apps — 100+ components, helpers and hooks. Icons ship as @memobit/icons and themes as @memobit/themes. TypeScript-first, ESM-only, React 19.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|