@haiilo/catalyst 13.5.1-beta → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.css +257 -192
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.esm.js +2 -2
- package/dist/catalyst/loader.esm.js.map +1 -1
- package/dist/catalyst/p--__C9zxv.js +3 -0
- package/dist/catalyst/p--__C9zxv.js.map +1 -0
- package/dist/catalyst/{p-8e3e3018.entry.js → p-4f7d069a.entry.js} +4 -4
- package/dist/catalyst/p-4f7d069a.entry.js.map +1 -0
- package/dist/catalyst/{p-D80xhZLG.js → p-Db1nOa1D.js} +2 -2
- package/dist/catalyst/{p-D80xhZLG.js.map → p-Db1nOa1D.js.map} +1 -1
- package/dist/catalyst/scss/index.scss +3 -3
- package/dist/cjs/cat-alert_30.cjs.entry.js +122 -124
- package/dist/cjs/catalyst.cjs.js +4 -7
- package/dist/cjs/catalyst.cjs.js.map +1 -1
- package/dist/cjs/{index-B6viy7Jl.js → index-CgyHmlOr.js} +736 -736
- package/dist/cjs/{index-B6viy7Jl.js.map → index-CgyHmlOr.js.map} +1 -1
- package/dist/cjs/index-Cl5qCbJO.js +1755 -0
- package/dist/cjs/index-Cl5qCbJO.js.map +1 -0
- package/dist/cjs/index.cjs.js +1 -3
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cat-alert/cat-alert.js +4 -4
- package/dist/collection/components/cat-avatar/cat-avatar.js +13 -13
- package/dist/collection/components/cat-badge/cat-badge.js +9 -9
- package/dist/collection/components/cat-button/cat-button.js +31 -33
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-button-group/cat-button-group.js +2 -2
- package/dist/collection/components/cat-checkbox/cat-checkbox.js +22 -23
- package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
- package/dist/collection/components/cat-date/cat-date.js +39 -40
- package/dist/collection/components/cat-date/cat-date.js.map +1 -1
- package/dist/collection/components/cat-date-inline/cat-date-inline.js +19 -19
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +41 -43
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +10 -11
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
- package/dist/collection/components/cat-dropdown/cat-dropdown.js +11 -11
- package/dist/collection/components/cat-form-group/cat-form-group.js +4 -4
- package/dist/collection/components/cat-icon/cat-icon.js +7 -7
- package/dist/collection/components/cat-input/cat-input.js +51 -54
- package/dist/collection/components/cat-input/cat-input.js.map +1 -1
- package/dist/collection/components/cat-pagination/cat-pagination.js +10 -10
- package/dist/collection/components/cat-radio/cat-radio.js +16 -17
- package/dist/collection/components/cat-radio/cat-radio.js.map +1 -1
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +8 -8
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +7 -7
- package/dist/collection/components/cat-select/cat-select.js +35 -36
- package/dist/collection/components/cat-select/cat-select.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.js +5 -5
- package/dist/collection/components/cat-spinner/cat-spinner.js +4 -4
- package/dist/collection/components/cat-tab/cat-tab.js +15 -16
- package/dist/collection/components/cat-tab/cat-tab.js.map +1 -1
- package/dist/collection/components/cat-tabs/cat-tabs.js +4 -4
- package/dist/collection/components/cat-tag/cat-tag.js +20 -23
- package/dist/collection/components/cat-tag/cat-tag.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.js +32 -33
- package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
- package/dist/collection/components/cat-time/cat-time.js +40 -41
- package/dist/collection/components/cat-time/cat-time.js.map +1 -1
- package/dist/collection/components/cat-toggle/cat-toggle.js +20 -21
- package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
- package/dist/collection/components/cat-tooltip/cat-tooltip.js +8 -8
- package/dist/collection/scss/_variables.tokens.scss +2 -2
- package/dist/collection/scss/index.scss +3 -3
- package/dist/components/cat-alert.js +5 -3
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-avatar2.js +5 -3
- package/dist/components/cat-avatar2.js.map +1 -1
- package/dist/components/cat-badge.js +5 -3
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button-group.js +5 -3
- package/dist/components/cat-button-group.js.map +1 -1
- package/dist/components/cat-button2.js +7 -5
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js +5 -3
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox2.js +6 -4
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-date-inline2.js +5 -3
- package/dist/components/cat-date-inline2.js.map +1 -1
- package/dist/components/cat-date.js +6 -4
- package/dist/components/cat-date.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +6 -4
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +7 -5
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js +5 -3
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-form-group.js +5 -3
- package/dist/components/cat-form-group.js.map +1 -1
- package/dist/components/cat-form-hint.js.map +1 -1
- package/dist/components/cat-i18n-registry.js.map +1 -1
- package/dist/components/cat-icon-registry.js.map +1 -1
- package/dist/components/cat-icon2.js +5 -3
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input2.js +8 -6
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-pagination.js +5 -3
- package/dist/components/cat-pagination.js.map +1 -1
- package/dist/components/cat-radio-group.js +5 -3
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +6 -4
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-scrollable2.js +123 -121
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +5 -3
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +6 -4
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +5 -3
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-spinner2.js +5 -3
- package/dist/components/cat-spinner2.js.map +1 -1
- package/dist/components/cat-tab.js +6 -4
- package/dist/components/cat-tab.js.map +1 -1
- package/dist/components/cat-tabs.js +5 -3
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-tag.js +7 -5
- package/dist/components/cat-tag.js.map +1 -1
- package/dist/components/cat-textarea.js +6 -4
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-time.js +6 -4
- package/dist/components/cat-time.js.map +1 -1
- package/dist/components/cat-toggle.js +6 -4
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/components/cat-tooltip.js +5 -3
- package/dist/components/cat-tooltip.js.map +1 -1
- package/dist/components/index2.js +735 -735
- package/dist/components/index2.js.map +1 -1
- package/dist/components/media-matcher.js +3 -3
- package/dist/components/media-matcher.js.map +1 -1
- package/dist/esm/cat-alert_30.entry.js +122 -124
- package/dist/esm/catalyst.js +4 -7
- package/dist/esm/catalyst.js.map +1 -1
- package/dist/esm/index--__C9zxv.js +1727 -0
- package/dist/esm/index--__C9zxv.js.map +1 -0
- package/dist/esm/{index-D80xhZLG.js → index-Db1nOa1D.js} +737 -737
- package/dist/esm/{index-D80xhZLG.js.map → index-Db1nOa1D.js.map} +1 -1
- package/dist/esm/index.js +2 -4
- package/dist/esm/loader.js +3 -6
- package/dist/esm/loader.js.map +1 -1
- package/dist/types/components/cat-select/cat-select.d.ts +2 -2
- package/dist/types/components.d.ts +396 -8
- package/dist/types/stencil-public-runtime.d.ts +62 -8
- package/package.json +24 -24
- package/dist/catalyst/p-8e3e3018.entry.js.map +0 -1
- package/dist/catalyst/p-CzxFlAEB.js +0 -3
- package/dist/catalyst/p-CzxFlAEB.js.map +0 -1
- package/dist/catalyst/p-DQuL1Twl.js +0 -2
- package/dist/catalyst/p-DQuL1Twl.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/cat-alert_30.cjs.entry.js.map +0 -1
- package/dist/cjs/index-Bp_C-J2p.js +0 -1597
- package/dist/cjs/index-Bp_C-J2p.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/cat-alert_30.entry.js.map +0 -1
- package/dist/esm/index-CzxFlAEB.js +0 -1588
- package/dist/esm/index-CzxFlAEB.js.map +0 -1
|
@@ -3,9 +3,11 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
3
3
|
const catRadioGroupCss = ":host{display:block}:host([hidden]){display:none}";
|
|
4
4
|
|
|
5
5
|
const CatRadioGroup$1 = /*@__PURE__*/ proxyCustomElement(class CatRadioGroup extends HTMLElement {
|
|
6
|
-
constructor() {
|
|
6
|
+
constructor(registerHost) {
|
|
7
7
|
super();
|
|
8
|
-
|
|
8
|
+
if (registerHost !== false) {
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
}
|
|
9
11
|
this.__attachShadow();
|
|
10
12
|
this.catChange = createEvent(this, "catChange", 7);
|
|
11
13
|
this.catFocus = createEvent(this, "catFocus", 7);
|
|
@@ -102,7 +104,7 @@ const CatRadioGroup$1 = /*@__PURE__*/ proxyCustomElement(class CatRadioGroup ext
|
|
|
102
104
|
"labelLeft": ["onLabelLeftChanged"]
|
|
103
105
|
}; }
|
|
104
106
|
static get style() { return catRadioGroupCss; }
|
|
105
|
-
}, [
|
|
107
|
+
}, [257, "cat-radio-group", {
|
|
106
108
|
"name": [1],
|
|
107
109
|
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AI,CAAC;AAC7B,QAAA,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC;AAC/B,QAAA,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC;AACrC,QAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC;;IAGjC,cAAc,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE;YAC7B,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,YAAY,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC7G,YAAA,MAAM,iBAAiB,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,IAAI,KAAK,CAAC,OAAO,CAAC;AAC9E,YAAA,IAAI,CAAC,aAAa,CAAC,iBAAiB,IAAI,CAAC,GAAG,iBAAiB,GAAG,CAAC,CAAC,CAAC;kBAC/D,aAAa,CAAC,OAAO;AACvB,kBAAE,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CatRadioGroup","__stencil_proxyCustomElement"],"sources":["src/components/cat-radio-group/cat-radio-group.scss?tag=cat-radio-group&encapsulation=shadow","src/components/cat-radio-group/cat-radio-group.tsx"],"sourcesContent":["@use 'variables' as *;\n@use 'mixins' as *;\n\n:host {\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, Watch } from '@stencil/core';\n\n/**\n * A group of radio buttons.\n */\n@Component({\n tag: 'cat-radio-group',\n styleUrl: 'cat-radio-group.scss',\n shadow: true\n})\nexport class CatRadioGroup {\n private catRadioGroup: HTMLCatRadioElement[] = [];\n private mutationObserver?: MutationObserver;\n\n @Element() hostElement!: HTMLElement;\n\n /**\n * The name of the radio group component.\n */\n @Prop() name?: string;\n\n /**\n * The value of the radio group.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Prop({ mutable: true }) value?: any;\n\n /**\n * Whether this radio group is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * Adds an accessible label for the radio group that\n * it is only shown in assistive technologies, like screen readers.\n */\n @Prop({ attribute: 'a11y-label' }) a11yLabel?: string;\n\n /**\n * Whether the label of the radios should appear to the left of them.\n */\n @Prop() labelLeft = false;\n\n /**\n * Emitted when the value is changed.\n */\n @Event() catChange!: EventEmitter<boolean | string>;\n\n /**\n * Emitted when the radio group received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the radio group loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n @Watch('name')\n onNameChanged(newName?: string) {\n this.catRadioGroup.forEach(catRadio => (catRadio.name = newName));\n }\n\n @Watch('value')\n onValueChanged(newValue?: string) {\n this.catRadioGroup.forEach(catRadio => (catRadio.checked = catRadio.value === newValue));\n this.updateTabIndex();\n }\n\n @Watch('disabled')\n onDisabledChanged(disabled: boolean) {\n this.catRadioGroup.forEach(catRadio => (catRadio.disabled = catRadio.disabled || disabled));\n }\n\n @Watch('labelLeft')\n onLabelLeftChanged(labelLeft: boolean) {\n this.catRadioGroup.forEach(catRadio => (catRadio.labelLeft = catRadio.labelLeft || labelLeft));\n }\n\n componentDidLoad(): void {\n this.init();\n this.mutationObserver = new MutationObserver(\n mutations => mutations.some(value => value.target.nodeName === 'CAT-RADIO') && this.init()\n );\n this.mutationObserver?.observe(this.hostElement, {\n childList: true,\n attributes: true,\n subtree: true\n });\n }\n\n disconnectedCallback() {\n this.mutationObserver?.disconnect();\n }\n\n @Listen('keydown')\n onKeydown(event: KeyboardEvent): void {\n if (['ArrowDown', 'ArrowUp', 'ArrowRight', 'ArrowLeft'].includes(event.key) && this.catRadioGroup.length) {\n const targetElements = this.catRadioGroup.filter(catRadio => !catRadio.disabled);\n const activeElement = document.activeElement as HTMLCatRadioElement;\n const activeIdx = this.catRadioGroup.findIndex(catRadio => catRadio === activeElement);\n const activeOff = ['ArrowDown', 'ArrowRight'].includes(event.key) ? 1 : -1;\n const targetIdx = activeIdx < 0 ? 0 : (activeIdx + activeOff + targetElements.length) % targetElements.length;\n targetElements[targetIdx].doFocus();\n targetElements[targetIdx].shadowRoot?.querySelector('input')?.click();\n this.updateTabIndex();\n event.preventDefault();\n }\n }\n\n @Listen('input')\n onInput(event: MouseEvent): void {\n const radio = this.catRadioGroup.find(radio => radio === event.target);\n if (radio?.localName === 'cat-radio') {\n this.value = radio?.checked ? radio?.value : undefined;\n this.catChange.emit(this.value);\n }\n }\n\n @Listen('focus', { capture: true })\n onFocus(event: FocusEvent): void {\n if (!event.relatedTarget) {\n this.catBlur.emit(event);\n }\n }\n\n @Listen('blur', { capture: true })\n onBlur(event: FocusEvent): void {\n if (!event.relatedTarget) {\n this.catBlur.emit(event);\n }\n }\n\n render() {\n return (\n <div role=\"radiogroup\" aria-label={this.a11yLabel}>\n <slot></slot>\n </div>\n );\n }\n\n private init() {\n this.catRadioGroup = Array.from(this.hostElement.querySelectorAll(`cat-radio`));\n this.onNameChanged(this.name);\n this.onValueChanged(this.value);\n this.onDisabledChanged(this.disabled);\n this.onLabelLeftChanged(this.labelLeft);\n }\n\n private updateTabIndex() {\n if (this.catRadioGroup.length) {\n this.catRadioGroup.forEach(value => value.shadowRoot?.querySelector('input')?.setAttribute('tabindex', '-1'));\n const checkedRadioIndex = this.catRadioGroup.findIndex(value => value.checked);\n this.catRadioGroup[checkedRadioIndex >= 0 ? checkedRadioIndex : 0].shadowRoot\n ?.querySelector('input')\n ?.setAttribute('tabindex', '0');\n }\n }\n}\n"],"version":3}
|
|
@@ -5,9 +5,11 @@ const catRadioCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-s
|
|
|
5
5
|
|
|
6
6
|
let nextUniqueId = 0;
|
|
7
7
|
const CatRadio$1 = /*@__PURE__*/ proxyCustomElement(class CatRadio extends HTMLElement {
|
|
8
|
-
constructor() {
|
|
8
|
+
constructor(registerHost) {
|
|
9
9
|
super();
|
|
10
|
-
|
|
10
|
+
if (registerHost !== false) {
|
|
11
|
+
this.__registerHost();
|
|
12
|
+
}
|
|
11
13
|
this.__attachShadow();
|
|
12
14
|
this.catChange = createEvent(this, "catChange", 7);
|
|
13
15
|
this.catFocus = createEvent(this, "catFocus", 7);
|
|
@@ -99,7 +101,7 @@ const CatRadio$1 = /*@__PURE__*/ proxyCustomElement(class CatRadio extends HTMLE
|
|
|
99
101
|
static get delegatesFocus() { return true; }
|
|
100
102
|
get hostElement() { return this; }
|
|
101
103
|
static get style() { return catRadioCss; }
|
|
102
|
-
}, [
|
|
104
|
+
}, [273, "cat-radio", {
|
|
103
105
|
"checked": [1028],
|
|
104
106
|
"disabled": [4],
|
|
105
107
|
"identifier": [1],
|
|
@@ -111,7 +113,7 @@ const CatRadio$1 = /*@__PURE__*/ proxyCustomElement(class CatRadio extends HTMLE
|
|
|
111
113
|
"hint": [1],
|
|
112
114
|
"labelLeft": [4, "label-left"],
|
|
113
115
|
"alignment": [1],
|
|
114
|
-
"nativeAttributes": [16
|
|
116
|
+
"nativeAttributes": [16],
|
|
115
117
|
"testId": [1, "test-id"],
|
|
116
118
|
"hasSlottedLabel": [32],
|
|
117
119
|
"hasSlottedHint": [32],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"cat-radio.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,ijEAAijE;;ACGrkE,IAAI,YAAY,GAAG,CAAC;MAkBPA,UAAQ,iBAAAC,kBAAA,CAAA,MAAA,QAAA,SAAA,WAAA,CAAA;AAPrB,IAAA,WAAA,GAAA;;;;;;;AAQmB,QAAA,IAAA,CAAA,GAAG,GAAG,aAAa,EAAE,YAAY,EAAE;AAS3C,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK;AAEvB,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAE/B;;AAEG;AACsB,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,IAAA,MAAM,CAAC,KAAiB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CatRadio","__stencil_proxyCustomElement"],"sources":["src/components/cat-radio/cat-radio.scss?tag=cat-radio&encapsulation=shadow","src/components/cat-radio/cat-radio.tsx"],"sourcesContent":["@use 'variables' as *;\n@use 'mixins' as *;\n@use 'src/components/cat-form-hint/cat-form-hint';\n\n$radio-width: 1.25rem;\n$radio-height: 1.25rem;\n\n:host {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n\n:host([hidden]) {\n display: none;\n}\n\nlabel {\n display: flex;\n gap: 0.5rem;\n @include cat-body('m');\n cursor: pointer;\n}\n\n.label-left {\n flex-direction: row-reverse;\n}\n\n.radio {\n display: flex;\n position: relative;\n align-self: flex-start;\n}\n\n.circle-placeholder {\n width: calc($radio-width + 1px);\n flex-shrink: 0;\n}\n\n.circle {\n position: absolute;\n width: 0.75rem;\n height: 0.75rem;\n background-color: cat-token('color.theme.primary.bg');\n border-radius: 10rem;\n top: calc(50% - 0.375rem);\n left: calc(50% - 0.375rem);\n visibility: hidden;\n pointer-events: none;\n}\n\ninput {\n margin: 0;\n width: $radio-width;\n height: $radio-height;\n appearance: none;\n background-color: cat-token('color.ui.background.input');\n border: 1px solid cat-token('color.ui.border.dark');\n border-radius: 10rem;\n cursor: inherit;\n\n &:checked {\n border-color: cat-token('color.theme.primary.bg');\n\n + .circle {\n visibility: visible;\n }\n }\n\n &:focus-visible {\n outline: 2px solid cat-token('color.ui.border.focus');\n outline-offset: 1px;\n }\n}\n\n:host(.cat-error) {\n input {\n border-color: cat-token('color.theme.danger.bg');\n }\n\n .circle {\n background-color: cat-token('color.theme.danger.bg');\n }\n}\n\n.label {\n flex: 1 1 auto;\n\n .is-hidden & {\n @include cat-visually-hidden;\n }\n}\n\n.is-disabled {\n cursor: not-allowed;\n color: cat-token('color.ui.font.muted');\n\n input {\n background-color: cat-token('color.ui.background.muted');\n\n &:checked {\n border-color: cat-token('color.ui.border.dark');\n }\n }\n\n .circle {\n background-color: cat-token('color.ui.border.dark');\n }\n}\n\n.align-center .radio {\n align-self: center;\n}\n\n.align-end .radio {\n align-self: flex-end;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State } from '@stencil/core';\nimport { CatFormHint } from '../cat-form-hint/cat-form-hint';\n\nlet nextUniqueId = 0;\n\n/**\n * Radio Buttons are graphical interface elements that allow user to choose\n * only one of a predefined set of mutually exclusive options.\n *\n * @slot hint - Optional hint element to be displayed with the radio.\n * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.\n * @part label - The label content.\n * @part input - The native input element.\n */\n@Component({\n tag: 'cat-radio',\n styleUrl: 'cat-radio.scss',\n shadow: {\n delegatesFocus: true\n }\n})\nexport class CatRadio {\n private readonly _id = `cat-radio-${++nextUniqueId}`;\n private get id() {\n return this.identifier || this._id;\n }\n\n private input!: HTMLInputElement;\n\n @Element() hostElement!: HTMLElement;\n\n @State() hasSlottedLabel = false;\n\n @State() hasSlottedHint = false;\n\n /**\n * Whether this radio is checked.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * Whether this radio is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * A unique identifier for the input.\n */\n @Prop() identifier?: string;\n\n /**\n * The label of the radio that is visible.\n */\n @Prop() label = '';\n\n /**\n * Visually hide the label, but still show it to assistive technologies like screen readers.\n */\n @Prop() labelHidden = false;\n\n /**\n * The name of the radio component.\n */\n @Prop() name?: string;\n\n /**\n * Whether the radio is required.\n */\n @Prop() required = false;\n\n /**\n * The value of the radio component.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Prop() value: any = '';\n\n /**\n * Optional hint text(s) to be displayed with the radio.\n */\n @Prop() hint?: string | string[];\n\n /**\n * Whether the label should appear to the left of the radio component.\n */\n @Prop() labelLeft = false;\n\n /**\n * The alignment of the checkbox.\n */\n @Prop() alignment: 'center' | 'top' | 'bottom' = 'top';\n\n /**\n * Attributes that will be added to the native HTML input element.\n */\n @Prop() nativeAttributes?: { [key: string]: string };\n\n /**\n * A unique identifier for the underlying native element that is used for\n * testing purposes. The attribute is added as `data-test` attribute and acts\n * as a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`.\n */\n @Prop() testId?: string;\n\n /**\n * Emitted when the radio is changed.\n */\n @Event() catChange!: EventEmitter<boolean | string>;\n\n /**\n * Emitted when the radio received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the radio loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n componentWillRender(): void {\n this.hasSlottedLabel = !!this.hostElement.querySelector('[slot=\"label\"]');\n this.hasSlottedHint = !!this.hostElement.querySelector('[slot=\"hint\"]');\n }\n\n /**\n * Programmatically move focus to the radio button. Use this method instead of\n * `input.focus()`.\n *\n * @param options An optional object providing options to control aspects of\n * the focusing process.\n */\n @Method()\n async doFocus(options?: FocusOptions): Promise<void> {\n this.input.focus(options);\n }\n\n /**\n * Programmatically remove focus from the radio button. Use this method\n * instead of `input.blur()`.\n */\n @Method()\n async doBlur(): Promise<void> {\n this.input.blur();\n }\n\n render() {\n this.hostElement.tabIndex = Number(this.hostElement.getAttribute('tabindex')) || 0;\n return (\n <Host>\n <label\n htmlFor={this.id}\n class={{\n 'is-hidden': this.labelHidden,\n 'is-disabled': this.disabled,\n 'label-left': this.labelLeft,\n 'align-center': this.alignment === 'center',\n 'align-end': this.alignment === 'bottom'\n }}\n role=\"radio\"\n aria-checked={this.checked ? 'true' : 'false'}\n >\n <span class=\"radio\">\n <input\n data-test={this.testId}\n {...this.nativeAttributes}\n part=\"input\"\n ref={el => (this.input = el as HTMLInputElement)}\n id={this.identifier || this.id}\n type=\"radio\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onInput={this.onInput.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onBlur={this.onBlur.bind(this)}\n aria-describedby={this.hasHint ? this.id + '-hint' : undefined}\n />\n <span class=\"circle\"></span>\n </span>\n <span class=\"label\" part=\"label\">\n {(this.hasSlottedLabel && <slot name=\"label\"></slot>) || this.label}\n </span>\n </label>\n {this.hasHint && (\n <div class={{ 'hint-wrapper': true, 'label-left': this.labelLeft }}>\n <div class=\"circle-placeholder\"></div>\n <CatFormHint id={this.id} hint={this.hint} slottedHint={this.hasSlottedHint && <slot name=\"hint\"></slot>} />\n </div>\n )}\n </Host>\n );\n }\n\n private get hasHint() {\n return !!this.hint || !!this.hasSlottedHint;\n }\n\n private onInput() {\n this.checked = true;\n this.catChange.emit(this.value);\n }\n\n private onFocus(event: FocusEvent) {\n this.catFocus.emit(event);\n }\n\n private onBlur(event: FocusEvent) {\n this.catBlur.emit(event);\n }\n}\n"],"version":3}
|
|
1
|
+
{"file":"cat-radio.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,ijEAAijE;;ACGrkE,IAAI,YAAY,GAAG,CAAC;MAkBPA,UAAQ,iBAAAC,kBAAA,CAAA,MAAA,QAAA,SAAA,WAAA,CAAA;AAPrB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;;;AAQmB,QAAA,IAAA,CAAA,GAAG,GAAG,aAAa,EAAE,YAAY,EAAE;AAS3C,QAAA,IAAe,CAAA,eAAA,GAAG,KAAK;AAEvB,QAAA,IAAc,CAAA,cAAA,GAAG,KAAK;AAE/B;;AAEG;AACsB,QAAA,IAAO,CAAA,OAAA,GAAG,KAAK;AAExC;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAOxB;;AAEG;AACK,QAAA,IAAK,CAAA,KAAA,GAAG,EAAE;AAElB;;AAEG;AACK,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAO3B;;AAEG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAExB;;AAEG;;AAEK,QAAA,IAAK,CA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EAAA,IAAI,EAAC,OAAO,EAAQ,CAAA,KAAK,IAAI,CAAC,KAAK,CAC9D,CACD,EACP,IAAI,CAAC,OAAO,KACX,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,EAAA,EAChE,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,oBAAoB,EAAO,CAAA,EACtC,CAAA,CAAC,WAAW,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,IAAI,CAAC,cAAc,IAAI,CAAA,CAAA,MAAA,EAAA,EAAM,IAAI,EAAC,MAAM,EAAA,CAAQ,EAAI,CAAA,CACxG,CACP,CACI;;AAIX,IAAA,IAAY,OAAO,GAAA;QACjB,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,cAAc;;IAGrC,OAAO,GAAA;AACb,QAAA,IAAI,CAAC,OAAO,GAAG,IAAI;QACnB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;;AAGzB,IAAA,OAAO,CAAC,KAAiB,EAAA;AAC/B,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC;;AAGnB,IAAA,MAAM,CAAC,KAAiB,EAAA;AAC9B,QAAA,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CatRadio","__stencil_proxyCustomElement"],"sources":["src/components/cat-radio/cat-radio.scss?tag=cat-radio&encapsulation=shadow","src/components/cat-radio/cat-radio.tsx"],"sourcesContent":["@use 'variables' as *;\n@use 'mixins' as *;\n@use 'src/components/cat-form-hint/cat-form-hint';\n\n$radio-width: 1.25rem;\n$radio-height: 1.25rem;\n\n:host {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n}\n\n:host([hidden]) {\n display: none;\n}\n\nlabel {\n display: flex;\n gap: 0.5rem;\n @include cat-body('m');\n cursor: pointer;\n}\n\n.label-left {\n flex-direction: row-reverse;\n}\n\n.radio {\n display: flex;\n position: relative;\n align-self: flex-start;\n}\n\n.circle-placeholder {\n width: calc($radio-width + 1px);\n flex-shrink: 0;\n}\n\n.circle {\n position: absolute;\n width: 0.75rem;\n height: 0.75rem;\n background-color: cat-token('color.theme.primary.bg');\n border-radius: 10rem;\n top: calc(50% - 0.375rem);\n left: calc(50% - 0.375rem);\n visibility: hidden;\n pointer-events: none;\n}\n\ninput {\n margin: 0;\n width: $radio-width;\n height: $radio-height;\n appearance: none;\n background-color: cat-token('color.ui.background.input');\n border: 1px solid cat-token('color.ui.border.dark');\n border-radius: 10rem;\n cursor: inherit;\n\n &:checked {\n border-color: cat-token('color.theme.primary.bg');\n\n + .circle {\n visibility: visible;\n }\n }\n\n &:focus-visible {\n outline: 2px solid cat-token('color.ui.border.focus');\n outline-offset: 1px;\n }\n}\n\n:host(.cat-error) {\n input {\n border-color: cat-token('color.theme.danger.bg');\n }\n\n .circle {\n background-color: cat-token('color.theme.danger.bg');\n }\n}\n\n.label {\n flex: 1 1 auto;\n\n .is-hidden & {\n @include cat-visually-hidden;\n }\n}\n\n.is-disabled {\n cursor: not-allowed;\n color: cat-token('color.ui.font.muted');\n\n input {\n background-color: cat-token('color.ui.background.muted');\n\n &:checked {\n border-color: cat-token('color.ui.border.dark');\n }\n }\n\n .circle {\n background-color: cat-token('color.ui.border.dark');\n }\n}\n\n.align-center .radio {\n align-self: center;\n}\n\n.align-end .radio {\n align-self: flex-end;\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State } from '@stencil/core';\nimport { CatFormHint } from '../cat-form-hint/cat-form-hint';\n\nlet nextUniqueId = 0;\n\n/**\n * Radio Buttons are graphical interface elements that allow user to choose\n * only one of a predefined set of mutually exclusive options.\n *\n * @slot hint - Optional hint element to be displayed with the radio.\n * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.\n * @part label - The label content.\n * @part input - The native input element.\n */\n@Component({\n tag: 'cat-radio',\n styleUrl: 'cat-radio.scss',\n shadow: {\n delegatesFocus: true\n }\n})\nexport class CatRadio {\n private readonly _id = `cat-radio-${++nextUniqueId}`;\n private get id() {\n return this.identifier || this._id;\n }\n\n private input!: HTMLInputElement;\n\n @Element() hostElement!: HTMLElement;\n\n @State() hasSlottedLabel = false;\n\n @State() hasSlottedHint = false;\n\n /**\n * Whether this radio is checked.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * Whether this radio is disabled.\n */\n @Prop() disabled = false;\n\n /**\n * A unique identifier for the input.\n */\n @Prop() identifier?: string;\n\n /**\n * The label of the radio that is visible.\n */\n @Prop() label = '';\n\n /**\n * Visually hide the label, but still show it to assistive technologies like screen readers.\n */\n @Prop() labelHidden = false;\n\n /**\n * The name of the radio component.\n */\n @Prop() name?: string;\n\n /**\n * Whether the radio is required.\n */\n @Prop() required = false;\n\n /**\n * The value of the radio component.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n @Prop() value: any = '';\n\n /**\n * Optional hint text(s) to be displayed with the radio.\n */\n @Prop() hint?: string | string[];\n\n /**\n * Whether the label should appear to the left of the radio component.\n */\n @Prop() labelLeft = false;\n\n /**\n * The alignment of the checkbox.\n */\n @Prop() alignment: 'center' | 'top' | 'bottom' = 'top';\n\n /**\n * Attributes that will be added to the native HTML input element.\n */\n @Prop() nativeAttributes?: { [key: string]: string };\n\n /**\n * A unique identifier for the underlying native element that is used for\n * testing purposes. The attribute is added as `data-test` attribute and acts\n * as a shorthand for `nativeAttributes={ 'data-test': 'test-Id' }`.\n */\n @Prop() testId?: string;\n\n /**\n * Emitted when the radio is changed.\n */\n @Event() catChange!: EventEmitter<boolean | string>;\n\n /**\n * Emitted when the radio received focus.\n */\n @Event() catFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the radio loses focus.\n */\n @Event() catBlur!: EventEmitter<FocusEvent>;\n\n componentWillRender(): void {\n this.hasSlottedLabel = !!this.hostElement.querySelector('[slot=\"label\"]');\n this.hasSlottedHint = !!this.hostElement.querySelector('[slot=\"hint\"]');\n }\n\n /**\n * Programmatically move focus to the radio button. Use this method instead of\n * `input.focus()`.\n *\n * @param options An optional object providing options to control aspects of\n * the focusing process.\n */\n @Method()\n async doFocus(options?: FocusOptions): Promise<void> {\n this.input.focus(options);\n }\n\n /**\n * Programmatically remove focus from the radio button. Use this method\n * instead of `input.blur()`.\n */\n @Method()\n async doBlur(): Promise<void> {\n this.input.blur();\n }\n\n render() {\n this.hostElement.tabIndex = Number(this.hostElement.getAttribute('tabindex')) || 0;\n return (\n <Host>\n <label\n htmlFor={this.id}\n class={{\n 'is-hidden': this.labelHidden,\n 'is-disabled': this.disabled,\n 'label-left': this.labelLeft,\n 'align-center': this.alignment === 'center',\n 'align-end': this.alignment === 'bottom'\n }}\n role=\"radio\"\n aria-checked={this.checked ? 'true' : 'false'}\n >\n <span class=\"radio\">\n <input\n data-test={this.testId}\n {...this.nativeAttributes}\n part=\"input\"\n ref={el => (this.input = el as HTMLInputElement)}\n id={this.identifier || this.id}\n type=\"radio\"\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onInput={this.onInput.bind(this)}\n onFocus={this.onFocus.bind(this)}\n onBlur={this.onBlur.bind(this)}\n aria-describedby={this.hasHint ? this.id + '-hint' : undefined}\n />\n <span class=\"circle\"></span>\n </span>\n <span class=\"label\" part=\"label\">\n {(this.hasSlottedLabel && <slot name=\"label\"></slot>) || this.label}\n </span>\n </label>\n {this.hasHint && (\n <div class={{ 'hint-wrapper': true, 'label-left': this.labelLeft }}>\n <div class=\"circle-placeholder\"></div>\n <CatFormHint id={this.id} hint={this.hint} slottedHint={this.hasSlottedHint && <slot name=\"hint\"></slot>} />\n </div>\n )}\n </Host>\n );\n }\n\n private get hasHint() {\n return !!this.hint || !!this.hasSlottedHint;\n }\n\n private onInput() {\n this.checked = true;\n this.catChange.emit(this.value);\n }\n\n private onFocus(event: FocusEvent) {\n this.catFocus.emit(event);\n }\n\n private onBlur(event: FocusEvent) {\n this.catBlur.emit(event);\n }\n}\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { r as
|
|
2
|
+
import { r as requireFilter, a as requireNot, b as requireRaceWith, d as requireArgsOrArgArray, e as requireAudit, f as requireAuditTime, g as requireBuffer, h as requireBufferCount, i as requireBufferTime, j as requireBufferToggle, k as requireBufferWhen, l as requireCatchError, m as requireCombineAll, n as requireCombineLatestAll, o as requireCombineLatest, p as requireCombineLatestWith, q as requireConcat, s as requireConcatAll, t as requireConcatMap, u as requireConcatMapTo, v as requireConcatWith, w as requireConnect, x as requireCount, y as requireDebounce, z as requireDebounceTime, A as requireDefaultIfEmpty, B as requireDelay, C as requireDelayWhen, D as requireDematerialize, E as requireDistinct, F as requireDistinctUntilChanged, G as requireDistinctUntilKeyChanged, H as requireElementAt, I as requireEndWith, J as requireEvery, K as requireExhaust, L as requireExhaustAll, M as requireExhaustMap, N as requireExpand, O as requireFinalize, P as requireFind, Q as requireFindIndex, R as requireFirst, S as requireGroupBy, T as requireIgnoreElements, U as requireIsEmpty, V as requireLast, W as requireMap, X as requireMapTo, Y as requireMaterialize, Z as requireMax, _ as requireMerge, $ as requireMergeAll, a0 as requireFlatMap, a1 as requireMergeMap, a2 as requireMergeMapTo, a3 as requireMergeScan, a4 as requireMergeWith, a5 as requireMin, a6 as requireMulticast, a7 as requireObserveOn, a8 as requireOnErrorResumeNextWith, a9 as requirePairwise, aa as requirePluck, ab as requirePublish, ac as requirePublishBehavior, ad as requirePublishLast, ae as requirePublishReplay, af as requireReduce, ag as requireRepeat, ah as requireRepeatWhen, ai as requireRetry, aj as requireRetryWhen, ak as requireRefCount, al as requireSample, am as requireSampleTime, an as requireScan, ao as requireSequenceEqual, ap as requireShare, aq as requireShareReplay, ar as requireSingle, as as requireSkip, at as requireSkipLast, au as requireSkipUntil, av as requireSkipWhile, aw as requireStartWith, ax as requireSubscribeOn, ay as requireSwitchAll, az as requireSwitchMap, aA as requireSwitchMapTo, aB as requireSwitchScan, aC as requireTake, aD as requireTakeLast, aE as requireTakeUntil, aF as requireTakeWhile, aG as requireTap, aH as requireThrottle, aI as requireThrottleTime, aJ as requireThrowIfEmpty, aK as requireTimeInterval, aL as requireTimeout, aM as requireTimeoutWith, aN as requireTimestamp, aO as requireToArray, aP as requireWindow, aQ as requireWindowCount, aR as requireWindowTime, aS as requireWindowToggle, aT as requireWindowWhen, aU as requireWithLatestFrom, aV as requireZip, aW as requireZipAll, aX as requireZipWith, c as cjsExports } from './index2.js';
|
|
3
3
|
|
|
4
4
|
var operators = {};
|
|
5
5
|
|
|
@@ -12,8 +12,8 @@ function requirePartition () {
|
|
|
12
12
|
hasRequiredPartition = 1;
|
|
13
13
|
Object.defineProperty(partition, "__esModule", { value: true });
|
|
14
14
|
partition.partition = void 0;
|
|
15
|
-
var not_1 = requireNot();
|
|
16
|
-
var filter_1 = requireFilter();
|
|
15
|
+
var not_1 = /*@__PURE__*/ requireNot();
|
|
16
|
+
var filter_1 = /*@__PURE__*/ requireFilter();
|
|
17
17
|
function partition$1(predicate, thisArg) {
|
|
18
18
|
return function (source) {
|
|
19
19
|
return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)];
|
|
@@ -54,8 +54,8 @@ function requireRace () {
|
|
|
54
54
|
};
|
|
55
55
|
Object.defineProperty(race, "__esModule", { value: true });
|
|
56
56
|
race.race = void 0;
|
|
57
|
-
var argsOrArgArray_1 = requireArgsOrArgArray();
|
|
58
|
-
var raceWith_1 = requireRaceWith();
|
|
57
|
+
var argsOrArgArray_1 = /*@__PURE__*/ requireArgsOrArgArray();
|
|
58
|
+
var raceWith_1 = /*@__PURE__*/ requireRaceWith();
|
|
59
59
|
function race$1() {
|
|
60
60
|
var args = [];
|
|
61
61
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -78,231 +78,231 @@ function requireOperators () {
|
|
|
78
78
|
exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0;
|
|
79
79
|
exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0;
|
|
80
80
|
exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0;
|
|
81
|
-
var audit_1 = requireAudit();
|
|
81
|
+
var audit_1 = /*@__PURE__*/ requireAudit();
|
|
82
82
|
Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return audit_1.audit; } });
|
|
83
|
-
var auditTime_1 = requireAuditTime();
|
|
83
|
+
var auditTime_1 = /*@__PURE__*/ requireAuditTime();
|
|
84
84
|
Object.defineProperty(exports, "auditTime", { enumerable: true, get: function () { return auditTime_1.auditTime; } });
|
|
85
|
-
var buffer_1 = requireBuffer();
|
|
85
|
+
var buffer_1 = /*@__PURE__*/ requireBuffer();
|
|
86
86
|
Object.defineProperty(exports, "buffer", { enumerable: true, get: function () { return buffer_1.buffer; } });
|
|
87
|
-
var bufferCount_1 = requireBufferCount();
|
|
87
|
+
var bufferCount_1 = /*@__PURE__*/ requireBufferCount();
|
|
88
88
|
Object.defineProperty(exports, "bufferCount", { enumerable: true, get: function () { return bufferCount_1.bufferCount; } });
|
|
89
|
-
var bufferTime_1 = requireBufferTime();
|
|
89
|
+
var bufferTime_1 = /*@__PURE__*/ requireBufferTime();
|
|
90
90
|
Object.defineProperty(exports, "bufferTime", { enumerable: true, get: function () { return bufferTime_1.bufferTime; } });
|
|
91
|
-
var bufferToggle_1 = requireBufferToggle();
|
|
91
|
+
var bufferToggle_1 = /*@__PURE__*/ requireBufferToggle();
|
|
92
92
|
Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } });
|
|
93
|
-
var bufferWhen_1 = requireBufferWhen();
|
|
93
|
+
var bufferWhen_1 = /*@__PURE__*/ requireBufferWhen();
|
|
94
94
|
Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } });
|
|
95
|
-
var catchError_1 = requireCatchError();
|
|
95
|
+
var catchError_1 = /*@__PURE__*/ requireCatchError();
|
|
96
96
|
Object.defineProperty(exports, "catchError", { enumerable: true, get: function () { return catchError_1.catchError; } });
|
|
97
|
-
var combineAll_1 = requireCombineAll();
|
|
97
|
+
var combineAll_1 = /*@__PURE__*/ requireCombineAll();
|
|
98
98
|
Object.defineProperty(exports, "combineAll", { enumerable: true, get: function () { return combineAll_1.combineAll; } });
|
|
99
|
-
var combineLatestAll_1 = requireCombineLatestAll();
|
|
99
|
+
var combineLatestAll_1 = /*@__PURE__*/ requireCombineLatestAll();
|
|
100
100
|
Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } });
|
|
101
|
-
var combineLatest_1 = requireCombineLatest();
|
|
101
|
+
var combineLatest_1 = /*@__PURE__*/ requireCombineLatest();
|
|
102
102
|
Object.defineProperty(exports, "combineLatest", { enumerable: true, get: function () { return combineLatest_1.combineLatest; } });
|
|
103
|
-
var combineLatestWith_1 = requireCombineLatestWith();
|
|
103
|
+
var combineLatestWith_1 = /*@__PURE__*/ requireCombineLatestWith();
|
|
104
104
|
Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } });
|
|
105
|
-
var concat_1 = requireConcat();
|
|
105
|
+
var concat_1 = /*@__PURE__*/ requireConcat();
|
|
106
106
|
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_1.concat; } });
|
|
107
|
-
var concatAll_1 = requireConcatAll();
|
|
107
|
+
var concatAll_1 = /*@__PURE__*/ requireConcatAll();
|
|
108
108
|
Object.defineProperty(exports, "concatAll", { enumerable: true, get: function () { return concatAll_1.concatAll; } });
|
|
109
|
-
var concatMap_1 = requireConcatMap();
|
|
109
|
+
var concatMap_1 = /*@__PURE__*/ requireConcatMap();
|
|
110
110
|
Object.defineProperty(exports, "concatMap", { enumerable: true, get: function () { return concatMap_1.concatMap; } });
|
|
111
|
-
var concatMapTo_1 = requireConcatMapTo();
|
|
111
|
+
var concatMapTo_1 = /*@__PURE__*/ requireConcatMapTo();
|
|
112
112
|
Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } });
|
|
113
|
-
var concatWith_1 = requireConcatWith();
|
|
113
|
+
var concatWith_1 = /*@__PURE__*/ requireConcatWith();
|
|
114
114
|
Object.defineProperty(exports, "concatWith", { enumerable: true, get: function () { return concatWith_1.concatWith; } });
|
|
115
|
-
var connect_1 = requireConnect();
|
|
115
|
+
var connect_1 = /*@__PURE__*/ requireConnect();
|
|
116
116
|
Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return connect_1.connect; } });
|
|
117
|
-
var count_1 = requireCount();
|
|
117
|
+
var count_1 = /*@__PURE__*/ requireCount();
|
|
118
118
|
Object.defineProperty(exports, "count", { enumerable: true, get: function () { return count_1.count; } });
|
|
119
|
-
var debounce_1 = requireDebounce();
|
|
119
|
+
var debounce_1 = /*@__PURE__*/ requireDebounce();
|
|
120
120
|
Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } });
|
|
121
|
-
var debounceTime_1 = requireDebounceTime();
|
|
121
|
+
var debounceTime_1 = /*@__PURE__*/ requireDebounceTime();
|
|
122
122
|
Object.defineProperty(exports, "debounceTime", { enumerable: true, get: function () { return debounceTime_1.debounceTime; } });
|
|
123
|
-
var defaultIfEmpty_1 = requireDefaultIfEmpty();
|
|
123
|
+
var defaultIfEmpty_1 = /*@__PURE__*/ requireDefaultIfEmpty();
|
|
124
124
|
Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } });
|
|
125
|
-
var delay_1 = requireDelay();
|
|
125
|
+
var delay_1 = /*@__PURE__*/ requireDelay();
|
|
126
126
|
Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return delay_1.delay; } });
|
|
127
|
-
var delayWhen_1 = requireDelayWhen();
|
|
127
|
+
var delayWhen_1 = /*@__PURE__*/ requireDelayWhen();
|
|
128
128
|
Object.defineProperty(exports, "delayWhen", { enumerable: true, get: function () { return delayWhen_1.delayWhen; } });
|
|
129
|
-
var dematerialize_1 = requireDematerialize();
|
|
129
|
+
var dematerialize_1 = /*@__PURE__*/ requireDematerialize();
|
|
130
130
|
Object.defineProperty(exports, "dematerialize", { enumerable: true, get: function () { return dematerialize_1.dematerialize; } });
|
|
131
|
-
var distinct_1 = requireDistinct();
|
|
131
|
+
var distinct_1 = /*@__PURE__*/ requireDistinct();
|
|
132
132
|
Object.defineProperty(exports, "distinct", { enumerable: true, get: function () { return distinct_1.distinct; } });
|
|
133
|
-
var distinctUntilChanged_1 = requireDistinctUntilChanged();
|
|
133
|
+
var distinctUntilChanged_1 = /*@__PURE__*/ requireDistinctUntilChanged();
|
|
134
134
|
Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } });
|
|
135
|
-
var distinctUntilKeyChanged_1 = requireDistinctUntilKeyChanged();
|
|
135
|
+
var distinctUntilKeyChanged_1 = /*@__PURE__*/ requireDistinctUntilKeyChanged();
|
|
136
136
|
Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } });
|
|
137
|
-
var elementAt_1 = requireElementAt();
|
|
137
|
+
var elementAt_1 = /*@__PURE__*/ requireElementAt();
|
|
138
138
|
Object.defineProperty(exports, "elementAt", { enumerable: true, get: function () { return elementAt_1.elementAt; } });
|
|
139
|
-
var endWith_1 = requireEndWith();
|
|
139
|
+
var endWith_1 = /*@__PURE__*/ requireEndWith();
|
|
140
140
|
Object.defineProperty(exports, "endWith", { enumerable: true, get: function () { return endWith_1.endWith; } });
|
|
141
|
-
var every_1 = requireEvery();
|
|
141
|
+
var every_1 = /*@__PURE__*/ requireEvery();
|
|
142
142
|
Object.defineProperty(exports, "every", { enumerable: true, get: function () { return every_1.every; } });
|
|
143
|
-
var exhaust_1 = requireExhaust();
|
|
143
|
+
var exhaust_1 = /*@__PURE__*/ requireExhaust();
|
|
144
144
|
Object.defineProperty(exports, "exhaust", { enumerable: true, get: function () { return exhaust_1.exhaust; } });
|
|
145
|
-
var exhaustAll_1 = requireExhaustAll();
|
|
145
|
+
var exhaustAll_1 = /*@__PURE__*/ requireExhaustAll();
|
|
146
146
|
Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } });
|
|
147
|
-
var exhaustMap_1 = requireExhaustMap();
|
|
147
|
+
var exhaustMap_1 = /*@__PURE__*/ requireExhaustMap();
|
|
148
148
|
Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } });
|
|
149
|
-
var expand_1 = requireExpand();
|
|
149
|
+
var expand_1 = /*@__PURE__*/ requireExpand();
|
|
150
150
|
Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return expand_1.expand; } });
|
|
151
|
-
var filter_1 = requireFilter();
|
|
151
|
+
var filter_1 = /*@__PURE__*/ requireFilter();
|
|
152
152
|
Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_1.filter; } });
|
|
153
|
-
var finalize_1 = requireFinalize();
|
|
153
|
+
var finalize_1 = /*@__PURE__*/ requireFinalize();
|
|
154
154
|
Object.defineProperty(exports, "finalize", { enumerable: true, get: function () { return finalize_1.finalize; } });
|
|
155
|
-
var find_1 = requireFind();
|
|
155
|
+
var find_1 = /*@__PURE__*/ requireFind();
|
|
156
156
|
Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_1.find; } });
|
|
157
|
-
var findIndex_1 = requireFindIndex();
|
|
157
|
+
var findIndex_1 = /*@__PURE__*/ requireFindIndex();
|
|
158
158
|
Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return findIndex_1.findIndex; } });
|
|
159
|
-
var first_1 = requireFirst();
|
|
159
|
+
var first_1 = /*@__PURE__*/ requireFirst();
|
|
160
160
|
Object.defineProperty(exports, "first", { enumerable: true, get: function () { return first_1.first; } });
|
|
161
|
-
var groupBy_1 = requireGroupBy();
|
|
161
|
+
var groupBy_1 = /*@__PURE__*/ requireGroupBy();
|
|
162
162
|
Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return groupBy_1.groupBy; } });
|
|
163
|
-
var ignoreElements_1 = requireIgnoreElements();
|
|
163
|
+
var ignoreElements_1 = /*@__PURE__*/ requireIgnoreElements();
|
|
164
164
|
Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } });
|
|
165
|
-
var isEmpty_1 = requireIsEmpty();
|
|
165
|
+
var isEmpty_1 = /*@__PURE__*/ requireIsEmpty();
|
|
166
166
|
Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return isEmpty_1.isEmpty; } });
|
|
167
|
-
var last_1 = requireLast();
|
|
167
|
+
var last_1 = /*@__PURE__*/ requireLast();
|
|
168
168
|
Object.defineProperty(exports, "last", { enumerable: true, get: function () { return last_1.last; } });
|
|
169
|
-
var map_1 = requireMap();
|
|
169
|
+
var map_1 = /*@__PURE__*/ requireMap();
|
|
170
170
|
Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_1.map; } });
|
|
171
|
-
var mapTo_1 = requireMapTo();
|
|
171
|
+
var mapTo_1 = /*@__PURE__*/ requireMapTo();
|
|
172
172
|
Object.defineProperty(exports, "mapTo", { enumerable: true, get: function () { return mapTo_1.mapTo; } });
|
|
173
|
-
var materialize_1 = requireMaterialize();
|
|
173
|
+
var materialize_1 = /*@__PURE__*/ requireMaterialize();
|
|
174
174
|
Object.defineProperty(exports, "materialize", { enumerable: true, get: function () { return materialize_1.materialize; } });
|
|
175
|
-
var max_1 = requireMax();
|
|
175
|
+
var max_1 = /*@__PURE__*/ requireMax();
|
|
176
176
|
Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } });
|
|
177
|
-
var merge_1 = requireMerge();
|
|
177
|
+
var merge_1 = /*@__PURE__*/ requireMerge();
|
|
178
178
|
Object.defineProperty(exports, "merge", { enumerable: true, get: function () { return merge_1.merge; } });
|
|
179
|
-
var mergeAll_1 = requireMergeAll();
|
|
179
|
+
var mergeAll_1 = /*@__PURE__*/ requireMergeAll();
|
|
180
180
|
Object.defineProperty(exports, "mergeAll", { enumerable: true, get: function () { return mergeAll_1.mergeAll; } });
|
|
181
|
-
var flatMap_1 = requireFlatMap();
|
|
181
|
+
var flatMap_1 = /*@__PURE__*/ requireFlatMap();
|
|
182
182
|
Object.defineProperty(exports, "flatMap", { enumerable: true, get: function () { return flatMap_1.flatMap; } });
|
|
183
|
-
var mergeMap_1 = requireMergeMap();
|
|
183
|
+
var mergeMap_1 = /*@__PURE__*/ requireMergeMap();
|
|
184
184
|
Object.defineProperty(exports, "mergeMap", { enumerable: true, get: function () { return mergeMap_1.mergeMap; } });
|
|
185
|
-
var mergeMapTo_1 = requireMergeMapTo();
|
|
185
|
+
var mergeMapTo_1 = /*@__PURE__*/ requireMergeMapTo();
|
|
186
186
|
Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } });
|
|
187
|
-
var mergeScan_1 = requireMergeScan();
|
|
187
|
+
var mergeScan_1 = /*@__PURE__*/ requireMergeScan();
|
|
188
188
|
Object.defineProperty(exports, "mergeScan", { enumerable: true, get: function () { return mergeScan_1.mergeScan; } });
|
|
189
|
-
var mergeWith_1 = requireMergeWith();
|
|
189
|
+
var mergeWith_1 = /*@__PURE__*/ requireMergeWith();
|
|
190
190
|
Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function () { return mergeWith_1.mergeWith; } });
|
|
191
|
-
var min_1 = requireMin();
|
|
191
|
+
var min_1 = /*@__PURE__*/ requireMin();
|
|
192
192
|
Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } });
|
|
193
|
-
var multicast_1 = requireMulticast();
|
|
193
|
+
var multicast_1 = /*@__PURE__*/ requireMulticast();
|
|
194
194
|
Object.defineProperty(exports, "multicast", { enumerable: true, get: function () { return multicast_1.multicast; } });
|
|
195
|
-
var observeOn_1 = requireObserveOn();
|
|
195
|
+
var observeOn_1 = /*@__PURE__*/ requireObserveOn();
|
|
196
196
|
Object.defineProperty(exports, "observeOn", { enumerable: true, get: function () { return observeOn_1.observeOn; } });
|
|
197
|
-
var onErrorResumeNextWith_1 = requireOnErrorResumeNextWith();
|
|
197
|
+
var onErrorResumeNextWith_1 = /*@__PURE__*/ requireOnErrorResumeNextWith();
|
|
198
198
|
Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNext; } });
|
|
199
|
-
var pairwise_1 = requirePairwise();
|
|
199
|
+
var pairwise_1 = /*@__PURE__*/ requirePairwise();
|
|
200
200
|
Object.defineProperty(exports, "pairwise", { enumerable: true, get: function () { return pairwise_1.pairwise; } });
|
|
201
|
-
var partition_1 = requirePartition();
|
|
201
|
+
var partition_1 = /*@__PURE__*/ requirePartition();
|
|
202
202
|
Object.defineProperty(exports, "partition", { enumerable: true, get: function () { return partition_1.partition; } });
|
|
203
|
-
var pluck_1 = requirePluck();
|
|
203
|
+
var pluck_1 = /*@__PURE__*/ requirePluck();
|
|
204
204
|
Object.defineProperty(exports, "pluck", { enumerable: true, get: function () { return pluck_1.pluck; } });
|
|
205
|
-
var publish_1 = requirePublish();
|
|
205
|
+
var publish_1 = /*@__PURE__*/ requirePublish();
|
|
206
206
|
Object.defineProperty(exports, "publish", { enumerable: true, get: function () { return publish_1.publish; } });
|
|
207
|
-
var publishBehavior_1 = requirePublishBehavior();
|
|
207
|
+
var publishBehavior_1 = /*@__PURE__*/ requirePublishBehavior();
|
|
208
208
|
Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } });
|
|
209
|
-
var publishLast_1 = requirePublishLast();
|
|
209
|
+
var publishLast_1 = /*@__PURE__*/ requirePublishLast();
|
|
210
210
|
Object.defineProperty(exports, "publishLast", { enumerable: true, get: function () { return publishLast_1.publishLast; } });
|
|
211
|
-
var publishReplay_1 = requirePublishReplay();
|
|
211
|
+
var publishReplay_1 = /*@__PURE__*/ requirePublishReplay();
|
|
212
212
|
Object.defineProperty(exports, "publishReplay", { enumerable: true, get: function () { return publishReplay_1.publishReplay; } });
|
|
213
|
-
var race_1 = requireRace();
|
|
213
|
+
var race_1 = /*@__PURE__*/ requireRace();
|
|
214
214
|
Object.defineProperty(exports, "race", { enumerable: true, get: function () { return race_1.race; } });
|
|
215
|
-
var raceWith_1 = requireRaceWith();
|
|
215
|
+
var raceWith_1 = /*@__PURE__*/ requireRaceWith();
|
|
216
216
|
Object.defineProperty(exports, "raceWith", { enumerable: true, get: function () { return raceWith_1.raceWith; } });
|
|
217
|
-
var reduce_1 = requireReduce();
|
|
217
|
+
var reduce_1 = /*@__PURE__*/ requireReduce();
|
|
218
218
|
Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } });
|
|
219
|
-
var repeat_1 = requireRepeat();
|
|
219
|
+
var repeat_1 = /*@__PURE__*/ requireRepeat();
|
|
220
220
|
Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return repeat_1.repeat; } });
|
|
221
|
-
var repeatWhen_1 = requireRepeatWhen();
|
|
221
|
+
var repeatWhen_1 = /*@__PURE__*/ requireRepeatWhen();
|
|
222
222
|
Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } });
|
|
223
|
-
var retry_1 = requireRetry();
|
|
223
|
+
var retry_1 = /*@__PURE__*/ requireRetry();
|
|
224
224
|
Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } });
|
|
225
|
-
var retryWhen_1 = requireRetryWhen();
|
|
225
|
+
var retryWhen_1 = /*@__PURE__*/ requireRetryWhen();
|
|
226
226
|
Object.defineProperty(exports, "retryWhen", { enumerable: true, get: function () { return retryWhen_1.retryWhen; } });
|
|
227
|
-
var refCount_1 = requireRefCount();
|
|
227
|
+
var refCount_1 = /*@__PURE__*/ requireRefCount();
|
|
228
228
|
Object.defineProperty(exports, "refCount", { enumerable: true, get: function () { return refCount_1.refCount; } });
|
|
229
|
-
var sample_1 = requireSample();
|
|
229
|
+
var sample_1 = /*@__PURE__*/ requireSample();
|
|
230
230
|
Object.defineProperty(exports, "sample", { enumerable: true, get: function () { return sample_1.sample; } });
|
|
231
|
-
var sampleTime_1 = requireSampleTime();
|
|
231
|
+
var sampleTime_1 = /*@__PURE__*/ requireSampleTime();
|
|
232
232
|
Object.defineProperty(exports, "sampleTime", { enumerable: true, get: function () { return sampleTime_1.sampleTime; } });
|
|
233
|
-
var scan_1 = requireScan();
|
|
233
|
+
var scan_1 = /*@__PURE__*/ requireScan();
|
|
234
234
|
Object.defineProperty(exports, "scan", { enumerable: true, get: function () { return scan_1.scan; } });
|
|
235
|
-
var sequenceEqual_1 = requireSequenceEqual();
|
|
235
|
+
var sequenceEqual_1 = /*@__PURE__*/ requireSequenceEqual();
|
|
236
236
|
Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } });
|
|
237
|
-
var share_1 = requireShare();
|
|
237
|
+
var share_1 = /*@__PURE__*/ requireShare();
|
|
238
238
|
Object.defineProperty(exports, "share", { enumerable: true, get: function () { return share_1.share; } });
|
|
239
|
-
var shareReplay_1 = requireShareReplay();
|
|
239
|
+
var shareReplay_1 = /*@__PURE__*/ requireShareReplay();
|
|
240
240
|
Object.defineProperty(exports, "shareReplay", { enumerable: true, get: function () { return shareReplay_1.shareReplay; } });
|
|
241
|
-
var single_1 = requireSingle();
|
|
241
|
+
var single_1 = /*@__PURE__*/ requireSingle();
|
|
242
242
|
Object.defineProperty(exports, "single", { enumerable: true, get: function () { return single_1.single; } });
|
|
243
|
-
var skip_1 = requireSkip();
|
|
243
|
+
var skip_1 = /*@__PURE__*/ requireSkip();
|
|
244
244
|
Object.defineProperty(exports, "skip", { enumerable: true, get: function () { return skip_1.skip; } });
|
|
245
|
-
var skipLast_1 = requireSkipLast();
|
|
245
|
+
var skipLast_1 = /*@__PURE__*/ requireSkipLast();
|
|
246
246
|
Object.defineProperty(exports, "skipLast", { enumerable: true, get: function () { return skipLast_1.skipLast; } });
|
|
247
|
-
var skipUntil_1 = requireSkipUntil();
|
|
247
|
+
var skipUntil_1 = /*@__PURE__*/ requireSkipUntil();
|
|
248
248
|
Object.defineProperty(exports, "skipUntil", { enumerable: true, get: function () { return skipUntil_1.skipUntil; } });
|
|
249
|
-
var skipWhile_1 = requireSkipWhile();
|
|
249
|
+
var skipWhile_1 = /*@__PURE__*/ requireSkipWhile();
|
|
250
250
|
Object.defineProperty(exports, "skipWhile", { enumerable: true, get: function () { return skipWhile_1.skipWhile; } });
|
|
251
|
-
var startWith_1 = requireStartWith();
|
|
251
|
+
var startWith_1 = /*@__PURE__*/ requireStartWith();
|
|
252
252
|
Object.defineProperty(exports, "startWith", { enumerable: true, get: function () { return startWith_1.startWith; } });
|
|
253
|
-
var subscribeOn_1 = requireSubscribeOn();
|
|
253
|
+
var subscribeOn_1 = /*@__PURE__*/ requireSubscribeOn();
|
|
254
254
|
Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } });
|
|
255
|
-
var switchAll_1 = requireSwitchAll();
|
|
255
|
+
var switchAll_1 = /*@__PURE__*/ requireSwitchAll();
|
|
256
256
|
Object.defineProperty(exports, "switchAll", { enumerable: true, get: function () { return switchAll_1.switchAll; } });
|
|
257
|
-
var switchMap_1 = requireSwitchMap();
|
|
257
|
+
var switchMap_1 = /*@__PURE__*/ requireSwitchMap();
|
|
258
258
|
Object.defineProperty(exports, "switchMap", { enumerable: true, get: function () { return switchMap_1.switchMap; } });
|
|
259
|
-
var switchMapTo_1 = requireSwitchMapTo();
|
|
259
|
+
var switchMapTo_1 = /*@__PURE__*/ requireSwitchMapTo();
|
|
260
260
|
Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } });
|
|
261
|
-
var switchScan_1 = requireSwitchScan();
|
|
261
|
+
var switchScan_1 = /*@__PURE__*/ requireSwitchScan();
|
|
262
262
|
Object.defineProperty(exports, "switchScan", { enumerable: true, get: function () { return switchScan_1.switchScan; } });
|
|
263
|
-
var take_1 = requireTake();
|
|
263
|
+
var take_1 = /*@__PURE__*/ requireTake();
|
|
264
264
|
Object.defineProperty(exports, "take", { enumerable: true, get: function () { return take_1.take; } });
|
|
265
|
-
var takeLast_1 = requireTakeLast();
|
|
265
|
+
var takeLast_1 = /*@__PURE__*/ requireTakeLast();
|
|
266
266
|
Object.defineProperty(exports, "takeLast", { enumerable: true, get: function () { return takeLast_1.takeLast; } });
|
|
267
|
-
var takeUntil_1 = requireTakeUntil();
|
|
267
|
+
var takeUntil_1 = /*@__PURE__*/ requireTakeUntil();
|
|
268
268
|
Object.defineProperty(exports, "takeUntil", { enumerable: true, get: function () { return takeUntil_1.takeUntil; } });
|
|
269
|
-
var takeWhile_1 = requireTakeWhile();
|
|
269
|
+
var takeWhile_1 = /*@__PURE__*/ requireTakeWhile();
|
|
270
270
|
Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function () { return takeWhile_1.takeWhile; } });
|
|
271
|
-
var tap_1 = requireTap();
|
|
271
|
+
var tap_1 = /*@__PURE__*/ requireTap();
|
|
272
272
|
Object.defineProperty(exports, "tap", { enumerable: true, get: function () { return tap_1.tap; } });
|
|
273
|
-
var throttle_1 = requireThrottle();
|
|
273
|
+
var throttle_1 = /*@__PURE__*/ requireThrottle();
|
|
274
274
|
Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } });
|
|
275
|
-
var throttleTime_1 = requireThrottleTime();
|
|
275
|
+
var throttleTime_1 = /*@__PURE__*/ requireThrottleTime();
|
|
276
276
|
Object.defineProperty(exports, "throttleTime", { enumerable: true, get: function () { return throttleTime_1.throttleTime; } });
|
|
277
|
-
var throwIfEmpty_1 = requireThrowIfEmpty();
|
|
277
|
+
var throwIfEmpty_1 = /*@__PURE__*/ requireThrowIfEmpty();
|
|
278
278
|
Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } });
|
|
279
|
-
var timeInterval_1 = requireTimeInterval();
|
|
279
|
+
var timeInterval_1 = /*@__PURE__*/ requireTimeInterval();
|
|
280
280
|
Object.defineProperty(exports, "timeInterval", { enumerable: true, get: function () { return timeInterval_1.timeInterval; } });
|
|
281
|
-
var timeout_1 = requireTimeout();
|
|
281
|
+
var timeout_1 = /*@__PURE__*/ requireTimeout();
|
|
282
282
|
Object.defineProperty(exports, "timeout", { enumerable: true, get: function () { return timeout_1.timeout; } });
|
|
283
|
-
var timeoutWith_1 = requireTimeoutWith();
|
|
283
|
+
var timeoutWith_1 = /*@__PURE__*/ requireTimeoutWith();
|
|
284
284
|
Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } });
|
|
285
|
-
var timestamp_1 = requireTimestamp();
|
|
285
|
+
var timestamp_1 = /*@__PURE__*/ requireTimestamp();
|
|
286
286
|
Object.defineProperty(exports, "timestamp", { enumerable: true, get: function () { return timestamp_1.timestamp; } });
|
|
287
|
-
var toArray_1 = requireToArray();
|
|
287
|
+
var toArray_1 = /*@__PURE__*/ requireToArray();
|
|
288
288
|
Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return toArray_1.toArray; } });
|
|
289
|
-
var window_1 = requireWindow();
|
|
289
|
+
var window_1 = /*@__PURE__*/ requireWindow();
|
|
290
290
|
Object.defineProperty(exports, "window", { enumerable: true, get: function () { return window_1.window; } });
|
|
291
|
-
var windowCount_1 = requireWindowCount();
|
|
291
|
+
var windowCount_1 = /*@__PURE__*/ requireWindowCount();
|
|
292
292
|
Object.defineProperty(exports, "windowCount", { enumerable: true, get: function () { return windowCount_1.windowCount; } });
|
|
293
|
-
var windowTime_1 = requireWindowTime();
|
|
293
|
+
var windowTime_1 = /*@__PURE__*/ requireWindowTime();
|
|
294
294
|
Object.defineProperty(exports, "windowTime", { enumerable: true, get: function () { return windowTime_1.windowTime; } });
|
|
295
|
-
var windowToggle_1 = requireWindowToggle();
|
|
295
|
+
var windowToggle_1 = /*@__PURE__*/ requireWindowToggle();
|
|
296
296
|
Object.defineProperty(exports, "windowToggle", { enumerable: true, get: function () { return windowToggle_1.windowToggle; } });
|
|
297
|
-
var windowWhen_1 = requireWindowWhen();
|
|
297
|
+
var windowWhen_1 = /*@__PURE__*/ requireWindowWhen();
|
|
298
298
|
Object.defineProperty(exports, "windowWhen", { enumerable: true, get: function () { return windowWhen_1.windowWhen; } });
|
|
299
|
-
var withLatestFrom_1 = requireWithLatestFrom();
|
|
299
|
+
var withLatestFrom_1 = /*@__PURE__*/ requireWithLatestFrom();
|
|
300
300
|
Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } });
|
|
301
|
-
var zip_1 = requireZip();
|
|
301
|
+
var zip_1 = /*@__PURE__*/ requireZip();
|
|
302
302
|
Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return zip_1.zip; } });
|
|
303
|
-
var zipAll_1 = requireZipAll();
|
|
303
|
+
var zipAll_1 = /*@__PURE__*/ requireZipAll();
|
|
304
304
|
Object.defineProperty(exports, "zipAll", { enumerable: true, get: function () { return zipAll_1.zipAll; } });
|
|
305
|
-
var zipWith_1 = requireZipWith();
|
|
305
|
+
var zipWith_1 = /*@__PURE__*/ requireZipWith();
|
|
306
306
|
Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () { return zipWith_1.zipWith; } });
|
|
307
307
|
|
|
308
308
|
} (operators));
|
|
@@ -314,9 +314,11 @@ var operatorsExports = /*@__PURE__*/ requireOperators();
|
|
|
314
314
|
const catScrollableCss = ":host{overflow:hidden;position:relative;display:flex}:host([hidden]){display:none}.shadow-bottom,.shadow-right,.shadow-left,.shadow-top{position:absolute;transition:box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1)}.shadow-top{z-index:2;width:100%;top:0}.shadow-left{z-index:4;height:100%;left:0}.shadow-right{z-index:4;height:100%;right:0}.shadow-bottom{z-index:2;width:100%;bottom:0}.scrollable-wrapper{position:absolute;inset:0;pointer-events:none}.scrollable-wrapper.cat-scrollable-top .shadow-top,.scrollable-wrapper.cat-scrollable-bottom .shadow-bottom,.scrollable-wrapper.cat-scrollable-left .shadow-left,.scrollable-wrapper.cat-scrollable-right .shadow-right{box-shadow:0 0 4px 1px rgba(16, 29, 48, 0.2)}.scrollable-content{width:100%;overflow:hidden}.scrollable-content.scroll-x{overflow-x:auto}.scrollable-content.scroll-y{overflow-y:auto}.scrollable-content.no-overscroll{overscroll-behavior:contain}";
|
|
315
315
|
|
|
316
316
|
const CatScrollable = /*@__PURE__*/ proxyCustomElement(class CatScrollable extends HTMLElement {
|
|
317
|
-
constructor() {
|
|
317
|
+
constructor(registerHost) {
|
|
318
318
|
super();
|
|
319
|
-
|
|
319
|
+
if (registerHost !== false) {
|
|
320
|
+
this.__registerHost();
|
|
321
|
+
}
|
|
320
322
|
this.__attachShadow();
|
|
321
323
|
this.scrolledTop = createEvent(this, "scrolledTop", 7);
|
|
322
324
|
this.scrolledLeft = createEvent(this, "scrolledLeft", 7);
|
|
@@ -436,7 +438,7 @@ const CatScrollable = /*@__PURE__*/ proxyCustomElement(class CatScrollable exten
|
|
|
436
438
|
}
|
|
437
439
|
}
|
|
438
440
|
static get style() { return catScrollableCss; }
|
|
439
|
-
}, [
|
|
441
|
+
}, [257, "cat-scrollable", {
|
|
440
442
|
"noShadowX": [4, "no-shadow-x"],
|
|
441
443
|
"noShadowY": [4, "no-shadow-y"],
|
|
442
444
|
"noOverflowX": [4, "no-overflow-x"],
|