@jumpgroup/jump-design-system 0.3.58 → 0.3.63
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/dist/cjs/chunk.H33C3MRM-31110702.js +365 -0
- package/dist/cjs/chunk.H33C3MRM-31110702.js.map +1 -0
- package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js +238 -0
- package/dist/cjs/chunk.WLV3FVBR-bfad29d7.js.map +1 -0
- package/dist/cjs/{class-map-b27ebf69.js → class-map-010ed95d.js} +3 -3
- package/dist/cjs/{class-map-b27ebf69.js.map → class-map-010ed95d.js.map} +1 -1
- package/dist/cjs/{chunk.H33C3MRM-2c09acb5.js → directive-helpers-b6926fa1.js} +2 -360
- package/dist/cjs/directive-helpers-b6926fa1.js.map +1 -0
- package/dist/cjs/if-defined-da1385f1.js +432 -0
- package/dist/cjs/if-defined-da1385f1.js.map +1 -0
- package/dist/cjs/{index-e91b2b41.js → index-864e40de.js} +5 -2
- package/dist/cjs/index-864e40de.js.map +1 -0
- package/dist/cjs/jump-accordion-group.cjs.entry.js +1 -1
- package/dist/cjs/jump-accordion.cjs.entry.js +32 -255
- package/dist/cjs/jump-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-badge.cjs.entry.js +1 -1
- package/dist/cjs/jump-button_2.cjs.entry.js +3 -2
- package/dist/cjs/jump-button_2.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-card-ecommerce-option.cjs.entry.js +1 -1
- package/dist/cjs/jump-card-ecommerce.cjs.entry.js +1 -1
- package/dist/cjs/jump-card.cjs.entry.js +1 -1
- package/dist/cjs/jump-design-system.cjs.js +2 -2
- package/dist/cjs/jump-filter-checkbox.cjs.entry.js +46 -470
- package/dist/cjs/jump-filter-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-filter-select.cjs.entry.js +4229 -0
- package/dist/cjs/jump-filter-select.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filter-switch.cjs.entry.js +440 -0
- package/dist/cjs/jump-filter-switch.cjs.entry.js.map +1 -0
- package/dist/cjs/jump-filter.cjs.entry.js +1 -1
- package/dist/cjs/jump-filtergroup.cjs.entry.js +4 -4
- package/dist/cjs/jump-navbar.cjs.entry.js +6 -6
- package/dist/cjs/jump-pagination-table.cjs.entry.js +4 -4
- package/dist/cjs/jump-pagination.cjs.entry.js +4 -4
- package/dist/cjs/jump-quantity.cjs.entry.js +10 -4
- package/dist/cjs/jump-quantity.cjs.entry.js.map +1 -1
- package/dist/cjs/jump-search-bar-dropdown-item.cjs.entry.js +2 -2
- package/dist/cjs/jump-search-bar-mobile.cjs.entry.js +5 -5
- package/dist/cjs/jump-search-bar.cjs.entry.js +1 -1
- package/dist/cjs/jump-tab-item.cjs.entry.js +3 -3
- package/dist/cjs/jump-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/jump-tab.cjs.entry.js +2 -2
- package/dist/cjs/live-a9a3fb36.js +14 -0
- package/dist/cjs/live-a9a3fb36.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js +0 -5
- package/dist/collection/components/jump-filter-checkbox/jump-filter-checkbox.stories.js.map +1 -1
- package/dist/collection/components/jump-filter-select/jump-filter-select.css +578 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.js +373 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.js.map +1 -0
- package/dist/collection/components/jump-filter-select/jump-filter-select.stories.js +211 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.css +536 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js +175 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.js.map +1 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js +68 -0
- package/dist/collection/components/jump-filter-switch/jump-filter-switch.stories.js.map +1 -0
- package/dist/collection/components/jump-filtergroup/jump-filtergroup.js +3 -3
- package/dist/collection/components/jump-navbar/jump-navbar.js +5 -5
- package/dist/collection/components/jump-pagination/jump-pagination.js +3 -3
- package/dist/collection/components/jump-pagination-table/jump-pagination-table.js +3 -3
- package/dist/collection/components/jump-quantity/jump-quantity.js +30 -3
- package/dist/collection/components/jump-quantity/jump-quantity.js.map +1 -1
- package/dist/collection/components/jump-search-bar-dropdown-item/jump-search-bar-dropdown-item.js +1 -1
- package/dist/collection/components/jump-search-bar-mobile/jump-search-bar-mobile.js +4 -4
- package/dist/collection/components/jump-tab/jump-tab.js +1 -1
- package/dist/collection/components/jump-tab-item/jump-tab-item.js +2 -2
- package/dist/collection/components/jump-tab-panel/jump-tab-panel.js +1 -1
- package/dist/components/chunk.H33C3MRM.js +3 -170
- package/dist/components/chunk.H33C3MRM.js.map +1 -1
- package/dist/components/chunk.WLV3FVBR.js +230 -0
- package/dist/components/chunk.WLV3FVBR.js.map +1 -0
- package/dist/components/class-map.js +1 -1
- package/dist/{esm/chunk.H33C3MRM-632f8755.js → components/directive-helpers.js} +2 -359
- package/dist/components/directive-helpers.js.map +1 -0
- package/dist/components/if-defined.js +426 -0
- package/dist/components/if-defined.js.map +1 -0
- package/dist/components/jump-accordion.js +3 -226
- package/dist/components/jump-accordion.js.map +1 -1
- package/dist/components/jump-filter-checkbox.js +8 -432
- package/dist/components/jump-filter-checkbox.js.map +1 -1
- package/dist/components/jump-filter-select.d.ts +11 -0
- package/dist/components/jump-filter-select.js +4257 -0
- package/dist/components/jump-filter-select.js.map +1 -0
- package/dist/components/jump-filter-switch.d.ts +11 -0
- package/dist/components/jump-filter-switch.js +460 -0
- package/dist/components/jump-filter-switch.js.map +1 -0
- package/dist/components/jump-filtergroup.js +3 -3
- package/dist/components/jump-icon2.js +1 -0
- package/dist/components/jump-icon2.js.map +1 -1
- package/dist/components/jump-navbar.js +5 -5
- package/dist/components/jump-pagination-table.js +3 -3
- package/dist/components/jump-pagination.js +3 -3
- package/dist/components/jump-quantity.js +10 -3
- package/dist/components/jump-quantity.js.map +1 -1
- package/dist/components/jump-search-bar-dropdown-item.js +1 -1
- package/dist/components/jump-search-bar-mobile.js +4 -4
- package/dist/components/jump-tab-item.js +2 -2
- package/dist/components/jump-tab-panel.js +1 -1
- package/dist/components/jump-tab.js +1 -1
- package/dist/components/live.js +12 -0
- package/dist/components/live.js.map +1 -0
- package/dist/esm/chunk.H33C3MRM-7dcbd943.js +362 -0
- package/dist/esm/chunk.H33C3MRM-7dcbd943.js.map +1 -0
- package/dist/esm/chunk.WLV3FVBR-ded9a646.js +230 -0
- package/dist/esm/chunk.WLV3FVBR-ded9a646.js.map +1 -0
- package/dist/esm/{class-map-3150cdfe.js → class-map-a2676e27.js} +2 -2
- package/dist/esm/{class-map-3150cdfe.js.map → class-map-a2676e27.js.map} +1 -1
- package/dist/esm/directive-helpers-d80c2187.js +172 -0
- package/dist/esm/directive-helpers-d80c2187.js.map +1 -0
- package/dist/esm/if-defined-85ab7b97.js +426 -0
- package/dist/esm/if-defined-85ab7b97.js.map +1 -0
- package/dist/esm/{index-9a1da0f0.js → index-7eb565cd.js} +5 -2
- package/dist/esm/index-7eb565cd.js.map +1 -0
- package/dist/esm/jump-accordion-group.entry.js +1 -1
- package/dist/esm/jump-accordion.entry.js +5 -228
- package/dist/esm/jump-accordion.entry.js.map +1 -1
- package/dist/esm/jump-badge.entry.js +1 -1
- package/dist/esm/jump-button_2.entry.js +3 -2
- package/dist/esm/jump-button_2.entry.js.map +1 -1
- package/dist/esm/jump-card-ecommerce-option.entry.js +1 -1
- package/dist/esm/jump-card-ecommerce.entry.js +1 -1
- package/dist/esm/jump-card.entry.js +1 -1
- package/dist/esm/jump-design-system.js +3 -3
- package/dist/esm/jump-filter-checkbox.entry.js +9 -433
- package/dist/esm/jump-filter-checkbox.entry.js.map +1 -1
- package/dist/esm/jump-filter-select.entry.js +4225 -0
- package/dist/esm/jump-filter-select.entry.js.map +1 -0
- package/dist/esm/jump-filter-switch.entry.js +436 -0
- package/dist/esm/jump-filter-switch.entry.js.map +1 -0
- package/dist/esm/jump-filter.entry.js +1 -1
- package/dist/esm/jump-filtergroup.entry.js +4 -4
- package/dist/esm/jump-navbar.entry.js +6 -6
- package/dist/esm/jump-pagination-table.entry.js +4 -4
- package/dist/esm/jump-pagination.entry.js +4 -4
- package/dist/esm/jump-quantity.entry.js +10 -4
- package/dist/esm/jump-quantity.entry.js.map +1 -1
- package/dist/esm/jump-search-bar-dropdown-item.entry.js +2 -2
- package/dist/esm/jump-search-bar-mobile.entry.js +5 -5
- package/dist/esm/jump-search-bar.entry.js +1 -1
- package/dist/esm/jump-tab-item.entry.js +3 -3
- package/dist/esm/jump-tab-panel.entry.js +2 -2
- package/dist/esm/jump-tab.entry.js +2 -2
- package/dist/esm/live-253d6806.js +12 -0
- package/dist/esm/live-253d6806.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/jump-design-system/jump-design-system.esm.js +1 -1
- package/dist/jump-design-system/jump-design-system.esm.js.map +1 -1
- package/dist/jump-design-system/p-0cbcc5b3.entry.js +2 -0
- package/dist/jump-design-system/p-1b31e36f.js +17 -0
- package/dist/jump-design-system/p-1b31e36f.js.map +1 -0
- package/dist/jump-design-system/{p-2e2bd8a9.entry.js → p-201c09dd.entry.js} +2 -2
- package/dist/jump-design-system/p-35633b03.entry.js +848 -0
- package/dist/jump-design-system/p-35633b03.entry.js.map +1 -0
- package/dist/jump-design-system/p-39b82674.entry.js +2 -0
- package/dist/jump-design-system/{p-feb825e0.entry.js → p-3b4127b0.entry.js} +2 -2
- package/dist/jump-design-system/{p-6b1ab8c3.entry.js → p-3e31b638.entry.js} +2 -2
- package/dist/jump-design-system/p-53bf2958.entry.js +213 -0
- package/dist/jump-design-system/p-53bf2958.entry.js.map +1 -0
- package/dist/jump-design-system/p-67339850.js +63 -0
- package/dist/jump-design-system/p-67339850.js.map +1 -0
- package/dist/jump-design-system/{p-f7c323d2.entry.js → p-7dd5052b.entry.js} +2 -2
- package/dist/jump-design-system/p-8d1d2af9.entry.js +117 -0
- package/dist/jump-design-system/p-8d1d2af9.entry.js.map +1 -0
- package/dist/jump-design-system/p-8e0419b1.entry.js +2 -0
- package/dist/jump-design-system/{p-6dc529fc.entry.js → p-90c51b48.entry.js} +2 -2
- package/dist/jump-design-system/p-926c7bf0.entry.js +2 -0
- package/dist/jump-design-system/p-94229ed5.js +7 -0
- package/dist/jump-design-system/p-94229ed5.js.map +1 -0
- package/dist/jump-design-system/{p-02e863db.entry.js → p-94790673.entry.js} +2 -2
- package/dist/jump-design-system/{p-466e0ade.entry.js → p-947d7f9a.entry.js} +2 -2
- package/dist/jump-design-system/p-95a1bbc5.js +51 -0
- package/dist/jump-design-system/p-95a1bbc5.js.map +1 -0
- package/dist/jump-design-system/p-98ef4924.entry.js +2 -0
- package/dist/jump-design-system/{p-3f6d50d5.entry.js.map → p-98ef4924.entry.js.map} +1 -1
- package/dist/jump-design-system/{p-198cfe62.js → p-9d21c18a.js} +2 -2
- package/dist/jump-design-system/p-a05d9480.entry.js +178 -0
- package/dist/jump-design-system/p-a05d9480.entry.js.map +1 -0
- package/dist/jump-design-system/{p-a9b78af2.entry.js → p-ad550de6.entry.js} +2 -2
- package/dist/jump-design-system/{p-1aa5fb8a.entry.js → p-d3b62e9b.entry.js} +2 -2
- package/dist/jump-design-system/{p-bdafe87d.entry.js → p-d8bfd21c.entry.js} +2 -2
- package/dist/jump-design-system/{p-a1c25113.entry.js → p-d94fabc1.entry.js} +2 -2
- package/dist/jump-design-system/p-e516e812.js +3 -0
- package/dist/jump-design-system/p-e516e812.js.map +1 -0
- package/dist/jump-design-system/p-f2d287d6.js +2 -0
- package/dist/jump-design-system/p-f2d287d6.js.map +1 -0
- package/dist/jump-design-system/p-fa0dcb05.entry.js +2 -0
- package/dist/jump-design-system/p-fa0dcb05.entry.js.map +1 -0
- package/dist/jump-design-system/{p-07633158.entry.js → p-ff8d70ab.entry.js} +2 -2
- package/dist/jump-design-system-elements.json +66 -0
- package/dist/types/components/jump-filter-checkbox/jump-filter-checkbox.stories.d.ts +0 -5
- package/dist/types/components/jump-filter-select/jump-filter-select.d.ts +76 -0
- package/dist/types/components/jump-filter-switch/jump-filter-switch.d.ts +35 -0
- package/dist/types/components/jump-filter-switch/jump-filter-switch.stories.d.ts +24 -0
- package/dist/types/components/jump-quantity/jump-quantity.d.ts +4 -0
- package/dist/types/components.d.ts +210 -0
- package/package.json +1 -1
- package/readme.md +1 -9
- package/dist/cjs/chunk.H33C3MRM-2c09acb5.js.map +0 -1
- package/dist/cjs/index-e91b2b41.js.map +0 -1
- package/dist/esm/chunk.H33C3MRM-632f8755.js.map +0 -1
- package/dist/esm/index-9a1da0f0.js.map +0 -1
- package/dist/jump-design-system/p-21aa0095.js +0 -3
- package/dist/jump-design-system/p-21aa0095.js.map +0 -1
- package/dist/jump-design-system/p-3f6d50d5.entry.js +0 -2
- package/dist/jump-design-system/p-506950ea.entry.js +0 -2
- package/dist/jump-design-system/p-506950ea.entry.js.map +0 -1
- package/dist/jump-design-system/p-6e7c80a3.entry.js +0 -244
- package/dist/jump-design-system/p-6e7c80a3.entry.js.map +0 -1
- package/dist/jump-design-system/p-842fff70.entry.js +0 -117
- package/dist/jump-design-system/p-842fff70.entry.js.map +0 -1
- package/dist/jump-design-system/p-8f581228.entry.js +0 -2
- package/dist/jump-design-system/p-a826c477.entry.js +0 -2
- package/dist/jump-design-system/p-b03c5b24.entry.js +0 -2
- package/dist/jump-design-system/p-c77d216c.entry.js +0 -2
- package/dist/jump-design-system/p-d33f4f1d.js +0 -66
- package/dist/jump-design-system/p-d33f4f1d.js.map +0 -1
- /package/dist/jump-design-system/{p-b03c5b24.entry.js.map → p-0cbcc5b3.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-2e2bd8a9.entry.js.map → p-201c09dd.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-8f581228.entry.js.map → p-39b82674.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-feb825e0.entry.js.map → p-3b4127b0.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-6b1ab8c3.entry.js.map → p-3e31b638.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-f7c323d2.entry.js.map → p-7dd5052b.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-c77d216c.entry.js.map → p-8e0419b1.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-6dc529fc.entry.js.map → p-90c51b48.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-a826c477.entry.js.map → p-926c7bf0.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-02e863db.entry.js.map → p-94790673.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-466e0ade.entry.js.map → p-947d7f9a.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-198cfe62.js.map → p-9d21c18a.js.map} +0 -0
- /package/dist/jump-design-system/{p-a9b78af2.entry.js.map → p-ad550de6.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-1aa5fb8a.entry.js.map → p-d3b62e9b.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-bdafe87d.entry.js.map → p-d8bfd21c.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-a1c25113.entry.js.map → p-d94fabc1.entry.js.map} +0 -0
- /package/dist/jump-design-system/{p-07633158.entry.js.map → p-ff8d70ab.entry.js.map} +0 -0
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const index = require('./index-864e40de.js');
|
|
6
|
+
const directiveHelpers = require('./directive-helpers-b6926fa1.js');
|
|
7
|
+
const ifDefined = require('./if-defined-da1385f1.js');
|
|
8
|
+
const chunk_H33C3MRM = require('./chunk.H33C3MRM-31110702.js');
|
|
9
|
+
const classMap = require('./class-map-010ed95d.js');
|
|
10
|
+
const live = require('./live-a9a3fb36.js');
|
|
8
11
|
|
|
9
12
|
// src/components/checkbox/checkbox.styles.ts
|
|
10
|
-
var checkbox_styles_default =
|
|
13
|
+
var checkbox_styles_default = directiveHelpers.i`
|
|
11
14
|
:host {
|
|
12
15
|
display: inline-block;
|
|
13
16
|
}
|
|
@@ -127,442 +130,15 @@ var checkbox_styles_default = chunk_H33C3MRM.i`
|
|
|
127
130
|
}
|
|
128
131
|
`;
|
|
129
132
|
|
|
130
|
-
|
|
131
|
-
var defaultValue = (propertyName = "value") => (proto, key) => {
|
|
132
|
-
const ctor = proto.constructor;
|
|
133
|
-
const attributeChangedCallback = ctor.prototype.attributeChangedCallback;
|
|
134
|
-
ctor.prototype.attributeChangedCallback = function(name, old, value) {
|
|
135
|
-
var _a;
|
|
136
|
-
const options = ctor.getPropertyOptions(propertyName);
|
|
137
|
-
const attributeName = typeof options.attribute === "string" ? options.attribute : propertyName;
|
|
138
|
-
if (name === attributeName) {
|
|
139
|
-
const converter = options.converter || chunk_H33C3MRM.u;
|
|
140
|
-
const fromAttribute = typeof converter === "function" ? converter : (_a = converter == null ? void 0 : converter.fromAttribute) != null ? _a : chunk_H33C3MRM.u.fromAttribute;
|
|
141
|
-
const newValue = fromAttribute(value, options.type);
|
|
142
|
-
if (this[propertyName] !== newValue) {
|
|
143
|
-
this[key] = newValue;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
attributeChangedCallback.call(this, name, old, value);
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// src/styles/form-control.styles.ts
|
|
151
|
-
var form_control_styles_default = chunk_H33C3MRM.i`
|
|
152
|
-
.form-control .form-control__label {
|
|
153
|
-
display: none;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.form-control .form-control__help-text {
|
|
157
|
-
display: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Label */
|
|
161
|
-
.form-control--has-label .form-control__label {
|
|
162
|
-
display: inline-block;
|
|
163
|
-
color: var(--sl-input-label-color);
|
|
164
|
-
margin-bottom: var(--sl-spacing-3x-small);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.form-control--has-label.form-control--small .form-control__label {
|
|
168
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.form-control--has-label.form-control--medium .form-control__label {
|
|
172
|
-
font-size: var(--sl-input-label-font-size-medium);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.form-control--has-label.form-control--large .form-control__label {
|
|
176
|
-
font-size: var(--sl-input-label-font-size-large);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:host([required]) .form-control--has-label .form-control__label::after {
|
|
180
|
-
content: var(--sl-input-required-content);
|
|
181
|
-
margin-inline-start: var(--sl-input-required-content-offset);
|
|
182
|
-
color: var(--sl-input-required-content-color);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/* Help text */
|
|
186
|
-
.form-control--has-help-text .form-control__help-text {
|
|
187
|
-
display: block;
|
|
188
|
-
color: var(--sl-input-help-text-color);
|
|
189
|
-
margin-top: var(--sl-spacing-3x-small);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.form-control--has-help-text.form-control--small .form-control__help-text {
|
|
193
|
-
font-size: var(--sl-input-help-text-font-size-small);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.form-control--has-help-text.form-control--medium .form-control__help-text {
|
|
197
|
-
font-size: var(--sl-input-help-text-font-size-medium);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
.form-control--has-help-text.form-control--large .form-control__help-text {
|
|
201
|
-
font-size: var(--sl-input-help-text-font-size-large);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.form-control--has-help-text.form-control--radio-group .form-control__help-text {
|
|
205
|
-
margin-top: var(--sl-spacing-2x-small);
|
|
206
|
-
}
|
|
207
|
-
`;
|
|
208
|
-
|
|
209
|
-
// src/internal/form.ts
|
|
210
|
-
var formCollections = /* @__PURE__ */ new WeakMap();
|
|
211
|
-
var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
212
|
-
var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
|
|
213
|
-
var userInteractedControls = /* @__PURE__ */ new WeakSet();
|
|
214
|
-
var interactions = /* @__PURE__ */ new WeakMap();
|
|
215
|
-
var FormControlController = class {
|
|
216
|
-
constructor(host, options) {
|
|
217
|
-
this.handleFormData = (event) => {
|
|
218
|
-
const disabled = this.options.disabled(this.host);
|
|
219
|
-
const name = this.options.name(this.host);
|
|
220
|
-
const value = this.options.value(this.host);
|
|
221
|
-
const isButton = this.host.tagName.toLowerCase() === "sl-button";
|
|
222
|
-
if (this.host.isConnected && !disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
223
|
-
if (Array.isArray(value)) {
|
|
224
|
-
value.forEach((val) => {
|
|
225
|
-
event.formData.append(name, val.toString());
|
|
226
|
-
});
|
|
227
|
-
} else {
|
|
228
|
-
event.formData.append(name, value.toString());
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
this.handleFormSubmit = (event) => {
|
|
233
|
-
var _a;
|
|
234
|
-
const disabled = this.options.disabled(this.host);
|
|
235
|
-
const reportValidity = this.options.reportValidity;
|
|
236
|
-
if (this.form && !this.form.noValidate) {
|
|
237
|
-
(_a = formCollections.get(this.form)) == null ? void 0 : _a.forEach((control) => {
|
|
238
|
-
this.setUserInteracted(control, true);
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
if (this.form && !this.form.noValidate && !disabled && !reportValidity(this.host)) {
|
|
242
|
-
event.preventDefault();
|
|
243
|
-
event.stopImmediatePropagation();
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
this.handleFormReset = () => {
|
|
247
|
-
this.options.setValue(this.host, this.options.defaultValue(this.host));
|
|
248
|
-
this.setUserInteracted(this.host, false);
|
|
249
|
-
interactions.set(this.host, []);
|
|
250
|
-
};
|
|
251
|
-
this.handleInteraction = (event) => {
|
|
252
|
-
const emittedEvents = interactions.get(this.host);
|
|
253
|
-
if (!emittedEvents.includes(event.type)) {
|
|
254
|
-
emittedEvents.push(event.type);
|
|
255
|
-
}
|
|
256
|
-
if (emittedEvents.length === this.options.assumeInteractionOn.length) {
|
|
257
|
-
this.setUserInteracted(this.host, true);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
this.checkFormValidity = () => {
|
|
261
|
-
if (this.form && !this.form.noValidate) {
|
|
262
|
-
const elements = this.form.querySelectorAll("*");
|
|
263
|
-
for (const element of elements) {
|
|
264
|
-
if (typeof element.checkValidity === "function") {
|
|
265
|
-
if (!element.checkValidity()) {
|
|
266
|
-
return false;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
return true;
|
|
272
|
-
};
|
|
273
|
-
this.reportFormValidity = () => {
|
|
274
|
-
if (this.form && !this.form.noValidate) {
|
|
275
|
-
const elements = this.form.querySelectorAll("*");
|
|
276
|
-
for (const element of elements) {
|
|
277
|
-
if (typeof element.reportValidity === "function") {
|
|
278
|
-
if (!element.reportValidity()) {
|
|
279
|
-
return false;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
return true;
|
|
285
|
-
};
|
|
286
|
-
(this.host = host).addController(this);
|
|
287
|
-
this.options = chunk_H33C3MRM.__spreadValues({
|
|
288
|
-
form: (input) => {
|
|
289
|
-
const formId = input.form;
|
|
290
|
-
if (formId) {
|
|
291
|
-
const root = input.getRootNode();
|
|
292
|
-
const form = root.querySelector(`#${formId}`);
|
|
293
|
-
if (form) {
|
|
294
|
-
return form;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
return input.closest("form");
|
|
298
|
-
},
|
|
299
|
-
name: (input) => input.name,
|
|
300
|
-
value: (input) => input.value,
|
|
301
|
-
defaultValue: (input) => input.defaultValue,
|
|
302
|
-
disabled: (input) => {
|
|
303
|
-
var _a;
|
|
304
|
-
return (_a = input.disabled) != null ? _a : false;
|
|
305
|
-
},
|
|
306
|
-
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
307
|
-
checkValidity: (input) => typeof input.checkValidity === "function" ? input.checkValidity() : true,
|
|
308
|
-
setValue: (input, value) => input.value = value,
|
|
309
|
-
assumeInteractionOn: ["sl-input"]
|
|
310
|
-
}, options);
|
|
311
|
-
}
|
|
312
|
-
hostConnected() {
|
|
313
|
-
const form = this.options.form(this.host);
|
|
314
|
-
if (form) {
|
|
315
|
-
this.attachForm(form);
|
|
316
|
-
}
|
|
317
|
-
interactions.set(this.host, []);
|
|
318
|
-
this.options.assumeInteractionOn.forEach((event) => {
|
|
319
|
-
this.host.addEventListener(event, this.handleInteraction);
|
|
320
|
-
});
|
|
321
|
-
}
|
|
322
|
-
hostDisconnected() {
|
|
323
|
-
this.detachForm();
|
|
324
|
-
interactions.delete(this.host);
|
|
325
|
-
this.options.assumeInteractionOn.forEach((event) => {
|
|
326
|
-
this.host.removeEventListener(event, this.handleInteraction);
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
hostUpdated() {
|
|
330
|
-
const form = this.options.form(this.host);
|
|
331
|
-
if (!form) {
|
|
332
|
-
this.detachForm();
|
|
333
|
-
}
|
|
334
|
-
if (form && this.form !== form) {
|
|
335
|
-
this.detachForm();
|
|
336
|
-
this.attachForm(form);
|
|
337
|
-
}
|
|
338
|
-
if (this.host.hasUpdated) {
|
|
339
|
-
this.setValidity(this.host.validity.valid);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
attachForm(form) {
|
|
343
|
-
if (form) {
|
|
344
|
-
this.form = form;
|
|
345
|
-
if (formCollections.has(this.form)) {
|
|
346
|
-
formCollections.get(this.form).add(this.host);
|
|
347
|
-
} else {
|
|
348
|
-
formCollections.set(this.form, /* @__PURE__ */ new Set([this.host]));
|
|
349
|
-
}
|
|
350
|
-
this.form.addEventListener("formdata", this.handleFormData);
|
|
351
|
-
this.form.addEventListener("submit", this.handleFormSubmit);
|
|
352
|
-
this.form.addEventListener("reset", this.handleFormReset);
|
|
353
|
-
if (!reportValidityOverloads.has(this.form)) {
|
|
354
|
-
reportValidityOverloads.set(this.form, this.form.reportValidity);
|
|
355
|
-
this.form.reportValidity = () => this.reportFormValidity();
|
|
356
|
-
}
|
|
357
|
-
if (!checkValidityOverloads.has(this.form)) {
|
|
358
|
-
checkValidityOverloads.set(this.form, this.form.checkValidity);
|
|
359
|
-
this.form.checkValidity = () => this.checkFormValidity();
|
|
360
|
-
}
|
|
361
|
-
} else {
|
|
362
|
-
this.form = void 0;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
detachForm() {
|
|
366
|
-
if (!this.form)
|
|
367
|
-
return;
|
|
368
|
-
const formCollection = formCollections.get(this.form);
|
|
369
|
-
if (!formCollection) {
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
formCollection.delete(this.host);
|
|
373
|
-
if (formCollection.size <= 0) {
|
|
374
|
-
this.form.removeEventListener("formdata", this.handleFormData);
|
|
375
|
-
this.form.removeEventListener("submit", this.handleFormSubmit);
|
|
376
|
-
this.form.removeEventListener("reset", this.handleFormReset);
|
|
377
|
-
if (reportValidityOverloads.has(this.form)) {
|
|
378
|
-
this.form.reportValidity = reportValidityOverloads.get(this.form);
|
|
379
|
-
reportValidityOverloads.delete(this.form);
|
|
380
|
-
}
|
|
381
|
-
if (checkValidityOverloads.has(this.form)) {
|
|
382
|
-
this.form.checkValidity = checkValidityOverloads.get(this.form);
|
|
383
|
-
checkValidityOverloads.delete(this.form);
|
|
384
|
-
}
|
|
385
|
-
this.form = void 0;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
setUserInteracted(el, hasInteracted) {
|
|
389
|
-
if (hasInteracted) {
|
|
390
|
-
userInteractedControls.add(el);
|
|
391
|
-
} else {
|
|
392
|
-
userInteractedControls.delete(el);
|
|
393
|
-
}
|
|
394
|
-
el.requestUpdate();
|
|
395
|
-
}
|
|
396
|
-
doAction(type, submitter) {
|
|
397
|
-
if (this.form) {
|
|
398
|
-
const button = document.createElement("button");
|
|
399
|
-
button.type = type;
|
|
400
|
-
button.style.position = "absolute";
|
|
401
|
-
button.style.width = "0";
|
|
402
|
-
button.style.height = "0";
|
|
403
|
-
button.style.clipPath = "inset(50%)";
|
|
404
|
-
button.style.overflow = "hidden";
|
|
405
|
-
button.style.whiteSpace = "nowrap";
|
|
406
|
-
if (submitter) {
|
|
407
|
-
button.name = submitter.name;
|
|
408
|
-
button.value = submitter.value;
|
|
409
|
-
["formaction", "formenctype", "formmethod", "formnovalidate", "formtarget"].forEach((attr) => {
|
|
410
|
-
if (submitter.hasAttribute(attr)) {
|
|
411
|
-
button.setAttribute(attr, submitter.getAttribute(attr));
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
this.form.append(button);
|
|
416
|
-
button.click();
|
|
417
|
-
button.remove();
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
/** Returns the associated `<form>` element, if one exists. */
|
|
421
|
-
getForm() {
|
|
422
|
-
var _a;
|
|
423
|
-
return (_a = this.form) != null ? _a : null;
|
|
424
|
-
}
|
|
425
|
-
/** Resets the form, restoring all the control to their default value */
|
|
426
|
-
reset(submitter) {
|
|
427
|
-
this.doAction("reset", submitter);
|
|
428
|
-
}
|
|
429
|
-
/** Submits the form, triggering validation and form data injection. */
|
|
430
|
-
submit(submitter) {
|
|
431
|
-
this.doAction("submit", submitter);
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* Synchronously sets the form control's validity. Call this when you know the future validity but need to update
|
|
435
|
-
* the host element immediately, i.e. before Lit updates the component in the next update.
|
|
436
|
-
*/
|
|
437
|
-
setValidity(isValid) {
|
|
438
|
-
const host = this.host;
|
|
439
|
-
const hasInteracted = Boolean(userInteractedControls.has(host));
|
|
440
|
-
const required = Boolean(host.required);
|
|
441
|
-
host.toggleAttribute("data-required", required);
|
|
442
|
-
host.toggleAttribute("data-optional", !required);
|
|
443
|
-
host.toggleAttribute("data-invalid", !isValid);
|
|
444
|
-
host.toggleAttribute("data-valid", isValid);
|
|
445
|
-
host.toggleAttribute("data-user-invalid", !isValid && hasInteracted);
|
|
446
|
-
host.toggleAttribute("data-user-valid", isValid && hasInteracted);
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything
|
|
450
|
-
* that affects constraint validation changes so the component receives the correct validity states.
|
|
451
|
-
*/
|
|
452
|
-
updateValidity() {
|
|
453
|
-
const host = this.host;
|
|
454
|
-
this.setValidity(host.validity.valid);
|
|
455
|
-
}
|
|
456
|
-
/**
|
|
457
|
-
* Dispatches a non-bubbling, cancelable custom event of type `sl-invalid`.
|
|
458
|
-
* If the `sl-invalid` event will be cancelled then the original `invalid`
|
|
459
|
-
* event (which may have been passed as argument) will also be cancelled.
|
|
460
|
-
* If no original `invalid` event has been passed then the `sl-invalid`
|
|
461
|
-
* event will be cancelled before being dispatched.
|
|
462
|
-
*/
|
|
463
|
-
emitInvalidEvent(originalInvalidEvent) {
|
|
464
|
-
const slInvalidEvent = new CustomEvent("sl-invalid", {
|
|
465
|
-
bubbles: false,
|
|
466
|
-
composed: false,
|
|
467
|
-
cancelable: true,
|
|
468
|
-
detail: {}
|
|
469
|
-
});
|
|
470
|
-
if (!originalInvalidEvent) {
|
|
471
|
-
slInvalidEvent.preventDefault();
|
|
472
|
-
}
|
|
473
|
-
if (!this.host.dispatchEvent(slInvalidEvent)) {
|
|
474
|
-
originalInvalidEvent == null ? void 0 : originalInvalidEvent.preventDefault();
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
var validValidityState = Object.freeze({
|
|
479
|
-
badInput: false,
|
|
480
|
-
customError: false,
|
|
481
|
-
patternMismatch: false,
|
|
482
|
-
rangeOverflow: false,
|
|
483
|
-
rangeUnderflow: false,
|
|
484
|
-
stepMismatch: false,
|
|
485
|
-
tooLong: false,
|
|
486
|
-
tooShort: false,
|
|
487
|
-
typeMismatch: false,
|
|
488
|
-
valid: true,
|
|
489
|
-
valueMissing: false
|
|
490
|
-
});
|
|
491
|
-
Object.freeze(chunk_H33C3MRM.__spreadProps(chunk_H33C3MRM.__spreadValues({}, validValidityState), {
|
|
492
|
-
valid: false,
|
|
493
|
-
valueMissing: true
|
|
494
|
-
}));
|
|
495
|
-
Object.freeze(chunk_H33C3MRM.__spreadProps(chunk_H33C3MRM.__spreadValues({}, validValidityState), {
|
|
496
|
-
valid: false,
|
|
497
|
-
customError: true
|
|
498
|
-
}));
|
|
499
|
-
|
|
500
|
-
// src/internal/slot.ts
|
|
501
|
-
var HasSlotController = class {
|
|
502
|
-
constructor(host, ...slotNames) {
|
|
503
|
-
this.slotNames = [];
|
|
504
|
-
this.handleSlotChange = (event) => {
|
|
505
|
-
const slot = event.target;
|
|
506
|
-
if (this.slotNames.includes("[default]") && !slot.name || slot.name && this.slotNames.includes(slot.name)) {
|
|
507
|
-
this.host.requestUpdate();
|
|
508
|
-
}
|
|
509
|
-
};
|
|
510
|
-
(this.host = host).addController(this);
|
|
511
|
-
this.slotNames = slotNames;
|
|
512
|
-
}
|
|
513
|
-
hasDefaultSlot() {
|
|
514
|
-
return [...this.host.childNodes].some((node) => {
|
|
515
|
-
if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== "") {
|
|
516
|
-
return true;
|
|
517
|
-
}
|
|
518
|
-
if (node.nodeType === node.ELEMENT_NODE) {
|
|
519
|
-
const el = node;
|
|
520
|
-
const tagName = el.tagName.toLowerCase();
|
|
521
|
-
if (tagName === "sl-visually-hidden") {
|
|
522
|
-
return false;
|
|
523
|
-
}
|
|
524
|
-
if (!el.hasAttribute("slot")) {
|
|
525
|
-
return true;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
return false;
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
hasNamedSlot(name) {
|
|
532
|
-
return this.host.querySelector(`:scope > [slot="${name}"]`) !== null;
|
|
533
|
-
}
|
|
534
|
-
test(slotName) {
|
|
535
|
-
return slotName === "[default]" ? this.hasDefaultSlot() : this.hasNamedSlot(slotName);
|
|
536
|
-
}
|
|
537
|
-
hostConnected() {
|
|
538
|
-
this.host.shadowRoot.addEventListener("slotchange", this.handleSlotChange);
|
|
539
|
-
}
|
|
540
|
-
hostDisconnected() {
|
|
541
|
-
this.host.shadowRoot.removeEventListener("slotchange", this.handleSlotChange);
|
|
542
|
-
}
|
|
543
|
-
};
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* @license
|
|
547
|
-
* Copyright 2018 Google LLC
|
|
548
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
549
|
-
*/const o=o=>o??chunk_H33C3MRM.T;
|
|
550
|
-
|
|
551
|
-
/**
|
|
552
|
-
* @license
|
|
553
|
-
* Copyright 2020 Google LLC
|
|
554
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
555
|
-
*/const l=classMap.e$2(class extends classMap.i{constructor(r){if(super(r),r.type!==classMap.t.PROPERTY&&r.type!==classMap.t.ATTRIBUTE&&r.type!==classMap.t.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!chunk_H33C3MRM.f(r))throw Error("`live` bindings can only contain a single expression")}render(r){return r}update(i,[t]){if(t===chunk_H33C3MRM.w||t===chunk_H33C3MRM.T)return t;const o=i.element,l=i.name;if(i.type===classMap.t.PROPERTY){if(t===o[l])return chunk_H33C3MRM.w}else if(i.type===classMap.t.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(l))return chunk_H33C3MRM.w}else if(i.type===classMap.t.ATTRIBUTE&&o.getAttribute(l)===t+"")return chunk_H33C3MRM.w;return chunk_H33C3MRM.m(i),t}});
|
|
556
|
-
|
|
557
|
-
var SlCheckbox = class extends chunk_H33C3MRM.ShoelaceElement {
|
|
133
|
+
var SlCheckbox = class extends directiveHelpers.ShoelaceElement {
|
|
558
134
|
constructor() {
|
|
559
135
|
super(...arguments);
|
|
560
|
-
this.formControlController = new FormControlController(this, {
|
|
136
|
+
this.formControlController = new ifDefined.FormControlController(this, {
|
|
561
137
|
value: (control) => control.checked ? control.value || "on" : void 0,
|
|
562
138
|
defaultValue: (control) => control.defaultChecked,
|
|
563
139
|
setValue: (control, checked) => control.checked = checked
|
|
564
140
|
});
|
|
565
|
-
this.hasSlotController = new HasSlotController(this, "help-text");
|
|
141
|
+
this.hasSlotController = new ifDefined.HasSlotController(this, "help-text");
|
|
566
142
|
this.hasFocus = false;
|
|
567
143
|
this.title = "";
|
|
568
144
|
this.name = "";
|
|
@@ -649,7 +225,7 @@ var SlCheckbox = class extends chunk_H33C3MRM.ShoelaceElement {
|
|
|
649
225
|
render() {
|
|
650
226
|
const hasHelpTextSlot = this.hasSlotController.test("help-text");
|
|
651
227
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
652
|
-
return
|
|
228
|
+
return directiveHelpers.x`
|
|
653
229
|
<div
|
|
654
230
|
class=${classMap.e({
|
|
655
231
|
"form-control": true,
|
|
@@ -677,9 +253,9 @@ var SlCheckbox = class extends chunk_H33C3MRM.ShoelaceElement {
|
|
|
677
253
|
type="checkbox"
|
|
678
254
|
title=${this.title}
|
|
679
255
|
name=${this.name}
|
|
680
|
-
value=${o(this.value)}
|
|
681
|
-
.indeterminate=${l(this.indeterminate)}
|
|
682
|
-
.checked=${l(this.checked)}
|
|
256
|
+
value=${ifDefined.o(this.value)}
|
|
257
|
+
.indeterminate=${live.l(this.indeterminate)}
|
|
258
|
+
.checked=${live.l(this.checked)}
|
|
683
259
|
.disabled=${this.disabled}
|
|
684
260
|
.required=${this.required}
|
|
685
261
|
aria-checked=${this.checked ? "true" : "false"}
|
|
@@ -695,10 +271,10 @@ var SlCheckbox = class extends chunk_H33C3MRM.ShoelaceElement {
|
|
|
695
271
|
part="control${this.checked ? " control--checked" : ""}${this.indeterminate ? " control--indeterminate" : ""}"
|
|
696
272
|
class="checkbox__control"
|
|
697
273
|
>
|
|
698
|
-
${this.checked ?
|
|
274
|
+
${this.checked ? directiveHelpers.x`
|
|
699
275
|
<sl-icon part="checked-icon" class="checkbox__checked-icon" library="system" name="check"></sl-icon>
|
|
700
276
|
` : ""}
|
|
701
|
-
${!this.checked && this.indeterminate ?
|
|
277
|
+
${!this.checked && this.indeterminate ? directiveHelpers.x`
|
|
702
278
|
<sl-icon
|
|
703
279
|
part="indeterminate-icon"
|
|
704
280
|
class="checkbox__indeterminate-icon"
|
|
@@ -725,52 +301,52 @@ var SlCheckbox = class extends chunk_H33C3MRM.ShoelaceElement {
|
|
|
725
301
|
`;
|
|
726
302
|
}
|
|
727
303
|
};
|
|
728
|
-
SlCheckbox.styles = [
|
|
304
|
+
SlCheckbox.styles = [directiveHelpers.component_styles_default, ifDefined.form_control_styles_default, checkbox_styles_default];
|
|
729
305
|
SlCheckbox.dependencies = { "sl-icon": chunk_H33C3MRM.SlIcon };
|
|
730
|
-
|
|
306
|
+
directiveHelpers.__decorateClass([
|
|
731
307
|
classMap.e$1('input[type="checkbox"]')
|
|
732
308
|
], SlCheckbox.prototype, "input", 2);
|
|
733
|
-
|
|
734
|
-
|
|
309
|
+
directiveHelpers.__decorateClass([
|
|
310
|
+
directiveHelpers.r()
|
|
735
311
|
], SlCheckbox.prototype, "hasFocus", 2);
|
|
736
|
-
|
|
737
|
-
|
|
312
|
+
directiveHelpers.__decorateClass([
|
|
313
|
+
directiveHelpers.n()
|
|
738
314
|
], SlCheckbox.prototype, "title", 2);
|
|
739
|
-
|
|
740
|
-
|
|
315
|
+
directiveHelpers.__decorateClass([
|
|
316
|
+
directiveHelpers.n()
|
|
741
317
|
], SlCheckbox.prototype, "name", 2);
|
|
742
|
-
|
|
743
|
-
|
|
318
|
+
directiveHelpers.__decorateClass([
|
|
319
|
+
directiveHelpers.n()
|
|
744
320
|
], SlCheckbox.prototype, "value", 2);
|
|
745
|
-
|
|
746
|
-
|
|
321
|
+
directiveHelpers.__decorateClass([
|
|
322
|
+
directiveHelpers.n({ reflect: true })
|
|
747
323
|
], SlCheckbox.prototype, "size", 2);
|
|
748
|
-
|
|
749
|
-
|
|
324
|
+
directiveHelpers.__decorateClass([
|
|
325
|
+
directiveHelpers.n({ type: Boolean, reflect: true })
|
|
750
326
|
], SlCheckbox.prototype, "disabled", 2);
|
|
751
|
-
|
|
752
|
-
|
|
327
|
+
directiveHelpers.__decorateClass([
|
|
328
|
+
directiveHelpers.n({ type: Boolean, reflect: true })
|
|
753
329
|
], SlCheckbox.prototype, "checked", 2);
|
|
754
|
-
|
|
755
|
-
|
|
330
|
+
directiveHelpers.__decorateClass([
|
|
331
|
+
directiveHelpers.n({ type: Boolean, reflect: true })
|
|
756
332
|
], SlCheckbox.prototype, "indeterminate", 2);
|
|
757
|
-
|
|
758
|
-
defaultValue("checked")
|
|
333
|
+
directiveHelpers.__decorateClass([
|
|
334
|
+
ifDefined.defaultValue("checked")
|
|
759
335
|
], SlCheckbox.prototype, "defaultChecked", 2);
|
|
760
|
-
|
|
761
|
-
|
|
336
|
+
directiveHelpers.__decorateClass([
|
|
337
|
+
directiveHelpers.n({ reflect: true })
|
|
762
338
|
], SlCheckbox.prototype, "form", 2);
|
|
763
|
-
|
|
764
|
-
|
|
339
|
+
directiveHelpers.__decorateClass([
|
|
340
|
+
directiveHelpers.n({ type: Boolean, reflect: true })
|
|
765
341
|
], SlCheckbox.prototype, "required", 2);
|
|
766
|
-
|
|
767
|
-
|
|
342
|
+
directiveHelpers.__decorateClass([
|
|
343
|
+
directiveHelpers.n({ attribute: "help-text" })
|
|
768
344
|
], SlCheckbox.prototype, "helpText", 2);
|
|
769
|
-
|
|
770
|
-
|
|
345
|
+
directiveHelpers.__decorateClass([
|
|
346
|
+
directiveHelpers.watch("disabled", { waitUntilFirstUpdate: true })
|
|
771
347
|
], SlCheckbox.prototype, "handleDisabledChange", 1);
|
|
772
|
-
|
|
773
|
-
|
|
348
|
+
directiveHelpers.__decorateClass([
|
|
349
|
+
directiveHelpers.watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
774
350
|
], SlCheckbox.prototype, "handleStateChange", 1);
|
|
775
351
|
|
|
776
352
|
SlCheckbox.define("sl-checkbox");
|