@design.estate/dees-catalog 1.0.220 → 1.0.222

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design.estate/dees-catalog",
3
- "version": "1.0.220",
3
+ "version": "1.0.222",
4
4
  "private": false,
5
5
  "description": "website for lossless.com",
6
6
  "main": "dist_ts_web/index.js",
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@design.estate/dees-catalog',
6
- version: '1.0.220',
6
+ version: '1.0.222',
7
7
  description: 'website for lossless.com'
8
8
  }
@@ -6,16 +6,18 @@ import { DeesInputText } from './dees-input-text.js';
6
6
  import { DeesInputQuantitySelector } from './dees-input-quantityselector.js';
7
7
  import { DeesInputRadio } from './dees-input-radio.js';
8
8
  import { DeesFormSubmit } from './dees-form-submit.js';
9
+ import { DeesTable } from './dees-table.js';
9
10
 
10
11
  // Unified set for form input types
11
12
  const FORM_INPUT_TYPES = [
12
13
  DeesInputCheckbox,
13
14
  DeesInputText,
14
15
  DeesInputQuantitySelector,
15
- DeesInputRadio
16
+ DeesInputRadio,
17
+ DeesTable,
16
18
  ];
17
19
 
18
- export type TFormInputElement = DeesInputCheckbox | DeesInputText | DeesInputQuantitySelector | DeesInputRadio;
20
+ export type TFormInputElement = DeesInputCheckbox | DeesInputText | DeesInputQuantitySelector | DeesInputRadio | DeesTable<any>;
19
21
 
20
22
  declare global {
21
23
  interface HTMLElementTagNameMap {
@@ -102,7 +104,7 @@ export class DeesForm extends DeesElement {
102
104
 
103
105
  public async collectFormData() {
104
106
  const children = this.getFormElements();
105
- const valueObject: { [key: string]: string | number | boolean } = {};
107
+ const valueObject: { [key: string]: string | number | boolean | any [] } = {};
106
108
  for (const child of children) {
107
109
  if (!child.key) {
108
110
  console.log(`form element with label "${child.label}" has no key. skipping.`);
@@ -48,19 +48,24 @@ import {
48
48
  faDesktop as faDesktopSolid,
49
49
  faEye as faEyeSolid,
50
50
  faEyeSlash as faEyeSlashSolid,
51
+ faFileInvoice as faFileInvoiceSolid,
52
+ faFileInvoiceDollar as faFileInvoiceDollarSolid,
51
53
  faGrip as faGripSolid,
52
54
  faMessage as faMessageSolid,
55
+ faMoneyCheckDollar as faMoneyCheckDollarSolid,
53
56
  faMugHot as faMugHotSolid,
54
57
  faMinus as faMinusSolid,
55
58
  faPaste as faPasteSolid,
56
59
  faPenToSquare as faPenToSquareSolid,
57
60
  faPlus as faPlusSolid,
61
+ faReceipt as faReceiptSolid,
58
62
  faRss as faRssSolid,
59
63
  faUsers as faUsersSolid,
60
64
  faShare as faShareSolid,
61
65
  faSun as faSunSolid,
62
66
  faTrash as faTrashSolid,
63
67
  faTrashCan as faTrashCanSolid,
68
+ faWallet as faWalletSolid,
64
69
  faXmark as faXmarkSolid,
65
70
  } from '@fortawesome/free-solid-svg-icons';
66
71
  import { demoFunc } from './dees-icon.demo.js';
@@ -86,15 +91,19 @@ export const faIcons = {
86
91
  desktop: faDesktopSolid,
87
92
  eye: faEyeSolid,
88
93
  eyeSlash: faEyeSlashSolid,
94
+ fileInvoice: faFileInvoiceSolid,
95
+ fileInvoiceDoller: faFileInvoiceDollarSolid,
89
96
  grip: faGripSolid,
90
97
  message: faMessageRegular,
91
98
  messageSolid: faMessageSolid,
99
+ moneyCheckDollar: faMoneyCheckDollarSolid,
92
100
  mugHot: faMugHotSolid,
93
101
  minus: faMinusSolid,
94
102
  paste: faPasteRegular,
95
103
  pasteSolid: faPasteSolid,
96
104
  penToSquare: faPenToSquareSolid,
97
105
  plus: faPlusSolid,
106
+ receipt: faReceiptSolid,
98
107
  rss: faRssSolid,
99
108
  share: faShareSolid,
100
109
  sun: faSunRegular,
@@ -104,6 +113,7 @@ export const faIcons = {
104
113
  trashCan: faTrashCanRegular,
105
114
  trashCanSolid: faTrashCanSolid,
106
115
  users: faUsersSolid,
116
+ wallet: faWalletSolid,
107
117
  xmark: faXmarkSolid,
108
118
  // brands
109
119
  facebook: faFacebook,
@@ -16,7 +16,6 @@ export class DeesInputText extends DeesElement {
16
16
 
17
17
  // INSTANCE
18
18
  public changeSubject = new domtools.rxjs.Subject<DeesInputText>();
19
- public valueChangeSubject = new domtools.rxjs.Subject<string>();
20
19
 
21
20
  @property({
22
21
  type: String
@@ -143,7 +142,6 @@ export class DeesInputText extends DeesElement {
143
142
  const target: any = eventArg.target;
144
143
  this.value = target.value;
145
144
  this.changeSubject.next(this);
146
- this.valueChangeSubject.next(this.value);
147
145
  }
148
146
 
149
147
  public async freeze() {
@@ -88,6 +88,34 @@ export class DeesTable<T> extends DeesElement {
88
88
  })
89
89
  public data: T[] = [];
90
90
 
91
+ // dees-form compatibility -----------------------------------------
92
+ @property({
93
+ type: String,
94
+ })
95
+ public key: string;
96
+
97
+ @property({
98
+ type: String,
99
+ })
100
+ public label: string;
101
+
102
+ @property({
103
+ type: Boolean,
104
+ })
105
+ public disabled: boolean = false;
106
+
107
+ @property({
108
+ type: Boolean,
109
+ })
110
+ public required: boolean = false;
111
+
112
+ get value() {
113
+ return this.data;
114
+ }
115
+ set value(valueArg) {}
116
+ public changeSubject = new domtools.rxjs.Subject<DeesTable<T>>();
117
+ // end dees-form compatibility -----------------------------------------
118
+
91
119
  @property({
92
120
  type: String,
93
121
  reflect: true,
@@ -335,7 +363,7 @@ export class DeesTable<T> extends DeesElement {
335
363
  <!-- the heading part -->
336
364
  <div class="header">
337
365
  <div class="headingContainer">
338
- <div class="heading heading1">${this.heading1}</div>
366
+ <div class="heading heading1">${this.label || this.heading1}</div>
339
367
  <div class="heading heading2">${this.heading2}</div>
340
368
  </div>
341
369
  <div class="headerActions">