@supersoniks/concorde 2.0.2 → 2.0.4
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 +1 -0
- package/concorde-core.bundle.js +748 -690
- package/concorde-core.es.js +3903 -3123
- package/core/_types/types.d.ts +2 -4
- package/core/components/functional/date/date.d.ts +4 -2
- package/core/components/functional/date/date.js +28 -13
- package/core/components/functional/fetch/fetch.d.ts +9 -10
- package/core/components/functional/fetch/fetch.js +21 -5
- package/core/components/functional/list/list.d.ts +7 -10
- package/core/components/functional/list/list.js +19 -4
- package/core/components/functional/queue/queue.d.ts +3 -2
- package/core/components/functional/queue/queue.js +71 -61
- package/core/components/functional/router/router.d.ts +1 -0
- package/core/components/functional/router/router.js +14 -3
- package/core/components/functional/sdui/sdui.d.ts +2 -7
- package/core/components/functional/submit/submit.js +11 -4
- package/core/components/ui/_css/scroll.js +13 -11
- package/core/components/ui/_css/size.js +1 -1
- package/core/components/ui/alert/alert.d.ts +14 -3
- package/core/components/ui/alert/alert.js +34 -4
- package/core/components/ui/badge/badge.js +10 -3
- package/core/components/ui/button/button.d.ts +19 -10
- package/core/components/ui/button/button.js +77 -22
- package/core/components/ui/captcha/captcha.d.ts +5 -4
- package/core/components/ui/captcha/captcha.js +33 -9
- package/core/components/ui/divider/divider.d.ts +2 -0
- package/core/components/ui/divider/divider.js +17 -2
- package/core/components/ui/form/checkbox/checkbox.d.ts +24 -9
- package/core/components/ui/form/checkbox/checkbox.js +4 -6
- package/core/components/ui/form/css/form-control.js +40 -7
- package/core/components/ui/form/fieldset/fieldset.d.ts +1 -0
- package/core/components/ui/form/fieldset/fieldset.js +14 -1
- package/core/components/ui/form/fieldset/legend-description.js +3 -3
- package/core/components/ui/form/fieldset/legend.js +2 -8
- package/core/components/ui/form/input/input.d.ts +4 -5
- package/core/components/ui/form/input/input.js +17 -13
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +3 -5
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +9 -9
- package/core/components/ui/form/select/select.d.ts +4 -1
- package/core/components/ui/form/select/select.js +25 -18
- package/core/components/ui/form/textarea/textarea.d.ts +4 -5
- package/core/components/ui/form/textarea/textarea.js +19 -10
- package/core/components/ui/group/group.js +3 -3
- package/core/components/ui/icon/icon.js +2 -1
- package/core/components/ui/icon/icons.d.ts +0 -4
- package/core/components/ui/icon/icons.js +3 -16
- package/core/components/ui/link/link.d.ts +5 -2
- package/core/components/ui/link/link.js +31 -2
- package/core/components/ui/loader/loader.d.ts +4 -1
- package/core/components/ui/loader/loader.js +11 -3
- package/core/components/ui/loader/styles/inline.js +14 -16
- package/core/components/ui/menu/menu-item.js +2 -1
- package/core/components/ui/menu/menu.js +6 -22
- package/core/components/ui/modal/modal-close.js +2 -1
- package/core/components/ui/modal/modal.d.ts +13 -1
- package/core/components/ui/modal/modal.js +70 -10
- package/core/components/ui/pop/pop.d.ts +9 -3
- package/core/components/ui/pop/pop.js +46 -23
- package/core/components/ui/table/table-tr.d.ts +10 -2
- package/core/components/ui/table/table-tr.js +30 -2
- package/core/components/ui/table/table.d.ts +1 -0
- package/core/components/ui/table/table.js +7 -1
- package/core/components/ui/theme/theme-collection/core-variables.js +8 -19
- package/core/components/ui/theme/theme.d.ts +6 -0
- package/core/components/ui/theme/theme.js +11 -13
- package/core/components/ui/toast/message-subscriber.d.ts +0 -8
- package/core/components/ui/toast/message-subscriber.js +0 -46
- package/core/components/ui/toast/toast-item.js +31 -40
- package/core/components/ui/toast/toast.d.ts +5 -1
- package/core/components/ui/toast/toast.js +80 -13
- package/core/components/ui/tooltip/tooltip.d.ts +3 -1
- package/core/components/ui/tooltip/tooltip.js +22 -0
- package/core/core.d.ts +1 -0
- package/core/core.js +1 -0
- package/core/decorators/Subscriber.d.ts +3 -3
- package/core/decorators/Subscriber.js +66 -23
- package/core/directives/DataProvider.d.ts +12 -7
- package/core/directives/DataProvider.js +23 -8
- package/core/directives/Wording.d.ts +42 -0
- package/core/directives/Wording.js +202 -0
- package/core/mixins/Fetcher.d.ts +8 -11
- package/core/mixins/Fetcher.js +38 -22
- package/core/mixins/FormCheckable.d.ts +1 -4
- package/core/mixins/FormElement.d.ts +1 -0
- package/core/mixins/FormElement.js +3 -6
- package/core/mixins/FormInput.d.ts +3 -5
- package/core/mixins/FormInput.js +4 -0
- package/core/mixins/Subscriber.d.ts +0 -4
- package/core/mixins/Subscriber.js +13 -89
- package/core/mixins/TemplatesContainer.js +9 -0
- package/core/utils/Format.d.ts +1 -0
- package/core/utils/Format.js +16 -0
- package/core/utils/HTML.d.ts +13 -0
- package/core/utils/HTML.js +42 -3
- package/core/utils/Objects.d.ts +1 -0
- package/core/utils/Objects.js +5 -0
- package/core/utils/PublisherProxy.d.ts +16 -10
- package/core/utils/PublisherProxy.js +112 -74
- package/core/utils/Utils.d.ts +1 -0
- package/core/utils/Utils.js +5 -0
- package/core/utils/api.d.ts +26 -0
- package/core/utils/api.js +135 -3
- package/core/utils/url-pattern.d.ts +2 -0
- package/core/utils/url-pattern.js +2 -0
- package/mixins.d.ts +6 -16
- package/package.json +9 -2
package/mixins.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface<PropsType>, PropsType extends
|
|
2
|
+
export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface<PropsType>, PropsType extends unknown = unknown>(superClass: T, propsType?: PropsType | undefined) => {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
api: import("./core/utils/api").default | null;
|
|
5
5
|
key: string;
|
|
6
6
|
isFirstLoad: boolean;
|
|
7
7
|
isLoading: boolean;
|
|
8
8
|
lazyLoad?: boolean | undefined;
|
|
9
|
-
noLoader?: boolean | undefined;
|
|
10
9
|
iObserver: IntersectionObserver | null;
|
|
11
|
-
isDefaultLoaderEnabled: boolean;
|
|
12
10
|
isFetchEnabled: boolean;
|
|
11
|
+
fetchedData: any;
|
|
13
12
|
_endPoint: string;
|
|
14
13
|
props: (PropsType & import("./core/utils/api").ResultTypeInterface) | null;
|
|
15
14
|
endPoint: string;
|
|
@@ -48,10 +47,6 @@ export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.Su
|
|
|
48
47
|
getAttribute(name: string): string;
|
|
49
48
|
hasAttribute(attributeName: string): boolean;
|
|
50
49
|
getBoundingClientRect(): DOMRect;
|
|
51
|
-
onConnected(callback: (component: any) => void): void;
|
|
52
|
-
offConnected(callback: (component: any) => void): void;
|
|
53
|
-
onDisconnected(callback: (component: any) => void): void;
|
|
54
|
-
offDisconnected(callback: (component: any) => void): void;
|
|
55
50
|
};
|
|
56
51
|
} & T;
|
|
57
52
|
export declare const FormCheckable: <T extends new (...args: any[]) => myFormElement.FormElementInterface>(superClass: T) => {
|
|
@@ -78,6 +73,7 @@ export declare const FormCheckable: <T extends new (...args: any[]) => myFormEle
|
|
|
78
73
|
getFormPublisher(): any;
|
|
79
74
|
updateDataValue(): void;
|
|
80
75
|
handleBlur(e?: Event | undefined): void;
|
|
76
|
+
setValueFromPublisher(value: string | object | string[] | null | undefined): void;
|
|
81
77
|
focus?: (() => void) | undefined;
|
|
82
78
|
shadowRoot?: ShadowRoot | undefined;
|
|
83
79
|
error: boolean;
|
|
@@ -114,10 +110,6 @@ export declare const FormCheckable: <T extends new (...args: any[]) => myFormEle
|
|
|
114
110
|
getAttribute(name: string): string;
|
|
115
111
|
hasAttribute(attributeName: string): boolean;
|
|
116
112
|
getBoundingClientRect(): DOMRect;
|
|
117
|
-
onConnected(callback: (component: any) => void): void;
|
|
118
|
-
offConnected(callback: (component: any) => void): void;
|
|
119
|
-
onDisconnected(callback: (component: any) => void): void;
|
|
120
|
-
offDisconnected(callback: (component: any) => void): void;
|
|
121
113
|
};
|
|
122
114
|
} & T;
|
|
123
115
|
import * as myFormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
@@ -132,13 +124,15 @@ export declare const FormInput: <T extends new (...args: any[]) => myFormElement
|
|
|
132
124
|
description: string | undefined;
|
|
133
125
|
_label?: string | undefined;
|
|
134
126
|
label: string | undefined;
|
|
127
|
+
status: "error" | "default" | "success" | "warning" | "info";
|
|
135
128
|
tabindex?: number | undefined;
|
|
136
|
-
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;
|
|
129
|
+
autocomplete?: "url" | "name" | "off" | "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;
|
|
137
130
|
getFormPublisher(): any;
|
|
138
131
|
updateDataValue(): void;
|
|
139
132
|
handleChange(e?: Event | undefined): void;
|
|
140
133
|
handleBlur(e?: Event | undefined): void;
|
|
141
134
|
getValueForFormPublisher(): string | object | string[] | null | undefined;
|
|
135
|
+
setValueFromPublisher(value: string | object | string[] | null | undefined): void;
|
|
142
136
|
focus?: (() => void) | undefined;
|
|
143
137
|
shadowRoot?: ShadowRoot | undefined;
|
|
144
138
|
error: boolean;
|
|
@@ -179,10 +173,6 @@ export declare const FormInput: <T extends new (...args: any[]) => myFormElement
|
|
|
179
173
|
hasAttribute(attributeName: string): boolean;
|
|
180
174
|
disconnectedCallback(): void;
|
|
181
175
|
getBoundingClientRect(): DOMRect;
|
|
182
|
-
onConnected(callback: (component: any) => void): void;
|
|
183
|
-
offConnected(callback: (component: any) => void): void;
|
|
184
|
-
onDisconnected(callback: (component: any) => void): void;
|
|
185
|
-
offDisconnected(callback: (component: any) => void): void;
|
|
186
176
|
};
|
|
187
177
|
} & T;
|
|
188
178
|
import * as mySubscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"customElements": "custom-elements.json",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@lit-labs/motion": "^1.0.1",
|
|
11
11
|
"@lit-labs/observers": "^2.0.1",
|
|
12
|
+
"@lit/context": "^1.1.0",
|
|
12
13
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
13
14
|
"@types/prismjs": "^1.26.0",
|
|
14
15
|
"chart.js": "^3.9.1",
|
|
@@ -17,10 +18,12 @@
|
|
|
17
18
|
"jsbarcode": "^3.11.5",
|
|
18
19
|
"lit": "^3.0.0",
|
|
19
20
|
"marked": "^9.1.2",
|
|
21
|
+
"marked-gfm-heading-id": "^3.1.2",
|
|
20
22
|
"prettier": "^3.0.3",
|
|
21
23
|
"prismjs": "^1.29.0",
|
|
22
24
|
"typescript": "^5.2.2",
|
|
23
|
-
"url-pattern": "^1.0.3"
|
|
25
|
+
"url-pattern": "^1.0.3",
|
|
26
|
+
"vanilla-calendar-pro": "2.9.6"
|
|
24
27
|
},
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@tailwindcss/typography": "^0.5.2",
|
|
@@ -49,6 +52,7 @@
|
|
|
49
52
|
},
|
|
50
53
|
"exports": {
|
|
51
54
|
"./components": "./components.js",
|
|
55
|
+
"./concorde-loaded": "./concorde-loaded.js",
|
|
52
56
|
"./core/_types/types": "./core/_types/types.js",
|
|
53
57
|
"./core/components/functional/date/date": "./core/components/functional/date/date.js",
|
|
54
58
|
"./functional/date": "./core/components/functional/date/date.js",
|
|
@@ -226,6 +230,7 @@
|
|
|
226
230
|
"./core": "./core/core.js",
|
|
227
231
|
"./core/decorators/Subscriber": "./core/decorators/Subscriber.js",
|
|
228
232
|
"./core/directives/DataProvider": "./core/directives/DataProvider.js",
|
|
233
|
+
"./core/directives/Wording": "./core/directives/Wording.js",
|
|
229
234
|
"./core/mixins/Fetcher": "./core/mixins/Fetcher.js",
|
|
230
235
|
"./mixins/Fetcher": "./core/mixins/Fetcher.js",
|
|
231
236
|
"./core/mixins/FormCheckable": "./core/mixins/FormCheckable.js",
|
|
@@ -260,6 +265,8 @@
|
|
|
260
265
|
"./utils/Utils": "./core/utils/Utils.js",
|
|
261
266
|
"./core/utils/api": "./core/utils/api.js",
|
|
262
267
|
"./utils/api": "./core/utils/api.js",
|
|
268
|
+
"./core/utils/url-pattern": "./core/utils/url-pattern.js",
|
|
269
|
+
"./utils/url-pattern": "./core/utils/url-pattern.js",
|
|
263
270
|
"./docs/code": "./docs/code.js",
|
|
264
271
|
"./docs/docs": "./docs/docs.js",
|
|
265
272
|
"./docs": "./docs.js",
|