mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
fix: Fix BC material web pre14
This commit is contained in:
6
.idea/codeception.xml
generated
6
.idea/codeception.xml
generated
@@ -42,6 +42,12 @@
|
|||||||
<Configuration>
|
<Configuration>
|
||||||
<option name="path" value="$PROJECT_DIR$/tests" />
|
<option name="path" value="$PROJECT_DIR$/tests" />
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
<Configuration>
|
||||||
|
<option name="path" value="$PROJECT_DIR$/tests" />
|
||||||
|
</Configuration>
|
||||||
|
<Configuration>
|
||||||
|
<option name="path" value="$PROJECT_DIR$/tests" />
|
||||||
|
</Configuration>
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
6
.idea/inspectionProfiles/Project_Default.xml
generated
6
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -174,7 +174,7 @@
|
|||||||
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
<option name="myValues">
|
<option name="myValues">
|
||||||
<value>
|
<value>
|
||||||
<list size="25">
|
<list size="27">
|
||||||
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
<item index="0" class="java.lang.String" itemvalue="nobr" />
|
||||||
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
<item index="1" class="java.lang.String" itemvalue="noembed" />
|
||||||
<item index="2" class="java.lang.String" itemvalue="comment" />
|
<item index="2" class="java.lang.String" itemvalue="comment" />
|
||||||
@@ -200,6 +200,8 @@
|
|||||||
<item index="22" class="java.lang.String" itemvalue="md-outlined-card" />
|
<item index="22" class="java.lang.String" itemvalue="md-outlined-card" />
|
||||||
<item index="23" class="java.lang.String" itemvalue="md-elevated-card" />
|
<item index="23" class="java.lang.String" itemvalue="md-elevated-card" />
|
||||||
<item index="24" class="java.lang.String" itemvalue="md-menu" />
|
<item index="24" class="java.lang.String" itemvalue="md-menu" />
|
||||||
|
<item index="25" class="java.lang.String" itemvalue="md-outlined-select" />
|
||||||
|
<item index="26" class="java.lang.String" itemvalue="md-filled-select" />
|
||||||
</list>
|
</list>
|
||||||
</value>
|
</value>
|
||||||
</option>
|
</option>
|
||||||
@@ -457,4 +459,4 @@
|
|||||||
<inspection_tool class="bashproExecutableNoShebang" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="bashproExecutableNoShebang" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
<inspection_tool class="bashproShebangNotExecutable" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="bashproShebangNotExecutable" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
</profile>
|
</profile>
|
||||||
</component>
|
</component>
|
6
.idea/phpspec.xml
generated
6
.idea/phpspec.xml
generated
@@ -41,6 +41,12 @@
|
|||||||
<PhpSpecSuiteConfiguration>
|
<PhpSpecSuiteConfiguration>
|
||||||
<option name="myPath" value="$PROJECT_DIR$" />
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
</PhpSpecSuiteConfiguration>
|
</PhpSpecSuiteConfiguration>
|
||||||
|
<PhpSpecSuiteConfiguration>
|
||||||
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
|
</PhpSpecSuiteConfiguration>
|
||||||
|
<PhpSpecSuiteConfiguration>
|
||||||
|
<option name="myPath" value="$PROJECT_DIR$" />
|
||||||
|
</PhpSpecSuiteConfiguration>
|
||||||
</suites>
|
</suites>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
11
.idea/phpunit.xml
generated
11
.idea/phpunit.xml
generated
@@ -6,17 +6,6 @@
|
|||||||
<option value="$PROJECT_DIR$/tests/Unit" />
|
<option value="$PROJECT_DIR$/tests/Unit" />
|
||||||
<option value="$PROJECT_DIR$/tests/Feature" />
|
<option value="$PROJECT_DIR$/tests/Feature" />
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
<option value="$PROJECT_DIR$/tests" />
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
8
resources/scss/_material.scss
vendored
8
resources/scss/_material.scss
vendored
@@ -3,8 +3,8 @@
|
|||||||
@use "include-media/dist/include-media";
|
@use "include-media/dist/include-media";
|
||||||
|
|
||||||
md-icon svg {
|
md-icon svg {
|
||||||
width: var(--_with-icon-icon-size, var(--_icon-size, var(--_size)));
|
width: var(--_icon-size, var(--_size));
|
||||||
height: var(--_with-icon-icon-size, var(--_icon-size, var(--_size)));
|
height: var(--_icon-size, var(--_size));
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -14,8 +14,8 @@ md-icon svg {
|
|||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
width: var(--_list-item-leading-icon-size, var(--_with-icon-icon-size, var(--_icon-size, var(--_size))));
|
width: var(--_list-item-leading-icon-size, var(--_icon-size, var(--_size)));
|
||||||
height: var(--_list-item-leading-icon-size, var(--_with-icon-icon-size, var(--_icon-size, var(--_size))));
|
height: var(--_list-item-leading-icon-size, var(--_icon-size, var(--_size)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
resources/scss/theme/theme.scss
vendored
4
resources/scss/theme/theme.scss
vendored
@@ -58,3 +58,7 @@ a {
|
|||||||
top-app-bar [slot="title"] {
|
top-app-bar [slot="title"] {
|
||||||
@extend .title-large;
|
@extend .title-large;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
md-filled-select::part(menu), md-outlined-select::part(menu) {
|
||||||
|
max-height: 300px;
|
||||||
|
}
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import '@material/web/textfield/filled-text-field.js';
|
import '@material/web/textfield/filled-text-field.js';
|
||||||
import '@material/web/iconbutton/standard-icon-button.js';
|
import '@material/web/iconbutton/standard-icon-button.js';
|
||||||
|
|
||||||
import {FilledTextField} from '@material/web/textfield/lib/filled-text-field';
|
import {FilledTextField} from '@material/web/textfield/internal/filled-text-field';
|
||||||
import {mdiCalendarMonthOutline} from '@mdi/js';
|
import {mdiCalendarMonthOutline} from '@mdi/js';
|
||||||
import MdIcon from '@osm/Components/MdIcon';
|
import MdIcon from '@osm/Components/MdIcon';
|
||||||
import {Vnode} from 'mithril';
|
import {Vnode} from 'mithril';
|
||||||
@@ -19,6 +19,7 @@ export default class FilledDateTextField<A extends FilledDateTextFieldAttributes
|
|||||||
vnode.attrs.type ??= 'date';
|
vnode.attrs.type ??= 'date';
|
||||||
return (
|
return (
|
||||||
<md-filled-text-field {...vnode.attrs}>
|
<md-filled-text-field {...vnode.attrs}>
|
||||||
|
{/* @ts-ignore */}
|
||||||
{vnode.children}
|
{vnode.children}
|
||||||
<md-standard-icon-button slot="trailingicon" onclick={this.openDatePicker.bind(this)}>
|
<md-standard-icon-button slot="trailingicon" onclick={this.openDatePicker.bind(this)}>
|
||||||
<MdIcon icon={mdiCalendarMonthOutline}/>
|
<MdIcon icon={mdiCalendarMonthOutline}/>
|
||||||
|
@@ -8,8 +8,7 @@ import {showSnackbar} from '@osm/utils/misc';
|
|||||||
import {Builder} from 'coloquent';
|
import {Builder} from 'coloquent';
|
||||||
import {
|
import {
|
||||||
Children,
|
Children,
|
||||||
Vnode,
|
Vnode
|
||||||
VnodeDOM
|
|
||||||
} from 'mithril';
|
} from 'mithril';
|
||||||
import {Class} from 'type-fest';
|
import {Class} from 'type-fest';
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@ import '@material/web/icon/icon.js';
|
|||||||
import '@material/web/list/list-item-link.js';
|
import '@material/web/list/list-item-link.js';
|
||||||
|
|
||||||
import {router} from '@maicol07/inertia-mithril';
|
import {router} from '@maicol07/inertia-mithril';
|
||||||
import {ListItemLink} from '@material/web/list/lib/listitemlink/list-item-link';
|
import {ListItemLink} from '@material/web/list/internal/listitemlink/list-item-link';
|
||||||
import type * as MaterialIcons from '@mdi/js';
|
import type * as MaterialIcons from '@mdi/js';
|
||||||
import MdIcon from '@osm/Components/MdIcon';
|
import MdIcon from '@osm/Components/MdIcon';
|
||||||
import {Vnode} from 'mithril';
|
import {Vnode} from 'mithril';
|
||||||
|
@@ -1,55 +0,0 @@
|
|||||||
/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2023 Google LLC
|
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {css} from 'lit';
|
|
||||||
import {customElement} from 'lit/decorators.js';
|
|
||||||
|
|
||||||
import {styles as filledForcedColorsStyles} from '@material/web/select/lib/filled-forced-colors-styles.css.js';
|
|
||||||
import {FilledSelect} from '@material/web/select/lib/filled-select.js';
|
|
||||||
import {styles} from '@material/web/select/lib/filled-select-styles.css.js';
|
|
||||||
import {styles as sharedStyles} from '@material/web/select/lib/shared-styles.css.js';
|
|
||||||
|
|
||||||
declare global {
|
|
||||||
interface HTMLElementTagNameMap {
|
|
||||||
'md-filled-select': MdFilledSelect;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @summary
|
|
||||||
* Select menus display a list of choices on temporary surfaces and display the
|
|
||||||
* currently selected menu item above the menu.
|
|
||||||
*
|
|
||||||
* @description
|
|
||||||
* The select component allows users to choose a value from a fixed list of
|
|
||||||
* available options. Composed of an interactive anchor button and a menu, it is
|
|
||||||
* analogous to the native HTML `<select>` element. This is the "filled"
|
|
||||||
* variant.
|
|
||||||
*
|
|
||||||
* @example
|
|
||||||
* ```html
|
|
||||||
* <md-filled-select label="fruits">
|
|
||||||
* <!-- An empty selected option will give select an "un-filled" state -->
|
|
||||||
* <md-select-option selected></md-select-option>
|
|
||||||
* <md-select-option value="apple" headline="Apple"></md-select-option>
|
|
||||||
* <md-select-option value="banana" headline="Banana"></md-select-option>
|
|
||||||
* <md-select-option value="kiwi" headline="Kiwi"></md-select-option>
|
|
||||||
* <md-select-option value="orange" headline="Orange"></md-select-option>
|
|
||||||
* <md-select-option value="tomato" headline="Tomato"></md-select-option>
|
|
||||||
* </md-filled-select>
|
|
||||||
* ```
|
|
||||||
*
|
|
||||||
* @final
|
|
||||||
* @suppress {visibility}
|
|
||||||
*/
|
|
||||||
@customElement('md-filled-select')
|
|
||||||
export default class MdFilledSelect extends FilledSelect {
|
|
||||||
static override styles = [sharedStyles, styles, filledForcedColorsStyles, css`
|
|
||||||
md-menu {
|
|
||||||
max-height: 300px;
|
|
||||||
}
|
|
||||||
`];
|
|
||||||
}
|
|
@@ -1,6 +1,6 @@
|
|||||||
import {NavigationDrawer as MDNavigationDrawer} from '@material/web/labs/navigationdrawer/lib/navigation-drawer.js';
|
import {NavigationDrawer as MDNavigationDrawer} from '@material/web/labs/navigationdrawer/internal/navigation-drawer.js';
|
||||||
import {styles} from '@material/web/labs/navigationdrawer/lib/navigation-drawer-styles.css.js';
|
import {styles} from '@material/web/labs/navigationdrawer/internal/navigation-drawer-styles.css.js';
|
||||||
import {styles as sharedStyles} from '@material/web/labs/navigationdrawer/lib/shared-styles.css.js';
|
import {styles as sharedStyles} from '@material/web/labs/navigationdrawer/internal/shared-styles.css.js';
|
||||||
import {css} from 'lit';
|
import {css} from 'lit';
|
||||||
import {customElement} from 'lit/decorators.js';
|
import {customElement} from 'lit/decorators.js';
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
import {NavigationDrawerModal as MDNavigationDrawerModal} from '@material/web/labs/navigationdrawer/lib/navigation-drawer-modal.js';
|
import {NavigationDrawerModal as MDNavigationDrawerModal} from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';
|
||||||
import {styles} from '@material/web/labs/navigationdrawer/lib/navigation-drawer-modal-styles.css.js';
|
import {styles} from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.css.js';
|
||||||
import {styles as sharedStyles} from '@material/web/labs/navigationdrawer/lib/shared-styles.css.js';
|
import {styles as sharedStyles} from '@material/web/labs/navigationdrawer/internal/shared-styles.css.js';
|
||||||
import {css} from 'lit';
|
import {css} from 'lit';
|
||||||
import {customElement} from 'lit/decorators.js';
|
import {customElement} from 'lit/decorators.js';
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@ import '@material/web/checkbox/checkbox.js';
|
|||||||
import '@material/web/dialog/dialog.js';
|
import '@material/web/dialog/dialog.js';
|
||||||
import '@material/web/textfield/filled-text-field.js';
|
import '@material/web/textfield/filled-text-field.js';
|
||||||
|
|
||||||
import {Dialog} from '@material/web/dialog/lib/dialog';
|
import {Dialog} from '@material/web/dialog/internal/dialog';
|
||||||
import {
|
import {
|
||||||
mdiAccountOutline,
|
mdiAccountOutline,
|
||||||
mdiEmailOutline,
|
mdiEmailOutline,
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import '@material/web/checkbox/checkbox.js';
|
import '@material/web/checkbox/checkbox.js';
|
||||||
import '@material/web/field/outlined-field.js';
|
import '@material/web/field/outlined-field.js';
|
||||||
import '@osm/Components/m3/FilledSelect';
|
import '@material/web/select/filled-select.js';
|
||||||
import '@material/web/select/select-option.js';
|
import '@material/web/select/select-option.js';
|
||||||
|
|
||||||
import type {MdCheckbox} from '@material/web/checkbox/checkbox';
|
import type {MdCheckbox} from '@material/web/checkbox/checkbox';
|
||||||
import {Select} from '@material/web/select/lib/select';
|
import {Select} from '@material/web/select/internal/select';
|
||||||
import {mdiLicense} from '@mdi/js';
|
import {mdiLicense} from '@mdi/js';
|
||||||
import MdIcon from '@osm/Components/MdIcon';
|
import MdIcon from '@osm/Components/MdIcon';
|
||||||
import {
|
import {
|
||||||
|
Reference in New Issue
Block a user