@supersoniks/concorde 1.1.49 → 2.0.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/README.md +0 -0
- package/cli.js +0 -0
- package/components.d.ts +0 -0
- package/components.js +0 -0
- package/concorde-core.bundle.js +3288 -36
- package/concorde-core.es.js +13149 -9458
- package/core/_types/types.d.ts +0 -0
- package/core/_types/types.js +0 -0
- package/core/components/functional/date/date.d.ts +0 -0
- package/core/components/functional/date/date.js +0 -0
- package/core/components/functional/example/example.d.ts +0 -0
- package/core/components/functional/example/example.js +0 -0
- package/core/components/functional/fetch/fetch.d.ts +2 -0
- package/core/components/functional/fetch/fetch.js +0 -0
- package/core/components/functional/functional.d.ts +0 -0
- package/core/components/functional/functional.js +0 -0
- package/core/components/functional/if/if.d.ts +0 -0
- package/core/components/functional/if/if.js +0 -0
- package/core/components/functional/if/if.test.d.ts +0 -0
- package/core/components/functional/if/if.test.js +12 -21
- package/core/components/functional/list/list.d.ts +4 -0
- package/core/components/functional/list/list.js +24 -11
- package/core/components/functional/mix/mix.d.ts +0 -0
- package/core/components/functional/mix/mix.js +0 -0
- package/core/components/functional/queue/queue.d.ts +0 -0
- package/core/components/functional/queue/queue.js +38 -70
- package/core/components/functional/router/redirect.d.ts +0 -0
- package/core/components/functional/router/redirect.js +0 -0
- package/core/components/functional/router/router.d.ts +0 -0
- package/core/components/functional/router/router.js +1 -2
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -0
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +28 -43
- package/core/components/functional/sdui/default-library.json +0 -0
- package/core/components/functional/sdui/sdui-utils.d.ts +0 -0
- package/core/components/functional/sdui/sdui-utils.js +0 -0
- package/core/components/functional/sdui/sdui.d.ts +2 -0
- package/core/components/functional/sdui/sdui.js +24 -40
- package/core/components/functional/sdui/types.d.ts +0 -0
- package/core/components/functional/sdui/types.js +0 -0
- package/core/components/functional/sonic-scope/sonic-scope.d.ts +1 -1
- package/core/components/functional/sonic-scope/sonic-scope.js +0 -0
- package/core/components/functional/states/states.d.ts +0 -0
- package/core/components/functional/states/states.js +2 -4
- package/core/components/functional/submit/submit.d.ts +0 -0
- package/core/components/functional/submit/submit.js +106 -121
- package/core/components/functional/subscriber/subscriber.d.ts +0 -0
- package/core/components/functional/subscriber/subscriber.js +0 -0
- package/core/components/functional/value/value.d.ts +0 -0
- package/core/components/functional/value/value.js +0 -0
- package/core/components/ui/_css/scroll.d.ts +0 -0
- package/core/components/ui/_css/scroll.js +0 -0
- package/core/components/ui/_css/size.d.ts +0 -0
- package/core/components/ui/_css/size.js +0 -0
- package/core/components/ui/_css/type.d.ts +0 -0
- package/core/components/ui/_css/type.js +0 -0
- package/core/components/ui/alert/alert.d.ts +0 -0
- package/core/components/ui/alert/alert.js +0 -0
- package/core/components/ui/badge/badge.d.ts +0 -0
- package/core/components/ui/badge/badge.js +0 -0
- package/core/components/ui/button/button.d.ts +2 -2
- package/core/components/ui/button/button.js +24 -41
- package/core/components/ui/captcha/captcha.d.ts +0 -0
- package/core/components/ui/captcha/captcha.js +3 -5
- package/core/components/ui/card/card-footer.d.ts +0 -0
- package/core/components/ui/card/card-footer.js +0 -0
- package/core/components/ui/card/card-header-descripton.d.ts +0 -0
- package/core/components/ui/card/card-header-descripton.js +0 -0
- package/core/components/ui/card/card-header.d.ts +0 -0
- package/core/components/ui/card/card-header.js +0 -0
- package/core/components/ui/card/card-main.d.ts +0 -0
- package/core/components/ui/card/card-main.js +0 -0
- package/core/components/ui/card/card.d.ts +0 -0
- package/core/components/ui/card/card.js +0 -0
- package/core/components/ui/divider/divider.d.ts +1 -1
- package/core/components/ui/divider/divider.js +6 -6
- package/core/components/ui/form/checkbox/checkbox.d.ts +3 -23
- package/core/components/ui/form/checkbox/checkbox.js +7 -12
- package/core/components/ui/form/css/form-control.d.ts +0 -0
- package/core/components/ui/form/css/form-control.js +0 -0
- package/core/components/ui/form/fieldset/fieldset.d.ts +0 -0
- package/core/components/ui/form/fieldset/fieldset.js +0 -0
- package/core/components/ui/form/fieldset/legend-description.d.ts +0 -0
- package/core/components/ui/form/fieldset/legend-description.js +0 -0
- package/core/components/ui/form/fieldset/legend.d.ts +0 -0
- package/core/components/ui/form/fieldset/legend.js +0 -0
- package/core/components/ui/form/form-actions/form-actions.d.ts +0 -0
- package/core/components/ui/form/form-actions/form-actions.js +0 -0
- package/core/components/ui/form/form-layout/form-layout.d.ts +1 -1
- package/core/components/ui/form/form-layout/form-layout.js +1 -1
- package/core/components/ui/form/input/input.d.ts +4 -6
- package/core/components/ui/form/input/input.js +12 -18
- package/core/components/ui/form/input/password-helper.d.ts +0 -0
- package/core/components/ui/form/input/password-helper.js +0 -0
- package/core/components/ui/form/input/same-value-helper.d.ts +0 -0
- package/core/components/ui/form/input/same-value-helper.js +0 -0
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +5 -20
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +27 -93
- package/core/components/ui/form/radio/radio.d.ts +0 -0
- package/core/components/ui/form/radio/radio.js +0 -0
- package/core/components/ui/form/select/select.d.ts +1 -1
- package/core/components/ui/form/select/select.js +15 -25
- package/core/components/ui/form/textarea/textarea.d.ts +3 -3
- package/core/components/ui/form/textarea/textarea.js +8 -17
- package/core/components/ui/group/group.d.ts +0 -0
- package/core/components/ui/group/group.js +7 -15
- package/core/components/ui/icon/icon.d.ts +6 -12
- package/core/components/ui/icon/icon.js +20 -53
- package/core/components/ui/icon/icons.d.ts +0 -0
- package/core/components/ui/icon/icons.js +28 -22
- package/core/components/ui/icon/icons.json +0 -0
- package/core/components/ui/image/image.d.ts +1 -1
- package/core/components/ui/image/image.js +3 -3
- package/core/components/ui/link/link.d.ts +0 -0
- package/core/components/ui/link/link.js +0 -0
- package/core/components/ui/loader/loader.d.ts +0 -0
- package/core/components/ui/loader/loader.js +0 -0
- package/core/components/ui/loader/styles/fixed.d.ts +0 -0
- package/core/components/ui/loader/styles/fixed.js +0 -0
- package/core/components/ui/loader/styles/inline.d.ts +0 -0
- package/core/components/ui/loader/styles/inline.js +0 -0
- package/core/components/ui/menu/menu-item.d.ts +0 -0
- package/core/components/ui/menu/menu-item.js +0 -0
- package/core/components/ui/menu/menu.d.ts +0 -0
- package/core/components/ui/menu/menu.js +2 -4
- package/core/components/ui/modal/modal-actions.d.ts +1 -1
- package/core/components/ui/modal/modal-actions.js +4 -4
- package/core/components/ui/modal/modal-close.d.ts +0 -0
- package/core/components/ui/modal/modal-close.js +0 -0
- package/core/components/ui/modal/modal-content.d.ts +0 -0
- package/core/components/ui/modal/modal-content.js +0 -0
- package/core/components/ui/modal/modal-subtitle.d.ts +0 -0
- package/core/components/ui/modal/modal-subtitle.js +0 -0
- package/core/components/ui/modal/modal-title.d.ts +0 -0
- package/core/components/ui/modal/modal-title.js +0 -0
- package/core/components/ui/modal/modal.d.ts +0 -0
- package/core/components/ui/modal/modal.js +10 -12
- package/core/components/ui/pop/pop.d.ts +0 -0
- package/core/components/ui/pop/pop.js +3 -4
- package/core/components/ui/progress/progress.d.ts +0 -0
- package/core/components/ui/progress/progress.js +0 -0
- package/core/components/ui/table/table-caption.d.ts +0 -0
- package/core/components/ui/table/table-caption.js +0 -0
- package/core/components/ui/table/table-tbody.d.ts +0 -0
- package/core/components/ui/table/table-tbody.js +0 -0
- package/core/components/ui/table/table-td.d.ts +0 -0
- package/core/components/ui/table/table-td.js +5 -6
- package/core/components/ui/table/table-tfoot.d.ts +0 -0
- package/core/components/ui/table/table-tfoot.js +0 -0
- package/core/components/ui/table/table-th.d.ts +0 -0
- package/core/components/ui/table/table-th.js +5 -6
- package/core/components/ui/table/table-thead.d.ts +0 -0
- package/core/components/ui/table/table-thead.js +0 -0
- package/core/components/ui/table/table-tr.d.ts +0 -0
- package/core/components/ui/table/table-tr.js +8 -1
- package/core/components/ui/table/table.d.ts +1 -0
- package/core/components/ui/table/table.js +9 -1
- package/core/components/ui/theme/css/tailwind.css +0 -0
- package/core/components/ui/theme/css/tailwind.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/core-variables.js +0 -0
- package/core/components/ui/theme/theme-collection/dark.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/dark.js +0 -0
- package/core/components/ui/theme/theme-collection/light.d.ts +0 -0
- package/core/components/ui/theme/theme-collection/light.js +0 -0
- package/core/components/ui/theme/theme.d.ts +0 -0
- package/core/components/ui/theme/theme.js +5 -6
- package/core/components/ui/toast/message-subscriber.d.ts +0 -0
- package/core/components/ui/toast/message-subscriber.js +6 -8
- package/core/components/ui/toast/toast-item.d.ts +0 -0
- package/core/components/ui/toast/toast-item.js +0 -0
- package/core/components/ui/toast/toast.d.ts +0 -0
- package/core/components/ui/toast/toast.js +15 -6
- package/core/components/ui/toast/types.d.ts +0 -0
- package/core/components/ui/toast/types.js +0 -0
- package/core/components/ui/tooltip/tooltip.d.ts +1 -1
- package/core/components/ui/tooltip/tooltip.js +0 -0
- package/core/components/ui/ui.d.ts +0 -0
- package/core/components/ui/ui.js +0 -0
- package/core/core.d.ts +0 -0
- package/core/core.js +9 -0
- package/core/decorators/Subscriber.d.ts +0 -0
- package/core/decorators/Subscriber.js +0 -0
- package/core/directives/DataProvider.d.ts +0 -14
- package/core/directives/DataProvider.js +1 -16
- package/core/mixins/Fetcher.d.ts +2 -0
- package/core/mixins/Fetcher.js +67 -79
- package/core/mixins/FormCheckable.d.ts +0 -0
- package/core/mixins/FormCheckable.js +2 -3
- package/core/mixins/FormElement.d.ts +0 -0
- package/core/mixins/FormElement.js +5 -7
- package/core/mixins/FormInput.d.ts +1 -1
- package/core/mixins/FormInput.js +1 -2
- package/core/mixins/Subscriber.d.ts +0 -0
- package/core/mixins/Subscriber.js +39 -54
- package/core/mixins/TemplatesContainer.d.ts +0 -0
- package/core/mixins/TemplatesContainer.js +0 -0
- package/core/mixins/mixins.d.ts +0 -0
- package/core/mixins/mixins.js +0 -0
- package/core/utils/Arrays.d.ts +0 -0
- package/core/utils/Arrays.js +2 -1
- package/core/utils/DataBindObserver.d.ts +0 -0
- package/core/utils/DataBindObserver.js +5 -6
- package/core/utils/Electron.d.ts +0 -0
- package/core/utils/Electron.js +1 -1
- package/core/utils/Format.d.ts +0 -0
- package/core/utils/Format.js +0 -0
- package/core/utils/HTML.d.ts +0 -0
- package/core/utils/HTML.js +18 -31
- package/core/utils/LocationHandler.d.ts +0 -0
- package/core/utils/LocationHandler.js +8 -13
- package/core/utils/Objects.d.ts +0 -0
- package/core/utils/Objects.js +0 -0
- package/core/utils/PublisherProxy.d.ts +0 -0
- package/core/utils/PublisherProxy.js +108 -132
- package/core/utils/Utils.d.ts +0 -0
- package/core/utils/Utils.js +3 -14
- package/core/utils/api.d.ts +0 -0
- package/core/utils/api.js +137 -165
- package/img/concorde-logo.svg +0 -0
- package/img/concorde.png +0 -0
- package/img/concorde_def.png +0 -0
- package/mixins.d.ts +5 -3
- package/mixins.js +0 -0
- package/package.json +13 -12
- package/svg/regular/plane.svg +0 -0
- package/svg/solid/plane.svg +0 -0
- package/test-utils/TestUtils.d.ts +0 -0
- package/test-utils/TestUtils.js +0 -0
- package/utils.d.ts +0 -0
- package/utils.js +0 -0
|
File without changes
|
|
@@ -8,6 +8,6 @@ export declare class Divider extends LitElement {
|
|
|
8
8
|
align: "left" | "right" | "center";
|
|
9
9
|
vertical: boolean;
|
|
10
10
|
noMargin: boolean;
|
|
11
|
-
firstUpdated(): void;
|
|
11
|
+
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
12
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
13
13
|
}
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property,
|
|
8
|
+
import { customElement, property, queryAssignedElements, query } from "lit/decorators.js";
|
|
9
9
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
10
|
const tagName = "sonic-divider";
|
|
11
11
|
let Divider = class Divider extends LitElement {
|
|
@@ -16,10 +16,10 @@ let Divider = class Divider extends LitElement {
|
|
|
16
16
|
this.vertical = false;
|
|
17
17
|
this.noMargin = false;
|
|
18
18
|
}
|
|
19
|
-
firstUpdated() {
|
|
20
|
-
|
|
21
|
-
if (this.label ||
|
|
22
|
-
|
|
19
|
+
firstUpdated(changedProperties) {
|
|
20
|
+
super.firstUpdated(changedProperties);
|
|
21
|
+
if (this.label || this.slotNodes?.length) {
|
|
22
|
+
this.divider?.classList.add("has-text");
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
@@ -151,7 +151,7 @@ Divider.styles = [
|
|
|
151
151
|
`,
|
|
152
152
|
];
|
|
153
153
|
__decorate([
|
|
154
|
-
|
|
154
|
+
queryAssignedElements({ flatten: true })
|
|
155
155
|
], Divider.prototype, "slotNodes", void 0);
|
|
156
156
|
__decorate([
|
|
157
157
|
query("div")
|
|
@@ -69,38 +69,18 @@ declare const Checkbox_base: {
|
|
|
69
69
|
new (...args: any[]): {
|
|
70
70
|
validateFormElement(): void;
|
|
71
71
|
forceAutoFill: boolean;
|
|
72
|
-
_type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
73
|
-
type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
72
|
+
_type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
73
|
+
type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
74
74
|
_description?: string | undefined;
|
|
75
75
|
description: string | undefined;
|
|
76
76
|
_label?: string | undefined;
|
|
77
77
|
label: string | undefined;
|
|
78
78
|
tabindex?: number | undefined;
|
|
79
|
-
autocomplete?: "url" | "name" | "
|
|
79
|
+
autocomplete?: "url" | "name" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "language" | "nickname" | "organization-title" | "cc-additional-name" | "bday" | "sex" | "impp" | "photo" | undefined;
|
|
80
80
|
getFormPublisher(): any;
|
|
81
81
|
updateDataValue(): void;
|
|
82
82
|
handleChange(e?: Event | undefined): void;
|
|
83
83
|
handleBlur(e?: Event | undefined): void;
|
|
84
|
-
/**
|
|
85
|
-
* ### Le composent sonic-checkbox étend les mixins FormCheckable, FormInput, FormElement et Subscriber
|
|
86
|
-
* **FormElement :**
|
|
87
|
-
* * La propriété value est remplie automatiquement a l'aide de l'attribut name renseigné, ceci en prenant la valeur de la propriété du même nom dans les données du dataprovider associé.
|
|
88
|
-
* * Par défault lorsque modifie l'input, la valeur est également mise à jour via le même dataprovider
|
|
89
|
-
* * On peut cependant décider de mettre à jour la donnée à une autre adresse en renseigne l'attribut *formDataProvider*.
|
|
90
|
-
* * Par conséquent on peut par exemple le lier à un composant *queue* (via sa propriété *dataFilterProvider*) de manière à appeller en auto une api avec des filtres.
|
|
91
|
-
* * **FormInput **
|
|
92
|
-
* Uniquement des propriétés classiques d'un input HTML. La prise en compte est ici partielle, par exemple les propriétés *placeholder*, *readonly*, *pattern*, *min* et *max* n'ont pas de sens pour un checkbox.
|
|
93
|
-
* **FormCheckable :**
|
|
94
|
-
* * La propriété checked mise à true si la valeur de la propriété du même nom dans les données du dataprovider associé contient un propriété checked.
|
|
95
|
-
* **Comportements :**
|
|
96
|
-
* * multiple (par défaut):
|
|
97
|
-
* - on peut cocher plusieurs checkbox ayant le même *name*.
|
|
98
|
-
* - la valeur enregistrée dans la propriété nommé du même nom dans formDataProvider est un tableau avec les *value* des cases cochées ayant le même *name*.
|
|
99
|
-
* * unique (Ajouter l'attribute unique au composant a l'intégration):
|
|
100
|
-
* - on ne peut cocher qu'une seule checkbox ayant le même *name*.
|
|
101
|
-
* * radio (Ajouter l'attribute radio au composant a l'intégration):
|
|
102
|
-
* Comme unique, mais on ne peut pas décocher la case sauf en en cochant une autre, comme un bouton radio.
|
|
103
|
-
*/
|
|
104
84
|
getValueForFormPublisher(): string | object | string[] | null | undefined;
|
|
105
85
|
focus?: (() => void) | undefined;
|
|
106
86
|
shadowRoot?: ShadowRoot | undefined;
|
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property,
|
|
8
|
+
import { customElement, property, queryAssignedElements } from "lit/decorators.js";
|
|
9
9
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
10
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
11
11
|
import FormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
@@ -55,10 +55,8 @@ let Checkbox = class Checkbox extends FormCheckable(FormInput(FormElement(Subscr
|
|
|
55
55
|
super.willUpdate(changedProperties);
|
|
56
56
|
}
|
|
57
57
|
hasSlotOrProps() {
|
|
58
|
-
|
|
59
|
-
this.
|
|
60
|
-
this.hasDescription =
|
|
61
|
-
this.description || ((_b = this.slotDescriptionNodes) === null || _b === void 0 ? void 0 : _b.length) ? true : false;
|
|
58
|
+
this.hasLabel = this.label || this.slotLabelNodes?.length ? true : false;
|
|
59
|
+
this.hasDescription = this.description || this.slotDescriptionNodes?.length ? true : false;
|
|
62
60
|
}
|
|
63
61
|
render() {
|
|
64
62
|
//let labelStarSuffix = this.label && this.required && this.label.indexOf("*") == -1 ? " *" : "";
|
|
@@ -80,9 +78,7 @@ let Checkbox = class Checkbox extends FormCheckable(FormInput(FormElement(Subscr
|
|
|
80
78
|
aria-label=${ifDefined(this.ariaLabel)}
|
|
81
79
|
aria-labelledby=${ifDefined(this.ariaLabelledby)}
|
|
82
80
|
/>
|
|
83
|
-
<sonic-icon name="${this.checked == "indeterminate" || this.showAsIndeterminate
|
|
84
|
-
? this.indeterminateIconName
|
|
85
|
-
: this.iconName}" class="sc-input-icon"></sonic-icon>
|
|
81
|
+
<sonic-icon name="${this.checked == "indeterminate" || this.showAsIndeterminate ? this.indeterminateIconName : this.iconName}" class="sc-input-icon"></sonic-icon>
|
|
86
82
|
</span>
|
|
87
83
|
|
|
88
84
|
<div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">
|
|
@@ -139,8 +135,7 @@ Checkbox.styles = [
|
|
|
139
135
|
outline: none;
|
|
140
136
|
margin: 0;
|
|
141
137
|
background-color: var(--sc-checkbox-bg);
|
|
142
|
-
border: var(--sc-checkbox-border-width) solid
|
|
143
|
-
var(--sc-checkbox-border-color);
|
|
138
|
+
border: var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color);
|
|
144
139
|
}
|
|
145
140
|
|
|
146
141
|
input:focus,
|
|
@@ -246,10 +241,10 @@ __decorate([
|
|
|
246
241
|
property({ type: Boolean })
|
|
247
242
|
], Checkbox.prototype, "hasLabel", void 0);
|
|
248
243
|
__decorate([
|
|
249
|
-
|
|
244
|
+
queryAssignedElements({ flatten: true })
|
|
250
245
|
], Checkbox.prototype, "slotLabelNodes", void 0);
|
|
251
246
|
__decorate([
|
|
252
|
-
|
|
247
|
+
queryAssignedElements({ slot: "description", flatten: true })
|
|
253
248
|
], Checkbox.prototype, "slotDescriptionNodes", void 0);
|
|
254
249
|
Checkbox = __decorate([
|
|
255
250
|
customElement(tagName)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import { ResizeController } from "@lit-labs/observers/
|
|
2
|
+
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
3
3
|
declare const FormLayout_base: (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface<import("../../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
4
4
|
export declare class FormLayout extends FormLayout_base {
|
|
5
5
|
static styles: import("lit").CSSResult[];
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
8
|
import { customElement, property, queryAssignedElements } from "lit/decorators.js";
|
|
9
|
-
import { ResizeController } from "@lit-labs/observers/
|
|
9
|
+
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
10
10
|
import { classMap } from "lit/directives/class-map.js";
|
|
11
11
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
12
12
|
const tagName = "sonic-form-layout";
|
|
@@ -3,14 +3,14 @@ declare const Input_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
validateFormElement(): void;
|
|
5
5
|
forceAutoFill: boolean;
|
|
6
|
-
_type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
7
|
-
type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
6
|
+
_type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
7
|
+
type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
8
8
|
_description?: string | undefined;
|
|
9
9
|
description: string | undefined;
|
|
10
10
|
_label?: string | undefined;
|
|
11
11
|
label: string | undefined;
|
|
12
12
|
tabindex?: number | undefined;
|
|
13
|
-
autocomplete?: "url" | "name" | "
|
|
13
|
+
autocomplete?: "url" | "name" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "language" | "nickname" | "organization-title" | "cc-additional-name" | "bday" | "sex" | "impp" | "photo" | undefined;
|
|
14
14
|
getFormPublisher(): any;
|
|
15
15
|
updateDataValue(): void;
|
|
16
16
|
handleChange(e?: Event | undefined): void;
|
|
@@ -54,9 +54,7 @@ declare const Input_base: {
|
|
|
54
54
|
requestUpdate(): void;
|
|
55
55
|
getAttribute(name: string): string;
|
|
56
56
|
hasAttribute(attributeName: string): boolean;
|
|
57
|
-
disconnectedCallback(): void;
|
|
58
|
-
* Taille du composant, implique notamment des modifications de typo et de marge interne
|
|
59
|
-
*/
|
|
57
|
+
disconnectedCallback(): void;
|
|
60
58
|
getBoundingClientRect(): DOMRect;
|
|
61
59
|
onConnected(callback: (component: any) => void): void;
|
|
62
60
|
offConnected(callback: (component: any) => void): void;
|
|
@@ -5,10 +5,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property,
|
|
8
|
+
import { customElement, property, queryAssignedElements, state } from "lit/decorators.js";
|
|
9
9
|
import { query } from "lit/decorators/query.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
-
import { formControl, label, description, passwordToggle
|
|
11
|
+
import { formControl, label, description, passwordToggle } from "@supersoniks/concorde/core/components/ui/form/css/form-control";
|
|
12
12
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
13
13
|
import FormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
14
14
|
import FormInput from "@supersoniks/concorde/core/mixins/FormInput";
|
|
@@ -73,18 +73,15 @@ let Input = class Input extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
|
73
73
|
this.input.setSelectionRange(start, end);
|
|
74
74
|
}
|
|
75
75
|
hasSlotOrProps() {
|
|
76
|
-
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
|
|
80
|
-
this.hasSuffix = ((_c = this.slotSuffixNodes) === null || _c === void 0 ? void 0 : _c.length) ? true : false;
|
|
81
|
-
this.hasPrefix = ((_d = this.slotPrefixNodes) === null || _d === void 0 ? void 0 : _d.length) ? true : false;
|
|
76
|
+
this.hasLabel = this.label || this.slotLabelNodes?.length ? true : false;
|
|
77
|
+
this.hasDescription = this.description || this.slotDescriptionNodes?.length ? true : false;
|
|
78
|
+
this.hasSuffix = this.slotSuffixNodes?.length ? true : false;
|
|
79
|
+
this.hasPrefix = this.slotPrefixNodes?.length ? true : false;
|
|
82
80
|
}
|
|
83
81
|
inlineContentFocus() {
|
|
84
|
-
var _a;
|
|
85
82
|
if (!this.inlineContent || this.disableInlineContentFocus)
|
|
86
83
|
return;
|
|
87
|
-
|
|
84
|
+
this.input?.focus();
|
|
88
85
|
}
|
|
89
86
|
handleChange(e) {
|
|
90
87
|
if (!this.hasAttribute("inputDelayMs")) {
|
|
@@ -156,10 +153,7 @@ let Input = class Input extends FormInput(FormElement(Subscriber(LitElement))) {
|
|
|
156
153
|
aria-label="Toggle password visibility"
|
|
157
154
|
variant="unstyled"
|
|
158
155
|
>
|
|
159
|
-
<sonic-icon
|
|
160
|
-
library="heroicons"
|
|
161
|
-
name=${this.isPassword ? "eye" : "eye-slash"}
|
|
162
|
-
></sonic-icon>
|
|
156
|
+
<sonic-icon library="heroicons" name=${this.isPassword ? "eye" : "eye-slash"}></sonic-icon>
|
|
163
157
|
</sonic-button>`
|
|
164
158
|
: ""}
|
|
165
159
|
<slot name="suffix" @slotchange=${this.hasSlotOrProps}></slot>
|
|
@@ -236,16 +230,16 @@ __decorate([
|
|
|
236
230
|
property({ type: Boolean })
|
|
237
231
|
], Input.prototype, "showPasswordToggle", void 0);
|
|
238
232
|
__decorate([
|
|
239
|
-
|
|
233
|
+
queryAssignedElements({ slot: "label", flatten: true })
|
|
240
234
|
], Input.prototype, "slotLabelNodes", void 0);
|
|
241
235
|
__decorate([
|
|
242
|
-
|
|
236
|
+
queryAssignedElements({ slot: "description", flatten: true })
|
|
243
237
|
], Input.prototype, "slotDescriptionNodes", void 0);
|
|
244
238
|
__decorate([
|
|
245
|
-
|
|
239
|
+
queryAssignedElements({ slot: "suffix", flatten: true })
|
|
246
240
|
], Input.prototype, "slotSuffixNodes", void 0);
|
|
247
241
|
__decorate([
|
|
248
|
-
|
|
242
|
+
queryAssignedElements({ slot: "prefix", flatten: true })
|
|
249
243
|
], Input.prototype, "slotPrefixNodes", void 0);
|
|
250
244
|
__decorate([
|
|
251
245
|
query("input")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,20 +4,20 @@ import "@supersoniks/concorde/core/components/ui/pop/pop";
|
|
|
4
4
|
import "@supersoniks/concorde/core/components/functional/queue/queue";
|
|
5
5
|
import "@supersoniks/concorde/core/components/ui/menu/menu-item";
|
|
6
6
|
import { Size } from "../../_css/size";
|
|
7
|
-
import { ResizeController } from "@lit-labs/observers/
|
|
7
|
+
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
8
8
|
type ListItem = Record<string, string>;
|
|
9
9
|
declare const InputAutocomplete_base: (new (...args: any[]) => import("../../../../mixins/TemplatesContainer").TemplatesContainerInterface) & {
|
|
10
10
|
new (...args: any[]): {
|
|
11
11
|
validateFormElement(): void;
|
|
12
12
|
forceAutoFill: boolean;
|
|
13
|
-
_type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
14
|
-
type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "
|
|
13
|
+
_type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
14
|
+
type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
15
15
|
_description?: string | undefined;
|
|
16
16
|
description: string | undefined;
|
|
17
17
|
_label?: string | undefined;
|
|
18
18
|
label: string | undefined;
|
|
19
19
|
tabindex?: number | undefined;
|
|
20
|
-
autocomplete?: "url" | "name" | "
|
|
20
|
+
autocomplete?: "url" | "name" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "language" | "nickname" | "organization-title" | "cc-additional-name" | "bday" | "sex" | "impp" | "photo" | undefined;
|
|
21
21
|
getFormPublisher(): any;
|
|
22
22
|
updateDataValue(): void;
|
|
23
23
|
handleChange(e?: Event | undefined): void;
|
|
@@ -86,10 +86,7 @@ export declare class InputAutocomplete extends InputAutocomplete_base {
|
|
|
86
86
|
dataProviderExpression: string;
|
|
87
87
|
select?: boolean;
|
|
88
88
|
key: string;
|
|
89
|
-
/** The parameter name to use in dataProviderExpression route */
|
|
90
89
|
searchParameter: string;
|
|
91
|
-
/** The property name to search in the dataProviderExpression result, use "_self" if result is a string list */
|
|
92
|
-
propertyName: string;
|
|
93
90
|
slotInputPrefixNodes: Array<Node>;
|
|
94
91
|
hasInputPrefix: boolean;
|
|
95
92
|
_resizeController: ResizeController<unknown>;
|
|
@@ -109,11 +106,6 @@ export declare class InputAutocomplete extends InputAutocomplete_base {
|
|
|
109
106
|
* Les fonctions de gestion
|
|
110
107
|
*/
|
|
111
108
|
hasSlotOrProps(): void;
|
|
112
|
-
/**
|
|
113
|
-
* Run when the formDataProvider's field is updated
|
|
114
|
-
*
|
|
115
|
-
* @param value
|
|
116
|
-
*/
|
|
117
109
|
private updateSearchParameter;
|
|
118
110
|
private initSearchParameter;
|
|
119
111
|
private selectListItem;
|
|
@@ -123,14 +115,7 @@ export declare class InputAutocomplete extends InputAutocomplete_base {
|
|
|
123
115
|
private updateActiveSelection;
|
|
124
116
|
connectedCallback(): void;
|
|
125
117
|
disconnectedCallback(): void;
|
|
126
|
-
|
|
127
|
-
* @param queueDataProvider
|
|
128
|
-
* @param itemFinder
|
|
129
|
-
* @param itemMutator
|
|
130
|
-
*
|
|
131
|
-
* @return bool|undefined True if item found, false otherwise, undefined if result is not a list
|
|
132
|
-
*/
|
|
133
|
-
queryQueueListItem(queueDataProvider: string, itemFinder: (listItem: ListItem) => boolean, itemMutator: (listItem: ListItem) => void): boolean | undefined;
|
|
118
|
+
queryQueueListItem(queueDataProvider: string, itemFinder: (listItem: ListItem) => boolean, itemMutator: (listItem: ListItem) => void): void;
|
|
134
119
|
setSelectionRange(start: number, end: number): void;
|
|
135
120
|
handleHide(): void;
|
|
136
121
|
render(): import("lit-html").TemplateResult<1>;
|