@supersoniks/concorde 1.1.27 → 1.1.30

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.
Files changed (63) hide show
  1. package/README.md +0 -0
  2. package/cli.js +0 -0
  3. package/concorde-core.bundle.js +21 -22
  4. package/concorde-core.es.js +22 -23
  5. package/core/components/functional/subscriber/subscriber.d.ts +2 -1
  6. package/core/components/functional/subscriber/subscriber.js +8 -0
  7. package/core/components/ui/_css/size.d.ts +1 -0
  8. package/core/components/ui/_css/size.js +26 -0
  9. package/core/components/ui/_css/type.d.ts +2 -0
  10. package/core/components/ui/_css/{types.js → type.js} +1 -1
  11. package/core/components/ui/alert/alert.d.ts +1 -1
  12. package/core/components/ui/alert/alert.js +6 -15
  13. package/core/components/ui/badge/badge.d.ts +1 -1
  14. package/core/components/ui/badge/badge.js +7 -6
  15. package/core/components/ui/button/button.d.ts +12 -7
  16. package/core/components/ui/button/button.js +32 -35
  17. package/core/components/ui/card/card-header.js +1 -1
  18. package/core/components/ui/divider/divider.d.ts +1 -1
  19. package/core/components/ui/divider/divider.js +7 -3
  20. package/core/components/ui/form/checkbox/checkbox.d.ts +13 -11
  21. package/core/components/ui/form/checkbox/checkbox.js +12 -8
  22. package/core/components/ui/form/css/form-control.js +56 -31
  23. package/core/components/ui/form/input/input.d.ts +24 -20
  24. package/core/components/ui/form/input/input.js +35 -33
  25. package/core/components/ui/form/radio/radio.js +1 -2
  26. package/core/components/ui/form/select/select.d.ts +9 -9
  27. package/core/components/ui/form/select/select.js +8 -14
  28. package/core/components/ui/form/textarea/textarea.d.ts +19 -18
  29. package/core/components/ui/form/textarea/textarea.js +12 -23
  30. package/core/components/ui/icon/icon.js +4 -0
  31. package/core/components/ui/icon/icons.js +4 -0
  32. package/core/components/ui/icon/icons.json +1 -1
  33. package/core/components/ui/image/image.d.ts +0 -1
  34. package/core/components/ui/image/image.js +0 -23
  35. package/core/components/ui/pop/pop.d.ts +1 -0
  36. package/core/components/ui/pop/pop.js +8 -0
  37. package/core/components/ui/progress/progress.d.ts +1 -0
  38. package/core/components/ui/progress/progress.js +13 -20
  39. package/core/components/ui/table/table-td.d.ts +1 -0
  40. package/core/components/ui/table/table-td.js +6 -2
  41. package/core/components/ui/table/table-th.js +2 -2
  42. package/core/components/ui/table/table-tr.js +3 -2
  43. package/core/components/ui/table/table.d.ts +1 -1
  44. package/core/components/ui/table/table.js +3 -20
  45. package/core/components/ui/theme/css/tailwind.css +0 -0
  46. package/core/components/ui/theme/css/tailwind.d.ts +0 -0
  47. package/core/components/ui/theme/theme-collection/core-variables.js +19 -8
  48. package/core/components/ui/theme/theme.d.ts +8 -1
  49. package/core/components/ui/theme/theme.js +42 -1
  50. package/core/components/ui/toast/toast-item.d.ts +2 -0
  51. package/core/components/ui/toast/toast-item.js +24 -1
  52. package/core/components/ui/toast/toast.d.ts +1 -0
  53. package/core/components/ui/toast/toast.js +16 -2
  54. package/core/components/ui/toast/types.d.ts +1 -0
  55. package/core/mixins/FormCheckable.d.ts +4 -3
  56. package/core/mixins/FormCheckable.js +4 -1
  57. package/core/mixins/FormElement.d.ts +4 -3
  58. package/core/mixins/FormElement.js +9 -5
  59. package/core/mixins/FormInput.d.ts +7 -6
  60. package/core/mixins/FormInput.js +1 -3
  61. package/mixins.d.ts +10 -8
  62. package/package.json +5 -3
  63. package/core/components/ui/_css/types.d.ts +0 -2
@@ -21,10 +21,10 @@ const Form = (superClass) => {
21
21
  constructor(...args) {
22
22
  super();
23
23
  this.touched = false;
24
- this.error = null;
25
- this.autofocus = null;
24
+ this.error = false;
25
+ this.autofocus = false;
26
+ this.required = false;
26
27
  this.disabled = null;
27
- this.required = null;
28
28
  this.onValueAssign = null;
29
29
  this.onFormValueAssign = null;
30
30
  this.onFormDataInValidate = null;
@@ -133,6 +133,10 @@ const Form = (superClass) => {
133
133
  formPublisher.onInvalidate((this.onFormDataInValidate));
134
134
  }
135
135
  }
136
+ handleBlur() {
137
+ this.touched = true;
138
+ // this.validateFormElement();
139
+ }
136
140
  handleChange(e) {
137
141
  this.value = e.target.value;
138
142
  const event = new Event("change");
@@ -230,10 +234,10 @@ const Form = (superClass) => {
230
234
  ], FormElement.prototype, "autofocus", void 0);
231
235
  __decorate([
232
236
  property({ type: Boolean })
233
- ], FormElement.prototype, "disabled", void 0);
237
+ ], FormElement.prototype, "required", void 0);
234
238
  __decorate([
235
239
  property({ type: Boolean })
236
- ], FormElement.prototype, "required", void 0);
240
+ ], FormElement.prototype, "disabled", void 0);
237
241
  __decorate([
238
242
  property()
239
243
  ], FormElement.prototype, "name", null);
@@ -8,22 +8,23 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
8
8
  * On peut essayer text, date, color, email par exemple, mais pas radio/checkbox/range a priori
9
9
  */
10
10
  type: "button" | "checkbox" | "color" | "date" | "datetime-local" | "email" | "file" | "hidden" | "image" | "month" | "number" | "password" | "radio" | "range" | "reset" | "search" | "submit" | "tel" | "text" | "time" | "url" | "week";
11
- tabindex: string | null;
12
- autocomplete: "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo" | null;
11
+ tabindex?: number | undefined;
12
+ autocomplete?: "url" | "name" | "language" | "on" | "tel" | "email" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo" | undefined;
13
13
  getFormPublisher(): any;
14
14
  updateDataValue(): void;
15
15
  handleChange(e?: any): void;
16
+ handleBlur(e?: any): void;
16
17
  getValueForFormPublisher(): any;
17
- error: true | null;
18
- autofocus: true | null;
18
+ error: boolean;
19
+ autofocus: boolean;
20
+ required: boolean;
19
21
  disabled: true | null;
20
- required: true | null;
21
22
  formDataProvider: string;
22
- _value: any;
23
23
  /**
24
24
  * Le type De l'input, comme en html cependant tous les types ne sont pas actuellements compatibles en raison du style en vigueur
25
25
  * On peut essayer text, date, color, email par exemple, mais pas radio/checkbox/range a priori
26
26
  */
27
+ _value: any;
27
28
  value: any;
28
29
  _name: string;
29
30
  name: string;
@@ -14,8 +14,6 @@ const Form = (superClass) => {
14
14
  * On peut essayer text, date, color, email par exemple, mais pas radio/checkbox/range a priori
15
15
  */
16
16
  this.type = "text";
17
- this.tabindex = null;
18
- this.autocomplete = null;
19
17
  args;
20
18
  }
21
19
  validateFormElement() {
@@ -32,7 +30,7 @@ const Form = (superClass) => {
32
30
  property({ type: String })
33
31
  ], FormInput.prototype, "type", void 0);
34
32
  __decorate([
35
- property({ type: String })
33
+ property({ type: Number })
36
34
  ], FormInput.prototype, "tabindex", void 0);
37
35
  __decorate([
38
36
  property({ type: String })
package/mixins.d.ts CHANGED
@@ -55,10 +55,11 @@ export declare const FormCheckable: <T extends new (...args: any[]) => myFormEle
55
55
  initPublisher(): void;
56
56
  getFormPublisher(): any;
57
57
  updateDataValue(): void;
58
- error: true | null;
59
- autofocus: true | null;
58
+ handleBlur(e?: any): void;
59
+ error: boolean;
60
+ autofocus: boolean;
61
+ required: boolean;
60
62
  disabled: true | null;
61
- required: true | null;
62
63
  formDataProvider: string;
63
64
  props: any;
64
65
  isConnected: boolean;
@@ -89,16 +90,17 @@ export declare const FormInput: <T extends new (...args: any[]) => myFormElement
89
90
  new (...args: any[]): {
90
91
  validateFormElement(): void;
91
92
  type: "number" | "search" | "file" | "button" | "password" | "url" | "color" | "hidden" | "time" | "image" | "text" | "reset" | "submit" | "month" | "week" | "checkbox" | "radio" | "range" | "tel" | "email" | "date" | "datetime-local";
92
- tabindex: string | null;
93
- autocomplete: "url" | "name" | "language" | "on" | "tel" | "email" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo" | null;
93
+ tabindex?: number | undefined;
94
+ autocomplete?: "url" | "name" | "language" | "on" | "tel" | "email" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo" | undefined;
94
95
  getFormPublisher(): any;
95
96
  updateDataValue(): void;
96
97
  handleChange(e?: any): void;
98
+ handleBlur(e?: any): void;
97
99
  getValueForFormPublisher(): any;
98
- error: true | null;
99
- autofocus: true | null;
100
+ error: boolean;
101
+ autofocus: boolean;
102
+ required: boolean;
100
103
  disabled: true | null;
101
- required: true | null;
102
104
  formDataProvider: string;
103
105
  _value: any;
104
106
  value: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supersoniks/concorde",
3
- "version": "1.1.27",
3
+ "version": "1.1.30",
4
4
  "customElements": "custom-elements.json",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -56,8 +56,10 @@
56
56
  "./functional/subscriber": "./core/components/functional/subscriber/subscriber.js",
57
57
  "./core/components/ui/_css/scroll": "./core/components/ui/_css/scroll.js",
58
58
  "./ui/_css/scroll": "./core/components/ui/_css/scroll.js",
59
- "./core/components/ui/_css/types": "./core/components/ui/_css/types.js",
60
- "./ui/_css/types": "./core/components/ui/_css/types.js",
59
+ "./core/components/ui/_css/size": "./core/components/ui/_css/size.js",
60
+ "./ui/_css/size": "./core/components/ui/_css/size.js",
61
+ "./core/components/ui/_css/type": "./core/components/ui/_css/type.js",
62
+ "./ui/_css/type": "./core/components/ui/_css/type.js",
61
63
  "./core/components/ui/alert/alert": "./core/components/ui/alert/alert.js",
62
64
  "./ui/alert": "./core/components/ui/alert/alert.js",
63
65
  "./core/components/ui/badge/badge": "./core/components/ui/badge/badge.js",
@@ -1,2 +0,0 @@
1
- export declare const typesColor: import("lit").CSSResult;
2
- export declare const typesBg: import("lit").CSSResult;