@italia/checkbox 1.0.0-alpha.10
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/AUTHORS +3 -0
- package/LICENSE +11 -0
- package/README.md +75 -0
- package/custom-elements.json +1362 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +12 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/it-checkbox-base.d.ts +36 -0
- package/dist/src/it-checkbox-base.d.ts.map +1 -0
- package/dist/src/it-checkbox-base.js +1237 -0
- package/dist/src/it-checkbox-base.js.map +1 -0
- package/dist/src/it-checkbox-group-base.d.ts +49 -0
- package/dist/src/it-checkbox-group-base.d.ts.map +1 -0
- package/dist/src/it-checkbox-group-base.js +1212 -0
- package/dist/src/it-checkbox-group-base.js.map +1 -0
- package/dist/src/it-checkbox-group.d.ts +12 -0
- package/dist/src/it-checkbox-group.d.ts.map +1 -0
- package/dist/src/it-checkbox-group.js +19 -0
- package/dist/src/it-checkbox-group.js.map +1 -0
- package/dist/src/it-checkbox.d.ts +12 -0
- package/dist/src/it-checkbox.d.ts.map +1 -0
- package/dist/src/it-checkbox.js +20 -0
- package/dist/src/it-checkbox.js.map +1 -0
- package/package.json +71 -0
- package/styles/globals.scss +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ItCheckbox } from './it-checkbox.js';
|
|
2
|
+
export { ItCheckboxGroup } from './it-checkbox-group.js';
|
|
3
|
+
import './it-checkbox-base.js';
|
|
4
|
+
import '../index-DcXjclVS.js';
|
|
5
|
+
import 'lit/directive.js';
|
|
6
|
+
import 'lit';
|
|
7
|
+
import 'lit/decorators.js';
|
|
8
|
+
import 'lit/directives/if-defined.js';
|
|
9
|
+
import 'lit/directives/when.js';
|
|
10
|
+
import 'lit/directives/live.js';
|
|
11
|
+
import './it-checkbox-group-base.js';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { FormControl, FormControlController } from '@italia/globals';
|
|
2
|
+
export declare class ItCheckboxBase extends FormControl {
|
|
3
|
+
static styles: import("lit").CSSResultGroup;
|
|
4
|
+
protected readonly formControlController: FormControlController;
|
|
5
|
+
/**
|
|
6
|
+
* The type of input. Works the same as a native `<input>` element, but only a subset of types are supported. Defaults
|
|
7
|
+
* to `text`.
|
|
8
|
+
*/
|
|
9
|
+
type: string;
|
|
10
|
+
/** Draws the checkbox in a checked state. */
|
|
11
|
+
checked: boolean;
|
|
12
|
+
/** Draws checkboxes inline, side by side. */
|
|
13
|
+
inline: boolean;
|
|
14
|
+
/** Draws checkboxes in groups. */
|
|
15
|
+
group: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Draws the checkbox in an indeterminate state. This is usually applied to checkboxes that represents a "select
|
|
18
|
+
* all/none" behavior when associated checkboxes have a mix of checked and unchecked states.
|
|
19
|
+
*/
|
|
20
|
+
indeterminate: boolean;
|
|
21
|
+
labelElements: HTMLElement[];
|
|
22
|
+
get label(): string;
|
|
23
|
+
/** The input's help text. */
|
|
24
|
+
supportText: string;
|
|
25
|
+
/** Simulates a click on the checkbox. */
|
|
26
|
+
click(): void;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
29
|
+
protected _handleClick(e: Event): void;
|
|
30
|
+
protected _renderInput(supportTextId: string, invalid: boolean, validityMessage: string): import("lit").TemplateResult<1>;
|
|
31
|
+
protected getWrapperClasses(): string;
|
|
32
|
+
protected getSupportTextRender(supportTextId: string): import("lit").TemplateResult<1>;
|
|
33
|
+
protected getValidityMessageRender(validityMessage: string): import("lit").TemplateResult<1>;
|
|
34
|
+
render(): import("lit").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=it-checkbox-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it-checkbox-base.d.ts","sourceRoot":"","sources":["../../src/it-checkbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAWpF,qBAAa,cAAe,SAAQ,WAAW;IAC7C,MAAM,CAAC,MAAM,+BAAU;IAEvB,SAAS,CAAC,QAAQ,CAAC,qBAAqB,EAAE,qBAAqB,CAO5D;IAEH;;;OAGG;IACH,IAAI,SAAc;IAElB,6CAA6C;IAE7C,OAAO,UAAS;IAEhB,6CAA6C;IAE7C,MAAM,UAAS;IAEf,kCAAkC;IAElC,KAAK,UAAS;IAEd;;;OAGG;IACyC,aAAa,UAAS;IAGlE,aAAa,EAAG,WAAW,EAAE,CAAC;IAE9B,IAAI,KAAK,IAAI,MAAM,CAKlB;IAED,6BAA6B;IAE7B,WAAW,SAAM;IAEjB,yCAAyC;IACzC,KAAK;IAII,iBAAiB;IAOjB,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC;cAWvD,YAAY,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI;IAS/C,SAAS,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM;IA2CvF,SAAS,CAAC,iBAAiB;IAQ3B,SAAS,CAAC,oBAAoB,CAAC,aAAa,EAAE,MAAM;IAOpD,SAAS,CAAC,wBAAwB,CAAC,eAAe,EAAE,MAAM;IAYjD,MAAM;CA2BhB"}
|