@vonage/vivid 3.54.0 → 3.56.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/accordion/index.cjs +0 -14
- package/accordion/index.js +0 -14
- package/accordion-item/index.cjs +0 -11
- package/accordion-item/index.js +0 -11
- package/action-group/index.cjs +0 -2
- package/action-group/index.js +0 -2
- package/alert/index.cjs +0 -23
- package/alert/index.js +0 -23
- package/appearance-ui/index.cjs +11 -12
- package/appearance-ui/index.js +11 -12
- package/audio-player/index.cjs +0 -28
- package/audio-player/index.js +0 -28
- package/avatar/index.cjs +0 -6
- package/avatar/index.js +0 -6
- package/badge/index.cjs +0 -9
- package/badge/index.js +0 -9
- package/banner/index.cjs +0 -22
- package/banner/index.js +0 -22
- package/breadcrumb/index.cjs +0 -8
- package/breadcrumb/index.js +0 -8
- package/breadcrumb-item/index.cjs +0 -15
- package/breadcrumb-item/index.js +0 -15
- package/button/index.cjs +0 -18
- package/button/index.js +0 -18
- package/calendar/index.cjs +0 -4
- package/calendar/index.js +0 -4
- package/calendar-event/index.cjs +0 -4
- package/calendar-event/index.js +0 -4
- package/card/index.cjs +0 -9
- package/card/index.js +0 -9
- package/checkbox/index.cjs +0 -14
- package/checkbox/index.js +0 -14
- package/combobox/index.cjs +0 -31
- package/combobox/index.js +0 -31
- package/custom-elements.json +169 -141
- package/data-grid/index.cjs +0 -11
- package/data-grid/index.js +0 -11
- package/date-picker/index.cjs +0 -34
- package/date-picker/index.js +0 -34
- package/date-range-picker/index.cjs +0 -34
- package/date-range-picker/index.js +0 -34
- package/dial-pad/index.cjs +0 -28
- package/dial-pad/index.js +0 -28
- package/dialog/index.cjs +0 -23
- package/dialog/index.js +0 -23
- package/divider/index.cjs +0 -3
- package/divider/index.js +0 -3
- package/elevation/index.cjs +0 -2
- package/elevation/index.js +0 -2
- package/empty-state/index.cjs +0 -7
- package/empty-state/index.js +0 -7
- package/fab/index.cjs +0 -15
- package/fab/index.js +0 -15
- package/file-picker/index.cjs +0 -23
- package/file-picker/index.js +0 -23
- package/header/index.cjs +0 -3
- package/header/index.js +0 -3
- package/icon/index.cjs +0 -5
- package/icon/index.js +0 -5
- package/index.cjs +0 -44
- package/index.js +0 -44
- package/layout/index.cjs +0 -2
- package/layout/index.js +0 -2
- package/lib/button/button.d.ts +1 -1
- package/lib/combobox/combobox.d.ts +1 -0
- package/lib/dial-pad/dial-pad.d.ts +1 -0
- package/lib/menu/menu.d.ts +1 -3
- package/lib/slider/slider.d.ts +4 -0
- package/listbox/index.cjs +1 -15
- package/listbox/index.js +1 -15
- package/locales/de-DE.cjs +329 -0
- package/locales/de-DE.d.ts +3 -0
- package/locales/de-DE.js +327 -0
- package/locales/en-GB.cjs +4 -0
- package/locales/en-GB.js +4 -0
- package/locales/en-US.cjs +4 -0
- package/locales/en-US.js +4 -0
- package/locales/ja-JP.cjs +4 -0
- package/locales/ja-JP.js +4 -0
- package/locales/zh-CN.cjs +4 -0
- package/locales/zh-CN.js +4 -0
- package/menu/index.cjs +0 -25
- package/menu/index.js +0 -25
- package/menu-item/index.cjs +0 -15
- package/menu-item/index.js +0 -15
- package/nav/index.cjs +0 -1
- package/nav/index.js +0 -1
- package/nav-disclosure/index.cjs +0 -10
- package/nav-disclosure/index.js +0 -10
- package/nav-item/index.cjs +0 -15
- package/nav-item/index.js +0 -15
- package/note/index.cjs +0 -11
- package/note/index.js +0 -11
- package/number-field/index.cjs +0 -26
- package/number-field/index.js +0 -26
- package/option/index.cjs +0 -13
- package/option/index.js +0 -13
- package/package.json +1 -1
- package/pagination/index.cjs +0 -21
- package/pagination/index.js +0 -21
- package/popup/index.cjs +0 -20
- package/popup/index.js +0 -20
- package/progress/index.cjs +0 -4
- package/progress/index.js +0 -4
- package/progress-ring/index.cjs +0 -4
- package/progress-ring/index.js +0 -4
- package/radio/index.cjs +0 -6
- package/radio/index.js +0 -6
- package/radio-group/index.cjs +0 -9
- package/radio-group/index.js +0 -9
- package/range-slider/index.cjs +0 -17
- package/range-slider/index.js +0 -17
- package/select/index.cjs +0 -31
- package/select/index.js +0 -31
- package/selectable-box/index.cjs +0 -18
- package/selectable-box/index.js +0 -18
- package/shared/affix.cjs +6 -7
- package/shared/affix.js +6 -7
- package/shared/anchored.cjs +39 -46
- package/shared/anchored.js +39 -46
- package/shared/calendar-event.cjs +10 -11
- package/shared/calendar-event.js +10 -11
- package/shared/definition.cjs +8 -9
- package/shared/definition.js +8 -9
- package/shared/definition10.cjs +1 -1
- package/shared/definition10.js +1 -1
- package/shared/definition11.cjs +20 -21
- package/shared/definition11.js +20 -21
- package/shared/definition12.cjs +1 -1
- package/shared/definition12.js +1 -1
- package/shared/definition13.cjs +9 -14
- package/shared/definition13.js +9 -14
- package/shared/definition14.cjs +13 -14
- package/shared/definition14.js +13 -14
- package/shared/definition15.cjs +1 -1
- package/shared/definition15.js +1 -1
- package/shared/definition16.cjs +16 -3
- package/shared/definition16.js +16 -3
- package/shared/definition17.cjs +155 -166
- package/shared/definition17.js +155 -166
- package/shared/definition19.cjs +2 -2
- package/shared/definition19.js +2 -2
- package/shared/definition2.cjs +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.cjs +22 -19
- package/shared/definition20.js +22 -19
- package/shared/definition21.cjs +17 -18
- package/shared/definition21.js +17 -18
- package/shared/definition22.cjs +2 -2
- package/shared/definition22.js +2 -2
- package/shared/definition23.cjs +7 -8
- package/shared/definition23.js +7 -8
- package/shared/definition24.cjs +7 -8
- package/shared/definition24.js +7 -8
- package/shared/definition25.cjs +29 -4
- package/shared/definition25.js +29 -4
- package/shared/definition26.cjs +6 -7
- package/shared/definition26.js +6 -7
- package/shared/definition27.cjs +2 -2
- package/shared/definition27.js +2 -2
- package/shared/definition28.cjs +9 -10
- package/shared/definition28.js +9 -10
- package/shared/definition29.cjs +23 -49
- package/shared/definition29.js +23 -49
- package/shared/definition3.cjs +9 -10
- package/shared/definition3.js +9 -10
- package/shared/definition30.cjs +4 -2
- package/shared/definition30.js +4 -2
- package/shared/definition31.cjs +9 -10
- package/shared/definition31.js +9 -10
- package/shared/definition32.cjs +1 -1
- package/shared/definition32.js +1 -1
- package/shared/definition33.cjs +1 -1
- package/shared/definition33.js +1 -1
- package/shared/definition34.cjs +6 -7
- package/shared/definition34.js +6 -7
- package/shared/definition35.cjs +1 -1
- package/shared/definition35.js +1 -1
- package/shared/definition36.cjs +6 -7
- package/shared/definition36.js +6 -7
- package/shared/definition37.cjs +1 -1
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +7 -8
- package/shared/definition38.js +7 -8
- package/shared/definition39.cjs +8 -9
- package/shared/definition39.js +8 -9
- package/shared/definition4.cjs +14 -15
- package/shared/definition4.js +14 -15
- package/shared/definition40.cjs +7 -8
- package/shared/definition40.js +7 -8
- package/shared/definition41.cjs +1 -1
- package/shared/definition41.js +1 -1
- package/shared/definition42.cjs +4 -4
- package/shared/definition42.js +4 -4
- package/shared/definition43.cjs +1 -1
- package/shared/definition43.js +1 -1
- package/shared/definition44.cjs +11 -12
- package/shared/definition44.js +11 -12
- package/shared/definition45.cjs +8 -9
- package/shared/definition45.js +8 -9
- package/shared/definition46.cjs +18 -10
- package/shared/definition46.js +18 -10
- package/shared/definition47.cjs +15 -16
- package/shared/definition47.js +15 -16
- package/shared/definition48.cjs +6 -7
- package/shared/definition48.js +6 -7
- package/shared/definition5.cjs +37 -35
- package/shared/definition5.js +37 -35
- package/shared/definition50.cjs +9 -10
- package/shared/definition50.js +9 -10
- package/shared/definition51.cjs +8 -9
- package/shared/definition51.js +8 -9
- package/shared/definition52.cjs +5 -6
- package/shared/definition52.js +5 -6
- package/shared/definition53.cjs +12 -13
- package/shared/definition53.js +12 -13
- package/shared/definition54.cjs +2 -2
- package/shared/definition54.js +2 -2
- package/shared/definition55.cjs +1 -11
- package/shared/definition55.js +1 -11
- package/shared/definition56.cjs +1 -1
- package/shared/definition56.js +1 -1
- package/shared/definition57.cjs +1 -1
- package/shared/definition57.js +1 -1
- package/shared/definition58.cjs +1 -1
- package/shared/definition58.js +1 -1
- package/shared/definition59.cjs +5 -6
- package/shared/definition59.js +5 -6
- package/shared/definition6.cjs +10 -11
- package/shared/definition6.js +10 -11
- package/shared/definition60.cjs +1 -1
- package/shared/definition60.js +1 -1
- package/shared/definition61.cjs +11 -15
- package/shared/definition61.js +11 -15
- package/shared/definition62.cjs +6 -7
- package/shared/definition62.js +6 -7
- package/shared/definition63.cjs +11 -15
- package/shared/definition63.js +11 -15
- package/shared/definition7.cjs +8 -9
- package/shared/definition7.js +8 -9
- package/shared/definition8.cjs +13 -14
- package/shared/definition8.js +13 -14
- package/shared/definition9.cjs +5 -6
- package/shared/definition9.js +5 -6
- package/shared/icon.cjs +4 -8
- package/shared/icon.js +4 -8
- package/shared/index.cjs +38 -19
- package/shared/index.js +38 -19
- package/shared/index2.cjs +16 -19
- package/shared/index2.js +16 -19
- package/shared/listbox.cjs +6 -7
- package/shared/listbox.js +6 -7
- package/shared/localization/Locale.d.ts +4 -0
- package/shared/presentationDate.cjs +40 -50
- package/shared/presentationDate.js +40 -50
- package/shared/radio.cjs +6 -7
- package/shared/radio.js +6 -7
- package/shared/slider.template.cjs +1 -1
- package/shared/slider.template.js +1 -1
- package/shared/text-anchor.cjs +6 -7
- package/shared/text-anchor.js +6 -7
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/side-drawer/index.cjs +0 -3
- package/side-drawer/index.js +0 -3
- package/slider/index.cjs +0 -10
- package/slider/index.js +0 -10
- package/split-button/index.cjs +0 -13
- package/split-button/index.js +0 -13
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +0 -8
- package/switch/index.js +0 -8
- package/tab/index.cjs +0 -9
- package/tab/index.js +0 -9
- package/tab-panel/index.cjs +0 -1
- package/tab-panel/index.js +0 -1
- package/tabs/index.cjs +0 -16
- package/tabs/index.js +0 -16
- package/tag/index.cjs +0 -9
- package/tag/index.js +0 -9
- package/tag-group/index.cjs +0 -2
- package/tag-group/index.js +0 -2
- package/text-anchor/index.cjs +0 -10
- package/text-anchor/index.js +0 -10
- package/text-area/index.cjs +0 -19
- package/text-area/index.js +0 -19
- package/text-field/index.cjs +0 -20
- package/text-field/index.js +0 -20
- package/time-picker/index.cjs +0 -31
- package/time-picker/index.js +0 -31
- package/toggletip/index.cjs +0 -22
- package/toggletip/index.js +0 -22
- package/tooltip/index.cjs +0 -22
- package/tooltip/index.js +0 -22
- package/tree-item/index.cjs +0 -14
- package/tree-item/index.js +0 -14
- package/tree-view/index.cjs +0 -9
- package/tree-view/index.js +0 -9
- package/video-player/index.cjs +0 -12
- package/video-player/index.js +0 -12
- package/vivid.api.json +10 -1
package/select/index.cjs
CHANGED
|
@@ -1,36 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition43.cjs');
|
|
4
|
-
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/definition63.cjs');
|
|
6
|
-
require('../shared/definition11.cjs');
|
|
7
|
-
require('../shared/definition27.cjs');
|
|
8
|
-
require('../shared/icon.cjs');
|
|
9
|
-
require('../shared/_has.cjs');
|
|
10
|
-
require('../shared/class-names.cjs');
|
|
11
|
-
require('../shared/when.cjs');
|
|
12
|
-
require('../shared/definition38.cjs');
|
|
13
|
-
require('../shared/base-progress.cjs');
|
|
14
|
-
require('../shared/affix.cjs');
|
|
15
|
-
require('../shared/slotted.cjs');
|
|
16
|
-
require('../shared/button.cjs');
|
|
17
|
-
require('../shared/apply-mixins.cjs');
|
|
18
|
-
require('../shared/form-associated.cjs');
|
|
19
|
-
require('../shared/key-codes.cjs');
|
|
20
|
-
require('../shared/aria-global.cjs');
|
|
21
|
-
require('../shared/start-end.cjs');
|
|
22
|
-
require('../shared/ref.cjs');
|
|
23
|
-
require('../shared/enums.cjs');
|
|
24
|
-
require('../shared/definition62.cjs');
|
|
25
|
-
require('../shared/definition36.cjs');
|
|
26
|
-
require('../shared/dom.cjs');
|
|
27
|
-
require('../shared/index2.cjs');
|
|
28
|
-
require('../locales/en-US.cjs');
|
|
29
|
-
require('../shared/listbox.cjs');
|
|
30
|
-
require('../shared/key-codes2.cjs');
|
|
31
|
-
require('../shared/strings.cjs');
|
|
32
|
-
require('../shared/numbers.cjs');
|
|
33
|
-
require('../shared/applyMixinsWithObservables.cjs');
|
|
34
|
-
require('../shared/select.options.cjs');
|
|
35
4
|
|
|
36
5
|
definition.registerSelect();
|
package/select/index.js
CHANGED
|
@@ -1,34 +1,3 @@
|
|
|
1
1
|
import { r as registerSelect } from '../shared/definition43.js';
|
|
2
|
-
import '../shared/index.js';
|
|
3
|
-
import '../shared/definition63.js';
|
|
4
|
-
import '../shared/definition11.js';
|
|
5
|
-
import '../shared/definition27.js';
|
|
6
|
-
import '../shared/icon.js';
|
|
7
|
-
import '../shared/_has.js';
|
|
8
|
-
import '../shared/class-names.js';
|
|
9
|
-
import '../shared/when.js';
|
|
10
|
-
import '../shared/definition38.js';
|
|
11
|
-
import '../shared/base-progress.js';
|
|
12
|
-
import '../shared/affix.js';
|
|
13
|
-
import '../shared/slotted.js';
|
|
14
|
-
import '../shared/button.js';
|
|
15
|
-
import '../shared/apply-mixins.js';
|
|
16
|
-
import '../shared/form-associated.js';
|
|
17
|
-
import '../shared/key-codes.js';
|
|
18
|
-
import '../shared/aria-global.js';
|
|
19
|
-
import '../shared/start-end.js';
|
|
20
|
-
import '../shared/ref.js';
|
|
21
|
-
import '../shared/enums.js';
|
|
22
|
-
import '../shared/definition62.js';
|
|
23
|
-
import '../shared/definition36.js';
|
|
24
|
-
import '../shared/dom.js';
|
|
25
|
-
import '../shared/index2.js';
|
|
26
|
-
import '../locales/en-US.js';
|
|
27
|
-
import '../shared/listbox.js';
|
|
28
|
-
import '../shared/key-codes2.js';
|
|
29
|
-
import '../shared/strings.js';
|
|
30
|
-
import '../shared/numbers.js';
|
|
31
|
-
import '../shared/applyMixinsWithObservables.js';
|
|
32
|
-
import '../shared/select.options.js';
|
|
33
2
|
|
|
34
3
|
registerSelect();
|
package/selectable-box/index.cjs
CHANGED
|
@@ -1,23 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition44.cjs');
|
|
4
|
-
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/definition15.cjs');
|
|
6
|
-
require('../shared/definition27.cjs');
|
|
7
|
-
require('../shared/icon.cjs');
|
|
8
|
-
require('../shared/_has.cjs');
|
|
9
|
-
require('../shared/class-names.cjs');
|
|
10
|
-
require('../shared/when.cjs');
|
|
11
|
-
require('../shared/affix.cjs');
|
|
12
|
-
require('../shared/slotted.cjs');
|
|
13
|
-
require('../shared/index2.cjs');
|
|
14
|
-
require('../locales/en-US.cjs');
|
|
15
|
-
require('../shared/applyMixinsWithObservables.cjs');
|
|
16
|
-
require('../shared/apply-mixins.cjs');
|
|
17
|
-
require('../shared/form-associated.cjs');
|
|
18
|
-
require('../shared/key-codes.cjs');
|
|
19
|
-
require('../shared/definition41.cjs');
|
|
20
|
-
require('../shared/radio.cjs');
|
|
21
|
-
require('../shared/enums.cjs');
|
|
22
4
|
|
|
23
5
|
definition.registerSelectableBox();
|
package/selectable-box/index.js
CHANGED
|
@@ -1,21 +1,3 @@
|
|
|
1
1
|
import { r as registerSelectableBox } from '../shared/definition44.js';
|
|
2
|
-
import '../shared/index.js';
|
|
3
|
-
import '../shared/definition15.js';
|
|
4
|
-
import '../shared/definition27.js';
|
|
5
|
-
import '../shared/icon.js';
|
|
6
|
-
import '../shared/_has.js';
|
|
7
|
-
import '../shared/class-names.js';
|
|
8
|
-
import '../shared/when.js';
|
|
9
|
-
import '../shared/affix.js';
|
|
10
|
-
import '../shared/slotted.js';
|
|
11
|
-
import '../shared/index2.js';
|
|
12
|
-
import '../locales/en-US.js';
|
|
13
|
-
import '../shared/applyMixinsWithObservables.js';
|
|
14
|
-
import '../shared/apply-mixins.js';
|
|
15
|
-
import '../shared/form-associated.js';
|
|
16
|
-
import '../shared/key-codes.js';
|
|
17
|
-
import '../shared/definition41.js';
|
|
18
|
-
import '../shared/radio.js';
|
|
19
|
-
import '../shared/enums.js';
|
|
20
2
|
|
|
21
3
|
registerSelectableBox();
|
package/shared/affix.cjs
CHANGED
|
@@ -5,13 +5,12 @@ const index = require('./index.cjs');
|
|
|
5
5
|
const slotted = require('./slotted.cjs');
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
8
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
8
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
-
var result =
|
|
9
|
+
var result = void 0 ;
|
|
11
10
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
11
|
if (decorator = decorators[i])
|
|
13
|
-
result = (
|
|
14
|
-
if (
|
|
12
|
+
result = (decorator(target, key, result) ) || result;
|
|
13
|
+
if (result)
|
|
15
14
|
__defProp(target, key, result);
|
|
16
15
|
return result;
|
|
17
16
|
};
|
|
@@ -19,10 +18,10 @@ class AffixIcon {
|
|
|
19
18
|
}
|
|
20
19
|
__decorateClass([
|
|
21
20
|
index.attr
|
|
22
|
-
], AffixIcon.prototype, "icon"
|
|
21
|
+
], AffixIcon.prototype, "icon");
|
|
23
22
|
__decorateClass([
|
|
24
23
|
index.attr({ mode: "fromView" })
|
|
25
|
-
], AffixIcon.prototype, "iconSlottedContent"
|
|
24
|
+
], AffixIcon.prototype, "iconSlottedContent");
|
|
26
25
|
class AffixIconWithTrailing extends AffixIcon {
|
|
27
26
|
constructor() {
|
|
28
27
|
super(...arguments);
|
|
@@ -34,7 +33,7 @@ __decorateClass([
|
|
|
34
33
|
mode: "boolean",
|
|
35
34
|
attribute: "icon-trailing"
|
|
36
35
|
})
|
|
37
|
-
], AffixIconWithTrailing.prototype, "iconTrailing"
|
|
36
|
+
], AffixIconWithTrailing.prototype, "iconTrailing");
|
|
38
37
|
const IconWrapper = {
|
|
39
38
|
Slot: false,
|
|
40
39
|
Span: true
|
package/shared/affix.js
CHANGED
|
@@ -3,13 +3,12 @@ import { a as attr, h as html } from './index.js';
|
|
|
3
3
|
import { s as slotted } from './slotted.js';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result =
|
|
7
|
+
var result = void 0 ;
|
|
9
8
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
9
|
if (decorator = decorators[i])
|
|
11
|
-
result = (
|
|
12
|
-
if (
|
|
10
|
+
result = (decorator(target, key, result) ) || result;
|
|
11
|
+
if (result)
|
|
13
12
|
__defProp(target, key, result);
|
|
14
13
|
return result;
|
|
15
14
|
};
|
|
@@ -17,10 +16,10 @@ class AffixIcon {
|
|
|
17
16
|
}
|
|
18
17
|
__decorateClass([
|
|
19
18
|
attr
|
|
20
|
-
], AffixIcon.prototype, "icon"
|
|
19
|
+
], AffixIcon.prototype, "icon");
|
|
21
20
|
__decorateClass([
|
|
22
21
|
attr({ mode: "fromView" })
|
|
23
|
-
], AffixIcon.prototype, "iconSlottedContent"
|
|
22
|
+
], AffixIcon.prototype, "iconSlottedContent");
|
|
24
23
|
class AffixIconWithTrailing extends AffixIcon {
|
|
25
24
|
constructor() {
|
|
26
25
|
super(...arguments);
|
|
@@ -32,7 +31,7 @@ __decorateClass([
|
|
|
32
31
|
mode: "boolean",
|
|
33
32
|
attribute: "icon-trailing"
|
|
34
33
|
})
|
|
35
|
-
], AffixIconWithTrailing.prototype, "iconTrailing"
|
|
34
|
+
], AffixIconWithTrailing.prototype, "iconTrailing");
|
|
36
35
|
const IconWrapper = {
|
|
37
36
|
Slot: false,
|
|
38
37
|
Span: true
|
package/shared/anchored.cjs
CHANGED
|
@@ -4,54 +4,17 @@ const index = require('./index.cjs');
|
|
|
4
4
|
const slotted = require('./slotted.cjs');
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
7
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
-
var result =
|
|
8
|
+
var result = void 0 ;
|
|
10
9
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
10
|
if (decorator = decorators[i])
|
|
12
|
-
result = (
|
|
13
|
-
if (
|
|
11
|
+
result = (decorator(target, key, result) ) || result;
|
|
12
|
+
if (result)
|
|
14
13
|
__defProp(target, key, result);
|
|
15
14
|
return result;
|
|
16
15
|
};
|
|
17
16
|
function anchored(constructor) {
|
|
18
17
|
class Decorated extends constructor {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.#updateAnchorEl = () => {
|
|
22
|
-
if (!this.isConnected) {
|
|
23
|
-
this._anchorEl = void 0;
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
this.#cleanupObserverIfNeeded();
|
|
27
|
-
let newAnchor = void 0;
|
|
28
|
-
if (this._slottedAnchor && this._slottedAnchor.length > 0) {
|
|
29
|
-
newAnchor = this._slottedAnchor[0];
|
|
30
|
-
} else if (this.anchor instanceof HTMLElement) {
|
|
31
|
-
newAnchor = this.anchor;
|
|
32
|
-
} else if (typeof this.anchor === "string") {
|
|
33
|
-
newAnchor = document.getElementById(this.anchor) ?? void 0;
|
|
34
|
-
if (!newAnchor) {
|
|
35
|
-
this.#observeMissingAnchor(this.anchor);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
this._anchorEl = newAnchor;
|
|
39
|
-
};
|
|
40
|
-
this.#observeMissingAnchor = (anchorId) => {
|
|
41
|
-
this.#observer = new MutationObserver(() => {
|
|
42
|
-
const anchor = document.getElementById(anchorId);
|
|
43
|
-
if (anchor) {
|
|
44
|
-
this._anchorEl = anchor;
|
|
45
|
-
this.#cleanupObserverIfNeeded();
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
this.#observer.observe(document.body, { childList: true, subtree: true });
|
|
49
|
-
};
|
|
50
|
-
this.#cleanupObserverIfNeeded = () => {
|
|
51
|
-
this.#observer?.disconnect();
|
|
52
|
-
this.#observer = void 0;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
18
|
/**
|
|
56
19
|
* @internal
|
|
57
20
|
*/
|
|
@@ -72,10 +35,40 @@ function anchored(constructor) {
|
|
|
72
35
|
);
|
|
73
36
|
this.#updateAnchorEl();
|
|
74
37
|
}
|
|
75
|
-
#updateAnchorEl
|
|
38
|
+
#updateAnchorEl = () => {
|
|
39
|
+
if (!this.isConnected) {
|
|
40
|
+
this._anchorEl = void 0;
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.#cleanupObserverIfNeeded();
|
|
44
|
+
let newAnchor = void 0;
|
|
45
|
+
if (this._slottedAnchor && this._slottedAnchor.length > 0) {
|
|
46
|
+
newAnchor = this._slottedAnchor[0];
|
|
47
|
+
} else if (this.anchor instanceof HTMLElement) {
|
|
48
|
+
newAnchor = this.anchor;
|
|
49
|
+
} else if (typeof this.anchor === "string") {
|
|
50
|
+
newAnchor = document.getElementById(this.anchor) ?? void 0;
|
|
51
|
+
if (!newAnchor) {
|
|
52
|
+
this.#observeMissingAnchor(this.anchor);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
this._anchorEl = newAnchor;
|
|
56
|
+
};
|
|
76
57
|
#observer;
|
|
77
|
-
#observeMissingAnchor
|
|
78
|
-
|
|
58
|
+
#observeMissingAnchor = (anchorId) => {
|
|
59
|
+
this.#observer = new MutationObserver(() => {
|
|
60
|
+
const anchor = document.getElementById(anchorId);
|
|
61
|
+
if (anchor) {
|
|
62
|
+
this._anchorEl = anchor;
|
|
63
|
+
this.#cleanupObserverIfNeeded();
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
this.#observer.observe(document.body, { childList: true, subtree: true });
|
|
67
|
+
};
|
|
68
|
+
#cleanupObserverIfNeeded = () => {
|
|
69
|
+
this.#observer?.disconnect();
|
|
70
|
+
this.#observer = void 0;
|
|
71
|
+
};
|
|
79
72
|
connectedCallback() {
|
|
80
73
|
super.connectedCallback();
|
|
81
74
|
this.#updateAnchorEl();
|
|
@@ -88,13 +81,13 @@ function anchored(constructor) {
|
|
|
88
81
|
}
|
|
89
82
|
__decorateClass([
|
|
90
83
|
index.attr
|
|
91
|
-
], Decorated.prototype, "anchor"
|
|
84
|
+
], Decorated.prototype, "anchor");
|
|
92
85
|
__decorateClass([
|
|
93
86
|
index.observable
|
|
94
|
-
], Decorated.prototype, "_slottedAnchor"
|
|
87
|
+
], Decorated.prototype, "_slottedAnchor");
|
|
95
88
|
__decorateClass([
|
|
96
89
|
index.observable
|
|
97
|
-
], Decorated.prototype, "_anchorEl"
|
|
90
|
+
], Decorated.prototype, "_anchorEl");
|
|
98
91
|
return Decorated;
|
|
99
92
|
}
|
|
100
93
|
const anchorSlotTemplateFactory = () => index.html`<slot name="anchor" ${slotted.slotted("_slottedAnchor")}></slot>`;
|
package/shared/anchored.js
CHANGED
|
@@ -2,54 +2,17 @@ import { a as attr, o as observable, h as html, D as DOM } from './index.js';
|
|
|
2
2
|
import { s as slotted } from './slotted.js';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
5
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
-
var result =
|
|
6
|
+
var result = void 0 ;
|
|
8
7
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
8
|
if (decorator = decorators[i])
|
|
10
|
-
result = (
|
|
11
|
-
if (
|
|
9
|
+
result = (decorator(target, key, result) ) || result;
|
|
10
|
+
if (result)
|
|
12
11
|
__defProp(target, key, result);
|
|
13
12
|
return result;
|
|
14
13
|
};
|
|
15
14
|
function anchored(constructor) {
|
|
16
15
|
class Decorated extends constructor {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments);
|
|
19
|
-
this.#updateAnchorEl = () => {
|
|
20
|
-
if (!this.isConnected) {
|
|
21
|
-
this._anchorEl = void 0;
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
this.#cleanupObserverIfNeeded();
|
|
25
|
-
let newAnchor = void 0;
|
|
26
|
-
if (this._slottedAnchor && this._slottedAnchor.length > 0) {
|
|
27
|
-
newAnchor = this._slottedAnchor[0];
|
|
28
|
-
} else if (this.anchor instanceof HTMLElement) {
|
|
29
|
-
newAnchor = this.anchor;
|
|
30
|
-
} else if (typeof this.anchor === "string") {
|
|
31
|
-
newAnchor = document.getElementById(this.anchor) ?? void 0;
|
|
32
|
-
if (!newAnchor) {
|
|
33
|
-
this.#observeMissingAnchor(this.anchor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
this._anchorEl = newAnchor;
|
|
37
|
-
};
|
|
38
|
-
this.#observeMissingAnchor = (anchorId) => {
|
|
39
|
-
this.#observer = new MutationObserver(() => {
|
|
40
|
-
const anchor = document.getElementById(anchorId);
|
|
41
|
-
if (anchor) {
|
|
42
|
-
this._anchorEl = anchor;
|
|
43
|
-
this.#cleanupObserverIfNeeded();
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
this.#observer.observe(document.body, { childList: true, subtree: true });
|
|
47
|
-
};
|
|
48
|
-
this.#cleanupObserverIfNeeded = () => {
|
|
49
|
-
this.#observer?.disconnect();
|
|
50
|
-
this.#observer = void 0;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
16
|
/**
|
|
54
17
|
* @internal
|
|
55
18
|
*/
|
|
@@ -70,10 +33,40 @@ function anchored(constructor) {
|
|
|
70
33
|
);
|
|
71
34
|
this.#updateAnchorEl();
|
|
72
35
|
}
|
|
73
|
-
#updateAnchorEl
|
|
36
|
+
#updateAnchorEl = () => {
|
|
37
|
+
if (!this.isConnected) {
|
|
38
|
+
this._anchorEl = void 0;
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.#cleanupObserverIfNeeded();
|
|
42
|
+
let newAnchor = void 0;
|
|
43
|
+
if (this._slottedAnchor && this._slottedAnchor.length > 0) {
|
|
44
|
+
newAnchor = this._slottedAnchor[0];
|
|
45
|
+
} else if (this.anchor instanceof HTMLElement) {
|
|
46
|
+
newAnchor = this.anchor;
|
|
47
|
+
} else if (typeof this.anchor === "string") {
|
|
48
|
+
newAnchor = document.getElementById(this.anchor) ?? void 0;
|
|
49
|
+
if (!newAnchor) {
|
|
50
|
+
this.#observeMissingAnchor(this.anchor);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
this._anchorEl = newAnchor;
|
|
54
|
+
};
|
|
74
55
|
#observer;
|
|
75
|
-
#observeMissingAnchor
|
|
76
|
-
|
|
56
|
+
#observeMissingAnchor = (anchorId) => {
|
|
57
|
+
this.#observer = new MutationObserver(() => {
|
|
58
|
+
const anchor = document.getElementById(anchorId);
|
|
59
|
+
if (anchor) {
|
|
60
|
+
this._anchorEl = anchor;
|
|
61
|
+
this.#cleanupObserverIfNeeded();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
this.#observer.observe(document.body, { childList: true, subtree: true });
|
|
65
|
+
};
|
|
66
|
+
#cleanupObserverIfNeeded = () => {
|
|
67
|
+
this.#observer?.disconnect();
|
|
68
|
+
this.#observer = void 0;
|
|
69
|
+
};
|
|
77
70
|
connectedCallback() {
|
|
78
71
|
super.connectedCallback();
|
|
79
72
|
this.#updateAnchorEl();
|
|
@@ -86,13 +79,13 @@ function anchored(constructor) {
|
|
|
86
79
|
}
|
|
87
80
|
__decorateClass([
|
|
88
81
|
attr
|
|
89
|
-
], Decorated.prototype, "anchor"
|
|
82
|
+
], Decorated.prototype, "anchor");
|
|
90
83
|
__decorateClass([
|
|
91
84
|
observable
|
|
92
|
-
], Decorated.prototype, "_slottedAnchor"
|
|
85
|
+
], Decorated.prototype, "_slottedAnchor");
|
|
93
86
|
__decorateClass([
|
|
94
87
|
observable
|
|
95
|
-
], Decorated.prototype, "_anchorEl"
|
|
88
|
+
], Decorated.prototype, "_anchorEl");
|
|
96
89
|
return Decorated;
|
|
97
90
|
}
|
|
98
91
|
const anchorSlotTemplateFactory = () => html`<slot name="anchor" ${slotted("_slottedAnchor")}></slot>`;
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
6
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
8
|
-
var result =
|
|
7
|
+
var result = void 0 ;
|
|
9
8
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10
9
|
if (decorator = decorators[i])
|
|
11
|
-
result = (
|
|
12
|
-
if (
|
|
10
|
+
result = (decorator(target, key, result) ) || result;
|
|
11
|
+
if (result)
|
|
13
12
|
__defProp(target, key, result);
|
|
14
13
|
return result;
|
|
15
14
|
};
|
|
@@ -18,24 +17,24 @@ class CalendarEvent extends index.FoundationElement {
|
|
|
18
17
|
}
|
|
19
18
|
__decorateClass([
|
|
20
19
|
index.attr
|
|
21
|
-
], CalendarEvent.prototype, "heading"
|
|
20
|
+
], CalendarEvent.prototype, "heading");
|
|
22
21
|
__decorateClass([
|
|
23
22
|
index.attr
|
|
24
|
-
], CalendarEvent.prototype, "description"
|
|
23
|
+
], CalendarEvent.prototype, "description");
|
|
25
24
|
__decorateClass([
|
|
26
25
|
index.attr
|
|
27
|
-
], CalendarEvent.prototype, "connotation"
|
|
26
|
+
], CalendarEvent.prototype, "connotation");
|
|
28
27
|
__decorateClass([
|
|
29
28
|
index.attr
|
|
30
|
-
], CalendarEvent.prototype, "appearance"
|
|
29
|
+
], CalendarEvent.prototype, "appearance");
|
|
31
30
|
__decorateClass([
|
|
32
31
|
index.attr({ converter: index.nullableNumberConverter, attribute: "overlap-count" })
|
|
33
|
-
], CalendarEvent.prototype, "overlapCount"
|
|
32
|
+
], CalendarEvent.prototype, "overlapCount");
|
|
34
33
|
__decorateClass([
|
|
35
34
|
index.attr({ converter: index.nullableNumberConverter })
|
|
36
|
-
], CalendarEvent.prototype, "start"
|
|
35
|
+
], CalendarEvent.prototype, "start");
|
|
37
36
|
__decorateClass([
|
|
38
37
|
index.attr({ converter: index.nullableNumberConverter })
|
|
39
|
-
], CalendarEvent.prototype, "duration"
|
|
38
|
+
], CalendarEvent.prototype, "duration");
|
|
40
39
|
|
|
41
40
|
exports.CalendarEvent = CalendarEvent;
|
package/shared/calendar-event.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { a as attr, F as FoundationElement, n as nullableNumberConverter } from './index.js';
|
|
2
2
|
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
6
|
-
var result =
|
|
5
|
+
var result = void 0 ;
|
|
7
6
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8
7
|
if (decorator = decorators[i])
|
|
9
|
-
result = (
|
|
10
|
-
if (
|
|
8
|
+
result = (decorator(target, key, result) ) || result;
|
|
9
|
+
if (result)
|
|
11
10
|
__defProp(target, key, result);
|
|
12
11
|
return result;
|
|
13
12
|
};
|
|
@@ -16,24 +15,24 @@ class CalendarEvent extends FoundationElement {
|
|
|
16
15
|
}
|
|
17
16
|
__decorateClass([
|
|
18
17
|
attr
|
|
19
|
-
], CalendarEvent.prototype, "heading"
|
|
18
|
+
], CalendarEvent.prototype, "heading");
|
|
20
19
|
__decorateClass([
|
|
21
20
|
attr
|
|
22
|
-
], CalendarEvent.prototype, "description"
|
|
21
|
+
], CalendarEvent.prototype, "description");
|
|
23
22
|
__decorateClass([
|
|
24
23
|
attr
|
|
25
|
-
], CalendarEvent.prototype, "connotation"
|
|
24
|
+
], CalendarEvent.prototype, "connotation");
|
|
26
25
|
__decorateClass([
|
|
27
26
|
attr
|
|
28
|
-
], CalendarEvent.prototype, "appearance"
|
|
27
|
+
], CalendarEvent.prototype, "appearance");
|
|
29
28
|
__decorateClass([
|
|
30
29
|
attr({ converter: nullableNumberConverter, attribute: "overlap-count" })
|
|
31
|
-
], CalendarEvent.prototype, "overlapCount"
|
|
30
|
+
], CalendarEvent.prototype, "overlapCount");
|
|
32
31
|
__decorateClass([
|
|
33
32
|
attr({ converter: nullableNumberConverter })
|
|
34
|
-
], CalendarEvent.prototype, "start"
|
|
33
|
+
], CalendarEvent.prototype, "start");
|
|
35
34
|
__decorateClass([
|
|
36
35
|
attr({ converter: nullableNumberConverter })
|
|
37
|
-
], CalendarEvent.prototype, "duration"
|
|
36
|
+
], CalendarEvent.prototype, "duration");
|
|
38
37
|
|
|
39
38
|
export { CalendarEvent as C };
|
package/shared/definition.cjs
CHANGED
|
@@ -76,16 +76,15 @@ index.__decorate([
|
|
|
76
76
|
], AccordionItem$1.prototype, "id", void 0);
|
|
77
77
|
applyMixins.applyMixins(AccordionItem$1, startEnd.StartEnd);
|
|
78
78
|
|
|
79
|
-
const styles = ":host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100))}.heading-button:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.heading-button.size-condensed{font:var(--vvd-typography-base-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:20%;flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}
|
|
79
|
+
const styles = ":host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100))}.heading-button:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.heading-button.size-condensed{font:var(--vvd-typography-base-extended-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:20%;flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}";
|
|
80
80
|
|
|
81
81
|
var __defProp = Object.defineProperty;
|
|
82
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
83
82
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
84
|
-
var result =
|
|
83
|
+
var result = void 0 ;
|
|
85
84
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
86
85
|
if (decorator = decorators[i])
|
|
87
|
-
result = (
|
|
88
|
-
if (
|
|
86
|
+
result = (decorator(target, key, result) ) || result;
|
|
87
|
+
if (result)
|
|
89
88
|
__defProp(target, key, result);
|
|
90
89
|
return result;
|
|
91
90
|
};
|
|
@@ -97,16 +96,16 @@ class AccordionItem extends AccordionItem$1 {
|
|
|
97
96
|
}
|
|
98
97
|
__decorateClass([
|
|
99
98
|
index.attr
|
|
100
|
-
], AccordionItem.prototype, "heading"
|
|
99
|
+
], AccordionItem.prototype, "heading");
|
|
101
100
|
__decorateClass([
|
|
102
101
|
index.attr({ mode: "boolean", attribute: "no-indicator" })
|
|
103
|
-
], AccordionItem.prototype, "noIndicator"
|
|
102
|
+
], AccordionItem.prototype, "noIndicator");
|
|
104
103
|
__decorateClass([
|
|
105
104
|
index.attr
|
|
106
|
-
], AccordionItem.prototype, "meta"
|
|
105
|
+
], AccordionItem.prototype, "meta");
|
|
107
106
|
__decorateClass([
|
|
108
107
|
index.attr
|
|
109
|
-
], AccordionItem.prototype, "size"
|
|
108
|
+
], AccordionItem.prototype, "size");
|
|
110
109
|
applyMixins.applyMixins(AccordionItem, affix.AffixIconWithTrailing);
|
|
111
110
|
|
|
112
111
|
const header = (context, hTag) => {
|
package/shared/definition.js
CHANGED
|
@@ -74,16 +74,15 @@ __decorate([
|
|
|
74
74
|
], AccordionItem$1.prototype, "id", void 0);
|
|
75
75
|
applyMixins(AccordionItem$1, StartEnd);
|
|
76
76
|
|
|
77
|
-
const styles = ":host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100))}.heading-button:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.heading-button.size-condensed{font:var(--vvd-typography-base-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:20%;flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}
|
|
77
|
+
const styles = ":host{display:flex;box-sizing:border-box;flex-direction:column}.heading-container{margin:0}.heading-button{--focus-stroke-gap-color: transparent;display:flex;width:100%;align-items:center;padding:16px;border:none;background-color:var(--_appearance-color-fill);color:var(--_appearance-color-text);cursor:pointer;text-align:left}.heading-button{--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.heading-button:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.heading-button:where(.active,:active):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--_connotation-color-primary);--_appearance-color-fill: var(--_connotation-color-soft);--_appearance-color-outline: transparent}.heading-button{--_connotation-color-primary: var(--vvd-accordion-item-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-faint: var(--vvd-accordion-item-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-accordion-item-accent-soft, var(--vvd-color-neutral-100))}.heading-button:focus-visible{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}.heading-button.size-condensed{font:var(--vvd-typography-base-extended-bold);gap:12px}.heading-button:not(.size-condensed){font:var(--vvd-typography-heading-4);gap:16px}.heading-content{flex:auto}.meta{overflow:hidden;max-width:20%;flex-shrink:0;color:var(--vvd-color-neutral-600);text-align:end;text-overflow:ellipsis;white-space:nowrap}.heading-button:not(.size-condensed) .meta{font:var(--vvd-typography-base-bold)}.heading-button.size-condensed .meta{font:var(--vvd-typography-base-condensed-bold)}.region{display:none;padding:8px 32px 24px 16px}.region:not(.size-condensed).padded{padding-inline-start:52px}:host([expanded]) .region{display:block}.region.size-condensed.padded{padding-inline-start:44px}slot[name=icon]{color:var(--vvd-color-neutral-600)}.heading-button:not(.size-condensed) slot[name=icon]{font:inherit}.heading-button.size-condensed slot[name=icon]{font:var(--vvd-typography-base-extended)}:host(:not([icon-trailing])) slot[name=icon]:last-of-type{color:var(--_appearance-color-text)}";
|
|
78
78
|
|
|
79
79
|
var __defProp = Object.defineProperty;
|
|
80
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
81
80
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
82
|
-
var result =
|
|
81
|
+
var result = void 0 ;
|
|
83
82
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
84
83
|
if (decorator = decorators[i])
|
|
85
|
-
result = (
|
|
86
|
-
if (
|
|
84
|
+
result = (decorator(target, key, result) ) || result;
|
|
85
|
+
if (result)
|
|
87
86
|
__defProp(target, key, result);
|
|
88
87
|
return result;
|
|
89
88
|
};
|
|
@@ -95,16 +94,16 @@ class AccordionItem extends AccordionItem$1 {
|
|
|
95
94
|
}
|
|
96
95
|
__decorateClass([
|
|
97
96
|
attr
|
|
98
|
-
], AccordionItem.prototype, "heading"
|
|
97
|
+
], AccordionItem.prototype, "heading");
|
|
99
98
|
__decorateClass([
|
|
100
99
|
attr({ mode: "boolean", attribute: "no-indicator" })
|
|
101
|
-
], AccordionItem.prototype, "noIndicator"
|
|
100
|
+
], AccordionItem.prototype, "noIndicator");
|
|
102
101
|
__decorateClass([
|
|
103
102
|
attr
|
|
104
|
-
], AccordionItem.prototype, "meta"
|
|
103
|
+
], AccordionItem.prototype, "meta");
|
|
105
104
|
__decorateClass([
|
|
106
105
|
attr
|
|
107
|
-
], AccordionItem.prototype, "size"
|
|
106
|
+
], AccordionItem.prototype, "size");
|
|
108
107
|
applyMixins(AccordionItem, AffixIconWithTrailing);
|
|
109
108
|
|
|
110
109
|
const header = (context, hTag) => {
|
package/shared/definition10.cjs
CHANGED