Skip to content

Commit

Permalink
fix(com-pwa): update based other packages
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm authored and AliMD committed Feb 25, 2023
1 parent accd4fb commit d0a96e9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {JsonSchema, validator} from '@alwatr/validator';
import {config} from '../config.js';
import {userContextConsumer, orderStorageContextProvider, submitOrderCommandTrigger} from '../context.js';


import type {Order, OrderDelivery} from '@alwatr/type/customer-order-management.js';

const validSchema: JsonSchema = {
Expand Down
13 changes: 7 additions & 6 deletions uniquely/com-pwa/src/order-form.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import {customElement, css, html, property, LocalizeMixin, AlwatrSmartElement} from '@alwatr/element';
import {customElement, css, html, property, LocalizeMixin, SignalMixin, AlwatrBaseElement} from '@alwatr/element';
import {message} from '@alwatr/i18n';
import '@alwatr/ui-kit/button/button.js';
import '@alwatr/ui-kit/card/surface.js';
import '@alwatr/ui-kit/radio-group/radio-group.js';
import '@alwatr/ui-kit/text-field/text-field.js';


import {submitOrderCommandTrigger} from './context.js';

import type {OrderDelivery} from '@alwatr/type/src/customer-order-management.js';
import type {AlwatrFieldSet, RadioGroupOptions} from '@alwatr/ui-kit/radio-group/radio-group.js';
import type {AlwatrTextField} from '@alwatr/ui-kit/text-field/text-field.js';

import '@alwatr/ui-kit/text-field/text-field.js';
import '@alwatr/ui-kit/button/button.js';
import '@alwatr/ui-kit/radio-group/radio-group.js';
import '@alwatr/ui-kit/card/surface.js';

declare global {
interface HTMLElementTagNameMap {
Expand All @@ -22,7 +23,7 @@ declare global {
* Alwatr Customer Order Management Order Form
*/
@customElement('alwatr-order-form')
export class AlwatrOrderForm extends LocalizeMixin(AlwatrSmartElement) {
export class AlwatrOrderForm extends LocalizeMixin(SignalMixin(AlwatrBaseElement)) {
static formId = 'order';

get _carTypeRadioGroupOptions(): RadioGroupOptions {
Expand Down
11 changes: 6 additions & 5 deletions uniquely/com-pwa/src/page-order-form.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import {customElement, css, html, LocalizeMixin, AlwatrSmartElement} from '@alwatr/element';
import {customElement, css, html, LocalizeMixin, AlwatrBaseElement, SignalMixin} from '@alwatr/element';
import {message} from '@alwatr/i18n';

import type {TopAppBarContent} from '@alwatr/ui-kit/src/top-app-bar/top-app-bar.js';

import '@alwatr/ui-kit/top-app-bar/top-app-bar.js';

import './app-footer.js';
import './order-form.js';


import type {TopAppBarContent} from '@alwatr/ui-kit/src/top-app-bar/top-app-bar.js';

declare global {
interface HTMLElementTagNameMap {
'alwatr-page-order-form': AlwatrPageOrderForm;
Expand All @@ -17,7 +18,7 @@ declare global {
* Alwatr Customer Order Management Order Form Page
*/
@customElement('alwatr-page-order-form')
export class AlwatrPageOrderForm extends LocalizeMixin(AlwatrSmartElement) {
export class AlwatrPageOrderForm extends LocalizeMixin(SignalMixin(AlwatrBaseElement)) {
static override styles = css`
:host {
display: flex;
Expand Down

0 comments on commit d0a96e9

Please sign in to comment.